1 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
3 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
6 2007-10-16 Kevin Buettner <kevinb@redhat.com>
8 * m32r-tdep.c (decode_prologue): Sign extend offset for
10 (m32r_frame_unwind_cache): Likewise.
12 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
14 * rs6000-tdep.c (skip_prologue): Restore comment with
15 function description to its proper place.
17 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19 * NEWS: Mention gdbserver PowerPC improvements.
21 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
23 * features/Makefile (WHICH): Add PowerPC register definitions.
24 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
25 (rs6000/powerpc-64-expedite): New macros.
26 ($(outdir)/%.dat): Handle subdirectories.
27 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
28 regformats/rs6000/powerpc-e500.dat: New generated files.
30 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
32 * ppc-linux-nat.c (ppc_linux_read_description): New.
33 (_initialize_ppc_linux_nat): Set to_read_description.
34 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
36 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
38 * NEWS: Document target described register support for PowerPC.
39 * ppc-tdep.h: Remove ppc_spr constants.
40 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
41 ppc_builtin_type_vec128 members.
42 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
43 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
44 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
45 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
46 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
47 * rs6000-tdep.c: Include preparsed descriptions.
48 (init_sim_regno_table): Do not iterate over pseudo registers.
49 Look up segment registers by name. Use sim_spr_register_name
51 (rs6000_register_sim_regno): Call init_sim_regno_table here.
52 (rs6000_builtin_type_vec128): Delete.
53 (rs6000_register_name): Only handle SPE pseudo registers and upper
54 halves. Call tdesc_register_name for everything else.
55 (rs6000_register_type): Delete. Replace with...
56 (rs6000_pseudo_register_type): ...this new function. Only handle
58 (rs6000_register_reggroup_p): Delete. Replace with...
59 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
60 handle SPE pseudo registers.
61 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
63 (rs6000_register_to_value, rs6000_value_to_register): Remove check
65 (e500_register_reggroup_p): Delete.
66 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
67 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
68 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
69 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
70 (registers_powerpc, registers_403, registers_403GC, registers_505)
71 (registers_860, registers_601, registers_602, registers_603)
72 (registers_604, registers_750, registers_7400, registers_e500): Delete
74 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
76 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
77 (variants): Delete outdated comment. Use standard target descriptions
78 instead of "struct reg" arrays.
79 (init_variants): Delete.
80 (rs6000_gdbarch_init): Do not guess word size from the BFD
81 architecture if we have a target description. Select a variant
82 before creating a new architecture. Use the variant's target
83 description if the target did not define a register layout.
84 Validate target-supplied registers. Reject mismatches. Use
85 fixed register numbers and new constants instead of magic
86 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
87 (_initialize_rs6000_tdep): Initialize the preparsed target
89 * target-descriptions.c (tdesc_predefined_types): Add int128 and
91 (tdesc_find_register_early): New function.
92 (tdesc_numbered_register): Use it.
93 (tdesc_register_size): New function.
94 (tdesc_use_registers): Take a target_desc argument. Do not use
96 * target-descriptions.h (tdesc_use_registers): Update prototype
98 (tdesc_register_size): New prototype.
99 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
100 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
101 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
102 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
103 (rs6000-tdep.o): Update.
104 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
105 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
106 * mips-tdep.c (mips_gdbarch_init): Likewise.
108 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
110 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
111 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
112 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
113 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
114 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
115 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
116 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
119 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
121 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
122 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
123 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
124 feature descriptions for standard PowerPC register sets.
126 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
127 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
128 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
129 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
130 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
131 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
132 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
133 target descriptions for PowerPC processors.
135 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
137 * target-descriptions.c (tdesc_predefined_types): New.
138 (tdesc_named_type): Use it.
139 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
140 (_intialize_target_descriptions): Register "maint print c-tdesc".
141 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
142 (cfiles, %.c): New rules.
143 * features/arm-with-iwmmxt.c, features/mips-linux.c,
144 features/mips64-linux.c: New generated files.
146 * arm-linux-nat.c: Include preparsed description instead of
148 (super_xfer_partial, arm_linux_xfer_partial): Remove.
149 (arm_linux_read_description): New function.
150 (_initialize_arm_linux_nat): Set to_read_description instead of
151 to_xfer_partial. Initialize preparsed description.
152 * config/arm/linux.mh (TDEP_XML): Delete.
153 * mips-linux-nat.c: Include preparsed descriptions instead of
155 (super_xfer_partial, mips_linux_xfer_partial): Remove.
156 (mips_linux_read_description): New function.
157 (_initialize_mips_linux_nat): Set to_read_description instead of
158 to_xfer_partial. Initialize preparsed description.
159 * config/mips/linux.mh (TDEP_XML): Delete.
160 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
161 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
162 (mips64_linux_c): New macros.
163 (arm-linux-nat.o, mips-linux-nat.o): Update.
165 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
167 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
168 Replace xasprintf by xstrprintf.
169 symfile-mem.c (add_vsyscall_page): Ditto.
171 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
173 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
174 replacing use of global current_gdbarch.
175 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
176 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
178 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
179 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
180 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
181 (ia64_sigtramp_frame_cache): Update caller.
183 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
185 * gdbarch.sh (deprecated_use_struct_convention): Remove.
186 (extract_return_value, store_return_value): Remove.
187 (return_value): Remove default implementation.
188 * gdbarch.c, gdbarch.h: Regenerate.
190 * stack.c (return_command): Remove compatibility hack.
191 * arch-utils.c (legacy_return_value): Remove.
192 * arch-utils.h (legacy_return_value): Likewise.
194 * arch-utils.c (always_use_struct_convention): Remove.
195 * arch-utils.h (always_use_struct_convention): Likewise.
196 * value.c (generic_use_struct_convention): Remove.
197 * defs.h (generic_use_struct_convention): Likewise.
199 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
201 * avr-tdep.c (avr_return_value): New function.
202 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
203 set_gdbarch_extract_return_value.
205 * fvr-tdep.c (frv_return_value): New function.
206 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
207 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
208 and set_gdbarch_deprecated_use_struct_convention.
210 * ia64-tdep.c (ia64_use_struct_convention): Make static.
211 Add check for structure, union, or array types.
212 (ia64_extract_return_value): Make static.
213 (ia64_store_return_value): Make static. Support multi-word values.
214 (ia64_return_value): New function.
215 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
216 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
217 and set_gdbarch_deprecated_use_struct_convention.
219 2007-10-12 Joel Brobecker <brobecker@adacore.com>
221 * solib-target.c (solib_target_parse_libraries)
222 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
224 2007-10-12 Jim Blandy <jimb@codesourcery.com>
226 * serial.h (struct serial_ops): Document read_prim to return zero
228 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
229 read_prim returns zero, not SERIAL_TIMEOUT.
231 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
233 * alpha-mdebug-tdep.c: Include "gdb_string.h".
234 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
235 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
236 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
238 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
239 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
240 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
241 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
242 * config/alpha/tm-alpha.h: Remove file.
244 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
246 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
247 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
249 * config/pa/tm-hppa.h: Delete file.
250 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
251 * config/pa/hppahpux.mt: Likewise.
252 * config/pa/hppa.mt: Likewise.
253 * config/pa/linux.mt: Likewise.
254 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
256 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
258 * config/arm/nm-nbsdaout.h: Remove file.
259 * config/nm-nbsdaout.h: Likewise.
260 * config/nm-nbsd.h: Likewise.
262 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
264 * block.h (struct block): Remove "gcc_compile_flag" member.
265 (BLOCK_GCC_COMPILED): Remove.
266 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
267 * buildsym.c (finish_block): Do not set it.
268 * symmisc.c (dump_symtab_1): Do not dump it.
270 * value.h (using_struct_return): Remove "gcc_p" argument.
271 * value.c (using_struct_return): Likewise.
272 * eval.c (evaluate_subexp_standard): Adapt callers.
273 * infcall.c (call_function_by_hand): Likewise.
274 * stack.c (return_command): Likewise.
275 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
277 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
278 * gdbarch.c, gdbarch.h: Regenerate.
279 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
280 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
281 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
282 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
283 (push_dummy_code, call_function_by_hand): Adapt callers.
285 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
287 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
288 (finish_command_continuation, finish_command): Adapt callers.
290 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
292 * infcall.c (call_function_by_hand): Remove special handling
293 for HP aCC compiled code.
295 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
297 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
298 reference. Fix endianness bugs.
299 (cris_reg_struct_has_address): Remove.
300 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
301 and set_gdbarch_deprecated_use_struct_convention calls.
303 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
304 * gdbarch.c, gdbarch.h: Regenerate.
305 * infcall.c (call_function_by_hand): Remove handling of
306 deprecated_reg_struct_has_addr.
308 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
309 Kazu Hirata <kazu@codesourcery.com>
311 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
312 checking watchpoint resources.
314 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
316 * memattr.c (inaccessible_by_default): Change the initial
319 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
322 * coffread.c (read_one_sym): Check for read errors.
324 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
326 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
327 instead of "Linux 2.6.19" in comment.
328 (linux_xfer_partial): Use "GNU/Linux target" instead of
329 "Linux target" in comment.
330 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
331 (m68k_linux_get_sigtramp_info): Likewise.
333 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
335 * MAINTAINERS (language support): List Joel and Paul as
338 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
340 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
342 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
343 not set DEPRECATED_TM_FILE.
344 * config/arm/tm-arm.h: Delete file.
346 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
348 * MAINTAINERS (Write After Approval): Add self.
350 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
352 * buildsym.c (record_line): Remove empty lines followed by
353 end-of-sequence markers.
355 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
357 * configure.tgt: Recognize fido-*-elf.
359 2007-10-10 Joel Brobecker <brobecker@adacore.com>
363 2007-10-10 Markus Deuling <deuling@de.ibm.com>
365 * stack.c (print_frame_args, frame_info, return_command): Use
366 get_regcache_arch or get_frame_arch to get at the current architecture
367 by regcache or by frame, respectively.
369 2007-10-10 Markus Deuling <deuling@de.ibm.com>
371 * rs6000-nat.c (fetch_register, store_register)
372 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
373 get_regcache_arch to get at the current architecture by regcache.
375 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
376 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
377 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
378 current_gdbarch by gdbarch.
379 (rs6000_skip_trampoline_code, rs6000_register_to_value)
380 (rs6000_value_to_register): Use get_frame_arch to get at the current
381 architecture by frame_info.
383 2007-10-10 Markus Deuling <deuling@de.ibm.com>
385 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
386 get_regcache_arch to get at the current architecture by regcache.
388 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
389 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
390 get_regcache_arch to get at the current architecture by regcache.
392 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
393 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
394 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
395 current architecture by regcache.
397 2007-10-10 Markus Deuling <deuling@de.ibm.com>
399 * remote-mips.c (mips_wait, mips_fetch_registers)
400 (mips_store_registers): Use get_regcache_arch to get at the
401 current architecture by regcache.
403 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
404 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
405 get at the current architecture by regcache.
406 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
407 architecture by frame_info.
409 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
410 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
411 the current architecture by regcache.
413 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
414 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
415 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
416 current architecture by frame_info.
417 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
418 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
419 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
420 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
421 get at the current architecture by regcache.
423 * mips-linux-nat.c (mips_linux_register_addr)
424 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
425 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
426 (mips64_linux_regsets_fetch_registers)
427 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
428 the current architecture by regcache.
430 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
431 get at the current architecture by frame_info.
433 2007-10-10 Markus Deuling <deuling@de.ibm.com>
435 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
436 current architecture by regcache.
437 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
438 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
439 (mips_stub_frame_cache, mips_read_fp_register_single)
440 (mips_read_fp_register_double, mips_print_fp_register)
441 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
442 at the current architecture by frame_info.
443 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
444 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
445 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
446 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
447 (mips_o32_push_dummy_call, mips_o32_return_value)
448 (mips_o64_push_dummy_call, mips_o64_return_value)
449 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
452 2007-10-10 Markus Deuling <deuling@de.ibm.com>
454 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
455 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
456 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
457 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
458 (xtensa_register_write_masked, xtensa_register_read_masked)
459 (xtensa_supply_gregset, xtensa_store_return_value)
460 (xtensa_extract_return_value): Use get_regcache_arch to get at the
461 current architecture by regcache.
462 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
463 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
464 architecture by frame_info.
466 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
468 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
469 (thumb_analyze_prologue): Move pv_area_store_would_trash call
470 out of loop. Do not set cache->frameoffset.
471 (arm_scan_prologue): Use prologue-value mechanism. Do not set
472 frameoffset. Simplify framesize.
473 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
475 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
477 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
479 * target.c (update_current_target): Call setup_target_debug.
480 (push_target): Do not call it here.
482 2007-10-09 Michael Snyder <msnyder@specifix.com>
484 * MAINTAINERS: Update my email address.
486 2007-10-09 Markus Deuling <deuling@de.ibm.com>
488 * xtensa-tdep.c: Replace following current-gdbarch based macros by
490 (xtensa_pseudo_register_read)
491 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
492 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
493 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
494 (xtensa_pseudo_register_read)
495 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
496 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
497 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
498 (xtensa_frame_prev_register): NUM_AREGS.
499 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
500 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
501 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
502 (xtensa_supply_gregset, xtensa_frame_cache)
503 (xtensa_frame_prev_register): WS_REGNUM.
504 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
505 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
506 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
507 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
508 (xtensa_register_reggroup_p): REGMAP.
509 (call0_track_op): LITBASE_REGNUM.
510 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
511 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
512 (xtensa_frame_prev_register, AREG_NUMBER)
513 (xtensa_register_type): AR_BASE.
514 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
515 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
516 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
517 (xtensa_frame_cache, xtensa_frame_prev_register)
518 (xtensa_extract_return_value, xtensa_store_return_value)
519 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
520 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
521 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
522 (xtensa_frame_prev_register, xtensa_push_dummy_call)
523 (call0_frame_cache): A1_REGNUM.
524 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
525 (xtensa_push_dummy_call): A4_REGNUM.
526 (ARGS_FIRST_REG): A6_REGNUM.
527 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
528 (xtensa_frame_prev_register): A15_REGNUM.
529 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
530 them in the appropriate source file:
531 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
532 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
533 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
534 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
535 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
536 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
537 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
538 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
539 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
540 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
541 A13_REGNUM, A14_REGNUM, A15_REGNUM.
543 2007-10-09 Markus Deuling <deuling@de.ibm.com>
545 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
546 the current architecture by frame_info.
547 (h8300_frame_prev_register
548 (h8300_print_register): Replace current_gdbarch by gdbarch.
549 (h8300_print_registers_info, h8300_register_type)
550 (h8300_register_type): Likewise.
552 2007-10-09 Markus Deuling <deuling@de.ibm.com>
554 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
555 the current architecture by regcache.
556 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
557 (i386_linux_fetch_inferior_registers)
558 (i386_linux_store_inferior_registers): Likewise.
559 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
560 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
561 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
562 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
563 (i386_extract_return_value, i386_store_return_value): Likewise.
564 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
565 the current architecture by frame_info.
566 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
567 (i386_register_to_value, i386_value_to_register): Likewise.
569 2007-10-09 Markus Deuling <deuling@de.ibm.com>
571 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
572 the current architecture by regcache.
573 (monitor_store_register, monitor_store_registers): Likewise.
575 2007-10-09 Markus Deuling <deuling@de.ibm.com>
577 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
578 the current architecture by regcache.
580 2007-10-09 Markus Deuling <deuling@de.ibm.com>
582 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
585 2007-10-09 Markus Deuling <deuling@de.ibm.com>
587 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
588 architecture by frame.
589 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
590 (inside_main_func, frame_sp_unwind): Likewise.
592 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
594 * solib-svr4.c (enable_break): Add the dynamic linker also if
597 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
599 * MAINTAINERS (Write After Approval): Add self.
601 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
603 * stabsread.c (read_huge_number): Initialize local variable to 0.
605 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
607 * p-lang.h (pascal_main_name): Add declaration.
608 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
609 (GPC_MAIN_PROGRAM_NAME_2): New constants.
610 (pascal_main_name): New function.
611 * symtab.c: Include p-lang.h.
612 (find_main_name): Add call to pascal_main_name.
613 * Makefile.in (symtab.o): Add dependency on p-lang.h.
615 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
617 * stabsread.c (read_huge_number): Fix handling of octal
618 representation when the bit width is known.
619 (read_range_type): Record unsigned integral types with their size,
620 when the type size is known.
622 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
624 * MAINTAINERS (Write After Approval): Add self.
626 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
628 * breakpoint.c (print_one_breakpoint_location): ARI fix:
629 Replace asprintf by xstrprintf.
631 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
633 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
634 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
636 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
638 * linux-fork.c: Move "gdb_wait.h" include back to the position of
639 <sys/wait.h> include before last commit.
641 2007-10-08 Maciej W. Rozycki <macro@mips.com>
643 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
645 2007-10-08 Markus Deuling <deuling@de.ibm.com>
647 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
648 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
649 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
650 (store_regs_user_thread, store_regs_kernel_thread): Use
651 get_regcache_arch or get_frame_arch to get at the current architecture
652 by regcache or by frame, respectively.
654 2007-10-08 Markus Deuling <deuling@de.ibm.com>
656 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
657 (sh64_pseudo_register_read, sh64_pseudo_register_write)
658 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
659 (sh64_print_register, sh64_media_print_registers_info)
660 (sh64_compact_print_registers_info, sh64_unwind_sp)
661 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
662 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
663 (sh64_frame_prev_register): Use FRAME to recognize current
666 2007-10-08 Markus Deuling <deuling@de.ibm.com>
668 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
669 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
670 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
671 current_gdbarch by gdbarch.
672 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
673 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
674 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
675 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
676 recognize current architecture.
678 2007-10-08 Markus Deuling <deuling@de.ibm.com>
680 * remote.c (init_remote_state, fetch_register_using_p)
681 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
682 (store_register_using_P, store_registers_using_G)
683 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
684 get at the current architecture by regcache or by frame, respectively.
686 2007-10-08 Markus Deuling <deuling@de.ibm.com>
688 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
689 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
690 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
691 get_regcache_arch or get_frame_arch to get at the current architecture
692 by regcache or by frame, respectively.
693 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
694 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
695 (store_register, old_store_inferior_registers, supply_gregset)
696 (supply_fpregset, fill_fpregset): Likewise.
697 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
698 Replace current_gdbarch by gdbarch.
700 2007-10-08 Markus Deuling <deuling@de.ibm.com>
702 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
703 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
704 get_frame_arch to get at the current architecture by regcache or by
707 2007-10-08 Markus Deuling <deuling@de.ibm.com>
709 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
710 Replace current_gdbarch by gdbarch.
711 * ia64-tdep.c (ia64_frame_prev_register
712 (ia64_sigtramp_frame_prev_register)
713 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
714 get_frame_arch to get at the current architecture by regcache or by
716 * ia64-linux-nat.c (ia64_linux_fetch_register)
717 (ia64_linux_fetch_registers, ia64_linux_store_register)
718 (ia64_linux_store_registers): Likewise.
720 2007-10-08 Markus Deuling <deuling@de.ibm.com>
722 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
723 current_gdbarch by gdbarch.
724 * hppa-linux-nat.c (fetch_register, store_register)
725 (hppa_linux_fetch_inferior_registers)
726 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
727 get_frame_arch to get at the current architecture by regcache or by
729 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
730 (hppa_hpux_unwind_adjust_stub): Likewise.
731 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
732 (hppa_hpux_fetch_inferior_registers)
733 (hppa_hpux_store_inferior_registers): Likewise.
735 2007-10-08 Markus Deuling <deuling@de.ibm.com>
737 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
738 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
739 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
740 or get_frame_arch to get at the current architecture by regcache or by
742 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
743 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
744 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
745 current_gdbarch by gdbarch.
747 2007-10-08 Markus Deuling <deuling@de.ibm.com>
749 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
750 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
751 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
752 get at the current architecture by regcache or by·frame, respectively.
753 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
756 2007-10-08 Markus Deuling <deuling@de.ibm.com>
758 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
759 Use get_regcache_arch or get_frame_arch to get at the current
760 architecture by regcache or by frame, respectively.
761 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
762 * amd64-nat.c (amd64_supply_native_gregset)
763 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
765 2007-10-08 Markus Deuling <deuling@de.ibm.com>
767 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
769 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
770 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
771 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
772 get_frame_arch to get at the current architecture by regcache or by
774 * alpha-nat.c (fetch_osf_core_registers): Likewise.
776 2007-10-08 Markus Deuling <deuling@de.ibm.com>
778 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
779 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
780 current_gdbarch by gdbarch.
781 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
783 2007-10-08 Markus Deuling <deuling@de.ibm.com>
785 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
786 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
787 * regcache.c (regcache_raw_write): Use get_regcache_arch or
788 get_frame_arch to get at the current architecture by regcache or by
791 2007-10-08 Markus Deuling <deuling@de.ibm.com>
793 * findvar.c (value_of_register, locate_var_value): Use
794 get_regcache_arch or get_frame_arch to get at the current architecture
795 by regcache or by frame, respectively.
796 * findvar.c (default_value_from_register, value_from_register): Replace
797 current_gdbarch by gdbarch.
799 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
801 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
803 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
805 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
806 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
808 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
810 * remote.c (get_offsets): Only call free_symfile_segment_data if
813 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
815 * objc-exp.y: ARI fix: remove 4 PARAMS.
817 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
819 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
820 news. Mention XML support for M68K in GDB 6.7.
822 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
824 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
826 (init_vector_type): Use builtin_type_int32.
828 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
830 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
831 size to enable bi-arch generate-core-file support.
833 2007-10-02 Markus Deuling <deuling@de.ibm.com>
835 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
837 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
839 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
841 * tui/tui-win.c (tui_initialize_win): New function for
842 initializing tui's SIGWINCH signal handler.
843 * tui/tui-win.h (tui_initialize_win): Declare.
845 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
847 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
848 pointer to uintptr_t before casting to CORE_ADDR.
850 2007-10-02 Markus Deuling <deuling@de.ibm.com>
852 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
854 2007-10-02 Mark Mitchell <mark@codesourcery.com>
856 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
857 * ser-mingw.c (enum select_thread_state): New type.
858 (struct ser_console_state): Add have_started and thread_state.
859 (select_thread_wait): New function.
860 (thread_fn_type): New type.
861 (create_select_thread): New function.
862 (destroy_select_thread): Likewise.
863 (start_select_thread): Likewise.
864 (stop_select_thread): Likewise.
865 (console_select_thread): Use new functions.
866 (pipe_select_thread): Likewise.
867 (file_select_thread): Likewise.
868 (ser_console_wait_handle): Likewise.
869 (ser_console_done_wait_handle): Likewise.
870 (ser_console_close): Likewise.
871 (free_pipe_state): Likewise.
872 (pipe_wait_handle): Likewise.
873 (pipe_done_wait_handle): Likewise.
874 (struct net_windows_state): Derive from ser_console_state.
875 (net_windows_select_thread): Use new functions.
876 (net_windows_wait_handle): Likewise.
877 (net_windows_done_wait_handle): Likewise.
878 (net_windows_close): Likewise.
880 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
882 * inflow.c (terminal_ours_1): Remove useless line.
884 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
886 * mips-tdep.c (mips_read_fp_register_double): Correct check for
888 (mips_print_fp_register): Correct check for even FP registers.
889 (mips_virtual_frame_pointer): New function.
890 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
892 2007-09-30 Mike Frysinger <vapier@gentoo.org>
894 * value.h (lookup_only_internalvar): New prototype.
895 (create_internalvar): Likewise.
896 * value.c (lookup_only_internalvar): New function.
897 (create_internalvar): Likewise.
898 (lookup_internalvar): Use new lookup_only_internalvar and
899 create_internalvar functions.
900 * parse.c (write_dollar_variable): Look up $ symbols in internal
901 table first rather than last.
903 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
905 * linux-nat.c (linux_nat_new_thread): New variable.
906 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
907 linux_nat_switch_fork.
908 (lwp_list): Make public.
909 (add_lwp): Call linux_nat_new_thread.
910 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
912 (resume_callback): Clear lp->siginfo. Remove unused variable.
913 (linux_nat_resume): Assert that the LWP list is already initialized.
916 (stop_wait_callback, linux_nat_wait): Call it.
917 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
918 * linux-nat.h (struct lwp_info): Add siginfo.
919 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
922 * amd64-linux-nat.c (amd64_linux_dr): New.
923 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
924 (amd64_linux_dr_set): Take a PTID argument.
925 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
926 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
927 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
928 (amd64_linux_new_thread): New.
929 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
930 * i386-linux-nat.c (i386_linux_dr): New.
931 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
932 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
933 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
934 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
935 (i386_linux_new_thread): New.
936 (i386_linux_resume): Remove unnecessary PID check.
937 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
938 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
939 (fetch_debug_register, fetch_debug_register_pair): Delete.
940 (debug_registers): New.
941 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
942 ALL_LWPS and debug_registers.
943 (ia64_linux_new_thread): New.
944 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
945 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
946 * ppc-linux-nat.c (last_stopped_data_address): Delete.
947 (saved_dabr_value): New.
948 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
950 (ppc_linux_new_thread): New.
951 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
952 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
953 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
954 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
956 (s390_fix_watch_points): Take a PTID argument.
957 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
958 (_initialize_s390_nat): Call linux_nat_set_new_thread.
960 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
961 Jeff Johnston <jjohnstn@redhat.com>
963 * breakpoint.c (watchpoints_triggered): New.
964 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
965 Check watchpoint_triggered instead. Combine handling for software
966 and hardware watchpoints. Do not use target_stopped_data_address
967 here. Always check a watchpoint if its scope breakpoint triggers.
968 Do not stop for thread or overlay events. Improve check for
969 triggered watchpoints without a value change.
970 (watch_command_1): Insert the scope breakpoint first. Link the
971 scope breakpoint to the watchpoint.
972 * breakpoint.h (enum watchpoint_triggered): New.
973 (struct breakpoint): Add watchpoint_triggered.
974 (bpstat_stop_status): Update prototype.
975 (watchpoints_triggered): Declare.
976 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
977 (stepped_after_stopped_by_watchpoint): Delete.
978 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
979 local. Handle infwait_step_watch_state. Update calls to
980 bpstat_stop_status. Use watchpoints_triggered to check
982 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
983 (remote_stopped_data_address): Do not check it.
985 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
987 * configure.ac: Add $LIBINTL when testing libbfd.
988 * configure: Regenerated.
990 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
992 * NEW: Mention pending breakpoint changes and
993 support for breakpoints at multiple locations.
995 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
997 * arm-linux-tdep.c (arm_linux_software_single_step): New.
998 (arm_linux_init_abi): Use it.
999 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
1000 condition correctly.
1001 * arm-tdep.h (arm_get_next_pc): Declare.
1002 * Makefile.in (arm-linux-tdep.o): Update.
1004 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1006 * varobj.c (install_new_value): Don't
1007 call value_get_print_value when a value is
1008 lazy. Update the print_value member in a
1011 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1013 * breakpoint.c (create_breakpoint): Set
1014 condition on each location, not on the first
1015 location of breakpoint.
1017 2007-09-26 Jim Blandy <jimb@codesourcery.com>
1019 * remote.c (getpkt_sane): Fix error message. No animals were
1020 harmed in the making of this debugger.
1022 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1024 * p-typeprint.c: Fix 11 ARI reported problems.
1025 (pascal_print_type): Fix 4 operator at end of line.
1026 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
1027 using strncmp function.
1028 (pascal_type_print_base): Fix 2 operator at end of line.
1029 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
1030 using strncmp function.
1033 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1035 * Fix PR pascal/2231
1036 dwarf2read.c (read_subroutine_type):
1037 All pascal functions are prototyped.
1039 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1041 * Fix PR pascal/2283
1042 p-valprint.c (pascal_val_print): correct current language check.
1043 Also print array of char as strings.
1046 2007-09-26 David Ung <davidu@mips.com>
1047 Maciej W. Rozycki <macro@mips.com>
1049 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
1051 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
1053 * p-exp.y: Fix 12 ARI reported problems.
1054 (name_not_typename): Fix 2 operator at end of line issues.
1055 (yylex): Fix 3 operator at end of line issues.
1056 Replace 7 DEPRECATED_STREQ macros using strcmp function.
1058 2007-09-25 David Ung <davidu@mips.com>
1059 Maciej W. Rozycki <macro@mips.com>
1061 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
1062 rules return composite types in registers as appropriate.
1064 2007-09-24 Jim Blandy <jimb@codesourcery.com>
1066 * symfile.h (struct symfile_segment_data): Doc fixes.
1067 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
1068 Assert that we were passed some loaded segment addresses,
1069 and that sections' segment numbers are valid.
1070 Simplify offset calculation.
1071 * remote.c (get_offsets): Clarify selection of relocate-by-segment
1072 strategy, and set num_segments correctly. Delete redundant
1073 assignments to do_sections.
1075 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
1077 * frame.c (get_prev_frame_1): Also check for PC in the same register.
1079 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
1081 * breakpoint.c (remove_sal): New.
1082 (expand_line_sal_maybe): New.
1083 (create_breakpoints): Call expand_line_sal_maybe.
1084 (clear_command): Add comment.
1085 (breakpoint_re_set_one): Call expand_line_sal_maybe.
1086 * linespec.c (decode_indirect): Set explicit_pc to 1.
1087 (decode_all_digits): Set explicit_line to 1.
1088 (append_expanded_sal): New.
1089 (expand_line_sal): New.
1090 * linespec.h (expand_line_sal): Declare.
1091 * symtab.c (init_sal): Initialize explicit_pc
1093 * symtab.h (struct symtab_and_line): New fields
1094 explicit_pc and explicit_line.
1096 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
1098 * infcall.c (call_function_by_hand): Handle language-specific
1099 pass and return by reference.
1101 * cp-abi.c (cp_pass_by_reference): New.
1102 * cp-abi.h (cp_pass_by_reference): Declare.
1103 (struct cp_abi_ops): Add pass_by_reference.
1104 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
1105 (init_gnuv3_ops): Set pass_by_reference.
1107 * language.c (language_pass_by_reference): New.
1108 (default_pass_by_reference): New.
1109 (unknown_language_defn, auto_language_defn, local_language_defn): Add
1110 default_pass_by_reference.
1111 * langauge.h (struct language_defn): Add la_pass_by_reference.
1112 (language_pass_by_reference, default_pass_by_reference): Declare.
1113 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
1114 * c-lang.c (c_language_defn, asm_language_defn)
1115 (minimal_language_defn): Likewise.
1116 (cplus_language_defn): Add cp_pass_by_reference.
1117 * f-lang.c (f_language_defn): Add default_pass_by_reference.
1118 * jv-lang.c (java_language_defn): Likewise.
1119 * m2-lang.c (m2_language_defn): Likewise.
1120 * objc-lang.c (objc_language_defn): Likewise.
1121 * p-lang.c (pascal_language_defn): Likewise.
1122 * scm-lang.c (scm_language_defn): Likewise
1124 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
1126 Allow a code breakpoint to have several locations
1128 * breakpoint.h (enum enable_state): Remove the
1129 bp_shlib_disabled enumerator.
1130 (struct bp_location): New members shlib_disabled,
1131 global_next, enabled and function_name.
1132 Rename pending to condition_not_parsed.
1134 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
1135 (ALL_BP_LOCATIONS_SAFE): Likewise.
1136 (breakpoint_enabled): Don't check for pending.
1137 (condition_command): Free and update all locations of
1139 (insert_bp_location): Adjust.
1140 (software_breakpoint_inserted_here_p): Don't care
1141 if breakpoint is enabled, as soon as it's inserted.
1142 (print_it_typical): Print bpstat's location, not
1143 bpstat's breakpoint's location.
1144 (bpstat_stop_status): Iterate over all locations, not
1146 (print_breakpoint_location): New.
1147 (print_one_breakpoint): Renamed to
1148 (print_one_breakpoint_location): ...this. Take
1149 parameters to describe which location is being
1150 printed. Modify code to properly print header
1151 for several locations and individual locations.
1152 (print_one_breakpoint): Print all locations.
1153 (breakpoint_has_pc): New.
1154 (describe_other_breakpoints): Use the above.
1155 (check_duplicates): Renamed to...
1156 (check_duplicates_for): .. this.
1157 (check_duplicates): Use check_duplicates_for.
1158 (allocate_bp_location): Adjust.
1159 (set_raw_breakpoint_without_location): New,
1160 extracted from set_raw_breakpoint.
1161 (set_breakpoint_location_function): New.
1162 (set_raw_breakpoint): Use
1163 set_raw_breakpoint_without_location.
1164 (make_breakpoint_permanent): Mark all locations
1166 (disable_breakpoints_in_shlibs): Iterate over
1168 (disable_breakpoints_in_unloaded_shlib): Likewise.
1169 (re_enable_breakpoints_in_shlibs): Likewise.
1170 (mention): Say "pending" when breakpoint has
1171 zero locations. If breakpoint has more than one
1173 (add_location_to_breakpoint): New.
1174 (create_breakpoint): Accept symtabs_and_lines, not
1175 symtab_and_line. Pass extra sals to
1176 add_location_to_breakpoint.
1177 (create_breakpoints): Pass symtabs_and_lines to
1179 (break_command_1): Make pending breakpoints
1180 have zero locations.
1181 (do_captured_breakpoint): Remove wrong allocation.
1182 (clear_command): Iterate over all locations.
1183 (unlink_locations_from_global_list): Renamed
1184 from unlink_location_from_global_list. Remove
1186 (delete_breakpoint): Remove all locations.
1187 Iterate over all locations when deciding which
1188 other location to re-enable.
1189 (all_locations_are_pending): New.
1190 (update_breakpoint_locations): Renamed from
1191 update_breakpoint_location. Try to match old
1192 and new locations using names of containing
1194 (breakpoint_re_set_one): Adjust.
1195 (find_location_by_number): New.
1196 (disable_command): Allow disabling individual location.
1197 (enable_command): Allow enabling individual location.
1198 * breakpoint.c: Adjust all uses of breakpoint's
1199 enable state to for bp_shlib_disabled change.
1201 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1203 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1204 (resolve_pending_breakpoint): Remove.
1205 (re_enable_breakpoints_in_shlibs): Remove.
1206 (unlink_locations_from_global_list): New.
1207 (update_breakpoint_locations): New.
1208 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1209 Use parse_condition and update_breakpoint_location to
1210 reset breakpoint. Ignore 'symbol not found' error from
1212 (breakpoint_re_set): Don't emit newline before the
1213 reason why breakpoint is not reset.
1214 (do_enable_breakpoint): Don't specially process pending
1216 (free_bp_location): New.
1217 (break_command_1): For pending breakpoints, initialize
1218 all fields of a sal with zeroes.
1219 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1220 * infcmd.c (post_create_inferior): Don't call
1221 re_enable_breakpoints_in_shlibs.
1222 * infrun.c (handle_inferior_event): Likewise.
1223 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1224 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1225 * win32-nat.c (get_win32_debug_event): Likewise.
1227 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1229 * breakpoint.c (create_breakpoint): Split from
1230 create_breakpoints, implementing most of its logic.
1231 Take just a single sal, single address string and
1232 single condition. Do not take parsed condition at
1234 (create_breakpoints): Just call create_breakpoint
1236 (find_condition_and_thread): New.
1237 (break_command_1): Use find_condition_and_thread.
1238 Do not keep parsed conditions.
1239 (do_captured_breakpoint): Don't convert
1240 condition string to struct expression.
1242 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1244 * breakpoint.h (struct breakpoint): Move the cond
1246 (struct bp_location): Here.
1247 * breakpoint.c (condition_command, bpstat_stop_status)
1248 (print_one_breakpoint, allocate_bp_location)
1249 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1250 (create_exec_event_catchpoint, create_breakpoints)
1251 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1252 (create_ada_exception_breakpoint, set_breakpoint_sal)
1253 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1254 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1256 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1258 Associate bp_stat with bp_location, not breakpoint.
1259 * breakpoint.h (breakpoint_at): Change type
1261 * breakpoint.c (bpstat_alloc): Take bp_location,
1263 (bpstat_find_breakpoint): Look at bpstat's location's
1264 owner, not at bpstat->breakpoint_at.
1265 (bpstat_find_step_resume_breakpoint): Likewise.
1266 (bpstat_num): Likewise.
1267 (print_it_typical): Likewise.
1268 (print_bp_stop_message): Likewise.
1269 (watchpoint_check): Likewise.
1270 (bpstat_what): Likewise.
1271 (bpstat_get_triggered_catchpoints): Likewise.
1272 (breakpoint_auto_delete): Likewise.
1273 (delete_breakpoint): Likewise.
1274 (bpstat_stop_status): Pass location, not breakpoint,
1275 to bpstat_alloc. Look at bpstat's location's
1276 owner, not at bpstat->breakpoint_at.
1278 2007-09-21 Jim Blandy <jimb@codesourcery.com>
1280 * macrotab.h (new_macro_table): Document that removing information
1281 from an obstack/bcache-managed macro table leaks memory.
1282 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1283 that data is never freed in obstack/bcache-managed macro tables,
1284 just leak the storage.
1285 (macro_undef): If we're undefining a macro at exactly the same
1286 source location that we defined it, simply remove the definition
1289 2007-09-21 Joel Brobecker <brobecker@adacore.com>
1291 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1292 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1293 Adjust the struct sym_fns object accordingly by setting
1294 the new field to NULL.
1295 * xcoffread.c (aix_process_linenos): Make static.
1296 (xcoff_sym_fns): Set new field to aix_process_linenos.
1297 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1298 by call to new the new sym_fns sym_read_linetable function.
1299 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1300 * config/rs6000/tm-rs6000.h: Delete.
1302 2007-09-21 David Ung <davidu@mips.com>
1303 Maciej W. Rozycki <macro@mips.com>
1305 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1306 rules do not treat composite types specially.
1308 2007-09-20 Maciej W. Rozycki <macro@mips.com>
1310 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1311 (mips16_in_function_epilogue_p): Likewise.
1312 (mips_in_function_epilogue_p): Likewise.
1313 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1315 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1317 * configure.ac: Add check for "etext".
1318 * configure, config.in: Regenerate.
1319 * maint.c (TEXTEND): Only define if either _etext or etext
1321 Disable the profiling functionality if TEXTEND is not defined.
1323 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1325 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1326 address register. Correct the call to frame_id_build.
1327 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1330 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1332 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1333 the linetable past the function end.
1335 2007-09-18 James E. Wilson <wilson@specifix.com>
1337 * MAINTAINERS: Update my email address.
1339 2007-09-18 Jerome Guitton <guitton@adacore.com>
1341 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1342 (inf_ttrace_delete_dying_threads_callback): New function.
1343 (inf_ttrace_resume): After resuming the execution, iterate over
1344 the dying threads to delete them for the thread list.
1345 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1346 mark the corresponding thread as dying instead of removing it
1347 from the thread list.
1348 (inf_ttrace_thread_alive): return 0 for dying threads.
1350 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1352 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1353 that return_frame is not null.
1355 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1357 * solib-svr4.c: Add include of "auxv.h".
1358 (enable_break): Use the AT_BASE auxiliary entry if available.
1359 * Makefile.in (solib-svr4.o): Update dependencies.
1361 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1363 * NEWS: Create a new section for the next release branch.
1364 Rename the section of the current branch, now that it has
1367 2007-09-17 Jerome Guitton <guitton@adacore.com>
1369 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1370 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1372 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1374 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1375 * mi/mi-cmds.h (mi_cmd_list_features): New.
1376 * mi/mi-main.c (mi_cmd_list_features): New.
1378 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1380 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1381 * version.in: Bump version to 6.7.50-20070911-cvs.
1383 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1385 * thread.c (free_thread): Do not delete the step resume breakpoint
1388 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1390 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1391 * corelow.c (core_read_description): New.
1392 (init_core_ops): Set to_read_description.
1393 * gdbarch.sh: Add gdbarch_core_read_description.
1394 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1395 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1396 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1397 (mips_register_g_packet_guesses): Use them.
1398 (_initialize_mips_tdep): Initialize them.
1399 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1400 * gdbarch.h, gdbarch.c: Regenerated.
1402 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1404 * infrun.c (stepping_past_breakpoint): New global variable.
1405 (stepping_past_breakpoint_ptid): Likewise.
1406 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1407 Only switch threads if we need to single-step over a breakpoint hit
1408 in the previously selected thread. If stepping, remember previous
1409 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1410 switch_to_thread instead of copying its contents.
1411 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1412 prepare_to_proceed returns true.
1413 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1414 (context_switch): Call switch_to_thread.
1415 (handle_inferior_event): Switch back to previous thread if requested
1416 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1417 * gdbthread.h (switch_to_thread): Add prototype.
1418 * thread.c (switch_to_thread): Make global.
1420 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1422 * p-valprint.c: Fix 7 ARI reported problems.
1423 (pascal_val_print): Fix one operator at end of line issue.
1424 Use paddress function to remove use of
1425 deprecated_print_address_numeric function (2 times).
1426 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1427 (pascal_value_print): Fix 3 operator at end of line issues.
1429 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1432 * arm-tdep.c (arm_in_call_stub): Delete.
1433 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1435 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1437 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1440 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1441 Jim Blandy <jimb@codesourcery.com>
1443 * NEWS: Update description of string changes. Mention print/s.
1444 * c-valprint.c (textual_element_type): New.
1445 (c_val_print): Use it. Do not skip address printing for pointers
1446 with a string format.
1447 (c_value_print): Doc update.
1448 * dwarf2read.c (read_array_type): Use make_vector_type.
1449 * gdbtypes.c (make_vector_type): New.
1450 (init_vector_type): Use it.
1451 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1452 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1453 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1454 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1455 (make_vector_type): New.
1456 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1457 Call the language print routine for string format.
1458 (print_scalar_formatted): Call val_print for string format. Handle
1459 unsigned original types for char format.
1460 (validate_format): Do not reject string format.
1461 * stabsread.c (read_type): Use make_vector_type.
1462 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1464 2007-09-04 Michael Snyder <msnyder@access-company.com>
1466 * expprint.c (print_subexp_standard): Check strchr for null.
1467 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1469 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1471 * stabsread.c (patch_block_status): Guard against null.
1472 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1474 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1476 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1477 in internal error message.
1479 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1480 Daniel Jacobowitz <dan@codesourcery.com>
1482 * infcmd.c (post_create_inferior): Update comment.
1483 (run_command_1): Always call post_create_inferior with 0 as
1486 * i386-cygwin-tdep.h: New.
1487 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1488 (win32_xfer_shared_library): Make it extern.
1490 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1492 (win32_so_ops): Delete.
1493 (get_relocated_section_addrs): Delete.
1494 (solib_symbols_add): Delete.
1495 (register_loaded_dll): Delete.
1496 (win32_make_so): New.
1497 (handle_load_dll): Use win32_make_so.
1498 (win32_free_so): Free the passed in so.
1499 (win32_relocate_section_addresses): Delete.
1500 (win32_solib_create_inferior_hook): Delete.
1501 (handle_unload_dll): Don't add PE offset here. Free so with
1502 win32_free_so instead of free_so.
1503 (win32_special_symbol_handling): Delete.
1504 (get_win32_debug_event): Remove unneeded calls. Set state to
1505 TARGET_WAITKIND_LOADED on a dll unload.
1506 (do_initial_win32_stuff): Clear cygwin_load_start and
1508 (map_code_section_args): Delete.
1509 (dll_code_sections_add): Delete.
1510 (core_section_load_dll_symbols): Delete.
1511 (win32_xfer_shared_libraries): New.
1512 (win32_current_sos): Delete.
1513 (win32_xfer_partial): New.
1514 (open_symbol_file_object): Delete.
1515 (in_dynsym_resolve_code): Delete.
1516 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1517 of win32_ops. Remove win32_so_ops settings. Don't set
1518 current_target_so_ops here.
1520 * Makefile.in (i386_cygwin_tdep_h): New variable.
1521 (i386-cygwin-tdep.o): Update dependencies.
1522 (win32-nat.o): Update dependencies.
1524 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1525 Daniel Jacobowitz <dan@codesourcery.com>
1527 * gdbarch.sh (core_xfer_shared_libraries): New.
1529 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1531 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1533 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1534 (xml_escape_text): New.
1535 * xml-support.h (xml_escape_text): Declare.
1537 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1538 * config/i386/cygwin.mt (TDEPFILES): ... here.
1540 * win32-nat.c: (fetch_elf_core_registers): Delete.
1541 (win32_elf_core_fn): Delete.
1542 (_initialize_core_win32): Delete.
1544 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1545 "xml-support.h" and "gdbcore.h".
1546 (i386_win32_gregset_reg_offset): New.
1547 (I386_WIN32_SIZEOF_GREGSET): New.
1548 (i386_win32_regset_from_core_section): New.
1549 (win32_xfer_shared_library): New.
1550 (struct cpms_data): New.
1551 (core_process_module_section): New.
1552 (win32_core_xfer_shared_libraries): New.
1553 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1554 gregset_num_regs, sizeof_gregset members of tdep. Register
1555 regset_from_core_section and core_xfer_shared_libraries callbacks.
1557 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1558 * gdbarch.h, gdbarch.c: Regenerate.
1560 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1562 * corelow.c (core_xfer_partial): Pass writebuf to
1563 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1565 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1567 * arm-tdep.h (arm_skip_stub): Declare.
1568 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1570 (arm_pe_skip_trampoline_code): New function.
1571 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1572 gdbarch_skip_trampoline_code callback.
1573 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1575 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1577 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1579 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1581 * configure.ac: Add --with-expat.
1582 * configure: Regenerated.
1584 2007-09-03 Andreas Schwab <schwab@suse.de>
1586 * configure.ac: Accept --with-system-readline.
1587 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1588 * configure: Regenerate.
1589 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1591 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1593 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1594 Daniel Jacobowitz <dan@codesourcery.com>
1596 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1598 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1600 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1602 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1604 * top.c (print_gdb_version): Update for GPL version 3.
1606 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1608 * NEWS: Mention the build-id .debug files verification.
1610 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1612 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1614 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1616 * Makefile.in (symfile.o): Update dependencies.
1617 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1618 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1619 (struct build_id): New structure.
1620 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1621 (find_separate_debug_file): New variable BUILD_ID.
1622 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1624 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1626 * varobj.c (struct varobj): Fix comment
1627 for the type member not to lie when it can be
1630 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1632 Implement -var-info-path-expression.
1634 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1636 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1637 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1638 * varobj.c (struct varobj): New field 'path_expr'.
1639 (c_path_expr_of_child, cplus_path_expr_of_child)
1640 (java_path_expr_of_child): New.
1641 (struct language_specific): New field path_expr_of_child.
1642 (varobj_create): Initialize the path_expr field.
1643 (varobj_get_path_expr): New.
1644 (new_variable): Initialize the path_expr field.
1645 (free_variable): Free the path_expr field.
1646 (adjust_value_for_children_access): New parameter
1648 (c_number_of_children): Adjust.
1649 (c_describe_child): New parameter CFULL_EXPRESSION.
1650 Compute full expression.
1651 (c_value_of_child, c_type_of_child): Adjust.
1652 (cplus_number_of_children): Adjust.
1653 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1654 Compute full expression.
1655 (cplus_name_of_child, cplus_value_of_child)
1656 (cplus_type_of_child): Adjust.
1657 * varobj.h (varobj_get_path_expr): Declare.
1659 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1661 * mi/mi-cmd-var.c (print_varobj): If a varobj
1662 type is NULL, don't try to print it.
1664 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1666 * ppc-linux-nat.c (right_fill_reg): Delete.
1667 (supply_gregset): Use ppc_supply_gregset.
1668 (supply_fpregset): Use ppc_supply_fpregset.
1669 (fill_gregset): Use ppc_collect_gregset.
1670 (fill_fpregset): Use ppc_collect_fpregset.
1671 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1672 (right_supply_register, ppc_linux_supply_gregset): Delete.
1673 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1674 (ppc_linux_supply_fpregset): Delete.
1675 (ppc_linux_collect_gregset): New function.
1676 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1677 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1678 ppc_linux_supply_gregset, and ppc_collect_gregset.
1679 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1680 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1681 (ppc_linux_regset_from_core_section): Update.
1682 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1683 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1684 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1685 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1686 (ppcobsd_collect_gregset): Likewise.
1687 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1688 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1689 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1690 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1691 (rs6000_aix64_reg_offsets): Likewise.
1692 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1693 ppc_floating_point_unit_p.
1694 (rs6000_aix_collect_regset): Similarly.
1695 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1696 when regsize is larger than regcache register size.
1697 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1698 regcache register size.
1699 (ppc_greg_offset): New function, split out from..
1700 (ppc_supply_gregset): ..here. Separate code handling all regs from
1701 single reg case. Correct xer offset.
1702 (ppc_fpreg_offset): New function, split out from..
1703 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1705 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1706 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1707 a fp unit, instead return if no fp.
1709 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1711 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1712 this code has not been compiled for two years.
1714 2007-08-29 Michael Snyder <msnyder@access-company.com>
1716 * event-top.c (gdb_readline2): Return after EOF.
1718 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1720 * symtab.c: Remove a function that has been commented out 3 years ago.
1722 2007-08-29 Randolph Chung <tausq@debian.org>
1724 * hppa-tdep.c (hppa32_cannot_fetch_register)
1725 (hppa64_cannot_fetch_register): New functions.
1726 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1727 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1729 2007-08-28 Michael Snyder <msnyder@access-company.com>
1731 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1732 check for null before calling check_typedef.
1734 * NEWS: Mention Coverity bug fixes.
1736 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1738 * spu-tdep.c (spu_pointer_to_address): New function.
1739 (spu_integer_to_address): Likewise.
1740 (spu_gdbarch_init): Add spu_pointer_to_address and
1741 spu_integer_to_address to gdbarch.
1743 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1745 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1747 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1749 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1750 that contains the GDB license.
1751 * copying.awk: Adjust to the GPLv3 wording.
1752 * copying.c: Regenerate.
1754 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1756 * copying.awk: Protoization, and i18n markup.
1758 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1760 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1761 * copyright.sh: Likewise.
1762 * gdb-events.sh: Likewise.
1763 * gdb_gcore.sh: Likewise.
1764 * gdb_mbuild.sh: Likewise.
1765 * gdbarch.sh: Likewise.
1766 * observer.sh: Likewise.
1767 * features/feature_to_c.sh: Likewise.
1768 * regformats/regdat.sh: Likewise.
1770 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1772 Switch the license of all .c files to GPLv3.
1773 Switch the license of all .h files to GPLv3.
1774 Switch the license of all .cc files to GPLv3.
1776 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1778 * configure.ac: Switch license to GPLv3.
1780 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1782 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1783 determine the file's FPU type.
1785 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1787 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1788 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1789 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1791 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1793 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1795 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1796 (elf_lookup_lib_symbol): Fix formatting.
1798 2007-08-21 Michael Snyder <msnyder@access-company.com>
1800 * dbxread.c (read_dbx_symtab): Guard null deref.
1803 * valops.c (find_overload_match): Guard against NULL.
1805 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1807 * MAINTAINERS (Patch Champions): Remove self.
1809 2007-08-21 Chris Smith <chris.smith@st.com>
1811 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1814 2007-08-18 Michael Snyder <msnyder@access-company.com>
1816 * stabsread.c (dbx_lookup_type): Memory leak.
1818 * event-loop.c (delete_async_signal_handler): Move pointer null
1819 test to before pointer dereference.
1821 * ui-out.c (append_header_to_list): Possible cut and paste error.
1823 * MAINTAINERS: white space tweak.
1825 2007-08-17 Michael Snyder <msnyder@access-company.com>
1827 * stack.c (print_frame): Memory leak.
1829 * completer.c (filename_completer): Avoid memory leak.
1830 Remove unnecessary nested block.
1832 * c-exp.y (parse_number): Memory leak.
1834 * completer.c (location_completer): Must free 'fn_list', except
1835 in the one case where it is returned (as 'list').
1837 * varobj.c (value_of_root): Memory leak.
1839 * gdbtypes.h (virtual_base_list): Remove export decl.
1840 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1841 (virtual_base_index): Memory leak.
1842 (virtual_base_index_skip_primaries): Ditto.
1844 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1846 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1847 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1848 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1849 (xtensa_read_register): New function.
1850 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1851 (xtensa_insn_kind): New types.
1852 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1853 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1854 (xtensa_verify_config, xtensa_pseudo_register_read)
1855 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1856 (xtensa_store_return_value)
1857 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1858 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1859 (xtensa_frame_this_id, xtensa_frame_prev_register)
1860 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1861 (call0_frame_cache, call0_frame_get_reg_at_entry)
1862 (call0_classify_opcode, call0_track_op)
1863 (call0_analyze_prologue, call0_frame_cache): New functions.
1865 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1867 * breakpoint.c (bpstat_free): New.
1868 (bpstat_clear): Use bpstat_free.
1869 (delete_breakpoint): Document why we cannot
1870 remove bpstats from stop_bpstat.
1871 * breakpoint.h (bpstat_free): Declare.
1873 2007-08-16 Michael Snyder <msnyder@access-company.com>
1875 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1877 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1878 Joel Brobecker <brobecker@adacore.com>
1880 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1882 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1883 Joel Brobecker <brobecker@adacore.com>
1885 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1886 checkin guarding against NULL.
1888 2007-08-14 Michael Snyder <msnyder@access-company.com>
1890 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1891 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1892 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1893 go at beginning of new line.
1895 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1896 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1897 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1898 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1899 tui-winsource.h, tui.c, tui.h: Function declarations and
1900 definitions, wrap long lines.
1902 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1903 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1904 Reformat block comments to GNU standard.
1906 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1907 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1908 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1909 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1910 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1911 spaces after periods, etc).
1913 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1914 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1915 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1916 tui-winsource.h: Whitespace changes, fix pointer declarations
1919 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1920 Michael Snyder <msnyder@access-company.com>
1922 * ada-lang.c (field_alignment): Guard against NULL.
1924 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1926 * MAINTAINERS (Global Maintainers): Add self.
1928 2007-08-14 Michael Snyder <msnyder@access-company.com>
1930 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1932 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1934 * varobj.c (cplus_describe_child): Guard against null.
1935 Use "NULL" instead of "0" to initialize pointers.
1937 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1939 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1940 to match any gdbarch with matching OSABI. Set default ABI and FPU
1941 after running the OSABI handler.
1943 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1945 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1946 * config/i386/linux.mt (TDEPFILES): ...to here.
1948 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1950 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1951 the 'silent' parameter and code to implement that.
1952 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1954 * win32-nat.c: Adjust.
1957 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1959 * breakpoint.c (update_breakpoints_after_exec): Don't
1960 set address to zero.
1962 2007-08-13 Michael Snyder <msnyder@access-company.com>
1964 * valops.c: Whitespace clean-up.
1966 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1968 * event-top.c (command_line_handler): Memory leak.
1970 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1971 No need to make copy.
1973 * source.c (find_source_lines): Require symtab 's'.
1975 2007-08-11 Michael Snyder <msnyder@access-company.com>
1977 * completer.c: Spelling fix in comments.
1979 2007-08-10 Michael Snyder <msnyder@access-company.com>
1981 * gdbtypes.c: Coding standard cleanup.
1982 * gdbtypes.c: Comment/whitespace cleanup.
1984 * stabsread.c (read_huge_number): Attempt to compute value before
1985 values that it depends on.
1987 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1988 (decode_objc): Use "NULL" instead of 0.
1989 (find_method): Ditto.
1990 (decode_all_digits): Ditto.
1991 (decode_dollar): Ditto.
1993 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1995 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1997 * solib-svr4.c (enable_break): Don't free tmp_pathname until
2000 * completer.c: Comment/whitespace cleanup.
2002 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2004 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
2006 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
2008 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
2009 allocated file descriptors.
2011 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2013 * Makefile.in: Minor cleanup throughout; add some missing variables,
2014 add some missing rules, remove some rules that are no longer needed,
2015 and fix the dependencies in several rules.
2017 2007-08-10 Ludovic Courtès <ludo@gnu.org>
2019 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
2020 (scm_lang_h, scm_tags_h): New.
2021 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
2022 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
2023 * defs.h (enum language): Add `language_scm'.
2025 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
2028 2007-08-09 Ludovic Courtès <ludo@gnu.org>
2030 * MAINTAINERS (Write After Approval): Add myself.
2032 2007-08-09 Michael Snyder <msnyder@access-company.com>
2034 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
2036 2007-08-09 Joel Brobecker <brobecker@adacore.com>
2038 * solib-som.c (som_relocate_section_addresses): Stop saving
2039 the $CODE$ section in the so_list structure.
2041 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
2043 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
2044 (xtensa_register_group_t): Add entries for coprocessors.
2045 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
2046 (xtensa_add_reggroups): Likewise.
2047 (xtensa_register_reggroup_p): Likewise.
2048 (xtensa_coprocessor_register_group): New function.
2051 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2053 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
2055 2007-08-08 Michael Snyder <msnyder@access-company.com>
2057 * target.c (target_read_string): Guard against null.
2059 * varobj.c (value_of_root): Move alloc after return to avoid leak.
2061 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
2062 (tui_set_layout_for_display_command): Mem leak.
2064 * top.c (command_line_input): Memory leak.
2066 * solib-svr4.c (open_symbol_file_object): Memory leak.
2067 (svr4_current_sos): Ditto.
2068 (enable_break): Ditto.
2070 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
2072 * dwarf2read.c (add_partial_symbol): Memory leak.
2074 2007-08-06 Michael Snyder <msnyder@access-company.com>
2076 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
2078 2007-08-05 Jim Blandy <jimb@codesourcery.com>
2080 * macroexp.c (init_buffer): Remove testing code that overrides the
2081 caller's length guess.
2082 (gather_arguments): Use a larger initial size, now that the vector
2083 growth code has been exercised.
2085 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
2087 * solib-target.c (solib_target_relocate_section_addresses): Add
2088 orig_delta to addr_high.
2090 2007-08-04 Michael Snyder <msnyder@access-company.com>
2092 * remote-fileio.c (remote_fileio_func_write): Memory leak.
2094 * breakpoint.c (print_one_breakpoint): Off by one error.
2096 * tracepoint.c (add_register): Off by one error.
2097 (stringify_collection_list): Free malloc buffer.
2099 2007-08-03 Michael Snyder <msnyder@access-company.com>
2101 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
2102 stop memory leak, straighten out cleanups.
2104 * jv-lang.c (java_link_class_type): Guard against NULL.
2106 2007-08-02 Michael Snyder <msnyder@access-company.com>
2108 * gdbtypes.c (create_set_type): Test should only be done within
2109 the preceeding if block. Otherwise, variable is uninitialized.
2111 * gdbtypes.c (check_typedef): Guard NULL.
2113 2007-08-01 Michael Snyder <msnyder@access-company.com>
2115 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
2116 avoid dereference in lookup_cmd_1.
2118 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
2119 clean up long lines.
2120 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
2121 (tui_alloc_win_info): Ditto.
2122 (tui_add_content_elements): Ditto.
2123 * tui/tui-file.c (tui_file_magic): Ditto.
2125 2007-07-31 Michael Snyder <msnyder@access-company.com>
2127 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
2128 True and false paths are mutually exclusive.
2130 * event-top.c (command_line_handler): Add pedantic return.
2132 * f-valprint.c (info_common_command): Bail out to prevent null
2133 pointer deref. Break up a long line.
2135 * exec.c (xfer_memory): Remove redundant condition from 'if'.
2137 * symfile.c (reread_separate_symbols): Free xmalloced memory.
2139 * printcmd.c (build_address_symbolic): Remove dead code and dead
2142 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
2144 * linespec.c (minsym_found): Advance to the next line if possible.
2146 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
2148 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
2149 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
2150 solib-svr4.o, and add solib-target.o
2152 2007-07-27 Michael Snyder <msnyder@access-company.com>
2154 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2156 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
2158 * MAINTAINERS (Write After Approval): Add myself.
2160 2007-07-26 Maciej W. Rozycki <macro@mips.com>
2162 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
2165 2007-07-25 Maciej W. Rozycki <macro@mips.com>
2167 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2169 2007-07-24 Michael Snyder <msnyder@access-company.com>
2171 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2172 'buffer' must cover both branches that call strcmp (Coverity).
2174 * stack.c (print_frame_args): Check return value of lookup_symbol.
2176 * ax-gdb.c (find_field): Guard against null ptr.
2178 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2180 * regformats/reg-spu.dat: Fix order of npc, id registers.
2182 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2184 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2185 sections should always go to the executable file.
2187 2004-07-20 Chris Dearman <chris@mips.com>
2189 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2190 prologue instructions.
2192 2007-07-20 Maciej W. Rozycki <macro@mips.com>
2194 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2197 2007-07-20 Chris Dearman <chris@mips.com>
2198 Maciej W. Rozycki <macro@mips.com>
2200 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2203 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2204 Daniel Jacobowitz <dan@codesourcery.com>
2206 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2207 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2209 * NEWS: Mention gdbserver DLL support.
2211 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2213 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2215 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2217 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2220 2007-07-13 Kevin Buettner <kevinb@redhat.com>
2222 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2225 2007-07-12 Kevin Buettner <kevinb@redhat.com>
2227 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2228 (mep_analyze_prologue): Add case for BRA instruction.
2230 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2232 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2234 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
2236 * breakpoint.c: Include "top.h".
2237 (breakpoint_1): Don't set convenience variable $_ if server prefix
2239 (_initialize_breakpoint): Describe this behaviour in command help.
2241 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2243 * solib-target.c (library_list_start_segment): Cast address to
2246 2007-07-06 Mark Kettenis <kettenis@gnu.org>
2248 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2249 for terminated processes.
2251 2007-07-05 Michael Snyder <msnyder@access-company.com>
2253 * event-top.c (cli_command_loop): Prompt string can (and should)
2254 be freed after call to readline (Coverity). Also move local var
2255 declarations into block where they are used.
2257 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2258 should) be freed after call to readline (Coverity). Also move
2259 local var declarations into block where they are used.
2261 2007-07-03 Andreas Schwab <schwab@suse.de>
2263 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2266 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2267 Thiago Bauermann <bauerman@br.ibm.com>
2268 Joseph S. Myers <joseph@codesourcery.com>
2269 Daniel Jacobowitz <dan@codesourcery.com>
2271 * remote.c (remote_check_symbols): Use
2272 gdbarch_convert_from_func_ptr_addr.
2273 * infcall.c (find_function_addr): Handle function descriptors
2274 without debugging information.
2275 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2276 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2277 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2278 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2279 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2280 allow SEC_CODE and SEC_DATA.
2281 (enable_break): Update calls. Pass current_target to solib_add.
2282 Use gdbarch_convert_from_func_ptr_addr.
2284 2007-07-03 Ilko Iliev <iliev@ronetix.at>
2285 Daniel Jacobowitz <dan@codesourcery.com>
2287 * symfile.c (print_transfer_performance): Avoid integer overflow.
2290 2007-07-03 Markus Deuling <deuling@de.ibm.com>
2292 * cp-namespace.c (lookup_symbol_file): Add block to
2293 lookup_symbol_global call.
2294 * Makefile.in (solist_h): Add dependency on symtab header.
2295 (symtab.o): Add dependency on solist header.
2296 * solib.c (solib_global_lookup): New function.
2297 * solib-svr4.c (scan_dyntag): Likewise.
2298 (elf_locate_base): Call helper routine scan_dyntag.
2299 (elf_lookup_lib_symbol): New function.
2300 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2301 * solist.h (symtab.h): New include.
2302 (struct target_so_ops): New member lookup_lib_global_symbol.
2303 (solib_global_lookup): New prototype.
2304 * symtab.c: New include solist.h.
2305 (lookup_objfile_from_block): New function.
2306 (lookup_global_symbol_from_objfile): New function.
2307 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2308 (lookup_symbol_global): Call library-specific lookup procedure.
2309 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2311 * NEWS: Document framework.
2313 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2315 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2318 * cli/cli-script.c (build_command_line): Update NULL check.
2320 2007-07-02 Michael Snyder <msnyder@access-company.com>
2322 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2324 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2326 * Makefile.in (XMLFILES): Add library-list.dtd.
2327 (ALLDEPFILES): Add solib-target.o.
2328 (solib-target.o): New rule.
2329 * remote.c (PACKET_qXfer_libraries): New constant.
2330 (remote_protocol_features): Add qXfer:libraries:read.
2331 (remote_wait): Recognize library stop replies.
2332 (remote_async_wait): Likewise. Fix typo.
2333 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2334 (init_remote_async_ops): Fix typo.
2335 (_initialize_remote): Register "set remote library-info-packet".
2336 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2337 * solib-target.c: New file.
2338 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2340 (info_sharedlibrary_command): Likewise.
2341 (solib_add_library, solib_remove_library): New.
2342 * solist.h (struct so_list): Replace textsection with addr_low and
2344 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2345 * NEWS: Describe new qXfer:libraries:read and shared library
2347 * features/library-list.dtd: New.
2349 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2351 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2352 (start_remote): Use STOP_QUIETLY_REMOTE.
2353 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2354 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2355 Update to match shared library event breakpoint support. Only
2356 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2357 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2358 * fork-child.c (startup_inferior): Do not set
2359 inferior_ignoring_startup_exec_events
2360 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2362 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2364 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2366 * breakpoint.c (insert_bp_location): Remove dead code
2367 (DISABLE_UNSETTABLE_BREAK).
2368 (disable_breakpoints_in_shlibs)
2369 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2371 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2373 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2374 Call insert_bp_location.
2376 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2378 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2381 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2383 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2386 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2388 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2389 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2390 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2391 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2392 to display_gdb_prompt.
2394 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2397 * target.c (memory_xfer_partial): Do not continue past targets with
2400 2007-06-30 Andreas Schwab <schwab@suse.de>
2402 * m68k-tdep.c (m68k_ps_type): New.
2403 (m68k_init_types): New.
2404 (m68k_register_type): Use m68k_ps_type for PS register.
2405 (_initialize_m68k_tdep): Call m68k_init_types.
2407 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2408 from the generic m68k arch.
2410 2007-06-28 Michael Snyder <msnyder@access-company.com>
2412 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2415 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2416 gdb_assert before using return value of find_thread_pid (Coverity).
2418 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2420 * cli/cli-script.c (build_command_line): Add null pointer guard
2423 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2425 * linux-thread-db.c (thread_db_attach): Delete.
2426 (thread_db_detach): Typo fix. Call target_mourn_inferior
2427 instead of fixing up proc_handle.
2428 (have_threads_callback, have_threads): New functions.
2429 (thread_db_wait): Remove dead proc_handle.pid check. Only
2430 translate PTIDs if we have registered threads. Check for new
2431 threads if we have none.
2432 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2433 (find_new_threads_callback): Only enable event reporting if TID == 0.
2434 (same_ptid_callback): New.
2435 (thread_db_get_thread_local_address): Check for new threads.
2436 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2437 or to_post_startup_inferior.
2439 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2441 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2442 is always active if SOFTWARE_SINGLE_STEP_P is true.
2443 (resume): Use gdbarch_software_single_step[_p] instead of
2444 SOFTWARE_SINGLE_STEP[_P].
2445 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2447 * gdbarch.sh (software_single_step): Remove target macro.
2448 * gdbarch.h, gdbarch.c: Regenerate.
2450 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2452 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2453 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2454 (struct gdbarch_swap, struct gdbarch_swap_registration,
2455 struct gdbarch_swap_registry, gdbarch_swap_registry,
2456 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2457 current_gdbarch_swap_in_hack): Remove.
2458 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2459 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2460 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2461 (deprecated_current_gdbarch_select_hack): Likewise.
2462 * gdbarch.h, gdbarch.c: Regenerate.
2464 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2466 * infrun.c (clear_proceed_status): Clean up stop_registers.
2467 (normal_stop): Allocate regcache for stop_registers.
2468 (struct inferior_status): Remove stop_registers member.
2469 (save_inferior_status): Do not save stop_registers.
2470 (restore_inferior_status): Do not restore stop_registers.
2471 (discard_inferior_status): Do not discard stop_registers.
2472 (build_infrun): Remove.
2473 (_initialize_infrun): Do not swap stop_registers.
2475 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2477 * remote.c (remote_address_masked): If remote_address_size is zero,
2478 default to target address size.
2479 (build_remote_gdbarch_data): Remove.
2480 (_initialize_remote): Do not swap remote_address_size.
2482 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2484 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2485 builtin_type_char, builtin_type_short, builtin_type_int,
2486 builtin_type_long, builtin_type_signed_char,
2487 builtin_type_unsigned_char, builtin_type_unsigned_short,
2488 builtin_type_unsigned_int, builtin_type_unsigned_long,
2489 builtin_type_float, builtin_type_double, builtin_type_long_double,
2490 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2491 builtin_type_bool, builtin_type_long_long,
2492 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2493 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2494 variable declaration with compatibility macro.
2495 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2496 builtin_type_char, builtin_type_short, builtin_type_int,
2497 builtin_type_long, builtin_type_signed_char,
2498 builtin_type_unsigned_char, builtin_type_unsigned_short,
2499 builtin_type_unsigned_int, builtin_type_unsigned_long,
2500 builtin_type_float, builtin_type_double, builtin_type_long_double,
2501 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2502 builtin_type_bool, builtin_type_long_long,
2503 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2504 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2505 (build_gdbtypes): Remove.
2506 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2507 opaque-type-resolution command here. Do not call
2508 deprecated_register_gdbarch_swap.
2510 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2512 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2513 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2514 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2516 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2517 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2518 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2519 (build_parse): Remove.
2520 (_initialize_parse): Do not call build_parse. Do not register
2521 msym_ types for gdbarch-swapping.
2523 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2524 instead of creating private type.
2526 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2527 (_initialize_xcoffread): Do not initialized them.
2528 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2530 * mdebugread.c (nodebug_func_symbol_type): Remove.
2531 (nodebug_var_symbol_type): Remove.
2532 (_initialize_mdebugread): Do not initialize them.
2533 (parse_symbol): Use builtin nodebug_ type instead of them.
2534 (parse_procedure): Likewise.
2536 2007-06-21 Chris Dearman <chris@mips.com>
2538 * printcmd.c (do_one_display): If display/i, start with an initial
2539 line feed to avoid bad layout if there is a branch delay slot.
2541 2007-06-21 Nigel Stephens <nigel@mips.com>
2542 Maciej W. Rozycki <macro@mips.com>
2544 * disasm.c (gdb_print_insn): Return the number of branch delay
2545 slot instructions too.
2546 * disasm.h (gdb_print_insn): Update prototype.
2547 * printcmd.c (branch_delay_insns): New variable to record the
2548 number of delay slot instructions after disassembling a branch.
2549 (print_formatted): Record the number of branch delay slot
2551 (do_examine): When disassembling, if the last instruction
2552 disassembled has any branch delay slots, then bump the count so
2553 that they get disassembled too.
2554 * tui/tui-disasm.c (tui_disassemble): Update the call to
2556 * NEWS: Document the new behaviour.
2558 2007-06-21 Andreas Schwab <schwab@suse.de>
2560 * regcache.c (write_pc_pid): Restore missing else.
2562 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2564 * regcache.c (regcache_print): Use get_current_regcache ()
2565 instead of current_regcache.
2567 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2570 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2571 instead of bfd_make_section_anyway.
2572 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2573 when clearing SEC_LOAD.
2575 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2577 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2578 registers for big-endian.
2580 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2582 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2583 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2584 * gdbarch.c, gdbarch.h: Regenerate.
2586 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2588 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2589 gdbarch_believe_pcc_promotion.
2590 * stabsread.c (define_symbol): Likewise.
2591 Remove unnecessary definition.
2592 * coffread.c (process_coff_symbol): Remove unnecessary code.
2593 * gdbarch.c, gdbarch.h: Regenerate.
2595 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2597 * configure.ac: Do not use ${objdir}.
2598 * configure: Regenerated.
2600 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2602 * gdbarch.sh (deprecated_register_size): Remove.
2603 * gdbarch.h, gdbarch.c: Regenerate.
2605 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2606 by INT_REGISTER_SIZE.
2607 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2608 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2609 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2610 set_gdbarch_deprecated_register_size.
2612 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2614 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2615 gdbarch_deprecated_fp_regnum.
2616 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2617 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2618 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2619 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2621 * gdbarch.c, gdbarch.h: Regenerate.
2623 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2625 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2626 gdbarch_extract_return_value.
2627 * value.c (generic_use_struct_convention): Likewise (comment).
2628 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2629 * arch-utils.c (legacy_return_value): Likewise.
2630 * arch-utils.h (legacy_return_value): Likewise (comment).
2631 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2632 gdbarch_store_return_value.
2633 * stack.c (return_command): Likewise (comment).
2634 * arch-utils.h (legacy_return_value): Likewise (comment).
2635 * arch-utils.c (legacy_return_value): Likewise.
2636 * gdbarch.c, gdbarch.h: Regenerate.
2638 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2640 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2641 gdbarch_deprecated_use_struct_convention.
2642 * arch-utils.c (legacy_return_value): Likewise.
2643 * gdbarch.c, gdbarch.h: Regenerate.
2645 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2647 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2648 gdbarch_deprecated_function_start_offset.
2649 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2650 * linespec.c (minsym_found): Likewise.
2651 * infrun.c (handle_inferior_event): Likewise.
2652 * infcall.c (find_function_addr): Likewise.
2653 * cli/cli-cmds.c (disassemble_command): Likewise.
2654 * gdbarch.c, gdbarch.h: Regenerate.
2656 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2658 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2659 gdbarch_deprecated_reg_struct_has_addr.
2660 * infcall.c (call_function_by_hand): Likewise.
2661 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2662 * gdbarch_deprecated_reg_struct_has_addr_p.
2663 * infcall.c (call_function_by_hand): Likewise.
2664 * gdbarch.c, gdbarch.h: Regenerate.
2666 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2668 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2669 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2670 (sh_gdbarch_init): Remove
2671 set_gdbarch_deprecated_extract_struct_value_address.
2672 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2673 (sh64_gdbarch_init): Remove
2674 set_gdbarch_deprecated_extract_struct_value_address.
2675 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2676 (ia64_gdbarch_init): Remove
2677 set_gdbarch_deprecated_extract_struct_value_address.
2678 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2679 (frv_gdbarch_init): Remove
2680 set_gdbarch_deprecated_extract_struct_value_address.
2681 * gdbarch.c, gdbarch.h: Regenerate.
2683 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2685 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2686 * v850-tdep.c (v850_unwind_sp): Likewise.
2687 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2688 * stack.c (frame_info): Likewise.
2689 * stabsread.c (define_symbol): Likewise.
2690 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2691 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2692 (sh_unwind_sp): Likewise.
2693 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2694 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2695 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2696 (rs6000_frame_cache): Likewise.
2697 * rs6000-nat.c (store_register): Likewise.
2698 * remote-mips.c (mips_wait): Likewise.
2699 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2700 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2701 (ppc64_sysv_abi_push_dummy_call): Likewise.
2702 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2703 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2704 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2705 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2706 * m32r-rom.c (m32r_supply_register): Likewise.
2707 * frame.c (frame_sp_unwind): Likewise.
2708 * mips-tdep.c (mips_insn16_frame_cache)
2709 (mips_insn32_frame_cache): Likewise (comment).
2710 * m68klinux-nat.c (supply_gregset): Likewise.
2711 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2712 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2713 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2714 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2715 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2716 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2717 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2718 (cris_register_type, crisv32_register_type)
2719 (cris_dwarf2_frame_init_reg): Likewise.
2720 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2721 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2722 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2723 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2725 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2726 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2727 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2728 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2729 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2730 * v850-tdep.c (v850_unwind_pc): Likewise.
2731 * stack.c (frame_info): Likewise.
2732 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2733 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2734 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2735 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2736 (sh_dsp_show_regs): Likewise.
2737 * shnbsd-tdep.c (shnbsd_supply_gregset)
2738 (shnbsd_collect_gregset): Likewise.
2739 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2740 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2741 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2742 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2743 (6000_register_reggroup_p, rs6000_unwind_pc)
2744 (rs6000_frame_cache): Likewise.
2745 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2746 (rs6000_store_inferior_registers): Likewise.
2747 * remote-mips.c (mips_wait, mips_load): Likewise.
2748 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2749 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2750 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2751 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2752 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2753 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2754 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2755 (store_ppc_registers, fill_gregset): Likewise.
2756 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2757 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2758 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2759 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2760 * m68klinux-nat.c (supply_gregset): Likewise.
2761 * irix5-nat.c (fill_gregset): Likewise.
2762 * i386-tdep.c (i386_unwind_pc): Likewise.
2763 * i386-linux-nat.c (i386_linux_resume): Likewise.
2764 * frame.c (get_prev_frame_1): Likewise.
2765 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2766 * dbug-rom.c (dbug_supply_register): Likewise.
2767 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2768 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2769 (cris_register_type, crisv32_register_type, crisv32_register_name)
2770 (cris_dwarf2_frame_init_reg, find_step_target)
2771 (cris_software_single_step, cris_supply_gregset)
2772 (cris_regnums): Likewise.
2773 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2774 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2775 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2776 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2777 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2779 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2780 * dbug-rom.c (dbug_supply_register): Likewise.
2781 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2782 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2783 * win32-nat.c (win32_resume): Likewise.
2784 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2785 * m68k-tdep.c (m68k_register_type): Likewise.
2786 * m68klinux-nat.c (supply_gregset): Likewise.
2788 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2789 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2790 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2791 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2792 (fv_reg_base_num, dr_reg_base_num): Likewise.
2793 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2794 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2795 (sh64_extract_return_value, sh64_store_return_value)
2796 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2797 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2798 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2799 (invalidate_cache): Likewise.
2800 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2801 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2802 (mipsnbsd_fill_fpreg): Likewise.
2803 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2804 (mipsnbsd_store_inferior_registers): Likewise.
2805 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2806 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2807 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2808 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2809 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2810 (fill_fpregset): Likewise.
2811 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2812 * i386-tdep.h (struct_return): Likewise (comment).
2813 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2814 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2815 (go32_store_registers): Likewise.
2816 * alpha-tdep.c (alpha_next_pc): Likewise.
2817 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2818 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2819 (alphabsd_store_inferior_registers): Likewise.
2820 * core-regset.c (fetch_core_registers): Likewise.
2821 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2823 * gdbarch.c, gdbarch.h: Regenerate.
2825 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2827 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2828 * dbxread.c (start_psymtab): Check HAVE_ELF.
2829 (aout_sym_fns): Likewise.
2830 * elfread.c (elf_symfile_segments): New.
2831 (elf_sym_fns): Add elf_symfile_segments.
2832 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2833 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2834 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2835 * somread.c (som_sym_fns): Use default_symfile_segments.
2836 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2837 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2838 (default_symfile_segments): New function.
2839 (syms_from_objfile): Update call to find_sym_fns.
2840 (symfile_get_segment_data, free_symfile_segment_data): New.
2841 (symfile_map_offsets_to_segments): New.
2842 (symfile_find_segment_sections): New.
2843 * symfile.h (struct symfile_segment_data): New.
2844 (struct sym_fns): Add sym_segments.
2845 (default_symfile_segments, symfile_get_segment_data)
2846 (free_symfile_segment_data): New prototypes.
2847 (symfile_map_offsets_to_segments): Likewise.
2848 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2849 * Makefile.in (COMMON_OBS): Remove elfread.o.
2850 (elf_internal_h): New.
2851 (elfread.o): Update.
2852 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2854 * config.in, configure: Regenerated.
2855 * NEWS: Mention qOffsets changes.
2857 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2859 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2860 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2861 Replace global variable declaration with compatibility macro.
2862 (struct builtin_m2_type): New data type.
2863 (builtin_m2_type): Add prototype.
2864 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2865 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2866 Remove global variables.
2867 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2868 (build_m2_types): New function.
2869 (m2_type_data): New variable.
2870 (builtin_m2_type): New function.
2871 (_initialize_m2_language): Do not build data types. Register
2872 m2_type_data per-gdbarch data.
2874 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2876 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2877 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2878 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2879 builtin_type_f_real_s8, builtin_type_f_real_s16,
2880 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2881 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2882 variable declaration with compatibility macro.
2883 (struct builtin_f_type): New data type.
2884 (builtin_f_type): Add prototype.
2885 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2886 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2887 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2888 builtin_type_f_real_s8, builtin_type_f_real_s16,
2889 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2890 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2891 (f_language_arch_info): Use builtin_f_type instead of variables.
2892 (build_fortran_types): Build builtin_f_type structure instead of
2893 setting global type variables.
2894 (f_type_data): New variable.
2895 (builtin_f_type): New function.
2896 (_initialize_f_language): Do not call build_fortran_types. Do not
2897 swap global type variables. Register f_type_data per-gdbarch data.
2899 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2901 * f-lang.c (_initialize_f_language): Do not initialize or
2902 swap builtin_type_string.
2904 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2906 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2907 value_of_builtin_frame_reg): Remove.
2908 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2909 inactive call to value_of_builtin_frame_reg.
2911 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2913 * gdbarch.sh (bfd_vma_bit): Remove.
2914 * gdbarch.c, gdbarch.h: Regenerate.
2916 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2917 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2918 (build_gdbtypes): Do not initialize it.
2919 (_initialize_gdbtypes): Do not swap it.
2921 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2923 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2924 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2925 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2926 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2927 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2928 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2929 builtin_type_vec64, builtin_type_vec128): Remove.
2930 (init_simd_type): Remove.
2931 (init_vector_type): Make global.
2932 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2933 (build_gdbtypes): Do not build vector types.
2934 (_initialize_gdbtypes): Do not swap vector types.
2935 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2936 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2937 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2938 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2939 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2940 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2941 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2942 (init_vector_type): Add prototype.
2944 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2945 i386_sse_type members.
2946 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2947 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2948 (i386_init_types): Do not build vector types.
2949 (i386_mmx_type, i386_sse_type): New functions.
2950 (i386_register_type): Call them instead of using global variables.
2951 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2952 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2953 of using global variable.
2955 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2956 and ppc_builtin_type_vec128 members.
2957 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2958 (rs6000_builtin_type_vec128): Likewise.
2959 (rs6000_register_type): Call them instead of using builtin_type_vec64
2960 and builtin_type_vec128.
2961 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2963 * spu-tdep.c (struct gdbarch_tdep): New data type.
2964 (spu_builtin_type_vec128): Remove variable.
2965 (spu_builtin_type_vec128): New function.
2966 (spu_register_type): Call it instead of using global variable.
2967 (spu_gdbarch_init): Allocate tdep structure.
2968 (spu_init_vector_type): Remove function.
2969 (_initialize_spu_tdep): Do not call it.
2971 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2973 * amd64-tdep.c (struct amd64_register_info): Remove.
2974 (amd64_register_info): Remove.
2975 (amd64_register_names): New static variable.
2976 (AMD64_NUM_REGS): Use amd64_register_names instead of
2977 amd64_register_info.
2978 (amd64_register_name): Likewise.
2979 (amd64_register_type): Do not refer to amd64_register_info.
2981 * s390-tdep.c (struct s390_register_info): Remove.
2982 (s390_register_info): Remove.
2983 (s390_register_name): Do not refer to s390_register_info.
2984 (s390_register_type): Likewise.
2986 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2987 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2988 (sparc64_register_names, sparc64_pseudo_register_names): New.
2989 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2990 sparc64_register_names and sparc64_pseudo_register_names instead of
2991 sparc64_register_info and sparc64_pseudo_register_info.
2992 (sparc64_register_name): Likewise.
2993 (sparc64_register_type): Do not refer to sparc64_register_info
2994 and sparc64_pseudo_register_info.
2996 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2998 * c-lang.c (cplus_builtin_types): Remove.
2999 (enum cplus_primitive_types): New data type.
3000 (cplus_language_arch_info): New function.
3001 (cplus_language_defn): Set la_language_arch_info member. Do not set
3002 la_builtin_type_vector and string_char_type members.
3004 * f-lang.c (f_builtin_types): Remove.
3005 (enum f_primitive_types): New data type.
3006 (f_language_arch_info): New function.
3007 (f_language_de): Set la_language_arch_info member. Do not set
3008 la_builtin_type_vector and string_char_type members.
3010 * m2-lang.c (m2_builtin_types): Remove.
3011 (enum m2_primitive_types): New data type.
3012 (m2_language_arch_info): New function.
3013 (m2_language_defn): Set la_language_arch_info member. Do not set
3014 la_builtin_type_vector and string_char_type members.
3016 * objc-lang.c (objc_builtin_types): Remove.
3017 (objc_language): Set la_language_arch_info member. Do not set
3018 la_builtin_type_vector and string_char_type members.
3020 * p-lang.c (pascal_builtin_types): Remove.
3021 (enum pascal_primitive_types): New data type.
3022 (pascal_language_arch_info): New function.
3023 (pascal_language_defn): Set la_language_arch_info member. Do not set
3024 la_builtin_type_vector and string_char_type members.
3026 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3028 * regcache.c (struct regcache): Add ptid_t member.
3029 (regcache_xmalloc): Initialize it.
3030 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
3031 (regcache_dup): Likewise.
3032 (regcache_dup_no_passthrough): Likewise.
3033 (current_regcache): Make static.
3034 (registers_ptid): Remove variable.
3035 (get_thread_regcache): New function.
3036 (get_current_regcache): New function.
3037 (registers_changed): Implement by freeing current regcache.
3038 (regcache_raw_read): Do not refer to current_regcache. Set
3039 inferior_ptid to regcache->ptid while calling target routines.
3040 (regcache_raw_write): Likewise.
3041 (regcache_raw_supply): Do not refer to current_regcache.
3042 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
3043 (write_pc_pid): Likewise.
3044 (build_regcache): Remove.
3045 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
3046 or deprecated_register_gdbarch_swap. Do not initialize
3048 * regcache.h (get_current_regcache): Add prototype.
3049 (get_thread_regcache): Likewise.
3050 (current_regcache): Remove declaration.
3052 * corelow.c (core_open): Replace current_regcache by
3053 get_current_regcache ().
3054 * frame.c (frame_pop): Likewise.
3055 (put_frame_register): Likewise.
3056 (get_current_frame, create_new_frame): Likewise.
3057 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
3058 * stack.c (return_command): Likewise.
3059 * infcall.c (call_function_by_hand): Likewise.
3060 * infrun.c (resume): Likewise.
3061 (save_inferior_status, restore_inferior_status): Likewise.
3062 * linux-fork.c (fork_load_infrun_state): Likewise.
3063 (fork_save_infrun_state): Likewise.
3064 * win32-nat.c (win32_resume): Likewise.
3065 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
3066 * monitor.c (monitor_wait): Likewise.
3067 * remote.c (remote_wait): Likewise.
3068 * remote-mips.c (mips_wait): Likewise.
3070 * bsd-kvm.c (bsd_kvm_open): Likewise
3071 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
3072 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
3073 * i386-linux-nat.c (i386_linux_resume): Likewise.
3074 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3075 (ia64_linux_stopped_data_address): Likewise.
3077 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
3078 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3079 * mep-tdep.c (current_me_module, current_options): Likewise.
3080 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
3082 * linux-nat.c (linux_nat_do_thread_registers): Use thread
3083 regcache instead of current_regcache. Call target_fetch_registers.
3084 (linux_nat_corefile_thread_callback): Update call site.
3085 (linux_nat_do_registers): Likewise.
3086 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
3087 of current_regcache.
3088 (procfs_make_note_section): Likewise.
3089 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
3090 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3091 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
3092 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3094 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3096 * regcache.c (read_register, read_register_pid): Remove.
3097 (write_register, write_register_pid): Likewise.
3098 * regcache.h (read_register, read_register_pid): Remove prototype.
3099 (write_register, write_register_pid): Likewise.
3101 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3103 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
3104 (write_pc): Likewise. Remove default implementation, add predicate.
3105 * gdbarch.c, gdbarch.h: Regenerate.
3106 * regcache.c (read_pc_pid): Use current regcache instead of calling
3108 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
3110 (generic_target_write_pc): Remove.
3111 * inferior.h (generic_target_write_pc): Remove.
3112 * frv-tdep.c (frv_gdbarch_init): Do not install it.
3113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3114 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3115 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3116 * sh-tdep.c (sh_gdbarch_init): Likewise.
3117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3119 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
3120 argument. Use REGCACHE instead of calling read_register_pid.
3121 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
3122 * hppa-tdep.c (hppa_read_pc): Likewise.
3123 * hppa-tdep.h (hppa_read_pc): Likewise.
3124 * ia64-tdep.c (ia64_read_pc): Likewise.
3125 * m32r-tdep.c (m32r_read_pc): Likewise.
3126 * mep-tdep.c (mep_read_pc): Likewise.
3127 * mn10300-tdep.c (mn10300_read_pc): Likewise.
3128 * spu-tdep.c (spu_read_pc): Likewise.
3130 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
3131 argument. Use REGCACHE instead of calling write_register_pid.
3132 * avr-tdep.c (avr_write_pc): Likewise.
3133 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
3134 * hppa-tdep.c (hppa_write_pc): Likewise.
3135 * hppa-tdep.h (hppa_write_pc): Likewise.
3136 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
3137 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
3138 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
3139 * ia64-tdep.c (ia64_write_pc): Likewise.
3140 * ia64-tdep.h (ia64_write_pc): Likewise.
3141 * m32r-tdep.c (m32r_write_pc): Likewise.
3142 * m88k-tdep.c (m88k_write_pc): Likewise.
3143 * mep-tdep.c (mep_write_pc): Likewise.
3144 * mips-tdep.c (mips_write_pc): Likewise.
3145 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3146 * mn10300-tdep.c (mn10300_write_pc): Likewise.
3147 * sparc-tdep.c (sparc_write_pc): Likewise.
3148 * spu-tdep.c (spu_write_pc): Likewise.
3150 * mips-tdep.c (read_signed_register): Remove.
3151 (read_signed_register_pid): Likewise.
3152 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
3153 Use REGCACHE instead of calling read_signed_register_pid.
3155 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3157 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
3158 * gdbarch.c, gdbarch.h: Regenerate.
3159 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
3160 (push_dummy_code): Likewise. Pass it to callee.
3161 (call_function_by_hand): Pass current regcache to push_dummy_code.
3163 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
3164 argument. Use it instead of current_regcache.
3166 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
3167 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
3169 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3171 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3172 * gdbarch.c, gdbarch.h: Regenerate.
3173 * infrun.c (handle_inferior_event): Pass current frame to
3174 gdbarch_get_longjmp_target.
3176 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3177 Read registers from FRAME instead of using read_register.
3178 Use get_frame_arch instead of current_gdbarch.
3179 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3180 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3181 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3182 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3183 (mips64_linux_get_longjmp_target): Likewise.
3184 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3186 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3188 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3189 * gdbarch.c, gdbarch.h: Regenerate.
3190 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3191 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3192 * infrun.c (handle_inferior_event): Pass current frame to
3193 gdbarch_skip_trampoline_code and skip_language_trampoline.
3195 * language.c (unk_lang_trampoline): Add FRAME argument.
3196 (skip_language_trampoline): Add FRAME argument. Pass it to
3197 skip_trampoline callback.
3198 * language.h: Add forward declaration of struct frame_info.
3199 (struct language_defn): Add FRAME argument to skip_trampoline.
3200 (skip_language_trampoline): Add FRAME argument.
3201 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3202 to skip_trampoline callback.
3203 * cp-abi.h: Add forward declaration of struct frame_info.
3204 (cplus_skip_trampoline): Add FRAME argument.
3205 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3206 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3207 to gdbarch_skip_trampoline_code.
3208 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3209 to gdbarch_skip_trampoline_code.
3211 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3212 * symtab.h (find_solib_trampoline_target): Likewise.
3213 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3214 find_solib_trampoline_target.
3216 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3217 from FRAME instead of calling read_register.
3219 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3220 argument. Read registers from FRAME instead of using read_register.
3221 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3222 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3224 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3227 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3229 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3230 registers from FRAME instead of using read_signed_register.
3232 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3234 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3235 instead of using read_register.
3236 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3237 ppc64_standard_linkage_target.
3238 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3239 Pass it to find_solib_trampoline_target. Read registers from FRAME
3240 instead of using read_register.
3242 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3245 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3247 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3249 * gdbarch.c, gdbarch.h: Regenerate.
3250 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3252 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3253 registers from FRAME instead of using read_register.
3254 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3255 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3256 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3259 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3260 from FRAME instead of using read_register.
3261 (thumb_get_next_pc): Likewise.
3262 (arm_get_next_pc): Likewise.
3263 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3264 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3265 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3268 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3269 from FRAME instead of using read_register.
3270 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3271 to find_step_target.
3273 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3274 from FRAME instead of using read_register / read_signed_register.
3275 (extended_mips16_next_pc): Likewise.
3276 (mips16_next_pc): Likewise.
3277 (mips_next_pc): Likewise.
3278 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3279 to mips_next_pc. Use get_frame_pc instead of read_pc.
3280 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3283 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3284 of current frame. Read registers from FRAME.
3285 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3286 branch_dest. Use get_frame_pc instead of read_pc.
3287 (rs6000_software_single_step): Likewise.
3288 (bl_to_blrl_insn_p): Do not call branch_dest.
3289 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3292 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3293 Read registers from FRAME instead of current regcache.
3294 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3295 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3296 * sparc-tdep.c (sparc_address_from_register): Remove.
3297 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3298 GDBARCH. Pass FRAME to step_trap callback.
3299 (sparc_step_trap): Add FRAME argument.
3300 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3301 to sparc_analyze_control_transfer. Read registers from FRAME instead
3302 of calling sparc_address_from_register.
3303 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3305 (sparc_address_from_register): Remove prototype.
3306 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3307 (sparcnbsd_step_trap): Add FRAME argument.
3309 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3310 by FRAME. Read registers from FRAME instead of REGCACHE.
3312 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3314 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3315 instead of calling read_register.
3317 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3318 calling write_register.
3320 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3321 calling write_register.
3323 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3324 instead of calling read_register.
3325 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3326 instead of calling read_register and write_register.
3328 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3329 instead of current_regcache.
3331 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3332 of calling write_register.
3333 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3334 parameter instead of current_regcache.
3336 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3337 instead of calling read_register.
3338 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3339 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3340 (mips_n32n64_push_dummy_call): Likewise.
3341 (mips_o32_push_dummy_call): Likewise.
3342 (mips_o64_push_dummy_call): Likewise.
3344 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3345 parameter instead of current_regcache.
3347 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3348 Use it instead of read_register and write_register.
3349 (xtensa_register_read_masked): Likewise.
3350 (xtensa_pseudo_register_read): Update call.
3351 (xtensa_pseudo_register_write): Likewise.
3352 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3353 instead of calling read_register.
3354 (xtensa_push_dummy_call): Update comment.
3356 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3358 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3359 by frame_unwind_register_signed calls.
3360 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3361 frame allocations when called with NULL NEXT_FRAME parameter.
3362 (read_next_frame_reg): Remove.
3364 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3365 instead of reading the FPSCR register.
3366 (sh_frame_cache): Pass unwound FPSCR register value to
3367 sh_analyze_prologue.
3368 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3370 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3371 instead of reading the CTBP register.
3372 (v850_frame_cache): Pass unwound CTBP register value to
3373 v850_analyze_prologue.
3375 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3377 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3378 * sh-tdep.c (sh_show_regs): Likewise.
3379 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3380 (sh_generic_show_regs): Add FRAME parameter. Use register
3381 values from that frame instead of calling read_register.
3382 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3383 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3384 sh_dsp_show_regs): Likewise.
3385 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3386 sh64_show_regs): Likewise.
3388 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3390 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3391 current regcache instead of calling read_register.
3393 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3395 * mep-tdep.c (current_me_module): Read from current regcache
3396 instead of calling read_register.
3397 (current_options): Likewise.
3399 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3401 * cris-tdep.c (cris_stopped_data_address): Read register values
3402 from current frame instead of calling read_register.
3403 * frv-tdep.c (frv_stopped_data_address): Likewise.
3405 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3407 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3408 instead of write_register (PC_REGNUM, ...).
3410 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3412 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3413 explaining why the PC adjustment code is necessary.
3415 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3417 * m68k-tdep.h (enum m68k_flavour): New.
3418 (struct gdbarch_tdep): New fields
3419 float_return, flavour and fpregs_present.
3420 * m68k-tdep.c (m68k_register_type): Use
3421 fpregs_present and conditionalize floating
3422 registers type on flavour.
3423 (m68k_register_names): New.
3424 (m68k_register_name): Use the above.
3425 (m68k_convert_register_p): Consult fpregs_present.
3426 (m68k_register_to_value, m68k_value_to_register):
3427 Use register_type to obtain the type of floating
3429 (m68k_svr4_extract_return_value): Check tdep->float_return.
3430 Use register_type to get the type of floating
3432 (m68k_svr4_store_return_value): Likewise.
3433 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3434 (m68k_analyze_register_saves): Likewise.
3435 (m68k_gdbarch_init): Extract infromation
3436 from XML description, if present. Guess coldfire by
3437 looking at the file, if present. Conditionalize
3438 setting of long double format. Set decr_pc_after_break
3439 to 2 on coldfire and fido. Enable XML-driven
3440 register description.
3441 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3442 size of tdep->fpreg_type, as opposed to hardcoded value.
3443 * Makefile.in (m68k-tdep.o): Update dependencies.
3445 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3447 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3448 qXfer:spu:write remote packet types.
3450 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3452 * xml-tdesc.c (tdesc_start_target): New.
3453 (target_attributes): New.
3454 (tdesc_elements): Use it.
3455 * features/gdb-target.dtd: Add #FIXED version attribute for
3458 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3460 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3462 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3464 * fork-child.c (fork_inferior): Update comment.
3466 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3468 * features/Makefile: Generate regformats for mips-linux and
3470 * features/sort-regs.xsl: Correct typo.
3471 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3472 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3475 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3477 * config/mips/linux.mh (TDEP_XML): New.
3478 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3479 * mips-linux-nat.c (mips_linux_register_addr): Handle
3480 MIPS_RESTART_REGNUM.
3481 (mips64_linux_register_addr): Likewise.
3482 (super_xfer_partial, mips_linux_xfer_partial): New.
3483 (_initialize_mips_linux_nat): Add them to the target_ops.
3484 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3485 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3486 (mips_linux_o32_sigframe_init)
3487 (mips_linux_n32n64_sigframe_init): Likewise.
3488 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3489 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3490 "org.gnu.gdb.mips.linux" feature.
3491 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3492 (mips_linux_restart_reg_p): New prototype.
3493 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3494 initialization routine.
3495 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3497 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3499 * Makefile.in (mips-tdep.o): Update.
3500 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3501 (mips_n32_n64_aliases, mips_register_aliases): New.
3502 (mips_register_name): Call tdesc_register_name.
3503 (mips_tdesc_register_reggroup_p): New.
3504 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3505 (mips_gdbarch_init): Add target-described register support.
3506 Register aliases for register names.
3507 * target-descriptions.c (tdesc_register_name): Make global.
3508 (tdesc_register_in_reggroup_p): New function, broken out from
3509 tdesc_register_reggroup_p.
3510 (tdesc_register_reggroup_p): Use it.
3511 * target-descriptions.h (tdesc_register_name)
3512 (tdesc_register_in_reggroup_p): New prototypes.
3513 * NEWS: Correct formatting. Mention MIPS register support.
3514 * features/mips-cp0.xml, features/mips-fpu.xml,
3515 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3516 features/mips64-cpu.xml: New files.
3518 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3520 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3521 * valops.c (value_cast): Likewise.
3522 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3523 * ui-out.c (ui_out_field_core_addr): Likewise.
3524 * tracepoint.c (tracepoints_info): Likewise.
3525 * symtab.c (print_msymbol_info): Likewise.
3526 * solib-irix.c (irix_current_sos)
3527 (irix_open_symbol_file_object): Likewise.
3528 * remote.c (build_remote_gdbarch_data): Likewise.
3529 * prologue-value.c (make_pv_area): Likewise.
3530 * procfs.c (info_mappings_callback): Likewise.
3531 * printcmd.c (print_scalar_formatted)
3532 (deprecated_print_address_numeric): Likewise.
3533 * memattr.c (mem_info_command): Likewise.
3534 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3535 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3536 * exec.c (print_section_info): Likewise.
3537 * dwarf2read.c (read_subrange_type): Likewise.
3538 * dwarf2loc.c (find_location_expression): Likewise.
3539 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3540 (signed_address_type, execute_stack_op): Likewise.
3541 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3542 * gdbarch.c, gdbarch.h: Regenerate.
3544 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3546 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3547 * arch-utils.c (show_architecture): Likewise.
3548 * remote-mips.c (mips_open): Likewise
3549 * nto-tdep.c (nto_find_and_open_solib)
3550 (nto_init_solib_absolute_prefix): Likewise.
3551 * nto-procfs (procfs_open): Likewise.
3552 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3553 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3554 * gdbarch.c, gdbarch.h: Regenerate.
3556 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3558 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3559 * gdbtypes.c (build_flt): Likewise.
3560 * gdbarch.c, gdbarch.h: Regenerate.
3562 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3564 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3565 gdbarch_breakpoint_from_pc.
3566 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3567 * remote.c (remote_insert_breakpoint)
3568 (remote_insert_hw_breakpoint): Likewise.
3569 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3570 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3571 * breakpoint.h (bp_target_info): Likewise (comment).
3572 * breakpoint.c (read_memory_nobpt): Likewise.
3573 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3574 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3575 * gdbarch.c, gdbarch.h: Regenerate.
3577 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3579 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3580 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3581 * solib-pa64.c (read_dynamic_info): Likewise.
3582 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3583 * solib.c (info_sharedlibrary_command): Likewise.
3584 * s390-nat.c (SUBOFF): Likewise.
3585 * p-valprint.c (pascal_val_print): Likewise.
3586 * procfs.c (info_proc_mappings): Likewise.
3587 * printcmd.c (decode_format): Likewise.
3588 * nto-tdep.c (nto_truncate_ptr): Likewise.
3589 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3590 (mips64_linux_get_longjmp_target): Likewise.
3591 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3592 * jv-valprint.c (java_value_print): Likewise.
3593 * jv-lang.c (get_java_object_header_size): Likewise.
3594 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3595 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3596 (hppa_hpux_unwind_adjust_stub): Likewise.
3597 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3598 * gdbtypes.c (make_pointer_type, make_reference_type)
3599 (smash_to_memberptr_type): Likewise.
3600 * gdbarch.c, gdbarch.h: Regenerate.
3602 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3604 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3605 (print_gp_register_row): Stop before printing a register bigger
3606 than the ABI register size.
3607 (mips_print_registers_info): Update call to mips_print_register.
3609 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3611 * expression.h (enum exp_opcode): Document a register name for
3613 * parse.c (write_dollar_variable): Write the register name for
3615 (operator_length_standard): Expect the register name following
3617 * ada-lang.c (resolve_subexp): Likewise.
3618 * ax-gdb.c (gen_expr): Likewise.
3619 * eval.c (evaluate_subexp_standard): Likewise.
3620 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3622 * tracepoint.c (encode_actions): Likewise.
3624 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3626 * utils.c (set_screen_size): Use INT_MAX for default columns.
3628 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3630 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3631 qXfer:spu:write packet types.
3633 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3635 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3636 * gdbarch.c, gdbarch.h: Regenerate.
3638 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3640 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3641 gdbarch_stab_reg_to_regnum.
3642 * stabsread.c (define_symbol): Likewise.
3643 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3644 gdbarch_ecoff_reg_to_regnum.
3645 * mdebugread.c (parse_symbol): Likewise.
3646 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3647 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3648 gdbarch_dwarf_reg_to_regnum.
3649 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3650 * coffread.c (process_coff_symbol): Likewise.
3651 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3652 gdbarch_dwarf2_reg_to_regnum.
3653 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3654 (locexpr_describe_location): Likewise.
3655 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3656 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3657 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3658 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3659 * gdbarch.c, gdbarch.h: Regenerate.
3661 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3663 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3664 gdbarch_smash_text_address.
3665 * somread.c (som_symtab_read): Likewise.
3666 * elfread.c (record_minimal_symbol): Likewise.
3667 * dbxread.c (process_one_symbol): Likewise.
3668 * coffread.c (coff_symtab_read): Likewise.
3669 * gdbarch.c, gdbarch.h: Regenerate.
3671 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3673 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3674 * findvar.c (value_from_register): Likewise.
3675 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3676 * valops.c (value_assign): Likewise.
3677 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3678 gdbarch_convert_register_p.
3679 * findvar.c (value_from_register): Likewise.
3680 * valops.c (value_assign): Likewise.
3681 * gdbarch.c, gdbarch.h: Regenerate.
3683 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3685 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3686 gdbarch_register_sim_regno.
3687 * sim-regno.h (sim_regno): Likewise (comment).
3688 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3689 * gdbarch.c, gdbarch.h: Regenerate.
3691 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3693 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3694 gdbarch_virtual_frame_pointer.
3695 * tracepoint.c (encode_actions): Likewise.
3696 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3697 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3698 * gdbarch.c, gdbarch.h: Regenerate.
3700 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3702 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3703 * p-lang.c (pascal_create_fundamental_type): Likewise.
3704 * objc-lang.c (objc_create_fundamental_type): Likewise.
3705 * mdebugread.c (_initialize_mdebugread): Likewise.
3706 * m2-lang.c (m2_create_fundamental_type)
3707 (_initialize_m2_language): Likewise.
3708 * gdbtypes.c (build_gdbtypes): Likewise.
3709 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3710 * doublest.c (floatformat_from_length): Likewise.
3711 * c-lang.c (c_create_fundamental_type): Likewise.
3712 * ada-lang.c (ada_create_fundamental_type)
3713 (ada_language_arch_info): Likewise.
3714 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3715 * value.c (unpack_double): Likewise (comment).
3716 * gdbtypes.c (build_gdbtypes): Likewise.
3717 * doublest.c (floatformat_from_length): Likewise.
3718 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3719 * valarith.c (value_binop): Likewise.
3720 * p-lang.c (pascal_create_fundamental_type): Likewise.
3721 * objc-lang.c (objc_create_fundamental_type): Likewise.
3722 * mdebugread.c (_initialize_mdebugread): Likewise.
3723 * m2-lang.c (m2_create_fundamental_type): Likewise.
3724 * gdbtypes.c (build_gdbtypes): Likewise.
3725 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3726 * doublest.c (floatformat_from_length): Likewise.
3727 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3728 * c-lang.c (c_create_fundamental_type): Likewise.
3729 * ada-lex.l (processReal): Likewise.
3730 * ada-lang.c (ada_create_fundamental_type)
3731 (ada_language_arch_info): Likewise.
3732 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3733 * value.c (unpack_double): Likewise (comment).
3734 * gdbtypes.c (build_gdbtypes): Likewise.
3735 * doublest.c (floatformat_from_length): Likewise.
3736 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3737 gdbarch_long_double_bit.
3738 * p-lang.c (pascal_create_fundamental_type): Likewise.
3739 * objc-lang.c (objc_create_fundamental_type): Likewise.
3740 * m2-lang.c (m2_create_fundamental_type): Likewise.
3741 * gdbtypes.c (build_gdbtypes): Likewise.
3742 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3743 * doublest.c (floatformat_from_length): Likewise.
3744 * c-lang.c (c_create_fundamental_type): Likewise.
3745 * ada-lex.l (processReal): Likewise.
3746 * ada-lang.c (ada_create_fundamental_type)
3747 (ada_language_arch_info): Likewise.
3748 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3749 gdbarch_long_double_format.
3750 * gdbtypes.c (build_gdbtypes): Likewise.
3751 * doublest.c (floatformat_from_length): Likewise.
3752 * gdbarch.c, gdbarch.h: Regenerate.
3754 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3756 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3757 * ada-lang.c (ada_create_fundamental_type)
3758 (ada_language_arch_info): Likewise.
3759 * c-lang.c (c_create_fundamental_type): Likewise.
3760 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3761 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3762 * m2-lang.c (m2_create_fundamental_type): Likewise.
3763 * objc-lang.c (objc_create_fundamental_type): Likewise.
3764 * p-lang.c (pascal_create_fundamental_type): Likewise.
3765 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3766 * c-exp.y (parse_number): Likewise.
3767 * objc-exp.y (parse_number): Likewise.
3768 * ada-lex.l (processInt): Likewise.
3769 * f-exp.y (parse_number): Likewise.
3770 * p-exp.y (parse_number): Likewise.
3771 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3772 (gdbtypes_post_init, build_gdbtypes): Likewise.
3773 * p-lang.c (pascal_create_fundamental_type): Likewise.
3774 * parse.c (build_parse): Likewise.
3775 * xcoffread.c (_initialize_xcoffread): Likewise.
3776 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3777 (read_range_type): Likewise.
3778 * objc-lang.c (objc_create_fundamental_type): Likewise.
3779 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3780 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3781 (m2_create_fundamental_type): Likewise.
3782 * c-lang.c (c_create_fundamental_type): Likewise.
3783 * coffread.c (coff_read_enum_type): Likewise.
3784 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3785 * dwarf2read.c (new_symbol): Likewise.
3786 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3787 * c-exp.y (parse_number): Likewise.
3788 * objc-exp.y (parse_number): Likewise.
3789 * ada-lex.l (processInt): Likewise.
3790 * f-exp.y (parse_number): Likewise.
3791 * p-exp.y (parse_number): Likewise.
3792 * valarith.c (value_binop): Likewise.
3793 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3794 * ada-lang.c (ada_create_fundamental_type)
3795 (ada_language_arch_info): Likewise.
3796 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3797 * symfile.c (TARGET_LONG_BYTES): Likewise.
3798 * p-lang.c (pascal_create_fundamental_type): Likewise.
3799 * objc-lang.c (objc_create_fundamental_type): Likewise.
3800 * m2-lang.c (m2_create_fundamental_type): Likewise.
3801 * f-lang.c (f_create_fundamental_type): Likewise.
3802 * c-lang.c (c_create_fundamental_type): Likewise.
3803 * coffread.c (decode_base_type): Likewise.
3804 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3805 * c-exp.y (parse_number): Likewise.
3806 * objc-exp.y (parse_number): Likewise.
3807 * p-exp.y (parse_number): Likewise.
3808 * ada-lang.c (ada_create_fundamental_type)
3809 (ada_language_arch_info): Likewise.
3810 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3811 * stabsread.c (read_range_type): Likewise.
3812 * p-lang.c (pascal_create_fundamental_type): Likewise.
3813 * objc-lang.c (objc_create_fundamental_type): Likewise.
3814 * m2-lang.c (m2_create_fundamental_type): Likewise.
3815 * f-lang.c (f_create_fundamental_type): Likewise.
3816 * c-lang.c (c_create_fundamental_type): Likewise.
3817 * gdbarch.c, gdbarch.h: Regenerate.
3819 2007-06-12 Andreas Schwab <schwab@suse.de>
3821 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3822 (struct frame_unwind): Add dealloc_cache.
3823 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3825 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3826 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3827 (libunwind_frame_unwind): Set dealloc_cache.
3828 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3830 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3831 Markus Deuling <deuling@de.ibm.com>
3833 * remote.c (remote_write_qxfer): New function.
3834 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3835 (remote_read_qxfer): Do not cache empty objects.
3836 (_initialize_remote): Add PACKET_qXfer_spu_read and
3837 PACKET_qXfer_spu_write.
3839 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3841 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3842 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3844 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3845 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3846 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3847 * spu-tdep.c (infospucmdlist): New variable.
3848 (spu_register_name): Handle additional pseudo registers.
3849 (spu_register_type): Likewise.
3850 (spu_pseudo_register_read): Likewise.
3851 (spu_pseudo_register_write): Likewise.
3852 (spu_pseudo_register_read_spu): New function.
3853 (spu_pseudo_register_write_spu): Likewise.
3854 (info_spu_event_command): New function.
3855 (info_spu_signal_command): Likewise.
3856 (info_spu_mailbox_list): Likewise.
3857 (info_spu_mailbox_command): Likewise.
3858 (spu_mfc_get_bitfield): Likewise.
3859 (info_spu_dma_cmdlist): Likewise.
3860 (info_spu_dma_command): Likewise.
3861 (info_spu_proxydma_command): Likewise.
3862 (info_spu_command): Likewise.
3863 (_initialize_spu_tdep): Install "info spu" commands.
3865 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3867 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3868 accessing non-seekable spufs files.
3870 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3872 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3873 gdbarch_skip_trampoline_code.
3874 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3875 * objc-lang.c (objc_skip_trampoline)
3876 (objc_submethod_helper_data): Likewise.
3877 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3878 * infrun.c (handle_inferior_event): Likewise.
3879 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3880 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3881 gdbarch_in_solib_return_trampoline.
3882 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3883 * infrun.c (handle_inferior_event): Likewise.
3884 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3885 * gdbarch.c, gdbarch.h: Regenerate.
3887 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3889 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3890 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3891 * linespec.c (minsym_found): Likewise.
3892 * infrun.c (step_into_function): Likewise.
3893 * gdbarch.c, gdbarch.h: Regenerate.
3895 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3897 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3898 * valops.c (value_allocate_space_in_inferior): Likewise.
3899 * gdbarch.c, gdbarch.h: Regenerate.
3901 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3903 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3904 gdbarch_memory_insert_breakpoint.
3905 * mem-break.c (memory_insert_breakpoint): Likewise.
3906 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3907 gdbarch_memory_remove_breakpoint.
3908 * mem-break.c (memory_remove_breakpoint): Likewise.
3909 * gdbarch.c, gdbarch.h: Regenerate.
3911 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3913 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3914 gdbarch_fetch_tls_load_module_address.
3915 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3916 gdbarch_fetch_tls_load_module_address_p.
3917 * gdbarch.c, gdbarch.h: Regenerate.
3919 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3921 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3922 gdbarch_decr_pc_after_break.
3923 * tracepoint.c (trace_dump_command): Likewise.
3924 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3925 * linux-thread-db.c (check_event): Likewise.
3926 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3927 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3928 * frame.h: Likewise (comment).
3929 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3930 * aix-thread.c (aix_thread_wait): Likewise.
3931 * gdbarch.c, gdbarch.h: Regenerate.
3933 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3935 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3936 gdbarch_address_class_type_flags.
3937 * dwarf2read.c (read_tag_pointer_type): Likewise.
3938 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3939 gdbarch_address_class_type_flags_p.
3940 * dwarf2read.c (read_tag_pointer_type): Likewise.
3941 * gdbarch.c, gdbarch.h: Regenerate.
3943 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3945 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3946 * value.c (value_as_address): Likewise (comment).
3947 * remote-mips.c (common_breakpoint): Likewise.
3948 * regcache.c (read_pc_pid): Likewise.
3949 * printcmd.c (do_one_display): Likewise.
3950 * monitor.c (monitor_write_memory, monitor_read_memory)
3951 (monitor_insert_breakpoint): Likewise.
3952 * mips-tdep.c (heuristic_proc_start): Likewise.
3953 * infrun.c (insert_step_resume_breakpoint_at_frame)
3954 (insert_step_resume_breakpoint_at_caller): Likewise.
3955 * buildsym.c (record_line): Likewise.
3956 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3957 (arm_get_next_pc): Likewise.
3958 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3959 (store_regs): Likewise.
3960 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3961 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3962 * gdbarch.c, gdbarch.h: Regenerate.
3964 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3966 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3967 * tracepoint.c (scope_info): Likewise.
3968 * target.c (debug_print_register): Likewise.
3969 * stack.c (frame_info): Likewise.
3970 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3971 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3972 (sh64_media_print_registers_info)
3973 (sh64_compact_print_registers_info): Likewise.
3974 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3975 * remote-sim.c (gdbsim_fetch_register): Likewise.
3976 * remote.c (packet_reg): Likewise (comment).
3977 * reggroups.c (default_register_reggroup_p): Likewise.
3978 * regcache.c (regcache_dump): Likewise.
3979 * printcmd.c (address_info): Likewise.
3980 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3981 * mt-dep.c (mt_registers_info): Likewise.
3982 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3983 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3984 (mips_read_fp_register_double, mips_print_fp_register)
3985 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3986 (mips_register_sim_regno): Likewise.
3987 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3988 * inf-ptrace.c (inf_ptrace_fetch_register)
3989 (inf_ptrace_store_register): Likewise.
3990 * infcmd.c (default_print_registers_info): Likewise.
3991 * ia64-linux-nat.c (ia64_linux_fetch_register)
3992 (ia64_linux_store_register): Likewise.
3993 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3994 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3995 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3996 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3997 (hppa_hpux_store_register): Likewise.
3998 * findvar.c (locate_var_value): Likewise.
3999 * dwarf2loc.c (locexpr_describe_location): Likewise.
4000 * dwarf2-frame.c (execute_cfa_program): Likewise.
4001 * arm-tdep.c (arm_push_dummy_call): Likewise.
4002 * arch-utils.c (legacy_register_sim_regno): Likewise.
4003 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
4004 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4005 * mi/mi-main.c (mi_cmd_data_list_register_names)
4006 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
4007 (mi_cmd_data_write_register_values): Likewise.
4008 * gdbarch.c, gdbarch.h: Regenerate.
4010 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
4012 * target-memory.c (blocks_to_erase): Correct off-by-one error.
4014 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
4016 * remote.c (process_g_packet): Don't check size.
4017 * gdbarch.sh: Remove register_bytes_ok.
4018 * gdbarch.c: Regenerated.
4019 * gdbarch.h: Regenerated.
4020 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
4021 (m68k_register_bytes_ok): Remove.
4022 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
4024 2007-06-06 Andreas Schwab <schwab@suse.de>
4026 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
4027 (destroy_addr_space_name): Define.
4028 (libunwind_load): Get address of destroy_addr_space function.
4029 (libunwind_frame_cache): Destroy unw_addr_space_t object before
4030 returning unsuccessfully.
4031 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
4033 (libunwind_sigtramp_frame_sniffer): Likewise.
4034 (libunwind_get_reg_special): Likewise.
4036 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4038 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
4039 gdbarch_fetch_pointer_argument.
4040 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
4041 * gdbarch.c, gdbarch.h: Regenerate.
4043 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4045 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
4046 gdbarch_have_nonsteppable_watchpoint.
4047 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
4048 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
4049 gdbarch_cannot_step_breakpoint.
4050 * infrun.c (resume): Likewise.
4051 * gdbarch.c, gdbarch.h: Regenerate.
4053 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4055 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
4056 * stack.c (print_frame_args): Likewise.
4057 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
4058 * stack.c (print_args_stub, frame_info): Likewise.
4059 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
4060 * stack.c (print_args_stub, frame_info): Likewise.
4061 * gdbarch.c, gdbarch.h: Regenerate.
4063 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4065 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
4066 gdbarch_coff_make_msymbol_special.
4067 * coffread.c (coff_symtab_read): Likewise.
4068 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
4069 gdbarch_elf_make_msymbol_special.
4070 * elfread.c (elf_symtab_read): Likewise.
4071 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
4072 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
4073 * gdbarch.c, gdbarch.h: Regenerate.
4075 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4077 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
4078 gdbarch_frame_red_zone_size.
4079 * gdbarch.c, gdbarch.h: Regenerate.
4081 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4083 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
4084 * infcall.c (call_function_by_hand): Likewise.
4085 * gcore.c (derive_stack_segment): Likewise.
4086 * frame.c (frame_id_inner): Likewise.
4087 * arch-utils.c (core_addr_lessthan): Likewise (comment).
4088 * ada-lang.c (ensure_lval): Likewise.
4089 * gdbarch.c, gdbarch.h: Regenerate.
4091 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4093 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
4094 gdbarch_address_to_pointer.
4095 * findvar.c (store_typed_address): Likewise.
4096 * gdbtypes.c (make_pointer_type): Likewise (comment).
4097 * procfs.c (procfs_address_to_host_pointer): Likewise.
4098 * std-regs.c (value_of_builtin_frame_reg): Likewise.
4099 (value_of_builtin_frame_fp_reg): Likewise.
4100 (value_of_builtin_frame_pc_reg): Likewise.
4101 * utils.c (paddress): Likewise (comment).
4102 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
4103 gdbarch_pointer_to_address.
4104 * findvar.c (extract_typed_address): Likewise.
4105 * gdbtypes.c (make_pointer_type): Likewise (comment).
4106 * valops.c (value_cast): Likewise (comment).
4107 * gdbarch.c, gdbarch.h: Regenerate.
4109 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4111 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
4112 * infrun.c (handle_inferior_event): Likewise.
4113 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
4114 gdbarch_get_longjmp_target_p.
4115 * breakpoint.c (breakpoint_re_set): Likewise.
4116 * infrun.c (handle_inferior_event): Likewise.
4117 * gdbarch.c, gdbarch.h: Regenerate.
4119 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4121 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
4122 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
4123 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
4124 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
4125 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
4126 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
4127 find_stub_with_shl_get, cover_find_stub_with_shl_get,
4128 initialize_hp_cxx_exception_support, child_enable_exception_callback,
4129 current_ex_event, child_get_current_exception_event): Remove.
4130 (hppa_hpux_inferior_created): Remove.
4131 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
4133 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
4134 (deprecated_exception_support_initialized): Remove.
4135 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
4136 (deprecated_exception_support_initialized): Remove.
4137 (breakpoint_init_inferior): Remove handling of non-zero
4138 deprecated_exception_catchpoints_are_fragile.
4140 * symtab.h (deprecated_hp_som_som_object_present): Remove.
4141 * symtab.c (deprecated_hp_som_som_object_present): Remove.
4142 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
4143 deprecated_hp_som_som_object_present.
4144 * eval.c (evaluate_subexp_standard): Likewise.
4145 * valops.c (value_cast): Likewise.
4147 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
4148 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
4149 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
4151 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4153 * objfiles.h (ImportEntry, ExportEntry): Remove types.
4154 (struct objfile): Remove import_list, import_list_size,
4155 export_list, export_list_size members.
4156 (is_in_import_list): Remove prototype.
4157 * objfiles.c (is_in_import_list): Remove.
4158 * somread.c (init_import_symbols, init_export_symbols): Remove.
4159 (som_symfile_read): Do not call init_import_symbols. Do not
4160 set objfile->export_list and objfile->export_list_size.
4162 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4164 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
4165 Use the original objfile if necessary.
4167 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
4169 * defs.h (ldirname): New prototype.
4170 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4172 * utils.c (ldirname): New function.
4173 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4175 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4177 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4179 2007-06-01 Joel Brobecker <brobecker@adacore.com>
4181 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4183 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4185 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4187 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4189 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4190 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4191 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4192 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4193 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4194 ppc_linux_at_sigtramp_return_path): Remove.
4196 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4198 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4199 (xtensa_register_write_masked, xtensa_register_read_masked)
4200 (xtensa_extract_return_value, xtensa_store_return_value
4201 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4202 TARGET_BYTE_ORDER by gdbarch_byte_order.
4203 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4204 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4205 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4206 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4207 (sh64_push_dummy_call, sh64_extract_return_value)
4208 (sh64_store_return_value, sh64_register_convert_to_virtual)
4209 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4210 (sh64_pseudo_register_write, sh64_do_fp_register)
4211 (sh64_frame_prev_register): Likewise.
4212 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4213 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4214 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4215 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4216 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4217 * ppc-linux-nat.c (store_register): Likewise.
4218 * nto-tdep.c (nto_find_and_open_solib)
4219 (nto_init_solib_absolute_prefix): Likewise.
4220 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4221 (mips_convert_register_p, mips_eabi_push_dummy_call)
4222 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4223 (mips_o32_push_dummy_call, mips_o32_return_value)
4224 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4225 (mips_read_fp_register_single, mips_read_fp_register_double)
4226 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4227 (mips_breakpoint_from_pc): Likewise.
4228 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4229 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4230 (mips_linux_o32_sigframe_init): Likewise.
4231 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4232 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4233 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4234 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4235 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4236 * coffread.c (process_coff_symbol): Likewise.
4237 * arm-tdep.c (convert_from_extended, convert_to_extended)
4238 (gdb_print_insn_arm): Likewise.
4240 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4242 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4243 * i386-tdep.c (i386_dbx_reg_to_regnum)
4244 (i386_svr4_reg_to_regnum): Likewise.
4245 * inf-ptrace.c (inf_ptrace_fetch_registers)
4246 (inf_ptrace_store_registers): Likewise.
4247 * corelow.c (get_core_registers): Likewise.
4248 * i386-linux-nat.c (supply_gregset, fill_gregset)
4249 (i386_linux_fetch_inferior_registers)
4250 (i386_linux_store_inferior_registers): Likewise.
4251 * remote.c (init_remote_state,packet_reg_from_regnum)
4252 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4253 (remote_prepare_to_store,store_registers_using_G)
4254 (remote_store_registers,remote_arch_state): Likewise.
4255 * tracepoint.c (encode_actions): Likewise.
4256 * mi/mi-main.c (mi_cmd_data_list_register_names)
4257 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4258 (mi_cmd_data_write_register_values): Likewise.
4259 * tui/tui-regs.c (tui_show_register_group)
4260 (tui_show_register_group): Likewise.
4261 * xtensa-tdep.h (FP_ALIAS): Likewise.
4262 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4263 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4264 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4265 * win32-nat.c (do_win32_fetch_inferior_registers)
4266 (do_win32_store_inferior_registers,fetch_elf_core_registers
4267 * user-regs.h: Likewise (comment).
4268 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4269 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4270 * target-descriptions.h: Likewise (comment).
4271 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4272 * target.c (debug_print_register): Likewise.
4273 * stack.c (frame_info): Likewise.
4274 * stabsread.c (define_symbol): Likewise.
4275 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4276 (sh64_media_print_registers_info)
4277 (sh64_compact_print_registers_info): Likewise.
4278 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4279 * rs6000-nat.c (fetch_register,store_register): Likewise.
4280 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4281 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4282 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4283 * remote-m32r-sdi.c (m32r_fetch_registers)
4284 (m32r_store_registers): Likewise.
4285 * reggroups.c (default_register_reggroup_p): Likewise.
4286 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4287 (regcache_restore,regcache_dump): Likewise.
4288 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4289 * mips-tdep.c (mips_xfer_register,mips_register_name)
4290 (mips_register_reggroup_p,mips_pseudo_register_read)
4291 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4292 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4293 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4294 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4295 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4296 (print_gp_register_row,mips_print_registers_info)
4297 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4298 (mips_register_sim_regno): Likewise.
4299 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4300 (mips_linux_n32n64_sigframe_init): Likewise.
4301 * mips-linux-nat.c (mips_linux_register_addr)
4302 (mips64_linux_register_addr): Likewise.
4303 * findvar.c (value_of_register): Likewise.
4304 * infcmd.c (default_print_registers_info,registers_info)
4305 (print_vector_info,print_float_info): Likewise.
4306 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4307 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4308 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4309 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4310 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4311 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4312 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4313 (ia64_linux_store_registers): Likewise.
4314 * hpux-thread.c (hpux_thread_fetch_registers)
4315 (hpux_thread_store_registers): Likewise.
4316 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4317 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4318 (h8300_register_type): Likewise.
4319 * dwarf2-frame.c (dwarf2_frame_cache)
4320 (dwarf2_frame_state_alloc_regs): Likewise.
4321 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4322 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4323 (crisv32_cannot_store_register,cris_register_name): Likewise.
4324 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4325 * arch-utils.c (legacy_register_sim_regno)
4326 (legacy_virtual_frame_pointer): Likewise.
4327 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4328 * arm-tdep.h: Likewise (comment).
4329 * frv-tdep.c (frv_register_sim_regno): Likewise.
4330 * m68klinux-nat.c (old_fetch_inferior_registers)
4331 (old_store_inferior_registers): Likewise.
4332 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4333 * irix5-nat.c (fetch_core_registers): Likewise.
4334 * hppa-tdep.c (hppa_frame_cache): Likewise.
4335 * hppa-linux-nat.c (hppa_linux_register_addr)
4336 (hppa_linux_fetch_inferior_registers)
4337 (hppa_linux_store_inferior_registers): Likewise.
4338 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4339 (hppa_hpux_store_inferior_registers): Likewise.
4340 * amd64-nat.c (amd64_native_gregset_reg_offset)
4341 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4342 * dbug-rom.c (dbug_regname): Likewise.
4343 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4344 (HARD_PAGE_REGNUM (comment)): Likewise.
4345 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4346 * i386-tdep.c (i386_dbx_reg_to_regnum)
4347 (i386_svr4_reg_to_regnum): Likewise.
4348 * mi/mi-main.c (mi_cmd_data_list_register_names)
4349 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4350 (mi_cmd_data_write_register_values): Likewise.
4351 * gdbarch.c, gdbarch.h: Regenerate.
4352 * tui/tui-regs.c (tui_show_register_group): Likewise.
4353 * xtensa-tdep.h (FP_ALIAS): Likewise.
4354 * user-regs.h: Likewise (comment).
4355 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4356 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4357 * target-descriptions.h: Likewise (comment).
4358 * target.c (debug_print_register): Likewise.
4359 * stack.c (frame_info): Likewise.
4360 * stabsread.c (define_symbol): Likewise.
4361 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4362 (sh64_compact_print_registers_info): Likewise.
4363 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4364 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4365 (regcache_restore,regcache_dump): Likewise.
4366 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4367 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4368 (mips_stab_reg_to_regnum): Likewise.
4369 * findvar.c (value_of_register): Likewise.
4370 * infcmd.c (default_print_registers_info,registers_info)
4371 (print_vector_info,print_float_info): Likewise.
4372 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4373 * h8300-tdep.c (h8300_register_type): Likewise.
4374 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4375 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4376 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4377 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4378 * parse.c: Remove comment.
4379 * gdbarch.c, gdbarch.h: Regenerate
4381 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4383 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4384 gdbarch_cannot_fetch_register.
4385 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4386 * hppa-linux-nat.c (fetch_register): Likewise.
4387 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4388 * m68klinux-nat.c (fetch_register): Likewise.
4389 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4391 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4392 gdbarch_cannot_store_register.
4393 * hppa-linux-nat.c (store_register): Likewise.
4394 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4395 * regcache.c (regcache_raw_write): Likewise.
4396 * m68klinux-nat.c (store_register): Likewise.
4397 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4398 * gdbarch.c, gdbarch.h: Regenerate.
4400 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4402 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4403 * gdbarch.c, gdbarch.h: Regenerate.
4405 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4407 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4408 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4409 * gdbarch.c, gdbarch.h: Regenerate.
4411 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4413 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4414 * ax-gdb.c (gen_bitfield_ref): Likewise.
4415 * mi/mi-main.c (get_register): Likewise.
4416 * findvar.c (default_value_from_register, extract_signed_integer)
4417 (extract_unsigned_integer, extract_long_unsigned_integer)
4418 (store_signed_integer, store_unsigned_integer): Likewise.
4419 * regcache.c (regcache_dump): Likewise.
4420 * value.c (lookup_internalvar, value_of_internalvar)
4421 (set_internalvar): Likewise.
4423 * valprint.c (print_binary_chars, print_octal_chars)
4424 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4425 * infcmd.c (default_print_registers_info): Likewise.
4426 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4427 * stabsread.c (define_symbol): Likewise.
4428 * doublest.c (floatformat_from_length, floatformat_from_type)
4429 (extract_typed_floating, store_typed_floating): Likewise.
4430 * gdbarch.c, gdbarch.h: Regenerate.
4432 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4434 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4435 gdbarch_call_dummy_location.
4436 * infcall.c (call_function_by_hand): Likewise.
4437 * inferior.h: Change comment.
4438 * arch-utils.c: Change comment.
4439 * gdbarch.c, gdbarch.h: Regenerate.
4441 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4443 * solib-aix5.c: Delete.
4444 * Makefile.in (solib-aix5.o): Delete rule.
4446 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4448 * breakpoint.h (enum bpstat_what_main_action): Remove
4449 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4450 * infrun.c (process_event_stop_test): Do not check for it.
4452 2007-05-22 Chris Dearman <chris@mips.com>
4453 Maciej W. Rozycki <macro@mips.com>
4455 * ser-unix.c (show_serial_hwflow): New function.
4456 (hardwire_raw): Add hardware flow control support.
4457 (_initialize_ser_hardwire): Add "set/show remoteflow".
4458 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4459 * NEWS: Document the new command.
4461 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4463 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4464 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4465 define for i[[3456]]86-*-linux* native configurations.
4466 * config.in, configure: Regenerate.
4468 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4470 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4471 a core file. Add comment in the function description.
4473 2007-05-18 Caroline Tice <ctice@apple.com>
4475 * c-valprint.c (c_value_print): If the initialized field of the
4476 value struct is 0, print out "[uninitialized]" before the value.
4477 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4478 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4479 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4480 ctx->initialized appropriately. Verify no location op follows
4482 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4483 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4484 set_value_initialized.
4485 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4486 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4487 * value.c (struct value): New field, initialized.
4488 (allocate_value): Initialize new field.
4489 (set_value_initialized): New function.
4490 (value_initialized): New function.
4491 * value.h (value_initialized): New extern declaration.
4492 (set_value_initialized): Likewise.
4494 2007-05-18 Caroline Tice <ctice@apple.com>
4496 * MAINTAINERS (Write After Approval): Add self.
4498 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4500 * gdbtypes.c (make_reference_type): Preserve the type chain
4501 and set the length of all the variants of the pointer type.
4503 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4505 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4506 and set the length of all the variants of the pointer type.
4508 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4510 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4512 (mips_o64_push_dummy_call): Reformat a comment.
4514 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4516 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4517 (score_prologue_frame_base_address): Return fp to keep gdb print
4518 local variables correctly when debugging information is stabs.
4520 (score_analyze_prologue): For software watchpoint, fetch all the
4521 instructions from range [startaddr, pc] once and identify them locally
4522 to reduce memory access.
4523 (score_malloc_and_get_memblock, score_free_memblock)
4524 (score_adjust_memblock_ptr): New functions.
4525 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4527 (score_target_can_use_watch, score_stopped_by_watch)
4528 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4529 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4530 New functions for remote & local hw-watchpoint and hw-breakpoint.
4532 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4534 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4535 declarations as well.
4537 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4539 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4540 * config/arm/tm-embed.h: Delete file.
4542 * arm-tdep.h (arm_software_single_step): Declare.
4543 * arm-tdep.c (arm_software_single_step): Make global.
4544 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4546 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4547 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4548 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4549 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4551 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4552 allow defines to be overriden by TM file.
4553 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4554 change default to {0xbe,0xbe}.
4555 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4556 arm_obsd_thumb_be_breakpoint): New global variables.
4557 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4558 tdep->thumb_breakpoint_size.
4559 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4560 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4561 tdep->thumb_breakpoint_size.
4563 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4565 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4567 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4570 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4571 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4572 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4573 (mips_abi_regsize): Simplify.
4574 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4575 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4576 (mips_o32_return_value, mips_o64_push_dummy_call)
4577 (mips_o64_return_value): Propogate constant register sizes. Use the
4578 ABI register size instead of mips_stack_argsize.
4579 (mips_dump_tdep): Don't print mips_stack_argsize.
4580 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4583 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4585 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4586 * config/mips/tm-linux.h: Delete.
4587 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4588 (mips_linux_in_dynsym_resolve_code): Make static. Use
4589 svr4_in_dynsym_resolve_code.
4590 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4592 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4594 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4595 * Makefile.in (mips-linux-tdep.o): Update.
4596 * solib.c (set_solib_ops): New.
4597 (current_target_so_ops): Update comment.
4598 * solib.h (set_solib_ops): New prototype.
4600 2007-05-16 Chris Dearman <chris@mips.com>
4602 * printcmd.c (do_examine): Fix typos in a comment.
4604 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4606 * configure.ac: Allow sysroots to be relocated under $prefix as
4607 well as $exec_prefix.
4608 * configure: Regenerate.
4610 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4612 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4613 (offsetof): Do not define.
4614 (find_stub_with_shl_get): Use numerical value 3 instead of
4615 symbolic value TYPE_PROCEDURE.
4617 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4619 * gdb_proc_service.h (paddr_t): Delete typedef.
4620 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4621 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4622 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4623 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4624 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4625 * Makefile.in (proc-service.o): Update.
4627 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4629 * Makefile.in (mips-tdep.o): Update.
4630 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4633 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4635 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4636 instead of store_typed_address.
4637 * value.c (pack_long): New.
4638 (value_from_longest): Use it.
4639 * value.h (pack_long): New prototype.
4641 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4643 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4644 DW_EH_PE_signed if appropriate.
4646 2007-05-14 Paul Brook <paul@codesourcery.com>
4647 Daniel Jacobowitz <dan@codesourcery.com>
4649 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4651 (dwarf_decode_lines): Check for line info without a file.
4653 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4655 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4658 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4660 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4662 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4664 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4666 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4668 * gdbarch.sh (read_sp): Remove.
4669 * gdbarch.c, gdbarch.h: Regenerate.
4670 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4672 * avr-tdep.c (avr_read_sp): Remove.
4673 (avr_unwind_sp): New function.
4674 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4675 * mips-tdep.c (mips_read_sp): Remove.
4676 (mips_unwind_sp): New function.
4677 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4678 * score-tdep.c (score_read_unsigned_register): Remove.
4679 (score_read_sp): Remove.
4680 (score_unwind_sp): New function.
4681 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4683 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4685 * buildsym.c (start_subfile): Handle absolute pathnames
4686 while comparing subfile names.
4688 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4690 * hppa-hpux-tdep.c: Include "regcache.h".
4691 * hppa-linux-tdep.c: Likewise.
4692 * hppa-tdep.c: Include "gdb_stdint.h".
4693 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4695 * Makefile.in: Update dependencies.
4697 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4699 * blockframe.c: Remove obsolete comments.
4700 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4701 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4702 * hppa-tdep.h (enum hppa_regnum): Likewise.
4703 * mips-tdep.h: Likewise.
4704 * m68hc11-tdep.c: Likewise.
4706 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4708 * inferior.h (read_sp): Remove prototype.
4709 * regcache.c (read_sp): Remove.
4710 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4711 * infcall.c (call_function_by_hand): Likewise.
4712 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4714 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4716 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4718 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4719 instead of read_register and read_register_pid.
4721 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4722 argument instead of PTID. Use regcache functions instead of
4724 (ia64_linux_insert_watchpoint): Update call.
4725 (ia64_linux_stopped_data_address): Use regcache functions
4726 instead of read_register_pid and write_register_pid.
4728 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4730 * libunwind-frame.h (struct regcache): Add forward declaration.
4731 (libunwind_get_reg_special): Add REGCACHE argument.
4732 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4733 argument. Pass it to unw_init_remote_p.
4735 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4736 libunwind_get_reg_special.
4737 (ia64_access_reg): Remove "write" case.
4738 (ia64_access_fpreg): Likewise. Read from next_frame passed
4739 as callback argument instead of from current_regcache.
4740 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4741 passed as callback argument instead of from current_regcache.
4742 (ia64_access_rse_fpreg): New function.
4743 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4745 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4747 * NEWS: Mention SPU overlay support.
4749 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4751 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4753 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4755 * breakpoint.c (remove_breakpoint): Do not remove software
4756 breakpoints in unmapped overlay sections.
4758 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4760 * spu-tdep.c: Include "observer.h".
4761 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4762 (spu_overlay_data): New variable.
4763 (struct spu_overlay_table): New type.
4764 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4765 spu_overlay_new_objfile): New functions.
4766 (spu_gdbarch_init): Install spu_overlay_update.
4767 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4768 allocate spu_overlay_data objfile data.
4770 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4772 * gdbarch.sh (overlay_update): New gdbarch function.
4773 (struct obj_section): Add forward declaration.
4774 * gdbarch.c, gdbarch.h: Regenerate.
4776 * symfile.c (simple_overlay_update): Make global.
4777 (target_overlay_update): Remove variable.
4778 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4779 target_overlay_update.
4780 (overlay_load_command): Likewise.
4781 * symfile.h (struct obj_section): Add forward declaration.
4782 (simple_overlay_update): Add prototype.
4784 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4786 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4788 * observer.sh: Add "struct objfile" forward declaration.
4789 * target.h (deprecated_target_new_objfile_hook): Remove.
4790 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4791 (clear_symtab_users): Call observer_notify_new_objfile.
4792 (symbol_file_add_with_addrs_or_offsets): Likewise.
4793 * rs6000-nat.c: Include "observer.h".
4794 (vmap_ldinfo): Call observer_notify_new_objfile.
4795 (xcoff_relocate_core): Likewise.
4796 * remote.c (remote_new_objfile_chain): Remove.
4797 (remote_new_objfile): Do not call remote_new_objfile_chain.
4798 (_initialize_remote): Use observer_attach_new_objfile.
4799 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4800 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4801 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4802 * aix-thread.c: Include "observer.h".
4803 (target_new_objfile_chain): Remove.
4804 (new_objfile): Do not call target_new_objfile_chain.
4805 (_initialize_aix_thread): Use observer_attach_new_objfile.
4806 * hpux-thread.c: Include "observer.h"
4807 (target_new_objfile_chain): Remove.
4808 (hpux_thread_new_objfile): Make static. Do not call
4809 target_new_objfile_chain.
4810 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4811 * linux-thread-db.c: Include "observer.h".
4812 (target_new_objfile_chain): Remove.
4813 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4814 (_initialize_thread_db): Use observer_attach_new_objfile.
4815 * sol-thread.c: Include "observer.h".
4816 (target_new_objfile_chain): Remove.
4817 (sol_thread_new_objfile): Make static. Do not call
4818 target_new_objfile_chain.
4819 (_initialize_sol_thread): Use observer_attach_new_objfile.
4820 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4821 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4824 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4826 * gdbarch.sh (remote_translate_xfer_address): Remove.
4827 * gdbarch.h, gdbarch.c: Regenerate.
4828 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4829 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4830 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4831 call gdbarch_remote_translate_xfer_address.
4832 * frv-tdep.c (frv_gdbarch_init): Do not call
4833 set_gdbarch_remote_translate_xfer_address.
4834 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4835 (ia64_gdbarch_init): Do not install it.
4837 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4839 * NEWS: Mention change in handling the -tui option.
4841 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4843 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4846 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4848 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4849 (breakpoint_inserted_here_p): Call it.
4850 (software_breakpoint_inserted_here_p): Likewise.
4852 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4854 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4855 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4856 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4857 (inf_ptrace_store_register): Likewise.
4858 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4859 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4861 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4863 * linux-nat.c (linux_trad_target): Adapt parameter list.
4864 * linux-nat.h (linux_trad_target): Likewise.
4866 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4868 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4869 (mips_linux_cannot_store_register): Likewise.
4870 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4871 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4872 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4873 (mips64_linux_register_addr): Likewise.
4874 (mips_linux_register_u_offset): Adapt parameter list. Pass
4875 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4877 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4878 * config/mips/nm-linux.h: Delete file.
4880 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4882 * remote.c (remote_detach): Error out if remote can't detach.
4884 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4886 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4887 instruction's opcode in the "opcode" variable and declares new
4888 variable "closing_insn".
4890 2007-05-10 Chris Dearman <chris@mips.com>
4891 Maciej W. Rozycki <macro@mips.com>
4893 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4894 whitespace when setting a var_filename.
4896 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4898 * main.c (captured_main): Recognize -tui option and print an error
4899 message when the TUI is not configured.
4901 2007-05-09 Andreas Schwab <schwab@suse.de>
4903 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4904 set removed members.
4905 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4907 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4909 * gdbarch.sh (deprecated_store_struct_return): Remove.
4910 * gdbarch.c, gdbarch.h: Regenerate.
4911 * frv-tdep.c (frv_store_struct_return): Remove.
4912 (frv_gdbarch_init): Do not install it.
4914 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4916 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4917 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4918 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4920 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4922 * spu-linux-nat.c: Include "gdb_stdint.h".
4923 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4924 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4925 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4926 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4927 (spu_child_wait): Mark up string for translation.
4929 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4930 Luis Machado <luisgpm@br.ibm.com>
4932 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4933 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4934 BC_INSTRUCTION): Define.
4935 (deal_with_atomic_sequence): New function.
4936 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4937 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4938 gdbarch_software_single_step routine.
4940 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4942 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4943 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4944 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4945 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4946 spu_child_post_attach, spu_fetch_inferior_registers,
4947 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4948 memory addresses as ULONGEST, not CORE_ADDR.
4950 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4952 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4953 * gdbarch.h, gdbarch.c: Regenerate.
4955 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4956 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4957 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4959 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4960 Add REGCACHE argument. Use it instead of read/write_register.
4961 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4963 * config/pa/tm-hppah.h: Delete file.
4964 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4965 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4967 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4969 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4970 * NEWS: Mention improved C++ thunk support.
4971 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4972 * cp-abi.c (cplus_skip_trampoline): New.
4973 * cp-abi.h (cplus_skip_trampoline): New prototype.
4974 (struct cp_abi_ops): Add skip_trampoline member.
4975 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4976 (init_gnuv3_ops): Set skip_trampoline.
4978 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4980 * rs6000-tdep.c (struct frame_extra_info): Delete.
4982 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4984 * linux-thread-db.c: Update some FIXME comments.
4985 (thread_db_xfer_partial): Delete.
4986 (init_thread_db_ops): Do not set to_xfer_partial.
4988 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4990 * inftarg.c, infptrace.c: Remove files.
4991 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4992 (inftarg.o, infptrace.o): Remove rules.
4993 * gdbcore.h (register_addr): Remove prototype.
4994 * inferior.h (kill_inferior, store_inferior_registers,
4995 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4996 call_ptrace, pre_fork_inferior): Remove prototypes.
4997 * target.h (child_xfer_memory, child_pid_to_exec_file,
4998 child_core_file_to_sym_file, child_post_attach,
4999 child_post_startup_inferior, child_acknowledge_created_inferior,
5000 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
5001 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
5002 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
5003 child_follow_fork, child_reported_exec_events_per_exec_call,
5004 child_has_exited, child_thread_alive): Remove prototypes.
5006 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5008 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
5009 (sparc_store_inferior_registers): Likewise.
5010 * sparc-nat.c (fetch_inferior_registers): Rename to ...
5011 (sparc_fetch_inferior_registers): ... this.
5012 (store_inferior_registers): Rename to ...
5013 (sparc_store_inferior_registers): ... this.
5014 (sparc_target): Update callback names.
5015 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
5016 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
5018 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5020 * linux-nat.c (child_post_attach): Rename to ...
5021 (linux_child_post_attach): ... this. Make static.
5022 (child_follow_fork): Rename to ...
5023 (linux_child_follow_fork): ... this. Make static.
5024 (child_insert_fork_catchpoint): Rename to ...
5025 (linux_child_insert_fork_catchpoint): ... this. Make static.
5026 (child_insert_vfork_catchpoint): Rename to ...
5027 (linux_child_insert_vfork_catchpoint): ... this. Make static.
5028 (child_insert_exec_catchpoint): Rename to ...
5029 (linux_child_insert_exec_catchpoint): ... this. Make static.
5030 (child_pid_to_exec_file): Rename to ...
5031 (linux_child_pid_to_exec_file): ... this. Make static.
5033 (linux_handle_extended_wait): Update call.
5034 (linux_xfer_partial): Update callback routine names.
5036 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5038 * configure.host (alpha*-*-osf[12]*): Remove support.
5039 * NEWS: Mention removed configurations.
5041 * config/alpha/alpha-osf1.mh: Delete file.
5042 * config/alpha/alpha-osf2.mh: Delete file.
5043 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
5045 * config/alpha/nm-osf.h: Delete file.
5046 * config/alpha/nm-osf2.h: Delete file.
5047 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
5048 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
5049 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
5051 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
5052 (register_addr, kernel_u_size): Remove.
5053 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
5055 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5057 * regcache.c (regcache_invalidate): New function.
5058 (register_cached): Remove.
5059 (set_register_cached): Remove.
5060 (deprecated_registers_fetched): Remove.
5061 (registers_changed): Use regcache_invalidate instead
5062 of set_register_cached.
5063 (regcache_raw_read): Update comment.
5065 * regcache.h (regcache_invalidate): Add prototype.
5066 (register_cached): Remove.
5067 (set_register_cached): Remove.
5068 (deprecated_registers_fetched): Remove.
5070 * findvar.c (value_of_register): Do not call register_cached.
5071 * frame.c (frame_register): Likewise.
5072 * tui/tui-regs.c (tui_get_register): Likewise.
5074 * remote.c (fetch_register_using_p): Do not call set_register_cached.
5075 (process_g_packet): Likewise.
5076 (remote_fetch_registers): Likewise.
5077 * remote-sim.c (gdbsim_fetch_register): Likewise.
5078 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
5079 by regcache_invalidate.
5080 (mt_pseudo_register_write): Likewise.
5081 * sh-tdep.c (sh_pseudo_register_write): Likewise.
5083 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
5084 call by loop over regcache_raw_supply (..., NULL).
5086 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5088 * target.h (struct target_ops): Add REGCACHE parameter to
5089 to_prepare_to_store.
5090 (target_prepare_to_store): Likewise.
5091 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
5092 (update_current_target): Adapt prepare_to_store de_fault rule.
5094 * regcache.c (regcache_raw_write): Pass regcache to
5095 target_prepare_to_store.
5097 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
5098 Do not call CHILD_PREPARE_TO_STORE.
5099 * gnu-nat.c (gnu_prepare_to_store): Likewise.
5100 * procfs.c (procfs_prepare_to_store): Likewise.
5102 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
5103 * go32-nat.c (go32_prepare_to_store): Likewise.
5104 * monitor.c (monitor_prepare_to_store): Likewise.
5105 * nto-procfs.c (procfs_prepare_to_store): Likewise.
5106 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
5107 * remote-mips.c (mips_prepare_to_store): Likewise.
5108 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
5109 * win32-nat.c (win32_prepare_to_store): Likewise.
5111 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
5112 Use it instead of current_regcache.
5114 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
5115 parameter. Pass it on to next target.
5116 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
5118 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5120 * target.h (struct regcache): Add forward declaration.
5121 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
5122 and to_store_registers target operations.
5123 (target_fetch_registers, target_store_registers): Update.
5125 * regcache.c (regcache_raw_read): Replace register_cached by
5126 regcache_valid_p. Pass regcache to target_fetch_registers.
5127 (regcache_raw_write): Pass regcache to target_store_registers.
5129 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
5130 store_regs, store_wmmx_regs): Replace register_cached by
5133 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
5134 to target_fetch_registers calls.
5135 * corelow.c (core_open): Likewise.
5136 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
5137 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5138 ps_lsetfpregs): Likewise.
5139 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5140 ps_lsetfpregs): Likewise.
5141 * win32-nat.c (win32_resume): Likewise.
5142 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
5143 to target_store_registers call.
5144 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5146 * inferior.h (store_inferior_registers): Update prototype.
5147 (fetch_inferior_registers): Likewise.
5148 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
5149 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
5150 Update function pointer signatures.
5152 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
5153 use it instead of current_regcache, update calls.
5154 (aix_thread_store_registers): Likewise.
5155 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
5156 (alphabsd_store_inferior_registers): Likewise.
5157 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
5158 (amd64bsd_store_inferior_registers): Likewise.
5159 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
5160 (amd64_linux_store_inferior_registers): Likewise.
5161 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
5162 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
5163 fetch_wmmx_regs, store_wmmx_regs): Likewise.
5164 (arm_linux_fetch_inferior_registers): Likewise.
5165 (arm_linux_store_inferior_registers): Likewise.
5166 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
5167 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
5168 (store_register, store_regs, store_fp_register, store_fp_regs,
5169 armnbsd_store_registers): Likewise.
5170 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5171 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5172 (bsd_uthread_store_registers): Likewise.
5173 * corelow.c (get_core_registers): Likewise.
5174 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5175 go32_store_registers): Likewise.
5176 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5177 (hppabsd_store_registers): Likewise.
5178 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5179 (hppa_hpux_fetch_inferior_registers): Likewise.
5180 (hppa_hpux_store_register): Likewise.
5181 (hppa_hpux_store_inferior_registers): Likewise.
5182 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5183 (hppa_linux_fetch_inferior_registers): Likewise.
5184 (hppa_linux_store_inferior_registers): Likewise.
5185 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5186 (hpux_thread_store_registers): Likewise.
5187 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5188 (i386bsd_store_inferior_registers): Likewise.
5189 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5190 gnu_store_registers): Likewise.
5191 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5192 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5194 (i386_linux_fetch_inferior_registers): Likewise.
5195 (i386_linux_store_inferior_registers): Likewise.
5196 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5197 (ia64_linux_fetch_registers): Likewise.
5198 (ia64_linux_store_register): Likewise.
5199 (ia64_linux_store_registers): Likewise.
5200 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5201 (inf_child_store_inferior_registers): Likewise.
5202 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5203 (inf_ptrace_fetch_registers): Likewise.
5204 (inf_ptrace_store_register): Likewise.
5205 (inf_ptrace_store_registers): Likewise.
5206 * infptrace.c (fetch_register, store_register): Likewise.
5207 (fetch_inferior_registers, store_inferior_registers): Likewise.
5208 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5209 (m32r_linux_fetch_inferior_registers): Likewise.
5210 (m32r_linux_store_inferior_registers): Likewise.
5211 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5212 (m68kbsd_store_inferior_registers): Likewise.
5213 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5214 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5215 fetch_fpregs, store_fpregs): Likewise.
5216 (m68k_linux_fetch_inferior_registers): Likewise.
5217 (m68k_linux_store_inferior_registers): Likewise.
5218 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5219 (m88kbsd_store_inferior_registers): Likewise.
5220 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5221 (mips64obsd_store_inferior_registers): Likewise.
5222 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5223 (mips64_linux_regsets_store_registers): Likewise.
5224 (mips64_linux_fetch_registers): Likewise.
5225 (mips64_linux_store_registers): Likewise.
5226 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5227 (mipsnbsd_store_inferior_registers): Likewise.
5228 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5229 (monitor_fetch_registers, monitor_store_registers): Likewise.
5230 * nto-procfs.c (procfs_fetch_registers): Likewise.
5231 (procfs_store_registers): Likewise.
5232 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5233 fetch_register, supply_vrregset, fetch_altivec_registers,
5234 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5235 (store_altivec_register, store_spe_register, store_register,
5236 fill_vrregset, store_altivec_registers, store_ppc_registers,
5237 ppc_linux_store_inferior_registers): Likewise.
5238 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5239 (ppcnbsd_store_inferior_registers): Likewise.
5240 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5241 (ppcobsd_store_registers): Likewise.
5242 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5243 * remote.c (fetch_register_using_p, process_g_packet,
5244 fetch_registers_using_g, remote_fetch_registers): Likewise.
5245 (store_register_using_P, store_registers_using_G,
5246 remote_store_registers): Likewise.
5247 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5248 m32r_store_register, m32r_store_register): Likewise.
5249 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5250 * remote-sim.c (gdbsim_fetch_register): Likewise.
5251 (gdbsim_store_register): Likewise.
5252 * rs6000-nat.c (fetch_register, store_register): Likewise.
5253 (rs6000_fetch_inferior_registers): Likewise.
5254 (rs6000_store_inferior_registers): Likewise.
5255 * s390-nat.c (fetch_regs, store_regs): Likewise.
5256 (fetch_fpregs, store_fpregs): Likewise.
5257 (s390_linux_fetch_inferior_registers): Likewise.
5258 (s390_linux_store_inferior_registers): Likewise.
5259 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5260 (shnbsd_store_inferior_registers): Likewise.
5261 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5262 (sol_thread_store_registers): Likewise.
5263 * sparc-nat.c (fetch_inferior_registers): Likewise.
5264 (store_inferior_registers): Likewise.
5265 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5266 (spu_store_inferior_registers): Likewise.
5267 * target.c (debug_print_register): Likewise.
5268 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5269 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5270 (vaxbsd_store_inferior_registers): Likewise.
5271 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5272 (win32_fetch_inferior_registers): Likewise.
5273 (win32_store_inferior_registers): Likewise.
5275 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5277 * gdbcore.h (struct regcache): Add forward declaration.
5278 (struct core_fns): Add REGCACHE argument to core_read_registers
5280 * corelow.c (get_core_register_section): Add REGCACHE argument,
5281 use it instead of current_regcache, pass it to core_read_registers
5283 (get_core_registers): Add current_regcache as parameter to
5284 get_core_register_section calls.
5286 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5287 use it instead of current_regcache.
5288 * armnbsd-nat.c (fetch_core_registers): Likewise.
5289 (fetch_elfcore_registers): Likewise.
5290 * core-regset.c (fetch_core_registers): Likewise.
5291 * cris-tdep.c (fetch_core_registers): Likewise.
5292 * irix5-nat.c (fetch_core_registers): Likewise.
5293 * m68klinux-nat.c (fetch_core_registers): Likewise.
5294 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5295 * win32-nat.c (fetch_elf_core_registers): Likewise.
5297 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5299 * gregset.h (struct regcache): Add forward declaration.
5300 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5301 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5302 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5303 (fill_gregset): Add REGCACHE parameter.
5304 (fill_fpregset): Likewise.
5305 (fill_fpxregset): Likewise.
5307 Update all definitions accordingly:
5308 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5309 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5310 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5311 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5312 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5313 (supply_gregset): Add REGCACHE parameter, use it instead of
5314 current_regcache. Make GREGSETP parameter const, adapt casts.
5315 (supply_fpregset): Add REGCACHE parameter, use it instead of
5316 current_regcache. Make FPREGSETP parameter const, adapt casts.
5317 (fill_gregset): Add REGCACHE parameter, use it instead of
5319 (fill_fpregset): Likewise.
5321 Update all callers to pass in current_regcache as the new argument:
5322 * core-regset.c: Include "regcache.h".
5323 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5324 * procfs.c: Include "regcache.h".
5325 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5326 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5327 (procfs_do_thread_registers): Likewise.
5328 (procfs_make_note_section): Likewise.
5329 * proc-service.c: Include "regcache.h".
5330 (ps_lgetregs): Update fill_gregset call.
5331 (ps_lsetregs): Update supply_gregset call.
5332 (ps_lgetfpregs): Update fill_fpregset call.
5333 (ps_lsetfpregs): Update supply_fpregset call.
5334 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5335 supply_fpregset calls.
5336 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5337 (ps_lgetregs): Update fill_gregset call.
5338 (ps_lsetregs): Update supply_gregset call.
5339 (ps_lgetfpregs): Update fill_fpregset call.
5340 (ps_lsetfpregs): Update supply_fpregset call.
5342 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5343 fill_fpregset, and fill_fpxregset calls.
5344 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5345 (store_regs): Update fill_gregset call.
5346 (fetch_fpregs): Update supply_fpregset call.
5347 (store_fpregs): Update fill_fpregset call.
5348 (fetch_fpxregs): Update supply_fpxregset call.
5349 (store_fpxregs): Update fill_fpxregset call.
5350 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5351 (store_regs): Update fill_gregset call.
5352 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5353 (store_regs): Update fill_gregset call.
5354 (fetch_fpregs): Update supply_fpregset call.
5355 (store_fpregs): Update fill_fpregset call.
5356 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5357 * s390-nat.c (fetch_regs): Update supply_gregset call.
5358 (store_regs): Update fill_gregset call.
5359 (fetch_fpregs): Update supply_fpregset call.
5360 (store_fpregs): Update fill_fpregset call.
5362 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5365 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5367 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5368 it instead of current_regcache.
5369 (parse_register_dump): Add REGCACHE parameter, pass it to
5370 supply_register callback.
5371 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5372 parse_register_dump.
5373 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5374 parse_register_dump and dumpregs callback.
5375 (monitor_wait): Pass current_regcache to parse_register_dump and
5377 (monitor_fetch_register): Pass current_regcache to
5378 monitor_supply_register.
5379 (monitor_fetch_registers): Pass current_regcache to
5381 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5382 supply_register and dumpregs callbacks.
5383 (monitor_supply_register, monitor_dump_reg_block): Update
5385 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5386 it to monitor_supply_register.
5387 * dink32-rom.c (dink32_supply_register): Likewise.
5388 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5389 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5390 instead of current_regcache.
5392 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5394 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5395 Add REGCACHE parameter. Use it instead of current_regcache.
5396 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5397 i386nto_supply_gregset and i386nto_supply_fpregset.
5398 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5399 of current_regcache.
5401 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5402 nto_supply_ helper functions.
5403 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5405 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5407 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5408 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5409 and regset_fill member function pointers.
5410 (nto_dummy_supply_regset): Adapt prototype.
5412 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5414 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5415 instead of current_regcache. Make REGS const.
5416 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5417 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5419 * shnbsd-nat.c: Include "regcache.h".
5420 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5422 (shnbsd_store_inferior_registers): Pass current_regcache to
5424 * Makefile.in (shbsd-nat.o): Update dependencies.
5426 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5428 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5429 instead of current_regcache.
5430 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5431 Make GREGSETP const, remove superfluous casts.
5432 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5433 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5435 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5436 (supply_64bit_reg): Likewise
5437 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5438 Make GREGSETP const, adapt casts accordingly.
5439 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5440 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5442 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5443 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5445 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5446 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5447 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5449 * mips-linux-nat.c: Include "regcache.h".
5450 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5451 current_regcache to mips{64}_(supply|fill)_ helper routines.
5452 (mips64_linux_regsets_fetch_registers): Likewise.
5453 (mips64_linux_regsets_store_registers): Likewise.
5455 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5456 REGCACHE argument; replace current_regcache. Make REGS const.
5457 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5458 replace current_regcache.
5459 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5460 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5461 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5462 mipsnbsd_store_inferior_registers): Pass current_regcache to
5463 mipsnbsd_(supply|fill)_... helper routines.
5465 * Makefile.in (mips-linux-nat.o): Update dependencies.
5467 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5469 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5470 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5471 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5472 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5473 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5474 * i386gnu-nat.c (store_fpregs): Likewise.
5475 * i386v4-nat.c (fill_fpregset): Likewise.
5476 * go32-nat.c (store_register, go32_store_registers): Likewise.
5478 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5480 * cris-tdep.c (supply_gregset): Rename to ...
5481 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5482 instead of current_regcache.
5483 (fetch_core_registers): Update call. Pass current_regcache.
5485 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5487 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5488 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5489 Use it instead of current_regcache.
5490 (supply_fparegset): Rename to ...
5491 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5492 Use it instead of current_regcache.
5493 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5494 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5496 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5498 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5499 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5500 use it instead of current_regcache.
5501 * alpha-tdep.h (struct regcache): Add forward declaration.
5502 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5503 alpha_fill_fp_regs): Update prototypes.
5505 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5506 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5507 * alpha-linux-nat.c: Include "regcache.h".
5508 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5509 current_regcache to alpha_supply/fill_ routines.
5511 * alphabsd-tdep.c: Include "regcache.h".
5512 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5513 pass it to alpha_supply_ routines. Make REGS const.
5514 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5515 pass it to alpha_fill_ routines.
5516 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5517 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5518 alphabsd_fill_fpreg): Update prototypes.
5520 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5521 fill_fpregset, alphabsd_fetch_inferior_registers,
5522 alphabsd_store_inferior_registers): Pass current_regcache to
5523 alphabsd_supply/fill_ routines.
5525 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5528 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5530 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5531 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5532 instead of current_regcache.
5533 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5534 REGCACHE parameter, pass it to supply_ routines.
5535 (aix_thread_fetch_registers): Pass current_regcache to
5536 fetch_regs_user_thread and fetch_regs_kernel_thread.
5538 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5539 Add REGCACHE parameter, use it instead of current_regcache.
5540 Call regcache_valid_p instead of register_cached.
5541 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5542 Also, pass REGCACHE to fill_ routines.
5543 (aix_thread_store_registers): Pass current_regcache to
5544 store_regs_user_thread and store_regs_kernel_thread.
5546 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5548 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5549 pointed to by GREGSETP.
5551 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5553 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5554 of regcache_raw_read_signed.
5555 (fill_fpregset): Use regcache_raw_collect instead of
5558 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5560 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5561 point arguments, test explicitly for use of the EABI32 ABI
5562 instead of inferring this condition from tests on register
5565 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5567 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5568 prior to allocating its location.
5570 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5572 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5573 based on mips_abi_regsize() whose result is known in advance.
5574 (mips_o64_push_dummy_call): Likewise.
5576 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5578 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5579 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5581 * mips-linux-nat.c: Include "gregset.h".
5582 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5583 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5584 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5585 fill_fpregset): Move to mips-linux-nat.c.
5587 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5589 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5591 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5592 (read_register): ... here.
5593 (deprecated_write_register_gen): Remove, inline ...
5594 (write_register): ... here.
5595 * regcache.h (deprecated_read_register_gen): Remove prototype.
5596 (deprecated_write_register_gen): Likewise.
5598 * remote-sim.c (gdbsim_store_register): Replace call to
5599 deprecated_read_register_gen with regcache_cooked_read.
5600 * target.c (debug_print_register): Replace calls to
5601 deprecated_read_register_gen and read_register with
5602 regcache_cooked_read.
5604 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5606 * hpux-thread.c (hpux_thread_store_registers): Use
5607 regcache_raw_collect, not regcache_raw_read.
5608 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5609 not regcache_raw_write.
5611 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5613 * gdbarch.sh: Remove deprecated_register_byte.
5614 * gdbarch.c, gdbarch.h: Regenerate.
5615 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5616 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5618 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5619 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5620 read-only register caches. Make REGCACHE parameter const.
5621 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5623 * mi/mi-main.c (old_regs): Remove.
5624 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5625 (register_changed_p): Reimplement to compare two register caches.
5626 (mi_cmd_data_list_changed_registers): Update caller.
5627 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5628 * mi/mi-interp.c (mi_interpreter_init): Do not call
5629 mi_setup_architecture_data.
5631 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5633 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5634 inline definition at the places the macros are used.
5635 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5637 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5639 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5641 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5642 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5643 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5644 (rs6000_aix_regset_from_core_section): New function.
5645 (rs6000_aix_init_osabi): Register it.
5646 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5647 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5648 * rs6000-nat.c (CoreRegs): Do not define type.
5649 (fetch_core_registers, rs6000_core_fns): Remove.
5650 (_initialize_core_rs6000): Do not register it. Rename to ...
5651 (_initialize_rs6000_nat): ... this.
5652 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5654 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5656 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5657 (dwarf2_read_address): Sign extend return address as required by
5658 target architecture.
5660 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5662 * solib-frv.c (lm_base): Bail out if the main executable has
5665 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5667 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5668 of FPCR register in fpregset.
5670 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5672 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5673 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5675 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5677 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5678 * rs6000-nat.c (rs6000_wait): New function.
5679 (_initialize_core_rs6000): Install it as to_wait target method.
5680 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5682 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5684 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5685 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5686 * rs6000-nat.c (super_create_inferior): New variable.
5687 (rs6000_create_inferior): Make static. Adapt argument list. Call
5688 original version of create_inferior via super_create_inferior.
5689 (_initialize_core_rs6000): Install to_create_inferior target method.
5691 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5693 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5694 (aix_thread_xfer_partial): ... this.
5695 (init_aix_thread_ops): Install to_xfer_partial instead
5696 of deprecated_xfer_memory target method.
5698 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5699 and inftarg.o, add inf-ptrace.o.
5700 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5701 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5702 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5703 (fetch_inferior_registers): Rename to ...
5704 (rs6000_fetch_inferior_registers): ... this. Make static.
5705 (store_inferior_registers): Rename to ...
5706 (rs6000_store_inferior_registers): ... this. Make static.
5707 (read_word, child_xfer_memory): Remove.
5708 (rs6000_xfer_partial): New function.
5709 (kernel_u_size): Remove.
5710 (_initialize_core_rs6000): Add inf_ptrace-based target.
5711 * Makefile.in (rs6000-nat.o): Update dependencies.
5713 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5715 * inf-ptrace.c: Include "gdb_stdint.h".
5716 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5717 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5718 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5719 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5720 (inf_ptrace_store_register): Likewise.
5721 * Makefile.in (inf-ptrace.o): Update dependencies.
5723 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5725 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5726 * configure.tgt (rs6000-*-*): Likewise.
5727 * config/rs6000/aix4.mh: Delete file.
5728 * config/rs6000/aix4.mt: Delete file.
5729 * config/rs6000/rs6000.mh: Delete file.
5730 * config/rs6000/rs6000.mt: Delete file.
5732 * config/powerpc/nm-aix.h: Delete file.
5733 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5735 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5737 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5738 Remove obsolete part of comment.
5739 (store_regs_user_thread): Use uint32_t temporaries when calling
5741 (store_regs_kernel_thread): Likewise. Add assertion to verify
5742 correct size of struct ptsprs members.
5743 (aix_thread_xfer_memory): Fix type of myaddr.
5744 (aix_thread_extra_thread_info): Fix compiler warning.
5745 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5746 (fetch_register, store_register): Adapt callers.
5748 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5750 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5752 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5754 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5756 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5757 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5758 (alpha_linux_regset_from_core_section): New function.
5759 (alpha_linux_init_abi): Install it.
5760 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5761 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5762 <sys/procfs.h>, and "gregset.h".
5763 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5764 Move from config/alpha/nm-linux.h.
5765 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5767 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5768 * alpha-nat.c: Remove #ifdef __linux__ section.
5769 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5770 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5771 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5772 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5773 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5774 (NATDEPFILES): Remove alpha-nat.o.
5775 * config/alpha/nm-linux.h: Delete file.
5776 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5777 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5778 (alpha-linux-tdep.o): Likewise.
5780 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5782 * mips-linux-nat.c: No longer include "gdbcore.h".
5783 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5784 (mips64_linux_register_addr): Likewise.
5785 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5786 mips64_linux_register_addr instead of register_addr.
5787 * mips-linux-tdep.c (mips_linux_register_addr,
5788 mips64_linux_register_addr): Move to mips-linux-nat.c.
5789 (register_addr): Remove.
5790 (register_addr_data, init_register_addr_data): Remove.
5791 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5792 (set_mips_linux_register_addr): Remove.
5793 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5794 * Makefile.in (mips-linux-nat.o): Update dependencies.
5796 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5798 * linux-nat.c (linux_register_u_offset): Remove.
5799 (linux_target_install_ops): New function.
5800 (linux_target): Use it.
5801 (linux_trad_target): New function.
5802 * linux-nat.h (linux_trad_target): Declare.
5804 * alpha-linux-nat.c: Include "gdbcore.h".
5805 (alpha_linux_register_u_offset): New function.
5806 (_initialize_alpha_linux_nat): Use linux_trad_target.
5808 * mips-linux-nat.c: Include "gdbcore.h".
5809 (mips_linux_register_u_offset): New function.
5810 (_initialize_mips_linux_nat): Use linux_trad_target.
5812 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5813 * config/arm/nm-linux.h: Delete file.
5815 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5816 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5818 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5819 * config/ia64/nm-linux.h: Delete file.
5821 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5822 * config/m32r/nm-linux.h: Delete file.
5824 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5825 * config/m68k/nm-linux.h: Delete file.
5827 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5828 * config/pa/nm-linux.h: Delete file.
5830 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5831 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5832 * config/powerpc/nm-linux.h: Delete file.
5834 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5835 * config/s390/nm-linux.h: Delete file.
5837 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5838 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5839 * config/sparc/nm-linux.h: Delete file.
5841 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5842 (mips-linux-nat.o): Likewise.
5844 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5846 * core-aout.c: Delete file.
5847 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5848 (core-aout.o): Delete rule.
5849 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5851 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5853 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5854 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5855 KERNEL_U_ADDR): Remove.
5857 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5858 (cannot_fetch_register, cannot_store_register): Remove.
5859 (fetch_register): Inline cannot_fetch_register and register_addr.
5860 (store_register): Inline cannot_store_register and register_addr.
5861 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5862 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5863 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5866 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5867 (fetch_register): Inline register_addr.
5868 (store_register): Inline register_addr.
5869 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5870 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5871 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5873 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5874 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5875 REGISTER_U_ADDR): Remove.
5877 * hppa-linux-nat.c (register_addr): Rename to ...
5878 (hppa_linux_register_addr): ... this. Make static.
5879 (fetch_register, store_register): Adapt callers.
5880 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5882 * ppc-linux-nat.c (kernel_u_size): Remove.
5883 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5885 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5886 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5888 * config/vax/nm-vax.h: Delete file.
5890 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5892 * MAINTAINERS (Write After Approval): Add myself.
5894 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5896 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5897 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5898 (m68k_linux_sigcontext_reg_offset): Fix typo.
5899 (target_is_uclinux): New.
5900 (m68k_linux_inferior_created): New.
5901 (m68k_linux_get_sigtramp_info): Check for uClinux or
5902 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5904 (_initialize_m68k_linux_tdep): Register
5905 m68k_linux_inferior_created.
5907 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5909 * win32-nat.c (win32_detach): Remove delete_command call.
5910 Resume inferior with win32_resume instead of win32_continue.
5912 2007-04-19 Jerome Guitton <guitton@adacore.com>
5914 * ser-mingw.c (fd_is_file): New function.
5915 (file_select_thread): New function.
5916 (ser_console_wait_handle): Add special handling for files.
5918 2007-04-18 Denis Pilat <denis.pilat@st.com>
5920 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5921 when missing from DW_TAG_subrange_type. Remove the handling of null
5922 return from die_type.
5924 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5926 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5927 change to rearrange some brackets.
5928 (mips_n32n64_push_dummy_call): Likewise.
5929 (mips_o32_push_dummy_call): Likewise.
5930 (mips_o64_push_dummy_call): Likewise.
5932 2007-04-18 Denis Pilat <denis.pilat@st.com>
5934 * infcmd.c (post_create_inferior): Start with a call to
5935 target_terminal_ours.
5937 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5939 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5941 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5943 (mips_o32_push_dummy_call): Likewise.
5944 (mips_o64_push_dummy_call): Likewise.
5946 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5948 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5951 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5953 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5955 (mips_o32_push_dummy_call): Likewise.
5957 2007-04-17 Andreas Schwab <schwab@suse.de>
5959 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5960 sal to be bigger than the end of the function.
5962 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5963 Nigel Stephens <nigel@mips.com>
5965 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5966 argument alignment requirements when calculating stack space
5967 required. When aligning an arg register to eight bytes
5968 boundary, align stack_offset too. Write floating-point
5969 arguments to the appropriate integer register if need go there.
5970 (mips_o64_push_dummy_call): Likewise.
5972 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5974 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5975 "sig" arguments, add "regcache" argument.
5976 * gdbarch.c, gdbarch.h: Regenerate.
5978 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5979 (handle_inferior_event): Call remove_single_step_breakpoints directly
5980 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5982 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5983 Remove handling of !insert_breakpoints_p case.
5984 * arm-tdep.c (arm_software_single_step): Likewise.
5985 * cris-tdep.c (cris_software_single_step): Likewise.
5986 * mips-tdep.c (mips_software_single_step): Likewise.
5987 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5988 * sparc-tdep.c (sparc_software_single_step): Likewise.
5989 * spu-tdep.c (spu_software_single_step): Likewise.
5991 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5992 * mips-tdep.h (mips_software_single_step): Likewise.
5993 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5994 * sparc-tdep.h (sparc_software_single_step): Likewise.
5996 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5998 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5999 when removing single-step breakpoints.
6001 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
6003 * varobj.h (varobj_set_frozen): New
6004 (varobj_get_frozen): New.
6005 (varobj_update): New parameter explicit.
6006 * varobj.c (struct varobj): New fields frozen
6008 (varobj_set_frozen, varobj_get_frozen): New.
6009 (install_new_value): Don't fetch values for
6010 frozen variable object, or children thereof. Allow
6011 a frozen variable object to have non-fetched value.
6012 (varobj_update): Allow updating child variables.
6013 Don't traverse frozen children.
6014 (new_variable): Initialize the frozen field.
6015 (c_value_of_variable): Return NULL for frozen
6016 variable without any value yet.
6017 * mi/mi-cmd-var.c (varobj_update_one): New parameter
6019 (mi_cmd_var_create): Output the 'frozen' field,
6020 as soon as testsuite is adjusted to expect that field.
6021 (mi_cmd_var_set_frozen): New.
6022 (mi_cmd_var_update): Pass the 'explicit' parameter to
6024 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
6025 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
6027 2007-04-13 Paul Brook <paul@codesourcery.com>
6029 * target-descriptions.c (tdesc_named_type): Add ieee_single and
6031 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
6033 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6035 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
6036 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
6037 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
6038 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
6039 * Makefile.in: Remove references to deleted files.
6040 * README: Do not mention deleted ROM monitor interfaces.
6041 * defs.h (enum language): Delete language_scm.
6042 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
6043 (dump_subexp_body_standard): Likewise.
6044 * parse.c (operator_length_standard): Likewise.
6045 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
6046 * remote-mips.c: Do not include remote-utils.h.
6047 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
6049 * value.c: Do not include scm-lang.h.
6050 (unpack_long): Delete scm_unpack call.
6051 * config/h8300/h8300.mt, config/mips/embed.mt,
6052 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
6053 config/sh/embed.mt, config/sh/linux.mt: Remove references to
6055 * NEWS: Mention removed files.
6057 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6059 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
6060 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
6062 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6064 * NEWS: Mention removal of HP aCC support.
6066 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6068 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
6069 first entry for static executables.
6070 (breakpoint_addr): Delete unused variable.
6071 (elf_locate_base): Search for _r_debug in static executables.
6072 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
6075 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6077 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
6078 (bpstat_what, print_one_breakpoint, allocate_bp_location)
6079 (mention): Remove bp_through_sigtramp support.
6080 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
6082 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6084 * breakpoint.c (bpstat_what): Give step-resume higher priority than
6087 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6089 * infrun.c: Doc fixes.
6090 (handle_inferior_event): Clarify debug message.
6091 (insert_step_resume_breakpoint_at_sal): Print a debug message.
6093 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6095 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
6097 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6099 * config/m68k/tm-monitor.h: Delete file.
6100 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
6101 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
6103 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
6104 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
6106 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
6108 * gdbarch.sh (software_single_step): Change the return type
6109 from void to int and reformatted some comments to <= 80
6111 * gdbarch.c, gdbarch.h: Regenerated.
6112 * alpha-tdep.c (alpha_software_single_step): Likewise.
6113 * alpha-tdep.h (alpha_software_single_step): Likewise.
6114 * arm-tdep.c (arm_software_single_step): Likewise.
6115 * cris-tdep.c (cris_software_single_step): Likewise.
6116 * mips-tdep.c (mips_software_single_step): Likewise.
6117 * mips-tdep.h (mips_software_single_step): Likewise.
6118 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6119 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6120 * sparc-tdep.c (sparc_software_single_step): Likewise.
6121 * sparc-tdep.h (sparc_software_single_step): Likewise.
6122 * spu-tdep.c (spu_software_single_step): Likewise.
6123 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
6124 and act accordingly.
6126 2007-04-11 Steve Ellcey <sje@cup.hp.com>
6128 * configure.ac (build_warnings): Add -Wno-char-subscripts.
6129 * configure: Regenerate.
6130 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
6132 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6134 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
6136 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6138 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
6140 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
6141 distinct on the TYPE_STUB_SUPPORTED debug targets.
6142 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
6144 2007-04-11 Joel Brobecker <brobecker@adacore.com>
6146 * sparc-tdep.c (X_RS2): New macro.
6147 (sparc_skip_stack_check): New function.
6148 (sparc_analyze_prologue): Adjust PC past stack probing
6149 sequence if necessary.
6151 2007-04-10 Andreas Schwab <schwab@suse.de>
6153 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
6156 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6158 * breakpoint.c (gdb_breakpoint_query): Really return an
6160 (gdb_breakpoint): Likewise.
6161 * thread.c (gdb_list_thread_ids): Likewise.
6162 (gdb_thread_select): Likewise.
6163 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
6164 (mi_cmd_thread_list_ids): Remove bogus initialization.
6166 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6168 * Makefile.in (SFILES): Remove hpacc-abi.c.
6169 (COMMON_OBS): Remove hpacc-abi.o.
6170 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6171 (hpacc-abi.o, hpread.o): Delete rules.
6172 * somread.c: Delete extern declarations from hpread.c.
6173 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6174 (som_symfile_finish): Do not call hpread_symfile_finish.
6175 (som_symfile_init): Do not call hpread_symfile_init.
6176 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6177 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6178 * hpacc-abi.c, hpread.c: Deleted.
6180 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6182 * solib-svr4.c (enable_break): Simplify return value.
6183 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6185 2007-04-10 Andreas Schwab <schwab@suse.de>
6187 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6188 l_ld_size, l_next_size, l_prev_size, l_name_size.
6190 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6191 to extract addresses from link map.
6192 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6193 (LM_NEXT): Likewise.
6194 (LM_NAME): Likewise.
6195 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6196 (elf_locate_base): Likewise.
6197 (open_symbol_file_object): Likewise.
6198 (svr4_fetch_objfile_link_map): Likewise.
6199 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6200 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6202 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6203 (svr4_lp64_fetch_link_map_offsets): Likewise.
6205 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6206 removed members. Set l_ld_offset to -1 if not present.
6208 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6210 Pass stderr of program run with "target remote |"
6212 * serial.c (serial_open): Set error_fd to -1.
6213 * serial.h (struct serial): New field error_fd.
6214 (struct serial_opts): New field avail.
6215 * ser-pipe.c (pipe_open): Create another pair
6216 of sockets. Pass stderr to gdb.
6217 * ser-mingw.c (pipe_windows_open): Pass
6218 PEX_STDERR_TO_PIPE to pex_run. Initialize
6221 (_initialize_ser_windows): Hook pipe_avail.
6222 * ser-base.c (generic_readchar): Check if there's
6223 anything in stderr channel and route that to gdb_stderr.
6225 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6227 * dbxread.c (read_ofile_symtab): Move current_objfile
6228 clearing to after end_stabs.
6230 2007-04-01 Andreas Schwab <schwab@suse.de>
6232 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6233 gdbarch instead of current_gdbarch.
6235 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6237 * varobj.c (varobj_create): Keep varobj value
6238 NULL when evaluating the type.
6240 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6242 * NEWS: Mention new Windows CE support.
6244 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6246 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6247 the obsoletion stanza.
6248 * NEWS: Mention deleted targets.
6250 * config/sh/tm-wince.h: Remove.
6251 * config/sh/wince.mt: Remove.
6252 * config/mips/tm-wince.h: Remove.
6253 * config/mips/wince.mt: Remove.
6256 * wince-stub.c: Remove.
6257 * wince-stub.h: Remove.
6258 * Makefile.in (wince.o): Remove rule.
6259 (wince-stub.o): Likewise.
6261 * mips-tdep.c (mips_next_pc): Make static.
6262 * mips-tdep.h (mips_next_pc): Remove declaration.
6263 * arm-tdep.c (arm_pc_is_thumb): Make static.
6264 (thumb_get_next_pc): Likewise.
6265 (arm_get_next_pc): Likewise.
6266 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6267 (arm_pc_is_thumb): Likewise.
6268 (thumb_get_next_pc): Likewise.
6269 (arm_get_next_pc): Likewise.
6271 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6273 * MAINTAINERS: Remove d10v entry.
6274 * Makefile.in (SFILES): Remove dwarfread.c.
6275 (COMMON_OBS): Remove dwarfread.o.
6276 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6277 (remote-est.o, rom68k-rom.o): Delete.
6278 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6279 target est, target rom68k, and DWARF 1.
6280 * configure.tgt: Mark d10v as removed.
6281 * dwarf2read.c: Doc update.
6282 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6284 (elf_locate_sections): Do not set them.
6285 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6286 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6287 * config/m68k/monitor.mt (TDEPFILES): Prune.
6288 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6289 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6291 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6293 * doublest.c (convert_floatformat_to_doublest): Use
6294 floatformat_classify.
6295 (floatformat_is_nan): Rename to...
6296 (floatformat_classify): ...this. Return more information.
6297 * doublest.h (enum float_kind): New.
6298 (floatformat_is_nan): Replace prototype...
6299 (floatformat_classify): ...with this one.
6300 * valprint.c (print_floating): Use floatformat_classify. Handle
6303 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6305 * README: Mention ISO C library requirement.
6307 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6309 * Makefile.in (SFILES): Remove nlmread.c.
6310 (COMMON_OBS): Remove nlmread.o.
6311 (nlmread.o): Delete rule.
6312 * README: Delete reference to remote-st.c.
6313 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6314 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6316 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6317 (_initialize_i386_tdep): Do not reference them.
6318 * nlmread.c: Delete file.
6319 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6320 * target.c: Doc update.
6321 * thread.c: Delete commented include.
6322 * config/alpha/tm-alpha.h: Doc update.
6324 2007-03-30 Chris Dearman <chris@mips.com>
6326 * utils.c (string_to_core_addr): Comment typo.
6328 2007-03-30 Chris Dearman <chris@mips.com>
6330 * mips-tdep.c: Comment typo.
6332 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6334 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6335 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6336 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6337 * config/powerpc/nm-ppc64-linux.h: Remove file.
6338 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6339 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6340 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6341 * infptrace.c (call_ptrace): Likewise.
6342 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6343 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6344 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6345 (store_register): Likewise.
6347 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6349 * Makefile.in (varobj.o): Add missing dependency.
6351 2007-03-29 Michael Snyder <msnyder@access-company.com>
6353 * MAINTAINERS: Update my email address.
6355 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6357 Add support for exception handling with multiple versions of
6359 * ada-lang.c: Update general comments on how Ada exception catchpoints
6361 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6362 (__gnat_raise_nodefer_with_msg): Delete.
6363 (ada_unhandled_exception_name_addr_ftype): New type.
6364 (exception_support_info): New type.
6365 (ada_unhandled_exception_name_addr): Add forward declaration.
6366 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6367 (default_exception_support_info): New constant.
6368 (exception_support_info_fallback): Likewise.
6369 (exception_info): New global variable.
6370 (ada_exception_support_info_sniffer): New function.
6371 (ada_executable_changed_observer): Likewise.
6372 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6373 ada_unhandled_exception_name_addr.
6374 (ada_unhandled_exception_name_addr): Reimplement to match the
6375 latest Ada runtime implementation.
6376 (error_breakpoint_runtime_sym_not_found): Delete.
6377 (ada_exception_sym_name): Get the exception sym name from
6378 exception_info rather than hardcoding it.
6379 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6380 Update error handling.
6381 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6383 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6385 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6386 (remote-st.o, uw-thread.o): Delete.
6387 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6388 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6389 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6390 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6391 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6392 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6393 rs6000-*-lynxos* to an obsoletion stanza.
6394 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6395 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6396 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6397 i[34567]86-*-netware*.
6398 * NEWS: Mention deleted targets.
6400 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6401 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6402 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6403 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6404 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6405 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6406 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6407 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6408 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6409 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6410 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6411 config/rs6000/tm-rs6000ly.h: Delete files.
6413 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6415 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6416 * interps.c (clear_interpreter_hooks): Do not clear
6417 deprecated_registers_changed_hook.
6418 * regcache.c (registers_changed): Do not call it.
6419 * top.c (deprecated_registers_changed_hook): Do not define it.
6420 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6421 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6422 (tui_remove_hooks): Do not remove it.
6423 (tui_selected_frame_level_changed_hook): Check for negative level.
6424 Use get_selected_frame.
6425 (tui_registers_changed_hook): Deleted.
6427 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6429 * stabsread.c (add_undefined_type): Add extra parameter.
6430 Now handles nameless types separately.
6431 (struct nat): New type.
6432 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6433 New static variables.
6434 (read_type): Update calls to add_undefined_type.
6435 (add_undefined_type_noname): New function.
6436 (add_undefined_type_1): Renames from add_undefined_type.
6437 (cleanup_undefined_types_noname): New function.
6438 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6439 (cleanup_undefined_types): New handles nameless types separately.
6440 (_initialize_stabsread): Initialize our new static constants.
6442 2007-03-29 Denis Pilat <denis.pilat@st.com>
6444 * configure.ac: Test for signal.h.
6445 * configure, config.in: Regenerate.
6447 2007-03-29 Denis Pilat <denis.pilat@st.com>
6449 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6450 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6452 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6454 * arm-wince-tdep.c: New.
6455 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6456 (MT_CFLAGS): Delete.
6458 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6459 solib-legacy.o, solib-svr4.o, and remove wince.o.
6460 * configure.tgt (arm*-*-mingw32ce*): Add.
6461 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6462 (do_target_signal_to_host): Silence 'not used' warning.
6463 * config/arm/tm-wince.h: Remove.
6465 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6467 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6468 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6470 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6471 * config/ia64/tm-linux.h: Remove file.
6472 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6473 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6474 legacy_pc_in_sigtramp.
6475 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6476 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6477 Remove func_name argument.
6478 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6480 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6481 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6482 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6483 (HAVE_STEPPABLE_WATCHPOINT): Define.
6485 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6486 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6487 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6488 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6489 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6490 target_insert_watchpoint, target_remove_watchpoint): Remove.
6491 (FETCH_INFERIOR_REGISTERS): Define.
6492 * ia64-linux-nat.c (ia64_register_addr): Make static.
6493 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6494 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6495 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6496 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6497 (ia64_linux_stopped_by_watchpoint): Make static.
6498 (ia64_linux_can_use_hw_breakpoint): New function.
6499 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6500 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6501 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6503 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6505 * linespec.c: Include language.h.
6506 (find_methods): Add language parameter. Call
6507 lookup_symbol_in_language. Pass language down.
6508 (add_matching_methods): Likewise. Call
6509 lookup_symbol_in_language.
6510 (add_constructors): Likewise.
6511 (find_method): Pass sym_class to collect_methods.
6512 (collect_methods): Add sym_class parameter. Pass language
6514 * symtab.c (lookup_symbol): Rename to ...
6515 (lookup_symbol_in_language): ... this. Add language
6516 parameter. Use passed language instead of current_language.
6517 (lookup_symbol): New as wrapper around
6518 lookup_symbol_in_language.
6519 (lookup_symbol_aux): Add language parameter. Use passed
6520 language instead of current_language.
6521 (search_symbols): Indent.
6522 * symtab.h (enum language): Forward declare.
6523 (lookup_symbol_in_language): Declare.
6524 (lookup_symbol): Update description.
6525 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6526 * ada-lang.c (restore_language): Remove.
6527 (lookup_symbol_in_language): Remove.
6529 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6531 * breakpoint.c (bpstat_num): Add int *num parameter.
6532 * breakpoint.h (bpstat_num): Likewise.
6533 * infcmd.c (continue_command): Adjust to new bpstat_num
6535 (program_info): Likewise.
6537 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6539 * config/sh/tm-sh.h: Remove file.
6540 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6541 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6542 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6543 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6545 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6547 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6548 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6549 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6550 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6551 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6552 sequence if target_shortname is "remote".
6554 2007-03-27 Anton Blanchard <anton@samba.org>
6556 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6557 instead of wordsize when looking for the LR in a stack frame.
6559 2007-03-27 Andreas Schwab <schwab@suse.de>
6560 Daniel Jacobowitz <dan@codesourcery.com>
6562 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6563 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6564 argument. Update all callers.
6565 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6566 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6567 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6568 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6569 (dwarf2_frame_set_adjust_regnum): ...this.
6570 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6571 * rs6000-tdep.c: Include "dwarf2-frame.h".
6572 (rs6000_adjust_frame_regnum): Define.
6573 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6574 Register rs6000_adjust_frame_regnum.
6576 * Makefile.in (rs6000-tdep.o): Update dependencies.
6578 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6580 * Makefile.in: Add support for a "pdf" target.
6582 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6584 * amd64-tdep.c (amd64_init_frame_cache): New function.
6585 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6587 2007-03-26 Nigel Stephens <nigel@mips.com>
6588 Maciej W. Rozycki <macro@mips.com>
6590 * ui-out.c (ui_out_field_core_addr): Truncate address to
6591 TARGET_ADDR_BIT size before printing.
6593 2007-03-22 Nigel Stephens <nigel@mips.com>
6594 Maciej W. Rozycki <macro@mips.com>
6596 * remote-mips.c (mips_xfer_memory): Update prototype.
6598 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6600 * symfile.h: #include "symtab.h"
6602 2007-03-22 Denis Pilat <denis.pilat@st.com>
6604 * utils.c (pagination_on_command, pagination_off_command):
6605 Remove useless prototypes.
6607 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6610 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6611 instead of TYPE_NAME for object base class name.
6614 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6616 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6617 Specify frame type in calls to frame_func_unwind().
6619 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6621 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6622 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6623 (refine_prologue_limit): Delete.
6624 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6625 Assume lim_pc is set. Correct check for incomplete prologues.
6626 Do not skip clobbers of the frame pointer.
6627 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6630 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6632 * frame.c (frame_pop): Check to see whether there's a frame to
6633 which we can pop first.
6635 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6637 * MAINTAINERS (Write After Approval): Add myself.
6639 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6641 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6642 (handle_inferior_event): Remove unnecessary braces.
6643 * breakpoint.c (bpstat_what): Remove wrong comment.
6645 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6647 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6648 (spu_gdbarch_init): Install it.
6650 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6652 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6653 object types, not 0.
6655 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6657 * spu-tdep.c (spu_frame_align): New function.
6658 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6660 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6662 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6663 (spu_software_single_step): Likewise.
6664 (spu_read_pc, spu_write_pc): New functions.
6665 (spu_gdbarch_init): Install them.
6667 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6669 * cli/cli-dump.c (struct callback_data): load_offset needs to
6670 have signed long type.
6672 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6674 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6675 Revert the previous change that had some unexpected side-effects
6677 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6678 function to get the address of the calling instruction.
6680 2007-03-07 Denis Pilat <denis.pilat@st.com>
6682 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6683 get_selected_frame by deprecated_safe_get_selected_frame.
6685 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6687 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6688 "gdb_string.h". Don't include "nbsd-tdep.h".
6689 (SIZEOF_STRUCT_REG): Remove.
6690 (SHNBSD_SIZEOF_GREGS): New.
6691 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6692 (shnbsd_regset_from_core_section): New functions.
6693 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6694 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6695 shnbsd_supply_gregset, shnbsd_collect_gregset.
6696 (shnbsd_gregset): New variable.
6697 (shnbsd_init_abi): Set regset_from_core_section.
6698 (GDB_OSABI_NETBSD_CORE): New define.
6699 (shnbsd_core_osabi_sniffer): New function.
6700 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6701 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6702 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6704 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6706 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6708 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6709 length of the types referenced by the new type CV ring.
6711 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6713 * frame.c (frame_pop, frame_observer_target_changed): Call
6715 (flush_cached_frames): Rename to reinit_frame_cache and delete
6717 * frame.h (flush_cached_frames): Delete prototype and update comment.
6719 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6720 reinit_frame_cache instead of flush_cached_frames. Do not call
6721 select_frame after reinit_frame_cache.
6722 * corelow.c (core_open): Likewise.
6723 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6724 * infrun.c (prepare_to_proceed, context_switch)
6725 (handle_inferior_event): Likewise.
6726 * linux-fork.c (fork_load_infrun_state): Likewise.
6727 * ocd.c (ocd_start_remote): Likewise.
6728 * remote-e7000.c (e7000_start_remote): Likewise.
6729 * remote-mips.c (device): Likewise.
6730 * thread.c (switch_to_thread): Likewise.
6731 * tracepoint.c (finish_tfind_command): Likewise.
6732 * gdbarch.c: Regenerated.
6734 2007-02-28 Jerome Guitton <guitton@adacore.com>
6735 Joel Brobecker <brobecker@adacore.com>
6737 * gdbtypes.c (check_typedef): Do not replace stub type if
6738 the resolved type is not defined in the same objfile.
6740 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6742 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6744 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6746 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6747 symbol for Ada units when the symbol is defined using 't' rather
6748 than 'Tt' as symbol descriptor.
6750 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6752 * config/mips/tm-nbsd.h: Delete file.
6753 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6754 * config/sh/tm-nbsd.h: Delete file.
6755 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6757 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6759 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6760 unused WRONG_PARAM value since it was recently deleted.
6762 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6764 * varobj.c (varobj_update): Free temporary vectors.
6766 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6768 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6769 * config/powerpc/tm-linux.h: Delete file.
6770 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6771 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6772 (TEXT_SEGMENT_BASE): Do not redefine.
6773 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6774 from config/rs6000/tm-rs6000.h.
6775 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6776 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6777 (TEXT_SEGMENT_BASE): Remove.
6778 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6779 (rs6000_in_solib_return_trampoline): Remove.
6780 (SKIP_TRAMPOLINE_CODE): Remove.
6781 (rs6000_skip_trampoline_code): Remove.
6782 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6783 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6784 (FP0_REGNUM): Remove.
6785 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6786 (rs6000_set_host_arch_hook): Remove.
6787 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6788 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6789 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6790 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6791 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6792 * rs6000-nat.c: Include "rs6000-tdep.h".
6793 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6794 (set_host_arch): Rename to ...
6795 (rs6000_create_inferior): ... this. Make public.
6796 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6797 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6798 (rs6000_create_inferior): Remove.
6799 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6800 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6801 set_gdbarch_in_solib_return_trampoline, and
6802 set_gdbarch_skip_trampoline_code.
6803 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6804 from config/rs6000/tm-rs6000.h.
6806 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6808 * buildsym.c (record_producer): Do nothing if no producer is provided.
6810 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6812 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6813 to check changelist is non-NULL. Call error if the frontend tries
6814 to update a non-root variable.
6816 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6818 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6820 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6821 (dwarf2_frame_sniffer): Update.
6822 (dwarf2_signal_frame_this_id): New function.
6823 (dwarf2_signal_frame_unwind): Use it.
6824 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6825 * frame.c (frame_func_unwind): Add this_type argument.
6826 (get_frame_func): Update.
6827 (frame_unwind_address_in_block): Add this_type argument and check it.
6829 (get_frame_address_in_block): Update.
6830 * frame.h (enum frame_type): Move higher in the file.
6831 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6834 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6835 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6836 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6837 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6838 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6839 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6840 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6841 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6842 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6843 frame_func_unwind and frame_unwind_address_in_block to specify
6844 the frame type. Use frame_unwind_address_in_block instead of
6845 frame_pc_unwind in sniffers.
6847 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6849 * frame.c (deprecated_selected_frame): Rename to...
6850 (selected_frame): ...this. Make static.
6851 (get_selected_frame, select_frame): Update.
6852 * frame.h (deprected_select_frame): Delete.
6853 (deprecated_safe_get_selected_frame): Update comments.
6855 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6856 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6857 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6858 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6859 tui/tui.c: Replace references to deprecated_selected_frame.
6861 2007-02-27 Fred Fish <fnf@specifix.com>
6863 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6864 directly decrement the stack pointer, accumulate their operand into
6865 the stack offset, and mark the function as not being frameless.
6867 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6869 * arch-utils.c (selected_byte_order): New.
6870 * arch-utils.h (selected_byte_order): New prototype.
6871 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6873 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6875 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6876 (default_symfile_offsets): Check VMA here. Update section VMAs.
6878 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6880 * remote.c (init_remote_state): Add special handling for placeholder
6883 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6885 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6886 (filenames_h): New variable.
6887 (clean): Clean up xml-builtin.c and stamp-xml.
6888 (arm-linux-nat.o): Update.
6889 * config/arm/linux.mh (TDEP_XML): Define.
6890 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6891 (arm_linux_has_wmmx_registers): New.
6892 (GET_THREAD_ID): Fix typo.
6893 (IWMMXT_REGS_SIZE): Define.
6894 (fetch_wmmx_regs, store_wmmx_regs): New.
6895 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6896 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6897 (super_xfer_partial, arm_linux_xfer_partial): New.
6898 (_initialize_arm_linux_nat): Use them.
6899 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6900 (xml_builtin_xfer_partial): New function.
6901 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6902 * NEWS: Update mention of iWMMXt support.
6904 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6906 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6907 if there are no FPA registers.
6908 (arm_dwarf_reg_to_regnum): New function.
6909 (arm_register_type, arm_register_name): Return minimal values for
6910 unsupported registers.
6911 (arm_register_sim_regno): Handle iWMMXt registers.
6912 (arm_gdbarch_init): Record missing FPA registers if indicated by
6913 a target description. Recognize iWMMXt registers. Only register
6914 "info float" for FPA. Use ARM_NUM_REGS. Register
6915 arm_dwarf_reg_to_regnum.
6916 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6918 (struct gdbarch_tdep): Add have_fpa_registers.
6919 * features/xscale-iwmmxt.xml: Update capitalization.
6920 * regformats/arm-with-iwmmxt.dat: Regenerated.
6922 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6924 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6926 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6928 * MAINTAINERS (mep): New target.
6930 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6932 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6934 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6935 (mep-tdep.o): New rule.
6936 * configure.tgt (mep-*-*): New target.
6937 * mep-tdep.c: New file.
6938 * config/mep/mep.mt: New file.
6940 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6942 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6943 BREAKPOINT_HIT and STOP_UNKNOWN.
6945 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6947 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6949 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6951 * gdb_expat.h (XMLCALL): Define if not already defined.
6953 2007-02-20 Andreas Schwab <schwab@suse.de>
6955 * Makefile.in (symfile.o): Update dependencies.
6957 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6959 * MAINTAINERS: Disable -Werror for cris simulator. Build
6960 sparc64-solaris2.10 instead of the broken sparc-elf.
6961 * solib-frv.c: Include "solib.h".
6962 * Makefile.in (solib-frv.o): Update.
6963 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6964 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6965 (xtensa_frame_this_id, xtensa_frame_prev_register)
6966 (xtensa_push_dummy_call): Use %p.
6968 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6970 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6971 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6972 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6973 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6974 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6975 (sparc-linux-tdep.o): Update.
6977 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6979 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6980 (xtensa_mask_t): Change mask field to be a separate array.
6981 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6982 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6983 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6984 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6985 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6986 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6987 (mask14, mask15): Rename to
6988 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6989 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6990 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6991 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6992 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6993 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6994 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6995 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6996 (xtensa_submask14, xtensa_submask15): New.
6997 (rmap): Follow strict aliasing rules doing static initialization.
6999 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
7001 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
7002 handling from here...
7003 (tdesc_register_type): ...to here.
7004 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
7005 * features/arm-core.xml: Use code_ptr and data_ptr.
7007 2007-02-13 Denis Pilat <denis.pilat@st.com>
7009 * varobj.h (enum varobj_update_error): New enum.
7010 * varobj.c (struct varobj_root): Add is_valid member.
7011 (varobj_get_type): Check for invalid varobj.
7012 (varobj_get_attributes): Likewise.
7013 (variable_editable):Likewise.
7014 (varobj_update): Likewise. Use varobj_update_error.
7015 (new_root_variable): Set root varobj as valid by default.
7016 (varobj_invalidate): New function.
7017 * symfile.c (clear_symtab_users): Use varobj_invalidate.
7018 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
7019 Use varobj_update_error.
7021 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
7024 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
7025 Pascal language marker.
7026 * dwarf2read.c (set_cu_language): Likewise.
7028 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
7030 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
7031 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
7032 instead of target_terminal_init since inferior_ptid isn't set yet.
7034 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
7036 * MAINTAINERS (Write After Approval): Add myself.
7038 2007-02-09 Fred Fish <fnf@specifix.com>
7040 Based on work by Apple Computer, Inc.
7041 * event-top.c (async_request_quit): Call quit() whenever either
7042 quit_flag is set or immediate_quit is set.
7044 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7046 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
7047 type to a pointer to const struct block.
7048 (ada_lookup_symbol_list): Don't cast away constness when calling
7049 remove_out_of_scope_renamings.
7051 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7053 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
7054 address of 'filename'; it is always non null.
7056 2007-02-09 Joel Brobecker <brobecker@adacore.com>
7058 * exec.c (add_to_section_table): Do not discard empty sections.
7060 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7062 * features/Makefile, features/arm-with-iwmmxt.xml,
7063 features/gdbserver-regs.xsl, features/number-regs.xsl,
7064 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
7065 * regformats/arm-with-iwmmxt.dat: Generate.
7066 * NEWS: Mention iWMMXt.
7068 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7070 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
7071 (xml-tdesc.o): Update.
7072 * xml-support.c: Add a comment.
7073 (gdb_xml_enums_boolean): New variable.
7074 (gdb_xml_parse_attr_enum): Use strcasecmp.
7075 * xml-support.h (gdb_xml_enums_boolean): Declare.
7076 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
7077 next_regnum, and current_union.
7078 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
7079 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
7080 (field_attributes, union_children, reg_attributes, union_attributes)
7081 (vector_attributes, feature_attributes, feature_children): New.
7082 (target_children): Make static. Add <feature>.
7083 (tdesc_elements): Make static.
7084 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
7085 (struct tdesc_feature, tdesc_feature_p): New types.
7086 (struct target_desc): Add features member.
7087 (struct tdesc_arch_data, tdesc_data): New.
7088 (target_find_description): Clarify error message. Warn about
7089 ignored register descriptions.
7090 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7091 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
7092 (tdesc_data_cleanup, tdesc_numbered_register)
7093 (tdesc_numbered_register_choices, tdesc_find_register)
7094 (tdesc_register_name, tdesc_register_type)
7095 (tdesc_remote_register_number, tdesc_register_reggroup_p)
7096 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
7097 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
7098 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
7099 (tdesc_create_feature, tdesc_record_type): New.
7100 (free_target_description): Free features.
7101 (_initialize_target_descriptions): Initialize tdesc_data.
7102 * arch-utils.c (default_remote_register_number): New.
7103 * arch-utils.h (default_remote_register_number): New prototype.
7104 * target-descriptions.h (set_tdesc_pseudo_register_name)
7105 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
7106 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
7107 (tdesc_numbered_register, tdesc_numbered_register_choices)
7108 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7109 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
7110 (tdesc_create_reg): Declare.
7111 * gdbarch.sh (remote_register_number): New entry.
7112 * gdbarch.c, gdbarch.h: Regenerate.
7113 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
7114 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
7116 * arm-tdep.c (arm_register_aliases): New.
7117 (arm_register_name_strings): Rename to...
7118 (arm_register_names): ...this. Make const. Delete the old version.
7119 (current_option, arm_register_byte): Delete.
7120 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
7121 (value_of_arm_user_reg): New.
7122 (arm_gdbarch_init): Verify any described registers. Call
7123 tdesc_use_registers. Don't use arm_register_byte. Create aliases
7124 for standard register names.
7125 (_initialize_arm_tdep): Do not adjust arm_register_names.
7126 * user-regs.c (struct user_reg): Add baton member.
7127 (append_user_reg, user_reg_add_builtin, user_regs_init)
7128 (user_reg_add, value_of_user_reg): Use a baton for user
7130 * std-regs.c: Update.
7131 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
7132 (user_reg_add): Add baton argument.
7133 * NEWS: Mention target description register support.
7134 * features/arm-core.xml, features/arm-fpa.xml: New.
7135 * eval.c (evaluate_subexp_standard): Allow ptype $register
7136 when the program is not running.
7138 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
7140 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
7142 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7144 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
7145 info->disassembler_options to "any".
7147 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7149 * varobj.c (install_new_value): Only call value_get_print_value
7152 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7154 Reported by timeless@gmail.com:
7155 * gdb/target.c (target_flash_erase): Do not return void value.
7156 (target_flash_done): Likewise.
7157 * gdb/cli/cli-cmds.c (source_command): Likewise.
7159 2007-02-08 Fred Fish <fnf@specifix.com>
7161 Based on work by Apple Computer, Inc.
7162 * event-top.c (handle_sigint): Set quit_flag.
7163 (async_request_quit): Don't set quit_flag. Avoid calling quit()
7164 if quit_flag has already been reset.
7166 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7168 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7171 2007-02-08 Fred Fish <fnf@specifix.com>
7173 * defs.h (request_quit): Remove declaration.
7174 * utils.c (request_quit): Remove definition.
7176 2007-02-08 Joel Brobecker <brobecker@gnat.com>
7177 Jan Kratochvil <jan.kratochvil@redhat.com>
7178 Daniel Jacobowitz <dan@codesourcery.com>
7180 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7181 (skip_prologue): Allow bl->blrl used by PIC code.
7183 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7184 Daniel Jacobowitz <dan@codesourcery.com>
7186 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7187 initialize tmp_obstack.
7188 * p-valprint.c (pascal_object_print_value_fields)
7189 (pascal_object_print_value): Likewise.
7191 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7193 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7195 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7197 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7198 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7200 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7202 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7204 (tdesc_parse_xml): Cache expanded descriptions.
7206 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7208 * Makefile.in (XMLFILES): New.
7209 (COMMON_OBS): Add xml-builtin.o.
7210 (xml-builtin.c, stamp-xml): New rules.
7211 (xml-tdesc.o): Update.
7212 * features/feature_to_c.sh: New file.
7213 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7214 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7215 (gdb_xml_start_element): Initialize scope after possibly reallocating
7216 scopes. Move cleanup later. Handle the XInclude description
7218 (gdb_xml_end_element): Only parse the body if there is a current element.
7219 Call XML_DefaultCurrent if there is no element.
7220 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7221 (struct xinclude_parsing_data, xinclude_start_include)
7222 (xinclude_end_include, xml_xinclude_default)
7223 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7224 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7225 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7226 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7227 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7228 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7229 XInclude directives. Use the compiled in DTD.
7230 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7231 directory name. Do not warn here.
7232 (file_read_description_xml): Update call. Warn here instead. Pass
7234 (fetch_available_features_from_target): New.
7235 (target_read_description_xml): Use it.
7236 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7238 * features/xinclude.dtd: New file.
7240 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7242 * linux-thread-db.c (check_for_thread_db): Return early if we have
7243 no libthread_db support.
7245 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7247 * mi/mi-parse.h: Include <sys/time.h>.
7249 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
7251 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7252 instead of print_variable_value to print values.
7254 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7256 * mi/mi-main.c: Numerous formatting changes.
7257 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7258 removed in my previous change.
7260 2007-02-03 Eli Zaretskii <eliz@gnu.org>
7262 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7263 Use 1000000L instead of 1000000.
7265 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7267 Based on work by Apple Computer, Inc.
7269 * configure.ac: Test for sys/resource.h and getrusage.
7270 * configure, config.in: Regenerate.
7272 * mi/mi-main.c: Include <sys/resource.h> if present.
7273 (rusage): Declare if HAVE_GETRUSAGE.
7274 (current_command_ts, do_timings): New static variables.
7275 (timestamp, print_diff_now, print_diff, timeval_diff):
7276 New static timing functions.
7277 (mi_cmd_enable_timings): New function for new MI command.
7278 (captured_mi_execute_command, mi_execute_async_cli_command):
7279 Call timing functions.
7281 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7284 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7286 * mi/mi-parse.h: (mi_timestamp): New structure.
7287 (mi_parse): Add mi_timestamp* member.
7289 2007-02-02 Denis Pilat <denis.pilat@st.com>
7291 * thread.c (make_cleanup_restore_current_thread): New function.
7292 (info_threads_command): Use of make_cleanup_restore_current_thread
7293 to restore the current thread and the selected frame.
7294 (restore_selected_frame): New function.
7295 (struct current_thread_cleanup): Add frame_id field.
7296 (do_restore_current_thread_cleanup): Add restoring of the selected
7298 (make_cleanup_restore_current_thread): Likewise.
7299 (thread_apply_all_command): backup the selected frame while
7300 entering the function and restore it at exit.
7301 (thread_apply_command): Likewise.
7303 2007-02-02 Denis Pilat <denis.pilat@st.com>
7305 * MAINTAINERS (Write After Approval): Add myself to the list.
7307 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7309 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7310 (m32r_store_register): Ditto.
7312 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7314 * ser-mingw.c (pipe_windows_open)
7315 (pipe_windows_read, pipe_windows_write): Declare
7316 variables at the top of the function.
7318 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7320 * doublest.c (floatformat_from_length): Use the right element from
7321 gdbarch floatformats.
7322 (floatformat_from_type, extract_typed_floating)
7323 (store_typed_floating): Likewise.
7324 * doublest.h: Remove declarations for undefined floatformat arrays.
7325 * gdbarch.sh (float_format, double_format, long_double_format): Change
7327 (pformat): Update for pairs.
7328 * gdbarch.c, gdbarch.h: Regenerated.
7329 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7330 (floatformats_ieee_double_littlebyte_bigword)
7331 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7332 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7333 (floatformats_vax_d): New variables.
7334 (builtin_type_ieee_single, builtin_type_ieee_double)
7335 (builtin_type_arm_ext, builtin_type_ia64_spill)
7336 (builtin_type_ia64_quad): Replace arrays with individual types.
7337 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7338 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7339 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7340 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7341 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7342 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7343 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7344 unused and endian-specific types.
7345 (recursive_dump_type): Update for floatformat pairs.
7346 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7347 (build_gdbtypes): Use build_flt.
7348 (_initialize_gdbtypes): Update set of initialized types.
7349 * gdbtypes.h: Update declarations to match gdbtypes.c.
7350 (struct main_type): Store a pointer to two floatformats.
7351 * arch-utils.c (default_float_format, default_double_format): Delete.
7352 * arch-utils.h (default_float_format, default_double_format): Delete.
7354 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7355 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7356 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7357 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7358 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7360 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7362 * target.c (maintenance_print_target_stack): New function.
7363 (initialize_targets): Add new "maintenance print target-stack"
7366 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7368 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7370 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7372 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7373 (struct dwarf2_loclist_baton): Likewise.
7375 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7377 * cli/cli-script.c: Include breakpoint.h.
7378 (build_command_line): Require arguments only for if and while
7380 (get_command_line, execute_user_command, execute_control_command):
7381 Fix wording of warning messages.
7382 (print_command_lines): Print breakpoint commands.
7383 (execute_control_command): Call commands_from_control_command to
7384 handle the `commands' command inside a body of a flow-control
7386 (read_next_line): Recognize the `commands' command and build a
7387 command line structure for it.
7388 (recurse_read_control_structure, read_command_lines): Handle
7389 `commands' similarly to `if' and `while'.
7391 * breakpoint.c (get_number_trailer): Document the special meaning
7392 of NULL as the first argument PP.
7393 (commands_from_control_command): New function.
7395 * breakpoint.h (commands_from_control_command): Add prototype.
7397 * defs.h (commands_control): New enumerated value for enum
7398 command_control_type.
7400 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7402 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7403 (ada_exception_sal): Update accordingly.
7405 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7407 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7408 * NEWS: Describe CHAR array vs. string identifcation rules.
7410 2007-01-25 Paul Brook <paul@codesourcery.com>
7412 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7414 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7416 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7417 expression is empty, bother to return the 'optimized out' value we
7418 construct. (Thanks to Carl Burch.)
7420 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7422 * varobj.c (c_value_of_root, c_value_of_child)
7423 (cplus_describe_child): Don't call release_value.
7425 2007-01-24 Thiemo Seufer <ths@mips.com>
7427 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7430 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7432 Refactor getting children name, value and type access
7434 * varobj.c (get_type_deref): Remove.
7435 (adjust_value_for_child_access): New.
7436 (c_number_of_children): Use the above.
7437 (c_describe_child): Likewise.
7438 (enum accessibility): New.
7439 (match_accessibility): New function.
7440 (cplus_describe_child): New function.
7441 (cplus_name_of_child, cplus_value_of_child)
7442 (cplus_type_of_child): Reimplement in terms
7443 of cplus_describe_child.
7444 (cplus_number_of_children): Use
7445 adjust_value_for_child_access.
7447 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7449 Fix computation of the 'editable' attribute and
7450 value changeability for for references.
7451 * varobj.c (get_value_type): New function.
7452 (c_variable_editable): Use get_value_type.
7453 (varobj_value_is_changeable): Likewise.
7455 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7457 * source.c (find_and_open_source): Try rewriting the source
7458 path inside filename if dirname is NULL.
7460 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7462 * dwarf2read.c (add_partial_symbol): Create an extra partial
7463 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7464 (new_symbol): Likewise for symbols.
7466 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7468 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7470 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7472 * value.c (value_primitive_field): Copy the full 'location'
7473 contents, instead of assuming that copying ADDRESS will
7474 bring over everything in the union. Remove obsolete comment.
7476 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7478 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7479 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7480 (m32c_m16c_pointer_to_address): Separate code from declarations.
7482 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7484 * target.c (update_current_target): Correct typo.
7486 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7488 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7491 2007-01-11 Andrew Cagney <cagney@redhat.com>
7492 Daniel Jacobowitz <dan@codesourcery.com>
7493 Jan Kratochvil <jan.kratochvil@redhat.com>
7495 * dwarf2-frame.c (execute_cfa_program): New support of
7496 `DW_CFA_GNU_negative_offset_extended'.
7498 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7500 * NEWS: Mention flash support for "load" and new remote packets.
7502 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7504 * breakpoint.c (delete_command): Skip redundant loop iterations.
7506 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7508 * gdbarch.sh (register_type): Update comment.
7509 * gdbarch.h: Regenerated.
7510 * arch-utils.c (generic_register_size): Call register_type.
7511 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7512 * m32c-tdep.c (check_for_saved): Likewise.
7513 * mips-tdep.c (mips_print_register, print_gp_register_row)
7514 (mips_print_registers_info): Likewise.
7515 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7517 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7518 (sh64_do_register, sh64_print_register)
7519 (sh64_media_print_registers_info): Likewise.
7520 * tui/tui-regs.c (tui_register_format): Likewise.
7522 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7524 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7526 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7527 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7528 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7529 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7530 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7531 (make_symbol_completion_list): Likewise.
7533 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7534 Daniel Jacobowitz <dan@codesourcery.com>
7536 * buildsym.c (end_symtab): Use preallocated symtab if available.
7537 Fill in SYMBOL_SYMTAB.
7538 * buildsym.h (struct subfile): Add symtab member.
7539 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7540 (struct file_entry): Add symtab.
7541 (free_cu_line_header): New function.
7542 (read_file_scope): Use it. Save line_header in the cu. Process
7544 (add_file_name): Initialize new symtab member.
7545 (dwarf_decode_lines): Create symtabs for included files.
7546 (new_symbol): Set SYMBOL_SYMTAB.
7547 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7548 (search_symbols): Likewise.
7549 * symtab.h (struct symbol): Add symtab member.
7550 (SYMBOL_SYMTAB): Define.
7552 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7554 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7556 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7558 * arch-utils.c (show_endian): Correct reversed condition.
7560 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7562 * MAINTAINERS (Write After Approval): Add myself.
7564 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7565 Vladimir Prus <vladimir@codesourcery.com>
7567 Fix 'selected frame' varobjs.
7568 * varobj.c (struct varobj): Remove the error field.
7569 (varobj_set_value): Don't check var->error.
7570 (install_new_value): Don't set var->error.
7571 (varobj_update): Always pass the new value
7572 of the root via install_new_value.
7573 (create_child): Don't set error field.
7574 (new_variable): Likewise.
7575 (c_value_of_root): Always reevaluate the value
7576 of selected frame varobjs in the selected frame.
7577 Don't call reinit_frame_cache.
7579 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7581 * source.c (_initialize_source): Improve the help text of
7582 the substitute-path commands.
7584 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7586 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7587 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7588 (frv_skip_prologue): Remove prototypes.
7589 (frv_adjust_breakpoint_address): Renamed from
7590 frv_gdbarch_adjust_breakpoint_address.
7591 (frv_gdbarch_init): Adjust.
7593 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7595 * gdbarch.sh (deprecated_extract_return_value)
7596 (deprecated_store_return_value): Remove.
7597 (extract_return_value, store_return_value): Remove default values.
7598 * gdbarch.c, gdbarch.h: Regenerate.
7599 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7600 (legacy_store_return_value): Remove.
7601 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7604 * mi/mi-main.c: Remove obsolete comment.
7606 * regcache.c, regcache.h (deprecated_register_bytes)
7607 (deprecated_read_register_bytes)
7608 (deprecated_write_register_bytes): Remove.
7610 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7611 Don't forget to move destination pointer.
7613 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7615 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7617 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7619 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7620 past entry function with recent newlib.
7622 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7624 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7625 introduction. Specify -var-update more exactly.
7627 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7629 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7631 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7633 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7634 the Global Maintainers' invitation to be a global maintainer.
7636 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7638 * infrun.c (singlestep_pc): New variable.
7639 (resume): Set singlestep_pc.
7640 (context_switch): Add a debugging message. Flush the frame cache.
7641 (handle_inferior_event): Add debugging messages. Handle thread
7642 hops when a software single step has completed. Let context_switch
7643 handle flushing the frame cache.
7645 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7647 * NEWS: Mention target descriptions, "set tdesc filename",
7648 "unset tdesc filename", "show tdesc filename", and
7649 qXfer:features:read.
7650 * arch-utils.c (choose_architecture_for_target): New function.
7651 (gdbarch_info_fill): Call it.
7652 * target-descriptions.c (struct property): Make members non-const.
7653 (struct target_desc): Add arch member.
7654 (target_description_filename): New variable.
7655 (target_find_description): Try via XML first.
7656 (tdesc_architecture): New.
7657 (free_target_description, make_cleanup_free_target_description): New.
7658 (set_tdesc_property): Call xstrdup.
7659 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7660 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7661 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7662 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7663 * target-descriptions.h (tdesc_architecture)
7664 (make_cleanup_free_target_description, set_tdesc_architecture): New
7666 * Makefile.in (SFILES): Add xml-tdesc.c.
7667 (COMMON_OBS): Add xml-tdesc.o.
7668 (target-descriptions.o): Update.
7669 (xml-tdesc.o): New rule.
7670 * xml-tdesc.c, xml-tdesc.h: New files.
7671 * remote.c (PACKET_qXfer_features): New enum.
7672 (remote_protocol_features): Add qXfer:features:read.
7673 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7674 (_initialize_remote): Register qXfer:features:read.
7675 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7676 * features/gdb-target.dtd: New file.
7678 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7680 * copyright.sh: Clarify error.
7682 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7684 * symtab.c (matching_bfd_sections): Fix VMA matching for
7687 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7689 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7692 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7694 Updated copyright notices for most files.
7696 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7698 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7700 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7702 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7704 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7706 * configure, config.in: Regenerate.
7707 * defs.h (debug_file_directory): Declare.
7708 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7709 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7710 relocate it if DEBUGDIR_RELOCATABLE.
7711 * symfile.c (debug_file_directory): Make non-static.
7712 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7713 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7714 (_initialize_symfile): Don't initialize debug_file_directory here.
7716 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7718 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7721 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7723 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7724 frame_unwind_register to recurse.
7725 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7726 (alpha_heuristic_frame_prev_register): Likewise.
7727 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7728 * m32c-tdep.c (m32c_prev_register): Likewise.
7729 * frame.c (frame_register_unwind_location): Remove FIXME.
7731 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7732 Eli Zaretskii <eliz@gnu.org>
7734 * copyright.sh: New file.
7736 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7738 * configure.ac: Check for XML_StopParser.
7739 * xml-support.c (gdb_xml_body_text): Check for an error.
7740 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7741 (gdb_xml_end_element_wrapper): Likewise.
7742 * config.in, configure: Regenerated.
7744 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7746 * varobj.c (install_new_value): Always update print_value.
7747 (value_get_print_value): Immediately return NULL for missing
7750 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7752 * configure.ac: Tighten pattern for extracting value of
7753 DEPRECATED_TM_FILE from the target makefile fragment.
7754 * configure: Regenerated.
7756 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7758 * linux-nat.c (struct simple_pid_list): Add status.
7759 (add_to_pid_list): Record the PID's status.
7760 (linux_record_stopped_pid): Likewise. Make static.
7761 (pull_pid_from_list): Return the saved status.
7762 (linux_nat_handle_extended): Deleted.
7763 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7764 Make static. Handle non-SIGSTOP for a new thread's first signal.
7765 (flush_callback): Handle unexpected pending signals.
7766 (linux_nat_wait): Update calls to changed functions.
7767 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7768 Remove prototypes for newly static functions.
7770 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7772 * gdbarch.sh (value_from_register): New gdbarch function.
7773 * gdbarch.c, gdbarch.h: Regenerate.
7774 * findvar.c (default_value_from_register): New function.
7775 (value_from_register): Use gdbarch_value_from_register.
7776 * value.h (default_value_from_register): Declare.
7777 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7778 spu_value_to_register): Remove.
7779 (spu_value_from_register): New function.
7780 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7781 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7782 Call set_gdbarch_value_from_register.
7783 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7784 s390_value_to_register): Remove.
7785 (s390_value_from_register): New function.
7786 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7787 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7788 Call set_gdbarch_value_from_register.
7790 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7792 * NEWS: Add "set sysroot" and "show sysroot".
7793 * solib.c (solib_absolute_prefix): Delete. Replace
7794 all uses with gdb_sysroot.
7795 (_initialize_solib): Add "set sysroot" and "show sysroot".
7796 Make "solib-absolute-prefix" an alias to it.
7798 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7800 * frame.c (get_frame_register_bytes): New function.
7801 (put_frame_register_bytes): Likewise.
7802 * frame.h (get_frame_register_bytes): Declare.
7803 (put_frame_register_bytes): Likewise.
7804 * findvar.c (value_from_register): Always construct lval_register
7805 values. Use get_frame_register_bytes.
7806 * valops.c (value_assign): Use get_frame_register_bytes and
7807 put_frame_register_bytes.
7809 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7811 * MAINTAINERS: Update Stan Shebs' email address.
7813 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7815 * ada-lang.c (is_known_support_routine): Improve the implementation.
7817 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7819 * ada-lang.c: Add include of source.h.
7820 (is_known_support_routine): Improve the check verifying that the file
7821 associated to this frame exists.
7822 * Makefile.in (ada-lang.o): Add dependency on source.h.
7824 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7826 * ax-general.c (ax_const_l): Select proper opcode for the given
7829 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7831 * varobj.c (c_value_of_root): Don't select frame if variable
7832 object is out of scope.
7834 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7836 * varobj.c (struct varobj): New member print_value.
7837 (install_new_value): Compare last printed value with current one
7838 instead of contents.
7839 (new_variable): Initialize var->print_value to NULL.
7840 (free_variable): Free var->print_value.
7841 (value_get_print_value): New function derived from
7842 c_value_of_variable.
7843 (c_value_of_variable): Use value_get_print_value.
7845 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7847 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7849 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7851 * NEWS: Add entries for new catch commands.
7853 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7855 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7856 (add_partial_symbol): Correct identification of external references.
7857 (process_structure_scope): Likewise.
7858 (read_partial_die): Handle DW_AT_byte_size attribute.
7860 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7862 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7864 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7866 * varobj.c (get_type_deref): Fix variable objects for references to
7869 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7871 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7874 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7876 * memory-map.c (struct_memory_map_parsing_data): Remove most
7877 members. Make property_name an array.
7878 (free_memory_map_parsing_data, memory_map_start_element)
7879 (memory_map_end_element, memory_map_character_data): Delete.
7880 (memory_map_start_memory, memory_map_end_memory)
7881 (memory_map_start_property, memory_map_end_property): New functions.
7882 (property_attributes, memory_children, memory_type_enum)
7883 (memory_attributes, memory_map_children, memory_map_elements): New.
7884 (parse_memory_map): Rewrite.
7885 * xml-support.c (debug_xml): New.
7886 (xml_get_required_attribute, xml_get_integer_attribute)
7887 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7889 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7890 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7891 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7892 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7893 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7894 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7895 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7897 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7898 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7899 (enum gdb_xml_element_flag, struct gdb_xml_element)
7900 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7901 (struct gdb_xml_enum): New.
7902 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7903 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7904 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7905 (xml_get_required_attribute, xml_get_integer_attribute)
7906 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7907 * Makefile.in (xml_support_h, xml-support.o): Update.
7909 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7911 * Makefile.in (eval.o): Update dependencies.
7912 * eval.c: Include "ui-out.h" and "exceptions.h".
7913 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7914 Use value_zero if an error occurs when avoiding side effects.
7915 * varobj.c (c_value_of_root): Initialize new_val.
7917 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7919 * varobj.c (varobj_list_children): Stop if the number of children is
7921 (c_number_of_children):
7923 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7925 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7926 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7927 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7928 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7929 sizeof, instead of hardcoded constants.
7931 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7933 * CONTRIBUTE: Use sourceware.org.
7935 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7937 * buildsym.c (start_subfile): Handle producer.
7938 (record_producer): New function.
7939 * buildsym.h (struct subfile): Include producer.
7940 (record_producer): New prototype.
7941 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7942 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7943 armcc_cfa_offsets_reversed.
7944 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7945 (dwarf2_frame_find_quirks): New function.
7946 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7947 (decode_frame_entry_1): Record the CIE version. Record the
7948 augmentation. Skip armcc augmentations.
7949 * dwarf2read.c (read_file_scope): Save the producer.
7950 * symtab.h (struct symtab): Rename unused version member to
7953 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7955 * configure.ac (build_warnings): Use -Wall and
7956 -Wdeclaration-after-statement.
7957 * configure: Regenerated.
7959 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7961 Simplify access to variours properties of child
7962 variable objects in C.
7963 * varobj.c (value_struct_element_index): New function.
7964 (c_describe_child): New function.
7965 (c_name_of_child, c_value_of_child)
7966 (c_type_of_child): Rewrite to use c_describe_child.
7968 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7971 * varobj.c: Include "vec.h".
7972 (varobj_p): New typedef, declare vector of those.
7973 (struct varobj): Use vector for the 'children' member.
7974 (child_exists): Remove.
7975 (save_child_in_parent): Remove.
7976 (remove_child_from_parent): Remove.
7977 (struct varobj_child): Remove.
7978 (struct vstack): Remove.
7979 (vpush, vpop): Remove.
7980 (varobj_list_children): Adjust to work work vector.
7981 (varobj_update): Likewise. Use vectors for
7982 working stack and result.
7983 (delete_variable_1): Likewise.
7984 * Makefile.in (varobj.o): Update dependencies.
7986 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7988 Port from Apple's version.
7990 * varobj.c (type_changeable): Rename to...
7991 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7992 (is_root_p): New function. Use it everywhere.
7994 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7996 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7999 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8001 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
8003 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8005 * hpread.c (hpread_type_lookup): Fix compilation failure.
8007 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
8009 * NEWS: New port to S+core.
8010 * MAINTAINERS (Write After Approval, Responsible Maintainers):
8013 * Makefile.in: Add dependencies for S+core files.
8014 * configure.tgt (score*, score-*-*): Add S+core target.
8015 * config/score/embed.mt: New file.
8016 * score-tdep.c: New file.
8017 * score-tdep.h: New file.
8019 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8021 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
8022 the appropriate type rather than a bogus void type.
8024 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8026 * ada-lang.h (ada_find_printable_frame): Remove.
8027 (ada_exception_catchpoint_p, ada_decode_exception_location)
8028 (ada_decode_assert_location): Add declaration.
8029 * ada-lang.c: Add include of annotate.h and valprint.h.
8030 (exception_catchpoint_kind): New enum.
8031 (function_name_from_pc, is_known_support_routine)
8032 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
8033 (ada_exception_name_addr_1, ada_exception_name_addr)
8034 (print_it_exception, print_one_exception, print_mention_exception)
8035 (print_it_catch_exception, print_one_catch_exception)
8036 (print_mention_catch_exception, catch_exception_breakpoint_ops)
8037 (print_it_catch_exception_unhandled)
8038 (print_one_catch_exception_unhandled)
8039 (print_mention_catch_exception_unhandled, print_it_catch_assert)
8040 (print_one_catch_assert, print_mention_catch_assert)
8041 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
8042 (ada_get_next_arg, catch_ada_exception_command_split)
8043 (ada_exception_sym_name, ada_exception_sym_name)
8044 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
8045 (ada_parse_catchpoint_condition, ada_exception_sal)
8046 (ada_decode_exception_location)
8047 (ada_decode_assert_location): New function.
8048 (catch_exception_unhandled_breakpoint_ops): New global variable.
8049 (catch_assert_breakpoint_ops): New global variable.
8050 * breakpoint.c: Add include of ada-lang.h.
8051 (print_one_breakpoint): Do not print the condition for Ada
8052 exception catchpoints.
8053 (create_ada_exception_breakpoint): New function.
8054 (catch_ada_exception_command, catch_assert_command): New function.
8055 (catch_command_1): Add support for the new "catch exception" and
8056 "catch assert" commands.
8057 (_initialize_breakpoint): Add help description for the new catch
8059 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
8061 (breakpoint.o): Add dependency on ada-lang.h.
8063 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
8065 * coffread.c (cs_to_section): If bfd_section is found, always
8066 return its section index.
8067 (coff_symtab_read): Determine the minimal_symbol_type using the
8070 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8071 Daniel Jacobowitz <dan@codesourcery.com>
8073 * Makefile.in (top.o): Update.
8074 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
8075 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
8076 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
8078 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
8080 2007-01-03 Mark Kettenis <kettenis@gnu.org>
8082 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
8083 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
8085 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8087 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
8088 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
8089 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
8090 greater than or equal to zero.
8091 * m2-typeprint.c (m2_array): Likewise.
8092 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
8093 * gdbtypes.c (copy_type_recursive): Correct == typo.
8094 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
8095 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
8097 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
8098 (default_macro_scope): Remove unused variable.
8099 * prologue-value.h (pv_area_find_reg): Don't name an argument
8101 * remote-fileio.c (remote_fio_func_map): Add missing braces.
8102 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
8104 (cleanup_sigint_signal_handler): Remove casts.
8105 * valprint.c (val_print): Use a volatile local for the modified
8107 * varobj.c (languages): Remove extra array dimension.
8108 (varobj_create): Correct access to languages array.
8109 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
8111 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
8112 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
8113 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
8114 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
8115 (mi_cmd_data_write_memory): Likewise.
8116 * signals/signals.c (target_signal_to_string): Cast to int before
8118 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
8121 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8123 * NEWS: Mention pointer to member improvements.
8124 * Makefile.in (gnu-v3-abi.o): Delete special rule.
8125 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
8126 * ada-valprint.c (ada_print_scalar): Update for new type codes.
8127 * c-typeprint.c (c_print_type): Update for new type codes.
8128 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
8129 (c_type_print_base): Likewise.
8130 (c_type_print_args): Rewrite.
8131 * c-valprint.c (c_val_print): Update for new type codes. Remove
8132 support for references to members. Treat methods like functions.
8133 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
8134 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
8135 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
8136 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
8137 (struct cp_abi_ops): Add corresponding members.
8138 * cp-valprint.c (cp_print_class_method): Delete.
8139 (cp_find_class_member): New function.
8140 (cp_print_class_member): Use it. Simplify support for bogus
8142 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
8143 lookup_methodptr_type.
8144 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
8145 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
8146 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
8148 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
8149 references returned by user defined operators.
8150 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
8151 (f_type_print_varspec_suffix): Remove support for member pointers.
8152 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
8154 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
8155 (lookup_methodptr_type): New.
8156 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
8157 (recursive_dump_type): Update for new types.
8158 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
8159 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
8160 (lookup_memberptr_type, lookup_methodptr_type)
8161 (smash_to_memberptr_type): New prototypes.
8162 (smash_to_method_type): Formatting fix.
8163 (lookup_member_type, smash_to_member_type): Delete prototypes.
8164 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
8165 Do not rely on debug information for the vptr or the method's
8166 enclosing type. Handle function descriptors for IA64.
8167 (gnuv3_virtual_fn_field): Rewrite using the new functions.
8168 (gnuv3_find_method_in, gnuv3_print_method_ptr)
8169 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8170 (gnuv3_method_ptr_to_value): New.
8171 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8172 * hpread.c (hpread_type_lookup): Update for new types.
8173 * infcall.c (value_arg_coerce): Likewise.
8174 * m2-typeprint.c (m2_print_type): Remove explicit support
8175 for member pointers.
8176 * m2-valprint.c (m2_val_print): Likewise.
8177 * p-typeprint.c (pascal_type_print_varspec_prefix)
8178 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8179 * p-valprint.c (pascal_val_print): Likewise.
8180 (pascal_object_print_class_method, pascal_object_print_class_member):
8182 * p-lang.h (pascal_object_print_class_method)
8183 (pascal_object_print_class_member): Delete prototypes.
8184 * stabsread.c (read_type): Update for new types.
8185 * typeprint.c (print_type_scalar): Likewise.
8186 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8187 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8188 argument. Construct a pointer to member if the address of a
8189 function or data member is requested.
8190 (value_cast_pointers): Don't modify the input value.
8191 (value_cast): Adjust pointer to member handling for new types.
8192 Allow null pointer to member constants. Don't modify the input
8194 (value_ind): Remove pointer to member check. Handle function
8195 descriptors for function pointers.
8196 (value_struct_elt, value_find_oload_method_list, check_field):
8197 Remove pointer to member checks.
8198 * value.c (unpack_long): Allow pointers to data members.
8199 (value_from_longest): Allow member pointers.
8200 * value.h (value_aggregate_elt): Add want_address.
8201 * varobj.c (c_variable_editable): Remove check for members.
8202 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8203 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8205 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8206 * c-lang.h (cp_print_class_method): Delete prototype.
8207 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8208 * mips-tdep.c (mips_gdbarch_init): Likewise.
8209 * gdbarch.c, gdbarch.h: Regenerated.
8211 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8213 * rs6000-tdep.c (rs6000_use_struct_convention)
8214 (rs6000_extract_return_value, rs6000_store_return_value)
8215 (rs6000_extract_struct_value_address): Remove.
8216 (rs6000_return_value): New function.
8217 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8218 store_return_value, deprecated_extract_struct_value_address and
8219 deprecated_use_struct_convention. Use rs6000_return_value
8222 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
8224 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8225 -display-disable, -display-enable, -display-insert and
8228 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8230 * breakpoint.c (remove_breakpoint): Remove dead code.
8232 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
8234 * varobj.c: Include block.h.
8235 (c_value_of_root): Check scope within nested statements.
8237 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8239 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8240 regcache_cooked_write_signed instead of
8241 deprecated_write_register_bytes.
8243 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8245 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8247 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8249 Followed the Start of New Year Procedure:
8250 * ChangeLog-2006: New file, containing all the entries for 2006.
8251 * ChangeLog: Removed all 2006 entries, and changed the reference
8252 to the previous ChangeLog to point to ChangeLog 2006.
8253 * top.c (print_gdb_version): Update copyright year.
8255 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8257 * Makefile.in (remote-sds.o): Remove.
8258 * remote-sds.c: Delete.
8260 For older changes see ChangeLog-2006.
8266 version-control: never