1 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
3 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
4 replacing use of global current_gdbarch.
5 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
8 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
9 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
10 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
11 (ia64_sigtramp_frame_cache): Update caller.
13 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
15 * gdbarch.sh (deprecated_use_struct_convention): Remove.
16 (extract_return_value, store_return_value): Remove.
17 (return_value): Remove default implementation.
18 * gdbarch.c, gdbarch.h: Regenerate.
20 * stack.c (return_command): Remove compatibility hack.
21 * arch-utils.c (legacy_return_value): Remove.
22 * arch-utils.h (legacy_return_value): Likewise.
24 * arch-utils.c (always_use_struct_convention): Remove.
25 * arch-utils.h (always_use_struct_convention): Likewise.
26 * value.c (generic_use_struct_convention): Remove.
27 * defs.h (generic_use_struct_convention): Likewise.
29 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
31 * avr-tdep.c (avr_return_value): New function.
32 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
33 set_gdbarch_extract_return_value.
35 * fvr-tdep.c (frv_return_value): New function.
36 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
37 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
38 and set_gdbarch_deprecated_use_struct_convention.
40 * ia64-tdep.c (ia64_use_struct_convention): Make static.
41 Add check for structure, union, or array types.
42 (ia64_extract_return_value): Make static.
43 (ia64_store_return_value): Make static. Support multi-word values.
44 (ia64_return_value): New function.
45 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
46 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
47 and set_gdbarch_deprecated_use_struct_convention.
49 2007-10-12 Joel Brobecker <brobecker@adacore.com>
51 * solib-target.c (solib_target_parse_libraries)
52 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
54 2007-10-12 Jim Blandy <jimb@codesourcery.com>
56 * serial.h (struct serial_ops): Document read_prim to return zero
58 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
59 read_prim returns zero, not SERIAL_TIMEOUT.
61 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
63 * alpha-mdebug-tdep.c: Include "gdb_string.h".
64 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
65 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
66 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
68 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
69 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
70 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
71 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
72 * config/alpha/tm-alpha.h: Remove file.
74 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
76 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
77 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
79 * config/pa/tm-hppa.h: Delete file.
80 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
81 * config/pa/hppahpux.mt: Likewise.
82 * config/pa/hppa.mt: Likewise.
83 * config/pa/linux.mt: Likewise.
84 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
86 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
88 * config/arm/nm-nbsdaout.h: Remove file.
89 * config/nm-nbsdaout.h: Likewise.
90 * config/nm-nbsd.h: Likewise.
92 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
94 * block.h (struct block): Remove "gcc_compile_flag" member.
95 (BLOCK_GCC_COMPILED): Remove.
96 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
97 * buildsym.c (finish_block): Do not set it.
98 * symmisc.c (dump_symtab_1): Do not dump it.
100 * value.h (using_struct_return): Remove "gcc_p" argument.
101 * value.c (using_struct_return): Likewise.
102 * eval.c (evaluate_subexp_standard): Adapt callers.
103 * infcall.c (call_function_by_hand): Likewise.
104 * stack.c (return_command): Likewise.
105 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
107 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
108 * gdbarch.c, gdbarch.h: Regenerate.
109 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
110 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
111 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
112 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
113 (push_dummy_code, call_function_by_hand): Adapt callers.
115 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
117 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
118 (finish_command_continuation, finish_command): Adapt callers.
120 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
122 * infcall.c (call_function_by_hand): Remove special handling
123 for HP aCC compiled code.
125 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
127 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
128 reference. Fix endianness bugs.
129 (cris_reg_struct_has_address): Remove.
130 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
131 and set_gdbarch_deprecated_use_struct_convention calls.
133 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
134 * gdbarch.c, gdbarch.h: Regenerate.
135 * infcall.c (call_function_by_hand): Remove handling of
136 deprecated_reg_struct_has_addr.
138 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
139 Kazu Hirata <kazu@codesourcery.com>
141 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
142 checking watchpoint resources.
144 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
146 * memattr.c (inaccessible_by_default): Change the initial
149 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
152 * coffread.c (read_one_sym): Check for read errors.
154 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
156 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
157 instead of "Linux 2.6.19" in comment.
158 (linux_xfer_partial): Use "GNU/Linux target" instead of
159 "Linux target" in comment.
160 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
161 (m68k_linux_get_sigtramp_info): Likewise.
163 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
165 * MAINTAINERS (language support): List Joel and Paul as
168 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
170 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
172 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
173 not set DEPRECATED_TM_FILE.
174 * config/arm/tm-arm.h: Delete file.
176 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
178 * MAINTAINERS (Write After Approval): Add self.
180 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
182 * buildsym.c (record_line): Remove empty lines followed by
183 end-of-sequence markers.
185 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
187 * configure.tgt: Recognize fido-*-elf.
189 2007-10-10 Joel Brobecker <brobecker@adacore.com>
193 2007-10-10 Markus Deuling <deuling@de.ibm.com>
195 * stack.c (print_frame_args, frame_info, return_command): Use
196 get_regcache_arch or get_frame_arch to get at the current architecture
197 by regcache or by frame, respectively.
199 2007-10-10 Markus Deuling <deuling@de.ibm.com>
201 * rs6000-nat.c (fetch_register, store_register)
202 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
203 get_regcache_arch to get at the current architecture by regcache.
205 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
206 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
207 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
208 current_gdbarch by gdbarch.
209 (rs6000_skip_trampoline_code, rs6000_register_to_value)
210 (rs6000_value_to_register): Use get_frame_arch to get at the current
211 architecture by frame_info.
213 2007-10-10 Markus Deuling <deuling@de.ibm.com>
215 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
216 get_regcache_arch to get at the current architecture by regcache.
218 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
219 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
220 get_regcache_arch to get at the current architecture by regcache.
222 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
223 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
224 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
225 current architecture by regcache.
227 2007-10-10 Markus Deuling <deuling@de.ibm.com>
229 * remote-mips.c (mips_wait, mips_fetch_registers)
230 (mips_store_registers): Use get_regcache_arch to get at the
231 current architecture by regcache.
233 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
234 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
235 get at the current architecture by regcache.
236 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
237 architecture by frame_info.
239 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
240 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
241 the current architecture by regcache.
243 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
244 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
245 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
246 current architecture by frame_info.
247 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
248 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
249 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
250 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
251 get at the current architecture by regcache.
253 * mips-linux-nat.c (mips_linux_register_addr)
254 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
255 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
256 (mips64_linux_regsets_fetch_registers)
257 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
258 the current architecture by regcache.
260 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
261 get at the current architecture by frame_info.
263 2007-10-10 Markus Deuling <deuling@de.ibm.com>
265 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
266 current architecture by regcache.
267 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
268 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
269 (mips_stub_frame_cache, mips_read_fp_register_single)
270 (mips_read_fp_register_double, mips_print_fp_register)
271 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
272 at the current architecture by frame_info.
273 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
274 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
275 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
276 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
277 (mips_o32_push_dummy_call, mips_o32_return_value)
278 (mips_o64_push_dummy_call, mips_o64_return_value)
279 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
282 2007-10-10 Markus Deuling <deuling@de.ibm.com>
284 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
285 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
286 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
287 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
288 (xtensa_register_write_masked, xtensa_register_read_masked)
289 (xtensa_supply_gregset, xtensa_store_return_value)
290 (xtensa_extract_return_value): Use get_regcache_arch to get at the
291 current architecture by regcache.
292 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
293 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
294 architecture by frame_info.
296 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
298 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
299 (thumb_analyze_prologue): Move pv_area_store_would_trash call
300 out of loop. Do not set cache->frameoffset.
301 (arm_scan_prologue): Use prologue-value mechanism. Do not set
302 frameoffset. Simplify framesize.
303 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
305 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
307 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
309 * target.c (update_current_target): Call setup_target_debug.
310 (push_target): Do not call it here.
312 2007-10-09 Michael Snyder <msnyder@specifix.com>
314 * MAINTAINERS: Update my email address.
316 2007-10-09 Markus Deuling <deuling@de.ibm.com>
318 * xtensa-tdep.c: Replace following current-gdbarch based macros by
320 (xtensa_pseudo_register_read)
321 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
322 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
323 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
324 (xtensa_pseudo_register_read)
325 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
326 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
327 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
328 (xtensa_frame_prev_register): NUM_AREGS.
329 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
330 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
331 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
332 (xtensa_supply_gregset, xtensa_frame_cache)
333 (xtensa_frame_prev_register): WS_REGNUM.
334 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
335 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
336 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
337 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
338 (xtensa_register_reggroup_p): REGMAP.
339 (call0_track_op): LITBASE_REGNUM.
340 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
341 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
342 (xtensa_frame_prev_register, AREG_NUMBER)
343 (xtensa_register_type): AR_BASE.
344 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
345 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
346 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
347 (xtensa_frame_cache, xtensa_frame_prev_register)
348 (xtensa_extract_return_value, xtensa_store_return_value)
349 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
350 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
351 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
352 (xtensa_frame_prev_register, xtensa_push_dummy_call)
353 (call0_frame_cache): A1_REGNUM.
354 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
355 (xtensa_push_dummy_call): A4_REGNUM.
356 (ARGS_FIRST_REG): A6_REGNUM.
357 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
358 (xtensa_frame_prev_register): A15_REGNUM.
359 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
360 them in the appropriate source file:
361 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
362 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
363 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
364 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
365 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
366 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
367 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
368 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
369 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
370 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
371 A13_REGNUM, A14_REGNUM, A15_REGNUM.
373 2007-10-09 Markus Deuling <deuling@de.ibm.com>
375 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
376 the current architecture by frame_info.
377 (h8300_frame_prev_register
378 (h8300_print_register): Replace current_gdbarch by gdbarch.
379 (h8300_print_registers_info, h8300_register_type)
380 (h8300_register_type): Likewise.
382 2007-10-09 Markus Deuling <deuling@de.ibm.com>
384 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
385 the current architecture by regcache.
386 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
387 (i386_linux_fetch_inferior_registers)
388 (i386_linux_store_inferior_registers): Likewise.
389 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
390 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
391 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
392 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
393 (i386_extract_return_value, i386_store_return_value): Likewise.
394 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
395 the current architecture by frame_info.
396 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
397 (i386_register_to_value, i386_value_to_register): Likewise.
399 2007-10-09 Markus Deuling <deuling@de.ibm.com>
401 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
402 the current architecture by regcache.
403 (monitor_store_register, monitor_store_registers): Likewise.
405 2007-10-09 Markus Deuling <deuling@de.ibm.com>
407 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
408 the current architecture by regcache.
410 2007-10-09 Markus Deuling <deuling@de.ibm.com>
412 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
415 2007-10-09 Markus Deuling <deuling@de.ibm.com>
417 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
418 architecture by frame.
419 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
420 (inside_main_func, frame_sp_unwind): Likewise.
422 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
424 * solib-svr4.c (enable_break): Add the dynamic linker also if
427 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
429 * MAINTAINERS (Write After Approval): Add self.
431 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
433 * stabsread.c (read_huge_number): Initialize local variable to 0.
435 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
437 * p-lang.h (pascal_main_name): Add declaration.
438 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
439 (GPC_MAIN_PROGRAM_NAME_2): New constants.
440 (pascal_main_name): New function.
441 * symtab.c: Include p-lang.h.
442 (find_main_name): Add call to pascal_main_name.
443 * Makefile.in (symtab.o): Add dependency on p-lang.h.
445 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
447 * stabsread.c (read_huge_number): Fix handling of octal
448 representation when the bit width is known.
449 (read_range_type): Record unsigned integral types with their size,
450 when the type size is known.
452 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
454 * MAINTAINERS (Write After Approval): Add self.
456 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
458 * breakpoint.c (print_one_breakpoint_location): ARI fix:
459 Replace asprintf by xstrprintf.
461 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
463 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
464 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
466 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
468 * linux-fork.c: Move "gdb_wait.h" include back to the position of
469 <sys/wait.h> include before last commit.
471 2007-10-08 Maciej W. Rozycki <macro@mips.com>
473 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
475 2007-10-08 Markus Deuling <deuling@de.ibm.com>
477 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
478 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
479 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
480 (store_regs_user_thread, store_regs_kernel_thread): Use
481 get_regcache_arch or get_frame_arch to get at the current architecture
482 by regcache or by frame, respectively.
484 2007-10-08 Markus Deuling <deuling@de.ibm.com>
486 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
487 (sh64_pseudo_register_read, sh64_pseudo_register_write)
488 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
489 (sh64_print_register, sh64_media_print_registers_info)
490 (sh64_compact_print_registers_info, sh64_unwind_sp)
491 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
492 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
493 (sh64_frame_prev_register): Use FRAME to recognize current
496 2007-10-08 Markus Deuling <deuling@de.ibm.com>
498 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
499 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
500 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
501 current_gdbarch by gdbarch.
502 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
503 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
504 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
505 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
506 recognize current architecture.
508 2007-10-08 Markus Deuling <deuling@de.ibm.com>
510 * remote.c (init_remote_state, fetch_register_using_p)
511 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
512 (store_register_using_P, store_registers_using_G)
513 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
514 get at the current architecture by regcache or by frame, respectively.
516 2007-10-08 Markus Deuling <deuling@de.ibm.com>
518 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
519 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
520 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
521 get_regcache_arch or get_frame_arch to get at the current architecture
522 by regcache or by frame, respectively.
523 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
524 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
525 (store_register, old_store_inferior_registers, supply_gregset)
526 (supply_fpregset, fill_fpregset): Likewise.
527 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
528 Replace current_gdbarch by gdbarch.
530 2007-10-08 Markus Deuling <deuling@de.ibm.com>
532 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
533 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
534 get_frame_arch to get at the current architecture by regcache or by
537 2007-10-08 Markus Deuling <deuling@de.ibm.com>
539 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
540 Replace current_gdbarch by gdbarch.
541 * ia64-tdep.c (ia64_frame_prev_register
542 (ia64_sigtramp_frame_prev_register)
543 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
544 get_frame_arch to get at the current architecture by regcache or by
546 * ia64-linux-nat.c (ia64_linux_fetch_register)
547 (ia64_linux_fetch_registers, ia64_linux_store_register)
548 (ia64_linux_store_registers): Likewise.
550 2007-10-08 Markus Deuling <deuling@de.ibm.com>
552 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
553 current_gdbarch by gdbarch.
554 * hppa-linux-nat.c (fetch_register, store_register)
555 (hppa_linux_fetch_inferior_registers)
556 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
557 get_frame_arch to get at the current architecture by regcache or by
559 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
560 (hppa_hpux_unwind_adjust_stub): Likewise.
561 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
562 (hppa_hpux_fetch_inferior_registers)
563 (hppa_hpux_store_inferior_registers): Likewise.
565 2007-10-08 Markus Deuling <deuling@de.ibm.com>
567 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
568 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
569 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
570 or get_frame_arch to get at the current architecture by regcache or by
572 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
573 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
574 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
575 current_gdbarch by gdbarch.
577 2007-10-08 Markus Deuling <deuling@de.ibm.com>
579 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
580 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
581 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
582 get at the current architecture by regcache or by·frame, respectively.
583 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
586 2007-10-08 Markus Deuling <deuling@de.ibm.com>
588 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
589 Use get_regcache_arch or get_frame_arch to get at the current
590 architecture by regcache or by frame, respectively.
591 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
592 * amd64-nat.c (amd64_supply_native_gregset)
593 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
595 2007-10-08 Markus Deuling <deuling@de.ibm.com>
597 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
599 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
600 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
601 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
602 get_frame_arch to get at the current architecture by regcache or by
604 * alpha-nat.c (fetch_osf_core_registers): Likewise.
606 2007-10-08 Markus Deuling <deuling@de.ibm.com>
608 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
609 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
610 current_gdbarch by gdbarch.
611 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
613 2007-10-08 Markus Deuling <deuling@de.ibm.com>
615 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
616 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
617 * regcache.c (regcache_raw_write): Use get_regcache_arch or
618 get_frame_arch to get at the current architecture by regcache or by
621 2007-10-08 Markus Deuling <deuling@de.ibm.com>
623 * findvar.c (value_of_register, locate_var_value): Use
624 get_regcache_arch or get_frame_arch to get at the current architecture
625 by regcache or by frame, respectively.
626 * findvar.c (default_value_from_register, value_from_register): Replace
627 current_gdbarch by gdbarch.
629 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
631 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
633 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
635 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
636 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
638 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
640 * remote.c (get_offsets): Only call free_symfile_segment_data if
643 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
645 * objc-exp.y: ARI fix: remove 4 PARAMS.
647 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
649 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
650 news. Mention XML support for M68K in GDB 6.7.
652 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
654 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
656 (init_vector_type): Use builtin_type_int32.
658 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
660 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
661 size to enable bi-arch generate-core-file support.
663 2007-10-02 Markus Deuling <deuling@de.ibm.com>
665 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
667 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
669 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
671 * tui/tui-win.c (tui_initialize_win): New function for
672 initializing tui's SIGWINCH signal handler.
673 * tui/tui-win.h (tui_initialize_win): Declare.
675 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
677 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
678 pointer to uintptr_t before casting to CORE_ADDR.
680 2007-10-02 Markus Deuling <deuling@de.ibm.com>
682 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
684 2007-10-02 Mark Mitchell <mark@codesourcery.com>
686 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
687 * ser-mingw.c (enum select_thread_state): New type.
688 (struct ser_console_state): Add have_started and thread_state.
689 (select_thread_wait): New function.
690 (thread_fn_type): New type.
691 (create_select_thread): New function.
692 (destroy_select_thread): Likewise.
693 (start_select_thread): Likewise.
694 (stop_select_thread): Likewise.
695 (console_select_thread): Use new functions.
696 (pipe_select_thread): Likewise.
697 (file_select_thread): Likewise.
698 (ser_console_wait_handle): Likewise.
699 (ser_console_done_wait_handle): Likewise.
700 (ser_console_close): Likewise.
701 (free_pipe_state): Likewise.
702 (pipe_wait_handle): Likewise.
703 (pipe_done_wait_handle): Likewise.
704 (struct net_windows_state): Derive from ser_console_state.
705 (net_windows_select_thread): Use new functions.
706 (net_windows_wait_handle): Likewise.
707 (net_windows_done_wait_handle): Likewise.
708 (net_windows_close): Likewise.
710 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
712 * inflow.c (terminal_ours_1): Remove useless line.
714 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
716 * mips-tdep.c (mips_read_fp_register_double): Correct check for
718 (mips_print_fp_register): Correct check for even FP registers.
719 (mips_virtual_frame_pointer): New function.
720 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
722 2007-09-30 Mike Frysinger <vapier@gentoo.org>
724 * value.h (lookup_only_internalvar): New prototype.
725 (create_internalvar): Likewise.
726 * value.c (lookup_only_internalvar): New function.
727 (create_internalvar): Likewise.
728 (lookup_internalvar): Use new lookup_only_internalvar and
729 create_internalvar functions.
730 * parse.c (write_dollar_variable): Look up $ symbols in internal
731 table first rather than last.
733 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
735 * linux-nat.c (linux_nat_new_thread): New variable.
736 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
737 linux_nat_switch_fork.
738 (lwp_list): Make public.
739 (add_lwp): Call linux_nat_new_thread.
740 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
742 (resume_callback): Clear lp->siginfo. Remove unused variable.
743 (linux_nat_resume): Assert that the LWP list is already initialized.
746 (stop_wait_callback, linux_nat_wait): Call it.
747 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
748 * linux-nat.h (struct lwp_info): Add siginfo.
749 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
752 * amd64-linux-nat.c (amd64_linux_dr): New.
753 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
754 (amd64_linux_dr_set): Take a PTID argument.
755 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
756 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
757 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
758 (amd64_linux_new_thread): New.
759 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
760 * i386-linux-nat.c (i386_linux_dr): New.
761 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
762 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
763 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
764 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
765 (i386_linux_new_thread): New.
766 (i386_linux_resume): Remove unnecessary PID check.
767 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
768 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
769 (fetch_debug_register, fetch_debug_register_pair): Delete.
770 (debug_registers): New.
771 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
772 ALL_LWPS and debug_registers.
773 (ia64_linux_new_thread): New.
774 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
775 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
776 * ppc-linux-nat.c (last_stopped_data_address): Delete.
777 (saved_dabr_value): New.
778 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
780 (ppc_linux_new_thread): New.
781 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
782 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
783 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
784 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
786 (s390_fix_watch_points): Take a PTID argument.
787 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
788 (_initialize_s390_nat): Call linux_nat_set_new_thread.
790 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
791 Jeff Johnston <jjohnstn@redhat.com>
793 * breakpoint.c (watchpoints_triggered): New.
794 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
795 Check watchpoint_triggered instead. Combine handling for software
796 and hardware watchpoints. Do not use target_stopped_data_address
797 here. Always check a watchpoint if its scope breakpoint triggers.
798 Do not stop for thread or overlay events. Improve check for
799 triggered watchpoints without a value change.
800 (watch_command_1): Insert the scope breakpoint first. Link the
801 scope breakpoint to the watchpoint.
802 * breakpoint.h (enum watchpoint_triggered): New.
803 (struct breakpoint): Add watchpoint_triggered.
804 (bpstat_stop_status): Update prototype.
805 (watchpoints_triggered): Declare.
806 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
807 (stepped_after_stopped_by_watchpoint): Delete.
808 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
809 local. Handle infwait_step_watch_state. Update calls to
810 bpstat_stop_status. Use watchpoints_triggered to check
812 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
813 (remote_stopped_data_address): Do not check it.
815 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
817 * configure.ac: Add $LIBINTL when testing libbfd.
818 * configure: Regenerated.
820 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
822 * NEW: Mention pending breakpoint changes and
823 support for breakpoints at multiple locations.
825 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
827 * arm-linux-tdep.c (arm_linux_software_single_step): New.
828 (arm_linux_init_abi): Use it.
829 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
831 * arm-tdep.h (arm_get_next_pc): Declare.
832 * Makefile.in (arm-linux-tdep.o): Update.
834 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
836 * varobj.c (install_new_value): Don't
837 call value_get_print_value when a value is
838 lazy. Update the print_value member in a
841 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
843 * breakpoint.c (create_breakpoint): Set
844 condition on each location, not on the first
845 location of breakpoint.
847 2007-09-26 Jim Blandy <jimb@codesourcery.com>
849 * remote.c (getpkt_sane): Fix error message. No animals were
850 harmed in the making of this debugger.
852 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
854 * p-typeprint.c: Fix 11 ARI reported problems.
855 (pascal_print_type): Fix 4 operator at end of line.
856 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
857 using strncmp function.
858 (pascal_type_print_base): Fix 2 operator at end of line.
859 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
860 using strncmp function.
863 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
866 dwarf2read.c (read_subroutine_type):
867 All pascal functions are prototyped.
869 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
872 p-valprint.c (pascal_val_print): correct current language check.
873 Also print array of char as strings.
876 2007-09-26 David Ung <davidu@mips.com>
877 Maciej W. Rozycki <macro@mips.com>
879 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
881 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
883 * p-exp.y: Fix 12 ARI reported problems.
884 (name_not_typename): Fix 2 operator at end of line issues.
885 (yylex): Fix 3 operator at end of line issues.
886 Replace 7 DEPRECATED_STREQ macros using strcmp function.
888 2007-09-25 David Ung <davidu@mips.com>
889 Maciej W. Rozycki <macro@mips.com>
891 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
892 rules return composite types in registers as appropriate.
894 2007-09-24 Jim Blandy <jimb@codesourcery.com>
896 * symfile.h (struct symfile_segment_data): Doc fixes.
897 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
898 Assert that we were passed some loaded segment addresses,
899 and that sections' segment numbers are valid.
900 Simplify offset calculation.
901 * remote.c (get_offsets): Clarify selection of relocate-by-segment
902 strategy, and set num_segments correctly. Delete redundant
903 assignments to do_sections.
905 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
907 * frame.c (get_prev_frame_1): Also check for PC in the same register.
909 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
911 * breakpoint.c (remove_sal): New.
912 (expand_line_sal_maybe): New.
913 (create_breakpoints): Call expand_line_sal_maybe.
914 (clear_command): Add comment.
915 (breakpoint_re_set_one): Call expand_line_sal_maybe.
916 * linespec.c (decode_indirect): Set explicit_pc to 1.
917 (decode_all_digits): Set explicit_line to 1.
918 (append_expanded_sal): New.
919 (expand_line_sal): New.
920 * linespec.h (expand_line_sal): Declare.
921 * symtab.c (init_sal): Initialize explicit_pc
923 * symtab.h (struct symtab_and_line): New fields
924 explicit_pc and explicit_line.
926 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
928 * infcall.c (call_function_by_hand): Handle language-specific
929 pass and return by reference.
931 * cp-abi.c (cp_pass_by_reference): New.
932 * cp-abi.h (cp_pass_by_reference): Declare.
933 (struct cp_abi_ops): Add pass_by_reference.
934 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
935 (init_gnuv3_ops): Set pass_by_reference.
937 * language.c (language_pass_by_reference): New.
938 (default_pass_by_reference): New.
939 (unknown_language_defn, auto_language_defn, local_language_defn): Add
940 default_pass_by_reference.
941 * langauge.h (struct language_defn): Add la_pass_by_reference.
942 (language_pass_by_reference, default_pass_by_reference): Declare.
943 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
944 * c-lang.c (c_language_defn, asm_language_defn)
945 (minimal_language_defn): Likewise.
946 (cplus_language_defn): Add cp_pass_by_reference.
947 * f-lang.c (f_language_defn): Add default_pass_by_reference.
948 * jv-lang.c (java_language_defn): Likewise.
949 * m2-lang.c (m2_language_defn): Likewise.
950 * objc-lang.c (objc_language_defn): Likewise.
951 * p-lang.c (pascal_language_defn): Likewise.
952 * scm-lang.c (scm_language_defn): Likewise
954 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
956 Allow a code breakpoint to have several locations
958 * breakpoint.h (enum enable_state): Remove the
959 bp_shlib_disabled enumerator.
960 (struct bp_location): New members shlib_disabled,
961 global_next, enabled and function_name.
962 Rename pending to condition_not_parsed.
964 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
965 (ALL_BP_LOCATIONS_SAFE): Likewise.
966 (breakpoint_enabled): Don't check for pending.
967 (condition_command): Free and update all locations of
969 (insert_bp_location): Adjust.
970 (software_breakpoint_inserted_here_p): Don't care
971 if breakpoint is enabled, as soon as it's inserted.
972 (print_it_typical): Print bpstat's location, not
973 bpstat's breakpoint's location.
974 (bpstat_stop_status): Iterate over all locations, not
976 (print_breakpoint_location): New.
977 (print_one_breakpoint): Renamed to
978 (print_one_breakpoint_location): ...this. Take
979 parameters to describe which location is being
980 printed. Modify code to properly print header
981 for several locations and individual locations.
982 (print_one_breakpoint): Print all locations.
983 (breakpoint_has_pc): New.
984 (describe_other_breakpoints): Use the above.
985 (check_duplicates): Renamed to...
986 (check_duplicates_for): .. this.
987 (check_duplicates): Use check_duplicates_for.
988 (allocate_bp_location): Adjust.
989 (set_raw_breakpoint_without_location): New,
990 extracted from set_raw_breakpoint.
991 (set_breakpoint_location_function): New.
992 (set_raw_breakpoint): Use
993 set_raw_breakpoint_without_location.
994 (make_breakpoint_permanent): Mark all locations
996 (disable_breakpoints_in_shlibs): Iterate over
998 (disable_breakpoints_in_unloaded_shlib): Likewise.
999 (re_enable_breakpoints_in_shlibs): Likewise.
1000 (mention): Say "pending" when breakpoint has
1001 zero locations. If breakpoint has more than one
1003 (add_location_to_breakpoint): New.
1004 (create_breakpoint): Accept symtabs_and_lines, not
1005 symtab_and_line. Pass extra sals to
1006 add_location_to_breakpoint.
1007 (create_breakpoints): Pass symtabs_and_lines to
1009 (break_command_1): Make pending breakpoints
1010 have zero locations.
1011 (do_captured_breakpoint): Remove wrong allocation.
1012 (clear_command): Iterate over all locations.
1013 (unlink_locations_from_global_list): Renamed
1014 from unlink_location_from_global_list. Remove
1016 (delete_breakpoint): Remove all locations.
1017 Iterate over all locations when deciding which
1018 other location to re-enable.
1019 (all_locations_are_pending): New.
1020 (update_breakpoint_locations): Renamed from
1021 update_breakpoint_location. Try to match old
1022 and new locations using names of containing
1024 (breakpoint_re_set_one): Adjust.
1025 (find_location_by_number): New.
1026 (disable_command): Allow disabling individual location.
1027 (enable_command): Allow enabling individual location.
1028 * breakpoint.c: Adjust all uses of breakpoint's
1029 enable state to for bp_shlib_disabled change.
1031 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1033 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1034 (resolve_pending_breakpoint): Remove.
1035 (re_enable_breakpoints_in_shlibs): Remove.
1036 (unlink_locations_from_global_list): New.
1037 (update_breakpoint_locations): New.
1038 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1039 Use parse_condition and update_breakpoint_location to
1040 reset breakpoint. Ignore 'symbol not found' error from
1042 (breakpoint_re_set): Don't emit newline before the
1043 reason why breakpoint is not reset.
1044 (do_enable_breakpoint): Don't specially process pending
1046 (free_bp_location): New.
1047 (break_command_1): For pending breakpoints, initialize
1048 all fields of a sal with zeroes.
1049 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1050 * infcmd.c (post_create_inferior): Don't call
1051 re_enable_breakpoints_in_shlibs.
1052 * infrun.c (handle_inferior_event): Likewise.
1053 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1054 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1055 * win32-nat.c (get_win32_debug_event): Likewise.
1057 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1059 * breakpoint.c (create_breakpoint): Split from
1060 create_breakpoints, implementing most of its logic.
1061 Take just a single sal, single address string and
1062 single condition. Do not take parsed condition at
1064 (create_breakpoints): Just call create_breakpoint
1066 (find_condition_and_thread): New.
1067 (break_command_1): Use find_condition_and_thread.
1068 Do not keep parsed conditions.
1069 (do_captured_breakpoint): Don't convert
1070 condition string to struct expression.
1072 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1074 * breakpoint.h (struct breakpoint): Move the cond
1076 (struct bp_location): Here.
1077 * breakpoint.c (condition_command, bpstat_stop_status)
1078 (print_one_breakpoint, allocate_bp_location)
1079 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1080 (create_exec_event_catchpoint, create_breakpoints)
1081 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1082 (create_ada_exception_breakpoint, set_breakpoint_sal)
1083 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1084 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1086 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1088 Associate bp_stat with bp_location, not breakpoint.
1089 * breakpoint.h (breakpoint_at): Change type
1091 * breakpoint.c (bpstat_alloc): Take bp_location,
1093 (bpstat_find_breakpoint): Look at bpstat's location's
1094 owner, not at bpstat->breakpoint_at.
1095 (bpstat_find_step_resume_breakpoint): Likewise.
1096 (bpstat_num): Likewise.
1097 (print_it_typical): Likewise.
1098 (print_bp_stop_message): Likewise.
1099 (watchpoint_check): Likewise.
1100 (bpstat_what): Likewise.
1101 (bpstat_get_triggered_catchpoints): Likewise.
1102 (breakpoint_auto_delete): Likewise.
1103 (delete_breakpoint): Likewise.
1104 (bpstat_stop_status): Pass location, not breakpoint,
1105 to bpstat_alloc. Look at bpstat's location's
1106 owner, not at bpstat->breakpoint_at.
1108 2007-09-21 Jim Blandy <jimb@codesourcery.com>
1110 * macrotab.h (new_macro_table): Document that removing information
1111 from an obstack/bcache-managed macro table leaks memory.
1112 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1113 that data is never freed in obstack/bcache-managed macro tables,
1114 just leak the storage.
1115 (macro_undef): If we're undefining a macro at exactly the same
1116 source location that we defined it, simply remove the definition
1119 2007-09-21 Joel Brobecker <brobecker@adacore.com>
1121 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1122 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1123 Adjust the struct sym_fns object accordingly by setting
1124 the new field to NULL.
1125 * xcoffread.c (aix_process_linenos): Make static.
1126 (xcoff_sym_fns): Set new field to aix_process_linenos.
1127 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1128 by call to new the new sym_fns sym_read_linetable function.
1129 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1130 * config/rs6000/tm-rs6000.h: Delete.
1132 2007-09-21 David Ung <davidu@mips.com>
1133 Maciej W. Rozycki <macro@mips.com>
1135 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1136 rules do not treat composite types specially.
1138 2007-09-20 Maciej W. Rozycki <macro@mips.com>
1140 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1141 (mips16_in_function_epilogue_p): Likewise.
1142 (mips_in_function_epilogue_p): Likewise.
1143 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1145 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1147 * configure.ac: Add check for "etext".
1148 * configure, config.in: Regenerate.
1149 * maint.c (TEXTEND): Only define if either _etext or etext
1151 Disable the profiling functionality if TEXTEND is not defined.
1153 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1155 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1156 address register. Correct the call to frame_id_build.
1157 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1160 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1162 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1163 the linetable past the function end.
1165 2007-09-18 James E. Wilson <wilson@specifix.com>
1167 * MAINTAINERS: Update my email address.
1169 2007-09-18 Jerome Guitton <guitton@adacore.com>
1171 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1172 (inf_ttrace_delete_dying_threads_callback): New function.
1173 (inf_ttrace_resume): After resuming the execution, iterate over
1174 the dying threads to delete them for the thread list.
1175 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1176 mark the corresponding thread as dying instead of removing it
1177 from the thread list.
1178 (inf_ttrace_thread_alive): return 0 for dying threads.
1180 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1182 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1183 that return_frame is not null.
1185 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1187 * solib-svr4.c: Add include of "auxv.h".
1188 (enable_break): Use the AT_BASE auxiliary entry if available.
1189 * Makefile.in (solib-svr4.o): Update dependencies.
1191 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1193 * NEWS: Create a new section for the next release branch.
1194 Rename the section of the current branch, now that it has
1197 2007-09-17 Jerome Guitton <guitton@adacore.com>
1199 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1200 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1202 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1204 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1205 * mi/mi-cmds.h (mi_cmd_list_features): New.
1206 * mi/mi-main.c (mi_cmd_list_features): New.
1208 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1210 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1211 * version.in: Bump version to 6.7.50-20070911-cvs.
1213 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1215 * thread.c (free_thread): Do not delete the step resume breakpoint
1218 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1220 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1221 * corelow.c (core_read_description): New.
1222 (init_core_ops): Set to_read_description.
1223 * gdbarch.sh: Add gdbarch_core_read_description.
1224 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1225 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1226 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1227 (mips_register_g_packet_guesses): Use them.
1228 (_initialize_mips_tdep): Initialize them.
1229 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1230 * gdbarch.h, gdbarch.c: Regenerated.
1232 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1234 * infrun.c (stepping_past_breakpoint): New global variable.
1235 (stepping_past_breakpoint_ptid): Likewise.
1236 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1237 Only switch threads if we need to single-step over a breakpoint hit
1238 in the previously selected thread. If stepping, remember previous
1239 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1240 switch_to_thread instead of copying its contents.
1241 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1242 prepare_to_proceed returns true.
1243 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1244 (context_switch): Call switch_to_thread.
1245 (handle_inferior_event): Switch back to previous thread if requested
1246 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1247 * gdbthread.h (switch_to_thread): Add prototype.
1248 * thread.c (switch_to_thread): Make global.
1250 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1252 * p-valprint.c: Fix 7 ARI reported problems.
1253 (pascal_val_print): Fix one operator at end of line issue.
1254 Use paddress function to remove use of
1255 deprecated_print_address_numeric function (2 times).
1256 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1257 (pascal_value_print): Fix 3 operator at end of line issues.
1259 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1262 * arm-tdep.c (arm_in_call_stub): Delete.
1263 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1265 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1267 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1270 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1271 Jim Blandy <jimb@codesourcery.com>
1273 * NEWS: Update description of string changes. Mention print/s.
1274 * c-valprint.c (textual_element_type): New.
1275 (c_val_print): Use it. Do not skip address printing for pointers
1276 with a string format.
1277 (c_value_print): Doc update.
1278 * dwarf2read.c (read_array_type): Use make_vector_type.
1279 * gdbtypes.c (make_vector_type): New.
1280 (init_vector_type): Use it.
1281 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1282 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1283 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1284 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1285 (make_vector_type): New.
1286 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1287 Call the language print routine for string format.
1288 (print_scalar_formatted): Call val_print for string format. Handle
1289 unsigned original types for char format.
1290 (validate_format): Do not reject string format.
1291 * stabsread.c (read_type): Use make_vector_type.
1292 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1294 2007-09-04 Michael Snyder <msnyder@access-company.com>
1296 * expprint.c (print_subexp_standard): Check strchr for null.
1297 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1299 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1301 * stabsread.c (patch_block_status): Guard against null.
1302 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1304 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1306 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1307 in internal error message.
1309 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1310 Daniel Jacobowitz <dan@codesourcery.com>
1312 * infcmd.c (post_create_inferior): Update comment.
1313 (run_command_1): Always call post_create_inferior with 0 as
1316 * i386-cygwin-tdep.h: New.
1317 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1318 (win32_xfer_shared_library): Make it extern.
1320 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1322 (win32_so_ops): Delete.
1323 (get_relocated_section_addrs): Delete.
1324 (solib_symbols_add): Delete.
1325 (register_loaded_dll): Delete.
1326 (win32_make_so): New.
1327 (handle_load_dll): Use win32_make_so.
1328 (win32_free_so): Free the passed in so.
1329 (win32_relocate_section_addresses): Delete.
1330 (win32_solib_create_inferior_hook): Delete.
1331 (handle_unload_dll): Don't add PE offset here. Free so with
1332 win32_free_so instead of free_so.
1333 (win32_special_symbol_handling): Delete.
1334 (get_win32_debug_event): Remove unneeded calls. Set state to
1335 TARGET_WAITKIND_LOADED on a dll unload.
1336 (do_initial_win32_stuff): Clear cygwin_load_start and
1338 (map_code_section_args): Delete.
1339 (dll_code_sections_add): Delete.
1340 (core_section_load_dll_symbols): Delete.
1341 (win32_xfer_shared_libraries): New.
1342 (win32_current_sos): Delete.
1343 (win32_xfer_partial): New.
1344 (open_symbol_file_object): Delete.
1345 (in_dynsym_resolve_code): Delete.
1346 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1347 of win32_ops. Remove win32_so_ops settings. Don't set
1348 current_target_so_ops here.
1350 * Makefile.in (i386_cygwin_tdep_h): New variable.
1351 (i386-cygwin-tdep.o): Update dependencies.
1352 (win32-nat.o): Update dependencies.
1354 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1355 Daniel Jacobowitz <dan@codesourcery.com>
1357 * gdbarch.sh (core_xfer_shared_libraries): New.
1359 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1361 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1363 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1364 (xml_escape_text): New.
1365 * xml-support.h (xml_escape_text): Declare.
1367 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1368 * config/i386/cygwin.mt (TDEPFILES): ... here.
1370 * win32-nat.c: (fetch_elf_core_registers): Delete.
1371 (win32_elf_core_fn): Delete.
1372 (_initialize_core_win32): Delete.
1374 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1375 "xml-support.h" and "gdbcore.h".
1376 (i386_win32_gregset_reg_offset): New.
1377 (I386_WIN32_SIZEOF_GREGSET): New.
1378 (i386_win32_regset_from_core_section): New.
1379 (win32_xfer_shared_library): New.
1380 (struct cpms_data): New.
1381 (core_process_module_section): New.
1382 (win32_core_xfer_shared_libraries): New.
1383 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1384 gregset_num_regs, sizeof_gregset members of tdep. Register
1385 regset_from_core_section and core_xfer_shared_libraries callbacks.
1387 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1388 * gdbarch.h, gdbarch.c: Regenerate.
1390 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1392 * corelow.c (core_xfer_partial): Pass writebuf to
1393 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1395 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1397 * arm-tdep.h (arm_skip_stub): Declare.
1398 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1400 (arm_pe_skip_trampoline_code): New function.
1401 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1402 gdbarch_skip_trampoline_code callback.
1403 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1405 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1407 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1409 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1411 * configure.ac: Add --with-expat.
1412 * configure: Regenerated.
1414 2007-09-03 Andreas Schwab <schwab@suse.de>
1416 * configure.ac: Accept --with-system-readline.
1417 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1418 * configure: Regenerate.
1419 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1421 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1423 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1424 Daniel Jacobowitz <dan@codesourcery.com>
1426 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1428 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1430 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1432 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1434 * top.c (print_gdb_version): Update for GPL version 3.
1436 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1438 * NEWS: Mention the build-id .debug files verification.
1440 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1442 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1444 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1446 * Makefile.in (symfile.o): Update dependencies.
1447 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1448 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1449 (struct build_id): New structure.
1450 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1451 (find_separate_debug_file): New variable BUILD_ID.
1452 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1454 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1456 * varobj.c (struct varobj): Fix comment
1457 for the type member not to lie when it can be
1460 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1462 Implement -var-info-path-expression.
1464 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1466 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1467 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1468 * varobj.c (struct varobj): New field 'path_expr'.
1469 (c_path_expr_of_child, cplus_path_expr_of_child)
1470 (java_path_expr_of_child): New.
1471 (struct language_specific): New field path_expr_of_child.
1472 (varobj_create): Initialize the path_expr field.
1473 (varobj_get_path_expr): New.
1474 (new_variable): Initialize the path_expr field.
1475 (free_variable): Free the path_expr field.
1476 (adjust_value_for_children_access): New parameter
1478 (c_number_of_children): Adjust.
1479 (c_describe_child): New parameter CFULL_EXPRESSION.
1480 Compute full expression.
1481 (c_value_of_child, c_type_of_child): Adjust.
1482 (cplus_number_of_children): Adjust.
1483 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1484 Compute full expression.
1485 (cplus_name_of_child, cplus_value_of_child)
1486 (cplus_type_of_child): Adjust.
1487 * varobj.h (varobj_get_path_expr): Declare.
1489 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1491 * mi/mi-cmd-var.c (print_varobj): If a varobj
1492 type is NULL, don't try to print it.
1494 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1496 * ppc-linux-nat.c (right_fill_reg): Delete.
1497 (supply_gregset): Use ppc_supply_gregset.
1498 (supply_fpregset): Use ppc_supply_fpregset.
1499 (fill_gregset): Use ppc_collect_gregset.
1500 (fill_fpregset): Use ppc_collect_fpregset.
1501 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1502 (right_supply_register, ppc_linux_supply_gregset): Delete.
1503 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1504 (ppc_linux_supply_fpregset): Delete.
1505 (ppc_linux_collect_gregset): New function.
1506 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1507 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1508 ppc_linux_supply_gregset, and ppc_collect_gregset.
1509 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1510 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1511 (ppc_linux_regset_from_core_section): Update.
1512 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1513 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1514 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1515 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1516 (ppcobsd_collect_gregset): Likewise.
1517 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1518 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1519 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1520 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1521 (rs6000_aix64_reg_offsets): Likewise.
1522 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1523 ppc_floating_point_unit_p.
1524 (rs6000_aix_collect_regset): Similarly.
1525 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1526 when regsize is larger than regcache register size.
1527 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1528 regcache register size.
1529 (ppc_greg_offset): New function, split out from..
1530 (ppc_supply_gregset): ..here. Separate code handling all regs from
1531 single reg case. Correct xer offset.
1532 (ppc_fpreg_offset): New function, split out from..
1533 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1535 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1536 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1537 a fp unit, instead return if no fp.
1539 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1541 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1542 this code has not been compiled for two years.
1544 2007-08-29 Michael Snyder <msnyder@access-company.com>
1546 * event-top.c (gdb_readline2): Return after EOF.
1548 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1550 * symtab.c: Remove a function that has been commented out 3 years ago.
1552 2007-08-29 Randolph Chung <tausq@debian.org>
1554 * hppa-tdep.c (hppa32_cannot_fetch_register)
1555 (hppa64_cannot_fetch_register): New functions.
1556 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1557 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1559 2007-08-28 Michael Snyder <msnyder@access-company.com>
1561 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1562 check for null before calling check_typedef.
1564 * NEWS: Mention Coverity bug fixes.
1566 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1568 * spu-tdep.c (spu_pointer_to_address): New function.
1569 (spu_integer_to_address): Likewise.
1570 (spu_gdbarch_init): Add spu_pointer_to_address and
1571 spu_integer_to_address to gdbarch.
1573 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1575 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1577 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1579 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1580 that contains the GDB license.
1581 * copying.awk: Adjust to the GPLv3 wording.
1582 * copying.c: Regenerate.
1584 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1586 * copying.awk: Protoization, and i18n markup.
1588 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1590 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1591 * copyright.sh: Likewise.
1592 * gdb-events.sh: Likewise.
1593 * gdb_gcore.sh: Likewise.
1594 * gdb_mbuild.sh: Likewise.
1595 * gdbarch.sh: Likewise.
1596 * observer.sh: Likewise.
1597 * features/feature_to_c.sh: Likewise.
1598 * regformats/regdat.sh: Likewise.
1600 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1602 Switch the license of all .c files to GPLv3.
1603 Switch the license of all .h files to GPLv3.
1604 Switch the license of all .cc files to GPLv3.
1606 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1608 * configure.ac: Switch license to GPLv3.
1610 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1612 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1613 determine the file's FPU type.
1615 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1617 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1618 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1619 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1621 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1623 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1625 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1626 (elf_lookup_lib_symbol): Fix formatting.
1628 2007-08-21 Michael Snyder <msnyder@access-company.com>
1630 * dbxread.c (read_dbx_symtab): Guard null deref.
1633 * valops.c (find_overload_match): Guard against NULL.
1635 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1637 * MAINTAINERS (Patch Champions): Remove self.
1639 2007-08-21 Chris Smith <chris.smith@st.com>
1641 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1644 2007-08-18 Michael Snyder <msnyder@access-company.com>
1646 * stabsread.c (dbx_lookup_type): Memory leak.
1648 * event-loop.c (delete_async_signal_handler): Move pointer null
1649 test to before pointer dereference.
1651 * ui-out.c (append_header_to_list): Possible cut and paste error.
1653 * MAINTAINERS: white space tweak.
1655 2007-08-17 Michael Snyder <msnyder@access-company.com>
1657 * stack.c (print_frame): Memory leak.
1659 * completer.c (filename_completer): Avoid memory leak.
1660 Remove unnecessary nested block.
1662 * c-exp.y (parse_number): Memory leak.
1664 * completer.c (location_completer): Must free 'fn_list', except
1665 in the one case where it is returned (as 'list').
1667 * varobj.c (value_of_root): Memory leak.
1669 * gdbtypes.h (virtual_base_list): Remove export decl.
1670 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1671 (virtual_base_index): Memory leak.
1672 (virtual_base_index_skip_primaries): Ditto.
1674 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1676 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1677 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1678 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1679 (xtensa_read_register): New function.
1680 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1681 (xtensa_insn_kind): New types.
1682 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1683 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1684 (xtensa_verify_config, xtensa_pseudo_register_read)
1685 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1686 (xtensa_store_return_value)
1687 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1688 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1689 (xtensa_frame_this_id, xtensa_frame_prev_register)
1690 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1691 (call0_frame_cache, call0_frame_get_reg_at_entry)
1692 (call0_classify_opcode, call0_track_op)
1693 (call0_analyze_prologue, call0_frame_cache): New functions.
1695 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1697 * breakpoint.c (bpstat_free): New.
1698 (bpstat_clear): Use bpstat_free.
1699 (delete_breakpoint): Document why we cannot
1700 remove bpstats from stop_bpstat.
1701 * breakpoint.h (bpstat_free): Declare.
1703 2007-08-16 Michael Snyder <msnyder@access-company.com>
1705 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1707 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1708 Joel Brobecker <brobecker@adacore.com>
1710 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1712 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1713 Joel Brobecker <brobecker@adacore.com>
1715 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1716 checkin guarding against NULL.
1718 2007-08-14 Michael Snyder <msnyder@access-company.com>
1720 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1721 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1722 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1723 go at beginning of new line.
1725 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1726 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1727 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1728 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1729 tui-winsource.h, tui.c, tui.h: Function declarations and
1730 definitions, wrap long lines.
1732 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1733 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1734 Reformat block comments to GNU standard.
1736 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1737 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1738 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1739 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1740 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1741 spaces after periods, etc).
1743 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1744 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1745 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1746 tui-winsource.h: Whitespace changes, fix pointer declarations
1749 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1750 Michael Snyder <msnyder@access-company.com>
1752 * ada-lang.c (field_alignment): Guard against NULL.
1754 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1756 * MAINTAINERS (Global Maintainers): Add self.
1758 2007-08-14 Michael Snyder <msnyder@access-company.com>
1760 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1762 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1764 * varobj.c (cplus_describe_child): Guard against null.
1765 Use "NULL" instead of "0" to initialize pointers.
1767 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1769 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1770 to match any gdbarch with matching OSABI. Set default ABI and FPU
1771 after running the OSABI handler.
1773 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1775 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1776 * config/i386/linux.mt (TDEPFILES): ...to here.
1778 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1780 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1781 the 'silent' parameter and code to implement that.
1782 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1784 * win32-nat.c: Adjust.
1787 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1789 * breakpoint.c (update_breakpoints_after_exec): Don't
1790 set address to zero.
1792 2007-08-13 Michael Snyder <msnyder@access-company.com>
1794 * valops.c: Whitespace clean-up.
1796 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1798 * event-top.c (command_line_handler): Memory leak.
1800 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1801 No need to make copy.
1803 * source.c (find_source_lines): Require symtab 's'.
1805 2007-08-11 Michael Snyder <msnyder@access-company.com>
1807 * completer.c: Spelling fix in comments.
1809 2007-08-10 Michael Snyder <msnyder@access-company.com>
1811 * gdbtypes.c: Coding standard cleanup.
1812 * gdbtypes.c: Comment/whitespace cleanup.
1814 * stabsread.c (read_huge_number): Attempt to compute value before
1815 values that it depends on.
1817 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1818 (decode_objc): Use "NULL" instead of 0.
1819 (find_method): Ditto.
1820 (decode_all_digits): Ditto.
1821 (decode_dollar): Ditto.
1823 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1825 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1827 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1830 * completer.c: Comment/whitespace cleanup.
1832 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1834 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1836 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1838 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1839 allocated file descriptors.
1841 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1843 * Makefile.in: Minor cleanup throughout; add some missing variables,
1844 add some missing rules, remove some rules that are no longer needed,
1845 and fix the dependencies in several rules.
1847 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1849 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1850 (scm_lang_h, scm_tags_h): New.
1851 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1852 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1853 * defs.h (enum language): Add `language_scm'.
1855 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1858 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1860 * MAINTAINERS (Write After Approval): Add myself.
1862 2007-08-09 Michael Snyder <msnyder@access-company.com>
1864 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1866 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1868 * solib-som.c (som_relocate_section_addresses): Stop saving
1869 the $CODE$ section in the so_list structure.
1871 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1873 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1874 (xtensa_register_group_t): Add entries for coprocessors.
1875 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1876 (xtensa_add_reggroups): Likewise.
1877 (xtensa_register_reggroup_p): Likewise.
1878 (xtensa_coprocessor_register_group): New function.
1881 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1883 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1885 2007-08-08 Michael Snyder <msnyder@access-company.com>
1887 * target.c (target_read_string): Guard against null.
1889 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1891 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1892 (tui_set_layout_for_display_command): Mem leak.
1894 * top.c (command_line_input): Memory leak.
1896 * solib-svr4.c (open_symbol_file_object): Memory leak.
1897 (svr4_current_sos): Ditto.
1898 (enable_break): Ditto.
1900 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1902 * dwarf2read.c (add_partial_symbol): Memory leak.
1904 2007-08-06 Michael Snyder <msnyder@access-company.com>
1906 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1908 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1910 * macroexp.c (init_buffer): Remove testing code that overrides the
1911 caller's length guess.
1912 (gather_arguments): Use a larger initial size, now that the vector
1913 growth code has been exercised.
1915 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1917 * solib-target.c (solib_target_relocate_section_addresses): Add
1918 orig_delta to addr_high.
1920 2007-08-04 Michael Snyder <msnyder@access-company.com>
1922 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1924 * breakpoint.c (print_one_breakpoint): Off by one error.
1926 * tracepoint.c (add_register): Off by one error.
1927 (stringify_collection_list): Free malloc buffer.
1929 2007-08-03 Michael Snyder <msnyder@access-company.com>
1931 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1932 stop memory leak, straighten out cleanups.
1934 * jv-lang.c (java_link_class_type): Guard against NULL.
1936 2007-08-02 Michael Snyder <msnyder@access-company.com>
1938 * gdbtypes.c (create_set_type): Test should only be done within
1939 the preceeding if block. Otherwise, variable is uninitialized.
1941 * gdbtypes.c (check_typedef): Guard NULL.
1943 2007-08-01 Michael Snyder <msnyder@access-company.com>
1945 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1946 avoid dereference in lookup_cmd_1.
1948 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1949 clean up long lines.
1950 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1951 (tui_alloc_win_info): Ditto.
1952 (tui_add_content_elements): Ditto.
1953 * tui/tui-file.c (tui_file_magic): Ditto.
1955 2007-07-31 Michael Snyder <msnyder@access-company.com>
1957 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1958 True and false paths are mutually exclusive.
1960 * event-top.c (command_line_handler): Add pedantic return.
1962 * f-valprint.c (info_common_command): Bail out to prevent null
1963 pointer deref. Break up a long line.
1965 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1967 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1969 * printcmd.c (build_address_symbolic): Remove dead code and dead
1972 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1974 * linespec.c (minsym_found): Advance to the next line if possible.
1976 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1978 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1979 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1980 solib-svr4.o, and add solib-target.o
1982 2007-07-27 Michael Snyder <msnyder@access-company.com>
1984 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1986 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1988 * MAINTAINERS (Write After Approval): Add myself.
1990 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1992 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1995 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1997 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1999 2007-07-24 Michael Snyder <msnyder@access-company.com>
2001 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2002 'buffer' must cover both branches that call strcmp (Coverity).
2004 * stack.c (print_frame_args): Check return value of lookup_symbol.
2006 * ax-gdb.c (find_field): Guard against null ptr.
2008 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2010 * regformats/reg-spu.dat: Fix order of npc, id registers.
2012 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2014 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2015 sections should always go to the executable file.
2017 2004-07-20 Chris Dearman <chris@mips.com>
2019 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2020 prologue instructions.
2022 2007-07-20 Maciej W. Rozycki <macro@mips.com>
2024 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2027 2007-07-20 Chris Dearman <chris@mips.com>
2028 Maciej W. Rozycki <macro@mips.com>
2030 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2033 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2034 Daniel Jacobowitz <dan@codesourcery.com>
2036 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2037 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2039 * NEWS: Mention gdbserver DLL support.
2041 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2043 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2045 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2047 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2050 2007-07-13 Kevin Buettner <kevinb@redhat.com>
2052 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2055 2007-07-12 Kevin Buettner <kevinb@redhat.com>
2057 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2058 (mep_analyze_prologue): Add case for BRA instruction.
2060 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2062 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2064 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
2066 * breakpoint.c: Include "top.h".
2067 (breakpoint_1): Don't set convenience variable $_ if server prefix
2069 (_initialize_breakpoint): Describe this behaviour in command help.
2071 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2073 * solib-target.c (library_list_start_segment): Cast address to
2076 2007-07-06 Mark Kettenis <kettenis@gnu.org>
2078 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2079 for terminated processes.
2081 2007-07-05 Michael Snyder <msnyder@access-company.com>
2083 * event-top.c (cli_command_loop): Prompt string can (and should)
2084 be freed after call to readline (Coverity). Also move local var
2085 declarations into block where they are used.
2087 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2088 should) be freed after call to readline (Coverity). Also move
2089 local var declarations into block where they are used.
2091 2007-07-03 Andreas Schwab <schwab@suse.de>
2093 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2096 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2097 Thiago Bauermann <bauerman@br.ibm.com>
2098 Joseph S. Myers <joseph@codesourcery.com>
2099 Daniel Jacobowitz <dan@codesourcery.com>
2101 * remote.c (remote_check_symbols): Use
2102 gdbarch_convert_from_func_ptr_addr.
2103 * infcall.c (find_function_addr): Handle function descriptors
2104 without debugging information.
2105 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2106 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2107 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2108 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2109 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2110 allow SEC_CODE and SEC_DATA.
2111 (enable_break): Update calls. Pass current_target to solib_add.
2112 Use gdbarch_convert_from_func_ptr_addr.
2114 2007-07-03 Ilko Iliev <iliev@ronetix.at>
2115 Daniel Jacobowitz <dan@codesourcery.com>
2117 * symfile.c (print_transfer_performance): Avoid integer overflow.
2120 2007-07-03 Markus Deuling <deuling@de.ibm.com>
2122 * cp-namespace.c (lookup_symbol_file): Add block to
2123 lookup_symbol_global call.
2124 * Makefile.in (solist_h): Add dependency on symtab header.
2125 (symtab.o): Add dependency on solist header.
2126 * solib.c (solib_global_lookup): New function.
2127 * solib-svr4.c (scan_dyntag): Likewise.
2128 (elf_locate_base): Call helper routine scan_dyntag.
2129 (elf_lookup_lib_symbol): New function.
2130 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2131 * solist.h (symtab.h): New include.
2132 (struct target_so_ops): New member lookup_lib_global_symbol.
2133 (solib_global_lookup): New prototype.
2134 * symtab.c: New include solist.h.
2135 (lookup_objfile_from_block): New function.
2136 (lookup_global_symbol_from_objfile): New function.
2137 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2138 (lookup_symbol_global): Call library-specific lookup procedure.
2139 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2141 * NEWS: Document framework.
2143 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2145 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2148 * cli/cli-script.c (build_command_line): Update NULL check.
2150 2007-07-02 Michael Snyder <msnyder@access-company.com>
2152 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2154 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2156 * Makefile.in (XMLFILES): Add library-list.dtd.
2157 (ALLDEPFILES): Add solib-target.o.
2158 (solib-target.o): New rule.
2159 * remote.c (PACKET_qXfer_libraries): New constant.
2160 (remote_protocol_features): Add qXfer:libraries:read.
2161 (remote_wait): Recognize library stop replies.
2162 (remote_async_wait): Likewise. Fix typo.
2163 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2164 (init_remote_async_ops): Fix typo.
2165 (_initialize_remote): Register "set remote library-info-packet".
2166 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2167 * solib-target.c: New file.
2168 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2170 (info_sharedlibrary_command): Likewise.
2171 (solib_add_library, solib_remove_library): New.
2172 * solist.h (struct so_list): Replace textsection with addr_low and
2174 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2175 * NEWS: Describe new qXfer:libraries:read and shared library
2177 * features/library-list.dtd: New.
2179 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2181 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2182 (start_remote): Use STOP_QUIETLY_REMOTE.
2183 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2184 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2185 Update to match shared library event breakpoint support. Only
2186 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2187 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2188 * fork-child.c (startup_inferior): Do not set
2189 inferior_ignoring_startup_exec_events
2190 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2192 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2194 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2196 * breakpoint.c (insert_bp_location): Remove dead code
2197 (DISABLE_UNSETTABLE_BREAK).
2198 (disable_breakpoints_in_shlibs)
2199 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2201 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2203 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2204 Call insert_bp_location.
2206 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2208 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2211 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2213 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2216 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2218 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2219 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2220 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2221 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2222 to display_gdb_prompt.
2224 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2227 * target.c (memory_xfer_partial): Do not continue past targets with
2230 2007-06-30 Andreas Schwab <schwab@suse.de>
2232 * m68k-tdep.c (m68k_ps_type): New.
2233 (m68k_init_types): New.
2234 (m68k_register_type): Use m68k_ps_type for PS register.
2235 (_initialize_m68k_tdep): Call m68k_init_types.
2237 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2238 from the generic m68k arch.
2240 2007-06-28 Michael Snyder <msnyder@access-company.com>
2242 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2245 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2246 gdb_assert before using return value of find_thread_pid (Coverity).
2248 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2250 * cli/cli-script.c (build_command_line): Add null pointer guard
2253 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2255 * linux-thread-db.c (thread_db_attach): Delete.
2256 (thread_db_detach): Typo fix. Call target_mourn_inferior
2257 instead of fixing up proc_handle.
2258 (have_threads_callback, have_threads): New functions.
2259 (thread_db_wait): Remove dead proc_handle.pid check. Only
2260 translate PTIDs if we have registered threads. Check for new
2261 threads if we have none.
2262 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2263 (find_new_threads_callback): Only enable event reporting if TID == 0.
2264 (same_ptid_callback): New.
2265 (thread_db_get_thread_local_address): Check for new threads.
2266 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2267 or to_post_startup_inferior.
2269 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2271 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2272 is always active if SOFTWARE_SINGLE_STEP_P is true.
2273 (resume): Use gdbarch_software_single_step[_p] instead of
2274 SOFTWARE_SINGLE_STEP[_P].
2275 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2277 * gdbarch.sh (software_single_step): Remove target macro.
2278 * gdbarch.h, gdbarch.c: Regenerate.
2280 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2282 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2283 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2284 (struct gdbarch_swap, struct gdbarch_swap_registration,
2285 struct gdbarch_swap_registry, gdbarch_swap_registry,
2286 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2287 current_gdbarch_swap_in_hack): Remove.
2288 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2289 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2290 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2291 (deprecated_current_gdbarch_select_hack): Likewise.
2292 * gdbarch.h, gdbarch.c: Regenerate.
2294 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2296 * infrun.c (clear_proceed_status): Clean up stop_registers.
2297 (normal_stop): Allocate regcache for stop_registers.
2298 (struct inferior_status): Remove stop_registers member.
2299 (save_inferior_status): Do not save stop_registers.
2300 (restore_inferior_status): Do not restore stop_registers.
2301 (discard_inferior_status): Do not discard stop_registers.
2302 (build_infrun): Remove.
2303 (_initialize_infrun): Do not swap stop_registers.
2305 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2307 * remote.c (remote_address_masked): If remote_address_size is zero,
2308 default to target address size.
2309 (build_remote_gdbarch_data): Remove.
2310 (_initialize_remote): Do not swap remote_address_size.
2312 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2314 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2315 builtin_type_char, builtin_type_short, builtin_type_int,
2316 builtin_type_long, builtin_type_signed_char,
2317 builtin_type_unsigned_char, builtin_type_unsigned_short,
2318 builtin_type_unsigned_int, builtin_type_unsigned_long,
2319 builtin_type_float, builtin_type_double, builtin_type_long_double,
2320 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2321 builtin_type_bool, builtin_type_long_long,
2322 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2323 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2324 variable declaration with compatibility macro.
2325 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2326 builtin_type_char, builtin_type_short, builtin_type_int,
2327 builtin_type_long, builtin_type_signed_char,
2328 builtin_type_unsigned_char, builtin_type_unsigned_short,
2329 builtin_type_unsigned_int, builtin_type_unsigned_long,
2330 builtin_type_float, builtin_type_double, builtin_type_long_double,
2331 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2332 builtin_type_bool, builtin_type_long_long,
2333 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2334 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2335 (build_gdbtypes): Remove.
2336 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2337 opaque-type-resolution command here. Do not call
2338 deprecated_register_gdbarch_swap.
2340 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2342 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2343 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2344 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2346 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2347 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2348 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2349 (build_parse): Remove.
2350 (_initialize_parse): Do not call build_parse. Do not register
2351 msym_ types for gdbarch-swapping.
2353 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2354 instead of creating private type.
2356 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2357 (_initialize_xcoffread): Do not initialized them.
2358 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2360 * mdebugread.c (nodebug_func_symbol_type): Remove.
2361 (nodebug_var_symbol_type): Remove.
2362 (_initialize_mdebugread): Do not initialize them.
2363 (parse_symbol): Use builtin nodebug_ type instead of them.
2364 (parse_procedure): Likewise.
2366 2007-06-21 Chris Dearman <chris@mips.com>
2368 * printcmd.c (do_one_display): If display/i, start with an initial
2369 line feed to avoid bad layout if there is a branch delay slot.
2371 2007-06-21 Nigel Stephens <nigel@mips.com>
2372 Maciej W. Rozycki <macro@mips.com>
2374 * disasm.c (gdb_print_insn): Return the number of branch delay
2375 slot instructions too.
2376 * disasm.h (gdb_print_insn): Update prototype.
2377 * printcmd.c (branch_delay_insns): New variable to record the
2378 number of delay slot instructions after disassembling a branch.
2379 (print_formatted): Record the number of branch delay slot
2381 (do_examine): When disassembling, if the last instruction
2382 disassembled has any branch delay slots, then bump the count so
2383 that they get disassembled too.
2384 * tui/tui-disasm.c (tui_disassemble): Update the call to
2386 * NEWS: Document the new behaviour.
2388 2007-06-21 Andreas Schwab <schwab@suse.de>
2390 * regcache.c (write_pc_pid): Restore missing else.
2392 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2394 * regcache.c (regcache_print): Use get_current_regcache ()
2395 instead of current_regcache.
2397 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2400 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2401 instead of bfd_make_section_anyway.
2402 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2403 when clearing SEC_LOAD.
2405 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2407 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2408 registers for big-endian.
2410 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2412 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2413 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2414 * gdbarch.c, gdbarch.h: Regenerate.
2416 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2418 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2419 gdbarch_believe_pcc_promotion.
2420 * stabsread.c (define_symbol): Likewise.
2421 Remove unnecessary definition.
2422 * coffread.c (process_coff_symbol): Remove unnecessary code.
2423 * gdbarch.c, gdbarch.h: Regenerate.
2425 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2427 * configure.ac: Do not use ${objdir}.
2428 * configure: Regenerated.
2430 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2432 * gdbarch.sh (deprecated_register_size): Remove.
2433 * gdbarch.h, gdbarch.c: Regenerate.
2435 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2436 by INT_REGISTER_SIZE.
2437 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2438 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2439 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2440 set_gdbarch_deprecated_register_size.
2442 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2444 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2445 gdbarch_deprecated_fp_regnum.
2446 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2447 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2448 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2449 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2451 * gdbarch.c, gdbarch.h: Regenerate.
2453 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2455 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2456 gdbarch_extract_return_value.
2457 * value.c (generic_use_struct_convention): Likewise (comment).
2458 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2459 * arch-utils.c (legacy_return_value): Likewise.
2460 * arch-utils.h (legacy_return_value): Likewise (comment).
2461 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2462 gdbarch_store_return_value.
2463 * stack.c (return_command): Likewise (comment).
2464 * arch-utils.h (legacy_return_value): Likewise (comment).
2465 * arch-utils.c (legacy_return_value): Likewise.
2466 * gdbarch.c, gdbarch.h: Regenerate.
2468 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2470 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2471 gdbarch_deprecated_use_struct_convention.
2472 * arch-utils.c (legacy_return_value): Likewise.
2473 * gdbarch.c, gdbarch.h: Regenerate.
2475 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2477 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2478 gdbarch_deprecated_function_start_offset.
2479 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2480 * linespec.c (minsym_found): Likewise.
2481 * infrun.c (handle_inferior_event): Likewise.
2482 * infcall.c (find_function_addr): Likewise.
2483 * cli/cli-cmds.c (disassemble_command): Likewise.
2484 * gdbarch.c, gdbarch.h: Regenerate.
2486 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2488 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2489 gdbarch_deprecated_reg_struct_has_addr.
2490 * infcall.c (call_function_by_hand): Likewise.
2491 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2492 * gdbarch_deprecated_reg_struct_has_addr_p.
2493 * infcall.c (call_function_by_hand): Likewise.
2494 * gdbarch.c, gdbarch.h: Regenerate.
2496 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2498 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2499 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2500 (sh_gdbarch_init): Remove
2501 set_gdbarch_deprecated_extract_struct_value_address.
2502 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2503 (sh64_gdbarch_init): Remove
2504 set_gdbarch_deprecated_extract_struct_value_address.
2505 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2506 (ia64_gdbarch_init): Remove
2507 set_gdbarch_deprecated_extract_struct_value_address.
2508 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2509 (frv_gdbarch_init): Remove
2510 set_gdbarch_deprecated_extract_struct_value_address.
2511 * gdbarch.c, gdbarch.h: Regenerate.
2513 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2515 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2516 * v850-tdep.c (v850_unwind_sp): Likewise.
2517 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2518 * stack.c (frame_info): Likewise.
2519 * stabsread.c (define_symbol): Likewise.
2520 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2521 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2522 (sh_unwind_sp): Likewise.
2523 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2524 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2525 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2526 (rs6000_frame_cache): Likewise.
2527 * rs6000-nat.c (store_register): Likewise.
2528 * remote-mips.c (mips_wait): Likewise.
2529 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2530 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2531 (ppc64_sysv_abi_push_dummy_call): Likewise.
2532 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2533 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2534 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2535 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2536 * m32r-rom.c (m32r_supply_register): Likewise.
2537 * frame.c (frame_sp_unwind): Likewise.
2538 * mips-tdep.c (mips_insn16_frame_cache)
2539 (mips_insn32_frame_cache): Likewise (comment).
2540 * m68klinux-nat.c (supply_gregset): Likewise.
2541 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2542 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2543 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2544 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2545 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2546 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2547 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2548 (cris_register_type, crisv32_register_type)
2549 (cris_dwarf2_frame_init_reg): Likewise.
2550 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2551 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2552 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2553 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2555 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2556 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2557 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2558 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2559 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2560 * v850-tdep.c (v850_unwind_pc): Likewise.
2561 * stack.c (frame_info): Likewise.
2562 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2563 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2564 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2565 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2566 (sh_dsp_show_regs): Likewise.
2567 * shnbsd-tdep.c (shnbsd_supply_gregset)
2568 (shnbsd_collect_gregset): Likewise.
2569 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2570 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2571 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2572 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2573 (6000_register_reggroup_p, rs6000_unwind_pc)
2574 (rs6000_frame_cache): Likewise.
2575 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2576 (rs6000_store_inferior_registers): Likewise.
2577 * remote-mips.c (mips_wait, mips_load): Likewise.
2578 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2579 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2580 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2581 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2582 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2583 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2584 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2585 (store_ppc_registers, fill_gregset): Likewise.
2586 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2587 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2588 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2589 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2590 * m68klinux-nat.c (supply_gregset): Likewise.
2591 * irix5-nat.c (fill_gregset): Likewise.
2592 * i386-tdep.c (i386_unwind_pc): Likewise.
2593 * i386-linux-nat.c (i386_linux_resume): Likewise.
2594 * frame.c (get_prev_frame_1): Likewise.
2595 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2596 * dbug-rom.c (dbug_supply_register): Likewise.
2597 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2598 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2599 (cris_register_type, crisv32_register_type, crisv32_register_name)
2600 (cris_dwarf2_frame_init_reg, find_step_target)
2601 (cris_software_single_step, cris_supply_gregset)
2602 (cris_regnums): Likewise.
2603 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2604 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2605 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2606 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2607 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2609 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2610 * dbug-rom.c (dbug_supply_register): Likewise.
2611 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2612 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2613 * win32-nat.c (win32_resume): Likewise.
2614 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2615 * m68k-tdep.c (m68k_register_type): Likewise.
2616 * m68klinux-nat.c (supply_gregset): Likewise.
2618 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2619 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2620 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2621 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2622 (fv_reg_base_num, dr_reg_base_num): Likewise.
2623 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2624 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2625 (sh64_extract_return_value, sh64_store_return_value)
2626 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2627 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2628 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2629 (invalidate_cache): Likewise.
2630 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2631 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2632 (mipsnbsd_fill_fpreg): Likewise.
2633 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2634 (mipsnbsd_store_inferior_registers): Likewise.
2635 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2636 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2637 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2638 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2639 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2640 (fill_fpregset): Likewise.
2641 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2642 * i386-tdep.h (struct_return): Likewise (comment).
2643 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2644 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2645 (go32_store_registers): Likewise.
2646 * alpha-tdep.c (alpha_next_pc): Likewise.
2647 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2648 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2649 (alphabsd_store_inferior_registers): Likewise.
2650 * core-regset.c (fetch_core_registers): Likewise.
2651 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2653 * gdbarch.c, gdbarch.h: Regenerate.
2655 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2657 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2658 * dbxread.c (start_psymtab): Check HAVE_ELF.
2659 (aout_sym_fns): Likewise.
2660 * elfread.c (elf_symfile_segments): New.
2661 (elf_sym_fns): Add elf_symfile_segments.
2662 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2663 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2664 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2665 * somread.c (som_sym_fns): Use default_symfile_segments.
2666 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2667 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2668 (default_symfile_segments): New function.
2669 (syms_from_objfile): Update call to find_sym_fns.
2670 (symfile_get_segment_data, free_symfile_segment_data): New.
2671 (symfile_map_offsets_to_segments): New.
2672 (symfile_find_segment_sections): New.
2673 * symfile.h (struct symfile_segment_data): New.
2674 (struct sym_fns): Add sym_segments.
2675 (default_symfile_segments, symfile_get_segment_data)
2676 (free_symfile_segment_data): New prototypes.
2677 (symfile_map_offsets_to_segments): Likewise.
2678 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2679 * Makefile.in (COMMON_OBS): Remove elfread.o.
2680 (elf_internal_h): New.
2681 (elfread.o): Update.
2682 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2684 * config.in, configure: Regenerated.
2685 * NEWS: Mention qOffsets changes.
2687 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2689 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2690 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2691 Replace global variable declaration with compatibility macro.
2692 (struct builtin_m2_type): New data type.
2693 (builtin_m2_type): Add prototype.
2694 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2695 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2696 Remove global variables.
2697 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2698 (build_m2_types): New function.
2699 (m2_type_data): New variable.
2700 (builtin_m2_type): New function.
2701 (_initialize_m2_language): Do not build data types. Register
2702 m2_type_data per-gdbarch data.
2704 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2706 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2707 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2708 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2709 builtin_type_f_real_s8, builtin_type_f_real_s16,
2710 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2711 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2712 variable declaration with compatibility macro.
2713 (struct builtin_f_type): New data type.
2714 (builtin_f_type): Add prototype.
2715 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2716 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2717 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2718 builtin_type_f_real_s8, builtin_type_f_real_s16,
2719 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2720 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2721 (f_language_arch_info): Use builtin_f_type instead of variables.
2722 (build_fortran_types): Build builtin_f_type structure instead of
2723 setting global type variables.
2724 (f_type_data): New variable.
2725 (builtin_f_type): New function.
2726 (_initialize_f_language): Do not call build_fortran_types. Do not
2727 swap global type variables. Register f_type_data per-gdbarch data.
2729 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2731 * f-lang.c (_initialize_f_language): Do not initialize or
2732 swap builtin_type_string.
2734 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2736 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2737 value_of_builtin_frame_reg): Remove.
2738 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2739 inactive call to value_of_builtin_frame_reg.
2741 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2743 * gdbarch.sh (bfd_vma_bit): Remove.
2744 * gdbarch.c, gdbarch.h: Regenerate.
2746 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2747 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2748 (build_gdbtypes): Do not initialize it.
2749 (_initialize_gdbtypes): Do not swap it.
2751 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2753 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2754 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2755 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2756 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2757 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2758 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2759 builtin_type_vec64, builtin_type_vec128): Remove.
2760 (init_simd_type): Remove.
2761 (init_vector_type): Make global.
2762 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2763 (build_gdbtypes): Do not build vector types.
2764 (_initialize_gdbtypes): Do not swap vector types.
2765 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2766 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2767 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2768 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2769 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2770 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2771 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2772 (init_vector_type): Add prototype.
2774 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2775 i386_sse_type members.
2776 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2777 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2778 (i386_init_types): Do not build vector types.
2779 (i386_mmx_type, i386_sse_type): New functions.
2780 (i386_register_type): Call them instead of using global variables.
2781 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2782 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2783 of using global variable.
2785 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2786 and ppc_builtin_type_vec128 members.
2787 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2788 (rs6000_builtin_type_vec128): Likewise.
2789 (rs6000_register_type): Call them instead of using builtin_type_vec64
2790 and builtin_type_vec128.
2791 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2793 * spu-tdep.c (struct gdbarch_tdep): New data type.
2794 (spu_builtin_type_vec128): Remove variable.
2795 (spu_builtin_type_vec128): New function.
2796 (spu_register_type): Call it instead of using global variable.
2797 (spu_gdbarch_init): Allocate tdep structure.
2798 (spu_init_vector_type): Remove function.
2799 (_initialize_spu_tdep): Do not call it.
2801 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2803 * amd64-tdep.c (struct amd64_register_info): Remove.
2804 (amd64_register_info): Remove.
2805 (amd64_register_names): New static variable.
2806 (AMD64_NUM_REGS): Use amd64_register_names instead of
2807 amd64_register_info.
2808 (amd64_register_name): Likewise.
2809 (amd64_register_type): Do not refer to amd64_register_info.
2811 * s390-tdep.c (struct s390_register_info): Remove.
2812 (s390_register_info): Remove.
2813 (s390_register_name): Do not refer to s390_register_info.
2814 (s390_register_type): Likewise.
2816 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2817 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2818 (sparc64_register_names, sparc64_pseudo_register_names): New.
2819 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2820 sparc64_register_names and sparc64_pseudo_register_names instead of
2821 sparc64_register_info and sparc64_pseudo_register_info.
2822 (sparc64_register_name): Likewise.
2823 (sparc64_register_type): Do not refer to sparc64_register_info
2824 and sparc64_pseudo_register_info.
2826 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2828 * c-lang.c (cplus_builtin_types): Remove.
2829 (enum cplus_primitive_types): New data type.
2830 (cplus_language_arch_info): New function.
2831 (cplus_language_defn): Set la_language_arch_info member. Do not set
2832 la_builtin_type_vector and string_char_type members.
2834 * f-lang.c (f_builtin_types): Remove.
2835 (enum f_primitive_types): New data type.
2836 (f_language_arch_info): New function.
2837 (f_language_de): Set la_language_arch_info member. Do not set
2838 la_builtin_type_vector and string_char_type members.
2840 * m2-lang.c (m2_builtin_types): Remove.
2841 (enum m2_primitive_types): New data type.
2842 (m2_language_arch_info): New function.
2843 (m2_language_defn): Set la_language_arch_info member. Do not set
2844 la_builtin_type_vector and string_char_type members.
2846 * objc-lang.c (objc_builtin_types): Remove.
2847 (objc_language): Set la_language_arch_info member. Do not set
2848 la_builtin_type_vector and string_char_type members.
2850 * p-lang.c (pascal_builtin_types): Remove.
2851 (enum pascal_primitive_types): New data type.
2852 (pascal_language_arch_info): New function.
2853 (pascal_language_defn): Set la_language_arch_info member. Do not set
2854 la_builtin_type_vector and string_char_type members.
2856 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2858 * regcache.c (struct regcache): Add ptid_t member.
2859 (regcache_xmalloc): Initialize it.
2860 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2861 (regcache_dup): Likewise.
2862 (regcache_dup_no_passthrough): Likewise.
2863 (current_regcache): Make static.
2864 (registers_ptid): Remove variable.
2865 (get_thread_regcache): New function.
2866 (get_current_regcache): New function.
2867 (registers_changed): Implement by freeing current regcache.
2868 (regcache_raw_read): Do not refer to current_regcache. Set
2869 inferior_ptid to regcache->ptid while calling target routines.
2870 (regcache_raw_write): Likewise.
2871 (regcache_raw_supply): Do not refer to current_regcache.
2872 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2873 (write_pc_pid): Likewise.
2874 (build_regcache): Remove.
2875 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2876 or deprecated_register_gdbarch_swap. Do not initialize
2878 * regcache.h (get_current_regcache): Add prototype.
2879 (get_thread_regcache): Likewise.
2880 (current_regcache): Remove declaration.
2882 * corelow.c (core_open): Replace current_regcache by
2883 get_current_regcache ().
2884 * frame.c (frame_pop): Likewise.
2885 (put_frame_register): Likewise.
2886 (get_current_frame, create_new_frame): Likewise.
2887 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2888 * stack.c (return_command): Likewise.
2889 * infcall.c (call_function_by_hand): Likewise.
2890 * infrun.c (resume): Likewise.
2891 (save_inferior_status, restore_inferior_status): Likewise.
2892 * linux-fork.c (fork_load_infrun_state): Likewise.
2893 (fork_save_infrun_state): Likewise.
2894 * win32-nat.c (win32_resume): Likewise.
2895 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2896 * monitor.c (monitor_wait): Likewise.
2897 * remote.c (remote_wait): Likewise.
2898 * remote-mips.c (mips_wait): Likewise.
2900 * bsd-kvm.c (bsd_kvm_open): Likewise
2901 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2902 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2903 * i386-linux-nat.c (i386_linux_resume): Likewise.
2904 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2905 (ia64_linux_stopped_data_address): Likewise.
2907 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2908 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2909 * mep-tdep.c (current_me_module, current_options): Likewise.
2910 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2912 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2913 regcache instead of current_regcache. Call target_fetch_registers.
2914 (linux_nat_corefile_thread_callback): Update call site.
2915 (linux_nat_do_registers): Likewise.
2916 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2917 of current_regcache.
2918 (procfs_make_note_section): Likewise.
2919 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2920 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2921 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2922 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2924 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2926 * regcache.c (read_register, read_register_pid): Remove.
2927 (write_register, write_register_pid): Likewise.
2928 * regcache.h (read_register, read_register_pid): Remove prototype.
2929 (write_register, write_register_pid): Likewise.
2931 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2933 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2934 (write_pc): Likewise. Remove default implementation, add predicate.
2935 * gdbarch.c, gdbarch.h: Regenerate.
2936 * regcache.c (read_pc_pid): Use current regcache instead of calling
2938 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2940 (generic_target_write_pc): Remove.
2941 * inferior.h (generic_target_write_pc): Remove.
2942 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2943 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2944 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2945 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2946 * sh-tdep.c (sh_gdbarch_init): Likewise.
2947 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2949 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2950 argument. Use REGCACHE instead of calling read_register_pid.
2951 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2952 * hppa-tdep.c (hppa_read_pc): Likewise.
2953 * hppa-tdep.h (hppa_read_pc): Likewise.
2954 * ia64-tdep.c (ia64_read_pc): Likewise.
2955 * m32r-tdep.c (m32r_read_pc): Likewise.
2956 * mep-tdep.c (mep_read_pc): Likewise.
2957 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2958 * spu-tdep.c (spu_read_pc): Likewise.
2960 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2961 argument. Use REGCACHE instead of calling write_register_pid.
2962 * avr-tdep.c (avr_write_pc): Likewise.
2963 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2964 * hppa-tdep.c (hppa_write_pc): Likewise.
2965 * hppa-tdep.h (hppa_write_pc): Likewise.
2966 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2967 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2968 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2969 * ia64-tdep.c (ia64_write_pc): Likewise.
2970 * ia64-tdep.h (ia64_write_pc): Likewise.
2971 * m32r-tdep.c (m32r_write_pc): Likewise.
2972 * m88k-tdep.c (m88k_write_pc): Likewise.
2973 * mep-tdep.c (mep_write_pc): Likewise.
2974 * mips-tdep.c (mips_write_pc): Likewise.
2975 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2976 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2977 * sparc-tdep.c (sparc_write_pc): Likewise.
2978 * spu-tdep.c (spu_write_pc): Likewise.
2980 * mips-tdep.c (read_signed_register): Remove.
2981 (read_signed_register_pid): Likewise.
2982 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2983 Use REGCACHE instead of calling read_signed_register_pid.
2985 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2987 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2988 * gdbarch.c, gdbarch.h: Regenerate.
2989 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2990 (push_dummy_code): Likewise. Pass it to callee.
2991 (call_function_by_hand): Pass current regcache to push_dummy_code.
2993 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2994 argument. Use it instead of current_regcache.
2996 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2997 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2999 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3001 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3002 * gdbarch.c, gdbarch.h: Regenerate.
3003 * infrun.c (handle_inferior_event): Pass current frame to
3004 gdbarch_get_longjmp_target.
3006 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3007 Read registers from FRAME instead of using read_register.
3008 Use get_frame_arch instead of current_gdbarch.
3009 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3010 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3011 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3012 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3013 (mips64_linux_get_longjmp_target): Likewise.
3014 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3016 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3018 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3019 * gdbarch.c, gdbarch.h: Regenerate.
3020 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3021 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3022 * infrun.c (handle_inferior_event): Pass current frame to
3023 gdbarch_skip_trampoline_code and skip_language_trampoline.
3025 * language.c (unk_lang_trampoline): Add FRAME argument.
3026 (skip_language_trampoline): Add FRAME argument. Pass it to
3027 skip_trampoline callback.
3028 * language.h: Add forward declaration of struct frame_info.
3029 (struct language_defn): Add FRAME argument to skip_trampoline.
3030 (skip_language_trampoline): Add FRAME argument.
3031 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3032 to skip_trampoline callback.
3033 * cp-abi.h: Add forward declaration of struct frame_info.
3034 (cplus_skip_trampoline): Add FRAME argument.
3035 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3036 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3037 to gdbarch_skip_trampoline_code.
3038 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3039 to gdbarch_skip_trampoline_code.
3041 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3042 * symtab.h (find_solib_trampoline_target): Likewise.
3043 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3044 find_solib_trampoline_target.
3046 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3047 from FRAME instead of calling read_register.
3049 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3050 argument. Read registers from FRAME instead of using read_register.
3051 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3052 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3054 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3057 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3059 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3060 registers from FRAME instead of using read_signed_register.
3062 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3064 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3065 instead of using read_register.
3066 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3067 ppc64_standard_linkage_target.
3068 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3069 Pass it to find_solib_trampoline_target. Read registers from FRAME
3070 instead of using read_register.
3072 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3075 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3077 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3079 * gdbarch.c, gdbarch.h: Regenerate.
3080 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3082 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3083 registers from FRAME instead of using read_register.
3084 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3085 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3086 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3089 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3090 from FRAME instead of using read_register.
3091 (thumb_get_next_pc): Likewise.
3092 (arm_get_next_pc): Likewise.
3093 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3094 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3095 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3098 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3099 from FRAME instead of using read_register.
3100 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3101 to find_step_target.
3103 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3104 from FRAME instead of using read_register / read_signed_register.
3105 (extended_mips16_next_pc): Likewise.
3106 (mips16_next_pc): Likewise.
3107 (mips_next_pc): Likewise.
3108 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3109 to mips_next_pc. Use get_frame_pc instead of read_pc.
3110 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3113 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3114 of current frame. Read registers from FRAME.
3115 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3116 branch_dest. Use get_frame_pc instead of read_pc.
3117 (rs6000_software_single_step): Likewise.
3118 (bl_to_blrl_insn_p): Do not call branch_dest.
3119 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3122 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3123 Read registers from FRAME instead of current regcache.
3124 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3125 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3126 * sparc-tdep.c (sparc_address_from_register): Remove.
3127 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3128 GDBARCH. Pass FRAME to step_trap callback.
3129 (sparc_step_trap): Add FRAME argument.
3130 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3131 to sparc_analyze_control_transfer. Read registers from FRAME instead
3132 of calling sparc_address_from_register.
3133 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3135 (sparc_address_from_register): Remove prototype.
3136 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3137 (sparcnbsd_step_trap): Add FRAME argument.
3139 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3140 by FRAME. Read registers from FRAME instead of REGCACHE.
3142 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3144 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3145 instead of calling read_register.
3147 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3148 calling write_register.
3150 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3151 calling write_register.
3153 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3154 instead of calling read_register.
3155 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3156 instead of calling read_register and write_register.
3158 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3159 instead of current_regcache.
3161 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3162 of calling write_register.
3163 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3164 parameter instead of current_regcache.
3166 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3167 instead of calling read_register.
3168 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3169 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3170 (mips_n32n64_push_dummy_call): Likewise.
3171 (mips_o32_push_dummy_call): Likewise.
3172 (mips_o64_push_dummy_call): Likewise.
3174 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3175 parameter instead of current_regcache.
3177 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3178 Use it instead of read_register and write_register.
3179 (xtensa_register_read_masked): Likewise.
3180 (xtensa_pseudo_register_read): Update call.
3181 (xtensa_pseudo_register_write): Likewise.
3182 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3183 instead of calling read_register.
3184 (xtensa_push_dummy_call): Update comment.
3186 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3188 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3189 by frame_unwind_register_signed calls.
3190 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3191 frame allocations when called with NULL NEXT_FRAME parameter.
3192 (read_next_frame_reg): Remove.
3194 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3195 instead of reading the FPSCR register.
3196 (sh_frame_cache): Pass unwound FPSCR register value to
3197 sh_analyze_prologue.
3198 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3200 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3201 instead of reading the CTBP register.
3202 (v850_frame_cache): Pass unwound CTBP register value to
3203 v850_analyze_prologue.
3205 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3207 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3208 * sh-tdep.c (sh_show_regs): Likewise.
3209 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3210 (sh_generic_show_regs): Add FRAME parameter. Use register
3211 values from that frame instead of calling read_register.
3212 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3213 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3214 sh_dsp_show_regs): Likewise.
3215 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3216 sh64_show_regs): Likewise.
3218 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3220 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3221 current regcache instead of calling read_register.
3223 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3225 * mep-tdep.c (current_me_module): Read from current regcache
3226 instead of calling read_register.
3227 (current_options): Likewise.
3229 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3231 * cris-tdep.c (cris_stopped_data_address): Read register values
3232 from current frame instead of calling read_register.
3233 * frv-tdep.c (frv_stopped_data_address): Likewise.
3235 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3237 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3238 instead of write_register (PC_REGNUM, ...).
3240 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3242 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3243 explaining why the PC adjustment code is necessary.
3245 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3247 * m68k-tdep.h (enum m68k_flavour): New.
3248 (struct gdbarch_tdep): New fields
3249 float_return, flavour and fpregs_present.
3250 * m68k-tdep.c (m68k_register_type): Use
3251 fpregs_present and conditionalize floating
3252 registers type on flavour.
3253 (m68k_register_names): New.
3254 (m68k_register_name): Use the above.
3255 (m68k_convert_register_p): Consult fpregs_present.
3256 (m68k_register_to_value, m68k_value_to_register):
3257 Use register_type to obtain the type of floating
3259 (m68k_svr4_extract_return_value): Check tdep->float_return.
3260 Use register_type to get the type of floating
3262 (m68k_svr4_store_return_value): Likewise.
3263 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3264 (m68k_analyze_register_saves): Likewise.
3265 (m68k_gdbarch_init): Extract infromation
3266 from XML description, if present. Guess coldfire by
3267 looking at the file, if present. Conditionalize
3268 setting of long double format. Set decr_pc_after_break
3269 to 2 on coldfire and fido. Enable XML-driven
3270 register description.
3271 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3272 size of tdep->fpreg_type, as opposed to hardcoded value.
3273 * Makefile.in (m68k-tdep.o): Update dependencies.
3275 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3277 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3278 qXfer:spu:write remote packet types.
3280 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3282 * xml-tdesc.c (tdesc_start_target): New.
3283 (target_attributes): New.
3284 (tdesc_elements): Use it.
3285 * features/gdb-target.dtd: Add #FIXED version attribute for
3288 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3290 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3292 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3294 * fork-child.c (fork_inferior): Update comment.
3296 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3298 * features/Makefile: Generate regformats for mips-linux and
3300 * features/sort-regs.xsl: Correct typo.
3301 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3302 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3305 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3307 * config/mips/linux.mh (TDEP_XML): New.
3308 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3309 * mips-linux-nat.c (mips_linux_register_addr): Handle
3310 MIPS_RESTART_REGNUM.
3311 (mips64_linux_register_addr): Likewise.
3312 (super_xfer_partial, mips_linux_xfer_partial): New.
3313 (_initialize_mips_linux_nat): Add them to the target_ops.
3314 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3315 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3316 (mips_linux_o32_sigframe_init)
3317 (mips_linux_n32n64_sigframe_init): Likewise.
3318 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3319 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3320 "org.gnu.gdb.mips.linux" feature.
3321 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3322 (mips_linux_restart_reg_p): New prototype.
3323 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3324 initialization routine.
3325 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3327 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3329 * Makefile.in (mips-tdep.o): Update.
3330 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3331 (mips_n32_n64_aliases, mips_register_aliases): New.
3332 (mips_register_name): Call tdesc_register_name.
3333 (mips_tdesc_register_reggroup_p): New.
3334 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3335 (mips_gdbarch_init): Add target-described register support.
3336 Register aliases for register names.
3337 * target-descriptions.c (tdesc_register_name): Make global.
3338 (tdesc_register_in_reggroup_p): New function, broken out from
3339 tdesc_register_reggroup_p.
3340 (tdesc_register_reggroup_p): Use it.
3341 * target-descriptions.h (tdesc_register_name)
3342 (tdesc_register_in_reggroup_p): New prototypes.
3343 * NEWS: Correct formatting. Mention MIPS register support.
3344 * features/mips-cp0.xml, features/mips-fpu.xml,
3345 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3346 features/mips64-cpu.xml: New files.
3348 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3350 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3351 * valops.c (value_cast): Likewise.
3352 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3353 * ui-out.c (ui_out_field_core_addr): Likewise.
3354 * tracepoint.c (tracepoints_info): Likewise.
3355 * symtab.c (print_msymbol_info): Likewise.
3356 * solib-irix.c (irix_current_sos)
3357 (irix_open_symbol_file_object): Likewise.
3358 * remote.c (build_remote_gdbarch_data): Likewise.
3359 * prologue-value.c (make_pv_area): Likewise.
3360 * procfs.c (info_mappings_callback): Likewise.
3361 * printcmd.c (print_scalar_formatted)
3362 (deprecated_print_address_numeric): Likewise.
3363 * memattr.c (mem_info_command): Likewise.
3364 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3365 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3366 * exec.c (print_section_info): Likewise.
3367 * dwarf2read.c (read_subrange_type): Likewise.
3368 * dwarf2loc.c (find_location_expression): Likewise.
3369 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3370 (signed_address_type, execute_stack_op): Likewise.
3371 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3372 * gdbarch.c, gdbarch.h: Regenerate.
3374 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3376 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3377 * arch-utils.c (show_architecture): Likewise.
3378 * remote-mips.c (mips_open): Likewise
3379 * nto-tdep.c (nto_find_and_open_solib)
3380 (nto_init_solib_absolute_prefix): Likewise.
3381 * nto-procfs (procfs_open): Likewise.
3382 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3383 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3384 * gdbarch.c, gdbarch.h: Regenerate.
3386 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3388 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3389 * gdbtypes.c (build_flt): Likewise.
3390 * gdbarch.c, gdbarch.h: Regenerate.
3392 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3394 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3395 gdbarch_breakpoint_from_pc.
3396 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3397 * remote.c (remote_insert_breakpoint)
3398 (remote_insert_hw_breakpoint): Likewise.
3399 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3400 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3401 * breakpoint.h (bp_target_info): Likewise (comment).
3402 * breakpoint.c (read_memory_nobpt): Likewise.
3403 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3404 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3405 * gdbarch.c, gdbarch.h: Regenerate.
3407 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3409 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3410 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3411 * solib-pa64.c (read_dynamic_info): Likewise.
3412 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3413 * solib.c (info_sharedlibrary_command): Likewise.
3414 * s390-nat.c (SUBOFF): Likewise.
3415 * p-valprint.c (pascal_val_print): Likewise.
3416 * procfs.c (info_proc_mappings): Likewise.
3417 * printcmd.c (decode_format): Likewise.
3418 * nto-tdep.c (nto_truncate_ptr): Likewise.
3419 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3420 (mips64_linux_get_longjmp_target): Likewise.
3421 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3422 * jv-valprint.c (java_value_print): Likewise.
3423 * jv-lang.c (get_java_object_header_size): Likewise.
3424 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3425 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3426 (hppa_hpux_unwind_adjust_stub): Likewise.
3427 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3428 * gdbtypes.c (make_pointer_type, make_reference_type)
3429 (smash_to_memberptr_type): Likewise.
3430 * gdbarch.c, gdbarch.h: Regenerate.
3432 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3434 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3435 (print_gp_register_row): Stop before printing a register bigger
3436 than the ABI register size.
3437 (mips_print_registers_info): Update call to mips_print_register.
3439 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3441 * expression.h (enum exp_opcode): Document a register name for
3443 * parse.c (write_dollar_variable): Write the register name for
3445 (operator_length_standard): Expect the register name following
3447 * ada-lang.c (resolve_subexp): Likewise.
3448 * ax-gdb.c (gen_expr): Likewise.
3449 * eval.c (evaluate_subexp_standard): Likewise.
3450 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3452 * tracepoint.c (encode_actions): Likewise.
3454 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3456 * utils.c (set_screen_size): Use INT_MAX for default columns.
3458 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3460 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3461 qXfer:spu:write packet types.
3463 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3465 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3466 * gdbarch.c, gdbarch.h: Regenerate.
3468 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3470 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3471 gdbarch_stab_reg_to_regnum.
3472 * stabsread.c (define_symbol): Likewise.
3473 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3474 gdbarch_ecoff_reg_to_regnum.
3475 * mdebugread.c (parse_symbol): Likewise.
3476 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3477 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3478 gdbarch_dwarf_reg_to_regnum.
3479 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3480 * coffread.c (process_coff_symbol): Likewise.
3481 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3482 gdbarch_dwarf2_reg_to_regnum.
3483 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3484 (locexpr_describe_location): Likewise.
3485 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3486 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3487 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3488 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3489 * gdbarch.c, gdbarch.h: Regenerate.
3491 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3493 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3494 gdbarch_smash_text_address.
3495 * somread.c (som_symtab_read): Likewise.
3496 * elfread.c (record_minimal_symbol): Likewise.
3497 * dbxread.c (process_one_symbol): Likewise.
3498 * coffread.c (coff_symtab_read): Likewise.
3499 * gdbarch.c, gdbarch.h: Regenerate.
3501 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3503 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3504 * findvar.c (value_from_register): Likewise.
3505 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3506 * valops.c (value_assign): Likewise.
3507 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3508 gdbarch_convert_register_p.
3509 * findvar.c (value_from_register): Likewise.
3510 * valops.c (value_assign): Likewise.
3511 * gdbarch.c, gdbarch.h: Regenerate.
3513 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3515 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3516 gdbarch_register_sim_regno.
3517 * sim-regno.h (sim_regno): Likewise (comment).
3518 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3519 * gdbarch.c, gdbarch.h: Regenerate.
3521 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3523 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3524 gdbarch_virtual_frame_pointer.
3525 * tracepoint.c (encode_actions): Likewise.
3526 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3527 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3528 * gdbarch.c, gdbarch.h: Regenerate.
3530 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3532 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3533 * p-lang.c (pascal_create_fundamental_type): Likewise.
3534 * objc-lang.c (objc_create_fundamental_type): Likewise.
3535 * mdebugread.c (_initialize_mdebugread): Likewise.
3536 * m2-lang.c (m2_create_fundamental_type)
3537 (_initialize_m2_language): Likewise.
3538 * gdbtypes.c (build_gdbtypes): Likewise.
3539 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3540 * doublest.c (floatformat_from_length): Likewise.
3541 * c-lang.c (c_create_fundamental_type): Likewise.
3542 * ada-lang.c (ada_create_fundamental_type)
3543 (ada_language_arch_info): Likewise.
3544 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3545 * value.c (unpack_double): Likewise (comment).
3546 * gdbtypes.c (build_gdbtypes): Likewise.
3547 * doublest.c (floatformat_from_length): Likewise.
3548 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3549 * valarith.c (value_binop): Likewise.
3550 * p-lang.c (pascal_create_fundamental_type): Likewise.
3551 * objc-lang.c (objc_create_fundamental_type): Likewise.
3552 * mdebugread.c (_initialize_mdebugread): Likewise.
3553 * m2-lang.c (m2_create_fundamental_type): Likewise.
3554 * gdbtypes.c (build_gdbtypes): Likewise.
3555 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3556 * doublest.c (floatformat_from_length): Likewise.
3557 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3558 * c-lang.c (c_create_fundamental_type): Likewise.
3559 * ada-lex.l (processReal): Likewise.
3560 * ada-lang.c (ada_create_fundamental_type)
3561 (ada_language_arch_info): Likewise.
3562 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3563 * value.c (unpack_double): Likewise (comment).
3564 * gdbtypes.c (build_gdbtypes): Likewise.
3565 * doublest.c (floatformat_from_length): Likewise.
3566 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3567 gdbarch_long_double_bit.
3568 * p-lang.c (pascal_create_fundamental_type): Likewise.
3569 * objc-lang.c (objc_create_fundamental_type): Likewise.
3570 * m2-lang.c (m2_create_fundamental_type): Likewise.
3571 * gdbtypes.c (build_gdbtypes): Likewise.
3572 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3573 * doublest.c (floatformat_from_length): Likewise.
3574 * c-lang.c (c_create_fundamental_type): Likewise.
3575 * ada-lex.l (processReal): Likewise.
3576 * ada-lang.c (ada_create_fundamental_type)
3577 (ada_language_arch_info): Likewise.
3578 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3579 gdbarch_long_double_format.
3580 * gdbtypes.c (build_gdbtypes): Likewise.
3581 * doublest.c (floatformat_from_length): Likewise.
3582 * gdbarch.c, gdbarch.h: Regenerate.
3584 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3586 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3587 * ada-lang.c (ada_create_fundamental_type)
3588 (ada_language_arch_info): Likewise.
3589 * c-lang.c (c_create_fundamental_type): Likewise.
3590 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3591 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3592 * m2-lang.c (m2_create_fundamental_type): Likewise.
3593 * objc-lang.c (objc_create_fundamental_type): Likewise.
3594 * p-lang.c (pascal_create_fundamental_type): Likewise.
3595 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3596 * c-exp.y (parse_number): Likewise.
3597 * objc-exp.y (parse_number): Likewise.
3598 * ada-lex.l (processInt): Likewise.
3599 * f-exp.y (parse_number): Likewise.
3600 * p-exp.y (parse_number): Likewise.
3601 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3602 (gdbtypes_post_init, build_gdbtypes): Likewise.
3603 * p-lang.c (pascal_create_fundamental_type): Likewise.
3604 * parse.c (build_parse): Likewise.
3605 * xcoffread.c (_initialize_xcoffread): Likewise.
3606 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3607 (read_range_type): Likewise.
3608 * objc-lang.c (objc_create_fundamental_type): Likewise.
3609 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3610 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3611 (m2_create_fundamental_type): Likewise.
3612 * c-lang.c (c_create_fundamental_type): Likewise.
3613 * coffread.c (coff_read_enum_type): Likewise.
3614 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3615 * dwarf2read.c (new_symbol): Likewise.
3616 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3617 * c-exp.y (parse_number): Likewise.
3618 * objc-exp.y (parse_number): Likewise.
3619 * ada-lex.l (processInt): Likewise.
3620 * f-exp.y (parse_number): Likewise.
3621 * p-exp.y (parse_number): Likewise.
3622 * valarith.c (value_binop): Likewise.
3623 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3624 * ada-lang.c (ada_create_fundamental_type)
3625 (ada_language_arch_info): Likewise.
3626 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3627 * symfile.c (TARGET_LONG_BYTES): Likewise.
3628 * p-lang.c (pascal_create_fundamental_type): Likewise.
3629 * objc-lang.c (objc_create_fundamental_type): Likewise.
3630 * m2-lang.c (m2_create_fundamental_type): Likewise.
3631 * f-lang.c (f_create_fundamental_type): Likewise.
3632 * c-lang.c (c_create_fundamental_type): Likewise.
3633 * coffread.c (decode_base_type): Likewise.
3634 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3635 * c-exp.y (parse_number): Likewise.
3636 * objc-exp.y (parse_number): Likewise.
3637 * p-exp.y (parse_number): Likewise.
3638 * ada-lang.c (ada_create_fundamental_type)
3639 (ada_language_arch_info): Likewise.
3640 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3641 * stabsread.c (read_range_type): Likewise.
3642 * p-lang.c (pascal_create_fundamental_type): Likewise.
3643 * objc-lang.c (objc_create_fundamental_type): Likewise.
3644 * m2-lang.c (m2_create_fundamental_type): Likewise.
3645 * f-lang.c (f_create_fundamental_type): Likewise.
3646 * c-lang.c (c_create_fundamental_type): Likewise.
3647 * gdbarch.c, gdbarch.h: Regenerate.
3649 2007-06-12 Andreas Schwab <schwab@suse.de>
3651 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3652 (struct frame_unwind): Add dealloc_cache.
3653 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3655 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3656 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3657 (libunwind_frame_unwind): Set dealloc_cache.
3658 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3660 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3661 Markus Deuling <deuling@de.ibm.com>
3663 * remote.c (remote_write_qxfer): New function.
3664 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3665 (remote_read_qxfer): Do not cache empty objects.
3666 (_initialize_remote): Add PACKET_qXfer_spu_read and
3667 PACKET_qXfer_spu_write.
3669 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3671 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3672 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3674 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3675 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3676 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3677 * spu-tdep.c (infospucmdlist): New variable.
3678 (spu_register_name): Handle additional pseudo registers.
3679 (spu_register_type): Likewise.
3680 (spu_pseudo_register_read): Likewise.
3681 (spu_pseudo_register_write): Likewise.
3682 (spu_pseudo_register_read_spu): New function.
3683 (spu_pseudo_register_write_spu): Likewise.
3684 (info_spu_event_command): New function.
3685 (info_spu_signal_command): Likewise.
3686 (info_spu_mailbox_list): Likewise.
3687 (info_spu_mailbox_command): Likewise.
3688 (spu_mfc_get_bitfield): Likewise.
3689 (info_spu_dma_cmdlist): Likewise.
3690 (info_spu_dma_command): Likewise.
3691 (info_spu_proxydma_command): Likewise.
3692 (info_spu_command): Likewise.
3693 (_initialize_spu_tdep): Install "info spu" commands.
3695 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3697 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3698 accessing non-seekable spufs files.
3700 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3702 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3703 gdbarch_skip_trampoline_code.
3704 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3705 * objc-lang.c (objc_skip_trampoline)
3706 (objc_submethod_helper_data): Likewise.
3707 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3708 * infrun.c (handle_inferior_event): Likewise.
3709 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3710 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3711 gdbarch_in_solib_return_trampoline.
3712 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3713 * infrun.c (handle_inferior_event): Likewise.
3714 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3715 * gdbarch.c, gdbarch.h: Regenerate.
3717 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3719 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3720 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3721 * linespec.c (minsym_found): Likewise.
3722 * infrun.c (step_into_function): Likewise.
3723 * gdbarch.c, gdbarch.h: Regenerate.
3725 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3727 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3728 * valops.c (value_allocate_space_in_inferior): Likewise.
3729 * gdbarch.c, gdbarch.h: Regenerate.
3731 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3733 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3734 gdbarch_memory_insert_breakpoint.
3735 * mem-break.c (memory_insert_breakpoint): Likewise.
3736 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3737 gdbarch_memory_remove_breakpoint.
3738 * mem-break.c (memory_remove_breakpoint): Likewise.
3739 * gdbarch.c, gdbarch.h: Regenerate.
3741 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3743 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3744 gdbarch_fetch_tls_load_module_address.
3745 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3746 gdbarch_fetch_tls_load_module_address_p.
3747 * gdbarch.c, gdbarch.h: Regenerate.
3749 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3751 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3752 gdbarch_decr_pc_after_break.
3753 * tracepoint.c (trace_dump_command): Likewise.
3754 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3755 * linux-thread-db.c (check_event): Likewise.
3756 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3757 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3758 * frame.h: Likewise (comment).
3759 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3760 * aix-thread.c (aix_thread_wait): Likewise.
3761 * gdbarch.c, gdbarch.h: Regenerate.
3763 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3765 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3766 gdbarch_address_class_type_flags.
3767 * dwarf2read.c (read_tag_pointer_type): Likewise.
3768 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3769 gdbarch_address_class_type_flags_p.
3770 * dwarf2read.c (read_tag_pointer_type): Likewise.
3771 * gdbarch.c, gdbarch.h: Regenerate.
3773 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3775 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3776 * value.c (value_as_address): Likewise (comment).
3777 * remote-mips.c (common_breakpoint): Likewise.
3778 * regcache.c (read_pc_pid): Likewise.
3779 * printcmd.c (do_one_display): Likewise.
3780 * monitor.c (monitor_write_memory, monitor_read_memory)
3781 (monitor_insert_breakpoint): Likewise.
3782 * mips-tdep.c (heuristic_proc_start): Likewise.
3783 * infrun.c (insert_step_resume_breakpoint_at_frame)
3784 (insert_step_resume_breakpoint_at_caller): Likewise.
3785 * buildsym.c (record_line): Likewise.
3786 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3787 (arm_get_next_pc): Likewise.
3788 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3789 (store_regs): Likewise.
3790 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3791 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3792 * gdbarch.c, gdbarch.h: Regenerate.
3794 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3796 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3797 * tracepoint.c (scope_info): Likewise.
3798 * target.c (debug_print_register): Likewise.
3799 * stack.c (frame_info): Likewise.
3800 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3801 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3802 (sh64_media_print_registers_info)
3803 (sh64_compact_print_registers_info): Likewise.
3804 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3805 * remote-sim.c (gdbsim_fetch_register): Likewise.
3806 * remote.c (packet_reg): Likewise (comment).
3807 * reggroups.c (default_register_reggroup_p): Likewise.
3808 * regcache.c (regcache_dump): Likewise.
3809 * printcmd.c (address_info): Likewise.
3810 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3811 * mt-dep.c (mt_registers_info): Likewise.
3812 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3813 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3814 (mips_read_fp_register_double, mips_print_fp_register)
3815 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3816 (mips_register_sim_regno): Likewise.
3817 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3818 * inf-ptrace.c (inf_ptrace_fetch_register)
3819 (inf_ptrace_store_register): Likewise.
3820 * infcmd.c (default_print_registers_info): Likewise.
3821 * ia64-linux-nat.c (ia64_linux_fetch_register)
3822 (ia64_linux_store_register): Likewise.
3823 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3824 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3825 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3826 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3827 (hppa_hpux_store_register): Likewise.
3828 * findvar.c (locate_var_value): Likewise.
3829 * dwarf2loc.c (locexpr_describe_location): Likewise.
3830 * dwarf2-frame.c (execute_cfa_program): Likewise.
3831 * arm-tdep.c (arm_push_dummy_call): Likewise.
3832 * arch-utils.c (legacy_register_sim_regno): Likewise.
3833 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3834 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3835 * mi/mi-main.c (mi_cmd_data_list_register_names)
3836 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3837 (mi_cmd_data_write_register_values): Likewise.
3838 * gdbarch.c, gdbarch.h: Regenerate.
3840 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3842 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3844 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3846 * remote.c (process_g_packet): Don't check size.
3847 * gdbarch.sh: Remove register_bytes_ok.
3848 * gdbarch.c: Regenerated.
3849 * gdbarch.h: Regenerated.
3850 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3851 (m68k_register_bytes_ok): Remove.
3852 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3854 2007-06-06 Andreas Schwab <schwab@suse.de>
3856 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3857 (destroy_addr_space_name): Define.
3858 (libunwind_load): Get address of destroy_addr_space function.
3859 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3860 returning unsuccessfully.
3861 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3863 (libunwind_sigtramp_frame_sniffer): Likewise.
3864 (libunwind_get_reg_special): Likewise.
3866 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3868 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3869 gdbarch_fetch_pointer_argument.
3870 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3871 * gdbarch.c, gdbarch.h: Regenerate.
3873 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3875 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3876 gdbarch_have_nonsteppable_watchpoint.
3877 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3878 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3879 gdbarch_cannot_step_breakpoint.
3880 * infrun.c (resume): Likewise.
3881 * gdbarch.c, gdbarch.h: Regenerate.
3883 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3885 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3886 * stack.c (print_frame_args): Likewise.
3887 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3888 * stack.c (print_args_stub, frame_info): Likewise.
3889 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3890 * stack.c (print_args_stub, frame_info): Likewise.
3891 * gdbarch.c, gdbarch.h: Regenerate.
3893 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3895 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3896 gdbarch_coff_make_msymbol_special.
3897 * coffread.c (coff_symtab_read): Likewise.
3898 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3899 gdbarch_elf_make_msymbol_special.
3900 * elfread.c (elf_symtab_read): Likewise.
3901 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3902 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3903 * gdbarch.c, gdbarch.h: Regenerate.
3905 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3907 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3908 gdbarch_frame_red_zone_size.
3909 * gdbarch.c, gdbarch.h: Regenerate.
3911 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3913 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3914 * infcall.c (call_function_by_hand): Likewise.
3915 * gcore.c (derive_stack_segment): Likewise.
3916 * frame.c (frame_id_inner): Likewise.
3917 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3918 * ada-lang.c (ensure_lval): Likewise.
3919 * gdbarch.c, gdbarch.h: Regenerate.
3921 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3923 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3924 gdbarch_address_to_pointer.
3925 * findvar.c (store_typed_address): Likewise.
3926 * gdbtypes.c (make_pointer_type): Likewise (comment).
3927 * procfs.c (procfs_address_to_host_pointer): Likewise.
3928 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3929 (value_of_builtin_frame_fp_reg): Likewise.
3930 (value_of_builtin_frame_pc_reg): Likewise.
3931 * utils.c (paddress): Likewise (comment).
3932 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3933 gdbarch_pointer_to_address.
3934 * findvar.c (extract_typed_address): Likewise.
3935 * gdbtypes.c (make_pointer_type): Likewise (comment).
3936 * valops.c (value_cast): Likewise (comment).
3937 * gdbarch.c, gdbarch.h: Regenerate.
3939 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3941 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3942 * infrun.c (handle_inferior_event): Likewise.
3943 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3944 gdbarch_get_longjmp_target_p.
3945 * breakpoint.c (breakpoint_re_set): Likewise.
3946 * infrun.c (handle_inferior_event): Likewise.
3947 * gdbarch.c, gdbarch.h: Regenerate.
3949 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3951 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3952 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3953 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3954 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3955 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3956 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3957 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3958 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3959 current_ex_event, child_get_current_exception_event): Remove.
3960 (hppa_hpux_inferior_created): Remove.
3961 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3963 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3964 (deprecated_exception_support_initialized): Remove.
3965 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3966 (deprecated_exception_support_initialized): Remove.
3967 (breakpoint_init_inferior): Remove handling of non-zero
3968 deprecated_exception_catchpoints_are_fragile.
3970 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3971 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3972 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3973 deprecated_hp_som_som_object_present.
3974 * eval.c (evaluate_subexp_standard): Likewise.
3975 * valops.c (value_cast): Likewise.
3977 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3978 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3979 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3981 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3983 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3984 (struct objfile): Remove import_list, import_list_size,
3985 export_list, export_list_size members.
3986 (is_in_import_list): Remove prototype.
3987 * objfiles.c (is_in_import_list): Remove.
3988 * somread.c (init_import_symbols, init_export_symbols): Remove.
3989 (som_symfile_read): Do not call init_import_symbols. Do not
3990 set objfile->export_list and objfile->export_list_size.
3992 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3994 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3995 Use the original objfile if necessary.
3997 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3999 * defs.h (ldirname): New prototype.
4000 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4002 * utils.c (ldirname): New function.
4003 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4005 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4007 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4009 2007-06-01 Joel Brobecker <brobecker@adacore.com>
4011 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4013 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4015 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4017 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4019 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4020 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4021 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4022 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4023 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4024 ppc_linux_at_sigtramp_return_path): Remove.
4026 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4028 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4029 (xtensa_register_write_masked, xtensa_register_read_masked)
4030 (xtensa_extract_return_value, xtensa_store_return_value
4031 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4032 TARGET_BYTE_ORDER by gdbarch_byte_order.
4033 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4034 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4035 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4036 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4037 (sh64_push_dummy_call, sh64_extract_return_value)
4038 (sh64_store_return_value, sh64_register_convert_to_virtual)
4039 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4040 (sh64_pseudo_register_write, sh64_do_fp_register)
4041 (sh64_frame_prev_register): Likewise.
4042 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4043 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4044 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4045 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4046 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4047 * ppc-linux-nat.c (store_register): Likewise.
4048 * nto-tdep.c (nto_find_and_open_solib)
4049 (nto_init_solib_absolute_prefix): Likewise.
4050 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4051 (mips_convert_register_p, mips_eabi_push_dummy_call)
4052 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4053 (mips_o32_push_dummy_call, mips_o32_return_value)
4054 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4055 (mips_read_fp_register_single, mips_read_fp_register_double)
4056 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4057 (mips_breakpoint_from_pc): Likewise.
4058 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4059 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4060 (mips_linux_o32_sigframe_init): Likewise.
4061 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4062 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4063 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4064 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4065 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4066 * coffread.c (process_coff_symbol): Likewise.
4067 * arm-tdep.c (convert_from_extended, convert_to_extended)
4068 (gdb_print_insn_arm): Likewise.
4070 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4072 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4073 * i386-tdep.c (i386_dbx_reg_to_regnum)
4074 (i386_svr4_reg_to_regnum): Likewise.
4075 * inf-ptrace.c (inf_ptrace_fetch_registers)
4076 (inf_ptrace_store_registers): Likewise.
4077 * corelow.c (get_core_registers): Likewise.
4078 * i386-linux-nat.c (supply_gregset, fill_gregset)
4079 (i386_linux_fetch_inferior_registers)
4080 (i386_linux_store_inferior_registers): Likewise.
4081 * remote.c (init_remote_state,packet_reg_from_regnum)
4082 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4083 (remote_prepare_to_store,store_registers_using_G)
4084 (remote_store_registers,remote_arch_state): Likewise.
4085 * tracepoint.c (encode_actions): Likewise.
4086 * mi/mi-main.c (mi_cmd_data_list_register_names)
4087 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4088 (mi_cmd_data_write_register_values): Likewise.
4089 * tui/tui-regs.c (tui_show_register_group)
4090 (tui_show_register_group): Likewise.
4091 * xtensa-tdep.h (FP_ALIAS): Likewise.
4092 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4093 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4094 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4095 * win32-nat.c (do_win32_fetch_inferior_registers)
4096 (do_win32_store_inferior_registers,fetch_elf_core_registers
4097 * user-regs.h: Likewise (comment).
4098 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4099 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4100 * target-descriptions.h: Likewise (comment).
4101 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4102 * target.c (debug_print_register): Likewise.
4103 * stack.c (frame_info): Likewise.
4104 * stabsread.c (define_symbol): Likewise.
4105 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4106 (sh64_media_print_registers_info)
4107 (sh64_compact_print_registers_info): Likewise.
4108 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4109 * rs6000-nat.c (fetch_register,store_register): Likewise.
4110 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4111 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4112 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4113 * remote-m32r-sdi.c (m32r_fetch_registers)
4114 (m32r_store_registers): Likewise.
4115 * reggroups.c (default_register_reggroup_p): Likewise.
4116 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4117 (regcache_restore,regcache_dump): Likewise.
4118 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4119 * mips-tdep.c (mips_xfer_register,mips_register_name)
4120 (mips_register_reggroup_p,mips_pseudo_register_read)
4121 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4122 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4123 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4124 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4125 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4126 (print_gp_register_row,mips_print_registers_info)
4127 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4128 (mips_register_sim_regno): Likewise.
4129 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4130 (mips_linux_n32n64_sigframe_init): Likewise.
4131 * mips-linux-nat.c (mips_linux_register_addr)
4132 (mips64_linux_register_addr): Likewise.
4133 * findvar.c (value_of_register): Likewise.
4134 * infcmd.c (default_print_registers_info,registers_info)
4135 (print_vector_info,print_float_info): Likewise.
4136 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4137 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4138 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4139 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4140 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4141 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4142 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4143 (ia64_linux_store_registers): Likewise.
4144 * hpux-thread.c (hpux_thread_fetch_registers)
4145 (hpux_thread_store_registers): Likewise.
4146 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4147 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4148 (h8300_register_type): Likewise.
4149 * dwarf2-frame.c (dwarf2_frame_cache)
4150 (dwarf2_frame_state_alloc_regs): Likewise.
4151 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4152 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4153 (crisv32_cannot_store_register,cris_register_name): Likewise.
4154 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4155 * arch-utils.c (legacy_register_sim_regno)
4156 (legacy_virtual_frame_pointer): Likewise.
4157 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4158 * arm-tdep.h: Likewise (comment).
4159 * frv-tdep.c (frv_register_sim_regno): Likewise.
4160 * m68klinux-nat.c (old_fetch_inferior_registers)
4161 (old_store_inferior_registers): Likewise.
4162 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4163 * irix5-nat.c (fetch_core_registers): Likewise.
4164 * hppa-tdep.c (hppa_frame_cache): Likewise.
4165 * hppa-linux-nat.c (hppa_linux_register_addr)
4166 (hppa_linux_fetch_inferior_registers)
4167 (hppa_linux_store_inferior_registers): Likewise.
4168 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4169 (hppa_hpux_store_inferior_registers): Likewise.
4170 * amd64-nat.c (amd64_native_gregset_reg_offset)
4171 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4172 * dbug-rom.c (dbug_regname): Likewise.
4173 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4174 (HARD_PAGE_REGNUM (comment)): Likewise.
4175 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4176 * i386-tdep.c (i386_dbx_reg_to_regnum)
4177 (i386_svr4_reg_to_regnum): Likewise.
4178 * mi/mi-main.c (mi_cmd_data_list_register_names)
4179 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4180 (mi_cmd_data_write_register_values): Likewise.
4181 * gdbarch.c, gdbarch.h: Regenerate.
4182 * tui/tui-regs.c (tui_show_register_group): Likewise.
4183 * xtensa-tdep.h (FP_ALIAS): Likewise.
4184 * user-regs.h: Likewise (comment).
4185 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4186 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4187 * target-descriptions.h: Likewise (comment).
4188 * target.c (debug_print_register): Likewise.
4189 * stack.c (frame_info): Likewise.
4190 * stabsread.c (define_symbol): Likewise.
4191 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4192 (sh64_compact_print_registers_info): Likewise.
4193 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4194 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4195 (regcache_restore,regcache_dump): Likewise.
4196 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4197 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4198 (mips_stab_reg_to_regnum): Likewise.
4199 * findvar.c (value_of_register): Likewise.
4200 * infcmd.c (default_print_registers_info,registers_info)
4201 (print_vector_info,print_float_info): Likewise.
4202 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4203 * h8300-tdep.c (h8300_register_type): Likewise.
4204 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4205 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4206 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4207 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4208 * parse.c: Remove comment.
4209 * gdbarch.c, gdbarch.h: Regenerate
4211 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4213 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4214 gdbarch_cannot_fetch_register.
4215 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4216 * hppa-linux-nat.c (fetch_register): Likewise.
4217 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4218 * m68klinux-nat.c (fetch_register): Likewise.
4219 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4221 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4222 gdbarch_cannot_store_register.
4223 * hppa-linux-nat.c (store_register): Likewise.
4224 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4225 * regcache.c (regcache_raw_write): Likewise.
4226 * m68klinux-nat.c (store_register): Likewise.
4227 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4228 * gdbarch.c, gdbarch.h: Regenerate.
4230 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4232 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4233 * gdbarch.c, gdbarch.h: Regenerate.
4235 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4237 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4238 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4239 * gdbarch.c, gdbarch.h: Regenerate.
4241 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4243 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4244 * ax-gdb.c (gen_bitfield_ref): Likewise.
4245 * mi/mi-main.c (get_register): Likewise.
4246 * findvar.c (default_value_from_register, extract_signed_integer)
4247 (extract_unsigned_integer, extract_long_unsigned_integer)
4248 (store_signed_integer, store_unsigned_integer): Likewise.
4249 * regcache.c (regcache_dump): Likewise.
4250 * value.c (lookup_internalvar, value_of_internalvar)
4251 (set_internalvar): Likewise.
4253 * valprint.c (print_binary_chars, print_octal_chars)
4254 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4255 * infcmd.c (default_print_registers_info): Likewise.
4256 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4257 * stabsread.c (define_symbol): Likewise.
4258 * doublest.c (floatformat_from_length, floatformat_from_type)
4259 (extract_typed_floating, store_typed_floating): Likewise.
4260 * gdbarch.c, gdbarch.h: Regenerate.
4262 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4264 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4265 gdbarch_call_dummy_location.
4266 * infcall.c (call_function_by_hand): Likewise.
4267 * inferior.h: Change comment.
4268 * arch-utils.c: Change comment.
4269 * gdbarch.c, gdbarch.h: Regenerate.
4271 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4273 * solib-aix5.c: Delete.
4274 * Makefile.in (solib-aix5.o): Delete rule.
4276 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4278 * breakpoint.h (enum bpstat_what_main_action): Remove
4279 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4280 * infrun.c (process_event_stop_test): Do not check for it.
4282 2007-05-22 Chris Dearman <chris@mips.com>
4283 Maciej W. Rozycki <macro@mips.com>
4285 * ser-unix.c (show_serial_hwflow): New function.
4286 (hardwire_raw): Add hardware flow control support.
4287 (_initialize_ser_hardwire): Add "set/show remoteflow".
4288 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4289 * NEWS: Document the new command.
4291 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4293 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4294 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4295 define for i[[3456]]86-*-linux* native configurations.
4296 * config.in, configure: Regenerate.
4298 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4300 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4301 a core file. Add comment in the function description.
4303 2007-05-18 Caroline Tice <ctice@apple.com>
4305 * c-valprint.c (c_value_print): If the initialized field of the
4306 value struct is 0, print out "[uninitialized]" before the value.
4307 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4308 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4309 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4310 ctx->initialized appropriately. Verify no location op follows
4312 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4313 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4314 set_value_initialized.
4315 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4316 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4317 * value.c (struct value): New field, initialized.
4318 (allocate_value): Initialize new field.
4319 (set_value_initialized): New function.
4320 (value_initialized): New function.
4321 * value.h (value_initialized): New extern declaration.
4322 (set_value_initialized): Likewise.
4324 2007-05-18 Caroline Tice <ctice@apple.com>
4326 * MAINTAINERS (Write After Approval): Add self.
4328 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4330 * gdbtypes.c (make_reference_type): Preserve the type chain
4331 and set the length of all the variants of the pointer type.
4333 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4335 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4336 and set the length of all the variants of the pointer type.
4338 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4340 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4342 (mips_o64_push_dummy_call): Reformat a comment.
4344 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4346 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4347 (score_prologue_frame_base_address): Return fp to keep gdb print
4348 local variables correctly when debugging information is stabs.
4350 (score_analyze_prologue): For software watchpoint, fetch all the
4351 instructions from range [startaddr, pc] once and identify them locally
4352 to reduce memory access.
4353 (score_malloc_and_get_memblock, score_free_memblock)
4354 (score_adjust_memblock_ptr): New functions.
4355 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4357 (score_target_can_use_watch, score_stopped_by_watch)
4358 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4359 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4360 New functions for remote & local hw-watchpoint and hw-breakpoint.
4362 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4364 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4365 declarations as well.
4367 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4369 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4370 * config/arm/tm-embed.h: Delete file.
4372 * arm-tdep.h (arm_software_single_step): Declare.
4373 * arm-tdep.c (arm_software_single_step): Make global.
4374 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4376 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4377 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4378 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4379 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4381 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4382 allow defines to be overriden by TM file.
4383 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4384 change default to {0xbe,0xbe}.
4385 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4386 arm_obsd_thumb_be_breakpoint): New global variables.
4387 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4388 tdep->thumb_breakpoint_size.
4389 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4390 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4391 tdep->thumb_breakpoint_size.
4393 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4395 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4397 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4400 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4401 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4402 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4403 (mips_abi_regsize): Simplify.
4404 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4405 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4406 (mips_o32_return_value, mips_o64_push_dummy_call)
4407 (mips_o64_return_value): Propogate constant register sizes. Use the
4408 ABI register size instead of mips_stack_argsize.
4409 (mips_dump_tdep): Don't print mips_stack_argsize.
4410 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4413 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4415 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4416 * config/mips/tm-linux.h: Delete.
4417 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4418 (mips_linux_in_dynsym_resolve_code): Make static. Use
4419 svr4_in_dynsym_resolve_code.
4420 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4422 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4424 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4425 * Makefile.in (mips-linux-tdep.o): Update.
4426 * solib.c (set_solib_ops): New.
4427 (current_target_so_ops): Update comment.
4428 * solib.h (set_solib_ops): New prototype.
4430 2007-05-16 Chris Dearman <chris@mips.com>
4432 * printcmd.c (do_examine): Fix typos in a comment.
4434 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4436 * configure.ac: Allow sysroots to be relocated under $prefix as
4437 well as $exec_prefix.
4438 * configure: Regenerate.
4440 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4442 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4443 (offsetof): Do not define.
4444 (find_stub_with_shl_get): Use numerical value 3 instead of
4445 symbolic value TYPE_PROCEDURE.
4447 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4449 * gdb_proc_service.h (paddr_t): Delete typedef.
4450 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4451 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4452 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4453 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4454 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4455 * Makefile.in (proc-service.o): Update.
4457 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4459 * Makefile.in (mips-tdep.o): Update.
4460 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4463 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4465 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4466 instead of store_typed_address.
4467 * value.c (pack_long): New.
4468 (value_from_longest): Use it.
4469 * value.h (pack_long): New prototype.
4471 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4473 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4474 DW_EH_PE_signed if appropriate.
4476 2007-05-14 Paul Brook <paul@codesourcery.com>
4477 Daniel Jacobowitz <dan@codesourcery.com>
4479 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4481 (dwarf_decode_lines): Check for line info without a file.
4483 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4485 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4488 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4490 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4492 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4494 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4496 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4498 * gdbarch.sh (read_sp): Remove.
4499 * gdbarch.c, gdbarch.h: Regenerate.
4500 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4502 * avr-tdep.c (avr_read_sp): Remove.
4503 (avr_unwind_sp): New function.
4504 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4505 * mips-tdep.c (mips_read_sp): Remove.
4506 (mips_unwind_sp): New function.
4507 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4508 * score-tdep.c (score_read_unsigned_register): Remove.
4509 (score_read_sp): Remove.
4510 (score_unwind_sp): New function.
4511 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4513 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4515 * buildsym.c (start_subfile): Handle absolute pathnames
4516 while comparing subfile names.
4518 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4520 * hppa-hpux-tdep.c: Include "regcache.h".
4521 * hppa-linux-tdep.c: Likewise.
4522 * hppa-tdep.c: Include "gdb_stdint.h".
4523 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4525 * Makefile.in: Update dependencies.
4527 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4529 * blockframe.c: Remove obsolete comments.
4530 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4531 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4532 * hppa-tdep.h (enum hppa_regnum): Likewise.
4533 * mips-tdep.h: Likewise.
4534 * m68hc11-tdep.c: Likewise.
4536 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4538 * inferior.h (read_sp): Remove prototype.
4539 * regcache.c (read_sp): Remove.
4540 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4541 * infcall.c (call_function_by_hand): Likewise.
4542 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4544 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4546 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4548 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4549 instead of read_register and read_register_pid.
4551 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4552 argument instead of PTID. Use regcache functions instead of
4554 (ia64_linux_insert_watchpoint): Update call.
4555 (ia64_linux_stopped_data_address): Use regcache functions
4556 instead of read_register_pid and write_register_pid.
4558 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4560 * libunwind-frame.h (struct regcache): Add forward declaration.
4561 (libunwind_get_reg_special): Add REGCACHE argument.
4562 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4563 argument. Pass it to unw_init_remote_p.
4565 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4566 libunwind_get_reg_special.
4567 (ia64_access_reg): Remove "write" case.
4568 (ia64_access_fpreg): Likewise. Read from next_frame passed
4569 as callback argument instead of from current_regcache.
4570 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4571 passed as callback argument instead of from current_regcache.
4572 (ia64_access_rse_fpreg): New function.
4573 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4575 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4577 * NEWS: Mention SPU overlay support.
4579 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4581 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4583 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4585 * breakpoint.c (remove_breakpoint): Do not remove software
4586 breakpoints in unmapped overlay sections.
4588 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4590 * spu-tdep.c: Include "observer.h".
4591 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4592 (spu_overlay_data): New variable.
4593 (struct spu_overlay_table): New type.
4594 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4595 spu_overlay_new_objfile): New functions.
4596 (spu_gdbarch_init): Install spu_overlay_update.
4597 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4598 allocate spu_overlay_data objfile data.
4600 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4602 * gdbarch.sh (overlay_update): New gdbarch function.
4603 (struct obj_section): Add forward declaration.
4604 * gdbarch.c, gdbarch.h: Regenerate.
4606 * symfile.c (simple_overlay_update): Make global.
4607 (target_overlay_update): Remove variable.
4608 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4609 target_overlay_update.
4610 (overlay_load_command): Likewise.
4611 * symfile.h (struct obj_section): Add forward declaration.
4612 (simple_overlay_update): Add prototype.
4614 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4616 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4618 * observer.sh: Add "struct objfile" forward declaration.
4619 * target.h (deprecated_target_new_objfile_hook): Remove.
4620 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4621 (clear_symtab_users): Call observer_notify_new_objfile.
4622 (symbol_file_add_with_addrs_or_offsets): Likewise.
4623 * rs6000-nat.c: Include "observer.h".
4624 (vmap_ldinfo): Call observer_notify_new_objfile.
4625 (xcoff_relocate_core): Likewise.
4626 * remote.c (remote_new_objfile_chain): Remove.
4627 (remote_new_objfile): Do not call remote_new_objfile_chain.
4628 (_initialize_remote): Use observer_attach_new_objfile.
4629 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4630 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4631 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4632 * aix-thread.c: Include "observer.h".
4633 (target_new_objfile_chain): Remove.
4634 (new_objfile): Do not call target_new_objfile_chain.
4635 (_initialize_aix_thread): Use observer_attach_new_objfile.
4636 * hpux-thread.c: Include "observer.h"
4637 (target_new_objfile_chain): Remove.
4638 (hpux_thread_new_objfile): Make static. Do not call
4639 target_new_objfile_chain.
4640 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4641 * linux-thread-db.c: Include "observer.h".
4642 (target_new_objfile_chain): Remove.
4643 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4644 (_initialize_thread_db): Use observer_attach_new_objfile.
4645 * sol-thread.c: Include "observer.h".
4646 (target_new_objfile_chain): Remove.
4647 (sol_thread_new_objfile): Make static. Do not call
4648 target_new_objfile_chain.
4649 (_initialize_sol_thread): Use observer_attach_new_objfile.
4650 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4651 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4654 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4656 * gdbarch.sh (remote_translate_xfer_address): Remove.
4657 * gdbarch.h, gdbarch.c: Regenerate.
4658 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4659 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4660 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4661 call gdbarch_remote_translate_xfer_address.
4662 * frv-tdep.c (frv_gdbarch_init): Do not call
4663 set_gdbarch_remote_translate_xfer_address.
4664 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4665 (ia64_gdbarch_init): Do not install it.
4667 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4669 * NEWS: Mention change in handling the -tui option.
4671 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4673 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4676 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4678 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4679 (breakpoint_inserted_here_p): Call it.
4680 (software_breakpoint_inserted_here_p): Likewise.
4682 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4684 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4685 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4686 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4687 (inf_ptrace_store_register): Likewise.
4688 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4689 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4691 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4693 * linux-nat.c (linux_trad_target): Adapt parameter list.
4694 * linux-nat.h (linux_trad_target): Likewise.
4696 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4698 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4699 (mips_linux_cannot_store_register): Likewise.
4700 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4701 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4702 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4703 (mips64_linux_register_addr): Likewise.
4704 (mips_linux_register_u_offset): Adapt parameter list. Pass
4705 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4707 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4708 * config/mips/nm-linux.h: Delete file.
4710 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4712 * remote.c (remote_detach): Error out if remote can't detach.
4714 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4716 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4717 instruction's opcode in the "opcode" variable and declares new
4718 variable "closing_insn".
4720 2007-05-10 Chris Dearman <chris@mips.com>
4721 Maciej W. Rozycki <macro@mips.com>
4723 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4724 whitespace when setting a var_filename.
4726 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4728 * main.c (captured_main): Recognize -tui option and print an error
4729 message when the TUI is not configured.
4731 2007-05-09 Andreas Schwab <schwab@suse.de>
4733 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4734 set removed members.
4735 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4737 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4739 * gdbarch.sh (deprecated_store_struct_return): Remove.
4740 * gdbarch.c, gdbarch.h: Regenerate.
4741 * frv-tdep.c (frv_store_struct_return): Remove.
4742 (frv_gdbarch_init): Do not install it.
4744 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4746 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4747 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4748 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4750 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4752 * spu-linux-nat.c: Include "gdb_stdint.h".
4753 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4754 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4755 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4756 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4757 (spu_child_wait): Mark up string for translation.
4759 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4760 Luis Machado <luisgpm@br.ibm.com>
4762 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4763 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4764 BC_INSTRUCTION): Define.
4765 (deal_with_atomic_sequence): New function.
4766 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4767 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4768 gdbarch_software_single_step routine.
4770 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4772 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4773 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4774 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4775 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4776 spu_child_post_attach, spu_fetch_inferior_registers,
4777 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4778 memory addresses as ULONGEST, not CORE_ADDR.
4780 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4782 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4783 * gdbarch.h, gdbarch.c: Regenerate.
4785 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4786 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4787 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4789 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4790 Add REGCACHE argument. Use it instead of read/write_register.
4791 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4793 * config/pa/tm-hppah.h: Delete file.
4794 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4795 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4797 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4799 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4800 * NEWS: Mention improved C++ thunk support.
4801 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4802 * cp-abi.c (cplus_skip_trampoline): New.
4803 * cp-abi.h (cplus_skip_trampoline): New prototype.
4804 (struct cp_abi_ops): Add skip_trampoline member.
4805 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4806 (init_gnuv3_ops): Set skip_trampoline.
4808 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4810 * rs6000-tdep.c (struct frame_extra_info): Delete.
4812 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4814 * linux-thread-db.c: Update some FIXME comments.
4815 (thread_db_xfer_partial): Delete.
4816 (init_thread_db_ops): Do not set to_xfer_partial.
4818 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4820 * inftarg.c, infptrace.c: Remove files.
4821 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4822 (inftarg.o, infptrace.o): Remove rules.
4823 * gdbcore.h (register_addr): Remove prototype.
4824 * inferior.h (kill_inferior, store_inferior_registers,
4825 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4826 call_ptrace, pre_fork_inferior): Remove prototypes.
4827 * target.h (child_xfer_memory, child_pid_to_exec_file,
4828 child_core_file_to_sym_file, child_post_attach,
4829 child_post_startup_inferior, child_acknowledge_created_inferior,
4830 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4831 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4832 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4833 child_follow_fork, child_reported_exec_events_per_exec_call,
4834 child_has_exited, child_thread_alive): Remove prototypes.
4836 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4838 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4839 (sparc_store_inferior_registers): Likewise.
4840 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4841 (sparc_fetch_inferior_registers): ... this.
4842 (store_inferior_registers): Rename to ...
4843 (sparc_store_inferior_registers): ... this.
4844 (sparc_target): Update callback names.
4845 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4846 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4848 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4850 * linux-nat.c (child_post_attach): Rename to ...
4851 (linux_child_post_attach): ... this. Make static.
4852 (child_follow_fork): Rename to ...
4853 (linux_child_follow_fork): ... this. Make static.
4854 (child_insert_fork_catchpoint): Rename to ...
4855 (linux_child_insert_fork_catchpoint): ... this. Make static.
4856 (child_insert_vfork_catchpoint): Rename to ...
4857 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4858 (child_insert_exec_catchpoint): Rename to ...
4859 (linux_child_insert_exec_catchpoint): ... this. Make static.
4860 (child_pid_to_exec_file): Rename to ...
4861 (linux_child_pid_to_exec_file): ... this. Make static.
4863 (linux_handle_extended_wait): Update call.
4864 (linux_xfer_partial): Update callback routine names.
4866 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4868 * configure.host (alpha*-*-osf[12]*): Remove support.
4869 * NEWS: Mention removed configurations.
4871 * config/alpha/alpha-osf1.mh: Delete file.
4872 * config/alpha/alpha-osf2.mh: Delete file.
4873 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4875 * config/alpha/nm-osf.h: Delete file.
4876 * config/alpha/nm-osf2.h: Delete file.
4877 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4878 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4879 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4881 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4882 (register_addr, kernel_u_size): Remove.
4883 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4885 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4887 * regcache.c (regcache_invalidate): New function.
4888 (register_cached): Remove.
4889 (set_register_cached): Remove.
4890 (deprecated_registers_fetched): Remove.
4891 (registers_changed): Use regcache_invalidate instead
4892 of set_register_cached.
4893 (regcache_raw_read): Update comment.
4895 * regcache.h (regcache_invalidate): Add prototype.
4896 (register_cached): Remove.
4897 (set_register_cached): Remove.
4898 (deprecated_registers_fetched): Remove.
4900 * findvar.c (value_of_register): Do not call register_cached.
4901 * frame.c (frame_register): Likewise.
4902 * tui/tui-regs.c (tui_get_register): Likewise.
4904 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4905 (process_g_packet): Likewise.
4906 (remote_fetch_registers): Likewise.
4907 * remote-sim.c (gdbsim_fetch_register): Likewise.
4908 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4909 by regcache_invalidate.
4910 (mt_pseudo_register_write): Likewise.
4911 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4913 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4914 call by loop over regcache_raw_supply (..., NULL).
4916 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4918 * target.h (struct target_ops): Add REGCACHE parameter to
4919 to_prepare_to_store.
4920 (target_prepare_to_store): Likewise.
4921 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4922 (update_current_target): Adapt prepare_to_store de_fault rule.
4924 * regcache.c (regcache_raw_write): Pass regcache to
4925 target_prepare_to_store.
4927 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4928 Do not call CHILD_PREPARE_TO_STORE.
4929 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4930 * procfs.c (procfs_prepare_to_store): Likewise.
4932 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4933 * go32-nat.c (go32_prepare_to_store): Likewise.
4934 * monitor.c (monitor_prepare_to_store): Likewise.
4935 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4936 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4937 * remote-mips.c (mips_prepare_to_store): Likewise.
4938 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4939 * win32-nat.c (win32_prepare_to_store): Likewise.
4941 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4942 Use it instead of current_regcache.
4944 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4945 parameter. Pass it on to next target.
4946 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4948 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4950 * target.h (struct regcache): Add forward declaration.
4951 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4952 and to_store_registers target operations.
4953 (target_fetch_registers, target_store_registers): Update.
4955 * regcache.c (regcache_raw_read): Replace register_cached by
4956 regcache_valid_p. Pass regcache to target_fetch_registers.
4957 (regcache_raw_write): Pass regcache to target_store_registers.
4959 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4960 store_regs, store_wmmx_regs): Replace register_cached by
4963 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4964 to target_fetch_registers calls.
4965 * corelow.c (core_open): Likewise.
4966 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4967 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4968 ps_lsetfpregs): Likewise.
4969 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4970 ps_lsetfpregs): Likewise.
4971 * win32-nat.c (win32_resume): Likewise.
4972 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4973 to target_store_registers call.
4974 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4976 * inferior.h (store_inferior_registers): Update prototype.
4977 (fetch_inferior_registers): Likewise.
4978 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4979 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4980 Update function pointer signatures.
4982 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4983 use it instead of current_regcache, update calls.
4984 (aix_thread_store_registers): Likewise.
4985 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4986 (alphabsd_store_inferior_registers): Likewise.
4987 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4988 (amd64bsd_store_inferior_registers): Likewise.
4989 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4990 (amd64_linux_store_inferior_registers): Likewise.
4991 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4992 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4993 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4994 (arm_linux_fetch_inferior_registers): Likewise.
4995 (arm_linux_store_inferior_registers): Likewise.
4996 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4997 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4998 (store_register, store_regs, store_fp_register, store_fp_regs,
4999 armnbsd_store_registers): Likewise.
5000 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5001 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5002 (bsd_uthread_store_registers): Likewise.
5003 * corelow.c (get_core_registers): Likewise.
5004 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5005 go32_store_registers): Likewise.
5006 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5007 (hppabsd_store_registers): Likewise.
5008 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5009 (hppa_hpux_fetch_inferior_registers): Likewise.
5010 (hppa_hpux_store_register): Likewise.
5011 (hppa_hpux_store_inferior_registers): Likewise.
5012 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5013 (hppa_linux_fetch_inferior_registers): Likewise.
5014 (hppa_linux_store_inferior_registers): Likewise.
5015 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5016 (hpux_thread_store_registers): Likewise.
5017 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5018 (i386bsd_store_inferior_registers): Likewise.
5019 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5020 gnu_store_registers): Likewise.
5021 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5022 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5024 (i386_linux_fetch_inferior_registers): Likewise.
5025 (i386_linux_store_inferior_registers): Likewise.
5026 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5027 (ia64_linux_fetch_registers): Likewise.
5028 (ia64_linux_store_register): Likewise.
5029 (ia64_linux_store_registers): Likewise.
5030 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5031 (inf_child_store_inferior_registers): Likewise.
5032 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5033 (inf_ptrace_fetch_registers): Likewise.
5034 (inf_ptrace_store_register): Likewise.
5035 (inf_ptrace_store_registers): Likewise.
5036 * infptrace.c (fetch_register, store_register): Likewise.
5037 (fetch_inferior_registers, store_inferior_registers): Likewise.
5038 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5039 (m32r_linux_fetch_inferior_registers): Likewise.
5040 (m32r_linux_store_inferior_registers): Likewise.
5041 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5042 (m68kbsd_store_inferior_registers): Likewise.
5043 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5044 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5045 fetch_fpregs, store_fpregs): Likewise.
5046 (m68k_linux_fetch_inferior_registers): Likewise.
5047 (m68k_linux_store_inferior_registers): Likewise.
5048 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5049 (m88kbsd_store_inferior_registers): Likewise.
5050 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5051 (mips64obsd_store_inferior_registers): Likewise.
5052 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5053 (mips64_linux_regsets_store_registers): Likewise.
5054 (mips64_linux_fetch_registers): Likewise.
5055 (mips64_linux_store_registers): Likewise.
5056 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5057 (mipsnbsd_store_inferior_registers): Likewise.
5058 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5059 (monitor_fetch_registers, monitor_store_registers): Likewise.
5060 * nto-procfs.c (procfs_fetch_registers): Likewise.
5061 (procfs_store_registers): Likewise.
5062 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5063 fetch_register, supply_vrregset, fetch_altivec_registers,
5064 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5065 (store_altivec_register, store_spe_register, store_register,
5066 fill_vrregset, store_altivec_registers, store_ppc_registers,
5067 ppc_linux_store_inferior_registers): Likewise.
5068 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5069 (ppcnbsd_store_inferior_registers): Likewise.
5070 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5071 (ppcobsd_store_registers): Likewise.
5072 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5073 * remote.c (fetch_register_using_p, process_g_packet,
5074 fetch_registers_using_g, remote_fetch_registers): Likewise.
5075 (store_register_using_P, store_registers_using_G,
5076 remote_store_registers): Likewise.
5077 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5078 m32r_store_register, m32r_store_register): Likewise.
5079 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5080 * remote-sim.c (gdbsim_fetch_register): Likewise.
5081 (gdbsim_store_register): Likewise.
5082 * rs6000-nat.c (fetch_register, store_register): Likewise.
5083 (rs6000_fetch_inferior_registers): Likewise.
5084 (rs6000_store_inferior_registers): Likewise.
5085 * s390-nat.c (fetch_regs, store_regs): Likewise.
5086 (fetch_fpregs, store_fpregs): Likewise.
5087 (s390_linux_fetch_inferior_registers): Likewise.
5088 (s390_linux_store_inferior_registers): Likewise.
5089 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5090 (shnbsd_store_inferior_registers): Likewise.
5091 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5092 (sol_thread_store_registers): Likewise.
5093 * sparc-nat.c (fetch_inferior_registers): Likewise.
5094 (store_inferior_registers): Likewise.
5095 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5096 (spu_store_inferior_registers): Likewise.
5097 * target.c (debug_print_register): Likewise.
5098 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5099 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5100 (vaxbsd_store_inferior_registers): Likewise.
5101 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5102 (win32_fetch_inferior_registers): Likewise.
5103 (win32_store_inferior_registers): Likewise.
5105 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5107 * gdbcore.h (struct regcache): Add forward declaration.
5108 (struct core_fns): Add REGCACHE argument to core_read_registers
5110 * corelow.c (get_core_register_section): Add REGCACHE argument,
5111 use it instead of current_regcache, pass it to core_read_registers
5113 (get_core_registers): Add current_regcache as parameter to
5114 get_core_register_section calls.
5116 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5117 use it instead of current_regcache.
5118 * armnbsd-nat.c (fetch_core_registers): Likewise.
5119 (fetch_elfcore_registers): Likewise.
5120 * core-regset.c (fetch_core_registers): Likewise.
5121 * cris-tdep.c (fetch_core_registers): Likewise.
5122 * irix5-nat.c (fetch_core_registers): Likewise.
5123 * m68klinux-nat.c (fetch_core_registers): Likewise.
5124 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5125 * win32-nat.c (fetch_elf_core_registers): Likewise.
5127 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5129 * gregset.h (struct regcache): Add forward declaration.
5130 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5131 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5132 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5133 (fill_gregset): Add REGCACHE parameter.
5134 (fill_fpregset): Likewise.
5135 (fill_fpxregset): Likewise.
5137 Update all definitions accordingly:
5138 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5139 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5140 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5141 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5142 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5143 (supply_gregset): Add REGCACHE parameter, use it instead of
5144 current_regcache. Make GREGSETP parameter const, adapt casts.
5145 (supply_fpregset): Add REGCACHE parameter, use it instead of
5146 current_regcache. Make FPREGSETP parameter const, adapt casts.
5147 (fill_gregset): Add REGCACHE parameter, use it instead of
5149 (fill_fpregset): Likewise.
5151 Update all callers to pass in current_regcache as the new argument:
5152 * core-regset.c: Include "regcache.h".
5153 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5154 * procfs.c: Include "regcache.h".
5155 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5156 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5157 (procfs_do_thread_registers): Likewise.
5158 (procfs_make_note_section): Likewise.
5159 * proc-service.c: Include "regcache.h".
5160 (ps_lgetregs): Update fill_gregset call.
5161 (ps_lsetregs): Update supply_gregset call.
5162 (ps_lgetfpregs): Update fill_fpregset call.
5163 (ps_lsetfpregs): Update supply_fpregset call.
5164 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5165 supply_fpregset calls.
5166 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5167 (ps_lgetregs): Update fill_gregset call.
5168 (ps_lsetregs): Update supply_gregset call.
5169 (ps_lgetfpregs): Update fill_fpregset call.
5170 (ps_lsetfpregs): Update supply_fpregset call.
5172 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5173 fill_fpregset, and fill_fpxregset calls.
5174 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5175 (store_regs): Update fill_gregset call.
5176 (fetch_fpregs): Update supply_fpregset call.
5177 (store_fpregs): Update fill_fpregset call.
5178 (fetch_fpxregs): Update supply_fpxregset call.
5179 (store_fpxregs): Update fill_fpxregset call.
5180 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5181 (store_regs): Update fill_gregset call.
5182 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5183 (store_regs): Update fill_gregset call.
5184 (fetch_fpregs): Update supply_fpregset call.
5185 (store_fpregs): Update fill_fpregset call.
5186 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5187 * s390-nat.c (fetch_regs): Update supply_gregset call.
5188 (store_regs): Update fill_gregset call.
5189 (fetch_fpregs): Update supply_fpregset call.
5190 (store_fpregs): Update fill_fpregset call.
5192 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5195 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5197 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5198 it instead of current_regcache.
5199 (parse_register_dump): Add REGCACHE parameter, pass it to
5200 supply_register callback.
5201 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5202 parse_register_dump.
5203 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5204 parse_register_dump and dumpregs callback.
5205 (monitor_wait): Pass current_regcache to parse_register_dump and
5207 (monitor_fetch_register): Pass current_regcache to
5208 monitor_supply_register.
5209 (monitor_fetch_registers): Pass current_regcache to
5211 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5212 supply_register and dumpregs callbacks.
5213 (monitor_supply_register, monitor_dump_reg_block): Update
5215 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5216 it to monitor_supply_register.
5217 * dink32-rom.c (dink32_supply_register): Likewise.
5218 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5219 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5220 instead of current_regcache.
5222 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5224 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5225 Add REGCACHE parameter. Use it instead of current_regcache.
5226 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5227 i386nto_supply_gregset and i386nto_supply_fpregset.
5228 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5229 of current_regcache.
5231 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5232 nto_supply_ helper functions.
5233 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5235 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5237 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5238 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5239 and regset_fill member function pointers.
5240 (nto_dummy_supply_regset): Adapt prototype.
5242 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5244 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5245 instead of current_regcache. Make REGS const.
5246 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5247 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5249 * shnbsd-nat.c: Include "regcache.h".
5250 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5252 (shnbsd_store_inferior_registers): Pass current_regcache to
5254 * Makefile.in (shbsd-nat.o): Update dependencies.
5256 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5258 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5259 instead of current_regcache.
5260 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5261 Make GREGSETP const, remove superfluous casts.
5262 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5263 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5265 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5266 (supply_64bit_reg): Likewise
5267 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5268 Make GREGSETP const, adapt casts accordingly.
5269 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5270 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5272 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5273 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5275 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5276 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5277 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5279 * mips-linux-nat.c: Include "regcache.h".
5280 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5281 current_regcache to mips{64}_(supply|fill)_ helper routines.
5282 (mips64_linux_regsets_fetch_registers): Likewise.
5283 (mips64_linux_regsets_store_registers): Likewise.
5285 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5286 REGCACHE argument; replace current_regcache. Make REGS const.
5287 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5288 replace current_regcache.
5289 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5290 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5291 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5292 mipsnbsd_store_inferior_registers): Pass current_regcache to
5293 mipsnbsd_(supply|fill)_... helper routines.
5295 * Makefile.in (mips-linux-nat.o): Update dependencies.
5297 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5299 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5300 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5301 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5302 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5303 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5304 * i386gnu-nat.c (store_fpregs): Likewise.
5305 * i386v4-nat.c (fill_fpregset): Likewise.
5306 * go32-nat.c (store_register, go32_store_registers): Likewise.
5308 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5310 * cris-tdep.c (supply_gregset): Rename to ...
5311 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5312 instead of current_regcache.
5313 (fetch_core_registers): Update call. Pass current_regcache.
5315 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5317 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5318 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5319 Use it instead of current_regcache.
5320 (supply_fparegset): Rename to ...
5321 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5322 Use it instead of current_regcache.
5323 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5324 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5326 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5328 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5329 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5330 use it instead of current_regcache.
5331 * alpha-tdep.h (struct regcache): Add forward declaration.
5332 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5333 alpha_fill_fp_regs): Update prototypes.
5335 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5336 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5337 * alpha-linux-nat.c: Include "regcache.h".
5338 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5339 current_regcache to alpha_supply/fill_ routines.
5341 * alphabsd-tdep.c: Include "regcache.h".
5342 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5343 pass it to alpha_supply_ routines. Make REGS const.
5344 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5345 pass it to alpha_fill_ routines.
5346 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5347 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5348 alphabsd_fill_fpreg): Update prototypes.
5350 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5351 fill_fpregset, alphabsd_fetch_inferior_registers,
5352 alphabsd_store_inferior_registers): Pass current_regcache to
5353 alphabsd_supply/fill_ routines.
5355 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5358 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5360 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5361 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5362 instead of current_regcache.
5363 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5364 REGCACHE parameter, pass it to supply_ routines.
5365 (aix_thread_fetch_registers): Pass current_regcache to
5366 fetch_regs_user_thread and fetch_regs_kernel_thread.
5368 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5369 Add REGCACHE parameter, use it instead of current_regcache.
5370 Call regcache_valid_p instead of register_cached.
5371 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5372 Also, pass REGCACHE to fill_ routines.
5373 (aix_thread_store_registers): Pass current_regcache to
5374 store_regs_user_thread and store_regs_kernel_thread.
5376 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5378 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5379 pointed to by GREGSETP.
5381 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5383 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5384 of regcache_raw_read_signed.
5385 (fill_fpregset): Use regcache_raw_collect instead of
5388 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5390 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5391 point arguments, test explicitly for use of the EABI32 ABI
5392 instead of inferring this condition from tests on register
5395 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5397 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5398 prior to allocating its location.
5400 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5402 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5403 based on mips_abi_regsize() whose result is known in advance.
5404 (mips_o64_push_dummy_call): Likewise.
5406 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5408 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5409 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5411 * mips-linux-nat.c: Include "gregset.h".
5412 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5413 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5414 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5415 fill_fpregset): Move to mips-linux-nat.c.
5417 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5419 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5421 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5422 (read_register): ... here.
5423 (deprecated_write_register_gen): Remove, inline ...
5424 (write_register): ... here.
5425 * regcache.h (deprecated_read_register_gen): Remove prototype.
5426 (deprecated_write_register_gen): Likewise.
5428 * remote-sim.c (gdbsim_store_register): Replace call to
5429 deprecated_read_register_gen with regcache_cooked_read.
5430 * target.c (debug_print_register): Replace calls to
5431 deprecated_read_register_gen and read_register with
5432 regcache_cooked_read.
5434 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5436 * hpux-thread.c (hpux_thread_store_registers): Use
5437 regcache_raw_collect, not regcache_raw_read.
5438 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5439 not regcache_raw_write.
5441 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5443 * gdbarch.sh: Remove deprecated_register_byte.
5444 * gdbarch.c, gdbarch.h: Regenerate.
5445 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5446 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5448 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5449 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5450 read-only register caches. Make REGCACHE parameter const.
5451 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5453 * mi/mi-main.c (old_regs): Remove.
5454 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5455 (register_changed_p): Reimplement to compare two register caches.
5456 (mi_cmd_data_list_changed_registers): Update caller.
5457 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5458 * mi/mi-interp.c (mi_interpreter_init): Do not call
5459 mi_setup_architecture_data.
5461 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5463 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5464 inline definition at the places the macros are used.
5465 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5467 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5469 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5471 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5472 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5473 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5474 (rs6000_aix_regset_from_core_section): New function.
5475 (rs6000_aix_init_osabi): Register it.
5476 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5477 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5478 * rs6000-nat.c (CoreRegs): Do not define type.
5479 (fetch_core_registers, rs6000_core_fns): Remove.
5480 (_initialize_core_rs6000): Do not register it. Rename to ...
5481 (_initialize_rs6000_nat): ... this.
5482 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5484 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5486 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5487 (dwarf2_read_address): Sign extend return address as required by
5488 target architecture.
5490 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5492 * solib-frv.c (lm_base): Bail out if the main executable has
5495 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5497 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5498 of FPCR register in fpregset.
5500 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5502 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5503 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5505 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5507 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5508 * rs6000-nat.c (rs6000_wait): New function.
5509 (_initialize_core_rs6000): Install it as to_wait target method.
5510 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5512 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5514 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5515 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5516 * rs6000-nat.c (super_create_inferior): New variable.
5517 (rs6000_create_inferior): Make static. Adapt argument list. Call
5518 original version of create_inferior via super_create_inferior.
5519 (_initialize_core_rs6000): Install to_create_inferior target method.
5521 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5523 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5524 (aix_thread_xfer_partial): ... this.
5525 (init_aix_thread_ops): Install to_xfer_partial instead
5526 of deprecated_xfer_memory target method.
5528 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5529 and inftarg.o, add inf-ptrace.o.
5530 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5531 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5532 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5533 (fetch_inferior_registers): Rename to ...
5534 (rs6000_fetch_inferior_registers): ... this. Make static.
5535 (store_inferior_registers): Rename to ...
5536 (rs6000_store_inferior_registers): ... this. Make static.
5537 (read_word, child_xfer_memory): Remove.
5538 (rs6000_xfer_partial): New function.
5539 (kernel_u_size): Remove.
5540 (_initialize_core_rs6000): Add inf_ptrace-based target.
5541 * Makefile.in (rs6000-nat.o): Update dependencies.
5543 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5545 * inf-ptrace.c: Include "gdb_stdint.h".
5546 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5547 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5548 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5549 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5550 (inf_ptrace_store_register): Likewise.
5551 * Makefile.in (inf-ptrace.o): Update dependencies.
5553 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5555 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5556 * configure.tgt (rs6000-*-*): Likewise.
5557 * config/rs6000/aix4.mh: Delete file.
5558 * config/rs6000/aix4.mt: Delete file.
5559 * config/rs6000/rs6000.mh: Delete file.
5560 * config/rs6000/rs6000.mt: Delete file.
5562 * config/powerpc/nm-aix.h: Delete file.
5563 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5565 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5567 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5568 Remove obsolete part of comment.
5569 (store_regs_user_thread): Use uint32_t temporaries when calling
5571 (store_regs_kernel_thread): Likewise. Add assertion to verify
5572 correct size of struct ptsprs members.
5573 (aix_thread_xfer_memory): Fix type of myaddr.
5574 (aix_thread_extra_thread_info): Fix compiler warning.
5575 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5576 (fetch_register, store_register): Adapt callers.
5578 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5580 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5582 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5584 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5586 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5587 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5588 (alpha_linux_regset_from_core_section): New function.
5589 (alpha_linux_init_abi): Install it.
5590 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5591 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5592 <sys/procfs.h>, and "gregset.h".
5593 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5594 Move from config/alpha/nm-linux.h.
5595 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5597 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5598 * alpha-nat.c: Remove #ifdef __linux__ section.
5599 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5600 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5601 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5602 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5603 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5604 (NATDEPFILES): Remove alpha-nat.o.
5605 * config/alpha/nm-linux.h: Delete file.
5606 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5607 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5608 (alpha-linux-tdep.o): Likewise.
5610 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5612 * mips-linux-nat.c: No longer include "gdbcore.h".
5613 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5614 (mips64_linux_register_addr): Likewise.
5615 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5616 mips64_linux_register_addr instead of register_addr.
5617 * mips-linux-tdep.c (mips_linux_register_addr,
5618 mips64_linux_register_addr): Move to mips-linux-nat.c.
5619 (register_addr): Remove.
5620 (register_addr_data, init_register_addr_data): Remove.
5621 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5622 (set_mips_linux_register_addr): Remove.
5623 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5624 * Makefile.in (mips-linux-nat.o): Update dependencies.
5626 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5628 * linux-nat.c (linux_register_u_offset): Remove.
5629 (linux_target_install_ops): New function.
5630 (linux_target): Use it.
5631 (linux_trad_target): New function.
5632 * linux-nat.h (linux_trad_target): Declare.
5634 * alpha-linux-nat.c: Include "gdbcore.h".
5635 (alpha_linux_register_u_offset): New function.
5636 (_initialize_alpha_linux_nat): Use linux_trad_target.
5638 * mips-linux-nat.c: Include "gdbcore.h".
5639 (mips_linux_register_u_offset): New function.
5640 (_initialize_mips_linux_nat): Use linux_trad_target.
5642 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5643 * config/arm/nm-linux.h: Delete file.
5645 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5646 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5648 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5649 * config/ia64/nm-linux.h: Delete file.
5651 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5652 * config/m32r/nm-linux.h: Delete file.
5654 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5655 * config/m68k/nm-linux.h: Delete file.
5657 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5658 * config/pa/nm-linux.h: Delete file.
5660 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5661 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5662 * config/powerpc/nm-linux.h: Delete file.
5664 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5665 * config/s390/nm-linux.h: Delete file.
5667 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5668 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5669 * config/sparc/nm-linux.h: Delete file.
5671 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5672 (mips-linux-nat.o): Likewise.
5674 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5676 * core-aout.c: Delete file.
5677 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5678 (core-aout.o): Delete rule.
5679 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5681 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5683 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5684 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5685 KERNEL_U_ADDR): Remove.
5687 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5688 (cannot_fetch_register, cannot_store_register): Remove.
5689 (fetch_register): Inline cannot_fetch_register and register_addr.
5690 (store_register): Inline cannot_store_register and register_addr.
5691 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5692 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5693 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5696 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5697 (fetch_register): Inline register_addr.
5698 (store_register): Inline register_addr.
5699 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5700 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5701 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5703 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5704 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5705 REGISTER_U_ADDR): Remove.
5707 * hppa-linux-nat.c (register_addr): Rename to ...
5708 (hppa_linux_register_addr): ... this. Make static.
5709 (fetch_register, store_register): Adapt callers.
5710 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5712 * ppc-linux-nat.c (kernel_u_size): Remove.
5713 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5715 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5716 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5718 * config/vax/nm-vax.h: Delete file.
5720 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5722 * MAINTAINERS (Write After Approval): Add myself.
5724 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5726 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5727 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5728 (m68k_linux_sigcontext_reg_offset): Fix typo.
5729 (target_is_uclinux): New.
5730 (m68k_linux_inferior_created): New.
5731 (m68k_linux_get_sigtramp_info): Check for uClinux or
5732 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5734 (_initialize_m68k_linux_tdep): Register
5735 m68k_linux_inferior_created.
5737 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5739 * win32-nat.c (win32_detach): Remove delete_command call.
5740 Resume inferior with win32_resume instead of win32_continue.
5742 2007-04-19 Jerome Guitton <guitton@adacore.com>
5744 * ser-mingw.c (fd_is_file): New function.
5745 (file_select_thread): New function.
5746 (ser_console_wait_handle): Add special handling for files.
5748 2007-04-18 Denis Pilat <denis.pilat@st.com>
5750 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5751 when missing from DW_TAG_subrange_type. Remove the handling of null
5752 return from die_type.
5754 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5756 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5757 change to rearrange some brackets.
5758 (mips_n32n64_push_dummy_call): Likewise.
5759 (mips_o32_push_dummy_call): Likewise.
5760 (mips_o64_push_dummy_call): Likewise.
5762 2007-04-18 Denis Pilat <denis.pilat@st.com>
5764 * infcmd.c (post_create_inferior): Start with a call to
5765 target_terminal_ours.
5767 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5769 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5771 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5773 (mips_o32_push_dummy_call): Likewise.
5774 (mips_o64_push_dummy_call): Likewise.
5776 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5778 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5781 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5783 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5785 (mips_o32_push_dummy_call): Likewise.
5787 2007-04-17 Andreas Schwab <schwab@suse.de>
5789 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5790 sal to be bigger than the end of the function.
5792 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5793 Nigel Stephens <nigel@mips.com>
5795 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5796 argument alignment requirements when calculating stack space
5797 required. When aligning an arg register to eight bytes
5798 boundary, align stack_offset too. Write floating-point
5799 arguments to the appropriate integer register if need go there.
5800 (mips_o64_push_dummy_call): Likewise.
5802 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5804 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5805 "sig" arguments, add "regcache" argument.
5806 * gdbarch.c, gdbarch.h: Regenerate.
5808 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5809 (handle_inferior_event): Call remove_single_step_breakpoints directly
5810 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5812 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5813 Remove handling of !insert_breakpoints_p case.
5814 * arm-tdep.c (arm_software_single_step): Likewise.
5815 * cris-tdep.c (cris_software_single_step): Likewise.
5816 * mips-tdep.c (mips_software_single_step): Likewise.
5817 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5818 * sparc-tdep.c (sparc_software_single_step): Likewise.
5819 * spu-tdep.c (spu_software_single_step): Likewise.
5821 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5822 * mips-tdep.h (mips_software_single_step): Likewise.
5823 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5824 * sparc-tdep.h (sparc_software_single_step): Likewise.
5826 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5828 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5829 when removing single-step breakpoints.
5831 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5833 * varobj.h (varobj_set_frozen): New
5834 (varobj_get_frozen): New.
5835 (varobj_update): New parameter explicit.
5836 * varobj.c (struct varobj): New fields frozen
5838 (varobj_set_frozen, varobj_get_frozen): New.
5839 (install_new_value): Don't fetch values for
5840 frozen variable object, or children thereof. Allow
5841 a frozen variable object to have non-fetched value.
5842 (varobj_update): Allow updating child variables.
5843 Don't traverse frozen children.
5844 (new_variable): Initialize the frozen field.
5845 (c_value_of_variable): Return NULL for frozen
5846 variable without any value yet.
5847 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5849 (mi_cmd_var_create): Output the 'frozen' field,
5850 as soon as testsuite is adjusted to expect that field.
5851 (mi_cmd_var_set_frozen): New.
5852 (mi_cmd_var_update): Pass the 'explicit' parameter to
5854 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5855 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5857 2007-04-13 Paul Brook <paul@codesourcery.com>
5859 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5861 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5863 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5865 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5866 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5867 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5868 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5869 * Makefile.in: Remove references to deleted files.
5870 * README: Do not mention deleted ROM monitor interfaces.
5871 * defs.h (enum language): Delete language_scm.
5872 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5873 (dump_subexp_body_standard): Likewise.
5874 * parse.c (operator_length_standard): Likewise.
5875 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5876 * remote-mips.c: Do not include remote-utils.h.
5877 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5879 * value.c: Do not include scm-lang.h.
5880 (unpack_long): Delete scm_unpack call.
5881 * config/h8300/h8300.mt, config/mips/embed.mt,
5882 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5883 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5885 * NEWS: Mention removed files.
5887 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5889 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5890 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5892 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5894 * NEWS: Mention removal of HP aCC support.
5896 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5898 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5899 first entry for static executables.
5900 (breakpoint_addr): Delete unused variable.
5901 (elf_locate_base): Search for _r_debug in static executables.
5902 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5905 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5907 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5908 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5909 (mention): Remove bp_through_sigtramp support.
5910 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5912 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5914 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5917 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5919 * infrun.c: Doc fixes.
5920 (handle_inferior_event): Clarify debug message.
5921 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5923 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5925 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5927 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5929 * config/m68k/tm-monitor.h: Delete file.
5930 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5931 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5933 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5934 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5936 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5938 * gdbarch.sh (software_single_step): Change the return type
5939 from void to int and reformatted some comments to <= 80
5941 * gdbarch.c, gdbarch.h: Regenerated.
5942 * alpha-tdep.c (alpha_software_single_step): Likewise.
5943 * alpha-tdep.h (alpha_software_single_step): Likewise.
5944 * arm-tdep.c (arm_software_single_step): Likewise.
5945 * cris-tdep.c (cris_software_single_step): Likewise.
5946 * mips-tdep.c (mips_software_single_step): Likewise.
5947 * mips-tdep.h (mips_software_single_step): Likewise.
5948 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5949 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5950 * sparc-tdep.c (sparc_software_single_step): Likewise.
5951 * sparc-tdep.h (sparc_software_single_step): Likewise.
5952 * spu-tdep.c (spu_software_single_step): Likewise.
5953 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5954 and act accordingly.
5956 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5958 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5959 * configure: Regenerate.
5960 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5962 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5964 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5966 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5968 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5970 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5971 distinct on the TYPE_STUB_SUPPORTED debug targets.
5972 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5974 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5976 * sparc-tdep.c (X_RS2): New macro.
5977 (sparc_skip_stack_check): New function.
5978 (sparc_analyze_prologue): Adjust PC past stack probing
5979 sequence if necessary.
5981 2007-04-10 Andreas Schwab <schwab@suse.de>
5983 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5986 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5988 * breakpoint.c (gdb_breakpoint_query): Really return an
5990 (gdb_breakpoint): Likewise.
5991 * thread.c (gdb_list_thread_ids): Likewise.
5992 (gdb_thread_select): Likewise.
5993 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5994 (mi_cmd_thread_list_ids): Remove bogus initialization.
5996 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5998 * Makefile.in (SFILES): Remove hpacc-abi.c.
5999 (COMMON_OBS): Remove hpacc-abi.o.
6000 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6001 (hpacc-abi.o, hpread.o): Delete rules.
6002 * somread.c: Delete extern declarations from hpread.c.
6003 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6004 (som_symfile_finish): Do not call hpread_symfile_finish.
6005 (som_symfile_init): Do not call hpread_symfile_init.
6006 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6007 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6008 * hpacc-abi.c, hpread.c: Deleted.
6010 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6012 * solib-svr4.c (enable_break): Simplify return value.
6013 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6015 2007-04-10 Andreas Schwab <schwab@suse.de>
6017 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6018 l_ld_size, l_next_size, l_prev_size, l_name_size.
6020 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6021 to extract addresses from link map.
6022 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6023 (LM_NEXT): Likewise.
6024 (LM_NAME): Likewise.
6025 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6026 (elf_locate_base): Likewise.
6027 (open_symbol_file_object): Likewise.
6028 (svr4_fetch_objfile_link_map): Likewise.
6029 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6030 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6032 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6033 (svr4_lp64_fetch_link_map_offsets): Likewise.
6035 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6036 removed members. Set l_ld_offset to -1 if not present.
6038 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6040 Pass stderr of program run with "target remote |"
6042 * serial.c (serial_open): Set error_fd to -1.
6043 * serial.h (struct serial): New field error_fd.
6044 (struct serial_opts): New field avail.
6045 * ser-pipe.c (pipe_open): Create another pair
6046 of sockets. Pass stderr to gdb.
6047 * ser-mingw.c (pipe_windows_open): Pass
6048 PEX_STDERR_TO_PIPE to pex_run. Initialize
6051 (_initialize_ser_windows): Hook pipe_avail.
6052 * ser-base.c (generic_readchar): Check if there's
6053 anything in stderr channel and route that to gdb_stderr.
6055 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6057 * dbxread.c (read_ofile_symtab): Move current_objfile
6058 clearing to after end_stabs.
6060 2007-04-01 Andreas Schwab <schwab@suse.de>
6062 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6063 gdbarch instead of current_gdbarch.
6065 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6067 * varobj.c (varobj_create): Keep varobj value
6068 NULL when evaluating the type.
6070 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6072 * NEWS: Mention new Windows CE support.
6074 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6076 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6077 the obsoletion stanza.
6078 * NEWS: Mention deleted targets.
6080 * config/sh/tm-wince.h: Remove.
6081 * config/sh/wince.mt: Remove.
6082 * config/mips/tm-wince.h: Remove.
6083 * config/mips/wince.mt: Remove.
6086 * wince-stub.c: Remove.
6087 * wince-stub.h: Remove.
6088 * Makefile.in (wince.o): Remove rule.
6089 (wince-stub.o): Likewise.
6091 * mips-tdep.c (mips_next_pc): Make static.
6092 * mips-tdep.h (mips_next_pc): Remove declaration.
6093 * arm-tdep.c (arm_pc_is_thumb): Make static.
6094 (thumb_get_next_pc): Likewise.
6095 (arm_get_next_pc): Likewise.
6096 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6097 (arm_pc_is_thumb): Likewise.
6098 (thumb_get_next_pc): Likewise.
6099 (arm_get_next_pc): Likewise.
6101 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6103 * MAINTAINERS: Remove d10v entry.
6104 * Makefile.in (SFILES): Remove dwarfread.c.
6105 (COMMON_OBS): Remove dwarfread.o.
6106 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6107 (remote-est.o, rom68k-rom.o): Delete.
6108 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6109 target est, target rom68k, and DWARF 1.
6110 * configure.tgt: Mark d10v as removed.
6111 * dwarf2read.c: Doc update.
6112 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6114 (elf_locate_sections): Do not set them.
6115 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6116 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6117 * config/m68k/monitor.mt (TDEPFILES): Prune.
6118 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6119 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6121 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6123 * doublest.c (convert_floatformat_to_doublest): Use
6124 floatformat_classify.
6125 (floatformat_is_nan): Rename to...
6126 (floatformat_classify): ...this. Return more information.
6127 * doublest.h (enum float_kind): New.
6128 (floatformat_is_nan): Replace prototype...
6129 (floatformat_classify): ...with this one.
6130 * valprint.c (print_floating): Use floatformat_classify. Handle
6133 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6135 * README: Mention ISO C library requirement.
6137 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6139 * Makefile.in (SFILES): Remove nlmread.c.
6140 (COMMON_OBS): Remove nlmread.o.
6141 (nlmread.o): Delete rule.
6142 * README: Delete reference to remote-st.c.
6143 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6144 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6146 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6147 (_initialize_i386_tdep): Do not reference them.
6148 * nlmread.c: Delete file.
6149 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6150 * target.c: Doc update.
6151 * thread.c: Delete commented include.
6152 * config/alpha/tm-alpha.h: Doc update.
6154 2007-03-30 Chris Dearman <chris@mips.com>
6156 * utils.c (string_to_core_addr): Comment typo.
6158 2007-03-30 Chris Dearman <chris@mips.com>
6160 * mips-tdep.c: Comment typo.
6162 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6164 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6165 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6166 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6167 * config/powerpc/nm-ppc64-linux.h: Remove file.
6168 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6169 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6170 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6171 * infptrace.c (call_ptrace): Likewise.
6172 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6173 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6174 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6175 (store_register): Likewise.
6177 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6179 * Makefile.in (varobj.o): Add missing dependency.
6181 2007-03-29 Michael Snyder <msnyder@access-company.com>
6183 * MAINTAINERS: Update my email address.
6185 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6187 Add support for exception handling with multiple versions of
6189 * ada-lang.c: Update general comments on how Ada exception catchpoints
6191 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6192 (__gnat_raise_nodefer_with_msg): Delete.
6193 (ada_unhandled_exception_name_addr_ftype): New type.
6194 (exception_support_info): New type.
6195 (ada_unhandled_exception_name_addr): Add forward declaration.
6196 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6197 (default_exception_support_info): New constant.
6198 (exception_support_info_fallback): Likewise.
6199 (exception_info): New global variable.
6200 (ada_exception_support_info_sniffer): New function.
6201 (ada_executable_changed_observer): Likewise.
6202 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6203 ada_unhandled_exception_name_addr.
6204 (ada_unhandled_exception_name_addr): Reimplement to match the
6205 latest Ada runtime implementation.
6206 (error_breakpoint_runtime_sym_not_found): Delete.
6207 (ada_exception_sym_name): Get the exception sym name from
6208 exception_info rather than hardcoding it.
6209 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6210 Update error handling.
6211 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6213 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6215 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6216 (remote-st.o, uw-thread.o): Delete.
6217 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6218 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6219 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6220 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6221 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6222 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6223 rs6000-*-lynxos* to an obsoletion stanza.
6224 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6225 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6226 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6227 i[34567]86-*-netware*.
6228 * NEWS: Mention deleted targets.
6230 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6231 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6232 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6233 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6234 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6235 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6236 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6237 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6238 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6239 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6240 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6241 config/rs6000/tm-rs6000ly.h: Delete files.
6243 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6245 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6246 * interps.c (clear_interpreter_hooks): Do not clear
6247 deprecated_registers_changed_hook.
6248 * regcache.c (registers_changed): Do not call it.
6249 * top.c (deprecated_registers_changed_hook): Do not define it.
6250 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6251 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6252 (tui_remove_hooks): Do not remove it.
6253 (tui_selected_frame_level_changed_hook): Check for negative level.
6254 Use get_selected_frame.
6255 (tui_registers_changed_hook): Deleted.
6257 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6259 * stabsread.c (add_undefined_type): Add extra parameter.
6260 Now handles nameless types separately.
6261 (struct nat): New type.
6262 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6263 New static variables.
6264 (read_type): Update calls to add_undefined_type.
6265 (add_undefined_type_noname): New function.
6266 (add_undefined_type_1): Renames from add_undefined_type.
6267 (cleanup_undefined_types_noname): New function.
6268 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6269 (cleanup_undefined_types): New handles nameless types separately.
6270 (_initialize_stabsread): Initialize our new static constants.
6272 2007-03-29 Denis Pilat <denis.pilat@st.com>
6274 * configure.ac: Test for signal.h.
6275 * configure, config.in: Regenerate.
6277 2007-03-29 Denis Pilat <denis.pilat@st.com>
6279 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6280 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6282 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6284 * arm-wince-tdep.c: New.
6285 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6286 (MT_CFLAGS): Delete.
6288 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6289 solib-legacy.o, solib-svr4.o, and remove wince.o.
6290 * configure.tgt (arm*-*-mingw32ce*): Add.
6291 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6292 (do_target_signal_to_host): Silence 'not used' warning.
6293 * config/arm/tm-wince.h: Remove.
6295 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6297 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6298 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6300 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6301 * config/ia64/tm-linux.h: Remove file.
6302 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6303 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6304 legacy_pc_in_sigtramp.
6305 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6306 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6307 Remove func_name argument.
6308 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6310 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6311 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6312 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6313 (HAVE_STEPPABLE_WATCHPOINT): Define.
6315 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6316 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6317 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6318 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6319 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6320 target_insert_watchpoint, target_remove_watchpoint): Remove.
6321 (FETCH_INFERIOR_REGISTERS): Define.
6322 * ia64-linux-nat.c (ia64_register_addr): Make static.
6323 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6324 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6325 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6326 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6327 (ia64_linux_stopped_by_watchpoint): Make static.
6328 (ia64_linux_can_use_hw_breakpoint): New function.
6329 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6330 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6331 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6333 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6335 * linespec.c: Include language.h.
6336 (find_methods): Add language parameter. Call
6337 lookup_symbol_in_language. Pass language down.
6338 (add_matching_methods): Likewise. Call
6339 lookup_symbol_in_language.
6340 (add_constructors): Likewise.
6341 (find_method): Pass sym_class to collect_methods.
6342 (collect_methods): Add sym_class parameter. Pass language
6344 * symtab.c (lookup_symbol): Rename to ...
6345 (lookup_symbol_in_language): ... this. Add language
6346 parameter. Use passed language instead of current_language.
6347 (lookup_symbol): New as wrapper around
6348 lookup_symbol_in_language.
6349 (lookup_symbol_aux): Add language parameter. Use passed
6350 language instead of current_language.
6351 (search_symbols): Indent.
6352 * symtab.h (enum language): Forward declare.
6353 (lookup_symbol_in_language): Declare.
6354 (lookup_symbol): Update description.
6355 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6356 * ada-lang.c (restore_language): Remove.
6357 (lookup_symbol_in_language): Remove.
6359 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6361 * breakpoint.c (bpstat_num): Add int *num parameter.
6362 * breakpoint.h (bpstat_num): Likewise.
6363 * infcmd.c (continue_command): Adjust to new bpstat_num
6365 (program_info): Likewise.
6367 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6369 * config/sh/tm-sh.h: Remove file.
6370 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6371 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6372 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6373 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6375 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6377 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6378 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6379 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6380 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6381 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6382 sequence if target_shortname is "remote".
6384 2007-03-27 Anton Blanchard <anton@samba.org>
6386 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6387 instead of wordsize when looking for the LR in a stack frame.
6389 2007-03-27 Andreas Schwab <schwab@suse.de>
6390 Daniel Jacobowitz <dan@codesourcery.com>
6392 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6393 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6394 argument. Update all callers.
6395 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6396 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6397 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6398 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6399 (dwarf2_frame_set_adjust_regnum): ...this.
6400 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6401 * rs6000-tdep.c: Include "dwarf2-frame.h".
6402 (rs6000_adjust_frame_regnum): Define.
6403 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6404 Register rs6000_adjust_frame_regnum.
6406 * Makefile.in (rs6000-tdep.o): Update dependencies.
6408 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6410 * Makefile.in: Add support for a "pdf" target.
6412 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6414 * amd64-tdep.c (amd64_init_frame_cache): New function.
6415 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6417 2007-03-26 Nigel Stephens <nigel@mips.com>
6418 Maciej W. Rozycki <macro@mips.com>
6420 * ui-out.c (ui_out_field_core_addr): Truncate address to
6421 TARGET_ADDR_BIT size before printing.
6423 2007-03-22 Nigel Stephens <nigel@mips.com>
6424 Maciej W. Rozycki <macro@mips.com>
6426 * remote-mips.c (mips_xfer_memory): Update prototype.
6428 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6430 * symfile.h: #include "symtab.h"
6432 2007-03-22 Denis Pilat <denis.pilat@st.com>
6434 * utils.c (pagination_on_command, pagination_off_command):
6435 Remove useless prototypes.
6437 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6440 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6441 instead of TYPE_NAME for object base class name.
6444 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6446 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6447 Specify frame type in calls to frame_func_unwind().
6449 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6451 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6452 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6453 (refine_prologue_limit): Delete.
6454 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6455 Assume lim_pc is set. Correct check for incomplete prologues.
6456 Do not skip clobbers of the frame pointer.
6457 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6460 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6462 * frame.c (frame_pop): Check to see whether there's a frame to
6463 which we can pop first.
6465 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6467 * MAINTAINERS (Write After Approval): Add myself.
6469 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6471 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6472 (handle_inferior_event): Remove unnecessary braces.
6473 * breakpoint.c (bpstat_what): Remove wrong comment.
6475 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6477 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6478 (spu_gdbarch_init): Install it.
6480 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6482 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6483 object types, not 0.
6485 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6487 * spu-tdep.c (spu_frame_align): New function.
6488 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6490 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6492 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6493 (spu_software_single_step): Likewise.
6494 (spu_read_pc, spu_write_pc): New functions.
6495 (spu_gdbarch_init): Install them.
6497 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6499 * cli/cli-dump.c (struct callback_data): load_offset needs to
6500 have signed long type.
6502 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6504 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6505 Revert the previous change that had some unexpected side-effects
6507 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6508 function to get the address of the calling instruction.
6510 2007-03-07 Denis Pilat <denis.pilat@st.com>
6512 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6513 get_selected_frame by deprecated_safe_get_selected_frame.
6515 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6517 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6518 "gdb_string.h". Don't include "nbsd-tdep.h".
6519 (SIZEOF_STRUCT_REG): Remove.
6520 (SHNBSD_SIZEOF_GREGS): New.
6521 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6522 (shnbsd_regset_from_core_section): New functions.
6523 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6524 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6525 shnbsd_supply_gregset, shnbsd_collect_gregset.
6526 (shnbsd_gregset): New variable.
6527 (shnbsd_init_abi): Set regset_from_core_section.
6528 (GDB_OSABI_NETBSD_CORE): New define.
6529 (shnbsd_core_osabi_sniffer): New function.
6530 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6531 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6532 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6534 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6536 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6538 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6539 length of the types referenced by the new type CV ring.
6541 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6543 * frame.c (frame_pop, frame_observer_target_changed): Call
6545 (flush_cached_frames): Rename to reinit_frame_cache and delete
6547 * frame.h (flush_cached_frames): Delete prototype and update comment.
6549 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6550 reinit_frame_cache instead of flush_cached_frames. Do not call
6551 select_frame after reinit_frame_cache.
6552 * corelow.c (core_open): Likewise.
6553 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6554 * infrun.c (prepare_to_proceed, context_switch)
6555 (handle_inferior_event): Likewise.
6556 * linux-fork.c (fork_load_infrun_state): Likewise.
6557 * ocd.c (ocd_start_remote): Likewise.
6558 * remote-e7000.c (e7000_start_remote): Likewise.
6559 * remote-mips.c (device): Likewise.
6560 * thread.c (switch_to_thread): Likewise.
6561 * tracepoint.c (finish_tfind_command): Likewise.
6562 * gdbarch.c: Regenerated.
6564 2007-02-28 Jerome Guitton <guitton@adacore.com>
6565 Joel Brobecker <brobecker@adacore.com>
6567 * gdbtypes.c (check_typedef): Do not replace stub type if
6568 the resolved type is not defined in the same objfile.
6570 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6572 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6574 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6576 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6577 symbol for Ada units when the symbol is defined using 't' rather
6578 than 'Tt' as symbol descriptor.
6580 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6582 * config/mips/tm-nbsd.h: Delete file.
6583 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6584 * config/sh/tm-nbsd.h: Delete file.
6585 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6587 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6589 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6590 unused WRONG_PARAM value since it was recently deleted.
6592 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6594 * varobj.c (varobj_update): Free temporary vectors.
6596 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6598 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6599 * config/powerpc/tm-linux.h: Delete file.
6600 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6601 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6602 (TEXT_SEGMENT_BASE): Do not redefine.
6603 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6604 from config/rs6000/tm-rs6000.h.
6605 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6606 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6607 (TEXT_SEGMENT_BASE): Remove.
6608 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6609 (rs6000_in_solib_return_trampoline): Remove.
6610 (SKIP_TRAMPOLINE_CODE): Remove.
6611 (rs6000_skip_trampoline_code): Remove.
6612 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6613 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6614 (FP0_REGNUM): Remove.
6615 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6616 (rs6000_set_host_arch_hook): Remove.
6617 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6618 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6619 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6620 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6621 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6622 * rs6000-nat.c: Include "rs6000-tdep.h".
6623 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6624 (set_host_arch): Rename to ...
6625 (rs6000_create_inferior): ... this. Make public.
6626 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6627 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6628 (rs6000_create_inferior): Remove.
6629 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6630 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6631 set_gdbarch_in_solib_return_trampoline, and
6632 set_gdbarch_skip_trampoline_code.
6633 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6634 from config/rs6000/tm-rs6000.h.
6636 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6638 * buildsym.c (record_producer): Do nothing if no producer is provided.
6640 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6642 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6643 to check changelist is non-NULL. Call error if the frontend tries
6644 to update a non-root variable.
6646 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6648 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6650 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6651 (dwarf2_frame_sniffer): Update.
6652 (dwarf2_signal_frame_this_id): New function.
6653 (dwarf2_signal_frame_unwind): Use it.
6654 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6655 * frame.c (frame_func_unwind): Add this_type argument.
6656 (get_frame_func): Update.
6657 (frame_unwind_address_in_block): Add this_type argument and check it.
6659 (get_frame_address_in_block): Update.
6660 * frame.h (enum frame_type): Move higher in the file.
6661 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6664 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6665 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6666 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6667 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6668 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6669 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6670 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6671 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6672 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6673 frame_func_unwind and frame_unwind_address_in_block to specify
6674 the frame type. Use frame_unwind_address_in_block instead of
6675 frame_pc_unwind in sniffers.
6677 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6679 * frame.c (deprecated_selected_frame): Rename to...
6680 (selected_frame): ...this. Make static.
6681 (get_selected_frame, select_frame): Update.
6682 * frame.h (deprected_select_frame): Delete.
6683 (deprecated_safe_get_selected_frame): Update comments.
6685 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6686 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6687 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6688 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6689 tui/tui.c: Replace references to deprecated_selected_frame.
6691 2007-02-27 Fred Fish <fnf@specifix.com>
6693 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6694 directly decrement the stack pointer, accumulate their operand into
6695 the stack offset, and mark the function as not being frameless.
6697 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6699 * arch-utils.c (selected_byte_order): New.
6700 * arch-utils.h (selected_byte_order): New prototype.
6701 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6703 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6705 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6706 (default_symfile_offsets): Check VMA here. Update section VMAs.
6708 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6710 * remote.c (init_remote_state): Add special handling for placeholder
6713 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6715 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6716 (filenames_h): New variable.
6717 (clean): Clean up xml-builtin.c and stamp-xml.
6718 (arm-linux-nat.o): Update.
6719 * config/arm/linux.mh (TDEP_XML): Define.
6720 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6721 (arm_linux_has_wmmx_registers): New.
6722 (GET_THREAD_ID): Fix typo.
6723 (IWMMXT_REGS_SIZE): Define.
6724 (fetch_wmmx_regs, store_wmmx_regs): New.
6725 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6726 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6727 (super_xfer_partial, arm_linux_xfer_partial): New.
6728 (_initialize_arm_linux_nat): Use them.
6729 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6730 (xml_builtin_xfer_partial): New function.
6731 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6732 * NEWS: Update mention of iWMMXt support.
6734 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6736 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6737 if there are no FPA registers.
6738 (arm_dwarf_reg_to_regnum): New function.
6739 (arm_register_type, arm_register_name): Return minimal values for
6740 unsupported registers.
6741 (arm_register_sim_regno): Handle iWMMXt registers.
6742 (arm_gdbarch_init): Record missing FPA registers if indicated by
6743 a target description. Recognize iWMMXt registers. Only register
6744 "info float" for FPA. Use ARM_NUM_REGS. Register
6745 arm_dwarf_reg_to_regnum.
6746 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6748 (struct gdbarch_tdep): Add have_fpa_registers.
6749 * features/xscale-iwmmxt.xml: Update capitalization.
6750 * regformats/arm-with-iwmmxt.dat: Regenerated.
6752 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6754 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6756 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6758 * MAINTAINERS (mep): New target.
6760 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6762 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6764 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6765 (mep-tdep.o): New rule.
6766 * configure.tgt (mep-*-*): New target.
6767 * mep-tdep.c: New file.
6768 * config/mep/mep.mt: New file.
6770 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6772 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6773 BREAKPOINT_HIT and STOP_UNKNOWN.
6775 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6777 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6779 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6781 * gdb_expat.h (XMLCALL): Define if not already defined.
6783 2007-02-20 Andreas Schwab <schwab@suse.de>
6785 * Makefile.in (symfile.o): Update dependencies.
6787 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6789 * MAINTAINERS: Disable -Werror for cris simulator. Build
6790 sparc64-solaris2.10 instead of the broken sparc-elf.
6791 * solib-frv.c: Include "solib.h".
6792 * Makefile.in (solib-frv.o): Update.
6793 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6794 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6795 (xtensa_frame_this_id, xtensa_frame_prev_register)
6796 (xtensa_push_dummy_call): Use %p.
6798 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6800 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6801 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6802 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6803 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6804 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6805 (sparc-linux-tdep.o): Update.
6807 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6809 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6810 (xtensa_mask_t): Change mask field to be a separate array.
6811 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6812 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6813 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6814 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6815 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6816 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6817 (mask14, mask15): Rename to
6818 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6819 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6820 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6821 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6822 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6823 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6824 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6825 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6826 (xtensa_submask14, xtensa_submask15): New.
6827 (rmap): Follow strict aliasing rules doing static initialization.
6829 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6831 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6832 handling from here...
6833 (tdesc_register_type): ...to here.
6834 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6835 * features/arm-core.xml: Use code_ptr and data_ptr.
6837 2007-02-13 Denis Pilat <denis.pilat@st.com>
6839 * varobj.h (enum varobj_update_error): New enum.
6840 * varobj.c (struct varobj_root): Add is_valid member.
6841 (varobj_get_type): Check for invalid varobj.
6842 (varobj_get_attributes): Likewise.
6843 (variable_editable):Likewise.
6844 (varobj_update): Likewise. Use varobj_update_error.
6845 (new_root_variable): Set root varobj as valid by default.
6846 (varobj_invalidate): New function.
6847 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6848 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6849 Use varobj_update_error.
6851 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6854 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6855 Pascal language marker.
6856 * dwarf2read.c (set_cu_language): Likewise.
6858 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6860 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6861 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6862 instead of target_terminal_init since inferior_ptid isn't set yet.
6864 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6866 * MAINTAINERS (Write After Approval): Add myself.
6868 2007-02-09 Fred Fish <fnf@specifix.com>
6870 Based on work by Apple Computer, Inc.
6871 * event-top.c (async_request_quit): Call quit() whenever either
6872 quit_flag is set or immediate_quit is set.
6874 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6876 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6877 type to a pointer to const struct block.
6878 (ada_lookup_symbol_list): Don't cast away constness when calling
6879 remove_out_of_scope_renamings.
6881 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6883 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6884 address of 'filename'; it is always non null.
6886 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6888 * exec.c (add_to_section_table): Do not discard empty sections.
6890 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6892 * features/Makefile, features/arm-with-iwmmxt.xml,
6893 features/gdbserver-regs.xsl, features/number-regs.xsl,
6894 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6895 * regformats/arm-with-iwmmxt.dat: Generate.
6896 * NEWS: Mention iWMMXt.
6898 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6900 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6901 (xml-tdesc.o): Update.
6902 * xml-support.c: Add a comment.
6903 (gdb_xml_enums_boolean): New variable.
6904 (gdb_xml_parse_attr_enum): Use strcasecmp.
6905 * xml-support.h (gdb_xml_enums_boolean): Declare.
6906 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6907 next_regnum, and current_union.
6908 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6909 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6910 (field_attributes, union_children, reg_attributes, union_attributes)
6911 (vector_attributes, feature_attributes, feature_children): New.
6912 (target_children): Make static. Add <feature>.
6913 (tdesc_elements): Make static.
6914 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6915 (struct tdesc_feature, tdesc_feature_p): New types.
6916 (struct target_desc): Add features member.
6917 (struct tdesc_arch_data, tdesc_data): New.
6918 (target_find_description): Clarify error message. Warn about
6919 ignored register descriptions.
6920 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6921 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6922 (tdesc_data_cleanup, tdesc_numbered_register)
6923 (tdesc_numbered_register_choices, tdesc_find_register)
6924 (tdesc_register_name, tdesc_register_type)
6925 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6926 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6927 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6928 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6929 (tdesc_create_feature, tdesc_record_type): New.
6930 (free_target_description): Free features.
6931 (_initialize_target_descriptions): Initialize tdesc_data.
6932 * arch-utils.c (default_remote_register_number): New.
6933 * arch-utils.h (default_remote_register_number): New prototype.
6934 * target-descriptions.h (set_tdesc_pseudo_register_name)
6935 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6936 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6937 (tdesc_numbered_register, tdesc_numbered_register_choices)
6938 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6939 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6940 (tdesc_create_reg): Declare.
6941 * gdbarch.sh (remote_register_number): New entry.
6942 * gdbarch.c, gdbarch.h: Regenerate.
6943 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6944 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6946 * arm-tdep.c (arm_register_aliases): New.
6947 (arm_register_name_strings): Rename to...
6948 (arm_register_names): ...this. Make const. Delete the old version.
6949 (current_option, arm_register_byte): Delete.
6950 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6951 (value_of_arm_user_reg): New.
6952 (arm_gdbarch_init): Verify any described registers. Call
6953 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6954 for standard register names.
6955 (_initialize_arm_tdep): Do not adjust arm_register_names.
6956 * user-regs.c (struct user_reg): Add baton member.
6957 (append_user_reg, user_reg_add_builtin, user_regs_init)
6958 (user_reg_add, value_of_user_reg): Use a baton for user
6960 * std-regs.c: Update.
6961 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6962 (user_reg_add): Add baton argument.
6963 * NEWS: Mention target description register support.
6964 * features/arm-core.xml, features/arm-fpa.xml: New.
6965 * eval.c (evaluate_subexp_standard): Allow ptype $register
6966 when the program is not running.
6968 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6970 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6972 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6974 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6975 info->disassembler_options to "any".
6977 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6979 * varobj.c (install_new_value): Only call value_get_print_value
6982 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6984 Reported by timeless@gmail.com:
6985 * gdb/target.c (target_flash_erase): Do not return void value.
6986 (target_flash_done): Likewise.
6987 * gdb/cli/cli-cmds.c (source_command): Likewise.
6989 2007-02-08 Fred Fish <fnf@specifix.com>
6991 Based on work by Apple Computer, Inc.
6992 * event-top.c (handle_sigint): Set quit_flag.
6993 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6994 if quit_flag has already been reset.
6996 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6998 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7001 2007-02-08 Fred Fish <fnf@specifix.com>
7003 * defs.h (request_quit): Remove declaration.
7004 * utils.c (request_quit): Remove definition.
7006 2007-02-08 Joel Brobecker <brobecker@gnat.com>
7007 Jan Kratochvil <jan.kratochvil@redhat.com>
7008 Daniel Jacobowitz <dan@codesourcery.com>
7010 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7011 (skip_prologue): Allow bl->blrl used by PIC code.
7013 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7014 Daniel Jacobowitz <dan@codesourcery.com>
7016 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7017 initialize tmp_obstack.
7018 * p-valprint.c (pascal_object_print_value_fields)
7019 (pascal_object_print_value): Likewise.
7021 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7023 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7025 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7027 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7028 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7030 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7032 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7034 (tdesc_parse_xml): Cache expanded descriptions.
7036 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7038 * Makefile.in (XMLFILES): New.
7039 (COMMON_OBS): Add xml-builtin.o.
7040 (xml-builtin.c, stamp-xml): New rules.
7041 (xml-tdesc.o): Update.
7042 * features/feature_to_c.sh: New file.
7043 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7044 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7045 (gdb_xml_start_element): Initialize scope after possibly reallocating
7046 scopes. Move cleanup later. Handle the XInclude description
7048 (gdb_xml_end_element): Only parse the body if there is a current element.
7049 Call XML_DefaultCurrent if there is no element.
7050 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7051 (struct xinclude_parsing_data, xinclude_start_include)
7052 (xinclude_end_include, xml_xinclude_default)
7053 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7054 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7055 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7056 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7057 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7058 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7059 XInclude directives. Use the compiled in DTD.
7060 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7061 directory name. Do not warn here.
7062 (file_read_description_xml): Update call. Warn here instead. Pass
7064 (fetch_available_features_from_target): New.
7065 (target_read_description_xml): Use it.
7066 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7068 * features/xinclude.dtd: New file.
7070 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7072 * linux-thread-db.c (check_for_thread_db): Return early if we have
7073 no libthread_db support.
7075 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7077 * mi/mi-parse.h: Include <sys/time.h>.
7079 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
7081 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7082 instead of print_variable_value to print values.
7084 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7086 * mi/mi-main.c: Numerous formatting changes.
7087 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7088 removed in my previous change.
7090 2007-02-03 Eli Zaretskii <eliz@gnu.org>
7092 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7093 Use 1000000L instead of 1000000.
7095 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7097 Based on work by Apple Computer, Inc.
7099 * configure.ac: Test for sys/resource.h and getrusage.
7100 * configure, config.in: Regenerate.
7102 * mi/mi-main.c: Include <sys/resource.h> if present.
7103 (rusage): Declare if HAVE_GETRUSAGE.
7104 (current_command_ts, do_timings): New static variables.
7105 (timestamp, print_diff_now, print_diff, timeval_diff):
7106 New static timing functions.
7107 (mi_cmd_enable_timings): New function for new MI command.
7108 (captured_mi_execute_command, mi_execute_async_cli_command):
7109 Call timing functions.
7111 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7114 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7116 * mi/mi-parse.h: (mi_timestamp): New structure.
7117 (mi_parse): Add mi_timestamp* member.
7119 2007-02-02 Denis Pilat <denis.pilat@st.com>
7121 * thread.c (make_cleanup_restore_current_thread): New function.
7122 (info_threads_command): Use of make_cleanup_restore_current_thread
7123 to restore the current thread and the selected frame.
7124 (restore_selected_frame): New function.
7125 (struct current_thread_cleanup): Add frame_id field.
7126 (do_restore_current_thread_cleanup): Add restoring of the selected
7128 (make_cleanup_restore_current_thread): Likewise.
7129 (thread_apply_all_command): backup the selected frame while
7130 entering the function and restore it at exit.
7131 (thread_apply_command): Likewise.
7133 2007-02-02 Denis Pilat <denis.pilat@st.com>
7135 * MAINTAINERS (Write After Approval): Add myself to the list.
7137 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7139 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7140 (m32r_store_register): Ditto.
7142 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7144 * ser-mingw.c (pipe_windows_open)
7145 (pipe_windows_read, pipe_windows_write): Declare
7146 variables at the top of the function.
7148 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7150 * doublest.c (floatformat_from_length): Use the right element from
7151 gdbarch floatformats.
7152 (floatformat_from_type, extract_typed_floating)
7153 (store_typed_floating): Likewise.
7154 * doublest.h: Remove declarations for undefined floatformat arrays.
7155 * gdbarch.sh (float_format, double_format, long_double_format): Change
7157 (pformat): Update for pairs.
7158 * gdbarch.c, gdbarch.h: Regenerated.
7159 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7160 (floatformats_ieee_double_littlebyte_bigword)
7161 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7162 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7163 (floatformats_vax_d): New variables.
7164 (builtin_type_ieee_single, builtin_type_ieee_double)
7165 (builtin_type_arm_ext, builtin_type_ia64_spill)
7166 (builtin_type_ia64_quad): Replace arrays with individual types.
7167 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7168 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7169 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7170 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7171 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7172 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7173 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7174 unused and endian-specific types.
7175 (recursive_dump_type): Update for floatformat pairs.
7176 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7177 (build_gdbtypes): Use build_flt.
7178 (_initialize_gdbtypes): Update set of initialized types.
7179 * gdbtypes.h: Update declarations to match gdbtypes.c.
7180 (struct main_type): Store a pointer to two floatformats.
7181 * arch-utils.c (default_float_format, default_double_format): Delete.
7182 * arch-utils.h (default_float_format, default_double_format): Delete.
7184 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7185 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7186 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7187 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7188 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7190 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7192 * target.c (maintenance_print_target_stack): New function.
7193 (initialize_targets): Add new "maintenance print target-stack"
7196 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7198 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7200 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7202 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7203 (struct dwarf2_loclist_baton): Likewise.
7205 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7207 * cli/cli-script.c: Include breakpoint.h.
7208 (build_command_line): Require arguments only for if and while
7210 (get_command_line, execute_user_command, execute_control_command):
7211 Fix wording of warning messages.
7212 (print_command_lines): Print breakpoint commands.
7213 (execute_control_command): Call commands_from_control_command to
7214 handle the `commands' command inside a body of a flow-control
7216 (read_next_line): Recognize the `commands' command and build a
7217 command line structure for it.
7218 (recurse_read_control_structure, read_command_lines): Handle
7219 `commands' similarly to `if' and `while'.
7221 * breakpoint.c (get_number_trailer): Document the special meaning
7222 of NULL as the first argument PP.
7223 (commands_from_control_command): New function.
7225 * breakpoint.h (commands_from_control_command): Add prototype.
7227 * defs.h (commands_control): New enumerated value for enum
7228 command_control_type.
7230 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7232 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7233 (ada_exception_sal): Update accordingly.
7235 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7237 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7238 * NEWS: Describe CHAR array vs. string identifcation rules.
7240 2007-01-25 Paul Brook <paul@codesourcery.com>
7242 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7244 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7246 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7247 expression is empty, bother to return the 'optimized out' value we
7248 construct. (Thanks to Carl Burch.)
7250 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7252 * varobj.c (c_value_of_root, c_value_of_child)
7253 (cplus_describe_child): Don't call release_value.
7255 2007-01-24 Thiemo Seufer <ths@mips.com>
7257 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7260 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7262 Refactor getting children name, value and type access
7264 * varobj.c (get_type_deref): Remove.
7265 (adjust_value_for_child_access): New.
7266 (c_number_of_children): Use the above.
7267 (c_describe_child): Likewise.
7268 (enum accessibility): New.
7269 (match_accessibility): New function.
7270 (cplus_describe_child): New function.
7271 (cplus_name_of_child, cplus_value_of_child)
7272 (cplus_type_of_child): Reimplement in terms
7273 of cplus_describe_child.
7274 (cplus_number_of_children): Use
7275 adjust_value_for_child_access.
7277 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7279 Fix computation of the 'editable' attribute and
7280 value changeability for for references.
7281 * varobj.c (get_value_type): New function.
7282 (c_variable_editable): Use get_value_type.
7283 (varobj_value_is_changeable): Likewise.
7285 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7287 * source.c (find_and_open_source): Try rewriting the source
7288 path inside filename if dirname is NULL.
7290 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7292 * dwarf2read.c (add_partial_symbol): Create an extra partial
7293 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7294 (new_symbol): Likewise for symbols.
7296 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7298 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7300 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7302 * value.c (value_primitive_field): Copy the full 'location'
7303 contents, instead of assuming that copying ADDRESS will
7304 bring over everything in the union. Remove obsolete comment.
7306 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7308 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7309 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7310 (m32c_m16c_pointer_to_address): Separate code from declarations.
7312 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7314 * target.c (update_current_target): Correct typo.
7316 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7318 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7321 2007-01-11 Andrew Cagney <cagney@redhat.com>
7322 Daniel Jacobowitz <dan@codesourcery.com>
7323 Jan Kratochvil <jan.kratochvil@redhat.com>
7325 * dwarf2-frame.c (execute_cfa_program): New support of
7326 `DW_CFA_GNU_negative_offset_extended'.
7328 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7330 * NEWS: Mention flash support for "load" and new remote packets.
7332 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7334 * breakpoint.c (delete_command): Skip redundant loop iterations.
7336 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7338 * gdbarch.sh (register_type): Update comment.
7339 * gdbarch.h: Regenerated.
7340 * arch-utils.c (generic_register_size): Call register_type.
7341 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7342 * m32c-tdep.c (check_for_saved): Likewise.
7343 * mips-tdep.c (mips_print_register, print_gp_register_row)
7344 (mips_print_registers_info): Likewise.
7345 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7347 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7348 (sh64_do_register, sh64_print_register)
7349 (sh64_media_print_registers_info): Likewise.
7350 * tui/tui-regs.c (tui_register_format): Likewise.
7352 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7354 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7356 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7357 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7358 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7359 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7360 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7361 (make_symbol_completion_list): Likewise.
7363 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7364 Daniel Jacobowitz <dan@codesourcery.com>
7366 * buildsym.c (end_symtab): Use preallocated symtab if available.
7367 Fill in SYMBOL_SYMTAB.
7368 * buildsym.h (struct subfile): Add symtab member.
7369 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7370 (struct file_entry): Add symtab.
7371 (free_cu_line_header): New function.
7372 (read_file_scope): Use it. Save line_header in the cu. Process
7374 (add_file_name): Initialize new symtab member.
7375 (dwarf_decode_lines): Create symtabs for included files.
7376 (new_symbol): Set SYMBOL_SYMTAB.
7377 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7378 (search_symbols): Likewise.
7379 * symtab.h (struct symbol): Add symtab member.
7380 (SYMBOL_SYMTAB): Define.
7382 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7384 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7386 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7388 * arch-utils.c (show_endian): Correct reversed condition.
7390 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7392 * MAINTAINERS (Write After Approval): Add myself.
7394 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7395 Vladimir Prus <vladimir@codesourcery.com>
7397 Fix 'selected frame' varobjs.
7398 * varobj.c (struct varobj): Remove the error field.
7399 (varobj_set_value): Don't check var->error.
7400 (install_new_value): Don't set var->error.
7401 (varobj_update): Always pass the new value
7402 of the root via install_new_value.
7403 (create_child): Don't set error field.
7404 (new_variable): Likewise.
7405 (c_value_of_root): Always reevaluate the value
7406 of selected frame varobjs in the selected frame.
7407 Don't call reinit_frame_cache.
7409 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7411 * source.c (_initialize_source): Improve the help text of
7412 the substitute-path commands.
7414 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7416 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7417 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7418 (frv_skip_prologue): Remove prototypes.
7419 (frv_adjust_breakpoint_address): Renamed from
7420 frv_gdbarch_adjust_breakpoint_address.
7421 (frv_gdbarch_init): Adjust.
7423 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7425 * gdbarch.sh (deprecated_extract_return_value)
7426 (deprecated_store_return_value): Remove.
7427 (extract_return_value, store_return_value): Remove default values.
7428 * gdbarch.c, gdbarch.h: Regenerate.
7429 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7430 (legacy_store_return_value): Remove.
7431 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7434 * mi/mi-main.c: Remove obsolete comment.
7436 * regcache.c, regcache.h (deprecated_register_bytes)
7437 (deprecated_read_register_bytes)
7438 (deprecated_write_register_bytes): Remove.
7440 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7441 Don't forget to move destination pointer.
7443 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7445 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7447 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7449 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7450 past entry function with recent newlib.
7452 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7454 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7455 introduction. Specify -var-update more exactly.
7457 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7459 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7461 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7463 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7464 the Global Maintainers' invitation to be a global maintainer.
7466 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7468 * infrun.c (singlestep_pc): New variable.
7469 (resume): Set singlestep_pc.
7470 (context_switch): Add a debugging message. Flush the frame cache.
7471 (handle_inferior_event): Add debugging messages. Handle thread
7472 hops when a software single step has completed. Let context_switch
7473 handle flushing the frame cache.
7475 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7477 * NEWS: Mention target descriptions, "set tdesc filename",
7478 "unset tdesc filename", "show tdesc filename", and
7479 qXfer:features:read.
7480 * arch-utils.c (choose_architecture_for_target): New function.
7481 (gdbarch_info_fill): Call it.
7482 * target-descriptions.c (struct property): Make members non-const.
7483 (struct target_desc): Add arch member.
7484 (target_description_filename): New variable.
7485 (target_find_description): Try via XML first.
7486 (tdesc_architecture): New.
7487 (free_target_description, make_cleanup_free_target_description): New.
7488 (set_tdesc_property): Call xstrdup.
7489 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7490 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7491 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7492 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7493 * target-descriptions.h (tdesc_architecture)
7494 (make_cleanup_free_target_description, set_tdesc_architecture): New
7496 * Makefile.in (SFILES): Add xml-tdesc.c.
7497 (COMMON_OBS): Add xml-tdesc.o.
7498 (target-descriptions.o): Update.
7499 (xml-tdesc.o): New rule.
7500 * xml-tdesc.c, xml-tdesc.h: New files.
7501 * remote.c (PACKET_qXfer_features): New enum.
7502 (remote_protocol_features): Add qXfer:features:read.
7503 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7504 (_initialize_remote): Register qXfer:features:read.
7505 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7506 * features/gdb-target.dtd: New file.
7508 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7510 * copyright.sh: Clarify error.
7512 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7514 * symtab.c (matching_bfd_sections): Fix VMA matching for
7517 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7519 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7522 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7524 Updated copyright notices for most files.
7526 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7528 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7530 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7532 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7534 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7536 * configure, config.in: Regenerate.
7537 * defs.h (debug_file_directory): Declare.
7538 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7539 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7540 relocate it if DEBUGDIR_RELOCATABLE.
7541 * symfile.c (debug_file_directory): Make non-static.
7542 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7543 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7544 (_initialize_symfile): Don't initialize debug_file_directory here.
7546 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7548 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7551 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7553 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7554 frame_unwind_register to recurse.
7555 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7556 (alpha_heuristic_frame_prev_register): Likewise.
7557 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7558 * m32c-tdep.c (m32c_prev_register): Likewise.
7559 * frame.c (frame_register_unwind_location): Remove FIXME.
7561 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7562 Eli Zaretskii <eliz@gnu.org>
7564 * copyright.sh: New file.
7566 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7568 * configure.ac: Check for XML_StopParser.
7569 * xml-support.c (gdb_xml_body_text): Check for an error.
7570 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7571 (gdb_xml_end_element_wrapper): Likewise.
7572 * config.in, configure: Regenerated.
7574 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7576 * varobj.c (install_new_value): Always update print_value.
7577 (value_get_print_value): Immediately return NULL for missing
7580 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7582 * configure.ac: Tighten pattern for extracting value of
7583 DEPRECATED_TM_FILE from the target makefile fragment.
7584 * configure: Regenerated.
7586 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7588 * linux-nat.c (struct simple_pid_list): Add status.
7589 (add_to_pid_list): Record the PID's status.
7590 (linux_record_stopped_pid): Likewise. Make static.
7591 (pull_pid_from_list): Return the saved status.
7592 (linux_nat_handle_extended): Deleted.
7593 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7594 Make static. Handle non-SIGSTOP for a new thread's first signal.
7595 (flush_callback): Handle unexpected pending signals.
7596 (linux_nat_wait): Update calls to changed functions.
7597 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7598 Remove prototypes for newly static functions.
7600 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7602 * gdbarch.sh (value_from_register): New gdbarch function.
7603 * gdbarch.c, gdbarch.h: Regenerate.
7604 * findvar.c (default_value_from_register): New function.
7605 (value_from_register): Use gdbarch_value_from_register.
7606 * value.h (default_value_from_register): Declare.
7607 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7608 spu_value_to_register): Remove.
7609 (spu_value_from_register): New function.
7610 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7611 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7612 Call set_gdbarch_value_from_register.
7613 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7614 s390_value_to_register): Remove.
7615 (s390_value_from_register): New function.
7616 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7617 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7618 Call set_gdbarch_value_from_register.
7620 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7622 * NEWS: Add "set sysroot" and "show sysroot".
7623 * solib.c (solib_absolute_prefix): Delete. Replace
7624 all uses with gdb_sysroot.
7625 (_initialize_solib): Add "set sysroot" and "show sysroot".
7626 Make "solib-absolute-prefix" an alias to it.
7628 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7630 * frame.c (get_frame_register_bytes): New function.
7631 (put_frame_register_bytes): Likewise.
7632 * frame.h (get_frame_register_bytes): Declare.
7633 (put_frame_register_bytes): Likewise.
7634 * findvar.c (value_from_register): Always construct lval_register
7635 values. Use get_frame_register_bytes.
7636 * valops.c (value_assign): Use get_frame_register_bytes and
7637 put_frame_register_bytes.
7639 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7641 * MAINTAINERS: Update Stan Shebs' email address.
7643 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7645 * ada-lang.c (is_known_support_routine): Improve the implementation.
7647 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7649 * ada-lang.c: Add include of source.h.
7650 (is_known_support_routine): Improve the check verifying that the file
7651 associated to this frame exists.
7652 * Makefile.in (ada-lang.o): Add dependency on source.h.
7654 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7656 * ax-general.c (ax_const_l): Select proper opcode for the given
7659 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7661 * varobj.c (c_value_of_root): Don't select frame if variable
7662 object is out of scope.
7664 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7666 * varobj.c (struct varobj): New member print_value.
7667 (install_new_value): Compare last printed value with current one
7668 instead of contents.
7669 (new_variable): Initialize var->print_value to NULL.
7670 (free_variable): Free var->print_value.
7671 (value_get_print_value): New function derived from
7672 c_value_of_variable.
7673 (c_value_of_variable): Use value_get_print_value.
7675 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7677 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7679 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7681 * NEWS: Add entries for new catch commands.
7683 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7685 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7686 (add_partial_symbol): Correct identification of external references.
7687 (process_structure_scope): Likewise.
7688 (read_partial_die): Handle DW_AT_byte_size attribute.
7690 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7692 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7694 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7696 * varobj.c (get_type_deref): Fix variable objects for references to
7699 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7701 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7704 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7706 * memory-map.c (struct_memory_map_parsing_data): Remove most
7707 members. Make property_name an array.
7708 (free_memory_map_parsing_data, memory_map_start_element)
7709 (memory_map_end_element, memory_map_character_data): Delete.
7710 (memory_map_start_memory, memory_map_end_memory)
7711 (memory_map_start_property, memory_map_end_property): New functions.
7712 (property_attributes, memory_children, memory_type_enum)
7713 (memory_attributes, memory_map_children, memory_map_elements): New.
7714 (parse_memory_map): Rewrite.
7715 * xml-support.c (debug_xml): New.
7716 (xml_get_required_attribute, xml_get_integer_attribute)
7717 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7719 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7720 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7721 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7722 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7723 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7724 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7725 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7727 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7728 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7729 (enum gdb_xml_element_flag, struct gdb_xml_element)
7730 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7731 (struct gdb_xml_enum): New.
7732 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7733 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7734 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7735 (xml_get_required_attribute, xml_get_integer_attribute)
7736 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7737 * Makefile.in (xml_support_h, xml-support.o): Update.
7739 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7741 * Makefile.in (eval.o): Update dependencies.
7742 * eval.c: Include "ui-out.h" and "exceptions.h".
7743 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7744 Use value_zero if an error occurs when avoiding side effects.
7745 * varobj.c (c_value_of_root): Initialize new_val.
7747 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7749 * varobj.c (varobj_list_children): Stop if the number of children is
7751 (c_number_of_children):
7753 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7755 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7756 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7757 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7758 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7759 sizeof, instead of hardcoded constants.
7761 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7763 * CONTRIBUTE: Use sourceware.org.
7765 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7767 * buildsym.c (start_subfile): Handle producer.
7768 (record_producer): New function.
7769 * buildsym.h (struct subfile): Include producer.
7770 (record_producer): New prototype.
7771 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7772 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7773 armcc_cfa_offsets_reversed.
7774 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7775 (dwarf2_frame_find_quirks): New function.
7776 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7777 (decode_frame_entry_1): Record the CIE version. Record the
7778 augmentation. Skip armcc augmentations.
7779 * dwarf2read.c (read_file_scope): Save the producer.
7780 * symtab.h (struct symtab): Rename unused version member to
7783 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7785 * configure.ac (build_warnings): Use -Wall and
7786 -Wdeclaration-after-statement.
7787 * configure: Regenerated.
7789 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7791 Simplify access to variours properties of child
7792 variable objects in C.
7793 * varobj.c (value_struct_element_index): New function.
7794 (c_describe_child): New function.
7795 (c_name_of_child, c_value_of_child)
7796 (c_type_of_child): Rewrite to use c_describe_child.
7798 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7801 * varobj.c: Include "vec.h".
7802 (varobj_p): New typedef, declare vector of those.
7803 (struct varobj): Use vector for the 'children' member.
7804 (child_exists): Remove.
7805 (save_child_in_parent): Remove.
7806 (remove_child_from_parent): Remove.
7807 (struct varobj_child): Remove.
7808 (struct vstack): Remove.
7809 (vpush, vpop): Remove.
7810 (varobj_list_children): Adjust to work work vector.
7811 (varobj_update): Likewise. Use vectors for
7812 working stack and result.
7813 (delete_variable_1): Likewise.
7814 * Makefile.in (varobj.o): Update dependencies.
7816 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7818 Port from Apple's version.
7820 * varobj.c (type_changeable): Rename to...
7821 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7822 (is_root_p): New function. Use it everywhere.
7824 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7826 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7829 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7831 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7833 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7835 * hpread.c (hpread_type_lookup): Fix compilation failure.
7837 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7839 * NEWS: New port to S+core.
7840 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7843 * Makefile.in: Add dependencies for S+core files.
7844 * configure.tgt (score*, score-*-*): Add S+core target.
7845 * config/score/embed.mt: New file.
7846 * score-tdep.c: New file.
7847 * score-tdep.h: New file.
7849 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7851 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7852 the appropriate type rather than a bogus void type.
7854 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7856 * ada-lang.h (ada_find_printable_frame): Remove.
7857 (ada_exception_catchpoint_p, ada_decode_exception_location)
7858 (ada_decode_assert_location): Add declaration.
7859 * ada-lang.c: Add include of annotate.h and valprint.h.
7860 (exception_catchpoint_kind): New enum.
7861 (function_name_from_pc, is_known_support_routine)
7862 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7863 (ada_exception_name_addr_1, ada_exception_name_addr)
7864 (print_it_exception, print_one_exception, print_mention_exception)
7865 (print_it_catch_exception, print_one_catch_exception)
7866 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7867 (print_it_catch_exception_unhandled)
7868 (print_one_catch_exception_unhandled)
7869 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7870 (print_one_catch_assert, print_mention_catch_assert)
7871 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7872 (ada_get_next_arg, catch_ada_exception_command_split)
7873 (ada_exception_sym_name, ada_exception_sym_name)
7874 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7875 (ada_parse_catchpoint_condition, ada_exception_sal)
7876 (ada_decode_exception_location)
7877 (ada_decode_assert_location): New function.
7878 (catch_exception_unhandled_breakpoint_ops): New global variable.
7879 (catch_assert_breakpoint_ops): New global variable.
7880 * breakpoint.c: Add include of ada-lang.h.
7881 (print_one_breakpoint): Do not print the condition for Ada
7882 exception catchpoints.
7883 (create_ada_exception_breakpoint): New function.
7884 (catch_ada_exception_command, catch_assert_command): New function.
7885 (catch_command_1): Add support for the new "catch exception" and
7886 "catch assert" commands.
7887 (_initialize_breakpoint): Add help description for the new catch
7889 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7891 (breakpoint.o): Add dependency on ada-lang.h.
7893 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7895 * coffread.c (cs_to_section): If bfd_section is found, always
7896 return its section index.
7897 (coff_symtab_read): Determine the minimal_symbol_type using the
7900 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7901 Daniel Jacobowitz <dan@codesourcery.com>
7903 * Makefile.in (top.o): Update.
7904 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7905 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7906 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7908 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7910 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7912 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7913 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7915 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7917 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7918 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7919 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7920 greater than or equal to zero.
7921 * m2-typeprint.c (m2_array): Likewise.
7922 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7923 * gdbtypes.c (copy_type_recursive): Correct == typo.
7924 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7925 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7927 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7928 (default_macro_scope): Remove unused variable.
7929 * prologue-value.h (pv_area_find_reg): Don't name an argument
7931 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7932 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7934 (cleanup_sigint_signal_handler): Remove casts.
7935 * valprint.c (val_print): Use a volatile local for the modified
7937 * varobj.c (languages): Remove extra array dimension.
7938 (varobj_create): Correct access to languages array.
7939 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7941 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7942 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7943 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7944 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7945 (mi_cmd_data_write_memory): Likewise.
7946 * signals/signals.c (target_signal_to_string): Cast to int before
7948 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7951 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7953 * NEWS: Mention pointer to member improvements.
7954 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7955 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7956 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7957 * c-typeprint.c (c_print_type): Update for new type codes.
7958 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7959 (c_type_print_base): Likewise.
7960 (c_type_print_args): Rewrite.
7961 * c-valprint.c (c_val_print): Update for new type codes. Remove
7962 support for references to members. Treat methods like functions.
7963 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7964 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7965 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7966 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7967 (struct cp_abi_ops): Add corresponding members.
7968 * cp-valprint.c (cp_print_class_method): Delete.
7969 (cp_find_class_member): New function.
7970 (cp_print_class_member): Use it. Simplify support for bogus
7972 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7973 lookup_methodptr_type.
7974 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7975 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7976 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7978 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7979 references returned by user defined operators.
7980 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7981 (f_type_print_varspec_suffix): Remove support for member pointers.
7982 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7984 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7985 (lookup_methodptr_type): New.
7986 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7987 (recursive_dump_type): Update for new types.
7988 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7989 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7990 (lookup_memberptr_type, lookup_methodptr_type)
7991 (smash_to_memberptr_type): New prototypes.
7992 (smash_to_method_type): Formatting fix.
7993 (lookup_member_type, smash_to_member_type): Delete prototypes.
7994 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7995 Do not rely on debug information for the vptr or the method's
7996 enclosing type. Handle function descriptors for IA64.
7997 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7998 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7999 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8000 (gnuv3_method_ptr_to_value): New.
8001 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8002 * hpread.c (hpread_type_lookup): Update for new types.
8003 * infcall.c (value_arg_coerce): Likewise.
8004 * m2-typeprint.c (m2_print_type): Remove explicit support
8005 for member pointers.
8006 * m2-valprint.c (m2_val_print): Likewise.
8007 * p-typeprint.c (pascal_type_print_varspec_prefix)
8008 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8009 * p-valprint.c (pascal_val_print): Likewise.
8010 (pascal_object_print_class_method, pascal_object_print_class_member):
8012 * p-lang.h (pascal_object_print_class_method)
8013 (pascal_object_print_class_member): Delete prototypes.
8014 * stabsread.c (read_type): Update for new types.
8015 * typeprint.c (print_type_scalar): Likewise.
8016 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8017 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8018 argument. Construct a pointer to member if the address of a
8019 function or data member is requested.
8020 (value_cast_pointers): Don't modify the input value.
8021 (value_cast): Adjust pointer to member handling for new types.
8022 Allow null pointer to member constants. Don't modify the input
8024 (value_ind): Remove pointer to member check. Handle function
8025 descriptors for function pointers.
8026 (value_struct_elt, value_find_oload_method_list, check_field):
8027 Remove pointer to member checks.
8028 * value.c (unpack_long): Allow pointers to data members.
8029 (value_from_longest): Allow member pointers.
8030 * value.h (value_aggregate_elt): Add want_address.
8031 * varobj.c (c_variable_editable): Remove check for members.
8032 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8033 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8035 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8036 * c-lang.h (cp_print_class_method): Delete prototype.
8037 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8038 * mips-tdep.c (mips_gdbarch_init): Likewise.
8039 * gdbarch.c, gdbarch.h: Regenerated.
8041 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8043 * rs6000-tdep.c (rs6000_use_struct_convention)
8044 (rs6000_extract_return_value, rs6000_store_return_value)
8045 (rs6000_extract_struct_value_address): Remove.
8046 (rs6000_return_value): New function.
8047 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8048 store_return_value, deprecated_extract_struct_value_address and
8049 deprecated_use_struct_convention. Use rs6000_return_value
8052 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
8054 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8055 -display-disable, -display-enable, -display-insert and
8058 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8060 * breakpoint.c (remove_breakpoint): Remove dead code.
8062 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
8064 * varobj.c: Include block.h.
8065 (c_value_of_root): Check scope within nested statements.
8067 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8069 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8070 regcache_cooked_write_signed instead of
8071 deprecated_write_register_bytes.
8073 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8075 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8077 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8079 Followed the Start of New Year Procedure:
8080 * ChangeLog-2006: New file, containing all the entries for 2006.
8081 * ChangeLog: Removed all 2006 entries, and changed the reference
8082 to the previous ChangeLog to point to ChangeLog 2006.
8083 * top.c (print_gdb_version): Update copyright year.
8085 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8087 * Makefile.in (remote-sds.o): Remove.
8088 * remote-sds.c: Delete.
8090 For older changes see ChangeLog-2006.
8096 version-control: never