1 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
3 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
4 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
5 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
6 feature descriptions for standard PowerPC register sets.
8 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
9 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
10 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
11 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
12 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
13 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
14 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
15 target descriptions for PowerPC processors.
17 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19 * target-descriptions.c (tdesc_predefined_types): New.
20 (tdesc_named_type): Use it.
21 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
22 (_intialize_target_descriptions): Register "maint print c-tdesc".
23 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
24 (cfiles, %.c): New rules.
25 * features/arm-with-iwmmxt.c, features/mips-linux.c,
26 features/mips64-linux.c: New generated files.
28 * arm-linux-nat.c: Include preparsed description instead of
30 (super_xfer_partial, arm_linux_xfer_partial): Remove.
31 (arm_linux_read_description): New function.
32 (_initialize_arm_linux_nat): Set to_read_description instead of
33 to_xfer_partial. Initialize preparsed description.
34 * config/arm/linux.mh (TDEP_XML): Delete.
35 * mips-linux-nat.c: Include preparsed descriptions instead of
37 (super_xfer_partial, mips_linux_xfer_partial): Remove.
38 (mips_linux_read_description): New function.
39 (_initialize_mips_linux_nat): Set to_read_description instead of
40 to_xfer_partial. Initialize preparsed description.
41 * config/mips/linux.mh (TDEP_XML): Delete.
42 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
43 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
44 (mips64_linux_c): New macros.
45 (arm-linux-nat.o, mips-linux-nat.o): Update.
47 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
49 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
50 Replace xasprintf by xstrprintf.
51 symfile-mem.c (add_vsyscall_page): Ditto.
53 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
55 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
56 replacing use of global current_gdbarch.
57 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
58 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
60 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
61 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
62 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
63 (ia64_sigtramp_frame_cache): Update caller.
65 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
67 * gdbarch.sh (deprecated_use_struct_convention): Remove.
68 (extract_return_value, store_return_value): Remove.
69 (return_value): Remove default implementation.
70 * gdbarch.c, gdbarch.h: Regenerate.
72 * stack.c (return_command): Remove compatibility hack.
73 * arch-utils.c (legacy_return_value): Remove.
74 * arch-utils.h (legacy_return_value): Likewise.
76 * arch-utils.c (always_use_struct_convention): Remove.
77 * arch-utils.h (always_use_struct_convention): Likewise.
78 * value.c (generic_use_struct_convention): Remove.
79 * defs.h (generic_use_struct_convention): Likewise.
81 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
83 * avr-tdep.c (avr_return_value): New function.
84 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
85 set_gdbarch_extract_return_value.
87 * fvr-tdep.c (frv_return_value): New function.
88 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
89 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
90 and set_gdbarch_deprecated_use_struct_convention.
92 * ia64-tdep.c (ia64_use_struct_convention): Make static.
93 Add check for structure, union, or array types.
94 (ia64_extract_return_value): Make static.
95 (ia64_store_return_value): Make static. Support multi-word values.
96 (ia64_return_value): New function.
97 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
98 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
99 and set_gdbarch_deprecated_use_struct_convention.
101 2007-10-12 Joel Brobecker <brobecker@adacore.com>
103 * solib-target.c (solib_target_parse_libraries)
104 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
106 2007-10-12 Jim Blandy <jimb@codesourcery.com>
108 * serial.h (struct serial_ops): Document read_prim to return zero
110 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
111 read_prim returns zero, not SERIAL_TIMEOUT.
113 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
115 * alpha-mdebug-tdep.c: Include "gdb_string.h".
116 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
117 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
118 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
120 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
121 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
122 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
123 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
124 * config/alpha/tm-alpha.h: Remove file.
126 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
128 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
129 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
131 * config/pa/tm-hppa.h: Delete file.
132 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
133 * config/pa/hppahpux.mt: Likewise.
134 * config/pa/hppa.mt: Likewise.
135 * config/pa/linux.mt: Likewise.
136 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
138 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
140 * config/arm/nm-nbsdaout.h: Remove file.
141 * config/nm-nbsdaout.h: Likewise.
142 * config/nm-nbsd.h: Likewise.
144 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
146 * block.h (struct block): Remove "gcc_compile_flag" member.
147 (BLOCK_GCC_COMPILED): Remove.
148 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
149 * buildsym.c (finish_block): Do not set it.
150 * symmisc.c (dump_symtab_1): Do not dump it.
152 * value.h (using_struct_return): Remove "gcc_p" argument.
153 * value.c (using_struct_return): Likewise.
154 * eval.c (evaluate_subexp_standard): Adapt callers.
155 * infcall.c (call_function_by_hand): Likewise.
156 * stack.c (return_command): Likewise.
157 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
159 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
160 * gdbarch.c, gdbarch.h: Regenerate.
161 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
162 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
163 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
164 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
165 (push_dummy_code, call_function_by_hand): Adapt callers.
167 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
169 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
170 (finish_command_continuation, finish_command): Adapt callers.
172 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
174 * infcall.c (call_function_by_hand): Remove special handling
175 for HP aCC compiled code.
177 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
179 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
180 reference. Fix endianness bugs.
181 (cris_reg_struct_has_address): Remove.
182 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
183 and set_gdbarch_deprecated_use_struct_convention calls.
185 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
186 * gdbarch.c, gdbarch.h: Regenerate.
187 * infcall.c (call_function_by_hand): Remove handling of
188 deprecated_reg_struct_has_addr.
190 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
191 Kazu Hirata <kazu@codesourcery.com>
193 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
194 checking watchpoint resources.
196 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
198 * memattr.c (inaccessible_by_default): Change the initial
201 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
204 * coffread.c (read_one_sym): Check for read errors.
206 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
208 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
209 instead of "Linux 2.6.19" in comment.
210 (linux_xfer_partial): Use "GNU/Linux target" instead of
211 "Linux target" in comment.
212 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
213 (m68k_linux_get_sigtramp_info): Likewise.
215 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
217 * MAINTAINERS (language support): List Joel and Paul as
220 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
222 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
224 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
225 not set DEPRECATED_TM_FILE.
226 * config/arm/tm-arm.h: Delete file.
228 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
230 * MAINTAINERS (Write After Approval): Add self.
232 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
234 * buildsym.c (record_line): Remove empty lines followed by
235 end-of-sequence markers.
237 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
239 * configure.tgt: Recognize fido-*-elf.
241 2007-10-10 Joel Brobecker <brobecker@adacore.com>
245 2007-10-10 Markus Deuling <deuling@de.ibm.com>
247 * stack.c (print_frame_args, frame_info, return_command): Use
248 get_regcache_arch or get_frame_arch to get at the current architecture
249 by regcache or by frame, respectively.
251 2007-10-10 Markus Deuling <deuling@de.ibm.com>
253 * rs6000-nat.c (fetch_register, store_register)
254 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
255 get_regcache_arch to get at the current architecture by regcache.
257 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
258 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
259 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
260 current_gdbarch by gdbarch.
261 (rs6000_skip_trampoline_code, rs6000_register_to_value)
262 (rs6000_value_to_register): Use get_frame_arch to get at the current
263 architecture by frame_info.
265 2007-10-10 Markus Deuling <deuling@de.ibm.com>
267 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
268 get_regcache_arch to get at the current architecture by regcache.
270 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
271 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
272 get_regcache_arch to get at the current architecture by regcache.
274 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
275 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
276 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
277 current architecture by regcache.
279 2007-10-10 Markus Deuling <deuling@de.ibm.com>
281 * remote-mips.c (mips_wait, mips_fetch_registers)
282 (mips_store_registers): Use get_regcache_arch to get at the
283 current architecture by regcache.
285 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
286 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
287 get at the current architecture by regcache.
288 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
289 architecture by frame_info.
291 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
292 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
293 the current architecture by regcache.
295 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
296 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
297 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
298 current architecture by frame_info.
299 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
300 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
301 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
302 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
303 get at the current architecture by regcache.
305 * mips-linux-nat.c (mips_linux_register_addr)
306 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
307 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
308 (mips64_linux_regsets_fetch_registers)
309 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
310 the current architecture by regcache.
312 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
313 get at the current architecture by frame_info.
315 2007-10-10 Markus Deuling <deuling@de.ibm.com>
317 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
318 current architecture by regcache.
319 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
320 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
321 (mips_stub_frame_cache, mips_read_fp_register_single)
322 (mips_read_fp_register_double, mips_print_fp_register)
323 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
324 at the current architecture by frame_info.
325 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
326 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
327 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
328 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
329 (mips_o32_push_dummy_call, mips_o32_return_value)
330 (mips_o64_push_dummy_call, mips_o64_return_value)
331 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
334 2007-10-10 Markus Deuling <deuling@de.ibm.com>
336 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
337 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
338 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
339 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
340 (xtensa_register_write_masked, xtensa_register_read_masked)
341 (xtensa_supply_gregset, xtensa_store_return_value)
342 (xtensa_extract_return_value): Use get_regcache_arch to get at the
343 current architecture by regcache.
344 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
345 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
346 architecture by frame_info.
348 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
350 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
351 (thumb_analyze_prologue): Move pv_area_store_would_trash call
352 out of loop. Do not set cache->frameoffset.
353 (arm_scan_prologue): Use prologue-value mechanism. Do not set
354 frameoffset. Simplify framesize.
355 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
357 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
359 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
361 * target.c (update_current_target): Call setup_target_debug.
362 (push_target): Do not call it here.
364 2007-10-09 Michael Snyder <msnyder@specifix.com>
366 * MAINTAINERS: Update my email address.
368 2007-10-09 Markus Deuling <deuling@de.ibm.com>
370 * xtensa-tdep.c: Replace following current-gdbarch based macros by
372 (xtensa_pseudo_register_read)
373 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
374 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
375 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
376 (xtensa_pseudo_register_read)
377 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
378 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
379 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
380 (xtensa_frame_prev_register): NUM_AREGS.
381 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
382 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
383 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
384 (xtensa_supply_gregset, xtensa_frame_cache)
385 (xtensa_frame_prev_register): WS_REGNUM.
386 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
387 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
388 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
389 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
390 (xtensa_register_reggroup_p): REGMAP.
391 (call0_track_op): LITBASE_REGNUM.
392 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
393 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
394 (xtensa_frame_prev_register, AREG_NUMBER)
395 (xtensa_register_type): AR_BASE.
396 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
397 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
398 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
399 (xtensa_frame_cache, xtensa_frame_prev_register)
400 (xtensa_extract_return_value, xtensa_store_return_value)
401 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
402 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
403 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
404 (xtensa_frame_prev_register, xtensa_push_dummy_call)
405 (call0_frame_cache): A1_REGNUM.
406 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
407 (xtensa_push_dummy_call): A4_REGNUM.
408 (ARGS_FIRST_REG): A6_REGNUM.
409 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
410 (xtensa_frame_prev_register): A15_REGNUM.
411 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
412 them in the appropriate source file:
413 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
414 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
415 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
416 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
417 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
418 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
419 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
420 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
421 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
422 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
423 A13_REGNUM, A14_REGNUM, A15_REGNUM.
425 2007-10-09 Markus Deuling <deuling@de.ibm.com>
427 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
428 the current architecture by frame_info.
429 (h8300_frame_prev_register
430 (h8300_print_register): Replace current_gdbarch by gdbarch.
431 (h8300_print_registers_info, h8300_register_type)
432 (h8300_register_type): Likewise.
434 2007-10-09 Markus Deuling <deuling@de.ibm.com>
436 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
437 the current architecture by regcache.
438 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
439 (i386_linux_fetch_inferior_registers)
440 (i386_linux_store_inferior_registers): Likewise.
441 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
442 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
443 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
444 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
445 (i386_extract_return_value, i386_store_return_value): Likewise.
446 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
447 the current architecture by frame_info.
448 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
449 (i386_register_to_value, i386_value_to_register): Likewise.
451 2007-10-09 Markus Deuling <deuling@de.ibm.com>
453 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
454 the current architecture by regcache.
455 (monitor_store_register, monitor_store_registers): Likewise.
457 2007-10-09 Markus Deuling <deuling@de.ibm.com>
459 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
460 the current architecture by regcache.
462 2007-10-09 Markus Deuling <deuling@de.ibm.com>
464 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
467 2007-10-09 Markus Deuling <deuling@de.ibm.com>
469 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
470 architecture by frame.
471 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
472 (inside_main_func, frame_sp_unwind): Likewise.
474 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
476 * solib-svr4.c (enable_break): Add the dynamic linker also if
479 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
481 * MAINTAINERS (Write After Approval): Add self.
483 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
485 * stabsread.c (read_huge_number): Initialize local variable to 0.
487 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
489 * p-lang.h (pascal_main_name): Add declaration.
490 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
491 (GPC_MAIN_PROGRAM_NAME_2): New constants.
492 (pascal_main_name): New function.
493 * symtab.c: Include p-lang.h.
494 (find_main_name): Add call to pascal_main_name.
495 * Makefile.in (symtab.o): Add dependency on p-lang.h.
497 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
499 * stabsread.c (read_huge_number): Fix handling of octal
500 representation when the bit width is known.
501 (read_range_type): Record unsigned integral types with their size,
502 when the type size is known.
504 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
506 * MAINTAINERS (Write After Approval): Add self.
508 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
510 * breakpoint.c (print_one_breakpoint_location): ARI fix:
511 Replace asprintf by xstrprintf.
513 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
515 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
516 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
518 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
520 * linux-fork.c: Move "gdb_wait.h" include back to the position of
521 <sys/wait.h> include before last commit.
523 2007-10-08 Maciej W. Rozycki <macro@mips.com>
525 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
527 2007-10-08 Markus Deuling <deuling@de.ibm.com>
529 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
530 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
531 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
532 (store_regs_user_thread, store_regs_kernel_thread): Use
533 get_regcache_arch or get_frame_arch to get at the current architecture
534 by regcache or by frame, respectively.
536 2007-10-08 Markus Deuling <deuling@de.ibm.com>
538 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
539 (sh64_pseudo_register_read, sh64_pseudo_register_write)
540 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
541 (sh64_print_register, sh64_media_print_registers_info)
542 (sh64_compact_print_registers_info, sh64_unwind_sp)
543 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
544 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
545 (sh64_frame_prev_register): Use FRAME to recognize current
548 2007-10-08 Markus Deuling <deuling@de.ibm.com>
550 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
551 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
552 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
553 current_gdbarch by gdbarch.
554 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
555 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
556 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
557 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
558 recognize current architecture.
560 2007-10-08 Markus Deuling <deuling@de.ibm.com>
562 * remote.c (init_remote_state, fetch_register_using_p)
563 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
564 (store_register_using_P, store_registers_using_G)
565 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
566 get at the current architecture by regcache or by frame, respectively.
568 2007-10-08 Markus Deuling <deuling@de.ibm.com>
570 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
571 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
572 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
573 get_regcache_arch or get_frame_arch to get at the current architecture
574 by regcache or by frame, respectively.
575 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
576 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
577 (store_register, old_store_inferior_registers, supply_gregset)
578 (supply_fpregset, fill_fpregset): Likewise.
579 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
580 Replace current_gdbarch by gdbarch.
582 2007-10-08 Markus Deuling <deuling@de.ibm.com>
584 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
585 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
586 get_frame_arch to get at the current architecture by regcache or by
589 2007-10-08 Markus Deuling <deuling@de.ibm.com>
591 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
592 Replace current_gdbarch by gdbarch.
593 * ia64-tdep.c (ia64_frame_prev_register
594 (ia64_sigtramp_frame_prev_register)
595 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
596 get_frame_arch to get at the current architecture by regcache or by
598 * ia64-linux-nat.c (ia64_linux_fetch_register)
599 (ia64_linux_fetch_registers, ia64_linux_store_register)
600 (ia64_linux_store_registers): Likewise.
602 2007-10-08 Markus Deuling <deuling@de.ibm.com>
604 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
605 current_gdbarch by gdbarch.
606 * hppa-linux-nat.c (fetch_register, store_register)
607 (hppa_linux_fetch_inferior_registers)
608 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
609 get_frame_arch to get at the current architecture by regcache or by
611 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
612 (hppa_hpux_unwind_adjust_stub): Likewise.
613 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
614 (hppa_hpux_fetch_inferior_registers)
615 (hppa_hpux_store_inferior_registers): Likewise.
617 2007-10-08 Markus Deuling <deuling@de.ibm.com>
619 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
620 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
621 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
622 or get_frame_arch to get at the current architecture by regcache or by
624 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
625 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
626 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
627 current_gdbarch by gdbarch.
629 2007-10-08 Markus Deuling <deuling@de.ibm.com>
631 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
632 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
633 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
634 get at the current architecture by regcache or by·frame, respectively.
635 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
638 2007-10-08 Markus Deuling <deuling@de.ibm.com>
640 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
641 Use get_regcache_arch or get_frame_arch to get at the current
642 architecture by regcache or by frame, respectively.
643 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
644 * amd64-nat.c (amd64_supply_native_gregset)
645 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
647 2007-10-08 Markus Deuling <deuling@de.ibm.com>
649 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
651 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
652 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
653 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
654 get_frame_arch to get at the current architecture by regcache or by
656 * alpha-nat.c (fetch_osf_core_registers): Likewise.
658 2007-10-08 Markus Deuling <deuling@de.ibm.com>
660 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
661 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
662 current_gdbarch by gdbarch.
663 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
665 2007-10-08 Markus Deuling <deuling@de.ibm.com>
667 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
668 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
669 * regcache.c (regcache_raw_write): Use get_regcache_arch or
670 get_frame_arch to get at the current architecture by regcache or by
673 2007-10-08 Markus Deuling <deuling@de.ibm.com>
675 * findvar.c (value_of_register, locate_var_value): Use
676 get_regcache_arch or get_frame_arch to get at the current architecture
677 by regcache or by frame, respectively.
678 * findvar.c (default_value_from_register, value_from_register): Replace
679 current_gdbarch by gdbarch.
681 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
683 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
685 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
687 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
688 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
690 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
692 * remote.c (get_offsets): Only call free_symfile_segment_data if
695 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
697 * objc-exp.y: ARI fix: remove 4 PARAMS.
699 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
701 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
702 news. Mention XML support for M68K in GDB 6.7.
704 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
706 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
708 (init_vector_type): Use builtin_type_int32.
710 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
712 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
713 size to enable bi-arch generate-core-file support.
715 2007-10-02 Markus Deuling <deuling@de.ibm.com>
717 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
719 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
721 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
723 * tui/tui-win.c (tui_initialize_win): New function for
724 initializing tui's SIGWINCH signal handler.
725 * tui/tui-win.h (tui_initialize_win): Declare.
727 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
729 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
730 pointer to uintptr_t before casting to CORE_ADDR.
732 2007-10-02 Markus Deuling <deuling@de.ibm.com>
734 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
736 2007-10-02 Mark Mitchell <mark@codesourcery.com>
738 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
739 * ser-mingw.c (enum select_thread_state): New type.
740 (struct ser_console_state): Add have_started and thread_state.
741 (select_thread_wait): New function.
742 (thread_fn_type): New type.
743 (create_select_thread): New function.
744 (destroy_select_thread): Likewise.
745 (start_select_thread): Likewise.
746 (stop_select_thread): Likewise.
747 (console_select_thread): Use new functions.
748 (pipe_select_thread): Likewise.
749 (file_select_thread): Likewise.
750 (ser_console_wait_handle): Likewise.
751 (ser_console_done_wait_handle): Likewise.
752 (ser_console_close): Likewise.
753 (free_pipe_state): Likewise.
754 (pipe_wait_handle): Likewise.
755 (pipe_done_wait_handle): Likewise.
756 (struct net_windows_state): Derive from ser_console_state.
757 (net_windows_select_thread): Use new functions.
758 (net_windows_wait_handle): Likewise.
759 (net_windows_done_wait_handle): Likewise.
760 (net_windows_close): Likewise.
762 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
764 * inflow.c (terminal_ours_1): Remove useless line.
766 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
768 * mips-tdep.c (mips_read_fp_register_double): Correct check for
770 (mips_print_fp_register): Correct check for even FP registers.
771 (mips_virtual_frame_pointer): New function.
772 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
774 2007-09-30 Mike Frysinger <vapier@gentoo.org>
776 * value.h (lookup_only_internalvar): New prototype.
777 (create_internalvar): Likewise.
778 * value.c (lookup_only_internalvar): New function.
779 (create_internalvar): Likewise.
780 (lookup_internalvar): Use new lookup_only_internalvar and
781 create_internalvar functions.
782 * parse.c (write_dollar_variable): Look up $ symbols in internal
783 table first rather than last.
785 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
787 * linux-nat.c (linux_nat_new_thread): New variable.
788 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
789 linux_nat_switch_fork.
790 (lwp_list): Make public.
791 (add_lwp): Call linux_nat_new_thread.
792 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
794 (resume_callback): Clear lp->siginfo. Remove unused variable.
795 (linux_nat_resume): Assert that the LWP list is already initialized.
798 (stop_wait_callback, linux_nat_wait): Call it.
799 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
800 * linux-nat.h (struct lwp_info): Add siginfo.
801 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
804 * amd64-linux-nat.c (amd64_linux_dr): New.
805 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
806 (amd64_linux_dr_set): Take a PTID argument.
807 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
808 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
809 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
810 (amd64_linux_new_thread): New.
811 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
812 * i386-linux-nat.c (i386_linux_dr): New.
813 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
814 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
815 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
816 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
817 (i386_linux_new_thread): New.
818 (i386_linux_resume): Remove unnecessary PID check.
819 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
820 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
821 (fetch_debug_register, fetch_debug_register_pair): Delete.
822 (debug_registers): New.
823 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
824 ALL_LWPS and debug_registers.
825 (ia64_linux_new_thread): New.
826 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
827 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
828 * ppc-linux-nat.c (last_stopped_data_address): Delete.
829 (saved_dabr_value): New.
830 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
832 (ppc_linux_new_thread): New.
833 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
834 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
835 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
836 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
838 (s390_fix_watch_points): Take a PTID argument.
839 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
840 (_initialize_s390_nat): Call linux_nat_set_new_thread.
842 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
843 Jeff Johnston <jjohnstn@redhat.com>
845 * breakpoint.c (watchpoints_triggered): New.
846 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
847 Check watchpoint_triggered instead. Combine handling for software
848 and hardware watchpoints. Do not use target_stopped_data_address
849 here. Always check a watchpoint if its scope breakpoint triggers.
850 Do not stop for thread or overlay events. Improve check for
851 triggered watchpoints without a value change.
852 (watch_command_1): Insert the scope breakpoint first. Link the
853 scope breakpoint to the watchpoint.
854 * breakpoint.h (enum watchpoint_triggered): New.
855 (struct breakpoint): Add watchpoint_triggered.
856 (bpstat_stop_status): Update prototype.
857 (watchpoints_triggered): Declare.
858 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
859 (stepped_after_stopped_by_watchpoint): Delete.
860 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
861 local. Handle infwait_step_watch_state. Update calls to
862 bpstat_stop_status. Use watchpoints_triggered to check
864 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
865 (remote_stopped_data_address): Do not check it.
867 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
869 * configure.ac: Add $LIBINTL when testing libbfd.
870 * configure: Regenerated.
872 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
874 * NEW: Mention pending breakpoint changes and
875 support for breakpoints at multiple locations.
877 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
879 * arm-linux-tdep.c (arm_linux_software_single_step): New.
880 (arm_linux_init_abi): Use it.
881 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
883 * arm-tdep.h (arm_get_next_pc): Declare.
884 * Makefile.in (arm-linux-tdep.o): Update.
886 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
888 * varobj.c (install_new_value): Don't
889 call value_get_print_value when a value is
890 lazy. Update the print_value member in a
893 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
895 * breakpoint.c (create_breakpoint): Set
896 condition on each location, not on the first
897 location of breakpoint.
899 2007-09-26 Jim Blandy <jimb@codesourcery.com>
901 * remote.c (getpkt_sane): Fix error message. No animals were
902 harmed in the making of this debugger.
904 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
906 * p-typeprint.c: Fix 11 ARI reported problems.
907 (pascal_print_type): Fix 4 operator at end of line.
908 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
909 using strncmp function.
910 (pascal_type_print_base): Fix 2 operator at end of line.
911 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
912 using strncmp function.
915 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
918 dwarf2read.c (read_subroutine_type):
919 All pascal functions are prototyped.
921 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
924 p-valprint.c (pascal_val_print): correct current language check.
925 Also print array of char as strings.
928 2007-09-26 David Ung <davidu@mips.com>
929 Maciej W. Rozycki <macro@mips.com>
931 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
933 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
935 * p-exp.y: Fix 12 ARI reported problems.
936 (name_not_typename): Fix 2 operator at end of line issues.
937 (yylex): Fix 3 operator at end of line issues.
938 Replace 7 DEPRECATED_STREQ macros using strcmp function.
940 2007-09-25 David Ung <davidu@mips.com>
941 Maciej W. Rozycki <macro@mips.com>
943 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
944 rules return composite types in registers as appropriate.
946 2007-09-24 Jim Blandy <jimb@codesourcery.com>
948 * symfile.h (struct symfile_segment_data): Doc fixes.
949 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
950 Assert that we were passed some loaded segment addresses,
951 and that sections' segment numbers are valid.
952 Simplify offset calculation.
953 * remote.c (get_offsets): Clarify selection of relocate-by-segment
954 strategy, and set num_segments correctly. Delete redundant
955 assignments to do_sections.
957 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
959 * frame.c (get_prev_frame_1): Also check for PC in the same register.
961 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
963 * breakpoint.c (remove_sal): New.
964 (expand_line_sal_maybe): New.
965 (create_breakpoints): Call expand_line_sal_maybe.
966 (clear_command): Add comment.
967 (breakpoint_re_set_one): Call expand_line_sal_maybe.
968 * linespec.c (decode_indirect): Set explicit_pc to 1.
969 (decode_all_digits): Set explicit_line to 1.
970 (append_expanded_sal): New.
971 (expand_line_sal): New.
972 * linespec.h (expand_line_sal): Declare.
973 * symtab.c (init_sal): Initialize explicit_pc
975 * symtab.h (struct symtab_and_line): New fields
976 explicit_pc and explicit_line.
978 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
980 * infcall.c (call_function_by_hand): Handle language-specific
981 pass and return by reference.
983 * cp-abi.c (cp_pass_by_reference): New.
984 * cp-abi.h (cp_pass_by_reference): Declare.
985 (struct cp_abi_ops): Add pass_by_reference.
986 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
987 (init_gnuv3_ops): Set pass_by_reference.
989 * language.c (language_pass_by_reference): New.
990 (default_pass_by_reference): New.
991 (unknown_language_defn, auto_language_defn, local_language_defn): Add
992 default_pass_by_reference.
993 * langauge.h (struct language_defn): Add la_pass_by_reference.
994 (language_pass_by_reference, default_pass_by_reference): Declare.
995 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
996 * c-lang.c (c_language_defn, asm_language_defn)
997 (minimal_language_defn): Likewise.
998 (cplus_language_defn): Add cp_pass_by_reference.
999 * f-lang.c (f_language_defn): Add default_pass_by_reference.
1000 * jv-lang.c (java_language_defn): Likewise.
1001 * m2-lang.c (m2_language_defn): Likewise.
1002 * objc-lang.c (objc_language_defn): Likewise.
1003 * p-lang.c (pascal_language_defn): Likewise.
1004 * scm-lang.c (scm_language_defn): Likewise
1006 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
1008 Allow a code breakpoint to have several locations
1010 * breakpoint.h (enum enable_state): Remove the
1011 bp_shlib_disabled enumerator.
1012 (struct bp_location): New members shlib_disabled,
1013 global_next, enabled and function_name.
1014 Rename pending to condition_not_parsed.
1016 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
1017 (ALL_BP_LOCATIONS_SAFE): Likewise.
1018 (breakpoint_enabled): Don't check for pending.
1019 (condition_command): Free and update all locations of
1021 (insert_bp_location): Adjust.
1022 (software_breakpoint_inserted_here_p): Don't care
1023 if breakpoint is enabled, as soon as it's inserted.
1024 (print_it_typical): Print bpstat's location, not
1025 bpstat's breakpoint's location.
1026 (bpstat_stop_status): Iterate over all locations, not
1028 (print_breakpoint_location): New.
1029 (print_one_breakpoint): Renamed to
1030 (print_one_breakpoint_location): ...this. Take
1031 parameters to describe which location is being
1032 printed. Modify code to properly print header
1033 for several locations and individual locations.
1034 (print_one_breakpoint): Print all locations.
1035 (breakpoint_has_pc): New.
1036 (describe_other_breakpoints): Use the above.
1037 (check_duplicates): Renamed to...
1038 (check_duplicates_for): .. this.
1039 (check_duplicates): Use check_duplicates_for.
1040 (allocate_bp_location): Adjust.
1041 (set_raw_breakpoint_without_location): New,
1042 extracted from set_raw_breakpoint.
1043 (set_breakpoint_location_function): New.
1044 (set_raw_breakpoint): Use
1045 set_raw_breakpoint_without_location.
1046 (make_breakpoint_permanent): Mark all locations
1048 (disable_breakpoints_in_shlibs): Iterate over
1050 (disable_breakpoints_in_unloaded_shlib): Likewise.
1051 (re_enable_breakpoints_in_shlibs): Likewise.
1052 (mention): Say "pending" when breakpoint has
1053 zero locations. If breakpoint has more than one
1055 (add_location_to_breakpoint): New.
1056 (create_breakpoint): Accept symtabs_and_lines, not
1057 symtab_and_line. Pass extra sals to
1058 add_location_to_breakpoint.
1059 (create_breakpoints): Pass symtabs_and_lines to
1061 (break_command_1): Make pending breakpoints
1062 have zero locations.
1063 (do_captured_breakpoint): Remove wrong allocation.
1064 (clear_command): Iterate over all locations.
1065 (unlink_locations_from_global_list): Renamed
1066 from unlink_location_from_global_list. Remove
1068 (delete_breakpoint): Remove all locations.
1069 Iterate over all locations when deciding which
1070 other location to re-enable.
1071 (all_locations_are_pending): New.
1072 (update_breakpoint_locations): Renamed from
1073 update_breakpoint_location. Try to match old
1074 and new locations using names of containing
1076 (breakpoint_re_set_one): Adjust.
1077 (find_location_by_number): New.
1078 (disable_command): Allow disabling individual location.
1079 (enable_command): Allow enabling individual location.
1080 * breakpoint.c: Adjust all uses of breakpoint's
1081 enable state to for bp_shlib_disabled change.
1083 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1085 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1086 (resolve_pending_breakpoint): Remove.
1087 (re_enable_breakpoints_in_shlibs): Remove.
1088 (unlink_locations_from_global_list): New.
1089 (update_breakpoint_locations): New.
1090 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1091 Use parse_condition and update_breakpoint_location to
1092 reset breakpoint. Ignore 'symbol not found' error from
1094 (breakpoint_re_set): Don't emit newline before the
1095 reason why breakpoint is not reset.
1096 (do_enable_breakpoint): Don't specially process pending
1098 (free_bp_location): New.
1099 (break_command_1): For pending breakpoints, initialize
1100 all fields of a sal with zeroes.
1101 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1102 * infcmd.c (post_create_inferior): Don't call
1103 re_enable_breakpoints_in_shlibs.
1104 * infrun.c (handle_inferior_event): Likewise.
1105 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1106 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1107 * win32-nat.c (get_win32_debug_event): Likewise.
1109 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1111 * breakpoint.c (create_breakpoint): Split from
1112 create_breakpoints, implementing most of its logic.
1113 Take just a single sal, single address string and
1114 single condition. Do not take parsed condition at
1116 (create_breakpoints): Just call create_breakpoint
1118 (find_condition_and_thread): New.
1119 (break_command_1): Use find_condition_and_thread.
1120 Do not keep parsed conditions.
1121 (do_captured_breakpoint): Don't convert
1122 condition string to struct expression.
1124 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1126 * breakpoint.h (struct breakpoint): Move the cond
1128 (struct bp_location): Here.
1129 * breakpoint.c (condition_command, bpstat_stop_status)
1130 (print_one_breakpoint, allocate_bp_location)
1131 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1132 (create_exec_event_catchpoint, create_breakpoints)
1133 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1134 (create_ada_exception_breakpoint, set_breakpoint_sal)
1135 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1136 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1138 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1140 Associate bp_stat with bp_location, not breakpoint.
1141 * breakpoint.h (breakpoint_at): Change type
1143 * breakpoint.c (bpstat_alloc): Take bp_location,
1145 (bpstat_find_breakpoint): Look at bpstat's location's
1146 owner, not at bpstat->breakpoint_at.
1147 (bpstat_find_step_resume_breakpoint): Likewise.
1148 (bpstat_num): Likewise.
1149 (print_it_typical): Likewise.
1150 (print_bp_stop_message): Likewise.
1151 (watchpoint_check): Likewise.
1152 (bpstat_what): Likewise.
1153 (bpstat_get_triggered_catchpoints): Likewise.
1154 (breakpoint_auto_delete): Likewise.
1155 (delete_breakpoint): Likewise.
1156 (bpstat_stop_status): Pass location, not breakpoint,
1157 to bpstat_alloc. Look at bpstat's location's
1158 owner, not at bpstat->breakpoint_at.
1160 2007-09-21 Jim Blandy <jimb@codesourcery.com>
1162 * macrotab.h (new_macro_table): Document that removing information
1163 from an obstack/bcache-managed macro table leaks memory.
1164 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1165 that data is never freed in obstack/bcache-managed macro tables,
1166 just leak the storage.
1167 (macro_undef): If we're undefining a macro at exactly the same
1168 source location that we defined it, simply remove the definition
1171 2007-09-21 Joel Brobecker <brobecker@adacore.com>
1173 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1174 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1175 Adjust the struct sym_fns object accordingly by setting
1176 the new field to NULL.
1177 * xcoffread.c (aix_process_linenos): Make static.
1178 (xcoff_sym_fns): Set new field to aix_process_linenos.
1179 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1180 by call to new the new sym_fns sym_read_linetable function.
1181 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1182 * config/rs6000/tm-rs6000.h: Delete.
1184 2007-09-21 David Ung <davidu@mips.com>
1185 Maciej W. Rozycki <macro@mips.com>
1187 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1188 rules do not treat composite types specially.
1190 2007-09-20 Maciej W. Rozycki <macro@mips.com>
1192 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1193 (mips16_in_function_epilogue_p): Likewise.
1194 (mips_in_function_epilogue_p): Likewise.
1195 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1197 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1199 * configure.ac: Add check for "etext".
1200 * configure, config.in: Regenerate.
1201 * maint.c (TEXTEND): Only define if either _etext or etext
1203 Disable the profiling functionality if TEXTEND is not defined.
1205 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1207 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1208 address register. Correct the call to frame_id_build.
1209 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1212 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1214 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1215 the linetable past the function end.
1217 2007-09-18 James E. Wilson <wilson@specifix.com>
1219 * MAINTAINERS: Update my email address.
1221 2007-09-18 Jerome Guitton <guitton@adacore.com>
1223 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1224 (inf_ttrace_delete_dying_threads_callback): New function.
1225 (inf_ttrace_resume): After resuming the execution, iterate over
1226 the dying threads to delete them for the thread list.
1227 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1228 mark the corresponding thread as dying instead of removing it
1229 from the thread list.
1230 (inf_ttrace_thread_alive): return 0 for dying threads.
1232 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1234 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1235 that return_frame is not null.
1237 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1239 * solib-svr4.c: Add include of "auxv.h".
1240 (enable_break): Use the AT_BASE auxiliary entry if available.
1241 * Makefile.in (solib-svr4.o): Update dependencies.
1243 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1245 * NEWS: Create a new section for the next release branch.
1246 Rename the section of the current branch, now that it has
1249 2007-09-17 Jerome Guitton <guitton@adacore.com>
1251 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1252 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1254 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1256 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1257 * mi/mi-cmds.h (mi_cmd_list_features): New.
1258 * mi/mi-main.c (mi_cmd_list_features): New.
1260 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1262 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1263 * version.in: Bump version to 6.7.50-20070911-cvs.
1265 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1267 * thread.c (free_thread): Do not delete the step resume breakpoint
1270 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1272 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1273 * corelow.c (core_read_description): New.
1274 (init_core_ops): Set to_read_description.
1275 * gdbarch.sh: Add gdbarch_core_read_description.
1276 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1277 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1278 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1279 (mips_register_g_packet_guesses): Use them.
1280 (_initialize_mips_tdep): Initialize them.
1281 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1282 * gdbarch.h, gdbarch.c: Regenerated.
1284 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1286 * infrun.c (stepping_past_breakpoint): New global variable.
1287 (stepping_past_breakpoint_ptid): Likewise.
1288 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1289 Only switch threads if we need to single-step over a breakpoint hit
1290 in the previously selected thread. If stepping, remember previous
1291 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1292 switch_to_thread instead of copying its contents.
1293 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1294 prepare_to_proceed returns true.
1295 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1296 (context_switch): Call switch_to_thread.
1297 (handle_inferior_event): Switch back to previous thread if requested
1298 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1299 * gdbthread.h (switch_to_thread): Add prototype.
1300 * thread.c (switch_to_thread): Make global.
1302 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1304 * p-valprint.c: Fix 7 ARI reported problems.
1305 (pascal_val_print): Fix one operator at end of line issue.
1306 Use paddress function to remove use of
1307 deprecated_print_address_numeric function (2 times).
1308 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1309 (pascal_value_print): Fix 3 operator at end of line issues.
1311 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1314 * arm-tdep.c (arm_in_call_stub): Delete.
1315 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1317 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1319 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1322 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1323 Jim Blandy <jimb@codesourcery.com>
1325 * NEWS: Update description of string changes. Mention print/s.
1326 * c-valprint.c (textual_element_type): New.
1327 (c_val_print): Use it. Do not skip address printing for pointers
1328 with a string format.
1329 (c_value_print): Doc update.
1330 * dwarf2read.c (read_array_type): Use make_vector_type.
1331 * gdbtypes.c (make_vector_type): New.
1332 (init_vector_type): Use it.
1333 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1334 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1335 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1336 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1337 (make_vector_type): New.
1338 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1339 Call the language print routine for string format.
1340 (print_scalar_formatted): Call val_print for string format. Handle
1341 unsigned original types for char format.
1342 (validate_format): Do not reject string format.
1343 * stabsread.c (read_type): Use make_vector_type.
1344 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1346 2007-09-04 Michael Snyder <msnyder@access-company.com>
1348 * expprint.c (print_subexp_standard): Check strchr for null.
1349 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1351 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1353 * stabsread.c (patch_block_status): Guard against null.
1354 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1356 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1358 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1359 in internal error message.
1361 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1362 Daniel Jacobowitz <dan@codesourcery.com>
1364 * infcmd.c (post_create_inferior): Update comment.
1365 (run_command_1): Always call post_create_inferior with 0 as
1368 * i386-cygwin-tdep.h: New.
1369 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1370 (win32_xfer_shared_library): Make it extern.
1372 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1374 (win32_so_ops): Delete.
1375 (get_relocated_section_addrs): Delete.
1376 (solib_symbols_add): Delete.
1377 (register_loaded_dll): Delete.
1378 (win32_make_so): New.
1379 (handle_load_dll): Use win32_make_so.
1380 (win32_free_so): Free the passed in so.
1381 (win32_relocate_section_addresses): Delete.
1382 (win32_solib_create_inferior_hook): Delete.
1383 (handle_unload_dll): Don't add PE offset here. Free so with
1384 win32_free_so instead of free_so.
1385 (win32_special_symbol_handling): Delete.
1386 (get_win32_debug_event): Remove unneeded calls. Set state to
1387 TARGET_WAITKIND_LOADED on a dll unload.
1388 (do_initial_win32_stuff): Clear cygwin_load_start and
1390 (map_code_section_args): Delete.
1391 (dll_code_sections_add): Delete.
1392 (core_section_load_dll_symbols): Delete.
1393 (win32_xfer_shared_libraries): New.
1394 (win32_current_sos): Delete.
1395 (win32_xfer_partial): New.
1396 (open_symbol_file_object): Delete.
1397 (in_dynsym_resolve_code): Delete.
1398 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1399 of win32_ops. Remove win32_so_ops settings. Don't set
1400 current_target_so_ops here.
1402 * Makefile.in (i386_cygwin_tdep_h): New variable.
1403 (i386-cygwin-tdep.o): Update dependencies.
1404 (win32-nat.o): Update dependencies.
1406 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1407 Daniel Jacobowitz <dan@codesourcery.com>
1409 * gdbarch.sh (core_xfer_shared_libraries): New.
1411 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1413 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1415 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1416 (xml_escape_text): New.
1417 * xml-support.h (xml_escape_text): Declare.
1419 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1420 * config/i386/cygwin.mt (TDEPFILES): ... here.
1422 * win32-nat.c: (fetch_elf_core_registers): Delete.
1423 (win32_elf_core_fn): Delete.
1424 (_initialize_core_win32): Delete.
1426 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1427 "xml-support.h" and "gdbcore.h".
1428 (i386_win32_gregset_reg_offset): New.
1429 (I386_WIN32_SIZEOF_GREGSET): New.
1430 (i386_win32_regset_from_core_section): New.
1431 (win32_xfer_shared_library): New.
1432 (struct cpms_data): New.
1433 (core_process_module_section): New.
1434 (win32_core_xfer_shared_libraries): New.
1435 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1436 gregset_num_regs, sizeof_gregset members of tdep. Register
1437 regset_from_core_section and core_xfer_shared_libraries callbacks.
1439 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1440 * gdbarch.h, gdbarch.c: Regenerate.
1442 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1444 * corelow.c (core_xfer_partial): Pass writebuf to
1445 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1447 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1449 * arm-tdep.h (arm_skip_stub): Declare.
1450 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1452 (arm_pe_skip_trampoline_code): New function.
1453 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1454 gdbarch_skip_trampoline_code callback.
1455 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1457 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1459 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1461 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1463 * configure.ac: Add --with-expat.
1464 * configure: Regenerated.
1466 2007-09-03 Andreas Schwab <schwab@suse.de>
1468 * configure.ac: Accept --with-system-readline.
1469 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1470 * configure: Regenerate.
1471 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1473 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1475 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1476 Daniel Jacobowitz <dan@codesourcery.com>
1478 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1480 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1482 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1484 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1486 * top.c (print_gdb_version): Update for GPL version 3.
1488 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1490 * NEWS: Mention the build-id .debug files verification.
1492 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1494 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1496 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1498 * Makefile.in (symfile.o): Update dependencies.
1499 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1500 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1501 (struct build_id): New structure.
1502 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1503 (find_separate_debug_file): New variable BUILD_ID.
1504 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1506 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1508 * varobj.c (struct varobj): Fix comment
1509 for the type member not to lie when it can be
1512 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1514 Implement -var-info-path-expression.
1516 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1518 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1519 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1520 * varobj.c (struct varobj): New field 'path_expr'.
1521 (c_path_expr_of_child, cplus_path_expr_of_child)
1522 (java_path_expr_of_child): New.
1523 (struct language_specific): New field path_expr_of_child.
1524 (varobj_create): Initialize the path_expr field.
1525 (varobj_get_path_expr): New.
1526 (new_variable): Initialize the path_expr field.
1527 (free_variable): Free the path_expr field.
1528 (adjust_value_for_children_access): New parameter
1530 (c_number_of_children): Adjust.
1531 (c_describe_child): New parameter CFULL_EXPRESSION.
1532 Compute full expression.
1533 (c_value_of_child, c_type_of_child): Adjust.
1534 (cplus_number_of_children): Adjust.
1535 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1536 Compute full expression.
1537 (cplus_name_of_child, cplus_value_of_child)
1538 (cplus_type_of_child): Adjust.
1539 * varobj.h (varobj_get_path_expr): Declare.
1541 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1543 * mi/mi-cmd-var.c (print_varobj): If a varobj
1544 type is NULL, don't try to print it.
1546 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1548 * ppc-linux-nat.c (right_fill_reg): Delete.
1549 (supply_gregset): Use ppc_supply_gregset.
1550 (supply_fpregset): Use ppc_supply_fpregset.
1551 (fill_gregset): Use ppc_collect_gregset.
1552 (fill_fpregset): Use ppc_collect_fpregset.
1553 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1554 (right_supply_register, ppc_linux_supply_gregset): Delete.
1555 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1556 (ppc_linux_supply_fpregset): Delete.
1557 (ppc_linux_collect_gregset): New function.
1558 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1559 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1560 ppc_linux_supply_gregset, and ppc_collect_gregset.
1561 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1562 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1563 (ppc_linux_regset_from_core_section): Update.
1564 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1565 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1566 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1567 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1568 (ppcobsd_collect_gregset): Likewise.
1569 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1570 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1571 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1572 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1573 (rs6000_aix64_reg_offsets): Likewise.
1574 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1575 ppc_floating_point_unit_p.
1576 (rs6000_aix_collect_regset): Similarly.
1577 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1578 when regsize is larger than regcache register size.
1579 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1580 regcache register size.
1581 (ppc_greg_offset): New function, split out from..
1582 (ppc_supply_gregset): ..here. Separate code handling all regs from
1583 single reg case. Correct xer offset.
1584 (ppc_fpreg_offset): New function, split out from..
1585 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1587 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1588 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1589 a fp unit, instead return if no fp.
1591 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1593 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1594 this code has not been compiled for two years.
1596 2007-08-29 Michael Snyder <msnyder@access-company.com>
1598 * event-top.c (gdb_readline2): Return after EOF.
1600 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1602 * symtab.c: Remove a function that has been commented out 3 years ago.
1604 2007-08-29 Randolph Chung <tausq@debian.org>
1606 * hppa-tdep.c (hppa32_cannot_fetch_register)
1607 (hppa64_cannot_fetch_register): New functions.
1608 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1609 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1611 2007-08-28 Michael Snyder <msnyder@access-company.com>
1613 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1614 check for null before calling check_typedef.
1616 * NEWS: Mention Coverity bug fixes.
1618 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1620 * spu-tdep.c (spu_pointer_to_address): New function.
1621 (spu_integer_to_address): Likewise.
1622 (spu_gdbarch_init): Add spu_pointer_to_address and
1623 spu_integer_to_address to gdbarch.
1625 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1627 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1629 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1631 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1632 that contains the GDB license.
1633 * copying.awk: Adjust to the GPLv3 wording.
1634 * copying.c: Regenerate.
1636 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1638 * copying.awk: Protoization, and i18n markup.
1640 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1642 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1643 * copyright.sh: Likewise.
1644 * gdb-events.sh: Likewise.
1645 * gdb_gcore.sh: Likewise.
1646 * gdb_mbuild.sh: Likewise.
1647 * gdbarch.sh: Likewise.
1648 * observer.sh: Likewise.
1649 * features/feature_to_c.sh: Likewise.
1650 * regformats/regdat.sh: Likewise.
1652 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1654 Switch the license of all .c files to GPLv3.
1655 Switch the license of all .h files to GPLv3.
1656 Switch the license of all .cc files to GPLv3.
1658 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1660 * configure.ac: Switch license to GPLv3.
1662 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1664 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1665 determine the file's FPU type.
1667 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1669 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1670 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1671 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1673 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1675 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1677 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1678 (elf_lookup_lib_symbol): Fix formatting.
1680 2007-08-21 Michael Snyder <msnyder@access-company.com>
1682 * dbxread.c (read_dbx_symtab): Guard null deref.
1685 * valops.c (find_overload_match): Guard against NULL.
1687 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1689 * MAINTAINERS (Patch Champions): Remove self.
1691 2007-08-21 Chris Smith <chris.smith@st.com>
1693 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1696 2007-08-18 Michael Snyder <msnyder@access-company.com>
1698 * stabsread.c (dbx_lookup_type): Memory leak.
1700 * event-loop.c (delete_async_signal_handler): Move pointer null
1701 test to before pointer dereference.
1703 * ui-out.c (append_header_to_list): Possible cut and paste error.
1705 * MAINTAINERS: white space tweak.
1707 2007-08-17 Michael Snyder <msnyder@access-company.com>
1709 * stack.c (print_frame): Memory leak.
1711 * completer.c (filename_completer): Avoid memory leak.
1712 Remove unnecessary nested block.
1714 * c-exp.y (parse_number): Memory leak.
1716 * completer.c (location_completer): Must free 'fn_list', except
1717 in the one case where it is returned (as 'list').
1719 * varobj.c (value_of_root): Memory leak.
1721 * gdbtypes.h (virtual_base_list): Remove export decl.
1722 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1723 (virtual_base_index): Memory leak.
1724 (virtual_base_index_skip_primaries): Ditto.
1726 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1728 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1729 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1730 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1731 (xtensa_read_register): New function.
1732 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1733 (xtensa_insn_kind): New types.
1734 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1735 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1736 (xtensa_verify_config, xtensa_pseudo_register_read)
1737 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1738 (xtensa_store_return_value)
1739 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1740 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1741 (xtensa_frame_this_id, xtensa_frame_prev_register)
1742 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1743 (call0_frame_cache, call0_frame_get_reg_at_entry)
1744 (call0_classify_opcode, call0_track_op)
1745 (call0_analyze_prologue, call0_frame_cache): New functions.
1747 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1749 * breakpoint.c (bpstat_free): New.
1750 (bpstat_clear): Use bpstat_free.
1751 (delete_breakpoint): Document why we cannot
1752 remove bpstats from stop_bpstat.
1753 * breakpoint.h (bpstat_free): Declare.
1755 2007-08-16 Michael Snyder <msnyder@access-company.com>
1757 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1759 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1760 Joel Brobecker <brobecker@adacore.com>
1762 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1764 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1765 Joel Brobecker <brobecker@adacore.com>
1767 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1768 checkin guarding against NULL.
1770 2007-08-14 Michael Snyder <msnyder@access-company.com>
1772 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1773 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1774 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1775 go at beginning of new line.
1777 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1778 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1779 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1780 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1781 tui-winsource.h, tui.c, tui.h: Function declarations and
1782 definitions, wrap long lines.
1784 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1785 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1786 Reformat block comments to GNU standard.
1788 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1789 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1790 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1791 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1792 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1793 spaces after periods, etc).
1795 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1796 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1797 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1798 tui-winsource.h: Whitespace changes, fix pointer declarations
1801 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1802 Michael Snyder <msnyder@access-company.com>
1804 * ada-lang.c (field_alignment): Guard against NULL.
1806 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1808 * MAINTAINERS (Global Maintainers): Add self.
1810 2007-08-14 Michael Snyder <msnyder@access-company.com>
1812 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1814 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1816 * varobj.c (cplus_describe_child): Guard against null.
1817 Use "NULL" instead of "0" to initialize pointers.
1819 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1821 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1822 to match any gdbarch with matching OSABI. Set default ABI and FPU
1823 after running the OSABI handler.
1825 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1827 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1828 * config/i386/linux.mt (TDEPFILES): ...to here.
1830 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1832 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1833 the 'silent' parameter and code to implement that.
1834 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1836 * win32-nat.c: Adjust.
1839 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1841 * breakpoint.c (update_breakpoints_after_exec): Don't
1842 set address to zero.
1844 2007-08-13 Michael Snyder <msnyder@access-company.com>
1846 * valops.c: Whitespace clean-up.
1848 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1850 * event-top.c (command_line_handler): Memory leak.
1852 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1853 No need to make copy.
1855 * source.c (find_source_lines): Require symtab 's'.
1857 2007-08-11 Michael Snyder <msnyder@access-company.com>
1859 * completer.c: Spelling fix in comments.
1861 2007-08-10 Michael Snyder <msnyder@access-company.com>
1863 * gdbtypes.c: Coding standard cleanup.
1864 * gdbtypes.c: Comment/whitespace cleanup.
1866 * stabsread.c (read_huge_number): Attempt to compute value before
1867 values that it depends on.
1869 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1870 (decode_objc): Use "NULL" instead of 0.
1871 (find_method): Ditto.
1872 (decode_all_digits): Ditto.
1873 (decode_dollar): Ditto.
1875 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1877 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1879 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1882 * completer.c: Comment/whitespace cleanup.
1884 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1886 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1888 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1890 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1891 allocated file descriptors.
1893 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1895 * Makefile.in: Minor cleanup throughout; add some missing variables,
1896 add some missing rules, remove some rules that are no longer needed,
1897 and fix the dependencies in several rules.
1899 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1901 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1902 (scm_lang_h, scm_tags_h): New.
1903 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1904 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1905 * defs.h (enum language): Add `language_scm'.
1907 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1910 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1912 * MAINTAINERS (Write After Approval): Add myself.
1914 2007-08-09 Michael Snyder <msnyder@access-company.com>
1916 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1918 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1920 * solib-som.c (som_relocate_section_addresses): Stop saving
1921 the $CODE$ section in the so_list structure.
1923 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1925 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1926 (xtensa_register_group_t): Add entries for coprocessors.
1927 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1928 (xtensa_add_reggroups): Likewise.
1929 (xtensa_register_reggroup_p): Likewise.
1930 (xtensa_coprocessor_register_group): New function.
1933 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1935 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1937 2007-08-08 Michael Snyder <msnyder@access-company.com>
1939 * target.c (target_read_string): Guard against null.
1941 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1943 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1944 (tui_set_layout_for_display_command): Mem leak.
1946 * top.c (command_line_input): Memory leak.
1948 * solib-svr4.c (open_symbol_file_object): Memory leak.
1949 (svr4_current_sos): Ditto.
1950 (enable_break): Ditto.
1952 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1954 * dwarf2read.c (add_partial_symbol): Memory leak.
1956 2007-08-06 Michael Snyder <msnyder@access-company.com>
1958 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1960 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1962 * macroexp.c (init_buffer): Remove testing code that overrides the
1963 caller's length guess.
1964 (gather_arguments): Use a larger initial size, now that the vector
1965 growth code has been exercised.
1967 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1969 * solib-target.c (solib_target_relocate_section_addresses): Add
1970 orig_delta to addr_high.
1972 2007-08-04 Michael Snyder <msnyder@access-company.com>
1974 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1976 * breakpoint.c (print_one_breakpoint): Off by one error.
1978 * tracepoint.c (add_register): Off by one error.
1979 (stringify_collection_list): Free malloc buffer.
1981 2007-08-03 Michael Snyder <msnyder@access-company.com>
1983 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1984 stop memory leak, straighten out cleanups.
1986 * jv-lang.c (java_link_class_type): Guard against NULL.
1988 2007-08-02 Michael Snyder <msnyder@access-company.com>
1990 * gdbtypes.c (create_set_type): Test should only be done within
1991 the preceeding if block. Otherwise, variable is uninitialized.
1993 * gdbtypes.c (check_typedef): Guard NULL.
1995 2007-08-01 Michael Snyder <msnyder@access-company.com>
1997 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1998 avoid dereference in lookup_cmd_1.
2000 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
2001 clean up long lines.
2002 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
2003 (tui_alloc_win_info): Ditto.
2004 (tui_add_content_elements): Ditto.
2005 * tui/tui-file.c (tui_file_magic): Ditto.
2007 2007-07-31 Michael Snyder <msnyder@access-company.com>
2009 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
2010 True and false paths are mutually exclusive.
2012 * event-top.c (command_line_handler): Add pedantic return.
2014 * f-valprint.c (info_common_command): Bail out to prevent null
2015 pointer deref. Break up a long line.
2017 * exec.c (xfer_memory): Remove redundant condition from 'if'.
2019 * symfile.c (reread_separate_symbols): Free xmalloced memory.
2021 * printcmd.c (build_address_symbolic): Remove dead code and dead
2024 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
2026 * linespec.c (minsym_found): Advance to the next line if possible.
2028 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
2030 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
2031 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
2032 solib-svr4.o, and add solib-target.o
2034 2007-07-27 Michael Snyder <msnyder@access-company.com>
2036 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2038 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
2040 * MAINTAINERS (Write After Approval): Add myself.
2042 2007-07-26 Maciej W. Rozycki <macro@mips.com>
2044 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
2047 2007-07-25 Maciej W. Rozycki <macro@mips.com>
2049 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2051 2007-07-24 Michael Snyder <msnyder@access-company.com>
2053 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2054 'buffer' must cover both branches that call strcmp (Coverity).
2056 * stack.c (print_frame_args): Check return value of lookup_symbol.
2058 * ax-gdb.c (find_field): Guard against null ptr.
2060 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2062 * regformats/reg-spu.dat: Fix order of npc, id registers.
2064 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2066 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2067 sections should always go to the executable file.
2069 2004-07-20 Chris Dearman <chris@mips.com>
2071 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2072 prologue instructions.
2074 2007-07-20 Maciej W. Rozycki <macro@mips.com>
2076 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2079 2007-07-20 Chris Dearman <chris@mips.com>
2080 Maciej W. Rozycki <macro@mips.com>
2082 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2085 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2086 Daniel Jacobowitz <dan@codesourcery.com>
2088 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2089 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2091 * NEWS: Mention gdbserver DLL support.
2093 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2095 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2097 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2099 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2102 2007-07-13 Kevin Buettner <kevinb@redhat.com>
2104 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2107 2007-07-12 Kevin Buettner <kevinb@redhat.com>
2109 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2110 (mep_analyze_prologue): Add case for BRA instruction.
2112 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2114 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2116 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
2118 * breakpoint.c: Include "top.h".
2119 (breakpoint_1): Don't set convenience variable $_ if server prefix
2121 (_initialize_breakpoint): Describe this behaviour in command help.
2123 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2125 * solib-target.c (library_list_start_segment): Cast address to
2128 2007-07-06 Mark Kettenis <kettenis@gnu.org>
2130 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2131 for terminated processes.
2133 2007-07-05 Michael Snyder <msnyder@access-company.com>
2135 * event-top.c (cli_command_loop): Prompt string can (and should)
2136 be freed after call to readline (Coverity). Also move local var
2137 declarations into block where they are used.
2139 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2140 should) be freed after call to readline (Coverity). Also move
2141 local var declarations into block where they are used.
2143 2007-07-03 Andreas Schwab <schwab@suse.de>
2145 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2148 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2149 Thiago Bauermann <bauerman@br.ibm.com>
2150 Joseph S. Myers <joseph@codesourcery.com>
2151 Daniel Jacobowitz <dan@codesourcery.com>
2153 * remote.c (remote_check_symbols): Use
2154 gdbarch_convert_from_func_ptr_addr.
2155 * infcall.c (find_function_addr): Handle function descriptors
2156 without debugging information.
2157 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2158 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2159 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2160 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2161 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2162 allow SEC_CODE and SEC_DATA.
2163 (enable_break): Update calls. Pass current_target to solib_add.
2164 Use gdbarch_convert_from_func_ptr_addr.
2166 2007-07-03 Ilko Iliev <iliev@ronetix.at>
2167 Daniel Jacobowitz <dan@codesourcery.com>
2169 * symfile.c (print_transfer_performance): Avoid integer overflow.
2172 2007-07-03 Markus Deuling <deuling@de.ibm.com>
2174 * cp-namespace.c (lookup_symbol_file): Add block to
2175 lookup_symbol_global call.
2176 * Makefile.in (solist_h): Add dependency on symtab header.
2177 (symtab.o): Add dependency on solist header.
2178 * solib.c (solib_global_lookup): New function.
2179 * solib-svr4.c (scan_dyntag): Likewise.
2180 (elf_locate_base): Call helper routine scan_dyntag.
2181 (elf_lookup_lib_symbol): New function.
2182 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2183 * solist.h (symtab.h): New include.
2184 (struct target_so_ops): New member lookup_lib_global_symbol.
2185 (solib_global_lookup): New prototype.
2186 * symtab.c: New include solist.h.
2187 (lookup_objfile_from_block): New function.
2188 (lookup_global_symbol_from_objfile): New function.
2189 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2190 (lookup_symbol_global): Call library-specific lookup procedure.
2191 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2193 * NEWS: Document framework.
2195 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2197 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2200 * cli/cli-script.c (build_command_line): Update NULL check.
2202 2007-07-02 Michael Snyder <msnyder@access-company.com>
2204 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2206 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2208 * Makefile.in (XMLFILES): Add library-list.dtd.
2209 (ALLDEPFILES): Add solib-target.o.
2210 (solib-target.o): New rule.
2211 * remote.c (PACKET_qXfer_libraries): New constant.
2212 (remote_protocol_features): Add qXfer:libraries:read.
2213 (remote_wait): Recognize library stop replies.
2214 (remote_async_wait): Likewise. Fix typo.
2215 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2216 (init_remote_async_ops): Fix typo.
2217 (_initialize_remote): Register "set remote library-info-packet".
2218 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2219 * solib-target.c: New file.
2220 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2222 (info_sharedlibrary_command): Likewise.
2223 (solib_add_library, solib_remove_library): New.
2224 * solist.h (struct so_list): Replace textsection with addr_low and
2226 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2227 * NEWS: Describe new qXfer:libraries:read and shared library
2229 * features/library-list.dtd: New.
2231 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2233 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2234 (start_remote): Use STOP_QUIETLY_REMOTE.
2235 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2236 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2237 Update to match shared library event breakpoint support. Only
2238 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2239 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2240 * fork-child.c (startup_inferior): Do not set
2241 inferior_ignoring_startup_exec_events
2242 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2244 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2246 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2248 * breakpoint.c (insert_bp_location): Remove dead code
2249 (DISABLE_UNSETTABLE_BREAK).
2250 (disable_breakpoints_in_shlibs)
2251 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2253 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2255 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2256 Call insert_bp_location.
2258 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2260 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2263 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2265 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2268 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2270 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2271 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2272 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2273 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2274 to display_gdb_prompt.
2276 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2279 * target.c (memory_xfer_partial): Do not continue past targets with
2282 2007-06-30 Andreas Schwab <schwab@suse.de>
2284 * m68k-tdep.c (m68k_ps_type): New.
2285 (m68k_init_types): New.
2286 (m68k_register_type): Use m68k_ps_type for PS register.
2287 (_initialize_m68k_tdep): Call m68k_init_types.
2289 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2290 from the generic m68k arch.
2292 2007-06-28 Michael Snyder <msnyder@access-company.com>
2294 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2297 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2298 gdb_assert before using return value of find_thread_pid (Coverity).
2300 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2302 * cli/cli-script.c (build_command_line): Add null pointer guard
2305 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2307 * linux-thread-db.c (thread_db_attach): Delete.
2308 (thread_db_detach): Typo fix. Call target_mourn_inferior
2309 instead of fixing up proc_handle.
2310 (have_threads_callback, have_threads): New functions.
2311 (thread_db_wait): Remove dead proc_handle.pid check. Only
2312 translate PTIDs if we have registered threads. Check for new
2313 threads if we have none.
2314 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2315 (find_new_threads_callback): Only enable event reporting if TID == 0.
2316 (same_ptid_callback): New.
2317 (thread_db_get_thread_local_address): Check for new threads.
2318 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2319 or to_post_startup_inferior.
2321 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2323 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2324 is always active if SOFTWARE_SINGLE_STEP_P is true.
2325 (resume): Use gdbarch_software_single_step[_p] instead of
2326 SOFTWARE_SINGLE_STEP[_P].
2327 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2329 * gdbarch.sh (software_single_step): Remove target macro.
2330 * gdbarch.h, gdbarch.c: Regenerate.
2332 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2334 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2335 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2336 (struct gdbarch_swap, struct gdbarch_swap_registration,
2337 struct gdbarch_swap_registry, gdbarch_swap_registry,
2338 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2339 current_gdbarch_swap_in_hack): Remove.
2340 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2341 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2342 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2343 (deprecated_current_gdbarch_select_hack): Likewise.
2344 * gdbarch.h, gdbarch.c: Regenerate.
2346 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2348 * infrun.c (clear_proceed_status): Clean up stop_registers.
2349 (normal_stop): Allocate regcache for stop_registers.
2350 (struct inferior_status): Remove stop_registers member.
2351 (save_inferior_status): Do not save stop_registers.
2352 (restore_inferior_status): Do not restore stop_registers.
2353 (discard_inferior_status): Do not discard stop_registers.
2354 (build_infrun): Remove.
2355 (_initialize_infrun): Do not swap stop_registers.
2357 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2359 * remote.c (remote_address_masked): If remote_address_size is zero,
2360 default to target address size.
2361 (build_remote_gdbarch_data): Remove.
2362 (_initialize_remote): Do not swap remote_address_size.
2364 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2366 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2367 builtin_type_char, builtin_type_short, builtin_type_int,
2368 builtin_type_long, builtin_type_signed_char,
2369 builtin_type_unsigned_char, builtin_type_unsigned_short,
2370 builtin_type_unsigned_int, builtin_type_unsigned_long,
2371 builtin_type_float, builtin_type_double, builtin_type_long_double,
2372 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2373 builtin_type_bool, builtin_type_long_long,
2374 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2375 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2376 variable declaration with compatibility macro.
2377 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2378 builtin_type_char, builtin_type_short, builtin_type_int,
2379 builtin_type_long, builtin_type_signed_char,
2380 builtin_type_unsigned_char, builtin_type_unsigned_short,
2381 builtin_type_unsigned_int, builtin_type_unsigned_long,
2382 builtin_type_float, builtin_type_double, builtin_type_long_double,
2383 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2384 builtin_type_bool, builtin_type_long_long,
2385 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2386 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2387 (build_gdbtypes): Remove.
2388 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2389 opaque-type-resolution command here. Do not call
2390 deprecated_register_gdbarch_swap.
2392 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2394 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2395 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2396 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2398 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2399 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2400 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2401 (build_parse): Remove.
2402 (_initialize_parse): Do not call build_parse. Do not register
2403 msym_ types for gdbarch-swapping.
2405 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2406 instead of creating private type.
2408 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2409 (_initialize_xcoffread): Do not initialized them.
2410 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2412 * mdebugread.c (nodebug_func_symbol_type): Remove.
2413 (nodebug_var_symbol_type): Remove.
2414 (_initialize_mdebugread): Do not initialize them.
2415 (parse_symbol): Use builtin nodebug_ type instead of them.
2416 (parse_procedure): Likewise.
2418 2007-06-21 Chris Dearman <chris@mips.com>
2420 * printcmd.c (do_one_display): If display/i, start with an initial
2421 line feed to avoid bad layout if there is a branch delay slot.
2423 2007-06-21 Nigel Stephens <nigel@mips.com>
2424 Maciej W. Rozycki <macro@mips.com>
2426 * disasm.c (gdb_print_insn): Return the number of branch delay
2427 slot instructions too.
2428 * disasm.h (gdb_print_insn): Update prototype.
2429 * printcmd.c (branch_delay_insns): New variable to record the
2430 number of delay slot instructions after disassembling a branch.
2431 (print_formatted): Record the number of branch delay slot
2433 (do_examine): When disassembling, if the last instruction
2434 disassembled has any branch delay slots, then bump the count so
2435 that they get disassembled too.
2436 * tui/tui-disasm.c (tui_disassemble): Update the call to
2438 * NEWS: Document the new behaviour.
2440 2007-06-21 Andreas Schwab <schwab@suse.de>
2442 * regcache.c (write_pc_pid): Restore missing else.
2444 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2446 * regcache.c (regcache_print): Use get_current_regcache ()
2447 instead of current_regcache.
2449 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2452 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2453 instead of bfd_make_section_anyway.
2454 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2455 when clearing SEC_LOAD.
2457 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2459 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2460 registers for big-endian.
2462 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2464 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2465 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2466 * gdbarch.c, gdbarch.h: Regenerate.
2468 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2470 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2471 gdbarch_believe_pcc_promotion.
2472 * stabsread.c (define_symbol): Likewise.
2473 Remove unnecessary definition.
2474 * coffread.c (process_coff_symbol): Remove unnecessary code.
2475 * gdbarch.c, gdbarch.h: Regenerate.
2477 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2479 * configure.ac: Do not use ${objdir}.
2480 * configure: Regenerated.
2482 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2484 * gdbarch.sh (deprecated_register_size): Remove.
2485 * gdbarch.h, gdbarch.c: Regenerate.
2487 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2488 by INT_REGISTER_SIZE.
2489 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2490 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2491 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2492 set_gdbarch_deprecated_register_size.
2494 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2496 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2497 gdbarch_deprecated_fp_regnum.
2498 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2499 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2500 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2501 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2503 * gdbarch.c, gdbarch.h: Regenerate.
2505 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2507 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2508 gdbarch_extract_return_value.
2509 * value.c (generic_use_struct_convention): Likewise (comment).
2510 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2511 * arch-utils.c (legacy_return_value): Likewise.
2512 * arch-utils.h (legacy_return_value): Likewise (comment).
2513 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2514 gdbarch_store_return_value.
2515 * stack.c (return_command): Likewise (comment).
2516 * arch-utils.h (legacy_return_value): Likewise (comment).
2517 * arch-utils.c (legacy_return_value): Likewise.
2518 * gdbarch.c, gdbarch.h: Regenerate.
2520 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2522 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2523 gdbarch_deprecated_use_struct_convention.
2524 * arch-utils.c (legacy_return_value): Likewise.
2525 * gdbarch.c, gdbarch.h: Regenerate.
2527 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2529 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2530 gdbarch_deprecated_function_start_offset.
2531 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2532 * linespec.c (minsym_found): Likewise.
2533 * infrun.c (handle_inferior_event): Likewise.
2534 * infcall.c (find_function_addr): Likewise.
2535 * cli/cli-cmds.c (disassemble_command): Likewise.
2536 * gdbarch.c, gdbarch.h: Regenerate.
2538 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2540 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2541 gdbarch_deprecated_reg_struct_has_addr.
2542 * infcall.c (call_function_by_hand): Likewise.
2543 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2544 * gdbarch_deprecated_reg_struct_has_addr_p.
2545 * infcall.c (call_function_by_hand): Likewise.
2546 * gdbarch.c, gdbarch.h: Regenerate.
2548 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2550 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2551 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2552 (sh_gdbarch_init): Remove
2553 set_gdbarch_deprecated_extract_struct_value_address.
2554 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2555 (sh64_gdbarch_init): Remove
2556 set_gdbarch_deprecated_extract_struct_value_address.
2557 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2558 (ia64_gdbarch_init): Remove
2559 set_gdbarch_deprecated_extract_struct_value_address.
2560 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2561 (frv_gdbarch_init): Remove
2562 set_gdbarch_deprecated_extract_struct_value_address.
2563 * gdbarch.c, gdbarch.h: Regenerate.
2565 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2567 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2568 * v850-tdep.c (v850_unwind_sp): Likewise.
2569 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2570 * stack.c (frame_info): Likewise.
2571 * stabsread.c (define_symbol): Likewise.
2572 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2573 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2574 (sh_unwind_sp): Likewise.
2575 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2576 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2577 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2578 (rs6000_frame_cache): Likewise.
2579 * rs6000-nat.c (store_register): Likewise.
2580 * remote-mips.c (mips_wait): Likewise.
2581 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2582 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2583 (ppc64_sysv_abi_push_dummy_call): Likewise.
2584 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2585 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2586 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2587 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2588 * m32r-rom.c (m32r_supply_register): Likewise.
2589 * frame.c (frame_sp_unwind): Likewise.
2590 * mips-tdep.c (mips_insn16_frame_cache)
2591 (mips_insn32_frame_cache): Likewise (comment).
2592 * m68klinux-nat.c (supply_gregset): Likewise.
2593 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2594 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2595 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2596 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2597 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2598 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2599 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2600 (cris_register_type, crisv32_register_type)
2601 (cris_dwarf2_frame_init_reg): Likewise.
2602 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2603 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2604 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2605 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2607 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2608 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2609 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2610 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2611 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2612 * v850-tdep.c (v850_unwind_pc): Likewise.
2613 * stack.c (frame_info): Likewise.
2614 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2615 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2616 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2617 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2618 (sh_dsp_show_regs): Likewise.
2619 * shnbsd-tdep.c (shnbsd_supply_gregset)
2620 (shnbsd_collect_gregset): Likewise.
2621 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2622 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2623 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2624 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2625 (6000_register_reggroup_p, rs6000_unwind_pc)
2626 (rs6000_frame_cache): Likewise.
2627 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2628 (rs6000_store_inferior_registers): Likewise.
2629 * remote-mips.c (mips_wait, mips_load): Likewise.
2630 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2631 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2632 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2633 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2634 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2635 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2636 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2637 (store_ppc_registers, fill_gregset): Likewise.
2638 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2639 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2640 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2641 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2642 * m68klinux-nat.c (supply_gregset): Likewise.
2643 * irix5-nat.c (fill_gregset): Likewise.
2644 * i386-tdep.c (i386_unwind_pc): Likewise.
2645 * i386-linux-nat.c (i386_linux_resume): Likewise.
2646 * frame.c (get_prev_frame_1): Likewise.
2647 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2648 * dbug-rom.c (dbug_supply_register): Likewise.
2649 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2650 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2651 (cris_register_type, crisv32_register_type, crisv32_register_name)
2652 (cris_dwarf2_frame_init_reg, find_step_target)
2653 (cris_software_single_step, cris_supply_gregset)
2654 (cris_regnums): Likewise.
2655 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2656 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2657 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2658 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2659 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2661 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2662 * dbug-rom.c (dbug_supply_register): Likewise.
2663 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2664 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2665 * win32-nat.c (win32_resume): Likewise.
2666 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2667 * m68k-tdep.c (m68k_register_type): Likewise.
2668 * m68klinux-nat.c (supply_gregset): Likewise.
2670 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2671 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2672 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2673 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2674 (fv_reg_base_num, dr_reg_base_num): Likewise.
2675 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2676 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2677 (sh64_extract_return_value, sh64_store_return_value)
2678 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2679 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2680 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2681 (invalidate_cache): Likewise.
2682 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2683 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2684 (mipsnbsd_fill_fpreg): Likewise.
2685 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2686 (mipsnbsd_store_inferior_registers): Likewise.
2687 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2688 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2689 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2690 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2691 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2692 (fill_fpregset): Likewise.
2693 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2694 * i386-tdep.h (struct_return): Likewise (comment).
2695 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2696 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2697 (go32_store_registers): Likewise.
2698 * alpha-tdep.c (alpha_next_pc): Likewise.
2699 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2700 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2701 (alphabsd_store_inferior_registers): Likewise.
2702 * core-regset.c (fetch_core_registers): Likewise.
2703 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2705 * gdbarch.c, gdbarch.h: Regenerate.
2707 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2709 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2710 * dbxread.c (start_psymtab): Check HAVE_ELF.
2711 (aout_sym_fns): Likewise.
2712 * elfread.c (elf_symfile_segments): New.
2713 (elf_sym_fns): Add elf_symfile_segments.
2714 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2715 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2716 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2717 * somread.c (som_sym_fns): Use default_symfile_segments.
2718 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2719 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2720 (default_symfile_segments): New function.
2721 (syms_from_objfile): Update call to find_sym_fns.
2722 (symfile_get_segment_data, free_symfile_segment_data): New.
2723 (symfile_map_offsets_to_segments): New.
2724 (symfile_find_segment_sections): New.
2725 * symfile.h (struct symfile_segment_data): New.
2726 (struct sym_fns): Add sym_segments.
2727 (default_symfile_segments, symfile_get_segment_data)
2728 (free_symfile_segment_data): New prototypes.
2729 (symfile_map_offsets_to_segments): Likewise.
2730 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2731 * Makefile.in (COMMON_OBS): Remove elfread.o.
2732 (elf_internal_h): New.
2733 (elfread.o): Update.
2734 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2736 * config.in, configure: Regenerated.
2737 * NEWS: Mention qOffsets changes.
2739 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2741 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2742 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2743 Replace global variable declaration with compatibility macro.
2744 (struct builtin_m2_type): New data type.
2745 (builtin_m2_type): Add prototype.
2746 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2747 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2748 Remove global variables.
2749 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2750 (build_m2_types): New function.
2751 (m2_type_data): New variable.
2752 (builtin_m2_type): New function.
2753 (_initialize_m2_language): Do not build data types. Register
2754 m2_type_data per-gdbarch data.
2756 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2758 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2759 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2760 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2761 builtin_type_f_real_s8, builtin_type_f_real_s16,
2762 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2763 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2764 variable declaration with compatibility macro.
2765 (struct builtin_f_type): New data type.
2766 (builtin_f_type): Add prototype.
2767 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2768 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2769 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2770 builtin_type_f_real_s8, builtin_type_f_real_s16,
2771 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2772 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2773 (f_language_arch_info): Use builtin_f_type instead of variables.
2774 (build_fortran_types): Build builtin_f_type structure instead of
2775 setting global type variables.
2776 (f_type_data): New variable.
2777 (builtin_f_type): New function.
2778 (_initialize_f_language): Do not call build_fortran_types. Do not
2779 swap global type variables. Register f_type_data per-gdbarch data.
2781 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2783 * f-lang.c (_initialize_f_language): Do not initialize or
2784 swap builtin_type_string.
2786 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2788 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2789 value_of_builtin_frame_reg): Remove.
2790 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2791 inactive call to value_of_builtin_frame_reg.
2793 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2795 * gdbarch.sh (bfd_vma_bit): Remove.
2796 * gdbarch.c, gdbarch.h: Regenerate.
2798 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2799 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2800 (build_gdbtypes): Do not initialize it.
2801 (_initialize_gdbtypes): Do not swap it.
2803 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2805 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2806 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2807 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2808 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2809 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2810 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2811 builtin_type_vec64, builtin_type_vec128): Remove.
2812 (init_simd_type): Remove.
2813 (init_vector_type): Make global.
2814 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2815 (build_gdbtypes): Do not build vector types.
2816 (_initialize_gdbtypes): Do not swap vector types.
2817 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2818 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2819 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2820 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2821 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2822 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2823 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2824 (init_vector_type): Add prototype.
2826 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2827 i386_sse_type members.
2828 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2829 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2830 (i386_init_types): Do not build vector types.
2831 (i386_mmx_type, i386_sse_type): New functions.
2832 (i386_register_type): Call them instead of using global variables.
2833 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2834 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2835 of using global variable.
2837 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2838 and ppc_builtin_type_vec128 members.
2839 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2840 (rs6000_builtin_type_vec128): Likewise.
2841 (rs6000_register_type): Call them instead of using builtin_type_vec64
2842 and builtin_type_vec128.
2843 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2845 * spu-tdep.c (struct gdbarch_tdep): New data type.
2846 (spu_builtin_type_vec128): Remove variable.
2847 (spu_builtin_type_vec128): New function.
2848 (spu_register_type): Call it instead of using global variable.
2849 (spu_gdbarch_init): Allocate tdep structure.
2850 (spu_init_vector_type): Remove function.
2851 (_initialize_spu_tdep): Do not call it.
2853 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2855 * amd64-tdep.c (struct amd64_register_info): Remove.
2856 (amd64_register_info): Remove.
2857 (amd64_register_names): New static variable.
2858 (AMD64_NUM_REGS): Use amd64_register_names instead of
2859 amd64_register_info.
2860 (amd64_register_name): Likewise.
2861 (amd64_register_type): Do not refer to amd64_register_info.
2863 * s390-tdep.c (struct s390_register_info): Remove.
2864 (s390_register_info): Remove.
2865 (s390_register_name): Do not refer to s390_register_info.
2866 (s390_register_type): Likewise.
2868 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2869 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2870 (sparc64_register_names, sparc64_pseudo_register_names): New.
2871 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2872 sparc64_register_names and sparc64_pseudo_register_names instead of
2873 sparc64_register_info and sparc64_pseudo_register_info.
2874 (sparc64_register_name): Likewise.
2875 (sparc64_register_type): Do not refer to sparc64_register_info
2876 and sparc64_pseudo_register_info.
2878 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2880 * c-lang.c (cplus_builtin_types): Remove.
2881 (enum cplus_primitive_types): New data type.
2882 (cplus_language_arch_info): New function.
2883 (cplus_language_defn): Set la_language_arch_info member. Do not set
2884 la_builtin_type_vector and string_char_type members.
2886 * f-lang.c (f_builtin_types): Remove.
2887 (enum f_primitive_types): New data type.
2888 (f_language_arch_info): New function.
2889 (f_language_de): Set la_language_arch_info member. Do not set
2890 la_builtin_type_vector and string_char_type members.
2892 * m2-lang.c (m2_builtin_types): Remove.
2893 (enum m2_primitive_types): New data type.
2894 (m2_language_arch_info): New function.
2895 (m2_language_defn): Set la_language_arch_info member. Do not set
2896 la_builtin_type_vector and string_char_type members.
2898 * objc-lang.c (objc_builtin_types): Remove.
2899 (objc_language): Set la_language_arch_info member. Do not set
2900 la_builtin_type_vector and string_char_type members.
2902 * p-lang.c (pascal_builtin_types): Remove.
2903 (enum pascal_primitive_types): New data type.
2904 (pascal_language_arch_info): New function.
2905 (pascal_language_defn): Set la_language_arch_info member. Do not set
2906 la_builtin_type_vector and string_char_type members.
2908 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2910 * regcache.c (struct regcache): Add ptid_t member.
2911 (regcache_xmalloc): Initialize it.
2912 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2913 (regcache_dup): Likewise.
2914 (regcache_dup_no_passthrough): Likewise.
2915 (current_regcache): Make static.
2916 (registers_ptid): Remove variable.
2917 (get_thread_regcache): New function.
2918 (get_current_regcache): New function.
2919 (registers_changed): Implement by freeing current regcache.
2920 (regcache_raw_read): Do not refer to current_regcache. Set
2921 inferior_ptid to regcache->ptid while calling target routines.
2922 (regcache_raw_write): Likewise.
2923 (regcache_raw_supply): Do not refer to current_regcache.
2924 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2925 (write_pc_pid): Likewise.
2926 (build_regcache): Remove.
2927 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2928 or deprecated_register_gdbarch_swap. Do not initialize
2930 * regcache.h (get_current_regcache): Add prototype.
2931 (get_thread_regcache): Likewise.
2932 (current_regcache): Remove declaration.
2934 * corelow.c (core_open): Replace current_regcache by
2935 get_current_regcache ().
2936 * frame.c (frame_pop): Likewise.
2937 (put_frame_register): Likewise.
2938 (get_current_frame, create_new_frame): Likewise.
2939 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2940 * stack.c (return_command): Likewise.
2941 * infcall.c (call_function_by_hand): Likewise.
2942 * infrun.c (resume): Likewise.
2943 (save_inferior_status, restore_inferior_status): Likewise.
2944 * linux-fork.c (fork_load_infrun_state): Likewise.
2945 (fork_save_infrun_state): Likewise.
2946 * win32-nat.c (win32_resume): Likewise.
2947 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2948 * monitor.c (monitor_wait): Likewise.
2949 * remote.c (remote_wait): Likewise.
2950 * remote-mips.c (mips_wait): Likewise.
2952 * bsd-kvm.c (bsd_kvm_open): Likewise
2953 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2954 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2955 * i386-linux-nat.c (i386_linux_resume): Likewise.
2956 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2957 (ia64_linux_stopped_data_address): Likewise.
2959 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2960 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2961 * mep-tdep.c (current_me_module, current_options): Likewise.
2962 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2964 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2965 regcache instead of current_regcache. Call target_fetch_registers.
2966 (linux_nat_corefile_thread_callback): Update call site.
2967 (linux_nat_do_registers): Likewise.
2968 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2969 of current_regcache.
2970 (procfs_make_note_section): Likewise.
2971 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2972 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2973 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2974 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2976 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2978 * regcache.c (read_register, read_register_pid): Remove.
2979 (write_register, write_register_pid): Likewise.
2980 * regcache.h (read_register, read_register_pid): Remove prototype.
2981 (write_register, write_register_pid): Likewise.
2983 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2985 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2986 (write_pc): Likewise. Remove default implementation, add predicate.
2987 * gdbarch.c, gdbarch.h: Regenerate.
2988 * regcache.c (read_pc_pid): Use current regcache instead of calling
2990 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2992 (generic_target_write_pc): Remove.
2993 * inferior.h (generic_target_write_pc): Remove.
2994 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2996 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2997 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2998 * sh-tdep.c (sh_gdbarch_init): Likewise.
2999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3001 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
3002 argument. Use REGCACHE instead of calling read_register_pid.
3003 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
3004 * hppa-tdep.c (hppa_read_pc): Likewise.
3005 * hppa-tdep.h (hppa_read_pc): Likewise.
3006 * ia64-tdep.c (ia64_read_pc): Likewise.
3007 * m32r-tdep.c (m32r_read_pc): Likewise.
3008 * mep-tdep.c (mep_read_pc): Likewise.
3009 * mn10300-tdep.c (mn10300_read_pc): Likewise.
3010 * spu-tdep.c (spu_read_pc): Likewise.
3012 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
3013 argument. Use REGCACHE instead of calling write_register_pid.
3014 * avr-tdep.c (avr_write_pc): Likewise.
3015 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
3016 * hppa-tdep.c (hppa_write_pc): Likewise.
3017 * hppa-tdep.h (hppa_write_pc): Likewise.
3018 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
3019 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
3020 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
3021 * ia64-tdep.c (ia64_write_pc): Likewise.
3022 * ia64-tdep.h (ia64_write_pc): Likewise.
3023 * m32r-tdep.c (m32r_write_pc): Likewise.
3024 * m88k-tdep.c (m88k_write_pc): Likewise.
3025 * mep-tdep.c (mep_write_pc): Likewise.
3026 * mips-tdep.c (mips_write_pc): Likewise.
3027 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3028 * mn10300-tdep.c (mn10300_write_pc): Likewise.
3029 * sparc-tdep.c (sparc_write_pc): Likewise.
3030 * spu-tdep.c (spu_write_pc): Likewise.
3032 * mips-tdep.c (read_signed_register): Remove.
3033 (read_signed_register_pid): Likewise.
3034 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
3035 Use REGCACHE instead of calling read_signed_register_pid.
3037 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3039 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
3040 * gdbarch.c, gdbarch.h: Regenerate.
3041 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
3042 (push_dummy_code): Likewise. Pass it to callee.
3043 (call_function_by_hand): Pass current regcache to push_dummy_code.
3045 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
3046 argument. Use it instead of current_regcache.
3048 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
3049 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
3051 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3053 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3054 * gdbarch.c, gdbarch.h: Regenerate.
3055 * infrun.c (handle_inferior_event): Pass current frame to
3056 gdbarch_get_longjmp_target.
3058 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3059 Read registers from FRAME instead of using read_register.
3060 Use get_frame_arch instead of current_gdbarch.
3061 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3062 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3063 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3064 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3065 (mips64_linux_get_longjmp_target): Likewise.
3066 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3068 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3070 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3071 * gdbarch.c, gdbarch.h: Regenerate.
3072 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3073 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3074 * infrun.c (handle_inferior_event): Pass current frame to
3075 gdbarch_skip_trampoline_code and skip_language_trampoline.
3077 * language.c (unk_lang_trampoline): Add FRAME argument.
3078 (skip_language_trampoline): Add FRAME argument. Pass it to
3079 skip_trampoline callback.
3080 * language.h: Add forward declaration of struct frame_info.
3081 (struct language_defn): Add FRAME argument to skip_trampoline.
3082 (skip_language_trampoline): Add FRAME argument.
3083 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3084 to skip_trampoline callback.
3085 * cp-abi.h: Add forward declaration of struct frame_info.
3086 (cplus_skip_trampoline): Add FRAME argument.
3087 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3088 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3089 to gdbarch_skip_trampoline_code.
3090 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3091 to gdbarch_skip_trampoline_code.
3093 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3094 * symtab.h (find_solib_trampoline_target): Likewise.
3095 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3096 find_solib_trampoline_target.
3098 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3099 from FRAME instead of calling read_register.
3101 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3102 argument. Read registers from FRAME instead of using read_register.
3103 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3104 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3106 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3109 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3111 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3112 registers from FRAME instead of using read_signed_register.
3114 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3116 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3117 instead of using read_register.
3118 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3119 ppc64_standard_linkage_target.
3120 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3121 Pass it to find_solib_trampoline_target. Read registers from FRAME
3122 instead of using read_register.
3124 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3127 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3129 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3131 * gdbarch.c, gdbarch.h: Regenerate.
3132 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3134 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3135 registers from FRAME instead of using read_register.
3136 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3137 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3138 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3141 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3142 from FRAME instead of using read_register.
3143 (thumb_get_next_pc): Likewise.
3144 (arm_get_next_pc): Likewise.
3145 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3146 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3147 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3150 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3151 from FRAME instead of using read_register.
3152 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3153 to find_step_target.
3155 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3156 from FRAME instead of using read_register / read_signed_register.
3157 (extended_mips16_next_pc): Likewise.
3158 (mips16_next_pc): Likewise.
3159 (mips_next_pc): Likewise.
3160 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3161 to mips_next_pc. Use get_frame_pc instead of read_pc.
3162 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3165 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3166 of current frame. Read registers from FRAME.
3167 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3168 branch_dest. Use get_frame_pc instead of read_pc.
3169 (rs6000_software_single_step): Likewise.
3170 (bl_to_blrl_insn_p): Do not call branch_dest.
3171 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3174 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3175 Read registers from FRAME instead of current regcache.
3176 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3177 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3178 * sparc-tdep.c (sparc_address_from_register): Remove.
3179 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3180 GDBARCH. Pass FRAME to step_trap callback.
3181 (sparc_step_trap): Add FRAME argument.
3182 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3183 to sparc_analyze_control_transfer. Read registers from FRAME instead
3184 of calling sparc_address_from_register.
3185 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3187 (sparc_address_from_register): Remove prototype.
3188 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3189 (sparcnbsd_step_trap): Add FRAME argument.
3191 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3192 by FRAME. Read registers from FRAME instead of REGCACHE.
3194 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3196 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3197 instead of calling read_register.
3199 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3200 calling write_register.
3202 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3203 calling write_register.
3205 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3206 instead of calling read_register.
3207 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3208 instead of calling read_register and write_register.
3210 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3211 instead of current_regcache.
3213 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3214 of calling write_register.
3215 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3216 parameter instead of current_regcache.
3218 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3219 instead of calling read_register.
3220 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3221 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3222 (mips_n32n64_push_dummy_call): Likewise.
3223 (mips_o32_push_dummy_call): Likewise.
3224 (mips_o64_push_dummy_call): Likewise.
3226 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3227 parameter instead of current_regcache.
3229 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3230 Use it instead of read_register and write_register.
3231 (xtensa_register_read_masked): Likewise.
3232 (xtensa_pseudo_register_read): Update call.
3233 (xtensa_pseudo_register_write): Likewise.
3234 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3235 instead of calling read_register.
3236 (xtensa_push_dummy_call): Update comment.
3238 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3240 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3241 by frame_unwind_register_signed calls.
3242 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3243 frame allocations when called with NULL NEXT_FRAME parameter.
3244 (read_next_frame_reg): Remove.
3246 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3247 instead of reading the FPSCR register.
3248 (sh_frame_cache): Pass unwound FPSCR register value to
3249 sh_analyze_prologue.
3250 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3252 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3253 instead of reading the CTBP register.
3254 (v850_frame_cache): Pass unwound CTBP register value to
3255 v850_analyze_prologue.
3257 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3259 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3260 * sh-tdep.c (sh_show_regs): Likewise.
3261 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3262 (sh_generic_show_regs): Add FRAME parameter. Use register
3263 values from that frame instead of calling read_register.
3264 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3265 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3266 sh_dsp_show_regs): Likewise.
3267 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3268 sh64_show_regs): Likewise.
3270 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3272 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3273 current regcache instead of calling read_register.
3275 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3277 * mep-tdep.c (current_me_module): Read from current regcache
3278 instead of calling read_register.
3279 (current_options): Likewise.
3281 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3283 * cris-tdep.c (cris_stopped_data_address): Read register values
3284 from current frame instead of calling read_register.
3285 * frv-tdep.c (frv_stopped_data_address): Likewise.
3287 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3289 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3290 instead of write_register (PC_REGNUM, ...).
3292 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3294 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3295 explaining why the PC adjustment code is necessary.
3297 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3299 * m68k-tdep.h (enum m68k_flavour): New.
3300 (struct gdbarch_tdep): New fields
3301 float_return, flavour and fpregs_present.
3302 * m68k-tdep.c (m68k_register_type): Use
3303 fpregs_present and conditionalize floating
3304 registers type on flavour.
3305 (m68k_register_names): New.
3306 (m68k_register_name): Use the above.
3307 (m68k_convert_register_p): Consult fpregs_present.
3308 (m68k_register_to_value, m68k_value_to_register):
3309 Use register_type to obtain the type of floating
3311 (m68k_svr4_extract_return_value): Check tdep->float_return.
3312 Use register_type to get the type of floating
3314 (m68k_svr4_store_return_value): Likewise.
3315 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3316 (m68k_analyze_register_saves): Likewise.
3317 (m68k_gdbarch_init): Extract infromation
3318 from XML description, if present. Guess coldfire by
3319 looking at the file, if present. Conditionalize
3320 setting of long double format. Set decr_pc_after_break
3321 to 2 on coldfire and fido. Enable XML-driven
3322 register description.
3323 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3324 size of tdep->fpreg_type, as opposed to hardcoded value.
3325 * Makefile.in (m68k-tdep.o): Update dependencies.
3327 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3329 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3330 qXfer:spu:write remote packet types.
3332 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3334 * xml-tdesc.c (tdesc_start_target): New.
3335 (target_attributes): New.
3336 (tdesc_elements): Use it.
3337 * features/gdb-target.dtd: Add #FIXED version attribute for
3340 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3342 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3344 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3346 * fork-child.c (fork_inferior): Update comment.
3348 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3350 * features/Makefile: Generate regformats for mips-linux and
3352 * features/sort-regs.xsl: Correct typo.
3353 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3354 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3357 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3359 * config/mips/linux.mh (TDEP_XML): New.
3360 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3361 * mips-linux-nat.c (mips_linux_register_addr): Handle
3362 MIPS_RESTART_REGNUM.
3363 (mips64_linux_register_addr): Likewise.
3364 (super_xfer_partial, mips_linux_xfer_partial): New.
3365 (_initialize_mips_linux_nat): Add them to the target_ops.
3366 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3367 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3368 (mips_linux_o32_sigframe_init)
3369 (mips_linux_n32n64_sigframe_init): Likewise.
3370 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3371 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3372 "org.gnu.gdb.mips.linux" feature.
3373 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3374 (mips_linux_restart_reg_p): New prototype.
3375 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3376 initialization routine.
3377 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3379 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3381 * Makefile.in (mips-tdep.o): Update.
3382 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3383 (mips_n32_n64_aliases, mips_register_aliases): New.
3384 (mips_register_name): Call tdesc_register_name.
3385 (mips_tdesc_register_reggroup_p): New.
3386 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3387 (mips_gdbarch_init): Add target-described register support.
3388 Register aliases for register names.
3389 * target-descriptions.c (tdesc_register_name): Make global.
3390 (tdesc_register_in_reggroup_p): New function, broken out from
3391 tdesc_register_reggroup_p.
3392 (tdesc_register_reggroup_p): Use it.
3393 * target-descriptions.h (tdesc_register_name)
3394 (tdesc_register_in_reggroup_p): New prototypes.
3395 * NEWS: Correct formatting. Mention MIPS register support.
3396 * features/mips-cp0.xml, features/mips-fpu.xml,
3397 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3398 features/mips64-cpu.xml: New files.
3400 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3402 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3403 * valops.c (value_cast): Likewise.
3404 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3405 * ui-out.c (ui_out_field_core_addr): Likewise.
3406 * tracepoint.c (tracepoints_info): Likewise.
3407 * symtab.c (print_msymbol_info): Likewise.
3408 * solib-irix.c (irix_current_sos)
3409 (irix_open_symbol_file_object): Likewise.
3410 * remote.c (build_remote_gdbarch_data): Likewise.
3411 * prologue-value.c (make_pv_area): Likewise.
3412 * procfs.c (info_mappings_callback): Likewise.
3413 * printcmd.c (print_scalar_formatted)
3414 (deprecated_print_address_numeric): Likewise.
3415 * memattr.c (mem_info_command): Likewise.
3416 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3417 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3418 * exec.c (print_section_info): Likewise.
3419 * dwarf2read.c (read_subrange_type): Likewise.
3420 * dwarf2loc.c (find_location_expression): Likewise.
3421 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3422 (signed_address_type, execute_stack_op): Likewise.
3423 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3424 * gdbarch.c, gdbarch.h: Regenerate.
3426 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3428 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3429 * arch-utils.c (show_architecture): Likewise.
3430 * remote-mips.c (mips_open): Likewise
3431 * nto-tdep.c (nto_find_and_open_solib)
3432 (nto_init_solib_absolute_prefix): Likewise.
3433 * nto-procfs (procfs_open): Likewise.
3434 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3435 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3436 * gdbarch.c, gdbarch.h: Regenerate.
3438 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3440 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3441 * gdbtypes.c (build_flt): Likewise.
3442 * gdbarch.c, gdbarch.h: Regenerate.
3444 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3446 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3447 gdbarch_breakpoint_from_pc.
3448 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3449 * remote.c (remote_insert_breakpoint)
3450 (remote_insert_hw_breakpoint): Likewise.
3451 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3452 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3453 * breakpoint.h (bp_target_info): Likewise (comment).
3454 * breakpoint.c (read_memory_nobpt): Likewise.
3455 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3456 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3457 * gdbarch.c, gdbarch.h: Regenerate.
3459 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3461 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3462 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3463 * solib-pa64.c (read_dynamic_info): Likewise.
3464 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3465 * solib.c (info_sharedlibrary_command): Likewise.
3466 * s390-nat.c (SUBOFF): Likewise.
3467 * p-valprint.c (pascal_val_print): Likewise.
3468 * procfs.c (info_proc_mappings): Likewise.
3469 * printcmd.c (decode_format): Likewise.
3470 * nto-tdep.c (nto_truncate_ptr): Likewise.
3471 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3472 (mips64_linux_get_longjmp_target): Likewise.
3473 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3474 * jv-valprint.c (java_value_print): Likewise.
3475 * jv-lang.c (get_java_object_header_size): Likewise.
3476 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3477 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3478 (hppa_hpux_unwind_adjust_stub): Likewise.
3479 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3480 * gdbtypes.c (make_pointer_type, make_reference_type)
3481 (smash_to_memberptr_type): Likewise.
3482 * gdbarch.c, gdbarch.h: Regenerate.
3484 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3486 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3487 (print_gp_register_row): Stop before printing a register bigger
3488 than the ABI register size.
3489 (mips_print_registers_info): Update call to mips_print_register.
3491 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3493 * expression.h (enum exp_opcode): Document a register name for
3495 * parse.c (write_dollar_variable): Write the register name for
3497 (operator_length_standard): Expect the register name following
3499 * ada-lang.c (resolve_subexp): Likewise.
3500 * ax-gdb.c (gen_expr): Likewise.
3501 * eval.c (evaluate_subexp_standard): Likewise.
3502 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3504 * tracepoint.c (encode_actions): Likewise.
3506 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3508 * utils.c (set_screen_size): Use INT_MAX for default columns.
3510 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3512 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3513 qXfer:spu:write packet types.
3515 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3517 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3518 * gdbarch.c, gdbarch.h: Regenerate.
3520 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3522 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3523 gdbarch_stab_reg_to_regnum.
3524 * stabsread.c (define_symbol): Likewise.
3525 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3526 gdbarch_ecoff_reg_to_regnum.
3527 * mdebugread.c (parse_symbol): Likewise.
3528 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3529 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3530 gdbarch_dwarf_reg_to_regnum.
3531 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3532 * coffread.c (process_coff_symbol): Likewise.
3533 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3534 gdbarch_dwarf2_reg_to_regnum.
3535 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3536 (locexpr_describe_location): Likewise.
3537 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3538 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3539 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3540 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3541 * gdbarch.c, gdbarch.h: Regenerate.
3543 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3545 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3546 gdbarch_smash_text_address.
3547 * somread.c (som_symtab_read): Likewise.
3548 * elfread.c (record_minimal_symbol): Likewise.
3549 * dbxread.c (process_one_symbol): Likewise.
3550 * coffread.c (coff_symtab_read): Likewise.
3551 * gdbarch.c, gdbarch.h: Regenerate.
3553 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3555 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3556 * findvar.c (value_from_register): Likewise.
3557 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3558 * valops.c (value_assign): Likewise.
3559 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3560 gdbarch_convert_register_p.
3561 * findvar.c (value_from_register): Likewise.
3562 * valops.c (value_assign): Likewise.
3563 * gdbarch.c, gdbarch.h: Regenerate.
3565 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3567 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3568 gdbarch_register_sim_regno.
3569 * sim-regno.h (sim_regno): Likewise (comment).
3570 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3571 * gdbarch.c, gdbarch.h: Regenerate.
3573 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3575 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3576 gdbarch_virtual_frame_pointer.
3577 * tracepoint.c (encode_actions): Likewise.
3578 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3579 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3580 * gdbarch.c, gdbarch.h: Regenerate.
3582 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3584 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3585 * p-lang.c (pascal_create_fundamental_type): Likewise.
3586 * objc-lang.c (objc_create_fundamental_type): Likewise.
3587 * mdebugread.c (_initialize_mdebugread): Likewise.
3588 * m2-lang.c (m2_create_fundamental_type)
3589 (_initialize_m2_language): Likewise.
3590 * gdbtypes.c (build_gdbtypes): Likewise.
3591 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3592 * doublest.c (floatformat_from_length): Likewise.
3593 * c-lang.c (c_create_fundamental_type): Likewise.
3594 * ada-lang.c (ada_create_fundamental_type)
3595 (ada_language_arch_info): Likewise.
3596 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3597 * value.c (unpack_double): Likewise (comment).
3598 * gdbtypes.c (build_gdbtypes): Likewise.
3599 * doublest.c (floatformat_from_length): Likewise.
3600 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3601 * valarith.c (value_binop): Likewise.
3602 * p-lang.c (pascal_create_fundamental_type): Likewise.
3603 * objc-lang.c (objc_create_fundamental_type): Likewise.
3604 * mdebugread.c (_initialize_mdebugread): Likewise.
3605 * m2-lang.c (m2_create_fundamental_type): Likewise.
3606 * gdbtypes.c (build_gdbtypes): Likewise.
3607 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3608 * doublest.c (floatformat_from_length): Likewise.
3609 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3610 * c-lang.c (c_create_fundamental_type): Likewise.
3611 * ada-lex.l (processReal): Likewise.
3612 * ada-lang.c (ada_create_fundamental_type)
3613 (ada_language_arch_info): Likewise.
3614 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3615 * value.c (unpack_double): Likewise (comment).
3616 * gdbtypes.c (build_gdbtypes): Likewise.
3617 * doublest.c (floatformat_from_length): Likewise.
3618 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3619 gdbarch_long_double_bit.
3620 * p-lang.c (pascal_create_fundamental_type): Likewise.
3621 * objc-lang.c (objc_create_fundamental_type): Likewise.
3622 * m2-lang.c (m2_create_fundamental_type): Likewise.
3623 * gdbtypes.c (build_gdbtypes): Likewise.
3624 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3625 * doublest.c (floatformat_from_length): Likewise.
3626 * c-lang.c (c_create_fundamental_type): Likewise.
3627 * ada-lex.l (processReal): Likewise.
3628 * ada-lang.c (ada_create_fundamental_type)
3629 (ada_language_arch_info): Likewise.
3630 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3631 gdbarch_long_double_format.
3632 * gdbtypes.c (build_gdbtypes): Likewise.
3633 * doublest.c (floatformat_from_length): Likewise.
3634 * gdbarch.c, gdbarch.h: Regenerate.
3636 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3638 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3639 * ada-lang.c (ada_create_fundamental_type)
3640 (ada_language_arch_info): Likewise.
3641 * c-lang.c (c_create_fundamental_type): Likewise.
3642 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3643 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3644 * m2-lang.c (m2_create_fundamental_type): Likewise.
3645 * objc-lang.c (objc_create_fundamental_type): Likewise.
3646 * p-lang.c (pascal_create_fundamental_type): Likewise.
3647 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3648 * c-exp.y (parse_number): Likewise.
3649 * objc-exp.y (parse_number): Likewise.
3650 * ada-lex.l (processInt): Likewise.
3651 * f-exp.y (parse_number): Likewise.
3652 * p-exp.y (parse_number): Likewise.
3653 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3654 (gdbtypes_post_init, build_gdbtypes): Likewise.
3655 * p-lang.c (pascal_create_fundamental_type): Likewise.
3656 * parse.c (build_parse): Likewise.
3657 * xcoffread.c (_initialize_xcoffread): Likewise.
3658 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3659 (read_range_type): Likewise.
3660 * objc-lang.c (objc_create_fundamental_type): Likewise.
3661 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3662 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3663 (m2_create_fundamental_type): Likewise.
3664 * c-lang.c (c_create_fundamental_type): Likewise.
3665 * coffread.c (coff_read_enum_type): Likewise.
3666 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3667 * dwarf2read.c (new_symbol): Likewise.
3668 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3669 * c-exp.y (parse_number): Likewise.
3670 * objc-exp.y (parse_number): Likewise.
3671 * ada-lex.l (processInt): Likewise.
3672 * f-exp.y (parse_number): Likewise.
3673 * p-exp.y (parse_number): Likewise.
3674 * valarith.c (value_binop): Likewise.
3675 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3676 * ada-lang.c (ada_create_fundamental_type)
3677 (ada_language_arch_info): Likewise.
3678 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3679 * symfile.c (TARGET_LONG_BYTES): Likewise.
3680 * p-lang.c (pascal_create_fundamental_type): Likewise.
3681 * objc-lang.c (objc_create_fundamental_type): Likewise.
3682 * m2-lang.c (m2_create_fundamental_type): Likewise.
3683 * f-lang.c (f_create_fundamental_type): Likewise.
3684 * c-lang.c (c_create_fundamental_type): Likewise.
3685 * coffread.c (decode_base_type): Likewise.
3686 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3687 * c-exp.y (parse_number): Likewise.
3688 * objc-exp.y (parse_number): Likewise.
3689 * p-exp.y (parse_number): Likewise.
3690 * ada-lang.c (ada_create_fundamental_type)
3691 (ada_language_arch_info): Likewise.
3692 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3693 * stabsread.c (read_range_type): Likewise.
3694 * p-lang.c (pascal_create_fundamental_type): Likewise.
3695 * objc-lang.c (objc_create_fundamental_type): Likewise.
3696 * m2-lang.c (m2_create_fundamental_type): Likewise.
3697 * f-lang.c (f_create_fundamental_type): Likewise.
3698 * c-lang.c (c_create_fundamental_type): Likewise.
3699 * gdbarch.c, gdbarch.h: Regenerate.
3701 2007-06-12 Andreas Schwab <schwab@suse.de>
3703 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3704 (struct frame_unwind): Add dealloc_cache.
3705 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3707 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3708 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3709 (libunwind_frame_unwind): Set dealloc_cache.
3710 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3712 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3713 Markus Deuling <deuling@de.ibm.com>
3715 * remote.c (remote_write_qxfer): New function.
3716 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3717 (remote_read_qxfer): Do not cache empty objects.
3718 (_initialize_remote): Add PACKET_qXfer_spu_read and
3719 PACKET_qXfer_spu_write.
3721 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3723 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3724 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3726 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3727 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3728 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3729 * spu-tdep.c (infospucmdlist): New variable.
3730 (spu_register_name): Handle additional pseudo registers.
3731 (spu_register_type): Likewise.
3732 (spu_pseudo_register_read): Likewise.
3733 (spu_pseudo_register_write): Likewise.
3734 (spu_pseudo_register_read_spu): New function.
3735 (spu_pseudo_register_write_spu): Likewise.
3736 (info_spu_event_command): New function.
3737 (info_spu_signal_command): Likewise.
3738 (info_spu_mailbox_list): Likewise.
3739 (info_spu_mailbox_command): Likewise.
3740 (spu_mfc_get_bitfield): Likewise.
3741 (info_spu_dma_cmdlist): Likewise.
3742 (info_spu_dma_command): Likewise.
3743 (info_spu_proxydma_command): Likewise.
3744 (info_spu_command): Likewise.
3745 (_initialize_spu_tdep): Install "info spu" commands.
3747 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3749 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3750 accessing non-seekable spufs files.
3752 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3754 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3755 gdbarch_skip_trampoline_code.
3756 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3757 * objc-lang.c (objc_skip_trampoline)
3758 (objc_submethod_helper_data): Likewise.
3759 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3760 * infrun.c (handle_inferior_event): Likewise.
3761 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3762 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3763 gdbarch_in_solib_return_trampoline.
3764 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3765 * infrun.c (handle_inferior_event): Likewise.
3766 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3767 * gdbarch.c, gdbarch.h: Regenerate.
3769 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3771 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3772 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3773 * linespec.c (minsym_found): Likewise.
3774 * infrun.c (step_into_function): Likewise.
3775 * gdbarch.c, gdbarch.h: Regenerate.
3777 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3779 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3780 * valops.c (value_allocate_space_in_inferior): Likewise.
3781 * gdbarch.c, gdbarch.h: Regenerate.
3783 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3785 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3786 gdbarch_memory_insert_breakpoint.
3787 * mem-break.c (memory_insert_breakpoint): Likewise.
3788 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3789 gdbarch_memory_remove_breakpoint.
3790 * mem-break.c (memory_remove_breakpoint): Likewise.
3791 * gdbarch.c, gdbarch.h: Regenerate.
3793 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3795 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3796 gdbarch_fetch_tls_load_module_address.
3797 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3798 gdbarch_fetch_tls_load_module_address_p.
3799 * gdbarch.c, gdbarch.h: Regenerate.
3801 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3803 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3804 gdbarch_decr_pc_after_break.
3805 * tracepoint.c (trace_dump_command): Likewise.
3806 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3807 * linux-thread-db.c (check_event): Likewise.
3808 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3809 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3810 * frame.h: Likewise (comment).
3811 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3812 * aix-thread.c (aix_thread_wait): Likewise.
3813 * gdbarch.c, gdbarch.h: Regenerate.
3815 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3817 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3818 gdbarch_address_class_type_flags.
3819 * dwarf2read.c (read_tag_pointer_type): Likewise.
3820 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3821 gdbarch_address_class_type_flags_p.
3822 * dwarf2read.c (read_tag_pointer_type): Likewise.
3823 * gdbarch.c, gdbarch.h: Regenerate.
3825 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3827 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3828 * value.c (value_as_address): Likewise (comment).
3829 * remote-mips.c (common_breakpoint): Likewise.
3830 * regcache.c (read_pc_pid): Likewise.
3831 * printcmd.c (do_one_display): Likewise.
3832 * monitor.c (monitor_write_memory, monitor_read_memory)
3833 (monitor_insert_breakpoint): Likewise.
3834 * mips-tdep.c (heuristic_proc_start): Likewise.
3835 * infrun.c (insert_step_resume_breakpoint_at_frame)
3836 (insert_step_resume_breakpoint_at_caller): Likewise.
3837 * buildsym.c (record_line): Likewise.
3838 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3839 (arm_get_next_pc): Likewise.
3840 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3841 (store_regs): Likewise.
3842 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3843 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3844 * gdbarch.c, gdbarch.h: Regenerate.
3846 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3848 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3849 * tracepoint.c (scope_info): Likewise.
3850 * target.c (debug_print_register): Likewise.
3851 * stack.c (frame_info): Likewise.
3852 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3853 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3854 (sh64_media_print_registers_info)
3855 (sh64_compact_print_registers_info): Likewise.
3856 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3857 * remote-sim.c (gdbsim_fetch_register): Likewise.
3858 * remote.c (packet_reg): Likewise (comment).
3859 * reggroups.c (default_register_reggroup_p): Likewise.
3860 * regcache.c (regcache_dump): Likewise.
3861 * printcmd.c (address_info): Likewise.
3862 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3863 * mt-dep.c (mt_registers_info): Likewise.
3864 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3865 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3866 (mips_read_fp_register_double, mips_print_fp_register)
3867 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3868 (mips_register_sim_regno): Likewise.
3869 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3870 * inf-ptrace.c (inf_ptrace_fetch_register)
3871 (inf_ptrace_store_register): Likewise.
3872 * infcmd.c (default_print_registers_info): Likewise.
3873 * ia64-linux-nat.c (ia64_linux_fetch_register)
3874 (ia64_linux_store_register): Likewise.
3875 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3876 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3877 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3878 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3879 (hppa_hpux_store_register): Likewise.
3880 * findvar.c (locate_var_value): Likewise.
3881 * dwarf2loc.c (locexpr_describe_location): Likewise.
3882 * dwarf2-frame.c (execute_cfa_program): Likewise.
3883 * arm-tdep.c (arm_push_dummy_call): Likewise.
3884 * arch-utils.c (legacy_register_sim_regno): Likewise.
3885 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3886 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3887 * mi/mi-main.c (mi_cmd_data_list_register_names)
3888 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3889 (mi_cmd_data_write_register_values): Likewise.
3890 * gdbarch.c, gdbarch.h: Regenerate.
3892 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3894 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3896 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3898 * remote.c (process_g_packet): Don't check size.
3899 * gdbarch.sh: Remove register_bytes_ok.
3900 * gdbarch.c: Regenerated.
3901 * gdbarch.h: Regenerated.
3902 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3903 (m68k_register_bytes_ok): Remove.
3904 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3906 2007-06-06 Andreas Schwab <schwab@suse.de>
3908 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3909 (destroy_addr_space_name): Define.
3910 (libunwind_load): Get address of destroy_addr_space function.
3911 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3912 returning unsuccessfully.
3913 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3915 (libunwind_sigtramp_frame_sniffer): Likewise.
3916 (libunwind_get_reg_special): Likewise.
3918 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3920 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3921 gdbarch_fetch_pointer_argument.
3922 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3923 * gdbarch.c, gdbarch.h: Regenerate.
3925 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3927 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3928 gdbarch_have_nonsteppable_watchpoint.
3929 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3930 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3931 gdbarch_cannot_step_breakpoint.
3932 * infrun.c (resume): Likewise.
3933 * gdbarch.c, gdbarch.h: Regenerate.
3935 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3937 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3938 * stack.c (print_frame_args): Likewise.
3939 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3940 * stack.c (print_args_stub, frame_info): Likewise.
3941 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3942 * stack.c (print_args_stub, frame_info): Likewise.
3943 * gdbarch.c, gdbarch.h: Regenerate.
3945 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3947 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3948 gdbarch_coff_make_msymbol_special.
3949 * coffread.c (coff_symtab_read): Likewise.
3950 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3951 gdbarch_elf_make_msymbol_special.
3952 * elfread.c (elf_symtab_read): Likewise.
3953 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3954 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3955 * gdbarch.c, gdbarch.h: Regenerate.
3957 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3959 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3960 gdbarch_frame_red_zone_size.
3961 * gdbarch.c, gdbarch.h: Regenerate.
3963 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3965 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3966 * infcall.c (call_function_by_hand): Likewise.
3967 * gcore.c (derive_stack_segment): Likewise.
3968 * frame.c (frame_id_inner): Likewise.
3969 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3970 * ada-lang.c (ensure_lval): Likewise.
3971 * gdbarch.c, gdbarch.h: Regenerate.
3973 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3975 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3976 gdbarch_address_to_pointer.
3977 * findvar.c (store_typed_address): Likewise.
3978 * gdbtypes.c (make_pointer_type): Likewise (comment).
3979 * procfs.c (procfs_address_to_host_pointer): Likewise.
3980 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3981 (value_of_builtin_frame_fp_reg): Likewise.
3982 (value_of_builtin_frame_pc_reg): Likewise.
3983 * utils.c (paddress): Likewise (comment).
3984 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3985 gdbarch_pointer_to_address.
3986 * findvar.c (extract_typed_address): Likewise.
3987 * gdbtypes.c (make_pointer_type): Likewise (comment).
3988 * valops.c (value_cast): Likewise (comment).
3989 * gdbarch.c, gdbarch.h: Regenerate.
3991 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3993 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3994 * infrun.c (handle_inferior_event): Likewise.
3995 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3996 gdbarch_get_longjmp_target_p.
3997 * breakpoint.c (breakpoint_re_set): Likewise.
3998 * infrun.c (handle_inferior_event): Likewise.
3999 * gdbarch.c, gdbarch.h: Regenerate.
4001 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4003 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
4004 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
4005 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
4006 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
4007 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
4008 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
4009 find_stub_with_shl_get, cover_find_stub_with_shl_get,
4010 initialize_hp_cxx_exception_support, child_enable_exception_callback,
4011 current_ex_event, child_get_current_exception_event): Remove.
4012 (hppa_hpux_inferior_created): Remove.
4013 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
4015 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
4016 (deprecated_exception_support_initialized): Remove.
4017 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
4018 (deprecated_exception_support_initialized): Remove.
4019 (breakpoint_init_inferior): Remove handling of non-zero
4020 deprecated_exception_catchpoints_are_fragile.
4022 * symtab.h (deprecated_hp_som_som_object_present): Remove.
4023 * symtab.c (deprecated_hp_som_som_object_present): Remove.
4024 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
4025 deprecated_hp_som_som_object_present.
4026 * eval.c (evaluate_subexp_standard): Likewise.
4027 * valops.c (value_cast): Likewise.
4029 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
4030 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
4031 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
4033 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4035 * objfiles.h (ImportEntry, ExportEntry): Remove types.
4036 (struct objfile): Remove import_list, import_list_size,
4037 export_list, export_list_size members.
4038 (is_in_import_list): Remove prototype.
4039 * objfiles.c (is_in_import_list): Remove.
4040 * somread.c (init_import_symbols, init_export_symbols): Remove.
4041 (som_symfile_read): Do not call init_import_symbols. Do not
4042 set objfile->export_list and objfile->export_list_size.
4044 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4046 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
4047 Use the original objfile if necessary.
4049 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
4051 * defs.h (ldirname): New prototype.
4052 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4054 * utils.c (ldirname): New function.
4055 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4057 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4059 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4061 2007-06-01 Joel Brobecker <brobecker@adacore.com>
4063 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4065 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4067 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4069 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4071 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4072 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4073 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4074 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4075 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4076 ppc_linux_at_sigtramp_return_path): Remove.
4078 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4080 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4081 (xtensa_register_write_masked, xtensa_register_read_masked)
4082 (xtensa_extract_return_value, xtensa_store_return_value
4083 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4084 TARGET_BYTE_ORDER by gdbarch_byte_order.
4085 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4086 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4087 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4088 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4089 (sh64_push_dummy_call, sh64_extract_return_value)
4090 (sh64_store_return_value, sh64_register_convert_to_virtual)
4091 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4092 (sh64_pseudo_register_write, sh64_do_fp_register)
4093 (sh64_frame_prev_register): Likewise.
4094 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4095 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4096 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4097 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4098 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4099 * ppc-linux-nat.c (store_register): Likewise.
4100 * nto-tdep.c (nto_find_and_open_solib)
4101 (nto_init_solib_absolute_prefix): Likewise.
4102 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4103 (mips_convert_register_p, mips_eabi_push_dummy_call)
4104 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4105 (mips_o32_push_dummy_call, mips_o32_return_value)
4106 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4107 (mips_read_fp_register_single, mips_read_fp_register_double)
4108 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4109 (mips_breakpoint_from_pc): Likewise.
4110 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4111 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4112 (mips_linux_o32_sigframe_init): Likewise.
4113 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4114 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4115 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4116 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4117 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4118 * coffread.c (process_coff_symbol): Likewise.
4119 * arm-tdep.c (convert_from_extended, convert_to_extended)
4120 (gdb_print_insn_arm): Likewise.
4122 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4124 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4125 * i386-tdep.c (i386_dbx_reg_to_regnum)
4126 (i386_svr4_reg_to_regnum): Likewise.
4127 * inf-ptrace.c (inf_ptrace_fetch_registers)
4128 (inf_ptrace_store_registers): Likewise.
4129 * corelow.c (get_core_registers): Likewise.
4130 * i386-linux-nat.c (supply_gregset, fill_gregset)
4131 (i386_linux_fetch_inferior_registers)
4132 (i386_linux_store_inferior_registers): Likewise.
4133 * remote.c (init_remote_state,packet_reg_from_regnum)
4134 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4135 (remote_prepare_to_store,store_registers_using_G)
4136 (remote_store_registers,remote_arch_state): Likewise.
4137 * tracepoint.c (encode_actions): Likewise.
4138 * mi/mi-main.c (mi_cmd_data_list_register_names)
4139 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4140 (mi_cmd_data_write_register_values): Likewise.
4141 * tui/tui-regs.c (tui_show_register_group)
4142 (tui_show_register_group): Likewise.
4143 * xtensa-tdep.h (FP_ALIAS): Likewise.
4144 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4145 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4146 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4147 * win32-nat.c (do_win32_fetch_inferior_registers)
4148 (do_win32_store_inferior_registers,fetch_elf_core_registers
4149 * user-regs.h: Likewise (comment).
4150 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4151 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4152 * target-descriptions.h: Likewise (comment).
4153 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4154 * target.c (debug_print_register): Likewise.
4155 * stack.c (frame_info): Likewise.
4156 * stabsread.c (define_symbol): Likewise.
4157 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4158 (sh64_media_print_registers_info)
4159 (sh64_compact_print_registers_info): Likewise.
4160 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4161 * rs6000-nat.c (fetch_register,store_register): Likewise.
4162 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4163 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4164 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4165 * remote-m32r-sdi.c (m32r_fetch_registers)
4166 (m32r_store_registers): Likewise.
4167 * reggroups.c (default_register_reggroup_p): Likewise.
4168 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4169 (regcache_restore,regcache_dump): Likewise.
4170 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4171 * mips-tdep.c (mips_xfer_register,mips_register_name)
4172 (mips_register_reggroup_p,mips_pseudo_register_read)
4173 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4174 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4175 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4176 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4177 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4178 (print_gp_register_row,mips_print_registers_info)
4179 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4180 (mips_register_sim_regno): Likewise.
4181 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4182 (mips_linux_n32n64_sigframe_init): Likewise.
4183 * mips-linux-nat.c (mips_linux_register_addr)
4184 (mips64_linux_register_addr): Likewise.
4185 * findvar.c (value_of_register): Likewise.
4186 * infcmd.c (default_print_registers_info,registers_info)
4187 (print_vector_info,print_float_info): Likewise.
4188 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4189 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4190 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4191 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4192 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4193 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4194 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4195 (ia64_linux_store_registers): Likewise.
4196 * hpux-thread.c (hpux_thread_fetch_registers)
4197 (hpux_thread_store_registers): Likewise.
4198 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4199 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4200 (h8300_register_type): Likewise.
4201 * dwarf2-frame.c (dwarf2_frame_cache)
4202 (dwarf2_frame_state_alloc_regs): Likewise.
4203 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4204 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4205 (crisv32_cannot_store_register,cris_register_name): Likewise.
4206 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4207 * arch-utils.c (legacy_register_sim_regno)
4208 (legacy_virtual_frame_pointer): Likewise.
4209 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4210 * arm-tdep.h: Likewise (comment).
4211 * frv-tdep.c (frv_register_sim_regno): Likewise.
4212 * m68klinux-nat.c (old_fetch_inferior_registers)
4213 (old_store_inferior_registers): Likewise.
4214 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4215 * irix5-nat.c (fetch_core_registers): Likewise.
4216 * hppa-tdep.c (hppa_frame_cache): Likewise.
4217 * hppa-linux-nat.c (hppa_linux_register_addr)
4218 (hppa_linux_fetch_inferior_registers)
4219 (hppa_linux_store_inferior_registers): Likewise.
4220 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4221 (hppa_hpux_store_inferior_registers): Likewise.
4222 * amd64-nat.c (amd64_native_gregset_reg_offset)
4223 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4224 * dbug-rom.c (dbug_regname): Likewise.
4225 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4226 (HARD_PAGE_REGNUM (comment)): Likewise.
4227 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4228 * i386-tdep.c (i386_dbx_reg_to_regnum)
4229 (i386_svr4_reg_to_regnum): Likewise.
4230 * mi/mi-main.c (mi_cmd_data_list_register_names)
4231 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4232 (mi_cmd_data_write_register_values): Likewise.
4233 * gdbarch.c, gdbarch.h: Regenerate.
4234 * tui/tui-regs.c (tui_show_register_group): Likewise.
4235 * xtensa-tdep.h (FP_ALIAS): Likewise.
4236 * user-regs.h: Likewise (comment).
4237 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4238 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4239 * target-descriptions.h: Likewise (comment).
4240 * target.c (debug_print_register): Likewise.
4241 * stack.c (frame_info): Likewise.
4242 * stabsread.c (define_symbol): Likewise.
4243 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4244 (sh64_compact_print_registers_info): Likewise.
4245 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4246 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4247 (regcache_restore,regcache_dump): Likewise.
4248 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4249 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4250 (mips_stab_reg_to_regnum): Likewise.
4251 * findvar.c (value_of_register): Likewise.
4252 * infcmd.c (default_print_registers_info,registers_info)
4253 (print_vector_info,print_float_info): Likewise.
4254 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4255 * h8300-tdep.c (h8300_register_type): Likewise.
4256 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4257 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4258 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4259 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4260 * parse.c: Remove comment.
4261 * gdbarch.c, gdbarch.h: Regenerate
4263 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4265 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4266 gdbarch_cannot_fetch_register.
4267 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4268 * hppa-linux-nat.c (fetch_register): Likewise.
4269 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4270 * m68klinux-nat.c (fetch_register): Likewise.
4271 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4273 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4274 gdbarch_cannot_store_register.
4275 * hppa-linux-nat.c (store_register): Likewise.
4276 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4277 * regcache.c (regcache_raw_write): Likewise.
4278 * m68klinux-nat.c (store_register): Likewise.
4279 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4280 * gdbarch.c, gdbarch.h: Regenerate.
4282 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4284 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4285 * gdbarch.c, gdbarch.h: Regenerate.
4287 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4289 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4290 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4291 * gdbarch.c, gdbarch.h: Regenerate.
4293 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4295 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4296 * ax-gdb.c (gen_bitfield_ref): Likewise.
4297 * mi/mi-main.c (get_register): Likewise.
4298 * findvar.c (default_value_from_register, extract_signed_integer)
4299 (extract_unsigned_integer, extract_long_unsigned_integer)
4300 (store_signed_integer, store_unsigned_integer): Likewise.
4301 * regcache.c (regcache_dump): Likewise.
4302 * value.c (lookup_internalvar, value_of_internalvar)
4303 (set_internalvar): Likewise.
4305 * valprint.c (print_binary_chars, print_octal_chars)
4306 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4307 * infcmd.c (default_print_registers_info): Likewise.
4308 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4309 * stabsread.c (define_symbol): Likewise.
4310 * doublest.c (floatformat_from_length, floatformat_from_type)
4311 (extract_typed_floating, store_typed_floating): Likewise.
4312 * gdbarch.c, gdbarch.h: Regenerate.
4314 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4316 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4317 gdbarch_call_dummy_location.
4318 * infcall.c (call_function_by_hand): Likewise.
4319 * inferior.h: Change comment.
4320 * arch-utils.c: Change comment.
4321 * gdbarch.c, gdbarch.h: Regenerate.
4323 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4325 * solib-aix5.c: Delete.
4326 * Makefile.in (solib-aix5.o): Delete rule.
4328 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4330 * breakpoint.h (enum bpstat_what_main_action): Remove
4331 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4332 * infrun.c (process_event_stop_test): Do not check for it.
4334 2007-05-22 Chris Dearman <chris@mips.com>
4335 Maciej W. Rozycki <macro@mips.com>
4337 * ser-unix.c (show_serial_hwflow): New function.
4338 (hardwire_raw): Add hardware flow control support.
4339 (_initialize_ser_hardwire): Add "set/show remoteflow".
4340 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4341 * NEWS: Document the new command.
4343 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4345 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4346 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4347 define for i[[3456]]86-*-linux* native configurations.
4348 * config.in, configure: Regenerate.
4350 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4352 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4353 a core file. Add comment in the function description.
4355 2007-05-18 Caroline Tice <ctice@apple.com>
4357 * c-valprint.c (c_value_print): If the initialized field of the
4358 value struct is 0, print out "[uninitialized]" before the value.
4359 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4360 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4361 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4362 ctx->initialized appropriately. Verify no location op follows
4364 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4365 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4366 set_value_initialized.
4367 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4368 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4369 * value.c (struct value): New field, initialized.
4370 (allocate_value): Initialize new field.
4371 (set_value_initialized): New function.
4372 (value_initialized): New function.
4373 * value.h (value_initialized): New extern declaration.
4374 (set_value_initialized): Likewise.
4376 2007-05-18 Caroline Tice <ctice@apple.com>
4378 * MAINTAINERS (Write After Approval): Add self.
4380 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4382 * gdbtypes.c (make_reference_type): Preserve the type chain
4383 and set the length of all the variants of the pointer type.
4385 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4387 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4388 and set the length of all the variants of the pointer type.
4390 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4392 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4394 (mips_o64_push_dummy_call): Reformat a comment.
4396 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4398 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4399 (score_prologue_frame_base_address): Return fp to keep gdb print
4400 local variables correctly when debugging information is stabs.
4402 (score_analyze_prologue): For software watchpoint, fetch all the
4403 instructions from range [startaddr, pc] once and identify them locally
4404 to reduce memory access.
4405 (score_malloc_and_get_memblock, score_free_memblock)
4406 (score_adjust_memblock_ptr): New functions.
4407 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4409 (score_target_can_use_watch, score_stopped_by_watch)
4410 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4411 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4412 New functions for remote & local hw-watchpoint and hw-breakpoint.
4414 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4416 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4417 declarations as well.
4419 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4421 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4422 * config/arm/tm-embed.h: Delete file.
4424 * arm-tdep.h (arm_software_single_step): Declare.
4425 * arm-tdep.c (arm_software_single_step): Make global.
4426 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4428 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4429 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4430 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4431 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4433 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4434 allow defines to be overriden by TM file.
4435 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4436 change default to {0xbe,0xbe}.
4437 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4438 arm_obsd_thumb_be_breakpoint): New global variables.
4439 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4440 tdep->thumb_breakpoint_size.
4441 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4442 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4443 tdep->thumb_breakpoint_size.
4445 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4447 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4449 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4452 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4453 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4454 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4455 (mips_abi_regsize): Simplify.
4456 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4457 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4458 (mips_o32_return_value, mips_o64_push_dummy_call)
4459 (mips_o64_return_value): Propogate constant register sizes. Use the
4460 ABI register size instead of mips_stack_argsize.
4461 (mips_dump_tdep): Don't print mips_stack_argsize.
4462 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4465 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4467 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4468 * config/mips/tm-linux.h: Delete.
4469 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4470 (mips_linux_in_dynsym_resolve_code): Make static. Use
4471 svr4_in_dynsym_resolve_code.
4472 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4474 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4476 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4477 * Makefile.in (mips-linux-tdep.o): Update.
4478 * solib.c (set_solib_ops): New.
4479 (current_target_so_ops): Update comment.
4480 * solib.h (set_solib_ops): New prototype.
4482 2007-05-16 Chris Dearman <chris@mips.com>
4484 * printcmd.c (do_examine): Fix typos in a comment.
4486 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4488 * configure.ac: Allow sysroots to be relocated under $prefix as
4489 well as $exec_prefix.
4490 * configure: Regenerate.
4492 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4494 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4495 (offsetof): Do not define.
4496 (find_stub_with_shl_get): Use numerical value 3 instead of
4497 symbolic value TYPE_PROCEDURE.
4499 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4501 * gdb_proc_service.h (paddr_t): Delete typedef.
4502 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4503 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4504 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4505 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4506 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4507 * Makefile.in (proc-service.o): Update.
4509 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4511 * Makefile.in (mips-tdep.o): Update.
4512 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4515 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4517 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4518 instead of store_typed_address.
4519 * value.c (pack_long): New.
4520 (value_from_longest): Use it.
4521 * value.h (pack_long): New prototype.
4523 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4525 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4526 DW_EH_PE_signed if appropriate.
4528 2007-05-14 Paul Brook <paul@codesourcery.com>
4529 Daniel Jacobowitz <dan@codesourcery.com>
4531 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4533 (dwarf_decode_lines): Check for line info without a file.
4535 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4537 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4540 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4542 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4544 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4546 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4548 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4550 * gdbarch.sh (read_sp): Remove.
4551 * gdbarch.c, gdbarch.h: Regenerate.
4552 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4554 * avr-tdep.c (avr_read_sp): Remove.
4555 (avr_unwind_sp): New function.
4556 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4557 * mips-tdep.c (mips_read_sp): Remove.
4558 (mips_unwind_sp): New function.
4559 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4560 * score-tdep.c (score_read_unsigned_register): Remove.
4561 (score_read_sp): Remove.
4562 (score_unwind_sp): New function.
4563 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4565 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4567 * buildsym.c (start_subfile): Handle absolute pathnames
4568 while comparing subfile names.
4570 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4572 * hppa-hpux-tdep.c: Include "regcache.h".
4573 * hppa-linux-tdep.c: Likewise.
4574 * hppa-tdep.c: Include "gdb_stdint.h".
4575 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4577 * Makefile.in: Update dependencies.
4579 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4581 * blockframe.c: Remove obsolete comments.
4582 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4583 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4584 * hppa-tdep.h (enum hppa_regnum): Likewise.
4585 * mips-tdep.h: Likewise.
4586 * m68hc11-tdep.c: Likewise.
4588 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4590 * inferior.h (read_sp): Remove prototype.
4591 * regcache.c (read_sp): Remove.
4592 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4593 * infcall.c (call_function_by_hand): Likewise.
4594 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4596 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4598 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4600 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4601 instead of read_register and read_register_pid.
4603 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4604 argument instead of PTID. Use regcache functions instead of
4606 (ia64_linux_insert_watchpoint): Update call.
4607 (ia64_linux_stopped_data_address): Use regcache functions
4608 instead of read_register_pid and write_register_pid.
4610 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4612 * libunwind-frame.h (struct regcache): Add forward declaration.
4613 (libunwind_get_reg_special): Add REGCACHE argument.
4614 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4615 argument. Pass it to unw_init_remote_p.
4617 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4618 libunwind_get_reg_special.
4619 (ia64_access_reg): Remove "write" case.
4620 (ia64_access_fpreg): Likewise. Read from next_frame passed
4621 as callback argument instead of from current_regcache.
4622 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4623 passed as callback argument instead of from current_regcache.
4624 (ia64_access_rse_fpreg): New function.
4625 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4627 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4629 * NEWS: Mention SPU overlay support.
4631 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4633 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4635 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4637 * breakpoint.c (remove_breakpoint): Do not remove software
4638 breakpoints in unmapped overlay sections.
4640 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4642 * spu-tdep.c: Include "observer.h".
4643 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4644 (spu_overlay_data): New variable.
4645 (struct spu_overlay_table): New type.
4646 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4647 spu_overlay_new_objfile): New functions.
4648 (spu_gdbarch_init): Install spu_overlay_update.
4649 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4650 allocate spu_overlay_data objfile data.
4652 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4654 * gdbarch.sh (overlay_update): New gdbarch function.
4655 (struct obj_section): Add forward declaration.
4656 * gdbarch.c, gdbarch.h: Regenerate.
4658 * symfile.c (simple_overlay_update): Make global.
4659 (target_overlay_update): Remove variable.
4660 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4661 target_overlay_update.
4662 (overlay_load_command): Likewise.
4663 * symfile.h (struct obj_section): Add forward declaration.
4664 (simple_overlay_update): Add prototype.
4666 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4668 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4670 * observer.sh: Add "struct objfile" forward declaration.
4671 * target.h (deprecated_target_new_objfile_hook): Remove.
4672 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4673 (clear_symtab_users): Call observer_notify_new_objfile.
4674 (symbol_file_add_with_addrs_or_offsets): Likewise.
4675 * rs6000-nat.c: Include "observer.h".
4676 (vmap_ldinfo): Call observer_notify_new_objfile.
4677 (xcoff_relocate_core): Likewise.
4678 * remote.c (remote_new_objfile_chain): Remove.
4679 (remote_new_objfile): Do not call remote_new_objfile_chain.
4680 (_initialize_remote): Use observer_attach_new_objfile.
4681 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4682 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4683 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4684 * aix-thread.c: Include "observer.h".
4685 (target_new_objfile_chain): Remove.
4686 (new_objfile): Do not call target_new_objfile_chain.
4687 (_initialize_aix_thread): Use observer_attach_new_objfile.
4688 * hpux-thread.c: Include "observer.h"
4689 (target_new_objfile_chain): Remove.
4690 (hpux_thread_new_objfile): Make static. Do not call
4691 target_new_objfile_chain.
4692 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4693 * linux-thread-db.c: Include "observer.h".
4694 (target_new_objfile_chain): Remove.
4695 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4696 (_initialize_thread_db): Use observer_attach_new_objfile.
4697 * sol-thread.c: Include "observer.h".
4698 (target_new_objfile_chain): Remove.
4699 (sol_thread_new_objfile): Make static. Do not call
4700 target_new_objfile_chain.
4701 (_initialize_sol_thread): Use observer_attach_new_objfile.
4702 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4703 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4706 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4708 * gdbarch.sh (remote_translate_xfer_address): Remove.
4709 * gdbarch.h, gdbarch.c: Regenerate.
4710 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4711 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4712 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4713 call gdbarch_remote_translate_xfer_address.
4714 * frv-tdep.c (frv_gdbarch_init): Do not call
4715 set_gdbarch_remote_translate_xfer_address.
4716 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4717 (ia64_gdbarch_init): Do not install it.
4719 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4721 * NEWS: Mention change in handling the -tui option.
4723 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4725 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4728 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4730 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4731 (breakpoint_inserted_here_p): Call it.
4732 (software_breakpoint_inserted_here_p): Likewise.
4734 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4736 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4737 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4738 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4739 (inf_ptrace_store_register): Likewise.
4740 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4741 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4743 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4745 * linux-nat.c (linux_trad_target): Adapt parameter list.
4746 * linux-nat.h (linux_trad_target): Likewise.
4748 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4750 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4751 (mips_linux_cannot_store_register): Likewise.
4752 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4753 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4754 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4755 (mips64_linux_register_addr): Likewise.
4756 (mips_linux_register_u_offset): Adapt parameter list. Pass
4757 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4759 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4760 * config/mips/nm-linux.h: Delete file.
4762 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4764 * remote.c (remote_detach): Error out if remote can't detach.
4766 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4768 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4769 instruction's opcode in the "opcode" variable and declares new
4770 variable "closing_insn".
4772 2007-05-10 Chris Dearman <chris@mips.com>
4773 Maciej W. Rozycki <macro@mips.com>
4775 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4776 whitespace when setting a var_filename.
4778 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4780 * main.c (captured_main): Recognize -tui option and print an error
4781 message when the TUI is not configured.
4783 2007-05-09 Andreas Schwab <schwab@suse.de>
4785 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4786 set removed members.
4787 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4789 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4791 * gdbarch.sh (deprecated_store_struct_return): Remove.
4792 * gdbarch.c, gdbarch.h: Regenerate.
4793 * frv-tdep.c (frv_store_struct_return): Remove.
4794 (frv_gdbarch_init): Do not install it.
4796 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4798 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4799 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4800 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4802 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4804 * spu-linux-nat.c: Include "gdb_stdint.h".
4805 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4806 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4807 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4808 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4809 (spu_child_wait): Mark up string for translation.
4811 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4812 Luis Machado <luisgpm@br.ibm.com>
4814 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4815 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4816 BC_INSTRUCTION): Define.
4817 (deal_with_atomic_sequence): New function.
4818 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4819 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4820 gdbarch_software_single_step routine.
4822 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4824 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4825 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4826 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4827 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4828 spu_child_post_attach, spu_fetch_inferior_registers,
4829 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4830 memory addresses as ULONGEST, not CORE_ADDR.
4832 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4834 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4835 * gdbarch.h, gdbarch.c: Regenerate.
4837 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4838 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4839 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4841 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4842 Add REGCACHE argument. Use it instead of read/write_register.
4843 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4845 * config/pa/tm-hppah.h: Delete file.
4846 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4847 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4849 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4851 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4852 * NEWS: Mention improved C++ thunk support.
4853 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4854 * cp-abi.c (cplus_skip_trampoline): New.
4855 * cp-abi.h (cplus_skip_trampoline): New prototype.
4856 (struct cp_abi_ops): Add skip_trampoline member.
4857 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4858 (init_gnuv3_ops): Set skip_trampoline.
4860 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4862 * rs6000-tdep.c (struct frame_extra_info): Delete.
4864 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4866 * linux-thread-db.c: Update some FIXME comments.
4867 (thread_db_xfer_partial): Delete.
4868 (init_thread_db_ops): Do not set to_xfer_partial.
4870 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4872 * inftarg.c, infptrace.c: Remove files.
4873 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4874 (inftarg.o, infptrace.o): Remove rules.
4875 * gdbcore.h (register_addr): Remove prototype.
4876 * inferior.h (kill_inferior, store_inferior_registers,
4877 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4878 call_ptrace, pre_fork_inferior): Remove prototypes.
4879 * target.h (child_xfer_memory, child_pid_to_exec_file,
4880 child_core_file_to_sym_file, child_post_attach,
4881 child_post_startup_inferior, child_acknowledge_created_inferior,
4882 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4883 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4884 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4885 child_follow_fork, child_reported_exec_events_per_exec_call,
4886 child_has_exited, child_thread_alive): Remove prototypes.
4888 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4890 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4891 (sparc_store_inferior_registers): Likewise.
4892 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4893 (sparc_fetch_inferior_registers): ... this.
4894 (store_inferior_registers): Rename to ...
4895 (sparc_store_inferior_registers): ... this.
4896 (sparc_target): Update callback names.
4897 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4898 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4900 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4902 * linux-nat.c (child_post_attach): Rename to ...
4903 (linux_child_post_attach): ... this. Make static.
4904 (child_follow_fork): Rename to ...
4905 (linux_child_follow_fork): ... this. Make static.
4906 (child_insert_fork_catchpoint): Rename to ...
4907 (linux_child_insert_fork_catchpoint): ... this. Make static.
4908 (child_insert_vfork_catchpoint): Rename to ...
4909 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4910 (child_insert_exec_catchpoint): Rename to ...
4911 (linux_child_insert_exec_catchpoint): ... this. Make static.
4912 (child_pid_to_exec_file): Rename to ...
4913 (linux_child_pid_to_exec_file): ... this. Make static.
4915 (linux_handle_extended_wait): Update call.
4916 (linux_xfer_partial): Update callback routine names.
4918 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4920 * configure.host (alpha*-*-osf[12]*): Remove support.
4921 * NEWS: Mention removed configurations.
4923 * config/alpha/alpha-osf1.mh: Delete file.
4924 * config/alpha/alpha-osf2.mh: Delete file.
4925 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4927 * config/alpha/nm-osf.h: Delete file.
4928 * config/alpha/nm-osf2.h: Delete file.
4929 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4930 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4931 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4933 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4934 (register_addr, kernel_u_size): Remove.
4935 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4937 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4939 * regcache.c (regcache_invalidate): New function.
4940 (register_cached): Remove.
4941 (set_register_cached): Remove.
4942 (deprecated_registers_fetched): Remove.
4943 (registers_changed): Use regcache_invalidate instead
4944 of set_register_cached.
4945 (regcache_raw_read): Update comment.
4947 * regcache.h (regcache_invalidate): Add prototype.
4948 (register_cached): Remove.
4949 (set_register_cached): Remove.
4950 (deprecated_registers_fetched): Remove.
4952 * findvar.c (value_of_register): Do not call register_cached.
4953 * frame.c (frame_register): Likewise.
4954 * tui/tui-regs.c (tui_get_register): Likewise.
4956 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4957 (process_g_packet): Likewise.
4958 (remote_fetch_registers): Likewise.
4959 * remote-sim.c (gdbsim_fetch_register): Likewise.
4960 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4961 by regcache_invalidate.
4962 (mt_pseudo_register_write): Likewise.
4963 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4965 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4966 call by loop over regcache_raw_supply (..., NULL).
4968 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4970 * target.h (struct target_ops): Add REGCACHE parameter to
4971 to_prepare_to_store.
4972 (target_prepare_to_store): Likewise.
4973 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4974 (update_current_target): Adapt prepare_to_store de_fault rule.
4976 * regcache.c (regcache_raw_write): Pass regcache to
4977 target_prepare_to_store.
4979 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4980 Do not call CHILD_PREPARE_TO_STORE.
4981 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4982 * procfs.c (procfs_prepare_to_store): Likewise.
4984 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4985 * go32-nat.c (go32_prepare_to_store): Likewise.
4986 * monitor.c (monitor_prepare_to_store): Likewise.
4987 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4988 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4989 * remote-mips.c (mips_prepare_to_store): Likewise.
4990 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4991 * win32-nat.c (win32_prepare_to_store): Likewise.
4993 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4994 Use it instead of current_regcache.
4996 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4997 parameter. Pass it on to next target.
4998 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
5000 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5002 * target.h (struct regcache): Add forward declaration.
5003 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
5004 and to_store_registers target operations.
5005 (target_fetch_registers, target_store_registers): Update.
5007 * regcache.c (regcache_raw_read): Replace register_cached by
5008 regcache_valid_p. Pass regcache to target_fetch_registers.
5009 (regcache_raw_write): Pass regcache to target_store_registers.
5011 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
5012 store_regs, store_wmmx_regs): Replace register_cached by
5015 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
5016 to target_fetch_registers calls.
5017 * corelow.c (core_open): Likewise.
5018 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
5019 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5020 ps_lsetfpregs): Likewise.
5021 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5022 ps_lsetfpregs): Likewise.
5023 * win32-nat.c (win32_resume): Likewise.
5024 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
5025 to target_store_registers call.
5026 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5028 * inferior.h (store_inferior_registers): Update prototype.
5029 (fetch_inferior_registers): Likewise.
5030 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
5031 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
5032 Update function pointer signatures.
5034 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
5035 use it instead of current_regcache, update calls.
5036 (aix_thread_store_registers): Likewise.
5037 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
5038 (alphabsd_store_inferior_registers): Likewise.
5039 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
5040 (amd64bsd_store_inferior_registers): Likewise.
5041 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
5042 (amd64_linux_store_inferior_registers): Likewise.
5043 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
5044 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
5045 fetch_wmmx_regs, store_wmmx_regs): Likewise.
5046 (arm_linux_fetch_inferior_registers): Likewise.
5047 (arm_linux_store_inferior_registers): Likewise.
5048 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
5049 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
5050 (store_register, store_regs, store_fp_register, store_fp_regs,
5051 armnbsd_store_registers): Likewise.
5052 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5053 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5054 (bsd_uthread_store_registers): Likewise.
5055 * corelow.c (get_core_registers): Likewise.
5056 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5057 go32_store_registers): Likewise.
5058 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5059 (hppabsd_store_registers): Likewise.
5060 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5061 (hppa_hpux_fetch_inferior_registers): Likewise.
5062 (hppa_hpux_store_register): Likewise.
5063 (hppa_hpux_store_inferior_registers): Likewise.
5064 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5065 (hppa_linux_fetch_inferior_registers): Likewise.
5066 (hppa_linux_store_inferior_registers): Likewise.
5067 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5068 (hpux_thread_store_registers): Likewise.
5069 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5070 (i386bsd_store_inferior_registers): Likewise.
5071 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5072 gnu_store_registers): Likewise.
5073 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5074 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5076 (i386_linux_fetch_inferior_registers): Likewise.
5077 (i386_linux_store_inferior_registers): Likewise.
5078 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5079 (ia64_linux_fetch_registers): Likewise.
5080 (ia64_linux_store_register): Likewise.
5081 (ia64_linux_store_registers): Likewise.
5082 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5083 (inf_child_store_inferior_registers): Likewise.
5084 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5085 (inf_ptrace_fetch_registers): Likewise.
5086 (inf_ptrace_store_register): Likewise.
5087 (inf_ptrace_store_registers): Likewise.
5088 * infptrace.c (fetch_register, store_register): Likewise.
5089 (fetch_inferior_registers, store_inferior_registers): Likewise.
5090 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5091 (m32r_linux_fetch_inferior_registers): Likewise.
5092 (m32r_linux_store_inferior_registers): Likewise.
5093 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5094 (m68kbsd_store_inferior_registers): Likewise.
5095 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5096 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5097 fetch_fpregs, store_fpregs): Likewise.
5098 (m68k_linux_fetch_inferior_registers): Likewise.
5099 (m68k_linux_store_inferior_registers): Likewise.
5100 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5101 (m88kbsd_store_inferior_registers): Likewise.
5102 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5103 (mips64obsd_store_inferior_registers): Likewise.
5104 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5105 (mips64_linux_regsets_store_registers): Likewise.
5106 (mips64_linux_fetch_registers): Likewise.
5107 (mips64_linux_store_registers): Likewise.
5108 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5109 (mipsnbsd_store_inferior_registers): Likewise.
5110 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5111 (monitor_fetch_registers, monitor_store_registers): Likewise.
5112 * nto-procfs.c (procfs_fetch_registers): Likewise.
5113 (procfs_store_registers): Likewise.
5114 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5115 fetch_register, supply_vrregset, fetch_altivec_registers,
5116 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5117 (store_altivec_register, store_spe_register, store_register,
5118 fill_vrregset, store_altivec_registers, store_ppc_registers,
5119 ppc_linux_store_inferior_registers): Likewise.
5120 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5121 (ppcnbsd_store_inferior_registers): Likewise.
5122 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5123 (ppcobsd_store_registers): Likewise.
5124 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5125 * remote.c (fetch_register_using_p, process_g_packet,
5126 fetch_registers_using_g, remote_fetch_registers): Likewise.
5127 (store_register_using_P, store_registers_using_G,
5128 remote_store_registers): Likewise.
5129 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5130 m32r_store_register, m32r_store_register): Likewise.
5131 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5132 * remote-sim.c (gdbsim_fetch_register): Likewise.
5133 (gdbsim_store_register): Likewise.
5134 * rs6000-nat.c (fetch_register, store_register): Likewise.
5135 (rs6000_fetch_inferior_registers): Likewise.
5136 (rs6000_store_inferior_registers): Likewise.
5137 * s390-nat.c (fetch_regs, store_regs): Likewise.
5138 (fetch_fpregs, store_fpregs): Likewise.
5139 (s390_linux_fetch_inferior_registers): Likewise.
5140 (s390_linux_store_inferior_registers): Likewise.
5141 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5142 (shnbsd_store_inferior_registers): Likewise.
5143 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5144 (sol_thread_store_registers): Likewise.
5145 * sparc-nat.c (fetch_inferior_registers): Likewise.
5146 (store_inferior_registers): Likewise.
5147 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5148 (spu_store_inferior_registers): Likewise.
5149 * target.c (debug_print_register): Likewise.
5150 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5151 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5152 (vaxbsd_store_inferior_registers): Likewise.
5153 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5154 (win32_fetch_inferior_registers): Likewise.
5155 (win32_store_inferior_registers): Likewise.
5157 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5159 * gdbcore.h (struct regcache): Add forward declaration.
5160 (struct core_fns): Add REGCACHE argument to core_read_registers
5162 * corelow.c (get_core_register_section): Add REGCACHE argument,
5163 use it instead of current_regcache, pass it to core_read_registers
5165 (get_core_registers): Add current_regcache as parameter to
5166 get_core_register_section calls.
5168 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5169 use it instead of current_regcache.
5170 * armnbsd-nat.c (fetch_core_registers): Likewise.
5171 (fetch_elfcore_registers): Likewise.
5172 * core-regset.c (fetch_core_registers): Likewise.
5173 * cris-tdep.c (fetch_core_registers): Likewise.
5174 * irix5-nat.c (fetch_core_registers): Likewise.
5175 * m68klinux-nat.c (fetch_core_registers): Likewise.
5176 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5177 * win32-nat.c (fetch_elf_core_registers): Likewise.
5179 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5181 * gregset.h (struct regcache): Add forward declaration.
5182 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5183 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5184 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5185 (fill_gregset): Add REGCACHE parameter.
5186 (fill_fpregset): Likewise.
5187 (fill_fpxregset): Likewise.
5189 Update all definitions accordingly:
5190 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5191 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5192 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5193 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5194 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5195 (supply_gregset): Add REGCACHE parameter, use it instead of
5196 current_regcache. Make GREGSETP parameter const, adapt casts.
5197 (supply_fpregset): Add REGCACHE parameter, use it instead of
5198 current_regcache. Make FPREGSETP parameter const, adapt casts.
5199 (fill_gregset): Add REGCACHE parameter, use it instead of
5201 (fill_fpregset): Likewise.
5203 Update all callers to pass in current_regcache as the new argument:
5204 * core-regset.c: Include "regcache.h".
5205 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5206 * procfs.c: Include "regcache.h".
5207 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5208 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5209 (procfs_do_thread_registers): Likewise.
5210 (procfs_make_note_section): Likewise.
5211 * proc-service.c: Include "regcache.h".
5212 (ps_lgetregs): Update fill_gregset call.
5213 (ps_lsetregs): Update supply_gregset call.
5214 (ps_lgetfpregs): Update fill_fpregset call.
5215 (ps_lsetfpregs): Update supply_fpregset call.
5216 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5217 supply_fpregset calls.
5218 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5219 (ps_lgetregs): Update fill_gregset call.
5220 (ps_lsetregs): Update supply_gregset call.
5221 (ps_lgetfpregs): Update fill_fpregset call.
5222 (ps_lsetfpregs): Update supply_fpregset call.
5224 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5225 fill_fpregset, and fill_fpxregset calls.
5226 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5227 (store_regs): Update fill_gregset call.
5228 (fetch_fpregs): Update supply_fpregset call.
5229 (store_fpregs): Update fill_fpregset call.
5230 (fetch_fpxregs): Update supply_fpxregset call.
5231 (store_fpxregs): Update fill_fpxregset call.
5232 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5233 (store_regs): Update fill_gregset call.
5234 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5235 (store_regs): Update fill_gregset call.
5236 (fetch_fpregs): Update supply_fpregset call.
5237 (store_fpregs): Update fill_fpregset call.
5238 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5239 * s390-nat.c (fetch_regs): Update supply_gregset call.
5240 (store_regs): Update fill_gregset call.
5241 (fetch_fpregs): Update supply_fpregset call.
5242 (store_fpregs): Update fill_fpregset call.
5244 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5247 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5249 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5250 it instead of current_regcache.
5251 (parse_register_dump): Add REGCACHE parameter, pass it to
5252 supply_register callback.
5253 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5254 parse_register_dump.
5255 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5256 parse_register_dump and dumpregs callback.
5257 (monitor_wait): Pass current_regcache to parse_register_dump and
5259 (monitor_fetch_register): Pass current_regcache to
5260 monitor_supply_register.
5261 (monitor_fetch_registers): Pass current_regcache to
5263 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5264 supply_register and dumpregs callbacks.
5265 (monitor_supply_register, monitor_dump_reg_block): Update
5267 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5268 it to monitor_supply_register.
5269 * dink32-rom.c (dink32_supply_register): Likewise.
5270 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5271 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5272 instead of current_regcache.
5274 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5276 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5277 Add REGCACHE parameter. Use it instead of current_regcache.
5278 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5279 i386nto_supply_gregset and i386nto_supply_fpregset.
5280 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5281 of current_regcache.
5283 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5284 nto_supply_ helper functions.
5285 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5287 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5289 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5290 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5291 and regset_fill member function pointers.
5292 (nto_dummy_supply_regset): Adapt prototype.
5294 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5296 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5297 instead of current_regcache. Make REGS const.
5298 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5299 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5301 * shnbsd-nat.c: Include "regcache.h".
5302 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5304 (shnbsd_store_inferior_registers): Pass current_regcache to
5306 * Makefile.in (shbsd-nat.o): Update dependencies.
5308 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5310 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5311 instead of current_regcache.
5312 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5313 Make GREGSETP const, remove superfluous casts.
5314 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5315 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5317 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5318 (supply_64bit_reg): Likewise
5319 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5320 Make GREGSETP const, adapt casts accordingly.
5321 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5322 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5324 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5325 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5327 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5328 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5329 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5331 * mips-linux-nat.c: Include "regcache.h".
5332 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5333 current_regcache to mips{64}_(supply|fill)_ helper routines.
5334 (mips64_linux_regsets_fetch_registers): Likewise.
5335 (mips64_linux_regsets_store_registers): Likewise.
5337 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5338 REGCACHE argument; replace current_regcache. Make REGS const.
5339 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5340 replace current_regcache.
5341 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5342 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5343 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5344 mipsnbsd_store_inferior_registers): Pass current_regcache to
5345 mipsnbsd_(supply|fill)_... helper routines.
5347 * Makefile.in (mips-linux-nat.o): Update dependencies.
5349 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5351 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5352 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5353 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5354 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5355 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5356 * i386gnu-nat.c (store_fpregs): Likewise.
5357 * i386v4-nat.c (fill_fpregset): Likewise.
5358 * go32-nat.c (store_register, go32_store_registers): Likewise.
5360 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5362 * cris-tdep.c (supply_gregset): Rename to ...
5363 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5364 instead of current_regcache.
5365 (fetch_core_registers): Update call. Pass current_regcache.
5367 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5369 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5370 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5371 Use it instead of current_regcache.
5372 (supply_fparegset): Rename to ...
5373 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5374 Use it instead of current_regcache.
5375 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5376 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5378 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5380 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5381 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5382 use it instead of current_regcache.
5383 * alpha-tdep.h (struct regcache): Add forward declaration.
5384 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5385 alpha_fill_fp_regs): Update prototypes.
5387 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5388 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5389 * alpha-linux-nat.c: Include "regcache.h".
5390 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5391 current_regcache to alpha_supply/fill_ routines.
5393 * alphabsd-tdep.c: Include "regcache.h".
5394 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5395 pass it to alpha_supply_ routines. Make REGS const.
5396 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5397 pass it to alpha_fill_ routines.
5398 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5399 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5400 alphabsd_fill_fpreg): Update prototypes.
5402 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5403 fill_fpregset, alphabsd_fetch_inferior_registers,
5404 alphabsd_store_inferior_registers): Pass current_regcache to
5405 alphabsd_supply/fill_ routines.
5407 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5410 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5412 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5413 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5414 instead of current_regcache.
5415 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5416 REGCACHE parameter, pass it to supply_ routines.
5417 (aix_thread_fetch_registers): Pass current_regcache to
5418 fetch_regs_user_thread and fetch_regs_kernel_thread.
5420 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5421 Add REGCACHE parameter, use it instead of current_regcache.
5422 Call regcache_valid_p instead of register_cached.
5423 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5424 Also, pass REGCACHE to fill_ routines.
5425 (aix_thread_store_registers): Pass current_regcache to
5426 store_regs_user_thread and store_regs_kernel_thread.
5428 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5430 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5431 pointed to by GREGSETP.
5433 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5435 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5436 of regcache_raw_read_signed.
5437 (fill_fpregset): Use regcache_raw_collect instead of
5440 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5442 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5443 point arguments, test explicitly for use of the EABI32 ABI
5444 instead of inferring this condition from tests on register
5447 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5449 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5450 prior to allocating its location.
5452 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5454 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5455 based on mips_abi_regsize() whose result is known in advance.
5456 (mips_o64_push_dummy_call): Likewise.
5458 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5460 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5461 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5463 * mips-linux-nat.c: Include "gregset.h".
5464 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5465 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5466 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5467 fill_fpregset): Move to mips-linux-nat.c.
5469 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5471 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5473 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5474 (read_register): ... here.
5475 (deprecated_write_register_gen): Remove, inline ...
5476 (write_register): ... here.
5477 * regcache.h (deprecated_read_register_gen): Remove prototype.
5478 (deprecated_write_register_gen): Likewise.
5480 * remote-sim.c (gdbsim_store_register): Replace call to
5481 deprecated_read_register_gen with regcache_cooked_read.
5482 * target.c (debug_print_register): Replace calls to
5483 deprecated_read_register_gen and read_register with
5484 regcache_cooked_read.
5486 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5488 * hpux-thread.c (hpux_thread_store_registers): Use
5489 regcache_raw_collect, not regcache_raw_read.
5490 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5491 not regcache_raw_write.
5493 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5495 * gdbarch.sh: Remove deprecated_register_byte.
5496 * gdbarch.c, gdbarch.h: Regenerate.
5497 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5498 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5500 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5501 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5502 read-only register caches. Make REGCACHE parameter const.
5503 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5505 * mi/mi-main.c (old_regs): Remove.
5506 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5507 (register_changed_p): Reimplement to compare two register caches.
5508 (mi_cmd_data_list_changed_registers): Update caller.
5509 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5510 * mi/mi-interp.c (mi_interpreter_init): Do not call
5511 mi_setup_architecture_data.
5513 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5515 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5516 inline definition at the places the macros are used.
5517 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5519 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5521 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5523 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5524 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5525 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5526 (rs6000_aix_regset_from_core_section): New function.
5527 (rs6000_aix_init_osabi): Register it.
5528 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5529 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5530 * rs6000-nat.c (CoreRegs): Do not define type.
5531 (fetch_core_registers, rs6000_core_fns): Remove.
5532 (_initialize_core_rs6000): Do not register it. Rename to ...
5533 (_initialize_rs6000_nat): ... this.
5534 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5536 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5538 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5539 (dwarf2_read_address): Sign extend return address as required by
5540 target architecture.
5542 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5544 * solib-frv.c (lm_base): Bail out if the main executable has
5547 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5549 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5550 of FPCR register in fpregset.
5552 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5554 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5555 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5557 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5559 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5560 * rs6000-nat.c (rs6000_wait): New function.
5561 (_initialize_core_rs6000): Install it as to_wait target method.
5562 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5564 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5566 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5567 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5568 * rs6000-nat.c (super_create_inferior): New variable.
5569 (rs6000_create_inferior): Make static. Adapt argument list. Call
5570 original version of create_inferior via super_create_inferior.
5571 (_initialize_core_rs6000): Install to_create_inferior target method.
5573 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5575 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5576 (aix_thread_xfer_partial): ... this.
5577 (init_aix_thread_ops): Install to_xfer_partial instead
5578 of deprecated_xfer_memory target method.
5580 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5581 and inftarg.o, add inf-ptrace.o.
5582 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5583 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5584 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5585 (fetch_inferior_registers): Rename to ...
5586 (rs6000_fetch_inferior_registers): ... this. Make static.
5587 (store_inferior_registers): Rename to ...
5588 (rs6000_store_inferior_registers): ... this. Make static.
5589 (read_word, child_xfer_memory): Remove.
5590 (rs6000_xfer_partial): New function.
5591 (kernel_u_size): Remove.
5592 (_initialize_core_rs6000): Add inf_ptrace-based target.
5593 * Makefile.in (rs6000-nat.o): Update dependencies.
5595 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5597 * inf-ptrace.c: Include "gdb_stdint.h".
5598 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5599 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5600 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5601 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5602 (inf_ptrace_store_register): Likewise.
5603 * Makefile.in (inf-ptrace.o): Update dependencies.
5605 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5607 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5608 * configure.tgt (rs6000-*-*): Likewise.
5609 * config/rs6000/aix4.mh: Delete file.
5610 * config/rs6000/aix4.mt: Delete file.
5611 * config/rs6000/rs6000.mh: Delete file.
5612 * config/rs6000/rs6000.mt: Delete file.
5614 * config/powerpc/nm-aix.h: Delete file.
5615 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5617 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5619 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5620 Remove obsolete part of comment.
5621 (store_regs_user_thread): Use uint32_t temporaries when calling
5623 (store_regs_kernel_thread): Likewise. Add assertion to verify
5624 correct size of struct ptsprs members.
5625 (aix_thread_xfer_memory): Fix type of myaddr.
5626 (aix_thread_extra_thread_info): Fix compiler warning.
5627 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5628 (fetch_register, store_register): Adapt callers.
5630 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5632 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5634 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5636 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5638 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5639 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5640 (alpha_linux_regset_from_core_section): New function.
5641 (alpha_linux_init_abi): Install it.
5642 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5643 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5644 <sys/procfs.h>, and "gregset.h".
5645 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5646 Move from config/alpha/nm-linux.h.
5647 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5649 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5650 * alpha-nat.c: Remove #ifdef __linux__ section.
5651 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5652 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5653 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5654 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5655 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5656 (NATDEPFILES): Remove alpha-nat.o.
5657 * config/alpha/nm-linux.h: Delete file.
5658 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5659 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5660 (alpha-linux-tdep.o): Likewise.
5662 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5664 * mips-linux-nat.c: No longer include "gdbcore.h".
5665 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5666 (mips64_linux_register_addr): Likewise.
5667 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5668 mips64_linux_register_addr instead of register_addr.
5669 * mips-linux-tdep.c (mips_linux_register_addr,
5670 mips64_linux_register_addr): Move to mips-linux-nat.c.
5671 (register_addr): Remove.
5672 (register_addr_data, init_register_addr_data): Remove.
5673 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5674 (set_mips_linux_register_addr): Remove.
5675 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5676 * Makefile.in (mips-linux-nat.o): Update dependencies.
5678 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5680 * linux-nat.c (linux_register_u_offset): Remove.
5681 (linux_target_install_ops): New function.
5682 (linux_target): Use it.
5683 (linux_trad_target): New function.
5684 * linux-nat.h (linux_trad_target): Declare.
5686 * alpha-linux-nat.c: Include "gdbcore.h".
5687 (alpha_linux_register_u_offset): New function.
5688 (_initialize_alpha_linux_nat): Use linux_trad_target.
5690 * mips-linux-nat.c: Include "gdbcore.h".
5691 (mips_linux_register_u_offset): New function.
5692 (_initialize_mips_linux_nat): Use linux_trad_target.
5694 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5695 * config/arm/nm-linux.h: Delete file.
5697 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5698 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5700 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5701 * config/ia64/nm-linux.h: Delete file.
5703 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5704 * config/m32r/nm-linux.h: Delete file.
5706 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5707 * config/m68k/nm-linux.h: Delete file.
5709 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5710 * config/pa/nm-linux.h: Delete file.
5712 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5713 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5714 * config/powerpc/nm-linux.h: Delete file.
5716 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5717 * config/s390/nm-linux.h: Delete file.
5719 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5720 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5721 * config/sparc/nm-linux.h: Delete file.
5723 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5724 (mips-linux-nat.o): Likewise.
5726 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5728 * core-aout.c: Delete file.
5729 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5730 (core-aout.o): Delete rule.
5731 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5733 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5735 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5736 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5737 KERNEL_U_ADDR): Remove.
5739 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5740 (cannot_fetch_register, cannot_store_register): Remove.
5741 (fetch_register): Inline cannot_fetch_register and register_addr.
5742 (store_register): Inline cannot_store_register and register_addr.
5743 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5744 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5745 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5748 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5749 (fetch_register): Inline register_addr.
5750 (store_register): Inline register_addr.
5751 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5752 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5753 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5755 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5756 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5757 REGISTER_U_ADDR): Remove.
5759 * hppa-linux-nat.c (register_addr): Rename to ...
5760 (hppa_linux_register_addr): ... this. Make static.
5761 (fetch_register, store_register): Adapt callers.
5762 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5764 * ppc-linux-nat.c (kernel_u_size): Remove.
5765 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5767 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5768 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5770 * config/vax/nm-vax.h: Delete file.
5772 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5774 * MAINTAINERS (Write After Approval): Add myself.
5776 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5778 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5779 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5780 (m68k_linux_sigcontext_reg_offset): Fix typo.
5781 (target_is_uclinux): New.
5782 (m68k_linux_inferior_created): New.
5783 (m68k_linux_get_sigtramp_info): Check for uClinux or
5784 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5786 (_initialize_m68k_linux_tdep): Register
5787 m68k_linux_inferior_created.
5789 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5791 * win32-nat.c (win32_detach): Remove delete_command call.
5792 Resume inferior with win32_resume instead of win32_continue.
5794 2007-04-19 Jerome Guitton <guitton@adacore.com>
5796 * ser-mingw.c (fd_is_file): New function.
5797 (file_select_thread): New function.
5798 (ser_console_wait_handle): Add special handling for files.
5800 2007-04-18 Denis Pilat <denis.pilat@st.com>
5802 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5803 when missing from DW_TAG_subrange_type. Remove the handling of null
5804 return from die_type.
5806 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5808 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5809 change to rearrange some brackets.
5810 (mips_n32n64_push_dummy_call): Likewise.
5811 (mips_o32_push_dummy_call): Likewise.
5812 (mips_o64_push_dummy_call): Likewise.
5814 2007-04-18 Denis Pilat <denis.pilat@st.com>
5816 * infcmd.c (post_create_inferior): Start with a call to
5817 target_terminal_ours.
5819 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5821 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5823 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5825 (mips_o32_push_dummy_call): Likewise.
5826 (mips_o64_push_dummy_call): Likewise.
5828 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5830 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5833 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5835 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5837 (mips_o32_push_dummy_call): Likewise.
5839 2007-04-17 Andreas Schwab <schwab@suse.de>
5841 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5842 sal to be bigger than the end of the function.
5844 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5845 Nigel Stephens <nigel@mips.com>
5847 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5848 argument alignment requirements when calculating stack space
5849 required. When aligning an arg register to eight bytes
5850 boundary, align stack_offset too. Write floating-point
5851 arguments to the appropriate integer register if need go there.
5852 (mips_o64_push_dummy_call): Likewise.
5854 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5856 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5857 "sig" arguments, add "regcache" argument.
5858 * gdbarch.c, gdbarch.h: Regenerate.
5860 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5861 (handle_inferior_event): Call remove_single_step_breakpoints directly
5862 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5864 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5865 Remove handling of !insert_breakpoints_p case.
5866 * arm-tdep.c (arm_software_single_step): Likewise.
5867 * cris-tdep.c (cris_software_single_step): Likewise.
5868 * mips-tdep.c (mips_software_single_step): Likewise.
5869 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5870 * sparc-tdep.c (sparc_software_single_step): Likewise.
5871 * spu-tdep.c (spu_software_single_step): Likewise.
5873 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5874 * mips-tdep.h (mips_software_single_step): Likewise.
5875 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5876 * sparc-tdep.h (sparc_software_single_step): Likewise.
5878 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5880 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5881 when removing single-step breakpoints.
5883 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5885 * varobj.h (varobj_set_frozen): New
5886 (varobj_get_frozen): New.
5887 (varobj_update): New parameter explicit.
5888 * varobj.c (struct varobj): New fields frozen
5890 (varobj_set_frozen, varobj_get_frozen): New.
5891 (install_new_value): Don't fetch values for
5892 frozen variable object, or children thereof. Allow
5893 a frozen variable object to have non-fetched value.
5894 (varobj_update): Allow updating child variables.
5895 Don't traverse frozen children.
5896 (new_variable): Initialize the frozen field.
5897 (c_value_of_variable): Return NULL for frozen
5898 variable without any value yet.
5899 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5901 (mi_cmd_var_create): Output the 'frozen' field,
5902 as soon as testsuite is adjusted to expect that field.
5903 (mi_cmd_var_set_frozen): New.
5904 (mi_cmd_var_update): Pass the 'explicit' parameter to
5906 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5907 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5909 2007-04-13 Paul Brook <paul@codesourcery.com>
5911 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5913 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5915 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5917 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5918 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5919 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5920 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5921 * Makefile.in: Remove references to deleted files.
5922 * README: Do not mention deleted ROM monitor interfaces.
5923 * defs.h (enum language): Delete language_scm.
5924 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5925 (dump_subexp_body_standard): Likewise.
5926 * parse.c (operator_length_standard): Likewise.
5927 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5928 * remote-mips.c: Do not include remote-utils.h.
5929 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5931 * value.c: Do not include scm-lang.h.
5932 (unpack_long): Delete scm_unpack call.
5933 * config/h8300/h8300.mt, config/mips/embed.mt,
5934 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5935 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5937 * NEWS: Mention removed files.
5939 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5941 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5942 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5944 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5946 * NEWS: Mention removal of HP aCC support.
5948 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5950 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5951 first entry for static executables.
5952 (breakpoint_addr): Delete unused variable.
5953 (elf_locate_base): Search for _r_debug in static executables.
5954 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5957 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5959 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5960 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5961 (mention): Remove bp_through_sigtramp support.
5962 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5964 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5966 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5969 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5971 * infrun.c: Doc fixes.
5972 (handle_inferior_event): Clarify debug message.
5973 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5975 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5977 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5979 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5981 * config/m68k/tm-monitor.h: Delete file.
5982 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5983 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5985 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5986 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5988 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5990 * gdbarch.sh (software_single_step): Change the return type
5991 from void to int and reformatted some comments to <= 80
5993 * gdbarch.c, gdbarch.h: Regenerated.
5994 * alpha-tdep.c (alpha_software_single_step): Likewise.
5995 * alpha-tdep.h (alpha_software_single_step): Likewise.
5996 * arm-tdep.c (arm_software_single_step): Likewise.
5997 * cris-tdep.c (cris_software_single_step): Likewise.
5998 * mips-tdep.c (mips_software_single_step): Likewise.
5999 * mips-tdep.h (mips_software_single_step): Likewise.
6000 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6001 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6002 * sparc-tdep.c (sparc_software_single_step): Likewise.
6003 * sparc-tdep.h (sparc_software_single_step): Likewise.
6004 * spu-tdep.c (spu_software_single_step): Likewise.
6005 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
6006 and act accordingly.
6008 2007-04-11 Steve Ellcey <sje@cup.hp.com>
6010 * configure.ac (build_warnings): Add -Wno-char-subscripts.
6011 * configure: Regenerate.
6012 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
6014 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6016 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
6018 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6020 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
6022 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
6023 distinct on the TYPE_STUB_SUPPORTED debug targets.
6024 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
6026 2007-04-11 Joel Brobecker <brobecker@adacore.com>
6028 * sparc-tdep.c (X_RS2): New macro.
6029 (sparc_skip_stack_check): New function.
6030 (sparc_analyze_prologue): Adjust PC past stack probing
6031 sequence if necessary.
6033 2007-04-10 Andreas Schwab <schwab@suse.de>
6035 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
6038 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6040 * breakpoint.c (gdb_breakpoint_query): Really return an
6042 (gdb_breakpoint): Likewise.
6043 * thread.c (gdb_list_thread_ids): Likewise.
6044 (gdb_thread_select): Likewise.
6045 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
6046 (mi_cmd_thread_list_ids): Remove bogus initialization.
6048 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6050 * Makefile.in (SFILES): Remove hpacc-abi.c.
6051 (COMMON_OBS): Remove hpacc-abi.o.
6052 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6053 (hpacc-abi.o, hpread.o): Delete rules.
6054 * somread.c: Delete extern declarations from hpread.c.
6055 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6056 (som_symfile_finish): Do not call hpread_symfile_finish.
6057 (som_symfile_init): Do not call hpread_symfile_init.
6058 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6059 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6060 * hpacc-abi.c, hpread.c: Deleted.
6062 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6064 * solib-svr4.c (enable_break): Simplify return value.
6065 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6067 2007-04-10 Andreas Schwab <schwab@suse.de>
6069 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6070 l_ld_size, l_next_size, l_prev_size, l_name_size.
6072 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6073 to extract addresses from link map.
6074 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6075 (LM_NEXT): Likewise.
6076 (LM_NAME): Likewise.
6077 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6078 (elf_locate_base): Likewise.
6079 (open_symbol_file_object): Likewise.
6080 (svr4_fetch_objfile_link_map): Likewise.
6081 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6082 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6084 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6085 (svr4_lp64_fetch_link_map_offsets): Likewise.
6087 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6088 removed members. Set l_ld_offset to -1 if not present.
6090 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6092 Pass stderr of program run with "target remote |"
6094 * serial.c (serial_open): Set error_fd to -1.
6095 * serial.h (struct serial): New field error_fd.
6096 (struct serial_opts): New field avail.
6097 * ser-pipe.c (pipe_open): Create another pair
6098 of sockets. Pass stderr to gdb.
6099 * ser-mingw.c (pipe_windows_open): Pass
6100 PEX_STDERR_TO_PIPE to pex_run. Initialize
6103 (_initialize_ser_windows): Hook pipe_avail.
6104 * ser-base.c (generic_readchar): Check if there's
6105 anything in stderr channel and route that to gdb_stderr.
6107 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6109 * dbxread.c (read_ofile_symtab): Move current_objfile
6110 clearing to after end_stabs.
6112 2007-04-01 Andreas Schwab <schwab@suse.de>
6114 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6115 gdbarch instead of current_gdbarch.
6117 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6119 * varobj.c (varobj_create): Keep varobj value
6120 NULL when evaluating the type.
6122 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6124 * NEWS: Mention new Windows CE support.
6126 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6128 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6129 the obsoletion stanza.
6130 * NEWS: Mention deleted targets.
6132 * config/sh/tm-wince.h: Remove.
6133 * config/sh/wince.mt: Remove.
6134 * config/mips/tm-wince.h: Remove.
6135 * config/mips/wince.mt: Remove.
6138 * wince-stub.c: Remove.
6139 * wince-stub.h: Remove.
6140 * Makefile.in (wince.o): Remove rule.
6141 (wince-stub.o): Likewise.
6143 * mips-tdep.c (mips_next_pc): Make static.
6144 * mips-tdep.h (mips_next_pc): Remove declaration.
6145 * arm-tdep.c (arm_pc_is_thumb): Make static.
6146 (thumb_get_next_pc): Likewise.
6147 (arm_get_next_pc): Likewise.
6148 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6149 (arm_pc_is_thumb): Likewise.
6150 (thumb_get_next_pc): Likewise.
6151 (arm_get_next_pc): Likewise.
6153 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6155 * MAINTAINERS: Remove d10v entry.
6156 * Makefile.in (SFILES): Remove dwarfread.c.
6157 (COMMON_OBS): Remove dwarfread.o.
6158 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6159 (remote-est.o, rom68k-rom.o): Delete.
6160 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6161 target est, target rom68k, and DWARF 1.
6162 * configure.tgt: Mark d10v as removed.
6163 * dwarf2read.c: Doc update.
6164 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6166 (elf_locate_sections): Do not set them.
6167 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6168 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6169 * config/m68k/monitor.mt (TDEPFILES): Prune.
6170 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6171 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6173 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6175 * doublest.c (convert_floatformat_to_doublest): Use
6176 floatformat_classify.
6177 (floatformat_is_nan): Rename to...
6178 (floatformat_classify): ...this. Return more information.
6179 * doublest.h (enum float_kind): New.
6180 (floatformat_is_nan): Replace prototype...
6181 (floatformat_classify): ...with this one.
6182 * valprint.c (print_floating): Use floatformat_classify. Handle
6185 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6187 * README: Mention ISO C library requirement.
6189 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6191 * Makefile.in (SFILES): Remove nlmread.c.
6192 (COMMON_OBS): Remove nlmread.o.
6193 (nlmread.o): Delete rule.
6194 * README: Delete reference to remote-st.c.
6195 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6196 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6198 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6199 (_initialize_i386_tdep): Do not reference them.
6200 * nlmread.c: Delete file.
6201 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6202 * target.c: Doc update.
6203 * thread.c: Delete commented include.
6204 * config/alpha/tm-alpha.h: Doc update.
6206 2007-03-30 Chris Dearman <chris@mips.com>
6208 * utils.c (string_to_core_addr): Comment typo.
6210 2007-03-30 Chris Dearman <chris@mips.com>
6212 * mips-tdep.c: Comment typo.
6214 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6216 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6217 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6218 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6219 * config/powerpc/nm-ppc64-linux.h: Remove file.
6220 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6221 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6222 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6223 * infptrace.c (call_ptrace): Likewise.
6224 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6225 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6226 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6227 (store_register): Likewise.
6229 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6231 * Makefile.in (varobj.o): Add missing dependency.
6233 2007-03-29 Michael Snyder <msnyder@access-company.com>
6235 * MAINTAINERS: Update my email address.
6237 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6239 Add support for exception handling with multiple versions of
6241 * ada-lang.c: Update general comments on how Ada exception catchpoints
6243 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6244 (__gnat_raise_nodefer_with_msg): Delete.
6245 (ada_unhandled_exception_name_addr_ftype): New type.
6246 (exception_support_info): New type.
6247 (ada_unhandled_exception_name_addr): Add forward declaration.
6248 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6249 (default_exception_support_info): New constant.
6250 (exception_support_info_fallback): Likewise.
6251 (exception_info): New global variable.
6252 (ada_exception_support_info_sniffer): New function.
6253 (ada_executable_changed_observer): Likewise.
6254 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6255 ada_unhandled_exception_name_addr.
6256 (ada_unhandled_exception_name_addr): Reimplement to match the
6257 latest Ada runtime implementation.
6258 (error_breakpoint_runtime_sym_not_found): Delete.
6259 (ada_exception_sym_name): Get the exception sym name from
6260 exception_info rather than hardcoding it.
6261 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6262 Update error handling.
6263 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6265 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6267 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6268 (remote-st.o, uw-thread.o): Delete.
6269 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6270 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6271 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6272 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6273 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6274 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6275 rs6000-*-lynxos* to an obsoletion stanza.
6276 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6277 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6278 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6279 i[34567]86-*-netware*.
6280 * NEWS: Mention deleted targets.
6282 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6283 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6284 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6285 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6286 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6287 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6288 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6289 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6290 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6291 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6292 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6293 config/rs6000/tm-rs6000ly.h: Delete files.
6295 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6297 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6298 * interps.c (clear_interpreter_hooks): Do not clear
6299 deprecated_registers_changed_hook.
6300 * regcache.c (registers_changed): Do not call it.
6301 * top.c (deprecated_registers_changed_hook): Do not define it.
6302 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6303 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6304 (tui_remove_hooks): Do not remove it.
6305 (tui_selected_frame_level_changed_hook): Check for negative level.
6306 Use get_selected_frame.
6307 (tui_registers_changed_hook): Deleted.
6309 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6311 * stabsread.c (add_undefined_type): Add extra parameter.
6312 Now handles nameless types separately.
6313 (struct nat): New type.
6314 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6315 New static variables.
6316 (read_type): Update calls to add_undefined_type.
6317 (add_undefined_type_noname): New function.
6318 (add_undefined_type_1): Renames from add_undefined_type.
6319 (cleanup_undefined_types_noname): New function.
6320 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6321 (cleanup_undefined_types): New handles nameless types separately.
6322 (_initialize_stabsread): Initialize our new static constants.
6324 2007-03-29 Denis Pilat <denis.pilat@st.com>
6326 * configure.ac: Test for signal.h.
6327 * configure, config.in: Regenerate.
6329 2007-03-29 Denis Pilat <denis.pilat@st.com>
6331 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6332 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6334 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6336 * arm-wince-tdep.c: New.
6337 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6338 (MT_CFLAGS): Delete.
6340 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6341 solib-legacy.o, solib-svr4.o, and remove wince.o.
6342 * configure.tgt (arm*-*-mingw32ce*): Add.
6343 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6344 (do_target_signal_to_host): Silence 'not used' warning.
6345 * config/arm/tm-wince.h: Remove.
6347 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6349 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6350 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6352 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6353 * config/ia64/tm-linux.h: Remove file.
6354 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6355 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6356 legacy_pc_in_sigtramp.
6357 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6358 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6359 Remove func_name argument.
6360 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6362 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6363 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6364 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6365 (HAVE_STEPPABLE_WATCHPOINT): Define.
6367 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6368 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6369 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6370 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6371 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6372 target_insert_watchpoint, target_remove_watchpoint): Remove.
6373 (FETCH_INFERIOR_REGISTERS): Define.
6374 * ia64-linux-nat.c (ia64_register_addr): Make static.
6375 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6376 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6377 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6378 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6379 (ia64_linux_stopped_by_watchpoint): Make static.
6380 (ia64_linux_can_use_hw_breakpoint): New function.
6381 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6382 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6383 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6385 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6387 * linespec.c: Include language.h.
6388 (find_methods): Add language parameter. Call
6389 lookup_symbol_in_language. Pass language down.
6390 (add_matching_methods): Likewise. Call
6391 lookup_symbol_in_language.
6392 (add_constructors): Likewise.
6393 (find_method): Pass sym_class to collect_methods.
6394 (collect_methods): Add sym_class parameter. Pass language
6396 * symtab.c (lookup_symbol): Rename to ...
6397 (lookup_symbol_in_language): ... this. Add language
6398 parameter. Use passed language instead of current_language.
6399 (lookup_symbol): New as wrapper around
6400 lookup_symbol_in_language.
6401 (lookup_symbol_aux): Add language parameter. Use passed
6402 language instead of current_language.
6403 (search_symbols): Indent.
6404 * symtab.h (enum language): Forward declare.
6405 (lookup_symbol_in_language): Declare.
6406 (lookup_symbol): Update description.
6407 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6408 * ada-lang.c (restore_language): Remove.
6409 (lookup_symbol_in_language): Remove.
6411 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6413 * breakpoint.c (bpstat_num): Add int *num parameter.
6414 * breakpoint.h (bpstat_num): Likewise.
6415 * infcmd.c (continue_command): Adjust to new bpstat_num
6417 (program_info): Likewise.
6419 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6421 * config/sh/tm-sh.h: Remove file.
6422 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6423 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6424 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6425 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6427 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6429 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6430 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6431 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6432 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6433 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6434 sequence if target_shortname is "remote".
6436 2007-03-27 Anton Blanchard <anton@samba.org>
6438 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6439 instead of wordsize when looking for the LR in a stack frame.
6441 2007-03-27 Andreas Schwab <schwab@suse.de>
6442 Daniel Jacobowitz <dan@codesourcery.com>
6444 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6445 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6446 argument. Update all callers.
6447 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6448 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6449 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6450 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6451 (dwarf2_frame_set_adjust_regnum): ...this.
6452 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6453 * rs6000-tdep.c: Include "dwarf2-frame.h".
6454 (rs6000_adjust_frame_regnum): Define.
6455 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6456 Register rs6000_adjust_frame_regnum.
6458 * Makefile.in (rs6000-tdep.o): Update dependencies.
6460 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6462 * Makefile.in: Add support for a "pdf" target.
6464 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6466 * amd64-tdep.c (amd64_init_frame_cache): New function.
6467 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6469 2007-03-26 Nigel Stephens <nigel@mips.com>
6470 Maciej W. Rozycki <macro@mips.com>
6472 * ui-out.c (ui_out_field_core_addr): Truncate address to
6473 TARGET_ADDR_BIT size before printing.
6475 2007-03-22 Nigel Stephens <nigel@mips.com>
6476 Maciej W. Rozycki <macro@mips.com>
6478 * remote-mips.c (mips_xfer_memory): Update prototype.
6480 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6482 * symfile.h: #include "symtab.h"
6484 2007-03-22 Denis Pilat <denis.pilat@st.com>
6486 * utils.c (pagination_on_command, pagination_off_command):
6487 Remove useless prototypes.
6489 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6492 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6493 instead of TYPE_NAME for object base class name.
6496 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6498 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6499 Specify frame type in calls to frame_func_unwind().
6501 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6503 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6504 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6505 (refine_prologue_limit): Delete.
6506 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6507 Assume lim_pc is set. Correct check for incomplete prologues.
6508 Do not skip clobbers of the frame pointer.
6509 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6512 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6514 * frame.c (frame_pop): Check to see whether there's a frame to
6515 which we can pop first.
6517 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6519 * MAINTAINERS (Write After Approval): Add myself.
6521 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6523 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6524 (handle_inferior_event): Remove unnecessary braces.
6525 * breakpoint.c (bpstat_what): Remove wrong comment.
6527 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6529 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6530 (spu_gdbarch_init): Install it.
6532 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6534 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6535 object types, not 0.
6537 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6539 * spu-tdep.c (spu_frame_align): New function.
6540 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6542 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6544 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6545 (spu_software_single_step): Likewise.
6546 (spu_read_pc, spu_write_pc): New functions.
6547 (spu_gdbarch_init): Install them.
6549 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6551 * cli/cli-dump.c (struct callback_data): load_offset needs to
6552 have signed long type.
6554 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6556 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6557 Revert the previous change that had some unexpected side-effects
6559 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6560 function to get the address of the calling instruction.
6562 2007-03-07 Denis Pilat <denis.pilat@st.com>
6564 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6565 get_selected_frame by deprecated_safe_get_selected_frame.
6567 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6569 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6570 "gdb_string.h". Don't include "nbsd-tdep.h".
6571 (SIZEOF_STRUCT_REG): Remove.
6572 (SHNBSD_SIZEOF_GREGS): New.
6573 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6574 (shnbsd_regset_from_core_section): New functions.
6575 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6576 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6577 shnbsd_supply_gregset, shnbsd_collect_gregset.
6578 (shnbsd_gregset): New variable.
6579 (shnbsd_init_abi): Set regset_from_core_section.
6580 (GDB_OSABI_NETBSD_CORE): New define.
6581 (shnbsd_core_osabi_sniffer): New function.
6582 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6583 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6584 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6586 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6588 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6590 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6591 length of the types referenced by the new type CV ring.
6593 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6595 * frame.c (frame_pop, frame_observer_target_changed): Call
6597 (flush_cached_frames): Rename to reinit_frame_cache and delete
6599 * frame.h (flush_cached_frames): Delete prototype and update comment.
6601 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6602 reinit_frame_cache instead of flush_cached_frames. Do not call
6603 select_frame after reinit_frame_cache.
6604 * corelow.c (core_open): Likewise.
6605 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6606 * infrun.c (prepare_to_proceed, context_switch)
6607 (handle_inferior_event): Likewise.
6608 * linux-fork.c (fork_load_infrun_state): Likewise.
6609 * ocd.c (ocd_start_remote): Likewise.
6610 * remote-e7000.c (e7000_start_remote): Likewise.
6611 * remote-mips.c (device): Likewise.
6612 * thread.c (switch_to_thread): Likewise.
6613 * tracepoint.c (finish_tfind_command): Likewise.
6614 * gdbarch.c: Regenerated.
6616 2007-02-28 Jerome Guitton <guitton@adacore.com>
6617 Joel Brobecker <brobecker@adacore.com>
6619 * gdbtypes.c (check_typedef): Do not replace stub type if
6620 the resolved type is not defined in the same objfile.
6622 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6624 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6626 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6628 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6629 symbol for Ada units when the symbol is defined using 't' rather
6630 than 'Tt' as symbol descriptor.
6632 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6634 * config/mips/tm-nbsd.h: Delete file.
6635 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6636 * config/sh/tm-nbsd.h: Delete file.
6637 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6639 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6641 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6642 unused WRONG_PARAM value since it was recently deleted.
6644 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6646 * varobj.c (varobj_update): Free temporary vectors.
6648 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6650 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6651 * config/powerpc/tm-linux.h: Delete file.
6652 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6653 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6654 (TEXT_SEGMENT_BASE): Do not redefine.
6655 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6656 from config/rs6000/tm-rs6000.h.
6657 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6658 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6659 (TEXT_SEGMENT_BASE): Remove.
6660 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6661 (rs6000_in_solib_return_trampoline): Remove.
6662 (SKIP_TRAMPOLINE_CODE): Remove.
6663 (rs6000_skip_trampoline_code): Remove.
6664 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6665 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6666 (FP0_REGNUM): Remove.
6667 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6668 (rs6000_set_host_arch_hook): Remove.
6669 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6670 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6671 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6672 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6673 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6674 * rs6000-nat.c: Include "rs6000-tdep.h".
6675 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6676 (set_host_arch): Rename to ...
6677 (rs6000_create_inferior): ... this. Make public.
6678 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6679 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6680 (rs6000_create_inferior): Remove.
6681 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6682 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6683 set_gdbarch_in_solib_return_trampoline, and
6684 set_gdbarch_skip_trampoline_code.
6685 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6686 from config/rs6000/tm-rs6000.h.
6688 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6690 * buildsym.c (record_producer): Do nothing if no producer is provided.
6692 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6694 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6695 to check changelist is non-NULL. Call error if the frontend tries
6696 to update a non-root variable.
6698 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6700 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6702 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6703 (dwarf2_frame_sniffer): Update.
6704 (dwarf2_signal_frame_this_id): New function.
6705 (dwarf2_signal_frame_unwind): Use it.
6706 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6707 * frame.c (frame_func_unwind): Add this_type argument.
6708 (get_frame_func): Update.
6709 (frame_unwind_address_in_block): Add this_type argument and check it.
6711 (get_frame_address_in_block): Update.
6712 * frame.h (enum frame_type): Move higher in the file.
6713 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6716 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6717 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6718 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6719 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6720 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6721 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6722 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6723 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6724 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6725 frame_func_unwind and frame_unwind_address_in_block to specify
6726 the frame type. Use frame_unwind_address_in_block instead of
6727 frame_pc_unwind in sniffers.
6729 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6731 * frame.c (deprecated_selected_frame): Rename to...
6732 (selected_frame): ...this. Make static.
6733 (get_selected_frame, select_frame): Update.
6734 * frame.h (deprected_select_frame): Delete.
6735 (deprecated_safe_get_selected_frame): Update comments.
6737 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6738 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6739 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6740 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6741 tui/tui.c: Replace references to deprecated_selected_frame.
6743 2007-02-27 Fred Fish <fnf@specifix.com>
6745 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6746 directly decrement the stack pointer, accumulate their operand into
6747 the stack offset, and mark the function as not being frameless.
6749 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6751 * arch-utils.c (selected_byte_order): New.
6752 * arch-utils.h (selected_byte_order): New prototype.
6753 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6755 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6757 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6758 (default_symfile_offsets): Check VMA here. Update section VMAs.
6760 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6762 * remote.c (init_remote_state): Add special handling for placeholder
6765 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6767 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6768 (filenames_h): New variable.
6769 (clean): Clean up xml-builtin.c and stamp-xml.
6770 (arm-linux-nat.o): Update.
6771 * config/arm/linux.mh (TDEP_XML): Define.
6772 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6773 (arm_linux_has_wmmx_registers): New.
6774 (GET_THREAD_ID): Fix typo.
6775 (IWMMXT_REGS_SIZE): Define.
6776 (fetch_wmmx_regs, store_wmmx_regs): New.
6777 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6778 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6779 (super_xfer_partial, arm_linux_xfer_partial): New.
6780 (_initialize_arm_linux_nat): Use them.
6781 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6782 (xml_builtin_xfer_partial): New function.
6783 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6784 * NEWS: Update mention of iWMMXt support.
6786 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6788 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6789 if there are no FPA registers.
6790 (arm_dwarf_reg_to_regnum): New function.
6791 (arm_register_type, arm_register_name): Return minimal values for
6792 unsupported registers.
6793 (arm_register_sim_regno): Handle iWMMXt registers.
6794 (arm_gdbarch_init): Record missing FPA registers if indicated by
6795 a target description. Recognize iWMMXt registers. Only register
6796 "info float" for FPA. Use ARM_NUM_REGS. Register
6797 arm_dwarf_reg_to_regnum.
6798 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6800 (struct gdbarch_tdep): Add have_fpa_registers.
6801 * features/xscale-iwmmxt.xml: Update capitalization.
6802 * regformats/arm-with-iwmmxt.dat: Regenerated.
6804 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6806 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6808 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6810 * MAINTAINERS (mep): New target.
6812 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6814 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6816 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6817 (mep-tdep.o): New rule.
6818 * configure.tgt (mep-*-*): New target.
6819 * mep-tdep.c: New file.
6820 * config/mep/mep.mt: New file.
6822 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6824 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6825 BREAKPOINT_HIT and STOP_UNKNOWN.
6827 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6829 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6831 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6833 * gdb_expat.h (XMLCALL): Define if not already defined.
6835 2007-02-20 Andreas Schwab <schwab@suse.de>
6837 * Makefile.in (symfile.o): Update dependencies.
6839 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6841 * MAINTAINERS: Disable -Werror for cris simulator. Build
6842 sparc64-solaris2.10 instead of the broken sparc-elf.
6843 * solib-frv.c: Include "solib.h".
6844 * Makefile.in (solib-frv.o): Update.
6845 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6846 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6847 (xtensa_frame_this_id, xtensa_frame_prev_register)
6848 (xtensa_push_dummy_call): Use %p.
6850 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6852 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6853 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6854 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6855 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6856 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6857 (sparc-linux-tdep.o): Update.
6859 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6861 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6862 (xtensa_mask_t): Change mask field to be a separate array.
6863 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6864 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6865 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6866 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6867 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6868 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6869 (mask14, mask15): Rename to
6870 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6871 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6872 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6873 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6874 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6875 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6876 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6877 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6878 (xtensa_submask14, xtensa_submask15): New.
6879 (rmap): Follow strict aliasing rules doing static initialization.
6881 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6883 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6884 handling from here...
6885 (tdesc_register_type): ...to here.
6886 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6887 * features/arm-core.xml: Use code_ptr and data_ptr.
6889 2007-02-13 Denis Pilat <denis.pilat@st.com>
6891 * varobj.h (enum varobj_update_error): New enum.
6892 * varobj.c (struct varobj_root): Add is_valid member.
6893 (varobj_get_type): Check for invalid varobj.
6894 (varobj_get_attributes): Likewise.
6895 (variable_editable):Likewise.
6896 (varobj_update): Likewise. Use varobj_update_error.
6897 (new_root_variable): Set root varobj as valid by default.
6898 (varobj_invalidate): New function.
6899 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6900 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6901 Use varobj_update_error.
6903 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6906 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6907 Pascal language marker.
6908 * dwarf2read.c (set_cu_language): Likewise.
6910 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6912 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6913 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6914 instead of target_terminal_init since inferior_ptid isn't set yet.
6916 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6918 * MAINTAINERS (Write After Approval): Add myself.
6920 2007-02-09 Fred Fish <fnf@specifix.com>
6922 Based on work by Apple Computer, Inc.
6923 * event-top.c (async_request_quit): Call quit() whenever either
6924 quit_flag is set or immediate_quit is set.
6926 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6928 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6929 type to a pointer to const struct block.
6930 (ada_lookup_symbol_list): Don't cast away constness when calling
6931 remove_out_of_scope_renamings.
6933 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6935 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6936 address of 'filename'; it is always non null.
6938 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6940 * exec.c (add_to_section_table): Do not discard empty sections.
6942 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6944 * features/Makefile, features/arm-with-iwmmxt.xml,
6945 features/gdbserver-regs.xsl, features/number-regs.xsl,
6946 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6947 * regformats/arm-with-iwmmxt.dat: Generate.
6948 * NEWS: Mention iWMMXt.
6950 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6952 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6953 (xml-tdesc.o): Update.
6954 * xml-support.c: Add a comment.
6955 (gdb_xml_enums_boolean): New variable.
6956 (gdb_xml_parse_attr_enum): Use strcasecmp.
6957 * xml-support.h (gdb_xml_enums_boolean): Declare.
6958 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6959 next_regnum, and current_union.
6960 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6961 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6962 (field_attributes, union_children, reg_attributes, union_attributes)
6963 (vector_attributes, feature_attributes, feature_children): New.
6964 (target_children): Make static. Add <feature>.
6965 (tdesc_elements): Make static.
6966 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6967 (struct tdesc_feature, tdesc_feature_p): New types.
6968 (struct target_desc): Add features member.
6969 (struct tdesc_arch_data, tdesc_data): New.
6970 (target_find_description): Clarify error message. Warn about
6971 ignored register descriptions.
6972 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6973 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6974 (tdesc_data_cleanup, tdesc_numbered_register)
6975 (tdesc_numbered_register_choices, tdesc_find_register)
6976 (tdesc_register_name, tdesc_register_type)
6977 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6978 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6979 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6980 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6981 (tdesc_create_feature, tdesc_record_type): New.
6982 (free_target_description): Free features.
6983 (_initialize_target_descriptions): Initialize tdesc_data.
6984 * arch-utils.c (default_remote_register_number): New.
6985 * arch-utils.h (default_remote_register_number): New prototype.
6986 * target-descriptions.h (set_tdesc_pseudo_register_name)
6987 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6988 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6989 (tdesc_numbered_register, tdesc_numbered_register_choices)
6990 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6991 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6992 (tdesc_create_reg): Declare.
6993 * gdbarch.sh (remote_register_number): New entry.
6994 * gdbarch.c, gdbarch.h: Regenerate.
6995 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6996 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6998 * arm-tdep.c (arm_register_aliases): New.
6999 (arm_register_name_strings): Rename to...
7000 (arm_register_names): ...this. Make const. Delete the old version.
7001 (current_option, arm_register_byte): Delete.
7002 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
7003 (value_of_arm_user_reg): New.
7004 (arm_gdbarch_init): Verify any described registers. Call
7005 tdesc_use_registers. Don't use arm_register_byte. Create aliases
7006 for standard register names.
7007 (_initialize_arm_tdep): Do not adjust arm_register_names.
7008 * user-regs.c (struct user_reg): Add baton member.
7009 (append_user_reg, user_reg_add_builtin, user_regs_init)
7010 (user_reg_add, value_of_user_reg): Use a baton for user
7012 * std-regs.c: Update.
7013 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
7014 (user_reg_add): Add baton argument.
7015 * NEWS: Mention target description register support.
7016 * features/arm-core.xml, features/arm-fpa.xml: New.
7017 * eval.c (evaluate_subexp_standard): Allow ptype $register
7018 when the program is not running.
7020 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
7022 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
7024 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7026 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
7027 info->disassembler_options to "any".
7029 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7031 * varobj.c (install_new_value): Only call value_get_print_value
7034 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7036 Reported by timeless@gmail.com:
7037 * gdb/target.c (target_flash_erase): Do not return void value.
7038 (target_flash_done): Likewise.
7039 * gdb/cli/cli-cmds.c (source_command): Likewise.
7041 2007-02-08 Fred Fish <fnf@specifix.com>
7043 Based on work by Apple Computer, Inc.
7044 * event-top.c (handle_sigint): Set quit_flag.
7045 (async_request_quit): Don't set quit_flag. Avoid calling quit()
7046 if quit_flag has already been reset.
7048 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7050 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7053 2007-02-08 Fred Fish <fnf@specifix.com>
7055 * defs.h (request_quit): Remove declaration.
7056 * utils.c (request_quit): Remove definition.
7058 2007-02-08 Joel Brobecker <brobecker@gnat.com>
7059 Jan Kratochvil <jan.kratochvil@redhat.com>
7060 Daniel Jacobowitz <dan@codesourcery.com>
7062 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7063 (skip_prologue): Allow bl->blrl used by PIC code.
7065 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7066 Daniel Jacobowitz <dan@codesourcery.com>
7068 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7069 initialize tmp_obstack.
7070 * p-valprint.c (pascal_object_print_value_fields)
7071 (pascal_object_print_value): Likewise.
7073 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7075 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7077 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7079 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7080 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7082 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7084 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7086 (tdesc_parse_xml): Cache expanded descriptions.
7088 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7090 * Makefile.in (XMLFILES): New.
7091 (COMMON_OBS): Add xml-builtin.o.
7092 (xml-builtin.c, stamp-xml): New rules.
7093 (xml-tdesc.o): Update.
7094 * features/feature_to_c.sh: New file.
7095 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7096 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7097 (gdb_xml_start_element): Initialize scope after possibly reallocating
7098 scopes. Move cleanup later. Handle the XInclude description
7100 (gdb_xml_end_element): Only parse the body if there is a current element.
7101 Call XML_DefaultCurrent if there is no element.
7102 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7103 (struct xinclude_parsing_data, xinclude_start_include)
7104 (xinclude_end_include, xml_xinclude_default)
7105 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7106 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7107 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7108 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7109 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7110 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7111 XInclude directives. Use the compiled in DTD.
7112 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7113 directory name. Do not warn here.
7114 (file_read_description_xml): Update call. Warn here instead. Pass
7116 (fetch_available_features_from_target): New.
7117 (target_read_description_xml): Use it.
7118 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7120 * features/xinclude.dtd: New file.
7122 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7124 * linux-thread-db.c (check_for_thread_db): Return early if we have
7125 no libthread_db support.
7127 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7129 * mi/mi-parse.h: Include <sys/time.h>.
7131 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
7133 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7134 instead of print_variable_value to print values.
7136 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7138 * mi/mi-main.c: Numerous formatting changes.
7139 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7140 removed in my previous change.
7142 2007-02-03 Eli Zaretskii <eliz@gnu.org>
7144 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7145 Use 1000000L instead of 1000000.
7147 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7149 Based on work by Apple Computer, Inc.
7151 * configure.ac: Test for sys/resource.h and getrusage.
7152 * configure, config.in: Regenerate.
7154 * mi/mi-main.c: Include <sys/resource.h> if present.
7155 (rusage): Declare if HAVE_GETRUSAGE.
7156 (current_command_ts, do_timings): New static variables.
7157 (timestamp, print_diff_now, print_diff, timeval_diff):
7158 New static timing functions.
7159 (mi_cmd_enable_timings): New function for new MI command.
7160 (captured_mi_execute_command, mi_execute_async_cli_command):
7161 Call timing functions.
7163 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7166 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7168 * mi/mi-parse.h: (mi_timestamp): New structure.
7169 (mi_parse): Add mi_timestamp* member.
7171 2007-02-02 Denis Pilat <denis.pilat@st.com>
7173 * thread.c (make_cleanup_restore_current_thread): New function.
7174 (info_threads_command): Use of make_cleanup_restore_current_thread
7175 to restore the current thread and the selected frame.
7176 (restore_selected_frame): New function.
7177 (struct current_thread_cleanup): Add frame_id field.
7178 (do_restore_current_thread_cleanup): Add restoring of the selected
7180 (make_cleanup_restore_current_thread): Likewise.
7181 (thread_apply_all_command): backup the selected frame while
7182 entering the function and restore it at exit.
7183 (thread_apply_command): Likewise.
7185 2007-02-02 Denis Pilat <denis.pilat@st.com>
7187 * MAINTAINERS (Write After Approval): Add myself to the list.
7189 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7191 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7192 (m32r_store_register): Ditto.
7194 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7196 * ser-mingw.c (pipe_windows_open)
7197 (pipe_windows_read, pipe_windows_write): Declare
7198 variables at the top of the function.
7200 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7202 * doublest.c (floatformat_from_length): Use the right element from
7203 gdbarch floatformats.
7204 (floatformat_from_type, extract_typed_floating)
7205 (store_typed_floating): Likewise.
7206 * doublest.h: Remove declarations for undefined floatformat arrays.
7207 * gdbarch.sh (float_format, double_format, long_double_format): Change
7209 (pformat): Update for pairs.
7210 * gdbarch.c, gdbarch.h: Regenerated.
7211 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7212 (floatformats_ieee_double_littlebyte_bigword)
7213 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7214 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7215 (floatformats_vax_d): New variables.
7216 (builtin_type_ieee_single, builtin_type_ieee_double)
7217 (builtin_type_arm_ext, builtin_type_ia64_spill)
7218 (builtin_type_ia64_quad): Replace arrays with individual types.
7219 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7220 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7221 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7222 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7223 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7224 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7225 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7226 unused and endian-specific types.
7227 (recursive_dump_type): Update for floatformat pairs.
7228 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7229 (build_gdbtypes): Use build_flt.
7230 (_initialize_gdbtypes): Update set of initialized types.
7231 * gdbtypes.h: Update declarations to match gdbtypes.c.
7232 (struct main_type): Store a pointer to two floatformats.
7233 * arch-utils.c (default_float_format, default_double_format): Delete.
7234 * arch-utils.h (default_float_format, default_double_format): Delete.
7236 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7237 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7238 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7239 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7240 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7242 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7244 * target.c (maintenance_print_target_stack): New function.
7245 (initialize_targets): Add new "maintenance print target-stack"
7248 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7250 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7252 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7254 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7255 (struct dwarf2_loclist_baton): Likewise.
7257 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7259 * cli/cli-script.c: Include breakpoint.h.
7260 (build_command_line): Require arguments only for if and while
7262 (get_command_line, execute_user_command, execute_control_command):
7263 Fix wording of warning messages.
7264 (print_command_lines): Print breakpoint commands.
7265 (execute_control_command): Call commands_from_control_command to
7266 handle the `commands' command inside a body of a flow-control
7268 (read_next_line): Recognize the `commands' command and build a
7269 command line structure for it.
7270 (recurse_read_control_structure, read_command_lines): Handle
7271 `commands' similarly to `if' and `while'.
7273 * breakpoint.c (get_number_trailer): Document the special meaning
7274 of NULL as the first argument PP.
7275 (commands_from_control_command): New function.
7277 * breakpoint.h (commands_from_control_command): Add prototype.
7279 * defs.h (commands_control): New enumerated value for enum
7280 command_control_type.
7282 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7284 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7285 (ada_exception_sal): Update accordingly.
7287 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7289 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7290 * NEWS: Describe CHAR array vs. string identifcation rules.
7292 2007-01-25 Paul Brook <paul@codesourcery.com>
7294 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7296 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7298 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7299 expression is empty, bother to return the 'optimized out' value we
7300 construct. (Thanks to Carl Burch.)
7302 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7304 * varobj.c (c_value_of_root, c_value_of_child)
7305 (cplus_describe_child): Don't call release_value.
7307 2007-01-24 Thiemo Seufer <ths@mips.com>
7309 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7312 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7314 Refactor getting children name, value and type access
7316 * varobj.c (get_type_deref): Remove.
7317 (adjust_value_for_child_access): New.
7318 (c_number_of_children): Use the above.
7319 (c_describe_child): Likewise.
7320 (enum accessibility): New.
7321 (match_accessibility): New function.
7322 (cplus_describe_child): New function.
7323 (cplus_name_of_child, cplus_value_of_child)
7324 (cplus_type_of_child): Reimplement in terms
7325 of cplus_describe_child.
7326 (cplus_number_of_children): Use
7327 adjust_value_for_child_access.
7329 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7331 Fix computation of the 'editable' attribute and
7332 value changeability for for references.
7333 * varobj.c (get_value_type): New function.
7334 (c_variable_editable): Use get_value_type.
7335 (varobj_value_is_changeable): Likewise.
7337 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7339 * source.c (find_and_open_source): Try rewriting the source
7340 path inside filename if dirname is NULL.
7342 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7344 * dwarf2read.c (add_partial_symbol): Create an extra partial
7345 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7346 (new_symbol): Likewise for symbols.
7348 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7350 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7352 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7354 * value.c (value_primitive_field): Copy the full 'location'
7355 contents, instead of assuming that copying ADDRESS will
7356 bring over everything in the union. Remove obsolete comment.
7358 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7360 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7361 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7362 (m32c_m16c_pointer_to_address): Separate code from declarations.
7364 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7366 * target.c (update_current_target): Correct typo.
7368 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7370 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7373 2007-01-11 Andrew Cagney <cagney@redhat.com>
7374 Daniel Jacobowitz <dan@codesourcery.com>
7375 Jan Kratochvil <jan.kratochvil@redhat.com>
7377 * dwarf2-frame.c (execute_cfa_program): New support of
7378 `DW_CFA_GNU_negative_offset_extended'.
7380 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7382 * NEWS: Mention flash support for "load" and new remote packets.
7384 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7386 * breakpoint.c (delete_command): Skip redundant loop iterations.
7388 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7390 * gdbarch.sh (register_type): Update comment.
7391 * gdbarch.h: Regenerated.
7392 * arch-utils.c (generic_register_size): Call register_type.
7393 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7394 * m32c-tdep.c (check_for_saved): Likewise.
7395 * mips-tdep.c (mips_print_register, print_gp_register_row)
7396 (mips_print_registers_info): Likewise.
7397 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7399 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7400 (sh64_do_register, sh64_print_register)
7401 (sh64_media_print_registers_info): Likewise.
7402 * tui/tui-regs.c (tui_register_format): Likewise.
7404 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7406 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7408 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7409 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7410 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7411 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7412 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7413 (make_symbol_completion_list): Likewise.
7415 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7416 Daniel Jacobowitz <dan@codesourcery.com>
7418 * buildsym.c (end_symtab): Use preallocated symtab if available.
7419 Fill in SYMBOL_SYMTAB.
7420 * buildsym.h (struct subfile): Add symtab member.
7421 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7422 (struct file_entry): Add symtab.
7423 (free_cu_line_header): New function.
7424 (read_file_scope): Use it. Save line_header in the cu. Process
7426 (add_file_name): Initialize new symtab member.
7427 (dwarf_decode_lines): Create symtabs for included files.
7428 (new_symbol): Set SYMBOL_SYMTAB.
7429 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7430 (search_symbols): Likewise.
7431 * symtab.h (struct symbol): Add symtab member.
7432 (SYMBOL_SYMTAB): Define.
7434 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7436 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7438 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7440 * arch-utils.c (show_endian): Correct reversed condition.
7442 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7444 * MAINTAINERS (Write After Approval): Add myself.
7446 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7447 Vladimir Prus <vladimir@codesourcery.com>
7449 Fix 'selected frame' varobjs.
7450 * varobj.c (struct varobj): Remove the error field.
7451 (varobj_set_value): Don't check var->error.
7452 (install_new_value): Don't set var->error.
7453 (varobj_update): Always pass the new value
7454 of the root via install_new_value.
7455 (create_child): Don't set error field.
7456 (new_variable): Likewise.
7457 (c_value_of_root): Always reevaluate the value
7458 of selected frame varobjs in the selected frame.
7459 Don't call reinit_frame_cache.
7461 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7463 * source.c (_initialize_source): Improve the help text of
7464 the substitute-path commands.
7466 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7468 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7469 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7470 (frv_skip_prologue): Remove prototypes.
7471 (frv_adjust_breakpoint_address): Renamed from
7472 frv_gdbarch_adjust_breakpoint_address.
7473 (frv_gdbarch_init): Adjust.
7475 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7477 * gdbarch.sh (deprecated_extract_return_value)
7478 (deprecated_store_return_value): Remove.
7479 (extract_return_value, store_return_value): Remove default values.
7480 * gdbarch.c, gdbarch.h: Regenerate.
7481 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7482 (legacy_store_return_value): Remove.
7483 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7486 * mi/mi-main.c: Remove obsolete comment.
7488 * regcache.c, regcache.h (deprecated_register_bytes)
7489 (deprecated_read_register_bytes)
7490 (deprecated_write_register_bytes): Remove.
7492 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7493 Don't forget to move destination pointer.
7495 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7497 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7499 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7501 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7502 past entry function with recent newlib.
7504 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7506 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7507 introduction. Specify -var-update more exactly.
7509 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7511 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7513 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7515 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7516 the Global Maintainers' invitation to be a global maintainer.
7518 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7520 * infrun.c (singlestep_pc): New variable.
7521 (resume): Set singlestep_pc.
7522 (context_switch): Add a debugging message. Flush the frame cache.
7523 (handle_inferior_event): Add debugging messages. Handle thread
7524 hops when a software single step has completed. Let context_switch
7525 handle flushing the frame cache.
7527 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7529 * NEWS: Mention target descriptions, "set tdesc filename",
7530 "unset tdesc filename", "show tdesc filename", and
7531 qXfer:features:read.
7532 * arch-utils.c (choose_architecture_for_target): New function.
7533 (gdbarch_info_fill): Call it.
7534 * target-descriptions.c (struct property): Make members non-const.
7535 (struct target_desc): Add arch member.
7536 (target_description_filename): New variable.
7537 (target_find_description): Try via XML first.
7538 (tdesc_architecture): New.
7539 (free_target_description, make_cleanup_free_target_description): New.
7540 (set_tdesc_property): Call xstrdup.
7541 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7542 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7543 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7544 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7545 * target-descriptions.h (tdesc_architecture)
7546 (make_cleanup_free_target_description, set_tdesc_architecture): New
7548 * Makefile.in (SFILES): Add xml-tdesc.c.
7549 (COMMON_OBS): Add xml-tdesc.o.
7550 (target-descriptions.o): Update.
7551 (xml-tdesc.o): New rule.
7552 * xml-tdesc.c, xml-tdesc.h: New files.
7553 * remote.c (PACKET_qXfer_features): New enum.
7554 (remote_protocol_features): Add qXfer:features:read.
7555 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7556 (_initialize_remote): Register qXfer:features:read.
7557 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7558 * features/gdb-target.dtd: New file.
7560 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7562 * copyright.sh: Clarify error.
7564 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7566 * symtab.c (matching_bfd_sections): Fix VMA matching for
7569 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7571 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7574 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7576 Updated copyright notices for most files.
7578 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7580 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7582 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7584 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7586 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7588 * configure, config.in: Regenerate.
7589 * defs.h (debug_file_directory): Declare.
7590 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7591 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7592 relocate it if DEBUGDIR_RELOCATABLE.
7593 * symfile.c (debug_file_directory): Make non-static.
7594 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7595 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7596 (_initialize_symfile): Don't initialize debug_file_directory here.
7598 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7600 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7603 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7605 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7606 frame_unwind_register to recurse.
7607 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7608 (alpha_heuristic_frame_prev_register): Likewise.
7609 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7610 * m32c-tdep.c (m32c_prev_register): Likewise.
7611 * frame.c (frame_register_unwind_location): Remove FIXME.
7613 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7614 Eli Zaretskii <eliz@gnu.org>
7616 * copyright.sh: New file.
7618 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7620 * configure.ac: Check for XML_StopParser.
7621 * xml-support.c (gdb_xml_body_text): Check for an error.
7622 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7623 (gdb_xml_end_element_wrapper): Likewise.
7624 * config.in, configure: Regenerated.
7626 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7628 * varobj.c (install_new_value): Always update print_value.
7629 (value_get_print_value): Immediately return NULL for missing
7632 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7634 * configure.ac: Tighten pattern for extracting value of
7635 DEPRECATED_TM_FILE from the target makefile fragment.
7636 * configure: Regenerated.
7638 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7640 * linux-nat.c (struct simple_pid_list): Add status.
7641 (add_to_pid_list): Record the PID's status.
7642 (linux_record_stopped_pid): Likewise. Make static.
7643 (pull_pid_from_list): Return the saved status.
7644 (linux_nat_handle_extended): Deleted.
7645 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7646 Make static. Handle non-SIGSTOP for a new thread's first signal.
7647 (flush_callback): Handle unexpected pending signals.
7648 (linux_nat_wait): Update calls to changed functions.
7649 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7650 Remove prototypes for newly static functions.
7652 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7654 * gdbarch.sh (value_from_register): New gdbarch function.
7655 * gdbarch.c, gdbarch.h: Regenerate.
7656 * findvar.c (default_value_from_register): New function.
7657 (value_from_register): Use gdbarch_value_from_register.
7658 * value.h (default_value_from_register): Declare.
7659 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7660 spu_value_to_register): Remove.
7661 (spu_value_from_register): New function.
7662 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7663 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7664 Call set_gdbarch_value_from_register.
7665 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7666 s390_value_to_register): Remove.
7667 (s390_value_from_register): New function.
7668 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7669 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7670 Call set_gdbarch_value_from_register.
7672 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7674 * NEWS: Add "set sysroot" and "show sysroot".
7675 * solib.c (solib_absolute_prefix): Delete. Replace
7676 all uses with gdb_sysroot.
7677 (_initialize_solib): Add "set sysroot" and "show sysroot".
7678 Make "solib-absolute-prefix" an alias to it.
7680 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7682 * frame.c (get_frame_register_bytes): New function.
7683 (put_frame_register_bytes): Likewise.
7684 * frame.h (get_frame_register_bytes): Declare.
7685 (put_frame_register_bytes): Likewise.
7686 * findvar.c (value_from_register): Always construct lval_register
7687 values. Use get_frame_register_bytes.
7688 * valops.c (value_assign): Use get_frame_register_bytes and
7689 put_frame_register_bytes.
7691 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7693 * MAINTAINERS: Update Stan Shebs' email address.
7695 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7697 * ada-lang.c (is_known_support_routine): Improve the implementation.
7699 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7701 * ada-lang.c: Add include of source.h.
7702 (is_known_support_routine): Improve the check verifying that the file
7703 associated to this frame exists.
7704 * Makefile.in (ada-lang.o): Add dependency on source.h.
7706 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7708 * ax-general.c (ax_const_l): Select proper opcode for the given
7711 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7713 * varobj.c (c_value_of_root): Don't select frame if variable
7714 object is out of scope.
7716 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7718 * varobj.c (struct varobj): New member print_value.
7719 (install_new_value): Compare last printed value with current one
7720 instead of contents.
7721 (new_variable): Initialize var->print_value to NULL.
7722 (free_variable): Free var->print_value.
7723 (value_get_print_value): New function derived from
7724 c_value_of_variable.
7725 (c_value_of_variable): Use value_get_print_value.
7727 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7729 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7731 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7733 * NEWS: Add entries for new catch commands.
7735 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7737 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7738 (add_partial_symbol): Correct identification of external references.
7739 (process_structure_scope): Likewise.
7740 (read_partial_die): Handle DW_AT_byte_size attribute.
7742 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7744 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7746 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7748 * varobj.c (get_type_deref): Fix variable objects for references to
7751 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7753 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7756 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7758 * memory-map.c (struct_memory_map_parsing_data): Remove most
7759 members. Make property_name an array.
7760 (free_memory_map_parsing_data, memory_map_start_element)
7761 (memory_map_end_element, memory_map_character_data): Delete.
7762 (memory_map_start_memory, memory_map_end_memory)
7763 (memory_map_start_property, memory_map_end_property): New functions.
7764 (property_attributes, memory_children, memory_type_enum)
7765 (memory_attributes, memory_map_children, memory_map_elements): New.
7766 (parse_memory_map): Rewrite.
7767 * xml-support.c (debug_xml): New.
7768 (xml_get_required_attribute, xml_get_integer_attribute)
7769 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7771 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7772 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7773 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7774 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7775 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7776 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7777 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7779 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7780 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7781 (enum gdb_xml_element_flag, struct gdb_xml_element)
7782 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7783 (struct gdb_xml_enum): New.
7784 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7785 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7786 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7787 (xml_get_required_attribute, xml_get_integer_attribute)
7788 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7789 * Makefile.in (xml_support_h, xml-support.o): Update.
7791 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7793 * Makefile.in (eval.o): Update dependencies.
7794 * eval.c: Include "ui-out.h" and "exceptions.h".
7795 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7796 Use value_zero if an error occurs when avoiding side effects.
7797 * varobj.c (c_value_of_root): Initialize new_val.
7799 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7801 * varobj.c (varobj_list_children): Stop if the number of children is
7803 (c_number_of_children):
7805 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7807 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7808 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7809 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7810 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7811 sizeof, instead of hardcoded constants.
7813 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7815 * CONTRIBUTE: Use sourceware.org.
7817 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7819 * buildsym.c (start_subfile): Handle producer.
7820 (record_producer): New function.
7821 * buildsym.h (struct subfile): Include producer.
7822 (record_producer): New prototype.
7823 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7824 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7825 armcc_cfa_offsets_reversed.
7826 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7827 (dwarf2_frame_find_quirks): New function.
7828 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7829 (decode_frame_entry_1): Record the CIE version. Record the
7830 augmentation. Skip armcc augmentations.
7831 * dwarf2read.c (read_file_scope): Save the producer.
7832 * symtab.h (struct symtab): Rename unused version member to
7835 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7837 * configure.ac (build_warnings): Use -Wall and
7838 -Wdeclaration-after-statement.
7839 * configure: Regenerated.
7841 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7843 Simplify access to variours properties of child
7844 variable objects in C.
7845 * varobj.c (value_struct_element_index): New function.
7846 (c_describe_child): New function.
7847 (c_name_of_child, c_value_of_child)
7848 (c_type_of_child): Rewrite to use c_describe_child.
7850 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7853 * varobj.c: Include "vec.h".
7854 (varobj_p): New typedef, declare vector of those.
7855 (struct varobj): Use vector for the 'children' member.
7856 (child_exists): Remove.
7857 (save_child_in_parent): Remove.
7858 (remove_child_from_parent): Remove.
7859 (struct varobj_child): Remove.
7860 (struct vstack): Remove.
7861 (vpush, vpop): Remove.
7862 (varobj_list_children): Adjust to work work vector.
7863 (varobj_update): Likewise. Use vectors for
7864 working stack and result.
7865 (delete_variable_1): Likewise.
7866 * Makefile.in (varobj.o): Update dependencies.
7868 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7870 Port from Apple's version.
7872 * varobj.c (type_changeable): Rename to...
7873 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7874 (is_root_p): New function. Use it everywhere.
7876 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7878 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7881 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7883 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7885 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7887 * hpread.c (hpread_type_lookup): Fix compilation failure.
7889 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7891 * NEWS: New port to S+core.
7892 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7895 * Makefile.in: Add dependencies for S+core files.
7896 * configure.tgt (score*, score-*-*): Add S+core target.
7897 * config/score/embed.mt: New file.
7898 * score-tdep.c: New file.
7899 * score-tdep.h: New file.
7901 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7903 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7904 the appropriate type rather than a bogus void type.
7906 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7908 * ada-lang.h (ada_find_printable_frame): Remove.
7909 (ada_exception_catchpoint_p, ada_decode_exception_location)
7910 (ada_decode_assert_location): Add declaration.
7911 * ada-lang.c: Add include of annotate.h and valprint.h.
7912 (exception_catchpoint_kind): New enum.
7913 (function_name_from_pc, is_known_support_routine)
7914 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7915 (ada_exception_name_addr_1, ada_exception_name_addr)
7916 (print_it_exception, print_one_exception, print_mention_exception)
7917 (print_it_catch_exception, print_one_catch_exception)
7918 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7919 (print_it_catch_exception_unhandled)
7920 (print_one_catch_exception_unhandled)
7921 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7922 (print_one_catch_assert, print_mention_catch_assert)
7923 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7924 (ada_get_next_arg, catch_ada_exception_command_split)
7925 (ada_exception_sym_name, ada_exception_sym_name)
7926 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7927 (ada_parse_catchpoint_condition, ada_exception_sal)
7928 (ada_decode_exception_location)
7929 (ada_decode_assert_location): New function.
7930 (catch_exception_unhandled_breakpoint_ops): New global variable.
7931 (catch_assert_breakpoint_ops): New global variable.
7932 * breakpoint.c: Add include of ada-lang.h.
7933 (print_one_breakpoint): Do not print the condition for Ada
7934 exception catchpoints.
7935 (create_ada_exception_breakpoint): New function.
7936 (catch_ada_exception_command, catch_assert_command): New function.
7937 (catch_command_1): Add support for the new "catch exception" and
7938 "catch assert" commands.
7939 (_initialize_breakpoint): Add help description for the new catch
7941 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7943 (breakpoint.o): Add dependency on ada-lang.h.
7945 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7947 * coffread.c (cs_to_section): If bfd_section is found, always
7948 return its section index.
7949 (coff_symtab_read): Determine the minimal_symbol_type using the
7952 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7953 Daniel Jacobowitz <dan@codesourcery.com>
7955 * Makefile.in (top.o): Update.
7956 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7957 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7958 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7960 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7962 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7964 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7965 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7967 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7969 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7970 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7971 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7972 greater than or equal to zero.
7973 * m2-typeprint.c (m2_array): Likewise.
7974 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7975 * gdbtypes.c (copy_type_recursive): Correct == typo.
7976 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7977 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7979 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7980 (default_macro_scope): Remove unused variable.
7981 * prologue-value.h (pv_area_find_reg): Don't name an argument
7983 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7984 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7986 (cleanup_sigint_signal_handler): Remove casts.
7987 * valprint.c (val_print): Use a volatile local for the modified
7989 * varobj.c (languages): Remove extra array dimension.
7990 (varobj_create): Correct access to languages array.
7991 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7993 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7994 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7995 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7996 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7997 (mi_cmd_data_write_memory): Likewise.
7998 * signals/signals.c (target_signal_to_string): Cast to int before
8000 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
8003 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8005 * NEWS: Mention pointer to member improvements.
8006 * Makefile.in (gnu-v3-abi.o): Delete special rule.
8007 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
8008 * ada-valprint.c (ada_print_scalar): Update for new type codes.
8009 * c-typeprint.c (c_print_type): Update for new type codes.
8010 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
8011 (c_type_print_base): Likewise.
8012 (c_type_print_args): Rewrite.
8013 * c-valprint.c (c_val_print): Update for new type codes. Remove
8014 support for references to members. Treat methods like functions.
8015 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
8016 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
8017 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
8018 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
8019 (struct cp_abi_ops): Add corresponding members.
8020 * cp-valprint.c (cp_print_class_method): Delete.
8021 (cp_find_class_member): New function.
8022 (cp_print_class_member): Use it. Simplify support for bogus
8024 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
8025 lookup_methodptr_type.
8026 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
8027 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
8028 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
8030 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
8031 references returned by user defined operators.
8032 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
8033 (f_type_print_varspec_suffix): Remove support for member pointers.
8034 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
8036 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
8037 (lookup_methodptr_type): New.
8038 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
8039 (recursive_dump_type): Update for new types.
8040 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
8041 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
8042 (lookup_memberptr_type, lookup_methodptr_type)
8043 (smash_to_memberptr_type): New prototypes.
8044 (smash_to_method_type): Formatting fix.
8045 (lookup_member_type, smash_to_member_type): Delete prototypes.
8046 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
8047 Do not rely on debug information for the vptr or the method's
8048 enclosing type. Handle function descriptors for IA64.
8049 (gnuv3_virtual_fn_field): Rewrite using the new functions.
8050 (gnuv3_find_method_in, gnuv3_print_method_ptr)
8051 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8052 (gnuv3_method_ptr_to_value): New.
8053 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8054 * hpread.c (hpread_type_lookup): Update for new types.
8055 * infcall.c (value_arg_coerce): Likewise.
8056 * m2-typeprint.c (m2_print_type): Remove explicit support
8057 for member pointers.
8058 * m2-valprint.c (m2_val_print): Likewise.
8059 * p-typeprint.c (pascal_type_print_varspec_prefix)
8060 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8061 * p-valprint.c (pascal_val_print): Likewise.
8062 (pascal_object_print_class_method, pascal_object_print_class_member):
8064 * p-lang.h (pascal_object_print_class_method)
8065 (pascal_object_print_class_member): Delete prototypes.
8066 * stabsread.c (read_type): Update for new types.
8067 * typeprint.c (print_type_scalar): Likewise.
8068 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8069 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8070 argument. Construct a pointer to member if the address of a
8071 function or data member is requested.
8072 (value_cast_pointers): Don't modify the input value.
8073 (value_cast): Adjust pointer to member handling for new types.
8074 Allow null pointer to member constants. Don't modify the input
8076 (value_ind): Remove pointer to member check. Handle function
8077 descriptors for function pointers.
8078 (value_struct_elt, value_find_oload_method_list, check_field):
8079 Remove pointer to member checks.
8080 * value.c (unpack_long): Allow pointers to data members.
8081 (value_from_longest): Allow member pointers.
8082 * value.h (value_aggregate_elt): Add want_address.
8083 * varobj.c (c_variable_editable): Remove check for members.
8084 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8085 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8087 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8088 * c-lang.h (cp_print_class_method): Delete prototype.
8089 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8090 * mips-tdep.c (mips_gdbarch_init): Likewise.
8091 * gdbarch.c, gdbarch.h: Regenerated.
8093 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8095 * rs6000-tdep.c (rs6000_use_struct_convention)
8096 (rs6000_extract_return_value, rs6000_store_return_value)
8097 (rs6000_extract_struct_value_address): Remove.
8098 (rs6000_return_value): New function.
8099 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8100 store_return_value, deprecated_extract_struct_value_address and
8101 deprecated_use_struct_convention. Use rs6000_return_value
8104 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
8106 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8107 -display-disable, -display-enable, -display-insert and
8110 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8112 * breakpoint.c (remove_breakpoint): Remove dead code.
8114 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
8116 * varobj.c: Include block.h.
8117 (c_value_of_root): Check scope within nested statements.
8119 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8121 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8122 regcache_cooked_write_signed instead of
8123 deprecated_write_register_bytes.
8125 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8127 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8129 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8131 Followed the Start of New Year Procedure:
8132 * ChangeLog-2006: New file, containing all the entries for 2006.
8133 * ChangeLog: Removed all 2006 entries, and changed the reference
8134 to the previous ChangeLog to point to ChangeLog 2006.
8135 * top.c (print_gdb_version): Update copyright year.
8137 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8139 * Makefile.in (remote-sds.o): Remove.
8140 * remote-sds.c: Delete.
8142 For older changes see ChangeLog-2006.
8148 version-control: never