1 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3 * rs6000-tdep.c (skip_prologue): Restore comment with
4 function description to its proper place.
6 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
8 * NEWS: Mention gdbserver PowerPC improvements.
10 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
12 * features/Makefile (WHICH): Add PowerPC register definitions.
13 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
14 (rs6000/powerpc-64-expedite): New macros.
15 ($(outdir)/%.dat): Handle subdirectories.
16 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
17 regformats/rs6000/powerpc-e500.dat: New generated files.
19 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21 * ppc-linux-nat.c (ppc_linux_read_description): New.
22 (_initialize_ppc_linux_nat): Set to_read_description.
23 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
25 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
27 * NEWS: Document target described register support for PowerPC.
28 * ppc-tdep.h: Remove ppc_spr constants.
29 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
30 ppc_builtin_type_vec128 members.
31 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
32 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
33 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
34 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
35 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
36 * rs6000-tdep.c: Include preparsed descriptions.
37 (init_sim_regno_table): Do not iterate over pseudo registers.
38 Look up segment registers by name. Use sim_spr_register_name
40 (rs6000_register_sim_regno): Call init_sim_regno_table here.
41 (rs6000_builtin_type_vec128): Delete.
42 (rs6000_register_name): Only handle SPE pseudo registers and upper
43 halves. Call tdesc_register_name for everything else.
44 (rs6000_register_type): Delete. Replace with...
45 (rs6000_pseudo_register_type): ...this new function. Only handle
47 (rs6000_register_reggroup_p): Delete. Replace with...
48 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
49 handle SPE pseudo registers.
50 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
52 (rs6000_register_to_value, rs6000_value_to_register): Remove check
54 (e500_register_reggroup_p): Delete.
55 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
56 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
57 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
58 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
59 (registers_powerpc, registers_403, registers_403GC, registers_505)
60 (registers_860, registers_601, registers_602, registers_603)
61 (registers_604, registers_750, registers_7400, registers_e500): Delete
63 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
65 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
66 (variants): Delete outdated comment. Use standard target descriptions
67 instead of "struct reg" arrays.
68 (init_variants): Delete.
69 (rs6000_gdbarch_init): Do not guess word size from the BFD
70 architecture if we have a target description. Select a variant
71 before creating a new architecture. Use the variant's target
72 description if the target did not define a register layout.
73 Validate target-supplied registers. Reject mismatches. Use
74 fixed register numbers and new constants instead of magic
75 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
76 (_initialize_rs6000_tdep): Initialize the preparsed target
78 * target-descriptions.c (tdesc_predefined_types): Add int128 and
80 (tdesc_find_register_early): New function.
81 (tdesc_numbered_register): Use it.
82 (tdesc_register_size): New function.
83 (tdesc_use_registers): Take a target_desc argument. Do not use
85 * target-descriptions.h (tdesc_use_registers): Update prototype
87 (tdesc_register_size): New prototype.
88 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
89 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
90 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
91 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
92 (rs6000-tdep.o): Update.
93 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
94 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
95 * mips-tdep.c (mips_gdbarch_init): Likewise.
97 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
99 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
100 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
101 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
102 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
103 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
104 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
105 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
108 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
110 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
111 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
112 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
113 feature descriptions for standard PowerPC register sets.
115 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
116 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
117 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
118 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
119 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
120 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
121 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
122 target descriptions for PowerPC processors.
124 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
126 * target-descriptions.c (tdesc_predefined_types): New.
127 (tdesc_named_type): Use it.
128 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
129 (_intialize_target_descriptions): Register "maint print c-tdesc".
130 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
131 (cfiles, %.c): New rules.
132 * features/arm-with-iwmmxt.c, features/mips-linux.c,
133 features/mips64-linux.c: New generated files.
135 * arm-linux-nat.c: Include preparsed description instead of
137 (super_xfer_partial, arm_linux_xfer_partial): Remove.
138 (arm_linux_read_description): New function.
139 (_initialize_arm_linux_nat): Set to_read_description instead of
140 to_xfer_partial. Initialize preparsed description.
141 * config/arm/linux.mh (TDEP_XML): Delete.
142 * mips-linux-nat.c: Include preparsed descriptions instead of
144 (super_xfer_partial, mips_linux_xfer_partial): Remove.
145 (mips_linux_read_description): New function.
146 (_initialize_mips_linux_nat): Set to_read_description instead of
147 to_xfer_partial. Initialize preparsed description.
148 * config/mips/linux.mh (TDEP_XML): Delete.
149 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
150 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
151 (mips64_linux_c): New macros.
152 (arm-linux-nat.o, mips-linux-nat.o): Update.
154 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
156 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
157 Replace xasprintf by xstrprintf.
158 symfile-mem.c (add_vsyscall_page): Ditto.
160 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
162 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
163 replacing use of global current_gdbarch.
164 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
165 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
167 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
168 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
169 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
170 (ia64_sigtramp_frame_cache): Update caller.
172 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
174 * gdbarch.sh (deprecated_use_struct_convention): Remove.
175 (extract_return_value, store_return_value): Remove.
176 (return_value): Remove default implementation.
177 * gdbarch.c, gdbarch.h: Regenerate.
179 * stack.c (return_command): Remove compatibility hack.
180 * arch-utils.c (legacy_return_value): Remove.
181 * arch-utils.h (legacy_return_value): Likewise.
183 * arch-utils.c (always_use_struct_convention): Remove.
184 * arch-utils.h (always_use_struct_convention): Likewise.
185 * value.c (generic_use_struct_convention): Remove.
186 * defs.h (generic_use_struct_convention): Likewise.
188 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
190 * avr-tdep.c (avr_return_value): New function.
191 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
192 set_gdbarch_extract_return_value.
194 * fvr-tdep.c (frv_return_value): New function.
195 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
196 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
197 and set_gdbarch_deprecated_use_struct_convention.
199 * ia64-tdep.c (ia64_use_struct_convention): Make static.
200 Add check for structure, union, or array types.
201 (ia64_extract_return_value): Make static.
202 (ia64_store_return_value): Make static. Support multi-word values.
203 (ia64_return_value): New function.
204 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
205 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
206 and set_gdbarch_deprecated_use_struct_convention.
208 2007-10-12 Joel Brobecker <brobecker@adacore.com>
210 * solib-target.c (solib_target_parse_libraries)
211 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
213 2007-10-12 Jim Blandy <jimb@codesourcery.com>
215 * serial.h (struct serial_ops): Document read_prim to return zero
217 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
218 read_prim returns zero, not SERIAL_TIMEOUT.
220 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
222 * alpha-mdebug-tdep.c: Include "gdb_string.h".
223 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
224 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
225 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
227 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
228 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
229 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
230 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
231 * config/alpha/tm-alpha.h: Remove file.
233 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
235 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
236 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
238 * config/pa/tm-hppa.h: Delete file.
239 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
240 * config/pa/hppahpux.mt: Likewise.
241 * config/pa/hppa.mt: Likewise.
242 * config/pa/linux.mt: Likewise.
243 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
245 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
247 * config/arm/nm-nbsdaout.h: Remove file.
248 * config/nm-nbsdaout.h: Likewise.
249 * config/nm-nbsd.h: Likewise.
251 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
253 * block.h (struct block): Remove "gcc_compile_flag" member.
254 (BLOCK_GCC_COMPILED): Remove.
255 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
256 * buildsym.c (finish_block): Do not set it.
257 * symmisc.c (dump_symtab_1): Do not dump it.
259 * value.h (using_struct_return): Remove "gcc_p" argument.
260 * value.c (using_struct_return): Likewise.
261 * eval.c (evaluate_subexp_standard): Adapt callers.
262 * infcall.c (call_function_by_hand): Likewise.
263 * stack.c (return_command): Likewise.
264 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
266 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
267 * gdbarch.c, gdbarch.h: Regenerate.
268 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
269 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
270 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
271 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
272 (push_dummy_code, call_function_by_hand): Adapt callers.
274 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
276 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
277 (finish_command_continuation, finish_command): Adapt callers.
279 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
281 * infcall.c (call_function_by_hand): Remove special handling
282 for HP aCC compiled code.
284 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
286 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
287 reference. Fix endianness bugs.
288 (cris_reg_struct_has_address): Remove.
289 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
290 and set_gdbarch_deprecated_use_struct_convention calls.
292 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
293 * gdbarch.c, gdbarch.h: Regenerate.
294 * infcall.c (call_function_by_hand): Remove handling of
295 deprecated_reg_struct_has_addr.
297 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
298 Kazu Hirata <kazu@codesourcery.com>
300 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
301 checking watchpoint resources.
303 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
305 * memattr.c (inaccessible_by_default): Change the initial
308 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
311 * coffread.c (read_one_sym): Check for read errors.
313 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
315 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
316 instead of "Linux 2.6.19" in comment.
317 (linux_xfer_partial): Use "GNU/Linux target" instead of
318 "Linux target" in comment.
319 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
320 (m68k_linux_get_sigtramp_info): Likewise.
322 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
324 * MAINTAINERS (language support): List Joel and Paul as
327 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
329 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
331 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
332 not set DEPRECATED_TM_FILE.
333 * config/arm/tm-arm.h: Delete file.
335 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
337 * MAINTAINERS (Write After Approval): Add self.
339 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
341 * buildsym.c (record_line): Remove empty lines followed by
342 end-of-sequence markers.
344 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
346 * configure.tgt: Recognize fido-*-elf.
348 2007-10-10 Joel Brobecker <brobecker@adacore.com>
352 2007-10-10 Markus Deuling <deuling@de.ibm.com>
354 * stack.c (print_frame_args, frame_info, return_command): Use
355 get_regcache_arch or get_frame_arch to get at the current architecture
356 by regcache or by frame, respectively.
358 2007-10-10 Markus Deuling <deuling@de.ibm.com>
360 * rs6000-nat.c (fetch_register, store_register)
361 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
362 get_regcache_arch to get at the current architecture by regcache.
364 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
365 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
366 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
367 current_gdbarch by gdbarch.
368 (rs6000_skip_trampoline_code, rs6000_register_to_value)
369 (rs6000_value_to_register): Use get_frame_arch to get at the current
370 architecture by frame_info.
372 2007-10-10 Markus Deuling <deuling@de.ibm.com>
374 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
375 get_regcache_arch to get at the current architecture by regcache.
377 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
378 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
379 get_regcache_arch to get at the current architecture by regcache.
381 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
382 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
383 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
384 current architecture by regcache.
386 2007-10-10 Markus Deuling <deuling@de.ibm.com>
388 * remote-mips.c (mips_wait, mips_fetch_registers)
389 (mips_store_registers): Use get_regcache_arch to get at the
390 current architecture by regcache.
392 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
393 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
394 get at the current architecture by regcache.
395 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
396 architecture by frame_info.
398 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
399 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
400 the current architecture by regcache.
402 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
403 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
404 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
405 current architecture by frame_info.
406 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
407 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
408 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
409 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
410 get at the current architecture by regcache.
412 * mips-linux-nat.c (mips_linux_register_addr)
413 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
414 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
415 (mips64_linux_regsets_fetch_registers)
416 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
417 the current architecture by regcache.
419 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
420 get at the current architecture by frame_info.
422 2007-10-10 Markus Deuling <deuling@de.ibm.com>
424 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
425 current architecture by regcache.
426 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
427 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
428 (mips_stub_frame_cache, mips_read_fp_register_single)
429 (mips_read_fp_register_double, mips_print_fp_register)
430 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
431 at the current architecture by frame_info.
432 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
433 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
434 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
435 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
436 (mips_o32_push_dummy_call, mips_o32_return_value)
437 (mips_o64_push_dummy_call, mips_o64_return_value)
438 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
441 2007-10-10 Markus Deuling <deuling@de.ibm.com>
443 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
444 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
445 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
446 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
447 (xtensa_register_write_masked, xtensa_register_read_masked)
448 (xtensa_supply_gregset, xtensa_store_return_value)
449 (xtensa_extract_return_value): Use get_regcache_arch to get at the
450 current architecture by regcache.
451 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
452 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
453 architecture by frame_info.
455 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
457 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
458 (thumb_analyze_prologue): Move pv_area_store_would_trash call
459 out of loop. Do not set cache->frameoffset.
460 (arm_scan_prologue): Use prologue-value mechanism. Do not set
461 frameoffset. Simplify framesize.
462 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
464 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
466 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
468 * target.c (update_current_target): Call setup_target_debug.
469 (push_target): Do not call it here.
471 2007-10-09 Michael Snyder <msnyder@specifix.com>
473 * MAINTAINERS: Update my email address.
475 2007-10-09 Markus Deuling <deuling@de.ibm.com>
477 * xtensa-tdep.c: Replace following current-gdbarch based macros by
479 (xtensa_pseudo_register_read)
480 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
481 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
482 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
483 (xtensa_pseudo_register_read)
484 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
485 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
486 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
487 (xtensa_frame_prev_register): NUM_AREGS.
488 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
489 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
490 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
491 (xtensa_supply_gregset, xtensa_frame_cache)
492 (xtensa_frame_prev_register): WS_REGNUM.
493 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
494 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
495 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
496 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
497 (xtensa_register_reggroup_p): REGMAP.
498 (call0_track_op): LITBASE_REGNUM.
499 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
500 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
501 (xtensa_frame_prev_register, AREG_NUMBER)
502 (xtensa_register_type): AR_BASE.
503 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
504 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
505 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
506 (xtensa_frame_cache, xtensa_frame_prev_register)
507 (xtensa_extract_return_value, xtensa_store_return_value)
508 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
509 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
510 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
511 (xtensa_frame_prev_register, xtensa_push_dummy_call)
512 (call0_frame_cache): A1_REGNUM.
513 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
514 (xtensa_push_dummy_call): A4_REGNUM.
515 (ARGS_FIRST_REG): A6_REGNUM.
516 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
517 (xtensa_frame_prev_register): A15_REGNUM.
518 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
519 them in the appropriate source file:
520 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
521 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
522 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
523 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
524 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
525 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
526 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
527 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
528 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
529 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
530 A13_REGNUM, A14_REGNUM, A15_REGNUM.
532 2007-10-09 Markus Deuling <deuling@de.ibm.com>
534 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
535 the current architecture by frame_info.
536 (h8300_frame_prev_register
537 (h8300_print_register): Replace current_gdbarch by gdbarch.
538 (h8300_print_registers_info, h8300_register_type)
539 (h8300_register_type): Likewise.
541 2007-10-09 Markus Deuling <deuling@de.ibm.com>
543 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
544 the current architecture by regcache.
545 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
546 (i386_linux_fetch_inferior_registers)
547 (i386_linux_store_inferior_registers): Likewise.
548 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
549 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
550 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
551 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
552 (i386_extract_return_value, i386_store_return_value): Likewise.
553 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
554 the current architecture by frame_info.
555 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
556 (i386_register_to_value, i386_value_to_register): Likewise.
558 2007-10-09 Markus Deuling <deuling@de.ibm.com>
560 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
561 the current architecture by regcache.
562 (monitor_store_register, monitor_store_registers): Likewise.
564 2007-10-09 Markus Deuling <deuling@de.ibm.com>
566 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
567 the current architecture by regcache.
569 2007-10-09 Markus Deuling <deuling@de.ibm.com>
571 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
574 2007-10-09 Markus Deuling <deuling@de.ibm.com>
576 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
577 architecture by frame.
578 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
579 (inside_main_func, frame_sp_unwind): Likewise.
581 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
583 * solib-svr4.c (enable_break): Add the dynamic linker also if
586 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
588 * MAINTAINERS (Write After Approval): Add self.
590 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
592 * stabsread.c (read_huge_number): Initialize local variable to 0.
594 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
596 * p-lang.h (pascal_main_name): Add declaration.
597 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
598 (GPC_MAIN_PROGRAM_NAME_2): New constants.
599 (pascal_main_name): New function.
600 * symtab.c: Include p-lang.h.
601 (find_main_name): Add call to pascal_main_name.
602 * Makefile.in (symtab.o): Add dependency on p-lang.h.
604 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
606 * stabsread.c (read_huge_number): Fix handling of octal
607 representation when the bit width is known.
608 (read_range_type): Record unsigned integral types with their size,
609 when the type size is known.
611 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
613 * MAINTAINERS (Write After Approval): Add self.
615 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
617 * breakpoint.c (print_one_breakpoint_location): ARI fix:
618 Replace asprintf by xstrprintf.
620 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
622 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
623 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
625 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
627 * linux-fork.c: Move "gdb_wait.h" include back to the position of
628 <sys/wait.h> include before last commit.
630 2007-10-08 Maciej W. Rozycki <macro@mips.com>
632 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
634 2007-10-08 Markus Deuling <deuling@de.ibm.com>
636 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
637 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
638 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
639 (store_regs_user_thread, store_regs_kernel_thread): Use
640 get_regcache_arch or get_frame_arch to get at the current architecture
641 by regcache or by frame, respectively.
643 2007-10-08 Markus Deuling <deuling@de.ibm.com>
645 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
646 (sh64_pseudo_register_read, sh64_pseudo_register_write)
647 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
648 (sh64_print_register, sh64_media_print_registers_info)
649 (sh64_compact_print_registers_info, sh64_unwind_sp)
650 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
651 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
652 (sh64_frame_prev_register): Use FRAME to recognize current
655 2007-10-08 Markus Deuling <deuling@de.ibm.com>
657 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
658 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
659 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
660 current_gdbarch by gdbarch.
661 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
662 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
663 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
664 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
665 recognize current architecture.
667 2007-10-08 Markus Deuling <deuling@de.ibm.com>
669 * remote.c (init_remote_state, fetch_register_using_p)
670 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
671 (store_register_using_P, store_registers_using_G)
672 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
673 get at the current architecture by regcache or by frame, respectively.
675 2007-10-08 Markus Deuling <deuling@de.ibm.com>
677 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
678 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
679 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
680 get_regcache_arch or get_frame_arch to get at the current architecture
681 by regcache or by frame, respectively.
682 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
683 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
684 (store_register, old_store_inferior_registers, supply_gregset)
685 (supply_fpregset, fill_fpregset): Likewise.
686 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
687 Replace current_gdbarch by gdbarch.
689 2007-10-08 Markus Deuling <deuling@de.ibm.com>
691 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
692 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
693 get_frame_arch to get at the current architecture by regcache or by
696 2007-10-08 Markus Deuling <deuling@de.ibm.com>
698 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
699 Replace current_gdbarch by gdbarch.
700 * ia64-tdep.c (ia64_frame_prev_register
701 (ia64_sigtramp_frame_prev_register)
702 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
703 get_frame_arch to get at the current architecture by regcache or by
705 * ia64-linux-nat.c (ia64_linux_fetch_register)
706 (ia64_linux_fetch_registers, ia64_linux_store_register)
707 (ia64_linux_store_registers): Likewise.
709 2007-10-08 Markus Deuling <deuling@de.ibm.com>
711 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
712 current_gdbarch by gdbarch.
713 * hppa-linux-nat.c (fetch_register, store_register)
714 (hppa_linux_fetch_inferior_registers)
715 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
716 get_frame_arch to get at the current architecture by regcache or by
718 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
719 (hppa_hpux_unwind_adjust_stub): Likewise.
720 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
721 (hppa_hpux_fetch_inferior_registers)
722 (hppa_hpux_store_inferior_registers): Likewise.
724 2007-10-08 Markus Deuling <deuling@de.ibm.com>
726 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
727 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
728 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
729 or get_frame_arch to get at the current architecture by regcache or by
731 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
732 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
733 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
734 current_gdbarch by gdbarch.
736 2007-10-08 Markus Deuling <deuling@de.ibm.com>
738 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
739 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
740 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
741 get at the current architecture by regcache or by·frame, respectively.
742 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
745 2007-10-08 Markus Deuling <deuling@de.ibm.com>
747 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
748 Use get_regcache_arch or get_frame_arch to get at the current
749 architecture by regcache or by frame, respectively.
750 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
751 * amd64-nat.c (amd64_supply_native_gregset)
752 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
754 2007-10-08 Markus Deuling <deuling@de.ibm.com>
756 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
758 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
759 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
760 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
761 get_frame_arch to get at the current architecture by regcache or by
763 * alpha-nat.c (fetch_osf_core_registers): Likewise.
765 2007-10-08 Markus Deuling <deuling@de.ibm.com>
767 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
768 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
769 current_gdbarch by gdbarch.
770 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
772 2007-10-08 Markus Deuling <deuling@de.ibm.com>
774 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
775 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
776 * regcache.c (regcache_raw_write): Use get_regcache_arch or
777 get_frame_arch to get at the current architecture by regcache or by
780 2007-10-08 Markus Deuling <deuling@de.ibm.com>
782 * findvar.c (value_of_register, locate_var_value): Use
783 get_regcache_arch or get_frame_arch to get at the current architecture
784 by regcache or by frame, respectively.
785 * findvar.c (default_value_from_register, value_from_register): Replace
786 current_gdbarch by gdbarch.
788 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
790 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
792 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
794 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
795 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
797 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
799 * remote.c (get_offsets): Only call free_symfile_segment_data if
802 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
804 * objc-exp.y: ARI fix: remove 4 PARAMS.
806 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
808 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
809 news. Mention XML support for M68K in GDB 6.7.
811 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
813 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
815 (init_vector_type): Use builtin_type_int32.
817 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
819 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
820 size to enable bi-arch generate-core-file support.
822 2007-10-02 Markus Deuling <deuling@de.ibm.com>
824 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
826 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
828 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
830 * tui/tui-win.c (tui_initialize_win): New function for
831 initializing tui's SIGWINCH signal handler.
832 * tui/tui-win.h (tui_initialize_win): Declare.
834 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
836 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
837 pointer to uintptr_t before casting to CORE_ADDR.
839 2007-10-02 Markus Deuling <deuling@de.ibm.com>
841 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
843 2007-10-02 Mark Mitchell <mark@codesourcery.com>
845 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
846 * ser-mingw.c (enum select_thread_state): New type.
847 (struct ser_console_state): Add have_started and thread_state.
848 (select_thread_wait): New function.
849 (thread_fn_type): New type.
850 (create_select_thread): New function.
851 (destroy_select_thread): Likewise.
852 (start_select_thread): Likewise.
853 (stop_select_thread): Likewise.
854 (console_select_thread): Use new functions.
855 (pipe_select_thread): Likewise.
856 (file_select_thread): Likewise.
857 (ser_console_wait_handle): Likewise.
858 (ser_console_done_wait_handle): Likewise.
859 (ser_console_close): Likewise.
860 (free_pipe_state): Likewise.
861 (pipe_wait_handle): Likewise.
862 (pipe_done_wait_handle): Likewise.
863 (struct net_windows_state): Derive from ser_console_state.
864 (net_windows_select_thread): Use new functions.
865 (net_windows_wait_handle): Likewise.
866 (net_windows_done_wait_handle): Likewise.
867 (net_windows_close): Likewise.
869 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
871 * inflow.c (terminal_ours_1): Remove useless line.
873 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
875 * mips-tdep.c (mips_read_fp_register_double): Correct check for
877 (mips_print_fp_register): Correct check for even FP registers.
878 (mips_virtual_frame_pointer): New function.
879 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
881 2007-09-30 Mike Frysinger <vapier@gentoo.org>
883 * value.h (lookup_only_internalvar): New prototype.
884 (create_internalvar): Likewise.
885 * value.c (lookup_only_internalvar): New function.
886 (create_internalvar): Likewise.
887 (lookup_internalvar): Use new lookup_only_internalvar and
888 create_internalvar functions.
889 * parse.c (write_dollar_variable): Look up $ symbols in internal
890 table first rather than last.
892 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
894 * linux-nat.c (linux_nat_new_thread): New variable.
895 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
896 linux_nat_switch_fork.
897 (lwp_list): Make public.
898 (add_lwp): Call linux_nat_new_thread.
899 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
901 (resume_callback): Clear lp->siginfo. Remove unused variable.
902 (linux_nat_resume): Assert that the LWP list is already initialized.
905 (stop_wait_callback, linux_nat_wait): Call it.
906 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
907 * linux-nat.h (struct lwp_info): Add siginfo.
908 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
911 * amd64-linux-nat.c (amd64_linux_dr): New.
912 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
913 (amd64_linux_dr_set): Take a PTID argument.
914 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
915 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
916 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
917 (amd64_linux_new_thread): New.
918 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
919 * i386-linux-nat.c (i386_linux_dr): New.
920 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
921 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
922 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
923 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
924 (i386_linux_new_thread): New.
925 (i386_linux_resume): Remove unnecessary PID check.
926 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
927 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
928 (fetch_debug_register, fetch_debug_register_pair): Delete.
929 (debug_registers): New.
930 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
931 ALL_LWPS and debug_registers.
932 (ia64_linux_new_thread): New.
933 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
934 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
935 * ppc-linux-nat.c (last_stopped_data_address): Delete.
936 (saved_dabr_value): New.
937 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
939 (ppc_linux_new_thread): New.
940 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
941 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
942 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
943 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
945 (s390_fix_watch_points): Take a PTID argument.
946 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
947 (_initialize_s390_nat): Call linux_nat_set_new_thread.
949 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
950 Jeff Johnston <jjohnstn@redhat.com>
952 * breakpoint.c (watchpoints_triggered): New.
953 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
954 Check watchpoint_triggered instead. Combine handling for software
955 and hardware watchpoints. Do not use target_stopped_data_address
956 here. Always check a watchpoint if its scope breakpoint triggers.
957 Do not stop for thread or overlay events. Improve check for
958 triggered watchpoints without a value change.
959 (watch_command_1): Insert the scope breakpoint first. Link the
960 scope breakpoint to the watchpoint.
961 * breakpoint.h (enum watchpoint_triggered): New.
962 (struct breakpoint): Add watchpoint_triggered.
963 (bpstat_stop_status): Update prototype.
964 (watchpoints_triggered): Declare.
965 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
966 (stepped_after_stopped_by_watchpoint): Delete.
967 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
968 local. Handle infwait_step_watch_state. Update calls to
969 bpstat_stop_status. Use watchpoints_triggered to check
971 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
972 (remote_stopped_data_address): Do not check it.
974 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
976 * configure.ac: Add $LIBINTL when testing libbfd.
977 * configure: Regenerated.
979 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
981 * NEW: Mention pending breakpoint changes and
982 support for breakpoints at multiple locations.
984 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
986 * arm-linux-tdep.c (arm_linux_software_single_step): New.
987 (arm_linux_init_abi): Use it.
988 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
990 * arm-tdep.h (arm_get_next_pc): Declare.
991 * Makefile.in (arm-linux-tdep.o): Update.
993 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
995 * varobj.c (install_new_value): Don't
996 call value_get_print_value when a value is
997 lazy. Update the print_value member in a
1000 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1002 * breakpoint.c (create_breakpoint): Set
1003 condition on each location, not on the first
1004 location of breakpoint.
1006 2007-09-26 Jim Blandy <jimb@codesourcery.com>
1008 * remote.c (getpkt_sane): Fix error message. No animals were
1009 harmed in the making of this debugger.
1011 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1013 * p-typeprint.c: Fix 11 ARI reported problems.
1014 (pascal_print_type): Fix 4 operator at end of line.
1015 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
1016 using strncmp function.
1017 (pascal_type_print_base): Fix 2 operator at end of line.
1018 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
1019 using strncmp function.
1022 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1024 * Fix PR pascal/2231
1025 dwarf2read.c (read_subroutine_type):
1026 All pascal functions are prototyped.
1028 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1030 * Fix PR pascal/2283
1031 p-valprint.c (pascal_val_print): correct current language check.
1032 Also print array of char as strings.
1035 2007-09-26 David Ung <davidu@mips.com>
1036 Maciej W. Rozycki <macro@mips.com>
1038 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
1040 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
1042 * p-exp.y: Fix 12 ARI reported problems.
1043 (name_not_typename): Fix 2 operator at end of line issues.
1044 (yylex): Fix 3 operator at end of line issues.
1045 Replace 7 DEPRECATED_STREQ macros using strcmp function.
1047 2007-09-25 David Ung <davidu@mips.com>
1048 Maciej W. Rozycki <macro@mips.com>
1050 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
1051 rules return composite types in registers as appropriate.
1053 2007-09-24 Jim Blandy <jimb@codesourcery.com>
1055 * symfile.h (struct symfile_segment_data): Doc fixes.
1056 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
1057 Assert that we were passed some loaded segment addresses,
1058 and that sections' segment numbers are valid.
1059 Simplify offset calculation.
1060 * remote.c (get_offsets): Clarify selection of relocate-by-segment
1061 strategy, and set num_segments correctly. Delete redundant
1062 assignments to do_sections.
1064 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
1066 * frame.c (get_prev_frame_1): Also check for PC in the same register.
1068 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
1070 * breakpoint.c (remove_sal): New.
1071 (expand_line_sal_maybe): New.
1072 (create_breakpoints): Call expand_line_sal_maybe.
1073 (clear_command): Add comment.
1074 (breakpoint_re_set_one): Call expand_line_sal_maybe.
1075 * linespec.c (decode_indirect): Set explicit_pc to 1.
1076 (decode_all_digits): Set explicit_line to 1.
1077 (append_expanded_sal): New.
1078 (expand_line_sal): New.
1079 * linespec.h (expand_line_sal): Declare.
1080 * symtab.c (init_sal): Initialize explicit_pc
1082 * symtab.h (struct symtab_and_line): New fields
1083 explicit_pc and explicit_line.
1085 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
1087 * infcall.c (call_function_by_hand): Handle language-specific
1088 pass and return by reference.
1090 * cp-abi.c (cp_pass_by_reference): New.
1091 * cp-abi.h (cp_pass_by_reference): Declare.
1092 (struct cp_abi_ops): Add pass_by_reference.
1093 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
1094 (init_gnuv3_ops): Set pass_by_reference.
1096 * language.c (language_pass_by_reference): New.
1097 (default_pass_by_reference): New.
1098 (unknown_language_defn, auto_language_defn, local_language_defn): Add
1099 default_pass_by_reference.
1100 * langauge.h (struct language_defn): Add la_pass_by_reference.
1101 (language_pass_by_reference, default_pass_by_reference): Declare.
1102 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
1103 * c-lang.c (c_language_defn, asm_language_defn)
1104 (minimal_language_defn): Likewise.
1105 (cplus_language_defn): Add cp_pass_by_reference.
1106 * f-lang.c (f_language_defn): Add default_pass_by_reference.
1107 * jv-lang.c (java_language_defn): Likewise.
1108 * m2-lang.c (m2_language_defn): Likewise.
1109 * objc-lang.c (objc_language_defn): Likewise.
1110 * p-lang.c (pascal_language_defn): Likewise.
1111 * scm-lang.c (scm_language_defn): Likewise
1113 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
1115 Allow a code breakpoint to have several locations
1117 * breakpoint.h (enum enable_state): Remove the
1118 bp_shlib_disabled enumerator.
1119 (struct bp_location): New members shlib_disabled,
1120 global_next, enabled and function_name.
1121 Rename pending to condition_not_parsed.
1123 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
1124 (ALL_BP_LOCATIONS_SAFE): Likewise.
1125 (breakpoint_enabled): Don't check for pending.
1126 (condition_command): Free and update all locations of
1128 (insert_bp_location): Adjust.
1129 (software_breakpoint_inserted_here_p): Don't care
1130 if breakpoint is enabled, as soon as it's inserted.
1131 (print_it_typical): Print bpstat's location, not
1132 bpstat's breakpoint's location.
1133 (bpstat_stop_status): Iterate over all locations, not
1135 (print_breakpoint_location): New.
1136 (print_one_breakpoint): Renamed to
1137 (print_one_breakpoint_location): ...this. Take
1138 parameters to describe which location is being
1139 printed. Modify code to properly print header
1140 for several locations and individual locations.
1141 (print_one_breakpoint): Print all locations.
1142 (breakpoint_has_pc): New.
1143 (describe_other_breakpoints): Use the above.
1144 (check_duplicates): Renamed to...
1145 (check_duplicates_for): .. this.
1146 (check_duplicates): Use check_duplicates_for.
1147 (allocate_bp_location): Adjust.
1148 (set_raw_breakpoint_without_location): New,
1149 extracted from set_raw_breakpoint.
1150 (set_breakpoint_location_function): New.
1151 (set_raw_breakpoint): Use
1152 set_raw_breakpoint_without_location.
1153 (make_breakpoint_permanent): Mark all locations
1155 (disable_breakpoints_in_shlibs): Iterate over
1157 (disable_breakpoints_in_unloaded_shlib): Likewise.
1158 (re_enable_breakpoints_in_shlibs): Likewise.
1159 (mention): Say "pending" when breakpoint has
1160 zero locations. If breakpoint has more than one
1162 (add_location_to_breakpoint): New.
1163 (create_breakpoint): Accept symtabs_and_lines, not
1164 symtab_and_line. Pass extra sals to
1165 add_location_to_breakpoint.
1166 (create_breakpoints): Pass symtabs_and_lines to
1168 (break_command_1): Make pending breakpoints
1169 have zero locations.
1170 (do_captured_breakpoint): Remove wrong allocation.
1171 (clear_command): Iterate over all locations.
1172 (unlink_locations_from_global_list): Renamed
1173 from unlink_location_from_global_list. Remove
1175 (delete_breakpoint): Remove all locations.
1176 Iterate over all locations when deciding which
1177 other location to re-enable.
1178 (all_locations_are_pending): New.
1179 (update_breakpoint_locations): Renamed from
1180 update_breakpoint_location. Try to match old
1181 and new locations using names of containing
1183 (breakpoint_re_set_one): Adjust.
1184 (find_location_by_number): New.
1185 (disable_command): Allow disabling individual location.
1186 (enable_command): Allow enabling individual location.
1187 * breakpoint.c: Adjust all uses of breakpoint's
1188 enable state to for bp_shlib_disabled change.
1190 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1192 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1193 (resolve_pending_breakpoint): Remove.
1194 (re_enable_breakpoints_in_shlibs): Remove.
1195 (unlink_locations_from_global_list): New.
1196 (update_breakpoint_locations): New.
1197 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1198 Use parse_condition and update_breakpoint_location to
1199 reset breakpoint. Ignore 'symbol not found' error from
1201 (breakpoint_re_set): Don't emit newline before the
1202 reason why breakpoint is not reset.
1203 (do_enable_breakpoint): Don't specially process pending
1205 (free_bp_location): New.
1206 (break_command_1): For pending breakpoints, initialize
1207 all fields of a sal with zeroes.
1208 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1209 * infcmd.c (post_create_inferior): Don't call
1210 re_enable_breakpoints_in_shlibs.
1211 * infrun.c (handle_inferior_event): Likewise.
1212 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1213 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1214 * win32-nat.c (get_win32_debug_event): Likewise.
1216 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1218 * breakpoint.c (create_breakpoint): Split from
1219 create_breakpoints, implementing most of its logic.
1220 Take just a single sal, single address string and
1221 single condition. Do not take parsed condition at
1223 (create_breakpoints): Just call create_breakpoint
1225 (find_condition_and_thread): New.
1226 (break_command_1): Use find_condition_and_thread.
1227 Do not keep parsed conditions.
1228 (do_captured_breakpoint): Don't convert
1229 condition string to struct expression.
1231 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1233 * breakpoint.h (struct breakpoint): Move the cond
1235 (struct bp_location): Here.
1236 * breakpoint.c (condition_command, bpstat_stop_status)
1237 (print_one_breakpoint, allocate_bp_location)
1238 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1239 (create_exec_event_catchpoint, create_breakpoints)
1240 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1241 (create_ada_exception_breakpoint, set_breakpoint_sal)
1242 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1243 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1245 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1247 Associate bp_stat with bp_location, not breakpoint.
1248 * breakpoint.h (breakpoint_at): Change type
1250 * breakpoint.c (bpstat_alloc): Take bp_location,
1252 (bpstat_find_breakpoint): Look at bpstat's location's
1253 owner, not at bpstat->breakpoint_at.
1254 (bpstat_find_step_resume_breakpoint): Likewise.
1255 (bpstat_num): Likewise.
1256 (print_it_typical): Likewise.
1257 (print_bp_stop_message): Likewise.
1258 (watchpoint_check): Likewise.
1259 (bpstat_what): Likewise.
1260 (bpstat_get_triggered_catchpoints): Likewise.
1261 (breakpoint_auto_delete): Likewise.
1262 (delete_breakpoint): Likewise.
1263 (bpstat_stop_status): Pass location, not breakpoint,
1264 to bpstat_alloc. Look at bpstat's location's
1265 owner, not at bpstat->breakpoint_at.
1267 2007-09-21 Jim Blandy <jimb@codesourcery.com>
1269 * macrotab.h (new_macro_table): Document that removing information
1270 from an obstack/bcache-managed macro table leaks memory.
1271 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1272 that data is never freed in obstack/bcache-managed macro tables,
1273 just leak the storage.
1274 (macro_undef): If we're undefining a macro at exactly the same
1275 source location that we defined it, simply remove the definition
1278 2007-09-21 Joel Brobecker <brobecker@adacore.com>
1280 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1281 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1282 Adjust the struct sym_fns object accordingly by setting
1283 the new field to NULL.
1284 * xcoffread.c (aix_process_linenos): Make static.
1285 (xcoff_sym_fns): Set new field to aix_process_linenos.
1286 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1287 by call to new the new sym_fns sym_read_linetable function.
1288 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1289 * config/rs6000/tm-rs6000.h: Delete.
1291 2007-09-21 David Ung <davidu@mips.com>
1292 Maciej W. Rozycki <macro@mips.com>
1294 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1295 rules do not treat composite types specially.
1297 2007-09-20 Maciej W. Rozycki <macro@mips.com>
1299 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1300 (mips16_in_function_epilogue_p): Likewise.
1301 (mips_in_function_epilogue_p): Likewise.
1302 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1304 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1306 * configure.ac: Add check for "etext".
1307 * configure, config.in: Regenerate.
1308 * maint.c (TEXTEND): Only define if either _etext or etext
1310 Disable the profiling functionality if TEXTEND is not defined.
1312 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1314 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1315 address register. Correct the call to frame_id_build.
1316 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1319 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1321 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1322 the linetable past the function end.
1324 2007-09-18 James E. Wilson <wilson@specifix.com>
1326 * MAINTAINERS: Update my email address.
1328 2007-09-18 Jerome Guitton <guitton@adacore.com>
1330 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1331 (inf_ttrace_delete_dying_threads_callback): New function.
1332 (inf_ttrace_resume): After resuming the execution, iterate over
1333 the dying threads to delete them for the thread list.
1334 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1335 mark the corresponding thread as dying instead of removing it
1336 from the thread list.
1337 (inf_ttrace_thread_alive): return 0 for dying threads.
1339 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1341 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1342 that return_frame is not null.
1344 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1346 * solib-svr4.c: Add include of "auxv.h".
1347 (enable_break): Use the AT_BASE auxiliary entry if available.
1348 * Makefile.in (solib-svr4.o): Update dependencies.
1350 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1352 * NEWS: Create a new section for the next release branch.
1353 Rename the section of the current branch, now that it has
1356 2007-09-17 Jerome Guitton <guitton@adacore.com>
1358 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1359 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1361 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1363 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1364 * mi/mi-cmds.h (mi_cmd_list_features): New.
1365 * mi/mi-main.c (mi_cmd_list_features): New.
1367 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1369 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1370 * version.in: Bump version to 6.7.50-20070911-cvs.
1372 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1374 * thread.c (free_thread): Do not delete the step resume breakpoint
1377 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1379 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1380 * corelow.c (core_read_description): New.
1381 (init_core_ops): Set to_read_description.
1382 * gdbarch.sh: Add gdbarch_core_read_description.
1383 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1384 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1385 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1386 (mips_register_g_packet_guesses): Use them.
1387 (_initialize_mips_tdep): Initialize them.
1388 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1389 * gdbarch.h, gdbarch.c: Regenerated.
1391 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1393 * infrun.c (stepping_past_breakpoint): New global variable.
1394 (stepping_past_breakpoint_ptid): Likewise.
1395 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1396 Only switch threads if we need to single-step over a breakpoint hit
1397 in the previously selected thread. If stepping, remember previous
1398 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1399 switch_to_thread instead of copying its contents.
1400 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1401 prepare_to_proceed returns true.
1402 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1403 (context_switch): Call switch_to_thread.
1404 (handle_inferior_event): Switch back to previous thread if requested
1405 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1406 * gdbthread.h (switch_to_thread): Add prototype.
1407 * thread.c (switch_to_thread): Make global.
1409 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1411 * p-valprint.c: Fix 7 ARI reported problems.
1412 (pascal_val_print): Fix one operator at end of line issue.
1413 Use paddress function to remove use of
1414 deprecated_print_address_numeric function (2 times).
1415 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1416 (pascal_value_print): Fix 3 operator at end of line issues.
1418 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1421 * arm-tdep.c (arm_in_call_stub): Delete.
1422 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1424 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1426 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1429 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1430 Jim Blandy <jimb@codesourcery.com>
1432 * NEWS: Update description of string changes. Mention print/s.
1433 * c-valprint.c (textual_element_type): New.
1434 (c_val_print): Use it. Do not skip address printing for pointers
1435 with a string format.
1436 (c_value_print): Doc update.
1437 * dwarf2read.c (read_array_type): Use make_vector_type.
1438 * gdbtypes.c (make_vector_type): New.
1439 (init_vector_type): Use it.
1440 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1441 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1442 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1443 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1444 (make_vector_type): New.
1445 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1446 Call the language print routine for string format.
1447 (print_scalar_formatted): Call val_print for string format. Handle
1448 unsigned original types for char format.
1449 (validate_format): Do not reject string format.
1450 * stabsread.c (read_type): Use make_vector_type.
1451 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1453 2007-09-04 Michael Snyder <msnyder@access-company.com>
1455 * expprint.c (print_subexp_standard): Check strchr for null.
1456 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1458 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1460 * stabsread.c (patch_block_status): Guard against null.
1461 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1463 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1465 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1466 in internal error message.
1468 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1469 Daniel Jacobowitz <dan@codesourcery.com>
1471 * infcmd.c (post_create_inferior): Update comment.
1472 (run_command_1): Always call post_create_inferior with 0 as
1475 * i386-cygwin-tdep.h: New.
1476 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1477 (win32_xfer_shared_library): Make it extern.
1479 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1481 (win32_so_ops): Delete.
1482 (get_relocated_section_addrs): Delete.
1483 (solib_symbols_add): Delete.
1484 (register_loaded_dll): Delete.
1485 (win32_make_so): New.
1486 (handle_load_dll): Use win32_make_so.
1487 (win32_free_so): Free the passed in so.
1488 (win32_relocate_section_addresses): Delete.
1489 (win32_solib_create_inferior_hook): Delete.
1490 (handle_unload_dll): Don't add PE offset here. Free so with
1491 win32_free_so instead of free_so.
1492 (win32_special_symbol_handling): Delete.
1493 (get_win32_debug_event): Remove unneeded calls. Set state to
1494 TARGET_WAITKIND_LOADED on a dll unload.
1495 (do_initial_win32_stuff): Clear cygwin_load_start and
1497 (map_code_section_args): Delete.
1498 (dll_code_sections_add): Delete.
1499 (core_section_load_dll_symbols): Delete.
1500 (win32_xfer_shared_libraries): New.
1501 (win32_current_sos): Delete.
1502 (win32_xfer_partial): New.
1503 (open_symbol_file_object): Delete.
1504 (in_dynsym_resolve_code): Delete.
1505 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1506 of win32_ops. Remove win32_so_ops settings. Don't set
1507 current_target_so_ops here.
1509 * Makefile.in (i386_cygwin_tdep_h): New variable.
1510 (i386-cygwin-tdep.o): Update dependencies.
1511 (win32-nat.o): Update dependencies.
1513 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1514 Daniel Jacobowitz <dan@codesourcery.com>
1516 * gdbarch.sh (core_xfer_shared_libraries): New.
1518 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1520 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1522 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1523 (xml_escape_text): New.
1524 * xml-support.h (xml_escape_text): Declare.
1526 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1527 * config/i386/cygwin.mt (TDEPFILES): ... here.
1529 * win32-nat.c: (fetch_elf_core_registers): Delete.
1530 (win32_elf_core_fn): Delete.
1531 (_initialize_core_win32): Delete.
1533 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1534 "xml-support.h" and "gdbcore.h".
1535 (i386_win32_gregset_reg_offset): New.
1536 (I386_WIN32_SIZEOF_GREGSET): New.
1537 (i386_win32_regset_from_core_section): New.
1538 (win32_xfer_shared_library): New.
1539 (struct cpms_data): New.
1540 (core_process_module_section): New.
1541 (win32_core_xfer_shared_libraries): New.
1542 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1543 gregset_num_regs, sizeof_gregset members of tdep. Register
1544 regset_from_core_section and core_xfer_shared_libraries callbacks.
1546 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1547 * gdbarch.h, gdbarch.c: Regenerate.
1549 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1551 * corelow.c (core_xfer_partial): Pass writebuf to
1552 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1554 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1556 * arm-tdep.h (arm_skip_stub): Declare.
1557 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1559 (arm_pe_skip_trampoline_code): New function.
1560 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1561 gdbarch_skip_trampoline_code callback.
1562 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1564 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1566 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1568 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1570 * configure.ac: Add --with-expat.
1571 * configure: Regenerated.
1573 2007-09-03 Andreas Schwab <schwab@suse.de>
1575 * configure.ac: Accept --with-system-readline.
1576 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1577 * configure: Regenerate.
1578 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1580 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1582 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1583 Daniel Jacobowitz <dan@codesourcery.com>
1585 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1587 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1589 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1591 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1593 * top.c (print_gdb_version): Update for GPL version 3.
1595 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1597 * NEWS: Mention the build-id .debug files verification.
1599 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1601 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1603 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1605 * Makefile.in (symfile.o): Update dependencies.
1606 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1607 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1608 (struct build_id): New structure.
1609 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1610 (find_separate_debug_file): New variable BUILD_ID.
1611 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1613 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1615 * varobj.c (struct varobj): Fix comment
1616 for the type member not to lie when it can be
1619 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1621 Implement -var-info-path-expression.
1623 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1625 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1626 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1627 * varobj.c (struct varobj): New field 'path_expr'.
1628 (c_path_expr_of_child, cplus_path_expr_of_child)
1629 (java_path_expr_of_child): New.
1630 (struct language_specific): New field path_expr_of_child.
1631 (varobj_create): Initialize the path_expr field.
1632 (varobj_get_path_expr): New.
1633 (new_variable): Initialize the path_expr field.
1634 (free_variable): Free the path_expr field.
1635 (adjust_value_for_children_access): New parameter
1637 (c_number_of_children): Adjust.
1638 (c_describe_child): New parameter CFULL_EXPRESSION.
1639 Compute full expression.
1640 (c_value_of_child, c_type_of_child): Adjust.
1641 (cplus_number_of_children): Adjust.
1642 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1643 Compute full expression.
1644 (cplus_name_of_child, cplus_value_of_child)
1645 (cplus_type_of_child): Adjust.
1646 * varobj.h (varobj_get_path_expr): Declare.
1648 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1650 * mi/mi-cmd-var.c (print_varobj): If a varobj
1651 type is NULL, don't try to print it.
1653 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1655 * ppc-linux-nat.c (right_fill_reg): Delete.
1656 (supply_gregset): Use ppc_supply_gregset.
1657 (supply_fpregset): Use ppc_supply_fpregset.
1658 (fill_gregset): Use ppc_collect_gregset.
1659 (fill_fpregset): Use ppc_collect_fpregset.
1660 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1661 (right_supply_register, ppc_linux_supply_gregset): Delete.
1662 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1663 (ppc_linux_supply_fpregset): Delete.
1664 (ppc_linux_collect_gregset): New function.
1665 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1666 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1667 ppc_linux_supply_gregset, and ppc_collect_gregset.
1668 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1669 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1670 (ppc_linux_regset_from_core_section): Update.
1671 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1672 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1673 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1674 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1675 (ppcobsd_collect_gregset): Likewise.
1676 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1677 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1678 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1679 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1680 (rs6000_aix64_reg_offsets): Likewise.
1681 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1682 ppc_floating_point_unit_p.
1683 (rs6000_aix_collect_regset): Similarly.
1684 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1685 when regsize is larger than regcache register size.
1686 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1687 regcache register size.
1688 (ppc_greg_offset): New function, split out from..
1689 (ppc_supply_gregset): ..here. Separate code handling all regs from
1690 single reg case. Correct xer offset.
1691 (ppc_fpreg_offset): New function, split out from..
1692 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1694 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1695 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1696 a fp unit, instead return if no fp.
1698 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1700 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1701 this code has not been compiled for two years.
1703 2007-08-29 Michael Snyder <msnyder@access-company.com>
1705 * event-top.c (gdb_readline2): Return after EOF.
1707 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1709 * symtab.c: Remove a function that has been commented out 3 years ago.
1711 2007-08-29 Randolph Chung <tausq@debian.org>
1713 * hppa-tdep.c (hppa32_cannot_fetch_register)
1714 (hppa64_cannot_fetch_register): New functions.
1715 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1716 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1718 2007-08-28 Michael Snyder <msnyder@access-company.com>
1720 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1721 check for null before calling check_typedef.
1723 * NEWS: Mention Coverity bug fixes.
1725 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1727 * spu-tdep.c (spu_pointer_to_address): New function.
1728 (spu_integer_to_address): Likewise.
1729 (spu_gdbarch_init): Add spu_pointer_to_address and
1730 spu_integer_to_address to gdbarch.
1732 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1734 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1736 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1738 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1739 that contains the GDB license.
1740 * copying.awk: Adjust to the GPLv3 wording.
1741 * copying.c: Regenerate.
1743 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1745 * copying.awk: Protoization, and i18n markup.
1747 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1749 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1750 * copyright.sh: Likewise.
1751 * gdb-events.sh: Likewise.
1752 * gdb_gcore.sh: Likewise.
1753 * gdb_mbuild.sh: Likewise.
1754 * gdbarch.sh: Likewise.
1755 * observer.sh: Likewise.
1756 * features/feature_to_c.sh: Likewise.
1757 * regformats/regdat.sh: Likewise.
1759 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1761 Switch the license of all .c files to GPLv3.
1762 Switch the license of all .h files to GPLv3.
1763 Switch the license of all .cc files to GPLv3.
1765 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1767 * configure.ac: Switch license to GPLv3.
1769 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1771 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1772 determine the file's FPU type.
1774 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1776 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1777 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1778 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1780 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1782 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1784 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1785 (elf_lookup_lib_symbol): Fix formatting.
1787 2007-08-21 Michael Snyder <msnyder@access-company.com>
1789 * dbxread.c (read_dbx_symtab): Guard null deref.
1792 * valops.c (find_overload_match): Guard against NULL.
1794 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1796 * MAINTAINERS (Patch Champions): Remove self.
1798 2007-08-21 Chris Smith <chris.smith@st.com>
1800 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1803 2007-08-18 Michael Snyder <msnyder@access-company.com>
1805 * stabsread.c (dbx_lookup_type): Memory leak.
1807 * event-loop.c (delete_async_signal_handler): Move pointer null
1808 test to before pointer dereference.
1810 * ui-out.c (append_header_to_list): Possible cut and paste error.
1812 * MAINTAINERS: white space tweak.
1814 2007-08-17 Michael Snyder <msnyder@access-company.com>
1816 * stack.c (print_frame): Memory leak.
1818 * completer.c (filename_completer): Avoid memory leak.
1819 Remove unnecessary nested block.
1821 * c-exp.y (parse_number): Memory leak.
1823 * completer.c (location_completer): Must free 'fn_list', except
1824 in the one case where it is returned (as 'list').
1826 * varobj.c (value_of_root): Memory leak.
1828 * gdbtypes.h (virtual_base_list): Remove export decl.
1829 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1830 (virtual_base_index): Memory leak.
1831 (virtual_base_index_skip_primaries): Ditto.
1833 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1835 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1836 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1837 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1838 (xtensa_read_register): New function.
1839 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1840 (xtensa_insn_kind): New types.
1841 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1842 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1843 (xtensa_verify_config, xtensa_pseudo_register_read)
1844 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1845 (xtensa_store_return_value)
1846 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1847 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1848 (xtensa_frame_this_id, xtensa_frame_prev_register)
1849 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1850 (call0_frame_cache, call0_frame_get_reg_at_entry)
1851 (call0_classify_opcode, call0_track_op)
1852 (call0_analyze_prologue, call0_frame_cache): New functions.
1854 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1856 * breakpoint.c (bpstat_free): New.
1857 (bpstat_clear): Use bpstat_free.
1858 (delete_breakpoint): Document why we cannot
1859 remove bpstats from stop_bpstat.
1860 * breakpoint.h (bpstat_free): Declare.
1862 2007-08-16 Michael Snyder <msnyder@access-company.com>
1864 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1866 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1867 Joel Brobecker <brobecker@adacore.com>
1869 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1871 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1872 Joel Brobecker <brobecker@adacore.com>
1874 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1875 checkin guarding against NULL.
1877 2007-08-14 Michael Snyder <msnyder@access-company.com>
1879 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1880 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1881 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1882 go at beginning of new line.
1884 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1885 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1886 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1887 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1888 tui-winsource.h, tui.c, tui.h: Function declarations and
1889 definitions, wrap long lines.
1891 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1892 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1893 Reformat block comments to GNU standard.
1895 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1896 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1897 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1898 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1899 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1900 spaces after periods, etc).
1902 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1903 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1904 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1905 tui-winsource.h: Whitespace changes, fix pointer declarations
1908 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1909 Michael Snyder <msnyder@access-company.com>
1911 * ada-lang.c (field_alignment): Guard against NULL.
1913 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1915 * MAINTAINERS (Global Maintainers): Add self.
1917 2007-08-14 Michael Snyder <msnyder@access-company.com>
1919 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1921 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1923 * varobj.c (cplus_describe_child): Guard against null.
1924 Use "NULL" instead of "0" to initialize pointers.
1926 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1928 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1929 to match any gdbarch with matching OSABI. Set default ABI and FPU
1930 after running the OSABI handler.
1932 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1934 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1935 * config/i386/linux.mt (TDEPFILES): ...to here.
1937 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1939 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1940 the 'silent' parameter and code to implement that.
1941 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1943 * win32-nat.c: Adjust.
1946 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1948 * breakpoint.c (update_breakpoints_after_exec): Don't
1949 set address to zero.
1951 2007-08-13 Michael Snyder <msnyder@access-company.com>
1953 * valops.c: Whitespace clean-up.
1955 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1957 * event-top.c (command_line_handler): Memory leak.
1959 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1960 No need to make copy.
1962 * source.c (find_source_lines): Require symtab 's'.
1964 2007-08-11 Michael Snyder <msnyder@access-company.com>
1966 * completer.c: Spelling fix in comments.
1968 2007-08-10 Michael Snyder <msnyder@access-company.com>
1970 * gdbtypes.c: Coding standard cleanup.
1971 * gdbtypes.c: Comment/whitespace cleanup.
1973 * stabsread.c (read_huge_number): Attempt to compute value before
1974 values that it depends on.
1976 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1977 (decode_objc): Use "NULL" instead of 0.
1978 (find_method): Ditto.
1979 (decode_all_digits): Ditto.
1980 (decode_dollar): Ditto.
1982 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1984 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1986 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1989 * completer.c: Comment/whitespace cleanup.
1991 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1993 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1995 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1997 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1998 allocated file descriptors.
2000 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2002 * Makefile.in: Minor cleanup throughout; add some missing variables,
2003 add some missing rules, remove some rules that are no longer needed,
2004 and fix the dependencies in several rules.
2006 2007-08-10 Ludovic Courtès <ludo@gnu.org>
2008 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
2009 (scm_lang_h, scm_tags_h): New.
2010 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
2011 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
2012 * defs.h (enum language): Add `language_scm'.
2014 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
2017 2007-08-09 Ludovic Courtès <ludo@gnu.org>
2019 * MAINTAINERS (Write After Approval): Add myself.
2021 2007-08-09 Michael Snyder <msnyder@access-company.com>
2023 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
2025 2007-08-09 Joel Brobecker <brobecker@adacore.com>
2027 * solib-som.c (som_relocate_section_addresses): Stop saving
2028 the $CODE$ section in the so_list structure.
2030 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
2032 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
2033 (xtensa_register_group_t): Add entries for coprocessors.
2034 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
2035 (xtensa_add_reggroups): Likewise.
2036 (xtensa_register_reggroup_p): Likewise.
2037 (xtensa_coprocessor_register_group): New function.
2040 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2042 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
2044 2007-08-08 Michael Snyder <msnyder@access-company.com>
2046 * target.c (target_read_string): Guard against null.
2048 * varobj.c (value_of_root): Move alloc after return to avoid leak.
2050 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
2051 (tui_set_layout_for_display_command): Mem leak.
2053 * top.c (command_line_input): Memory leak.
2055 * solib-svr4.c (open_symbol_file_object): Memory leak.
2056 (svr4_current_sos): Ditto.
2057 (enable_break): Ditto.
2059 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
2061 * dwarf2read.c (add_partial_symbol): Memory leak.
2063 2007-08-06 Michael Snyder <msnyder@access-company.com>
2065 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
2067 2007-08-05 Jim Blandy <jimb@codesourcery.com>
2069 * macroexp.c (init_buffer): Remove testing code that overrides the
2070 caller's length guess.
2071 (gather_arguments): Use a larger initial size, now that the vector
2072 growth code has been exercised.
2074 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
2076 * solib-target.c (solib_target_relocate_section_addresses): Add
2077 orig_delta to addr_high.
2079 2007-08-04 Michael Snyder <msnyder@access-company.com>
2081 * remote-fileio.c (remote_fileio_func_write): Memory leak.
2083 * breakpoint.c (print_one_breakpoint): Off by one error.
2085 * tracepoint.c (add_register): Off by one error.
2086 (stringify_collection_list): Free malloc buffer.
2088 2007-08-03 Michael Snyder <msnyder@access-company.com>
2090 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
2091 stop memory leak, straighten out cleanups.
2093 * jv-lang.c (java_link_class_type): Guard against NULL.
2095 2007-08-02 Michael Snyder <msnyder@access-company.com>
2097 * gdbtypes.c (create_set_type): Test should only be done within
2098 the preceeding if block. Otherwise, variable is uninitialized.
2100 * gdbtypes.c (check_typedef): Guard NULL.
2102 2007-08-01 Michael Snyder <msnyder@access-company.com>
2104 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
2105 avoid dereference in lookup_cmd_1.
2107 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
2108 clean up long lines.
2109 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
2110 (tui_alloc_win_info): Ditto.
2111 (tui_add_content_elements): Ditto.
2112 * tui/tui-file.c (tui_file_magic): Ditto.
2114 2007-07-31 Michael Snyder <msnyder@access-company.com>
2116 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
2117 True and false paths are mutually exclusive.
2119 * event-top.c (command_line_handler): Add pedantic return.
2121 * f-valprint.c (info_common_command): Bail out to prevent null
2122 pointer deref. Break up a long line.
2124 * exec.c (xfer_memory): Remove redundant condition from 'if'.
2126 * symfile.c (reread_separate_symbols): Free xmalloced memory.
2128 * printcmd.c (build_address_symbolic): Remove dead code and dead
2131 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
2133 * linespec.c (minsym_found): Advance to the next line if possible.
2135 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
2137 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
2138 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
2139 solib-svr4.o, and add solib-target.o
2141 2007-07-27 Michael Snyder <msnyder@access-company.com>
2143 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2145 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
2147 * MAINTAINERS (Write After Approval): Add myself.
2149 2007-07-26 Maciej W. Rozycki <macro@mips.com>
2151 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
2154 2007-07-25 Maciej W. Rozycki <macro@mips.com>
2156 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2158 2007-07-24 Michael Snyder <msnyder@access-company.com>
2160 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2161 'buffer' must cover both branches that call strcmp (Coverity).
2163 * stack.c (print_frame_args): Check return value of lookup_symbol.
2165 * ax-gdb.c (find_field): Guard against null ptr.
2167 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2169 * regformats/reg-spu.dat: Fix order of npc, id registers.
2171 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2173 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2174 sections should always go to the executable file.
2176 2004-07-20 Chris Dearman <chris@mips.com>
2178 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2179 prologue instructions.
2181 2007-07-20 Maciej W. Rozycki <macro@mips.com>
2183 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2186 2007-07-20 Chris Dearman <chris@mips.com>
2187 Maciej W. Rozycki <macro@mips.com>
2189 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2192 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2193 Daniel Jacobowitz <dan@codesourcery.com>
2195 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2196 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2198 * NEWS: Mention gdbserver DLL support.
2200 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2202 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2204 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2206 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2209 2007-07-13 Kevin Buettner <kevinb@redhat.com>
2211 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2214 2007-07-12 Kevin Buettner <kevinb@redhat.com>
2216 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2217 (mep_analyze_prologue): Add case for BRA instruction.
2219 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2221 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2223 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
2225 * breakpoint.c: Include "top.h".
2226 (breakpoint_1): Don't set convenience variable $_ if server prefix
2228 (_initialize_breakpoint): Describe this behaviour in command help.
2230 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2232 * solib-target.c (library_list_start_segment): Cast address to
2235 2007-07-06 Mark Kettenis <kettenis@gnu.org>
2237 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2238 for terminated processes.
2240 2007-07-05 Michael Snyder <msnyder@access-company.com>
2242 * event-top.c (cli_command_loop): Prompt string can (and should)
2243 be freed after call to readline (Coverity). Also move local var
2244 declarations into block where they are used.
2246 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2247 should) be freed after call to readline (Coverity). Also move
2248 local var declarations into block where they are used.
2250 2007-07-03 Andreas Schwab <schwab@suse.de>
2252 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2255 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2256 Thiago Bauermann <bauerman@br.ibm.com>
2257 Joseph S. Myers <joseph@codesourcery.com>
2258 Daniel Jacobowitz <dan@codesourcery.com>
2260 * remote.c (remote_check_symbols): Use
2261 gdbarch_convert_from_func_ptr_addr.
2262 * infcall.c (find_function_addr): Handle function descriptors
2263 without debugging information.
2264 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2265 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2266 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2267 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2268 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2269 allow SEC_CODE and SEC_DATA.
2270 (enable_break): Update calls. Pass current_target to solib_add.
2271 Use gdbarch_convert_from_func_ptr_addr.
2273 2007-07-03 Ilko Iliev <iliev@ronetix.at>
2274 Daniel Jacobowitz <dan@codesourcery.com>
2276 * symfile.c (print_transfer_performance): Avoid integer overflow.
2279 2007-07-03 Markus Deuling <deuling@de.ibm.com>
2281 * cp-namespace.c (lookup_symbol_file): Add block to
2282 lookup_symbol_global call.
2283 * Makefile.in (solist_h): Add dependency on symtab header.
2284 (symtab.o): Add dependency on solist header.
2285 * solib.c (solib_global_lookup): New function.
2286 * solib-svr4.c (scan_dyntag): Likewise.
2287 (elf_locate_base): Call helper routine scan_dyntag.
2288 (elf_lookup_lib_symbol): New function.
2289 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2290 * solist.h (symtab.h): New include.
2291 (struct target_so_ops): New member lookup_lib_global_symbol.
2292 (solib_global_lookup): New prototype.
2293 * symtab.c: New include solist.h.
2294 (lookup_objfile_from_block): New function.
2295 (lookup_global_symbol_from_objfile): New function.
2296 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2297 (lookup_symbol_global): Call library-specific lookup procedure.
2298 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2300 * NEWS: Document framework.
2302 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2304 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2307 * cli/cli-script.c (build_command_line): Update NULL check.
2309 2007-07-02 Michael Snyder <msnyder@access-company.com>
2311 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2313 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2315 * Makefile.in (XMLFILES): Add library-list.dtd.
2316 (ALLDEPFILES): Add solib-target.o.
2317 (solib-target.o): New rule.
2318 * remote.c (PACKET_qXfer_libraries): New constant.
2319 (remote_protocol_features): Add qXfer:libraries:read.
2320 (remote_wait): Recognize library stop replies.
2321 (remote_async_wait): Likewise. Fix typo.
2322 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2323 (init_remote_async_ops): Fix typo.
2324 (_initialize_remote): Register "set remote library-info-packet".
2325 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2326 * solib-target.c: New file.
2327 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2329 (info_sharedlibrary_command): Likewise.
2330 (solib_add_library, solib_remove_library): New.
2331 * solist.h (struct so_list): Replace textsection with addr_low and
2333 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2334 * NEWS: Describe new qXfer:libraries:read and shared library
2336 * features/library-list.dtd: New.
2338 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2340 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2341 (start_remote): Use STOP_QUIETLY_REMOTE.
2342 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2343 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2344 Update to match shared library event breakpoint support. Only
2345 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2346 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2347 * fork-child.c (startup_inferior): Do not set
2348 inferior_ignoring_startup_exec_events
2349 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2351 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2353 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2355 * breakpoint.c (insert_bp_location): Remove dead code
2356 (DISABLE_UNSETTABLE_BREAK).
2357 (disable_breakpoints_in_shlibs)
2358 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2360 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2362 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2363 Call insert_bp_location.
2365 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2367 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2370 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2372 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2375 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2377 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2378 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2379 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2380 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2381 to display_gdb_prompt.
2383 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2386 * target.c (memory_xfer_partial): Do not continue past targets with
2389 2007-06-30 Andreas Schwab <schwab@suse.de>
2391 * m68k-tdep.c (m68k_ps_type): New.
2392 (m68k_init_types): New.
2393 (m68k_register_type): Use m68k_ps_type for PS register.
2394 (_initialize_m68k_tdep): Call m68k_init_types.
2396 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2397 from the generic m68k arch.
2399 2007-06-28 Michael Snyder <msnyder@access-company.com>
2401 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2404 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2405 gdb_assert before using return value of find_thread_pid (Coverity).
2407 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2409 * cli/cli-script.c (build_command_line): Add null pointer guard
2412 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2414 * linux-thread-db.c (thread_db_attach): Delete.
2415 (thread_db_detach): Typo fix. Call target_mourn_inferior
2416 instead of fixing up proc_handle.
2417 (have_threads_callback, have_threads): New functions.
2418 (thread_db_wait): Remove dead proc_handle.pid check. Only
2419 translate PTIDs if we have registered threads. Check for new
2420 threads if we have none.
2421 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2422 (find_new_threads_callback): Only enable event reporting if TID == 0.
2423 (same_ptid_callback): New.
2424 (thread_db_get_thread_local_address): Check for new threads.
2425 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2426 or to_post_startup_inferior.
2428 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2430 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2431 is always active if SOFTWARE_SINGLE_STEP_P is true.
2432 (resume): Use gdbarch_software_single_step[_p] instead of
2433 SOFTWARE_SINGLE_STEP[_P].
2434 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2436 * gdbarch.sh (software_single_step): Remove target macro.
2437 * gdbarch.h, gdbarch.c: Regenerate.
2439 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2441 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2442 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2443 (struct gdbarch_swap, struct gdbarch_swap_registration,
2444 struct gdbarch_swap_registry, gdbarch_swap_registry,
2445 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2446 current_gdbarch_swap_in_hack): Remove.
2447 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2448 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2449 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2450 (deprecated_current_gdbarch_select_hack): Likewise.
2451 * gdbarch.h, gdbarch.c: Regenerate.
2453 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2455 * infrun.c (clear_proceed_status): Clean up stop_registers.
2456 (normal_stop): Allocate regcache for stop_registers.
2457 (struct inferior_status): Remove stop_registers member.
2458 (save_inferior_status): Do not save stop_registers.
2459 (restore_inferior_status): Do not restore stop_registers.
2460 (discard_inferior_status): Do not discard stop_registers.
2461 (build_infrun): Remove.
2462 (_initialize_infrun): Do not swap stop_registers.
2464 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2466 * remote.c (remote_address_masked): If remote_address_size is zero,
2467 default to target address size.
2468 (build_remote_gdbarch_data): Remove.
2469 (_initialize_remote): Do not swap remote_address_size.
2471 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2473 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2474 builtin_type_char, builtin_type_short, builtin_type_int,
2475 builtin_type_long, builtin_type_signed_char,
2476 builtin_type_unsigned_char, builtin_type_unsigned_short,
2477 builtin_type_unsigned_int, builtin_type_unsigned_long,
2478 builtin_type_float, builtin_type_double, builtin_type_long_double,
2479 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2480 builtin_type_bool, builtin_type_long_long,
2481 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2482 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2483 variable declaration with compatibility macro.
2484 * gdbtypes.c (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): Remove.
2494 (build_gdbtypes): Remove.
2495 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2496 opaque-type-resolution command here. Do not call
2497 deprecated_register_gdbarch_swap.
2499 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2501 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2502 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2503 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2505 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2506 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2507 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2508 (build_parse): Remove.
2509 (_initialize_parse): Do not call build_parse. Do not register
2510 msym_ types for gdbarch-swapping.
2512 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2513 instead of creating private type.
2515 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2516 (_initialize_xcoffread): Do not initialized them.
2517 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2519 * mdebugread.c (nodebug_func_symbol_type): Remove.
2520 (nodebug_var_symbol_type): Remove.
2521 (_initialize_mdebugread): Do not initialize them.
2522 (parse_symbol): Use builtin nodebug_ type instead of them.
2523 (parse_procedure): Likewise.
2525 2007-06-21 Chris Dearman <chris@mips.com>
2527 * printcmd.c (do_one_display): If display/i, start with an initial
2528 line feed to avoid bad layout if there is a branch delay slot.
2530 2007-06-21 Nigel Stephens <nigel@mips.com>
2531 Maciej W. Rozycki <macro@mips.com>
2533 * disasm.c (gdb_print_insn): Return the number of branch delay
2534 slot instructions too.
2535 * disasm.h (gdb_print_insn): Update prototype.
2536 * printcmd.c (branch_delay_insns): New variable to record the
2537 number of delay slot instructions after disassembling a branch.
2538 (print_formatted): Record the number of branch delay slot
2540 (do_examine): When disassembling, if the last instruction
2541 disassembled has any branch delay slots, then bump the count so
2542 that they get disassembled too.
2543 * tui/tui-disasm.c (tui_disassemble): Update the call to
2545 * NEWS: Document the new behaviour.
2547 2007-06-21 Andreas Schwab <schwab@suse.de>
2549 * regcache.c (write_pc_pid): Restore missing else.
2551 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2553 * regcache.c (regcache_print): Use get_current_regcache ()
2554 instead of current_regcache.
2556 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2559 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2560 instead of bfd_make_section_anyway.
2561 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2562 when clearing SEC_LOAD.
2564 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2566 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2567 registers for big-endian.
2569 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2571 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2572 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2573 * gdbarch.c, gdbarch.h: Regenerate.
2575 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2577 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2578 gdbarch_believe_pcc_promotion.
2579 * stabsread.c (define_symbol): Likewise.
2580 Remove unnecessary definition.
2581 * coffread.c (process_coff_symbol): Remove unnecessary code.
2582 * gdbarch.c, gdbarch.h: Regenerate.
2584 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2586 * configure.ac: Do not use ${objdir}.
2587 * configure: Regenerated.
2589 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2591 * gdbarch.sh (deprecated_register_size): Remove.
2592 * gdbarch.h, gdbarch.c: Regenerate.
2594 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2595 by INT_REGISTER_SIZE.
2596 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2597 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2598 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2599 set_gdbarch_deprecated_register_size.
2601 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2603 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2604 gdbarch_deprecated_fp_regnum.
2605 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2606 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2607 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2608 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2610 * gdbarch.c, gdbarch.h: Regenerate.
2612 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2614 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2615 gdbarch_extract_return_value.
2616 * value.c (generic_use_struct_convention): Likewise (comment).
2617 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2618 * arch-utils.c (legacy_return_value): Likewise.
2619 * arch-utils.h (legacy_return_value): Likewise (comment).
2620 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2621 gdbarch_store_return_value.
2622 * stack.c (return_command): Likewise (comment).
2623 * arch-utils.h (legacy_return_value): Likewise (comment).
2624 * arch-utils.c (legacy_return_value): Likewise.
2625 * gdbarch.c, gdbarch.h: Regenerate.
2627 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2629 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2630 gdbarch_deprecated_use_struct_convention.
2631 * arch-utils.c (legacy_return_value): Likewise.
2632 * gdbarch.c, gdbarch.h: Regenerate.
2634 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2636 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2637 gdbarch_deprecated_function_start_offset.
2638 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2639 * linespec.c (minsym_found): Likewise.
2640 * infrun.c (handle_inferior_event): Likewise.
2641 * infcall.c (find_function_addr): Likewise.
2642 * cli/cli-cmds.c (disassemble_command): Likewise.
2643 * gdbarch.c, gdbarch.h: Regenerate.
2645 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2647 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2648 gdbarch_deprecated_reg_struct_has_addr.
2649 * infcall.c (call_function_by_hand): Likewise.
2650 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2651 * gdbarch_deprecated_reg_struct_has_addr_p.
2652 * infcall.c (call_function_by_hand): Likewise.
2653 * gdbarch.c, gdbarch.h: Regenerate.
2655 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2657 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2658 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2659 (sh_gdbarch_init): Remove
2660 set_gdbarch_deprecated_extract_struct_value_address.
2661 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2662 (sh64_gdbarch_init): Remove
2663 set_gdbarch_deprecated_extract_struct_value_address.
2664 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2665 (ia64_gdbarch_init): Remove
2666 set_gdbarch_deprecated_extract_struct_value_address.
2667 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2668 (frv_gdbarch_init): Remove
2669 set_gdbarch_deprecated_extract_struct_value_address.
2670 * gdbarch.c, gdbarch.h: Regenerate.
2672 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2674 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2675 * v850-tdep.c (v850_unwind_sp): Likewise.
2676 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2677 * stack.c (frame_info): Likewise.
2678 * stabsread.c (define_symbol): Likewise.
2679 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2680 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2681 (sh_unwind_sp): Likewise.
2682 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2683 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2684 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2685 (rs6000_frame_cache): Likewise.
2686 * rs6000-nat.c (store_register): Likewise.
2687 * remote-mips.c (mips_wait): Likewise.
2688 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2689 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2690 (ppc64_sysv_abi_push_dummy_call): Likewise.
2691 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2692 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2693 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2694 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2695 * m32r-rom.c (m32r_supply_register): Likewise.
2696 * frame.c (frame_sp_unwind): Likewise.
2697 * mips-tdep.c (mips_insn16_frame_cache)
2698 (mips_insn32_frame_cache): Likewise (comment).
2699 * m68klinux-nat.c (supply_gregset): Likewise.
2700 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2701 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2702 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2703 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2704 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2705 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2706 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2707 (cris_register_type, crisv32_register_type)
2708 (cris_dwarf2_frame_init_reg): Likewise.
2709 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2710 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2711 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2712 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2714 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2715 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2716 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2717 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2718 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2719 * v850-tdep.c (v850_unwind_pc): Likewise.
2720 * stack.c (frame_info): Likewise.
2721 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2722 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2723 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2724 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2725 (sh_dsp_show_regs): Likewise.
2726 * shnbsd-tdep.c (shnbsd_supply_gregset)
2727 (shnbsd_collect_gregset): Likewise.
2728 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2729 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2730 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2731 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2732 (6000_register_reggroup_p, rs6000_unwind_pc)
2733 (rs6000_frame_cache): Likewise.
2734 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2735 (rs6000_store_inferior_registers): Likewise.
2736 * remote-mips.c (mips_wait, mips_load): Likewise.
2737 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2738 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2739 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2740 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2741 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2742 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2743 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2744 (store_ppc_registers, fill_gregset): Likewise.
2745 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2746 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2747 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2748 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2749 * m68klinux-nat.c (supply_gregset): Likewise.
2750 * irix5-nat.c (fill_gregset): Likewise.
2751 * i386-tdep.c (i386_unwind_pc): Likewise.
2752 * i386-linux-nat.c (i386_linux_resume): Likewise.
2753 * frame.c (get_prev_frame_1): Likewise.
2754 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2755 * dbug-rom.c (dbug_supply_register): Likewise.
2756 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2757 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2758 (cris_register_type, crisv32_register_type, crisv32_register_name)
2759 (cris_dwarf2_frame_init_reg, find_step_target)
2760 (cris_software_single_step, cris_supply_gregset)
2761 (cris_regnums): Likewise.
2762 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2763 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2764 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2765 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2766 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2768 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2769 * dbug-rom.c (dbug_supply_register): Likewise.
2770 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2771 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2772 * win32-nat.c (win32_resume): Likewise.
2773 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2774 * m68k-tdep.c (m68k_register_type): Likewise.
2775 * m68klinux-nat.c (supply_gregset): Likewise.
2777 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2778 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2779 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2780 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2781 (fv_reg_base_num, dr_reg_base_num): Likewise.
2782 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2783 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2784 (sh64_extract_return_value, sh64_store_return_value)
2785 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2786 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2787 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2788 (invalidate_cache): Likewise.
2789 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2790 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2791 (mipsnbsd_fill_fpreg): Likewise.
2792 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2793 (mipsnbsd_store_inferior_registers): Likewise.
2794 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2795 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2796 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2797 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2798 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2799 (fill_fpregset): Likewise.
2800 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2801 * i386-tdep.h (struct_return): Likewise (comment).
2802 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2803 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2804 (go32_store_registers): Likewise.
2805 * alpha-tdep.c (alpha_next_pc): Likewise.
2806 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2807 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2808 (alphabsd_store_inferior_registers): Likewise.
2809 * core-regset.c (fetch_core_registers): Likewise.
2810 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2812 * gdbarch.c, gdbarch.h: Regenerate.
2814 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2816 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2817 * dbxread.c (start_psymtab): Check HAVE_ELF.
2818 (aout_sym_fns): Likewise.
2819 * elfread.c (elf_symfile_segments): New.
2820 (elf_sym_fns): Add elf_symfile_segments.
2821 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2822 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2823 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2824 * somread.c (som_sym_fns): Use default_symfile_segments.
2825 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2826 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2827 (default_symfile_segments): New function.
2828 (syms_from_objfile): Update call to find_sym_fns.
2829 (symfile_get_segment_data, free_symfile_segment_data): New.
2830 (symfile_map_offsets_to_segments): New.
2831 (symfile_find_segment_sections): New.
2832 * symfile.h (struct symfile_segment_data): New.
2833 (struct sym_fns): Add sym_segments.
2834 (default_symfile_segments, symfile_get_segment_data)
2835 (free_symfile_segment_data): New prototypes.
2836 (symfile_map_offsets_to_segments): Likewise.
2837 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2838 * Makefile.in (COMMON_OBS): Remove elfread.o.
2839 (elf_internal_h): New.
2840 (elfread.o): Update.
2841 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2843 * config.in, configure: Regenerated.
2844 * NEWS: Mention qOffsets changes.
2846 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2848 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2849 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2850 Replace global variable declaration with compatibility macro.
2851 (struct builtin_m2_type): New data type.
2852 (builtin_m2_type): Add prototype.
2853 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2854 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2855 Remove global variables.
2856 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2857 (build_m2_types): New function.
2858 (m2_type_data): New variable.
2859 (builtin_m2_type): New function.
2860 (_initialize_m2_language): Do not build data types. Register
2861 m2_type_data per-gdbarch data.
2863 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2865 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2866 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2867 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2868 builtin_type_f_real_s8, builtin_type_f_real_s16,
2869 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2870 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2871 variable declaration with compatibility macro.
2872 (struct builtin_f_type): New data type.
2873 (builtin_f_type): Add prototype.
2874 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2875 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2876 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2877 builtin_type_f_real_s8, builtin_type_f_real_s16,
2878 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2879 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2880 (f_language_arch_info): Use builtin_f_type instead of variables.
2881 (build_fortran_types): Build builtin_f_type structure instead of
2882 setting global type variables.
2883 (f_type_data): New variable.
2884 (builtin_f_type): New function.
2885 (_initialize_f_language): Do not call build_fortran_types. Do not
2886 swap global type variables. Register f_type_data per-gdbarch data.
2888 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2890 * f-lang.c (_initialize_f_language): Do not initialize or
2891 swap builtin_type_string.
2893 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2895 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2896 value_of_builtin_frame_reg): Remove.
2897 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2898 inactive call to value_of_builtin_frame_reg.
2900 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2902 * gdbarch.sh (bfd_vma_bit): Remove.
2903 * gdbarch.c, gdbarch.h: Regenerate.
2905 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2906 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2907 (build_gdbtypes): Do not initialize it.
2908 (_initialize_gdbtypes): Do not swap it.
2910 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2912 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2913 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2914 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2915 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2916 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2917 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2918 builtin_type_vec64, builtin_type_vec128): Remove.
2919 (init_simd_type): Remove.
2920 (init_vector_type): Make global.
2921 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2922 (build_gdbtypes): Do not build vector types.
2923 (_initialize_gdbtypes): Do not swap vector types.
2924 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2925 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2926 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2927 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2928 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2929 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2930 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2931 (init_vector_type): Add prototype.
2933 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2934 i386_sse_type members.
2935 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2936 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2937 (i386_init_types): Do not build vector types.
2938 (i386_mmx_type, i386_sse_type): New functions.
2939 (i386_register_type): Call them instead of using global variables.
2940 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2941 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2942 of using global variable.
2944 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2945 and ppc_builtin_type_vec128 members.
2946 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2947 (rs6000_builtin_type_vec128): Likewise.
2948 (rs6000_register_type): Call them instead of using builtin_type_vec64
2949 and builtin_type_vec128.
2950 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2952 * spu-tdep.c (struct gdbarch_tdep): New data type.
2953 (spu_builtin_type_vec128): Remove variable.
2954 (spu_builtin_type_vec128): New function.
2955 (spu_register_type): Call it instead of using global variable.
2956 (spu_gdbarch_init): Allocate tdep structure.
2957 (spu_init_vector_type): Remove function.
2958 (_initialize_spu_tdep): Do not call it.
2960 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2962 * amd64-tdep.c (struct amd64_register_info): Remove.
2963 (amd64_register_info): Remove.
2964 (amd64_register_names): New static variable.
2965 (AMD64_NUM_REGS): Use amd64_register_names instead of
2966 amd64_register_info.
2967 (amd64_register_name): Likewise.
2968 (amd64_register_type): Do not refer to amd64_register_info.
2970 * s390-tdep.c (struct s390_register_info): Remove.
2971 (s390_register_info): Remove.
2972 (s390_register_name): Do not refer to s390_register_info.
2973 (s390_register_type): Likewise.
2975 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2976 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2977 (sparc64_register_names, sparc64_pseudo_register_names): New.
2978 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2979 sparc64_register_names and sparc64_pseudo_register_names instead of
2980 sparc64_register_info and sparc64_pseudo_register_info.
2981 (sparc64_register_name): Likewise.
2982 (sparc64_register_type): Do not refer to sparc64_register_info
2983 and sparc64_pseudo_register_info.
2985 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2987 * c-lang.c (cplus_builtin_types): Remove.
2988 (enum cplus_primitive_types): New data type.
2989 (cplus_language_arch_info): New function.
2990 (cplus_language_defn): Set la_language_arch_info member. Do not set
2991 la_builtin_type_vector and string_char_type members.
2993 * f-lang.c (f_builtin_types): Remove.
2994 (enum f_primitive_types): New data type.
2995 (f_language_arch_info): New function.
2996 (f_language_de): Set la_language_arch_info member. Do not set
2997 la_builtin_type_vector and string_char_type members.
2999 * m2-lang.c (m2_builtin_types): Remove.
3000 (enum m2_primitive_types): New data type.
3001 (m2_language_arch_info): New function.
3002 (m2_language_defn): Set la_language_arch_info member. Do not set
3003 la_builtin_type_vector and string_char_type members.
3005 * objc-lang.c (objc_builtin_types): Remove.
3006 (objc_language): Set la_language_arch_info member. Do not set
3007 la_builtin_type_vector and string_char_type members.
3009 * p-lang.c (pascal_builtin_types): Remove.
3010 (enum pascal_primitive_types): New data type.
3011 (pascal_language_arch_info): New function.
3012 (pascal_language_defn): Set la_language_arch_info member. Do not set
3013 la_builtin_type_vector and string_char_type members.
3015 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3017 * regcache.c (struct regcache): Add ptid_t member.
3018 (regcache_xmalloc): Initialize it.
3019 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
3020 (regcache_dup): Likewise.
3021 (regcache_dup_no_passthrough): Likewise.
3022 (current_regcache): Make static.
3023 (registers_ptid): Remove variable.
3024 (get_thread_regcache): New function.
3025 (get_current_regcache): New function.
3026 (registers_changed): Implement by freeing current regcache.
3027 (regcache_raw_read): Do not refer to current_regcache. Set
3028 inferior_ptid to regcache->ptid while calling target routines.
3029 (regcache_raw_write): Likewise.
3030 (regcache_raw_supply): Do not refer to current_regcache.
3031 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
3032 (write_pc_pid): Likewise.
3033 (build_regcache): Remove.
3034 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
3035 or deprecated_register_gdbarch_swap. Do not initialize
3037 * regcache.h (get_current_regcache): Add prototype.
3038 (get_thread_regcache): Likewise.
3039 (current_regcache): Remove declaration.
3041 * corelow.c (core_open): Replace current_regcache by
3042 get_current_regcache ().
3043 * frame.c (frame_pop): Likewise.
3044 (put_frame_register): Likewise.
3045 (get_current_frame, create_new_frame): Likewise.
3046 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
3047 * stack.c (return_command): Likewise.
3048 * infcall.c (call_function_by_hand): Likewise.
3049 * infrun.c (resume): Likewise.
3050 (save_inferior_status, restore_inferior_status): Likewise.
3051 * linux-fork.c (fork_load_infrun_state): Likewise.
3052 (fork_save_infrun_state): Likewise.
3053 * win32-nat.c (win32_resume): Likewise.
3054 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
3055 * monitor.c (monitor_wait): Likewise.
3056 * remote.c (remote_wait): Likewise.
3057 * remote-mips.c (mips_wait): Likewise.
3059 * bsd-kvm.c (bsd_kvm_open): Likewise
3060 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
3061 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
3062 * i386-linux-nat.c (i386_linux_resume): Likewise.
3063 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3064 (ia64_linux_stopped_data_address): Likewise.
3066 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
3067 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3068 * mep-tdep.c (current_me_module, current_options): Likewise.
3069 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
3071 * linux-nat.c (linux_nat_do_thread_registers): Use thread
3072 regcache instead of current_regcache. Call target_fetch_registers.
3073 (linux_nat_corefile_thread_callback): Update call site.
3074 (linux_nat_do_registers): Likewise.
3075 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
3076 of current_regcache.
3077 (procfs_make_note_section): Likewise.
3078 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
3079 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3080 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
3081 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3083 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3085 * regcache.c (read_register, read_register_pid): Remove.
3086 (write_register, write_register_pid): Likewise.
3087 * regcache.h (read_register, read_register_pid): Remove prototype.
3088 (write_register, write_register_pid): Likewise.
3090 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3092 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
3093 (write_pc): Likewise. Remove default implementation, add predicate.
3094 * gdbarch.c, gdbarch.h: Regenerate.
3095 * regcache.c (read_pc_pid): Use current regcache instead of calling
3097 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
3099 (generic_target_write_pc): Remove.
3100 * inferior.h (generic_target_write_pc): Remove.
3101 * frv-tdep.c (frv_gdbarch_init): Do not install it.
3102 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3103 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3104 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3105 * sh-tdep.c (sh_gdbarch_init): Likewise.
3106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3108 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
3109 argument. Use REGCACHE instead of calling read_register_pid.
3110 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
3111 * hppa-tdep.c (hppa_read_pc): Likewise.
3112 * hppa-tdep.h (hppa_read_pc): Likewise.
3113 * ia64-tdep.c (ia64_read_pc): Likewise.
3114 * m32r-tdep.c (m32r_read_pc): Likewise.
3115 * mep-tdep.c (mep_read_pc): Likewise.
3116 * mn10300-tdep.c (mn10300_read_pc): Likewise.
3117 * spu-tdep.c (spu_read_pc): Likewise.
3119 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
3120 argument. Use REGCACHE instead of calling write_register_pid.
3121 * avr-tdep.c (avr_write_pc): Likewise.
3122 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
3123 * hppa-tdep.c (hppa_write_pc): Likewise.
3124 * hppa-tdep.h (hppa_write_pc): Likewise.
3125 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
3126 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
3127 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
3128 * ia64-tdep.c (ia64_write_pc): Likewise.
3129 * ia64-tdep.h (ia64_write_pc): Likewise.
3130 * m32r-tdep.c (m32r_write_pc): Likewise.
3131 * m88k-tdep.c (m88k_write_pc): Likewise.
3132 * mep-tdep.c (mep_write_pc): Likewise.
3133 * mips-tdep.c (mips_write_pc): Likewise.
3134 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3135 * mn10300-tdep.c (mn10300_write_pc): Likewise.
3136 * sparc-tdep.c (sparc_write_pc): Likewise.
3137 * spu-tdep.c (spu_write_pc): Likewise.
3139 * mips-tdep.c (read_signed_register): Remove.
3140 (read_signed_register_pid): Likewise.
3141 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
3142 Use REGCACHE instead of calling read_signed_register_pid.
3144 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3146 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
3147 * gdbarch.c, gdbarch.h: Regenerate.
3148 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
3149 (push_dummy_code): Likewise. Pass it to callee.
3150 (call_function_by_hand): Pass current regcache to push_dummy_code.
3152 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
3153 argument. Use it instead of current_regcache.
3155 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
3156 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
3158 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3160 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3161 * gdbarch.c, gdbarch.h: Regenerate.
3162 * infrun.c (handle_inferior_event): Pass current frame to
3163 gdbarch_get_longjmp_target.
3165 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3166 Read registers from FRAME instead of using read_register.
3167 Use get_frame_arch instead of current_gdbarch.
3168 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3169 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3170 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3171 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3172 (mips64_linux_get_longjmp_target): Likewise.
3173 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3175 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3177 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3178 * gdbarch.c, gdbarch.h: Regenerate.
3179 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3180 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3181 * infrun.c (handle_inferior_event): Pass current frame to
3182 gdbarch_skip_trampoline_code and skip_language_trampoline.
3184 * language.c (unk_lang_trampoline): Add FRAME argument.
3185 (skip_language_trampoline): Add FRAME argument. Pass it to
3186 skip_trampoline callback.
3187 * language.h: Add forward declaration of struct frame_info.
3188 (struct language_defn): Add FRAME argument to skip_trampoline.
3189 (skip_language_trampoline): Add FRAME argument.
3190 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3191 to skip_trampoline callback.
3192 * cp-abi.h: Add forward declaration of struct frame_info.
3193 (cplus_skip_trampoline): Add FRAME argument.
3194 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3195 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3196 to gdbarch_skip_trampoline_code.
3197 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3198 to gdbarch_skip_trampoline_code.
3200 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3201 * symtab.h (find_solib_trampoline_target): Likewise.
3202 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3203 find_solib_trampoline_target.
3205 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3206 from FRAME instead of calling read_register.
3208 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3209 argument. Read registers from FRAME instead of using read_register.
3210 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3211 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3213 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3216 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3218 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3219 registers from FRAME instead of using read_signed_register.
3221 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3223 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3224 instead of using read_register.
3225 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3226 ppc64_standard_linkage_target.
3227 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3228 Pass it to find_solib_trampoline_target. Read registers from FRAME
3229 instead of using read_register.
3231 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3234 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3236 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3238 * gdbarch.c, gdbarch.h: Regenerate.
3239 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3241 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3242 registers from FRAME instead of using read_register.
3243 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3244 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3245 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3248 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3249 from FRAME instead of using read_register.
3250 (thumb_get_next_pc): Likewise.
3251 (arm_get_next_pc): Likewise.
3252 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3253 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3254 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3257 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3258 from FRAME instead of using read_register.
3259 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3260 to find_step_target.
3262 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3263 from FRAME instead of using read_register / read_signed_register.
3264 (extended_mips16_next_pc): Likewise.
3265 (mips16_next_pc): Likewise.
3266 (mips_next_pc): Likewise.
3267 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3268 to mips_next_pc. Use get_frame_pc instead of read_pc.
3269 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3272 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3273 of current frame. Read registers from FRAME.
3274 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3275 branch_dest. Use get_frame_pc instead of read_pc.
3276 (rs6000_software_single_step): Likewise.
3277 (bl_to_blrl_insn_p): Do not call branch_dest.
3278 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3281 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3282 Read registers from FRAME instead of current regcache.
3283 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3284 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3285 * sparc-tdep.c (sparc_address_from_register): Remove.
3286 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3287 GDBARCH. Pass FRAME to step_trap callback.
3288 (sparc_step_trap): Add FRAME argument.
3289 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3290 to sparc_analyze_control_transfer. Read registers from FRAME instead
3291 of calling sparc_address_from_register.
3292 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3294 (sparc_address_from_register): Remove prototype.
3295 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3296 (sparcnbsd_step_trap): Add FRAME argument.
3298 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3299 by FRAME. Read registers from FRAME instead of REGCACHE.
3301 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3303 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3304 instead of calling read_register.
3306 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3307 calling write_register.
3309 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3310 calling write_register.
3312 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3313 instead of calling read_register.
3314 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3315 instead of calling read_register and write_register.
3317 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3318 instead of current_regcache.
3320 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3321 of calling write_register.
3322 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3323 parameter instead of current_regcache.
3325 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3326 instead of calling read_register.
3327 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3328 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3329 (mips_n32n64_push_dummy_call): Likewise.
3330 (mips_o32_push_dummy_call): Likewise.
3331 (mips_o64_push_dummy_call): Likewise.
3333 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3334 parameter instead of current_regcache.
3336 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3337 Use it instead of read_register and write_register.
3338 (xtensa_register_read_masked): Likewise.
3339 (xtensa_pseudo_register_read): Update call.
3340 (xtensa_pseudo_register_write): Likewise.
3341 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3342 instead of calling read_register.
3343 (xtensa_push_dummy_call): Update comment.
3345 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3347 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3348 by frame_unwind_register_signed calls.
3349 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3350 frame allocations when called with NULL NEXT_FRAME parameter.
3351 (read_next_frame_reg): Remove.
3353 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3354 instead of reading the FPSCR register.
3355 (sh_frame_cache): Pass unwound FPSCR register value to
3356 sh_analyze_prologue.
3357 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3359 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3360 instead of reading the CTBP register.
3361 (v850_frame_cache): Pass unwound CTBP register value to
3362 v850_analyze_prologue.
3364 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3366 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3367 * sh-tdep.c (sh_show_regs): Likewise.
3368 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3369 (sh_generic_show_regs): Add FRAME parameter. Use register
3370 values from that frame instead of calling read_register.
3371 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3372 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3373 sh_dsp_show_regs): Likewise.
3374 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3375 sh64_show_regs): Likewise.
3377 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3379 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3380 current regcache instead of calling read_register.
3382 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3384 * mep-tdep.c (current_me_module): Read from current regcache
3385 instead of calling read_register.
3386 (current_options): Likewise.
3388 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3390 * cris-tdep.c (cris_stopped_data_address): Read register values
3391 from current frame instead of calling read_register.
3392 * frv-tdep.c (frv_stopped_data_address): Likewise.
3394 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3396 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3397 instead of write_register (PC_REGNUM, ...).
3399 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3401 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3402 explaining why the PC adjustment code is necessary.
3404 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3406 * m68k-tdep.h (enum m68k_flavour): New.
3407 (struct gdbarch_tdep): New fields
3408 float_return, flavour and fpregs_present.
3409 * m68k-tdep.c (m68k_register_type): Use
3410 fpregs_present and conditionalize floating
3411 registers type on flavour.
3412 (m68k_register_names): New.
3413 (m68k_register_name): Use the above.
3414 (m68k_convert_register_p): Consult fpregs_present.
3415 (m68k_register_to_value, m68k_value_to_register):
3416 Use register_type to obtain the type of floating
3418 (m68k_svr4_extract_return_value): Check tdep->float_return.
3419 Use register_type to get the type of floating
3421 (m68k_svr4_store_return_value): Likewise.
3422 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3423 (m68k_analyze_register_saves): Likewise.
3424 (m68k_gdbarch_init): Extract infromation
3425 from XML description, if present. Guess coldfire by
3426 looking at the file, if present. Conditionalize
3427 setting of long double format. Set decr_pc_after_break
3428 to 2 on coldfire and fido. Enable XML-driven
3429 register description.
3430 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3431 size of tdep->fpreg_type, as opposed to hardcoded value.
3432 * Makefile.in (m68k-tdep.o): Update dependencies.
3434 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3436 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3437 qXfer:spu:write remote packet types.
3439 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3441 * xml-tdesc.c (tdesc_start_target): New.
3442 (target_attributes): New.
3443 (tdesc_elements): Use it.
3444 * features/gdb-target.dtd: Add #FIXED version attribute for
3447 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3449 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3451 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3453 * fork-child.c (fork_inferior): Update comment.
3455 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3457 * features/Makefile: Generate regformats for mips-linux and
3459 * features/sort-regs.xsl: Correct typo.
3460 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3461 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3464 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3466 * config/mips/linux.mh (TDEP_XML): New.
3467 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3468 * mips-linux-nat.c (mips_linux_register_addr): Handle
3469 MIPS_RESTART_REGNUM.
3470 (mips64_linux_register_addr): Likewise.
3471 (super_xfer_partial, mips_linux_xfer_partial): New.
3472 (_initialize_mips_linux_nat): Add them to the target_ops.
3473 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3474 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3475 (mips_linux_o32_sigframe_init)
3476 (mips_linux_n32n64_sigframe_init): Likewise.
3477 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3478 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3479 "org.gnu.gdb.mips.linux" feature.
3480 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3481 (mips_linux_restart_reg_p): New prototype.
3482 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3483 initialization routine.
3484 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3486 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3488 * Makefile.in (mips-tdep.o): Update.
3489 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3490 (mips_n32_n64_aliases, mips_register_aliases): New.
3491 (mips_register_name): Call tdesc_register_name.
3492 (mips_tdesc_register_reggroup_p): New.
3493 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3494 (mips_gdbarch_init): Add target-described register support.
3495 Register aliases for register names.
3496 * target-descriptions.c (tdesc_register_name): Make global.
3497 (tdesc_register_in_reggroup_p): New function, broken out from
3498 tdesc_register_reggroup_p.
3499 (tdesc_register_reggroup_p): Use it.
3500 * target-descriptions.h (tdesc_register_name)
3501 (tdesc_register_in_reggroup_p): New prototypes.
3502 * NEWS: Correct formatting. Mention MIPS register support.
3503 * features/mips-cp0.xml, features/mips-fpu.xml,
3504 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3505 features/mips64-cpu.xml: New files.
3507 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3509 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3510 * valops.c (value_cast): Likewise.
3511 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3512 * ui-out.c (ui_out_field_core_addr): Likewise.
3513 * tracepoint.c (tracepoints_info): Likewise.
3514 * symtab.c (print_msymbol_info): Likewise.
3515 * solib-irix.c (irix_current_sos)
3516 (irix_open_symbol_file_object): Likewise.
3517 * remote.c (build_remote_gdbarch_data): Likewise.
3518 * prologue-value.c (make_pv_area): Likewise.
3519 * procfs.c (info_mappings_callback): Likewise.
3520 * printcmd.c (print_scalar_formatted)
3521 (deprecated_print_address_numeric): Likewise.
3522 * memattr.c (mem_info_command): Likewise.
3523 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3524 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3525 * exec.c (print_section_info): Likewise.
3526 * dwarf2read.c (read_subrange_type): Likewise.
3527 * dwarf2loc.c (find_location_expression): Likewise.
3528 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3529 (signed_address_type, execute_stack_op): Likewise.
3530 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3531 * gdbarch.c, gdbarch.h: Regenerate.
3533 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3535 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3536 * arch-utils.c (show_architecture): Likewise.
3537 * remote-mips.c (mips_open): Likewise
3538 * nto-tdep.c (nto_find_and_open_solib)
3539 (nto_init_solib_absolute_prefix): Likewise.
3540 * nto-procfs (procfs_open): Likewise.
3541 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3542 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3543 * gdbarch.c, gdbarch.h: Regenerate.
3545 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3547 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3548 * gdbtypes.c (build_flt): Likewise.
3549 * gdbarch.c, gdbarch.h: Regenerate.
3551 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3553 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3554 gdbarch_breakpoint_from_pc.
3555 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3556 * remote.c (remote_insert_breakpoint)
3557 (remote_insert_hw_breakpoint): Likewise.
3558 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3559 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3560 * breakpoint.h (bp_target_info): Likewise (comment).
3561 * breakpoint.c (read_memory_nobpt): Likewise.
3562 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3563 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3564 * gdbarch.c, gdbarch.h: Regenerate.
3566 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3568 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3569 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3570 * solib-pa64.c (read_dynamic_info): Likewise.
3571 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3572 * solib.c (info_sharedlibrary_command): Likewise.
3573 * s390-nat.c (SUBOFF): Likewise.
3574 * p-valprint.c (pascal_val_print): Likewise.
3575 * procfs.c (info_proc_mappings): Likewise.
3576 * printcmd.c (decode_format): Likewise.
3577 * nto-tdep.c (nto_truncate_ptr): Likewise.
3578 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3579 (mips64_linux_get_longjmp_target): Likewise.
3580 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3581 * jv-valprint.c (java_value_print): Likewise.
3582 * jv-lang.c (get_java_object_header_size): Likewise.
3583 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3584 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3585 (hppa_hpux_unwind_adjust_stub): Likewise.
3586 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3587 * gdbtypes.c (make_pointer_type, make_reference_type)
3588 (smash_to_memberptr_type): Likewise.
3589 * gdbarch.c, gdbarch.h: Regenerate.
3591 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3593 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3594 (print_gp_register_row): Stop before printing a register bigger
3595 than the ABI register size.
3596 (mips_print_registers_info): Update call to mips_print_register.
3598 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3600 * expression.h (enum exp_opcode): Document a register name for
3602 * parse.c (write_dollar_variable): Write the register name for
3604 (operator_length_standard): Expect the register name following
3606 * ada-lang.c (resolve_subexp): Likewise.
3607 * ax-gdb.c (gen_expr): Likewise.
3608 * eval.c (evaluate_subexp_standard): Likewise.
3609 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3611 * tracepoint.c (encode_actions): Likewise.
3613 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3615 * utils.c (set_screen_size): Use INT_MAX for default columns.
3617 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3619 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3620 qXfer:spu:write packet types.
3622 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3624 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3625 * gdbarch.c, gdbarch.h: Regenerate.
3627 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3629 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3630 gdbarch_stab_reg_to_regnum.
3631 * stabsread.c (define_symbol): Likewise.
3632 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3633 gdbarch_ecoff_reg_to_regnum.
3634 * mdebugread.c (parse_symbol): Likewise.
3635 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3636 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3637 gdbarch_dwarf_reg_to_regnum.
3638 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3639 * coffread.c (process_coff_symbol): Likewise.
3640 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3641 gdbarch_dwarf2_reg_to_regnum.
3642 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3643 (locexpr_describe_location): Likewise.
3644 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3645 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3646 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3647 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3648 * gdbarch.c, gdbarch.h: Regenerate.
3650 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3652 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3653 gdbarch_smash_text_address.
3654 * somread.c (som_symtab_read): Likewise.
3655 * elfread.c (record_minimal_symbol): Likewise.
3656 * dbxread.c (process_one_symbol): Likewise.
3657 * coffread.c (coff_symtab_read): Likewise.
3658 * gdbarch.c, gdbarch.h: Regenerate.
3660 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3662 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3663 * findvar.c (value_from_register): Likewise.
3664 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3665 * valops.c (value_assign): Likewise.
3666 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3667 gdbarch_convert_register_p.
3668 * findvar.c (value_from_register): Likewise.
3669 * valops.c (value_assign): Likewise.
3670 * gdbarch.c, gdbarch.h: Regenerate.
3672 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3674 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3675 gdbarch_register_sim_regno.
3676 * sim-regno.h (sim_regno): Likewise (comment).
3677 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3678 * gdbarch.c, gdbarch.h: Regenerate.
3680 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3682 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3683 gdbarch_virtual_frame_pointer.
3684 * tracepoint.c (encode_actions): Likewise.
3685 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3686 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3687 * gdbarch.c, gdbarch.h: Regenerate.
3689 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3691 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3692 * p-lang.c (pascal_create_fundamental_type): Likewise.
3693 * objc-lang.c (objc_create_fundamental_type): Likewise.
3694 * mdebugread.c (_initialize_mdebugread): Likewise.
3695 * m2-lang.c (m2_create_fundamental_type)
3696 (_initialize_m2_language): Likewise.
3697 * gdbtypes.c (build_gdbtypes): Likewise.
3698 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3699 * doublest.c (floatformat_from_length): Likewise.
3700 * c-lang.c (c_create_fundamental_type): Likewise.
3701 * ada-lang.c (ada_create_fundamental_type)
3702 (ada_language_arch_info): Likewise.
3703 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3704 * value.c (unpack_double): Likewise (comment).
3705 * gdbtypes.c (build_gdbtypes): Likewise.
3706 * doublest.c (floatformat_from_length): Likewise.
3707 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3708 * valarith.c (value_binop): Likewise.
3709 * p-lang.c (pascal_create_fundamental_type): Likewise.
3710 * objc-lang.c (objc_create_fundamental_type): Likewise.
3711 * mdebugread.c (_initialize_mdebugread): Likewise.
3712 * m2-lang.c (m2_create_fundamental_type): Likewise.
3713 * gdbtypes.c (build_gdbtypes): Likewise.
3714 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3715 * doublest.c (floatformat_from_length): Likewise.
3716 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3717 * c-lang.c (c_create_fundamental_type): Likewise.
3718 * ada-lex.l (processReal): Likewise.
3719 * ada-lang.c (ada_create_fundamental_type)
3720 (ada_language_arch_info): Likewise.
3721 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3722 * value.c (unpack_double): Likewise (comment).
3723 * gdbtypes.c (build_gdbtypes): Likewise.
3724 * doublest.c (floatformat_from_length): Likewise.
3725 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3726 gdbarch_long_double_bit.
3727 * p-lang.c (pascal_create_fundamental_type): Likewise.
3728 * objc-lang.c (objc_create_fundamental_type): Likewise.
3729 * m2-lang.c (m2_create_fundamental_type): Likewise.
3730 * gdbtypes.c (build_gdbtypes): Likewise.
3731 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3732 * doublest.c (floatformat_from_length): Likewise.
3733 * c-lang.c (c_create_fundamental_type): Likewise.
3734 * ada-lex.l (processReal): Likewise.
3735 * ada-lang.c (ada_create_fundamental_type)
3736 (ada_language_arch_info): Likewise.
3737 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3738 gdbarch_long_double_format.
3739 * gdbtypes.c (build_gdbtypes): Likewise.
3740 * doublest.c (floatformat_from_length): Likewise.
3741 * gdbarch.c, gdbarch.h: Regenerate.
3743 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3745 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3746 * ada-lang.c (ada_create_fundamental_type)
3747 (ada_language_arch_info): Likewise.
3748 * c-lang.c (c_create_fundamental_type): Likewise.
3749 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3750 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3751 * m2-lang.c (m2_create_fundamental_type): Likewise.
3752 * objc-lang.c (objc_create_fundamental_type): Likewise.
3753 * p-lang.c (pascal_create_fundamental_type): Likewise.
3754 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3755 * c-exp.y (parse_number): Likewise.
3756 * objc-exp.y (parse_number): Likewise.
3757 * ada-lex.l (processInt): Likewise.
3758 * f-exp.y (parse_number): Likewise.
3759 * p-exp.y (parse_number): Likewise.
3760 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3761 (gdbtypes_post_init, build_gdbtypes): Likewise.
3762 * p-lang.c (pascal_create_fundamental_type): Likewise.
3763 * parse.c (build_parse): Likewise.
3764 * xcoffread.c (_initialize_xcoffread): Likewise.
3765 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3766 (read_range_type): Likewise.
3767 * objc-lang.c (objc_create_fundamental_type): Likewise.
3768 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3769 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3770 (m2_create_fundamental_type): Likewise.
3771 * c-lang.c (c_create_fundamental_type): Likewise.
3772 * coffread.c (coff_read_enum_type): Likewise.
3773 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3774 * dwarf2read.c (new_symbol): Likewise.
3775 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3776 * c-exp.y (parse_number): Likewise.
3777 * objc-exp.y (parse_number): Likewise.
3778 * ada-lex.l (processInt): Likewise.
3779 * f-exp.y (parse_number): Likewise.
3780 * p-exp.y (parse_number): Likewise.
3781 * valarith.c (value_binop): Likewise.
3782 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3783 * ada-lang.c (ada_create_fundamental_type)
3784 (ada_language_arch_info): Likewise.
3785 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3786 * symfile.c (TARGET_LONG_BYTES): Likewise.
3787 * p-lang.c (pascal_create_fundamental_type): Likewise.
3788 * objc-lang.c (objc_create_fundamental_type): Likewise.
3789 * m2-lang.c (m2_create_fundamental_type): Likewise.
3790 * f-lang.c (f_create_fundamental_type): Likewise.
3791 * c-lang.c (c_create_fundamental_type): Likewise.
3792 * coffread.c (decode_base_type): Likewise.
3793 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3794 * c-exp.y (parse_number): Likewise.
3795 * objc-exp.y (parse_number): Likewise.
3796 * p-exp.y (parse_number): Likewise.
3797 * ada-lang.c (ada_create_fundamental_type)
3798 (ada_language_arch_info): Likewise.
3799 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3800 * stabsread.c (read_range_type): Likewise.
3801 * p-lang.c (pascal_create_fundamental_type): Likewise.
3802 * objc-lang.c (objc_create_fundamental_type): Likewise.
3803 * m2-lang.c (m2_create_fundamental_type): Likewise.
3804 * f-lang.c (f_create_fundamental_type): Likewise.
3805 * c-lang.c (c_create_fundamental_type): Likewise.
3806 * gdbarch.c, gdbarch.h: Regenerate.
3808 2007-06-12 Andreas Schwab <schwab@suse.de>
3810 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3811 (struct frame_unwind): Add dealloc_cache.
3812 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3814 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3815 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3816 (libunwind_frame_unwind): Set dealloc_cache.
3817 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3819 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3820 Markus Deuling <deuling@de.ibm.com>
3822 * remote.c (remote_write_qxfer): New function.
3823 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3824 (remote_read_qxfer): Do not cache empty objects.
3825 (_initialize_remote): Add PACKET_qXfer_spu_read and
3826 PACKET_qXfer_spu_write.
3828 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3830 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3831 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3833 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3834 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3835 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3836 * spu-tdep.c (infospucmdlist): New variable.
3837 (spu_register_name): Handle additional pseudo registers.
3838 (spu_register_type): Likewise.
3839 (spu_pseudo_register_read): Likewise.
3840 (spu_pseudo_register_write): Likewise.
3841 (spu_pseudo_register_read_spu): New function.
3842 (spu_pseudo_register_write_spu): Likewise.
3843 (info_spu_event_command): New function.
3844 (info_spu_signal_command): Likewise.
3845 (info_spu_mailbox_list): Likewise.
3846 (info_spu_mailbox_command): Likewise.
3847 (spu_mfc_get_bitfield): Likewise.
3848 (info_spu_dma_cmdlist): Likewise.
3849 (info_spu_dma_command): Likewise.
3850 (info_spu_proxydma_command): Likewise.
3851 (info_spu_command): Likewise.
3852 (_initialize_spu_tdep): Install "info spu" commands.
3854 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3856 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3857 accessing non-seekable spufs files.
3859 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3861 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3862 gdbarch_skip_trampoline_code.
3863 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3864 * objc-lang.c (objc_skip_trampoline)
3865 (objc_submethod_helper_data): Likewise.
3866 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3867 * infrun.c (handle_inferior_event): Likewise.
3868 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3869 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3870 gdbarch_in_solib_return_trampoline.
3871 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3872 * infrun.c (handle_inferior_event): Likewise.
3873 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3874 * gdbarch.c, gdbarch.h: Regenerate.
3876 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3878 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3879 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3880 * linespec.c (minsym_found): Likewise.
3881 * infrun.c (step_into_function): Likewise.
3882 * gdbarch.c, gdbarch.h: Regenerate.
3884 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3886 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3887 * valops.c (value_allocate_space_in_inferior): Likewise.
3888 * gdbarch.c, gdbarch.h: Regenerate.
3890 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3892 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3893 gdbarch_memory_insert_breakpoint.
3894 * mem-break.c (memory_insert_breakpoint): Likewise.
3895 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3896 gdbarch_memory_remove_breakpoint.
3897 * mem-break.c (memory_remove_breakpoint): Likewise.
3898 * gdbarch.c, gdbarch.h: Regenerate.
3900 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3902 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3903 gdbarch_fetch_tls_load_module_address.
3904 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3905 gdbarch_fetch_tls_load_module_address_p.
3906 * gdbarch.c, gdbarch.h: Regenerate.
3908 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3910 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3911 gdbarch_decr_pc_after_break.
3912 * tracepoint.c (trace_dump_command): Likewise.
3913 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3914 * linux-thread-db.c (check_event): Likewise.
3915 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3916 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3917 * frame.h: Likewise (comment).
3918 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3919 * aix-thread.c (aix_thread_wait): Likewise.
3920 * gdbarch.c, gdbarch.h: Regenerate.
3922 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3924 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3925 gdbarch_address_class_type_flags.
3926 * dwarf2read.c (read_tag_pointer_type): Likewise.
3927 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3928 gdbarch_address_class_type_flags_p.
3929 * dwarf2read.c (read_tag_pointer_type): Likewise.
3930 * gdbarch.c, gdbarch.h: Regenerate.
3932 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3934 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3935 * value.c (value_as_address): Likewise (comment).
3936 * remote-mips.c (common_breakpoint): Likewise.
3937 * regcache.c (read_pc_pid): Likewise.
3938 * printcmd.c (do_one_display): Likewise.
3939 * monitor.c (monitor_write_memory, monitor_read_memory)
3940 (monitor_insert_breakpoint): Likewise.
3941 * mips-tdep.c (heuristic_proc_start): Likewise.
3942 * infrun.c (insert_step_resume_breakpoint_at_frame)
3943 (insert_step_resume_breakpoint_at_caller): Likewise.
3944 * buildsym.c (record_line): Likewise.
3945 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3946 (arm_get_next_pc): Likewise.
3947 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3948 (store_regs): Likewise.
3949 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3950 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3951 * gdbarch.c, gdbarch.h: Regenerate.
3953 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3955 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3956 * tracepoint.c (scope_info): Likewise.
3957 * target.c (debug_print_register): Likewise.
3958 * stack.c (frame_info): Likewise.
3959 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3960 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3961 (sh64_media_print_registers_info)
3962 (sh64_compact_print_registers_info): Likewise.
3963 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3964 * remote-sim.c (gdbsim_fetch_register): Likewise.
3965 * remote.c (packet_reg): Likewise (comment).
3966 * reggroups.c (default_register_reggroup_p): Likewise.
3967 * regcache.c (regcache_dump): Likewise.
3968 * printcmd.c (address_info): Likewise.
3969 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3970 * mt-dep.c (mt_registers_info): Likewise.
3971 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3972 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3973 (mips_read_fp_register_double, mips_print_fp_register)
3974 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3975 (mips_register_sim_regno): Likewise.
3976 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3977 * inf-ptrace.c (inf_ptrace_fetch_register)
3978 (inf_ptrace_store_register): Likewise.
3979 * infcmd.c (default_print_registers_info): Likewise.
3980 * ia64-linux-nat.c (ia64_linux_fetch_register)
3981 (ia64_linux_store_register): Likewise.
3982 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3983 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3984 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3985 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3986 (hppa_hpux_store_register): Likewise.
3987 * findvar.c (locate_var_value): Likewise.
3988 * dwarf2loc.c (locexpr_describe_location): Likewise.
3989 * dwarf2-frame.c (execute_cfa_program): Likewise.
3990 * arm-tdep.c (arm_push_dummy_call): Likewise.
3991 * arch-utils.c (legacy_register_sim_regno): Likewise.
3992 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3993 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3994 * mi/mi-main.c (mi_cmd_data_list_register_names)
3995 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3996 (mi_cmd_data_write_register_values): Likewise.
3997 * gdbarch.c, gdbarch.h: Regenerate.
3999 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
4001 * target-memory.c (blocks_to_erase): Correct off-by-one error.
4003 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
4005 * remote.c (process_g_packet): Don't check size.
4006 * gdbarch.sh: Remove register_bytes_ok.
4007 * gdbarch.c: Regenerated.
4008 * gdbarch.h: Regenerated.
4009 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
4010 (m68k_register_bytes_ok): Remove.
4011 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
4013 2007-06-06 Andreas Schwab <schwab@suse.de>
4015 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
4016 (destroy_addr_space_name): Define.
4017 (libunwind_load): Get address of destroy_addr_space function.
4018 (libunwind_frame_cache): Destroy unw_addr_space_t object before
4019 returning unsuccessfully.
4020 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
4022 (libunwind_sigtramp_frame_sniffer): Likewise.
4023 (libunwind_get_reg_special): Likewise.
4025 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4027 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
4028 gdbarch_fetch_pointer_argument.
4029 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
4030 * gdbarch.c, gdbarch.h: Regenerate.
4032 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4034 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
4035 gdbarch_have_nonsteppable_watchpoint.
4036 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
4037 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
4038 gdbarch_cannot_step_breakpoint.
4039 * infrun.c (resume): Likewise.
4040 * gdbarch.c, gdbarch.h: Regenerate.
4042 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4044 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
4045 * stack.c (print_frame_args): Likewise.
4046 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
4047 * stack.c (print_args_stub, frame_info): Likewise.
4048 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
4049 * stack.c (print_args_stub, frame_info): Likewise.
4050 * gdbarch.c, gdbarch.h: Regenerate.
4052 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4054 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
4055 gdbarch_coff_make_msymbol_special.
4056 * coffread.c (coff_symtab_read): Likewise.
4057 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
4058 gdbarch_elf_make_msymbol_special.
4059 * elfread.c (elf_symtab_read): Likewise.
4060 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
4061 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
4062 * gdbarch.c, gdbarch.h: Regenerate.
4064 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4066 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
4067 gdbarch_frame_red_zone_size.
4068 * gdbarch.c, gdbarch.h: Regenerate.
4070 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4072 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
4073 * infcall.c (call_function_by_hand): Likewise.
4074 * gcore.c (derive_stack_segment): Likewise.
4075 * frame.c (frame_id_inner): Likewise.
4076 * arch-utils.c (core_addr_lessthan): Likewise (comment).
4077 * ada-lang.c (ensure_lval): Likewise.
4078 * gdbarch.c, gdbarch.h: Regenerate.
4080 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4082 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
4083 gdbarch_address_to_pointer.
4084 * findvar.c (store_typed_address): Likewise.
4085 * gdbtypes.c (make_pointer_type): Likewise (comment).
4086 * procfs.c (procfs_address_to_host_pointer): Likewise.
4087 * std-regs.c (value_of_builtin_frame_reg): Likewise.
4088 (value_of_builtin_frame_fp_reg): Likewise.
4089 (value_of_builtin_frame_pc_reg): Likewise.
4090 * utils.c (paddress): Likewise (comment).
4091 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
4092 gdbarch_pointer_to_address.
4093 * findvar.c (extract_typed_address): Likewise.
4094 * gdbtypes.c (make_pointer_type): Likewise (comment).
4095 * valops.c (value_cast): Likewise (comment).
4096 * gdbarch.c, gdbarch.h: Regenerate.
4098 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4100 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
4101 * infrun.c (handle_inferior_event): Likewise.
4102 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
4103 gdbarch_get_longjmp_target_p.
4104 * breakpoint.c (breakpoint_re_set): Likewise.
4105 * infrun.c (handle_inferior_event): Likewise.
4106 * gdbarch.c, gdbarch.h: Regenerate.
4108 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4110 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
4111 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
4112 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
4113 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
4114 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
4115 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
4116 find_stub_with_shl_get, cover_find_stub_with_shl_get,
4117 initialize_hp_cxx_exception_support, child_enable_exception_callback,
4118 current_ex_event, child_get_current_exception_event): Remove.
4119 (hppa_hpux_inferior_created): Remove.
4120 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
4122 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
4123 (deprecated_exception_support_initialized): Remove.
4124 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
4125 (deprecated_exception_support_initialized): Remove.
4126 (breakpoint_init_inferior): Remove handling of non-zero
4127 deprecated_exception_catchpoints_are_fragile.
4129 * symtab.h (deprecated_hp_som_som_object_present): Remove.
4130 * symtab.c (deprecated_hp_som_som_object_present): Remove.
4131 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
4132 deprecated_hp_som_som_object_present.
4133 * eval.c (evaluate_subexp_standard): Likewise.
4134 * valops.c (value_cast): Likewise.
4136 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
4137 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
4138 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
4140 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4142 * objfiles.h (ImportEntry, ExportEntry): Remove types.
4143 (struct objfile): Remove import_list, import_list_size,
4144 export_list, export_list_size members.
4145 (is_in_import_list): Remove prototype.
4146 * objfiles.c (is_in_import_list): Remove.
4147 * somread.c (init_import_symbols, init_export_symbols): Remove.
4148 (som_symfile_read): Do not call init_import_symbols. Do not
4149 set objfile->export_list and objfile->export_list_size.
4151 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4153 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
4154 Use the original objfile if necessary.
4156 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
4158 * defs.h (ldirname): New prototype.
4159 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4161 * utils.c (ldirname): New function.
4162 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4164 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4166 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4168 2007-06-01 Joel Brobecker <brobecker@adacore.com>
4170 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4172 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4174 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4176 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4178 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4179 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4180 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4181 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4182 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4183 ppc_linux_at_sigtramp_return_path): Remove.
4185 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4187 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4188 (xtensa_register_write_masked, xtensa_register_read_masked)
4189 (xtensa_extract_return_value, xtensa_store_return_value
4190 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4191 TARGET_BYTE_ORDER by gdbarch_byte_order.
4192 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4193 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4194 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4195 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4196 (sh64_push_dummy_call, sh64_extract_return_value)
4197 (sh64_store_return_value, sh64_register_convert_to_virtual)
4198 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4199 (sh64_pseudo_register_write, sh64_do_fp_register)
4200 (sh64_frame_prev_register): Likewise.
4201 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4202 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4203 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4204 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4205 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4206 * ppc-linux-nat.c (store_register): Likewise.
4207 * nto-tdep.c (nto_find_and_open_solib)
4208 (nto_init_solib_absolute_prefix): Likewise.
4209 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4210 (mips_convert_register_p, mips_eabi_push_dummy_call)
4211 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4212 (mips_o32_push_dummy_call, mips_o32_return_value)
4213 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4214 (mips_read_fp_register_single, mips_read_fp_register_double)
4215 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4216 (mips_breakpoint_from_pc): Likewise.
4217 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4218 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4219 (mips_linux_o32_sigframe_init): Likewise.
4220 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4221 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4222 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4223 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4224 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4225 * coffread.c (process_coff_symbol): Likewise.
4226 * arm-tdep.c (convert_from_extended, convert_to_extended)
4227 (gdb_print_insn_arm): Likewise.
4229 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4231 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4232 * i386-tdep.c (i386_dbx_reg_to_regnum)
4233 (i386_svr4_reg_to_regnum): Likewise.
4234 * inf-ptrace.c (inf_ptrace_fetch_registers)
4235 (inf_ptrace_store_registers): Likewise.
4236 * corelow.c (get_core_registers): Likewise.
4237 * i386-linux-nat.c (supply_gregset, fill_gregset)
4238 (i386_linux_fetch_inferior_registers)
4239 (i386_linux_store_inferior_registers): Likewise.
4240 * remote.c (init_remote_state,packet_reg_from_regnum)
4241 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4242 (remote_prepare_to_store,store_registers_using_G)
4243 (remote_store_registers,remote_arch_state): Likewise.
4244 * tracepoint.c (encode_actions): Likewise.
4245 * mi/mi-main.c (mi_cmd_data_list_register_names)
4246 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4247 (mi_cmd_data_write_register_values): Likewise.
4248 * tui/tui-regs.c (tui_show_register_group)
4249 (tui_show_register_group): Likewise.
4250 * xtensa-tdep.h (FP_ALIAS): Likewise.
4251 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4252 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4253 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4254 * win32-nat.c (do_win32_fetch_inferior_registers)
4255 (do_win32_store_inferior_registers,fetch_elf_core_registers
4256 * user-regs.h: Likewise (comment).
4257 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4258 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4259 * target-descriptions.h: Likewise (comment).
4260 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4261 * target.c (debug_print_register): Likewise.
4262 * stack.c (frame_info): Likewise.
4263 * stabsread.c (define_symbol): Likewise.
4264 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4265 (sh64_media_print_registers_info)
4266 (sh64_compact_print_registers_info): Likewise.
4267 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4268 * rs6000-nat.c (fetch_register,store_register): Likewise.
4269 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4270 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4271 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4272 * remote-m32r-sdi.c (m32r_fetch_registers)
4273 (m32r_store_registers): Likewise.
4274 * reggroups.c (default_register_reggroup_p): Likewise.
4275 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4276 (regcache_restore,regcache_dump): Likewise.
4277 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4278 * mips-tdep.c (mips_xfer_register,mips_register_name)
4279 (mips_register_reggroup_p,mips_pseudo_register_read)
4280 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4281 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4282 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4283 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4284 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4285 (print_gp_register_row,mips_print_registers_info)
4286 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4287 (mips_register_sim_regno): Likewise.
4288 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4289 (mips_linux_n32n64_sigframe_init): Likewise.
4290 * mips-linux-nat.c (mips_linux_register_addr)
4291 (mips64_linux_register_addr): Likewise.
4292 * findvar.c (value_of_register): Likewise.
4293 * infcmd.c (default_print_registers_info,registers_info)
4294 (print_vector_info,print_float_info): Likewise.
4295 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4296 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4297 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4298 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4299 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4300 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4301 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4302 (ia64_linux_store_registers): Likewise.
4303 * hpux-thread.c (hpux_thread_fetch_registers)
4304 (hpux_thread_store_registers): Likewise.
4305 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4306 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4307 (h8300_register_type): Likewise.
4308 * dwarf2-frame.c (dwarf2_frame_cache)
4309 (dwarf2_frame_state_alloc_regs): Likewise.
4310 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4311 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4312 (crisv32_cannot_store_register,cris_register_name): Likewise.
4313 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4314 * arch-utils.c (legacy_register_sim_regno)
4315 (legacy_virtual_frame_pointer): Likewise.
4316 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4317 * arm-tdep.h: Likewise (comment).
4318 * frv-tdep.c (frv_register_sim_regno): Likewise.
4319 * m68klinux-nat.c (old_fetch_inferior_registers)
4320 (old_store_inferior_registers): Likewise.
4321 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4322 * irix5-nat.c (fetch_core_registers): Likewise.
4323 * hppa-tdep.c (hppa_frame_cache): Likewise.
4324 * hppa-linux-nat.c (hppa_linux_register_addr)
4325 (hppa_linux_fetch_inferior_registers)
4326 (hppa_linux_store_inferior_registers): Likewise.
4327 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4328 (hppa_hpux_store_inferior_registers): Likewise.
4329 * amd64-nat.c (amd64_native_gregset_reg_offset)
4330 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4331 * dbug-rom.c (dbug_regname): Likewise.
4332 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4333 (HARD_PAGE_REGNUM (comment)): Likewise.
4334 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4335 * i386-tdep.c (i386_dbx_reg_to_regnum)
4336 (i386_svr4_reg_to_regnum): Likewise.
4337 * mi/mi-main.c (mi_cmd_data_list_register_names)
4338 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4339 (mi_cmd_data_write_register_values): Likewise.
4340 * gdbarch.c, gdbarch.h: Regenerate.
4341 * tui/tui-regs.c (tui_show_register_group): Likewise.
4342 * xtensa-tdep.h (FP_ALIAS): Likewise.
4343 * user-regs.h: Likewise (comment).
4344 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4345 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4346 * target-descriptions.h: Likewise (comment).
4347 * target.c (debug_print_register): Likewise.
4348 * stack.c (frame_info): Likewise.
4349 * stabsread.c (define_symbol): Likewise.
4350 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4351 (sh64_compact_print_registers_info): Likewise.
4352 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4353 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4354 (regcache_restore,regcache_dump): Likewise.
4355 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4356 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4357 (mips_stab_reg_to_regnum): Likewise.
4358 * findvar.c (value_of_register): Likewise.
4359 * infcmd.c (default_print_registers_info,registers_info)
4360 (print_vector_info,print_float_info): Likewise.
4361 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4362 * h8300-tdep.c (h8300_register_type): Likewise.
4363 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4364 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4365 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4366 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4367 * parse.c: Remove comment.
4368 * gdbarch.c, gdbarch.h: Regenerate
4370 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4372 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4373 gdbarch_cannot_fetch_register.
4374 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4375 * hppa-linux-nat.c (fetch_register): Likewise.
4376 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4377 * m68klinux-nat.c (fetch_register): Likewise.
4378 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4380 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4381 gdbarch_cannot_store_register.
4382 * hppa-linux-nat.c (store_register): Likewise.
4383 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4384 * regcache.c (regcache_raw_write): Likewise.
4385 * m68klinux-nat.c (store_register): Likewise.
4386 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4387 * gdbarch.c, gdbarch.h: Regenerate.
4389 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4391 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4392 * gdbarch.c, gdbarch.h: Regenerate.
4394 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4396 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4397 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4398 * gdbarch.c, gdbarch.h: Regenerate.
4400 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4402 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4403 * ax-gdb.c (gen_bitfield_ref): Likewise.
4404 * mi/mi-main.c (get_register): Likewise.
4405 * findvar.c (default_value_from_register, extract_signed_integer)
4406 (extract_unsigned_integer, extract_long_unsigned_integer)
4407 (store_signed_integer, store_unsigned_integer): Likewise.
4408 * regcache.c (regcache_dump): Likewise.
4409 * value.c (lookup_internalvar, value_of_internalvar)
4410 (set_internalvar): Likewise.
4412 * valprint.c (print_binary_chars, print_octal_chars)
4413 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4414 * infcmd.c (default_print_registers_info): Likewise.
4415 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4416 * stabsread.c (define_symbol): Likewise.
4417 * doublest.c (floatformat_from_length, floatformat_from_type)
4418 (extract_typed_floating, store_typed_floating): Likewise.
4419 * gdbarch.c, gdbarch.h: Regenerate.
4421 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4423 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4424 gdbarch_call_dummy_location.
4425 * infcall.c (call_function_by_hand): Likewise.
4426 * inferior.h: Change comment.
4427 * arch-utils.c: Change comment.
4428 * gdbarch.c, gdbarch.h: Regenerate.
4430 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4432 * solib-aix5.c: Delete.
4433 * Makefile.in (solib-aix5.o): Delete rule.
4435 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4437 * breakpoint.h (enum bpstat_what_main_action): Remove
4438 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4439 * infrun.c (process_event_stop_test): Do not check for it.
4441 2007-05-22 Chris Dearman <chris@mips.com>
4442 Maciej W. Rozycki <macro@mips.com>
4444 * ser-unix.c (show_serial_hwflow): New function.
4445 (hardwire_raw): Add hardware flow control support.
4446 (_initialize_ser_hardwire): Add "set/show remoteflow".
4447 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4448 * NEWS: Document the new command.
4450 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4452 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4453 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4454 define for i[[3456]]86-*-linux* native configurations.
4455 * config.in, configure: Regenerate.
4457 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4459 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4460 a core file. Add comment in the function description.
4462 2007-05-18 Caroline Tice <ctice@apple.com>
4464 * c-valprint.c (c_value_print): If the initialized field of the
4465 value struct is 0, print out "[uninitialized]" before the value.
4466 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4467 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4468 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4469 ctx->initialized appropriately. Verify no location op follows
4471 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4472 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4473 set_value_initialized.
4474 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4475 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4476 * value.c (struct value): New field, initialized.
4477 (allocate_value): Initialize new field.
4478 (set_value_initialized): New function.
4479 (value_initialized): New function.
4480 * value.h (value_initialized): New extern declaration.
4481 (set_value_initialized): Likewise.
4483 2007-05-18 Caroline Tice <ctice@apple.com>
4485 * MAINTAINERS (Write After Approval): Add self.
4487 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4489 * gdbtypes.c (make_reference_type): Preserve the type chain
4490 and set the length of all the variants of the pointer type.
4492 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4494 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4495 and set the length of all the variants of the pointer type.
4497 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4499 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4501 (mips_o64_push_dummy_call): Reformat a comment.
4503 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4505 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4506 (score_prologue_frame_base_address): Return fp to keep gdb print
4507 local variables correctly when debugging information is stabs.
4509 (score_analyze_prologue): For software watchpoint, fetch all the
4510 instructions from range [startaddr, pc] once and identify them locally
4511 to reduce memory access.
4512 (score_malloc_and_get_memblock, score_free_memblock)
4513 (score_adjust_memblock_ptr): New functions.
4514 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4516 (score_target_can_use_watch, score_stopped_by_watch)
4517 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4518 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4519 New functions for remote & local hw-watchpoint and hw-breakpoint.
4521 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4523 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4524 declarations as well.
4526 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4528 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4529 * config/arm/tm-embed.h: Delete file.
4531 * arm-tdep.h (arm_software_single_step): Declare.
4532 * arm-tdep.c (arm_software_single_step): Make global.
4533 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4535 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4536 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4537 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4538 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4540 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4541 allow defines to be overriden by TM file.
4542 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4543 change default to {0xbe,0xbe}.
4544 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4545 arm_obsd_thumb_be_breakpoint): New global variables.
4546 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4547 tdep->thumb_breakpoint_size.
4548 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4549 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4550 tdep->thumb_breakpoint_size.
4552 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4554 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4556 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4559 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4560 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4561 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4562 (mips_abi_regsize): Simplify.
4563 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4564 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4565 (mips_o32_return_value, mips_o64_push_dummy_call)
4566 (mips_o64_return_value): Propogate constant register sizes. Use the
4567 ABI register size instead of mips_stack_argsize.
4568 (mips_dump_tdep): Don't print mips_stack_argsize.
4569 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4572 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4574 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4575 * config/mips/tm-linux.h: Delete.
4576 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4577 (mips_linux_in_dynsym_resolve_code): Make static. Use
4578 svr4_in_dynsym_resolve_code.
4579 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4581 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4583 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4584 * Makefile.in (mips-linux-tdep.o): Update.
4585 * solib.c (set_solib_ops): New.
4586 (current_target_so_ops): Update comment.
4587 * solib.h (set_solib_ops): New prototype.
4589 2007-05-16 Chris Dearman <chris@mips.com>
4591 * printcmd.c (do_examine): Fix typos in a comment.
4593 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4595 * configure.ac: Allow sysroots to be relocated under $prefix as
4596 well as $exec_prefix.
4597 * configure: Regenerate.
4599 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4601 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4602 (offsetof): Do not define.
4603 (find_stub_with_shl_get): Use numerical value 3 instead of
4604 symbolic value TYPE_PROCEDURE.
4606 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4608 * gdb_proc_service.h (paddr_t): Delete typedef.
4609 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4610 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4611 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4612 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4613 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4614 * Makefile.in (proc-service.o): Update.
4616 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4618 * Makefile.in (mips-tdep.o): Update.
4619 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4622 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4624 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4625 instead of store_typed_address.
4626 * value.c (pack_long): New.
4627 (value_from_longest): Use it.
4628 * value.h (pack_long): New prototype.
4630 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4632 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4633 DW_EH_PE_signed if appropriate.
4635 2007-05-14 Paul Brook <paul@codesourcery.com>
4636 Daniel Jacobowitz <dan@codesourcery.com>
4638 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4640 (dwarf_decode_lines): Check for line info without a file.
4642 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4644 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4647 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4649 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4651 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4653 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4655 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4657 * gdbarch.sh (read_sp): Remove.
4658 * gdbarch.c, gdbarch.h: Regenerate.
4659 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4661 * avr-tdep.c (avr_read_sp): Remove.
4662 (avr_unwind_sp): New function.
4663 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4664 * mips-tdep.c (mips_read_sp): Remove.
4665 (mips_unwind_sp): New function.
4666 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4667 * score-tdep.c (score_read_unsigned_register): Remove.
4668 (score_read_sp): Remove.
4669 (score_unwind_sp): New function.
4670 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4672 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4674 * buildsym.c (start_subfile): Handle absolute pathnames
4675 while comparing subfile names.
4677 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4679 * hppa-hpux-tdep.c: Include "regcache.h".
4680 * hppa-linux-tdep.c: Likewise.
4681 * hppa-tdep.c: Include "gdb_stdint.h".
4682 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4684 * Makefile.in: Update dependencies.
4686 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4688 * blockframe.c: Remove obsolete comments.
4689 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4690 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4691 * hppa-tdep.h (enum hppa_regnum): Likewise.
4692 * mips-tdep.h: Likewise.
4693 * m68hc11-tdep.c: Likewise.
4695 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4697 * inferior.h (read_sp): Remove prototype.
4698 * regcache.c (read_sp): Remove.
4699 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4700 * infcall.c (call_function_by_hand): Likewise.
4701 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4703 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4705 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4707 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4708 instead of read_register and read_register_pid.
4710 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4711 argument instead of PTID. Use regcache functions instead of
4713 (ia64_linux_insert_watchpoint): Update call.
4714 (ia64_linux_stopped_data_address): Use regcache functions
4715 instead of read_register_pid and write_register_pid.
4717 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4719 * libunwind-frame.h (struct regcache): Add forward declaration.
4720 (libunwind_get_reg_special): Add REGCACHE argument.
4721 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4722 argument. Pass it to unw_init_remote_p.
4724 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4725 libunwind_get_reg_special.
4726 (ia64_access_reg): Remove "write" case.
4727 (ia64_access_fpreg): Likewise. Read from next_frame passed
4728 as callback argument instead of from current_regcache.
4729 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4730 passed as callback argument instead of from current_regcache.
4731 (ia64_access_rse_fpreg): New function.
4732 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4734 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4736 * NEWS: Mention SPU overlay support.
4738 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4740 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4742 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4744 * breakpoint.c (remove_breakpoint): Do not remove software
4745 breakpoints in unmapped overlay sections.
4747 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4749 * spu-tdep.c: Include "observer.h".
4750 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4751 (spu_overlay_data): New variable.
4752 (struct spu_overlay_table): New type.
4753 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4754 spu_overlay_new_objfile): New functions.
4755 (spu_gdbarch_init): Install spu_overlay_update.
4756 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4757 allocate spu_overlay_data objfile data.
4759 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4761 * gdbarch.sh (overlay_update): New gdbarch function.
4762 (struct obj_section): Add forward declaration.
4763 * gdbarch.c, gdbarch.h: Regenerate.
4765 * symfile.c (simple_overlay_update): Make global.
4766 (target_overlay_update): Remove variable.
4767 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4768 target_overlay_update.
4769 (overlay_load_command): Likewise.
4770 * symfile.h (struct obj_section): Add forward declaration.
4771 (simple_overlay_update): Add prototype.
4773 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4775 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4777 * observer.sh: Add "struct objfile" forward declaration.
4778 * target.h (deprecated_target_new_objfile_hook): Remove.
4779 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4780 (clear_symtab_users): Call observer_notify_new_objfile.
4781 (symbol_file_add_with_addrs_or_offsets): Likewise.
4782 * rs6000-nat.c: Include "observer.h".
4783 (vmap_ldinfo): Call observer_notify_new_objfile.
4784 (xcoff_relocate_core): Likewise.
4785 * remote.c (remote_new_objfile_chain): Remove.
4786 (remote_new_objfile): Do not call remote_new_objfile_chain.
4787 (_initialize_remote): Use observer_attach_new_objfile.
4788 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4789 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4790 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4791 * aix-thread.c: Include "observer.h".
4792 (target_new_objfile_chain): Remove.
4793 (new_objfile): Do not call target_new_objfile_chain.
4794 (_initialize_aix_thread): Use observer_attach_new_objfile.
4795 * hpux-thread.c: Include "observer.h"
4796 (target_new_objfile_chain): Remove.
4797 (hpux_thread_new_objfile): Make static. Do not call
4798 target_new_objfile_chain.
4799 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4800 * linux-thread-db.c: Include "observer.h".
4801 (target_new_objfile_chain): Remove.
4802 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4803 (_initialize_thread_db): Use observer_attach_new_objfile.
4804 * sol-thread.c: Include "observer.h".
4805 (target_new_objfile_chain): Remove.
4806 (sol_thread_new_objfile): Make static. Do not call
4807 target_new_objfile_chain.
4808 (_initialize_sol_thread): Use observer_attach_new_objfile.
4809 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4810 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4813 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4815 * gdbarch.sh (remote_translate_xfer_address): Remove.
4816 * gdbarch.h, gdbarch.c: Regenerate.
4817 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4818 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4819 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4820 call gdbarch_remote_translate_xfer_address.
4821 * frv-tdep.c (frv_gdbarch_init): Do not call
4822 set_gdbarch_remote_translate_xfer_address.
4823 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4824 (ia64_gdbarch_init): Do not install it.
4826 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4828 * NEWS: Mention change in handling the -tui option.
4830 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4832 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4835 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4837 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4838 (breakpoint_inserted_here_p): Call it.
4839 (software_breakpoint_inserted_here_p): Likewise.
4841 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4843 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4844 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4845 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4846 (inf_ptrace_store_register): Likewise.
4847 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4848 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4850 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4852 * linux-nat.c (linux_trad_target): Adapt parameter list.
4853 * linux-nat.h (linux_trad_target): Likewise.
4855 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4857 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4858 (mips_linux_cannot_store_register): Likewise.
4859 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4860 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4861 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4862 (mips64_linux_register_addr): Likewise.
4863 (mips_linux_register_u_offset): Adapt parameter list. Pass
4864 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4866 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4867 * config/mips/nm-linux.h: Delete file.
4869 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4871 * remote.c (remote_detach): Error out if remote can't detach.
4873 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4875 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4876 instruction's opcode in the "opcode" variable and declares new
4877 variable "closing_insn".
4879 2007-05-10 Chris Dearman <chris@mips.com>
4880 Maciej W. Rozycki <macro@mips.com>
4882 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4883 whitespace when setting a var_filename.
4885 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4887 * main.c (captured_main): Recognize -tui option and print an error
4888 message when the TUI is not configured.
4890 2007-05-09 Andreas Schwab <schwab@suse.de>
4892 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4893 set removed members.
4894 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4896 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4898 * gdbarch.sh (deprecated_store_struct_return): Remove.
4899 * gdbarch.c, gdbarch.h: Regenerate.
4900 * frv-tdep.c (frv_store_struct_return): Remove.
4901 (frv_gdbarch_init): Do not install it.
4903 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4905 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4906 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4907 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4909 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4911 * spu-linux-nat.c: Include "gdb_stdint.h".
4912 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4913 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4914 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4915 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4916 (spu_child_wait): Mark up string for translation.
4918 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4919 Luis Machado <luisgpm@br.ibm.com>
4921 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4922 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4923 BC_INSTRUCTION): Define.
4924 (deal_with_atomic_sequence): New function.
4925 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4926 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4927 gdbarch_software_single_step routine.
4929 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4931 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4932 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4933 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4934 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4935 spu_child_post_attach, spu_fetch_inferior_registers,
4936 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4937 memory addresses as ULONGEST, not CORE_ADDR.
4939 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4941 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4942 * gdbarch.h, gdbarch.c: Regenerate.
4944 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4945 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4946 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4948 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4949 Add REGCACHE argument. Use it instead of read/write_register.
4950 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4952 * config/pa/tm-hppah.h: Delete file.
4953 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4954 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4956 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4958 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4959 * NEWS: Mention improved C++ thunk support.
4960 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4961 * cp-abi.c (cplus_skip_trampoline): New.
4962 * cp-abi.h (cplus_skip_trampoline): New prototype.
4963 (struct cp_abi_ops): Add skip_trampoline member.
4964 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4965 (init_gnuv3_ops): Set skip_trampoline.
4967 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4969 * rs6000-tdep.c (struct frame_extra_info): Delete.
4971 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4973 * linux-thread-db.c: Update some FIXME comments.
4974 (thread_db_xfer_partial): Delete.
4975 (init_thread_db_ops): Do not set to_xfer_partial.
4977 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4979 * inftarg.c, infptrace.c: Remove files.
4980 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4981 (inftarg.o, infptrace.o): Remove rules.
4982 * gdbcore.h (register_addr): Remove prototype.
4983 * inferior.h (kill_inferior, store_inferior_registers,
4984 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4985 call_ptrace, pre_fork_inferior): Remove prototypes.
4986 * target.h (child_xfer_memory, child_pid_to_exec_file,
4987 child_core_file_to_sym_file, child_post_attach,
4988 child_post_startup_inferior, child_acknowledge_created_inferior,
4989 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4990 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4991 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4992 child_follow_fork, child_reported_exec_events_per_exec_call,
4993 child_has_exited, child_thread_alive): Remove prototypes.
4995 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4997 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4998 (sparc_store_inferior_registers): Likewise.
4999 * sparc-nat.c (fetch_inferior_registers): Rename to ...
5000 (sparc_fetch_inferior_registers): ... this.
5001 (store_inferior_registers): Rename to ...
5002 (sparc_store_inferior_registers): ... this.
5003 (sparc_target): Update callback names.
5004 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
5005 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
5007 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5009 * linux-nat.c (child_post_attach): Rename to ...
5010 (linux_child_post_attach): ... this. Make static.
5011 (child_follow_fork): Rename to ...
5012 (linux_child_follow_fork): ... this. Make static.
5013 (child_insert_fork_catchpoint): Rename to ...
5014 (linux_child_insert_fork_catchpoint): ... this. Make static.
5015 (child_insert_vfork_catchpoint): Rename to ...
5016 (linux_child_insert_vfork_catchpoint): ... this. Make static.
5017 (child_insert_exec_catchpoint): Rename to ...
5018 (linux_child_insert_exec_catchpoint): ... this. Make static.
5019 (child_pid_to_exec_file): Rename to ...
5020 (linux_child_pid_to_exec_file): ... this. Make static.
5022 (linux_handle_extended_wait): Update call.
5023 (linux_xfer_partial): Update callback routine names.
5025 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5027 * configure.host (alpha*-*-osf[12]*): Remove support.
5028 * NEWS: Mention removed configurations.
5030 * config/alpha/alpha-osf1.mh: Delete file.
5031 * config/alpha/alpha-osf2.mh: Delete file.
5032 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
5034 * config/alpha/nm-osf.h: Delete file.
5035 * config/alpha/nm-osf2.h: Delete file.
5036 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
5037 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
5038 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
5040 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
5041 (register_addr, kernel_u_size): Remove.
5042 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
5044 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5046 * regcache.c (regcache_invalidate): New function.
5047 (register_cached): Remove.
5048 (set_register_cached): Remove.
5049 (deprecated_registers_fetched): Remove.
5050 (registers_changed): Use regcache_invalidate instead
5051 of set_register_cached.
5052 (regcache_raw_read): Update comment.
5054 * regcache.h (regcache_invalidate): Add prototype.
5055 (register_cached): Remove.
5056 (set_register_cached): Remove.
5057 (deprecated_registers_fetched): Remove.
5059 * findvar.c (value_of_register): Do not call register_cached.
5060 * frame.c (frame_register): Likewise.
5061 * tui/tui-regs.c (tui_get_register): Likewise.
5063 * remote.c (fetch_register_using_p): Do not call set_register_cached.
5064 (process_g_packet): Likewise.
5065 (remote_fetch_registers): Likewise.
5066 * remote-sim.c (gdbsim_fetch_register): Likewise.
5067 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
5068 by regcache_invalidate.
5069 (mt_pseudo_register_write): Likewise.
5070 * sh-tdep.c (sh_pseudo_register_write): Likewise.
5072 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
5073 call by loop over regcache_raw_supply (..., NULL).
5075 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5077 * target.h (struct target_ops): Add REGCACHE parameter to
5078 to_prepare_to_store.
5079 (target_prepare_to_store): Likewise.
5080 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
5081 (update_current_target): Adapt prepare_to_store de_fault rule.
5083 * regcache.c (regcache_raw_write): Pass regcache to
5084 target_prepare_to_store.
5086 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
5087 Do not call CHILD_PREPARE_TO_STORE.
5088 * gnu-nat.c (gnu_prepare_to_store): Likewise.
5089 * procfs.c (procfs_prepare_to_store): Likewise.
5091 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
5092 * go32-nat.c (go32_prepare_to_store): Likewise.
5093 * monitor.c (monitor_prepare_to_store): Likewise.
5094 * nto-procfs.c (procfs_prepare_to_store): Likewise.
5095 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
5096 * remote-mips.c (mips_prepare_to_store): Likewise.
5097 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
5098 * win32-nat.c (win32_prepare_to_store): Likewise.
5100 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
5101 Use it instead of current_regcache.
5103 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
5104 parameter. Pass it on to next target.
5105 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
5107 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5109 * target.h (struct regcache): Add forward declaration.
5110 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
5111 and to_store_registers target operations.
5112 (target_fetch_registers, target_store_registers): Update.
5114 * regcache.c (regcache_raw_read): Replace register_cached by
5115 regcache_valid_p. Pass regcache to target_fetch_registers.
5116 (regcache_raw_write): Pass regcache to target_store_registers.
5118 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
5119 store_regs, store_wmmx_regs): Replace register_cached by
5122 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
5123 to target_fetch_registers calls.
5124 * corelow.c (core_open): Likewise.
5125 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
5126 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5127 ps_lsetfpregs): Likewise.
5128 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5129 ps_lsetfpregs): Likewise.
5130 * win32-nat.c (win32_resume): Likewise.
5131 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
5132 to target_store_registers call.
5133 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5135 * inferior.h (store_inferior_registers): Update prototype.
5136 (fetch_inferior_registers): Likewise.
5137 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
5138 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
5139 Update function pointer signatures.
5141 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
5142 use it instead of current_regcache, update calls.
5143 (aix_thread_store_registers): Likewise.
5144 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
5145 (alphabsd_store_inferior_registers): Likewise.
5146 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
5147 (amd64bsd_store_inferior_registers): Likewise.
5148 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
5149 (amd64_linux_store_inferior_registers): Likewise.
5150 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
5151 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
5152 fetch_wmmx_regs, store_wmmx_regs): Likewise.
5153 (arm_linux_fetch_inferior_registers): Likewise.
5154 (arm_linux_store_inferior_registers): Likewise.
5155 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
5156 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
5157 (store_register, store_regs, store_fp_register, store_fp_regs,
5158 armnbsd_store_registers): Likewise.
5159 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5160 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5161 (bsd_uthread_store_registers): Likewise.
5162 * corelow.c (get_core_registers): Likewise.
5163 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5164 go32_store_registers): Likewise.
5165 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5166 (hppabsd_store_registers): Likewise.
5167 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5168 (hppa_hpux_fetch_inferior_registers): Likewise.
5169 (hppa_hpux_store_register): Likewise.
5170 (hppa_hpux_store_inferior_registers): Likewise.
5171 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5172 (hppa_linux_fetch_inferior_registers): Likewise.
5173 (hppa_linux_store_inferior_registers): Likewise.
5174 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5175 (hpux_thread_store_registers): Likewise.
5176 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5177 (i386bsd_store_inferior_registers): Likewise.
5178 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5179 gnu_store_registers): Likewise.
5180 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5181 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5183 (i386_linux_fetch_inferior_registers): Likewise.
5184 (i386_linux_store_inferior_registers): Likewise.
5185 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5186 (ia64_linux_fetch_registers): Likewise.
5187 (ia64_linux_store_register): Likewise.
5188 (ia64_linux_store_registers): Likewise.
5189 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5190 (inf_child_store_inferior_registers): Likewise.
5191 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5192 (inf_ptrace_fetch_registers): Likewise.
5193 (inf_ptrace_store_register): Likewise.
5194 (inf_ptrace_store_registers): Likewise.
5195 * infptrace.c (fetch_register, store_register): Likewise.
5196 (fetch_inferior_registers, store_inferior_registers): Likewise.
5197 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5198 (m32r_linux_fetch_inferior_registers): Likewise.
5199 (m32r_linux_store_inferior_registers): Likewise.
5200 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5201 (m68kbsd_store_inferior_registers): Likewise.
5202 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5203 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5204 fetch_fpregs, store_fpregs): Likewise.
5205 (m68k_linux_fetch_inferior_registers): Likewise.
5206 (m68k_linux_store_inferior_registers): Likewise.
5207 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5208 (m88kbsd_store_inferior_registers): Likewise.
5209 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5210 (mips64obsd_store_inferior_registers): Likewise.
5211 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5212 (mips64_linux_regsets_store_registers): Likewise.
5213 (mips64_linux_fetch_registers): Likewise.
5214 (mips64_linux_store_registers): Likewise.
5215 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5216 (mipsnbsd_store_inferior_registers): Likewise.
5217 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5218 (monitor_fetch_registers, monitor_store_registers): Likewise.
5219 * nto-procfs.c (procfs_fetch_registers): Likewise.
5220 (procfs_store_registers): Likewise.
5221 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5222 fetch_register, supply_vrregset, fetch_altivec_registers,
5223 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5224 (store_altivec_register, store_spe_register, store_register,
5225 fill_vrregset, store_altivec_registers, store_ppc_registers,
5226 ppc_linux_store_inferior_registers): Likewise.
5227 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5228 (ppcnbsd_store_inferior_registers): Likewise.
5229 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5230 (ppcobsd_store_registers): Likewise.
5231 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5232 * remote.c (fetch_register_using_p, process_g_packet,
5233 fetch_registers_using_g, remote_fetch_registers): Likewise.
5234 (store_register_using_P, store_registers_using_G,
5235 remote_store_registers): Likewise.
5236 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5237 m32r_store_register, m32r_store_register): Likewise.
5238 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5239 * remote-sim.c (gdbsim_fetch_register): Likewise.
5240 (gdbsim_store_register): Likewise.
5241 * rs6000-nat.c (fetch_register, store_register): Likewise.
5242 (rs6000_fetch_inferior_registers): Likewise.
5243 (rs6000_store_inferior_registers): Likewise.
5244 * s390-nat.c (fetch_regs, store_regs): Likewise.
5245 (fetch_fpregs, store_fpregs): Likewise.
5246 (s390_linux_fetch_inferior_registers): Likewise.
5247 (s390_linux_store_inferior_registers): Likewise.
5248 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5249 (shnbsd_store_inferior_registers): Likewise.
5250 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5251 (sol_thread_store_registers): Likewise.
5252 * sparc-nat.c (fetch_inferior_registers): Likewise.
5253 (store_inferior_registers): Likewise.
5254 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5255 (spu_store_inferior_registers): Likewise.
5256 * target.c (debug_print_register): Likewise.
5257 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5258 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5259 (vaxbsd_store_inferior_registers): Likewise.
5260 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5261 (win32_fetch_inferior_registers): Likewise.
5262 (win32_store_inferior_registers): Likewise.
5264 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5266 * gdbcore.h (struct regcache): Add forward declaration.
5267 (struct core_fns): Add REGCACHE argument to core_read_registers
5269 * corelow.c (get_core_register_section): Add REGCACHE argument,
5270 use it instead of current_regcache, pass it to core_read_registers
5272 (get_core_registers): Add current_regcache as parameter to
5273 get_core_register_section calls.
5275 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5276 use it instead of current_regcache.
5277 * armnbsd-nat.c (fetch_core_registers): Likewise.
5278 (fetch_elfcore_registers): Likewise.
5279 * core-regset.c (fetch_core_registers): Likewise.
5280 * cris-tdep.c (fetch_core_registers): Likewise.
5281 * irix5-nat.c (fetch_core_registers): Likewise.
5282 * m68klinux-nat.c (fetch_core_registers): Likewise.
5283 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5284 * win32-nat.c (fetch_elf_core_registers): Likewise.
5286 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5288 * gregset.h (struct regcache): Add forward declaration.
5289 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5290 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5291 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5292 (fill_gregset): Add REGCACHE parameter.
5293 (fill_fpregset): Likewise.
5294 (fill_fpxregset): Likewise.
5296 Update all definitions accordingly:
5297 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5298 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5299 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5300 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5301 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5302 (supply_gregset): Add REGCACHE parameter, use it instead of
5303 current_regcache. Make GREGSETP parameter const, adapt casts.
5304 (supply_fpregset): Add REGCACHE parameter, use it instead of
5305 current_regcache. Make FPREGSETP parameter const, adapt casts.
5306 (fill_gregset): Add REGCACHE parameter, use it instead of
5308 (fill_fpregset): Likewise.
5310 Update all callers to pass in current_regcache as the new argument:
5311 * core-regset.c: Include "regcache.h".
5312 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5313 * procfs.c: Include "regcache.h".
5314 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5315 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5316 (procfs_do_thread_registers): Likewise.
5317 (procfs_make_note_section): Likewise.
5318 * proc-service.c: Include "regcache.h".
5319 (ps_lgetregs): Update fill_gregset call.
5320 (ps_lsetregs): Update supply_gregset call.
5321 (ps_lgetfpregs): Update fill_fpregset call.
5322 (ps_lsetfpregs): Update supply_fpregset call.
5323 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5324 supply_fpregset calls.
5325 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5326 (ps_lgetregs): Update fill_gregset call.
5327 (ps_lsetregs): Update supply_gregset call.
5328 (ps_lgetfpregs): Update fill_fpregset call.
5329 (ps_lsetfpregs): Update supply_fpregset call.
5331 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5332 fill_fpregset, and fill_fpxregset calls.
5333 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5334 (store_regs): Update fill_gregset call.
5335 (fetch_fpregs): Update supply_fpregset call.
5336 (store_fpregs): Update fill_fpregset call.
5337 (fetch_fpxregs): Update supply_fpxregset call.
5338 (store_fpxregs): Update fill_fpxregset call.
5339 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5340 (store_regs): Update fill_gregset call.
5341 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5342 (store_regs): Update fill_gregset call.
5343 (fetch_fpregs): Update supply_fpregset call.
5344 (store_fpregs): Update fill_fpregset call.
5345 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5346 * s390-nat.c (fetch_regs): Update supply_gregset call.
5347 (store_regs): Update fill_gregset call.
5348 (fetch_fpregs): Update supply_fpregset call.
5349 (store_fpregs): Update fill_fpregset call.
5351 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5354 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5356 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5357 it instead of current_regcache.
5358 (parse_register_dump): Add REGCACHE parameter, pass it to
5359 supply_register callback.
5360 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5361 parse_register_dump.
5362 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5363 parse_register_dump and dumpregs callback.
5364 (monitor_wait): Pass current_regcache to parse_register_dump and
5366 (monitor_fetch_register): Pass current_regcache to
5367 monitor_supply_register.
5368 (monitor_fetch_registers): Pass current_regcache to
5370 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5371 supply_register and dumpregs callbacks.
5372 (monitor_supply_register, monitor_dump_reg_block): Update
5374 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5375 it to monitor_supply_register.
5376 * dink32-rom.c (dink32_supply_register): Likewise.
5377 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5378 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5379 instead of current_regcache.
5381 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5383 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5384 Add REGCACHE parameter. Use it instead of current_regcache.
5385 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5386 i386nto_supply_gregset and i386nto_supply_fpregset.
5387 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5388 of current_regcache.
5390 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5391 nto_supply_ helper functions.
5392 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5394 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5396 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5397 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5398 and regset_fill member function pointers.
5399 (nto_dummy_supply_regset): Adapt prototype.
5401 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5403 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5404 instead of current_regcache. Make REGS const.
5405 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5406 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5408 * shnbsd-nat.c: Include "regcache.h".
5409 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5411 (shnbsd_store_inferior_registers): Pass current_regcache to
5413 * Makefile.in (shbsd-nat.o): Update dependencies.
5415 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5417 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5418 instead of current_regcache.
5419 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5420 Make GREGSETP const, remove superfluous casts.
5421 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5422 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5424 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5425 (supply_64bit_reg): Likewise
5426 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5427 Make GREGSETP const, adapt casts accordingly.
5428 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5429 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5431 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5432 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5434 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5435 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5436 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5438 * mips-linux-nat.c: Include "regcache.h".
5439 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5440 current_regcache to mips{64}_(supply|fill)_ helper routines.
5441 (mips64_linux_regsets_fetch_registers): Likewise.
5442 (mips64_linux_regsets_store_registers): Likewise.
5444 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5445 REGCACHE argument; replace current_regcache. Make REGS const.
5446 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5447 replace current_regcache.
5448 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5449 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5450 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5451 mipsnbsd_store_inferior_registers): Pass current_regcache to
5452 mipsnbsd_(supply|fill)_... helper routines.
5454 * Makefile.in (mips-linux-nat.o): Update dependencies.
5456 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5458 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5459 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5460 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5461 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5462 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5463 * i386gnu-nat.c (store_fpregs): Likewise.
5464 * i386v4-nat.c (fill_fpregset): Likewise.
5465 * go32-nat.c (store_register, go32_store_registers): Likewise.
5467 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5469 * cris-tdep.c (supply_gregset): Rename to ...
5470 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5471 instead of current_regcache.
5472 (fetch_core_registers): Update call. Pass current_regcache.
5474 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5476 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5477 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5478 Use it instead of current_regcache.
5479 (supply_fparegset): Rename to ...
5480 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5481 Use it instead of current_regcache.
5482 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5483 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5485 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5487 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5488 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5489 use it instead of current_regcache.
5490 * alpha-tdep.h (struct regcache): Add forward declaration.
5491 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5492 alpha_fill_fp_regs): Update prototypes.
5494 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5495 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5496 * alpha-linux-nat.c: Include "regcache.h".
5497 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5498 current_regcache to alpha_supply/fill_ routines.
5500 * alphabsd-tdep.c: Include "regcache.h".
5501 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5502 pass it to alpha_supply_ routines. Make REGS const.
5503 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5504 pass it to alpha_fill_ routines.
5505 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5506 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5507 alphabsd_fill_fpreg): Update prototypes.
5509 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5510 fill_fpregset, alphabsd_fetch_inferior_registers,
5511 alphabsd_store_inferior_registers): Pass current_regcache to
5512 alphabsd_supply/fill_ routines.
5514 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5517 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5519 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5520 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5521 instead of current_regcache.
5522 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5523 REGCACHE parameter, pass it to supply_ routines.
5524 (aix_thread_fetch_registers): Pass current_regcache to
5525 fetch_regs_user_thread and fetch_regs_kernel_thread.
5527 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5528 Add REGCACHE parameter, use it instead of current_regcache.
5529 Call regcache_valid_p instead of register_cached.
5530 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5531 Also, pass REGCACHE to fill_ routines.
5532 (aix_thread_store_registers): Pass current_regcache to
5533 store_regs_user_thread and store_regs_kernel_thread.
5535 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5537 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5538 pointed to by GREGSETP.
5540 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5542 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5543 of regcache_raw_read_signed.
5544 (fill_fpregset): Use regcache_raw_collect instead of
5547 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5549 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5550 point arguments, test explicitly for use of the EABI32 ABI
5551 instead of inferring this condition from tests on register
5554 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5556 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5557 prior to allocating its location.
5559 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5561 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5562 based on mips_abi_regsize() whose result is known in advance.
5563 (mips_o64_push_dummy_call): Likewise.
5565 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5567 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5568 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5570 * mips-linux-nat.c: Include "gregset.h".
5571 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5572 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5573 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5574 fill_fpregset): Move to mips-linux-nat.c.
5576 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5578 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5580 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5581 (read_register): ... here.
5582 (deprecated_write_register_gen): Remove, inline ...
5583 (write_register): ... here.
5584 * regcache.h (deprecated_read_register_gen): Remove prototype.
5585 (deprecated_write_register_gen): Likewise.
5587 * remote-sim.c (gdbsim_store_register): Replace call to
5588 deprecated_read_register_gen with regcache_cooked_read.
5589 * target.c (debug_print_register): Replace calls to
5590 deprecated_read_register_gen and read_register with
5591 regcache_cooked_read.
5593 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5595 * hpux-thread.c (hpux_thread_store_registers): Use
5596 regcache_raw_collect, not regcache_raw_read.
5597 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5598 not regcache_raw_write.
5600 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5602 * gdbarch.sh: Remove deprecated_register_byte.
5603 * gdbarch.c, gdbarch.h: Regenerate.
5604 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5605 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5607 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5608 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5609 read-only register caches. Make REGCACHE parameter const.
5610 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5612 * mi/mi-main.c (old_regs): Remove.
5613 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5614 (register_changed_p): Reimplement to compare two register caches.
5615 (mi_cmd_data_list_changed_registers): Update caller.
5616 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5617 * mi/mi-interp.c (mi_interpreter_init): Do not call
5618 mi_setup_architecture_data.
5620 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5622 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5623 inline definition at the places the macros are used.
5624 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5626 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5628 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5630 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5631 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5632 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5633 (rs6000_aix_regset_from_core_section): New function.
5634 (rs6000_aix_init_osabi): Register it.
5635 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5636 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5637 * rs6000-nat.c (CoreRegs): Do not define type.
5638 (fetch_core_registers, rs6000_core_fns): Remove.
5639 (_initialize_core_rs6000): Do not register it. Rename to ...
5640 (_initialize_rs6000_nat): ... this.
5641 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5643 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5645 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5646 (dwarf2_read_address): Sign extend return address as required by
5647 target architecture.
5649 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5651 * solib-frv.c (lm_base): Bail out if the main executable has
5654 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5656 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5657 of FPCR register in fpregset.
5659 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5661 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5662 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5664 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5666 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5667 * rs6000-nat.c (rs6000_wait): New function.
5668 (_initialize_core_rs6000): Install it as to_wait target method.
5669 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5671 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5673 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5674 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5675 * rs6000-nat.c (super_create_inferior): New variable.
5676 (rs6000_create_inferior): Make static. Adapt argument list. Call
5677 original version of create_inferior via super_create_inferior.
5678 (_initialize_core_rs6000): Install to_create_inferior target method.
5680 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5682 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5683 (aix_thread_xfer_partial): ... this.
5684 (init_aix_thread_ops): Install to_xfer_partial instead
5685 of deprecated_xfer_memory target method.
5687 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5688 and inftarg.o, add inf-ptrace.o.
5689 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5690 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5691 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5692 (fetch_inferior_registers): Rename to ...
5693 (rs6000_fetch_inferior_registers): ... this. Make static.
5694 (store_inferior_registers): Rename to ...
5695 (rs6000_store_inferior_registers): ... this. Make static.
5696 (read_word, child_xfer_memory): Remove.
5697 (rs6000_xfer_partial): New function.
5698 (kernel_u_size): Remove.
5699 (_initialize_core_rs6000): Add inf_ptrace-based target.
5700 * Makefile.in (rs6000-nat.o): Update dependencies.
5702 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5704 * inf-ptrace.c: Include "gdb_stdint.h".
5705 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5706 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5707 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5708 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5709 (inf_ptrace_store_register): Likewise.
5710 * Makefile.in (inf-ptrace.o): Update dependencies.
5712 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5714 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5715 * configure.tgt (rs6000-*-*): Likewise.
5716 * config/rs6000/aix4.mh: Delete file.
5717 * config/rs6000/aix4.mt: Delete file.
5718 * config/rs6000/rs6000.mh: Delete file.
5719 * config/rs6000/rs6000.mt: Delete file.
5721 * config/powerpc/nm-aix.h: Delete file.
5722 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5724 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5726 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5727 Remove obsolete part of comment.
5728 (store_regs_user_thread): Use uint32_t temporaries when calling
5730 (store_regs_kernel_thread): Likewise. Add assertion to verify
5731 correct size of struct ptsprs members.
5732 (aix_thread_xfer_memory): Fix type of myaddr.
5733 (aix_thread_extra_thread_info): Fix compiler warning.
5734 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5735 (fetch_register, store_register): Adapt callers.
5737 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5739 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5741 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5743 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5745 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5746 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5747 (alpha_linux_regset_from_core_section): New function.
5748 (alpha_linux_init_abi): Install it.
5749 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5750 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5751 <sys/procfs.h>, and "gregset.h".
5752 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5753 Move from config/alpha/nm-linux.h.
5754 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5756 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5757 * alpha-nat.c: Remove #ifdef __linux__ section.
5758 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5759 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5760 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5761 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5762 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5763 (NATDEPFILES): Remove alpha-nat.o.
5764 * config/alpha/nm-linux.h: Delete file.
5765 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5766 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5767 (alpha-linux-tdep.o): Likewise.
5769 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5771 * mips-linux-nat.c: No longer include "gdbcore.h".
5772 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5773 (mips64_linux_register_addr): Likewise.
5774 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5775 mips64_linux_register_addr instead of register_addr.
5776 * mips-linux-tdep.c (mips_linux_register_addr,
5777 mips64_linux_register_addr): Move to mips-linux-nat.c.
5778 (register_addr): Remove.
5779 (register_addr_data, init_register_addr_data): Remove.
5780 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5781 (set_mips_linux_register_addr): Remove.
5782 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5783 * Makefile.in (mips-linux-nat.o): Update dependencies.
5785 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5787 * linux-nat.c (linux_register_u_offset): Remove.
5788 (linux_target_install_ops): New function.
5789 (linux_target): Use it.
5790 (linux_trad_target): New function.
5791 * linux-nat.h (linux_trad_target): Declare.
5793 * alpha-linux-nat.c: Include "gdbcore.h".
5794 (alpha_linux_register_u_offset): New function.
5795 (_initialize_alpha_linux_nat): Use linux_trad_target.
5797 * mips-linux-nat.c: Include "gdbcore.h".
5798 (mips_linux_register_u_offset): New function.
5799 (_initialize_mips_linux_nat): Use linux_trad_target.
5801 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5802 * config/arm/nm-linux.h: Delete file.
5804 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5805 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5807 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5808 * config/ia64/nm-linux.h: Delete file.
5810 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5811 * config/m32r/nm-linux.h: Delete file.
5813 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5814 * config/m68k/nm-linux.h: Delete file.
5816 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5817 * config/pa/nm-linux.h: Delete file.
5819 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5820 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5821 * config/powerpc/nm-linux.h: Delete file.
5823 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5824 * config/s390/nm-linux.h: Delete file.
5826 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5827 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5828 * config/sparc/nm-linux.h: Delete file.
5830 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5831 (mips-linux-nat.o): Likewise.
5833 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5835 * core-aout.c: Delete file.
5836 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5837 (core-aout.o): Delete rule.
5838 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5840 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5842 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5843 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5844 KERNEL_U_ADDR): Remove.
5846 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5847 (cannot_fetch_register, cannot_store_register): Remove.
5848 (fetch_register): Inline cannot_fetch_register and register_addr.
5849 (store_register): Inline cannot_store_register and register_addr.
5850 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5851 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5852 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5855 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5856 (fetch_register): Inline register_addr.
5857 (store_register): Inline register_addr.
5858 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5859 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5860 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5862 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5863 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5864 REGISTER_U_ADDR): Remove.
5866 * hppa-linux-nat.c (register_addr): Rename to ...
5867 (hppa_linux_register_addr): ... this. Make static.
5868 (fetch_register, store_register): Adapt callers.
5869 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5871 * ppc-linux-nat.c (kernel_u_size): Remove.
5872 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5874 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5875 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5877 * config/vax/nm-vax.h: Delete file.
5879 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5881 * MAINTAINERS (Write After Approval): Add myself.
5883 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5885 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5886 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5887 (m68k_linux_sigcontext_reg_offset): Fix typo.
5888 (target_is_uclinux): New.
5889 (m68k_linux_inferior_created): New.
5890 (m68k_linux_get_sigtramp_info): Check for uClinux or
5891 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5893 (_initialize_m68k_linux_tdep): Register
5894 m68k_linux_inferior_created.
5896 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5898 * win32-nat.c (win32_detach): Remove delete_command call.
5899 Resume inferior with win32_resume instead of win32_continue.
5901 2007-04-19 Jerome Guitton <guitton@adacore.com>
5903 * ser-mingw.c (fd_is_file): New function.
5904 (file_select_thread): New function.
5905 (ser_console_wait_handle): Add special handling for files.
5907 2007-04-18 Denis Pilat <denis.pilat@st.com>
5909 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5910 when missing from DW_TAG_subrange_type. Remove the handling of null
5911 return from die_type.
5913 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5915 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5916 change to rearrange some brackets.
5917 (mips_n32n64_push_dummy_call): Likewise.
5918 (mips_o32_push_dummy_call): Likewise.
5919 (mips_o64_push_dummy_call): Likewise.
5921 2007-04-18 Denis Pilat <denis.pilat@st.com>
5923 * infcmd.c (post_create_inferior): Start with a call to
5924 target_terminal_ours.
5926 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5928 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5930 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5932 (mips_o32_push_dummy_call): Likewise.
5933 (mips_o64_push_dummy_call): Likewise.
5935 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5937 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5940 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5942 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5944 (mips_o32_push_dummy_call): Likewise.
5946 2007-04-17 Andreas Schwab <schwab@suse.de>
5948 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5949 sal to be bigger than the end of the function.
5951 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5952 Nigel Stephens <nigel@mips.com>
5954 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5955 argument alignment requirements when calculating stack space
5956 required. When aligning an arg register to eight bytes
5957 boundary, align stack_offset too. Write floating-point
5958 arguments to the appropriate integer register if need go there.
5959 (mips_o64_push_dummy_call): Likewise.
5961 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5963 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5964 "sig" arguments, add "regcache" argument.
5965 * gdbarch.c, gdbarch.h: Regenerate.
5967 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5968 (handle_inferior_event): Call remove_single_step_breakpoints directly
5969 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5971 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5972 Remove handling of !insert_breakpoints_p case.
5973 * arm-tdep.c (arm_software_single_step): Likewise.
5974 * cris-tdep.c (cris_software_single_step): Likewise.
5975 * mips-tdep.c (mips_software_single_step): Likewise.
5976 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5977 * sparc-tdep.c (sparc_software_single_step): Likewise.
5978 * spu-tdep.c (spu_software_single_step): Likewise.
5980 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5981 * mips-tdep.h (mips_software_single_step): Likewise.
5982 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5983 * sparc-tdep.h (sparc_software_single_step): Likewise.
5985 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5987 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5988 when removing single-step breakpoints.
5990 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5992 * varobj.h (varobj_set_frozen): New
5993 (varobj_get_frozen): New.
5994 (varobj_update): New parameter explicit.
5995 * varobj.c (struct varobj): New fields frozen
5997 (varobj_set_frozen, varobj_get_frozen): New.
5998 (install_new_value): Don't fetch values for
5999 frozen variable object, or children thereof. Allow
6000 a frozen variable object to have non-fetched value.
6001 (varobj_update): Allow updating child variables.
6002 Don't traverse frozen children.
6003 (new_variable): Initialize the frozen field.
6004 (c_value_of_variable): Return NULL for frozen
6005 variable without any value yet.
6006 * mi/mi-cmd-var.c (varobj_update_one): New parameter
6008 (mi_cmd_var_create): Output the 'frozen' field,
6009 as soon as testsuite is adjusted to expect that field.
6010 (mi_cmd_var_set_frozen): New.
6011 (mi_cmd_var_update): Pass the 'explicit' parameter to
6013 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
6014 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
6016 2007-04-13 Paul Brook <paul@codesourcery.com>
6018 * target-descriptions.c (tdesc_named_type): Add ieee_single and
6020 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
6022 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6024 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
6025 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
6026 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
6027 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
6028 * Makefile.in: Remove references to deleted files.
6029 * README: Do not mention deleted ROM monitor interfaces.
6030 * defs.h (enum language): Delete language_scm.
6031 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
6032 (dump_subexp_body_standard): Likewise.
6033 * parse.c (operator_length_standard): Likewise.
6034 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
6035 * remote-mips.c: Do not include remote-utils.h.
6036 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
6038 * value.c: Do not include scm-lang.h.
6039 (unpack_long): Delete scm_unpack call.
6040 * config/h8300/h8300.mt, config/mips/embed.mt,
6041 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
6042 config/sh/embed.mt, config/sh/linux.mt: Remove references to
6044 * NEWS: Mention removed files.
6046 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6048 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
6049 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
6051 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6053 * NEWS: Mention removal of HP aCC support.
6055 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6057 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
6058 first entry for static executables.
6059 (breakpoint_addr): Delete unused variable.
6060 (elf_locate_base): Search for _r_debug in static executables.
6061 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
6064 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6066 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
6067 (bpstat_what, print_one_breakpoint, allocate_bp_location)
6068 (mention): Remove bp_through_sigtramp support.
6069 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
6071 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6073 * breakpoint.c (bpstat_what): Give step-resume higher priority than
6076 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6078 * infrun.c: Doc fixes.
6079 (handle_inferior_event): Clarify debug message.
6080 (insert_step_resume_breakpoint_at_sal): Print a debug message.
6082 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6084 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
6086 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6088 * config/m68k/tm-monitor.h: Delete file.
6089 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
6090 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
6092 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
6093 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
6095 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
6097 * gdbarch.sh (software_single_step): Change the return type
6098 from void to int and reformatted some comments to <= 80
6100 * gdbarch.c, gdbarch.h: Regenerated.
6101 * alpha-tdep.c (alpha_software_single_step): Likewise.
6102 * alpha-tdep.h (alpha_software_single_step): Likewise.
6103 * arm-tdep.c (arm_software_single_step): Likewise.
6104 * cris-tdep.c (cris_software_single_step): Likewise.
6105 * mips-tdep.c (mips_software_single_step): Likewise.
6106 * mips-tdep.h (mips_software_single_step): Likewise.
6107 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6108 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6109 * sparc-tdep.c (sparc_software_single_step): Likewise.
6110 * sparc-tdep.h (sparc_software_single_step): Likewise.
6111 * spu-tdep.c (spu_software_single_step): Likewise.
6112 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
6113 and act accordingly.
6115 2007-04-11 Steve Ellcey <sje@cup.hp.com>
6117 * configure.ac (build_warnings): Add -Wno-char-subscripts.
6118 * configure: Regenerate.
6119 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
6121 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6123 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
6125 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6127 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
6129 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
6130 distinct on the TYPE_STUB_SUPPORTED debug targets.
6131 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
6133 2007-04-11 Joel Brobecker <brobecker@adacore.com>
6135 * sparc-tdep.c (X_RS2): New macro.
6136 (sparc_skip_stack_check): New function.
6137 (sparc_analyze_prologue): Adjust PC past stack probing
6138 sequence if necessary.
6140 2007-04-10 Andreas Schwab <schwab@suse.de>
6142 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
6145 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6147 * breakpoint.c (gdb_breakpoint_query): Really return an
6149 (gdb_breakpoint): Likewise.
6150 * thread.c (gdb_list_thread_ids): Likewise.
6151 (gdb_thread_select): Likewise.
6152 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
6153 (mi_cmd_thread_list_ids): Remove bogus initialization.
6155 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6157 * Makefile.in (SFILES): Remove hpacc-abi.c.
6158 (COMMON_OBS): Remove hpacc-abi.o.
6159 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6160 (hpacc-abi.o, hpread.o): Delete rules.
6161 * somread.c: Delete extern declarations from hpread.c.
6162 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6163 (som_symfile_finish): Do not call hpread_symfile_finish.
6164 (som_symfile_init): Do not call hpread_symfile_init.
6165 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6166 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6167 * hpacc-abi.c, hpread.c: Deleted.
6169 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6171 * solib-svr4.c (enable_break): Simplify return value.
6172 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6174 2007-04-10 Andreas Schwab <schwab@suse.de>
6176 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6177 l_ld_size, l_next_size, l_prev_size, l_name_size.
6179 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6180 to extract addresses from link map.
6181 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6182 (LM_NEXT): Likewise.
6183 (LM_NAME): Likewise.
6184 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6185 (elf_locate_base): Likewise.
6186 (open_symbol_file_object): Likewise.
6187 (svr4_fetch_objfile_link_map): Likewise.
6188 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6189 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6191 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6192 (svr4_lp64_fetch_link_map_offsets): Likewise.
6194 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6195 removed members. Set l_ld_offset to -1 if not present.
6197 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6199 Pass stderr of program run with "target remote |"
6201 * serial.c (serial_open): Set error_fd to -1.
6202 * serial.h (struct serial): New field error_fd.
6203 (struct serial_opts): New field avail.
6204 * ser-pipe.c (pipe_open): Create another pair
6205 of sockets. Pass stderr to gdb.
6206 * ser-mingw.c (pipe_windows_open): Pass
6207 PEX_STDERR_TO_PIPE to pex_run. Initialize
6210 (_initialize_ser_windows): Hook pipe_avail.
6211 * ser-base.c (generic_readchar): Check if there's
6212 anything in stderr channel and route that to gdb_stderr.
6214 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6216 * dbxread.c (read_ofile_symtab): Move current_objfile
6217 clearing to after end_stabs.
6219 2007-04-01 Andreas Schwab <schwab@suse.de>
6221 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6222 gdbarch instead of current_gdbarch.
6224 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6226 * varobj.c (varobj_create): Keep varobj value
6227 NULL when evaluating the type.
6229 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6231 * NEWS: Mention new Windows CE support.
6233 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6235 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6236 the obsoletion stanza.
6237 * NEWS: Mention deleted targets.
6239 * config/sh/tm-wince.h: Remove.
6240 * config/sh/wince.mt: Remove.
6241 * config/mips/tm-wince.h: Remove.
6242 * config/mips/wince.mt: Remove.
6245 * wince-stub.c: Remove.
6246 * wince-stub.h: Remove.
6247 * Makefile.in (wince.o): Remove rule.
6248 (wince-stub.o): Likewise.
6250 * mips-tdep.c (mips_next_pc): Make static.
6251 * mips-tdep.h (mips_next_pc): Remove declaration.
6252 * arm-tdep.c (arm_pc_is_thumb): Make static.
6253 (thumb_get_next_pc): Likewise.
6254 (arm_get_next_pc): Likewise.
6255 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6256 (arm_pc_is_thumb): Likewise.
6257 (thumb_get_next_pc): Likewise.
6258 (arm_get_next_pc): Likewise.
6260 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6262 * MAINTAINERS: Remove d10v entry.
6263 * Makefile.in (SFILES): Remove dwarfread.c.
6264 (COMMON_OBS): Remove dwarfread.o.
6265 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6266 (remote-est.o, rom68k-rom.o): Delete.
6267 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6268 target est, target rom68k, and DWARF 1.
6269 * configure.tgt: Mark d10v as removed.
6270 * dwarf2read.c: Doc update.
6271 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6273 (elf_locate_sections): Do not set them.
6274 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6275 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6276 * config/m68k/monitor.mt (TDEPFILES): Prune.
6277 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6278 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6280 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6282 * doublest.c (convert_floatformat_to_doublest): Use
6283 floatformat_classify.
6284 (floatformat_is_nan): Rename to...
6285 (floatformat_classify): ...this. Return more information.
6286 * doublest.h (enum float_kind): New.
6287 (floatformat_is_nan): Replace prototype...
6288 (floatformat_classify): ...with this one.
6289 * valprint.c (print_floating): Use floatformat_classify. Handle
6292 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6294 * README: Mention ISO C library requirement.
6296 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6298 * Makefile.in (SFILES): Remove nlmread.c.
6299 (COMMON_OBS): Remove nlmread.o.
6300 (nlmread.o): Delete rule.
6301 * README: Delete reference to remote-st.c.
6302 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6303 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6305 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6306 (_initialize_i386_tdep): Do not reference them.
6307 * nlmread.c: Delete file.
6308 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6309 * target.c: Doc update.
6310 * thread.c: Delete commented include.
6311 * config/alpha/tm-alpha.h: Doc update.
6313 2007-03-30 Chris Dearman <chris@mips.com>
6315 * utils.c (string_to_core_addr): Comment typo.
6317 2007-03-30 Chris Dearman <chris@mips.com>
6319 * mips-tdep.c: Comment typo.
6321 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6323 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6324 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6325 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6326 * config/powerpc/nm-ppc64-linux.h: Remove file.
6327 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6328 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6329 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6330 * infptrace.c (call_ptrace): Likewise.
6331 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6332 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6333 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6334 (store_register): Likewise.
6336 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6338 * Makefile.in (varobj.o): Add missing dependency.
6340 2007-03-29 Michael Snyder <msnyder@access-company.com>
6342 * MAINTAINERS: Update my email address.
6344 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6346 Add support for exception handling with multiple versions of
6348 * ada-lang.c: Update general comments on how Ada exception catchpoints
6350 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6351 (__gnat_raise_nodefer_with_msg): Delete.
6352 (ada_unhandled_exception_name_addr_ftype): New type.
6353 (exception_support_info): New type.
6354 (ada_unhandled_exception_name_addr): Add forward declaration.
6355 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6356 (default_exception_support_info): New constant.
6357 (exception_support_info_fallback): Likewise.
6358 (exception_info): New global variable.
6359 (ada_exception_support_info_sniffer): New function.
6360 (ada_executable_changed_observer): Likewise.
6361 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6362 ada_unhandled_exception_name_addr.
6363 (ada_unhandled_exception_name_addr): Reimplement to match the
6364 latest Ada runtime implementation.
6365 (error_breakpoint_runtime_sym_not_found): Delete.
6366 (ada_exception_sym_name): Get the exception sym name from
6367 exception_info rather than hardcoding it.
6368 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6369 Update error handling.
6370 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6372 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6374 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6375 (remote-st.o, uw-thread.o): Delete.
6376 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6377 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6378 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6379 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6380 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6381 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6382 rs6000-*-lynxos* to an obsoletion stanza.
6383 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6384 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6385 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6386 i[34567]86-*-netware*.
6387 * NEWS: Mention deleted targets.
6389 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6390 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6391 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6392 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6393 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6394 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6395 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6396 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6397 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6398 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6399 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6400 config/rs6000/tm-rs6000ly.h: Delete files.
6402 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6404 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6405 * interps.c (clear_interpreter_hooks): Do not clear
6406 deprecated_registers_changed_hook.
6407 * regcache.c (registers_changed): Do not call it.
6408 * top.c (deprecated_registers_changed_hook): Do not define it.
6409 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6410 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6411 (tui_remove_hooks): Do not remove it.
6412 (tui_selected_frame_level_changed_hook): Check for negative level.
6413 Use get_selected_frame.
6414 (tui_registers_changed_hook): Deleted.
6416 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6418 * stabsread.c (add_undefined_type): Add extra parameter.
6419 Now handles nameless types separately.
6420 (struct nat): New type.
6421 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6422 New static variables.
6423 (read_type): Update calls to add_undefined_type.
6424 (add_undefined_type_noname): New function.
6425 (add_undefined_type_1): Renames from add_undefined_type.
6426 (cleanup_undefined_types_noname): New function.
6427 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6428 (cleanup_undefined_types): New handles nameless types separately.
6429 (_initialize_stabsread): Initialize our new static constants.
6431 2007-03-29 Denis Pilat <denis.pilat@st.com>
6433 * configure.ac: Test for signal.h.
6434 * configure, config.in: Regenerate.
6436 2007-03-29 Denis Pilat <denis.pilat@st.com>
6438 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6439 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6441 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6443 * arm-wince-tdep.c: New.
6444 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6445 (MT_CFLAGS): Delete.
6447 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6448 solib-legacy.o, solib-svr4.o, and remove wince.o.
6449 * configure.tgt (arm*-*-mingw32ce*): Add.
6450 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6451 (do_target_signal_to_host): Silence 'not used' warning.
6452 * config/arm/tm-wince.h: Remove.
6454 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6456 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6457 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6459 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6460 * config/ia64/tm-linux.h: Remove file.
6461 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6462 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6463 legacy_pc_in_sigtramp.
6464 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6465 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6466 Remove func_name argument.
6467 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6469 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6470 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6471 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6472 (HAVE_STEPPABLE_WATCHPOINT): Define.
6474 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6475 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6476 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6477 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6478 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6479 target_insert_watchpoint, target_remove_watchpoint): Remove.
6480 (FETCH_INFERIOR_REGISTERS): Define.
6481 * ia64-linux-nat.c (ia64_register_addr): Make static.
6482 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6483 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6484 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6485 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6486 (ia64_linux_stopped_by_watchpoint): Make static.
6487 (ia64_linux_can_use_hw_breakpoint): New function.
6488 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6489 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6490 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6492 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6494 * linespec.c: Include language.h.
6495 (find_methods): Add language parameter. Call
6496 lookup_symbol_in_language. Pass language down.
6497 (add_matching_methods): Likewise. Call
6498 lookup_symbol_in_language.
6499 (add_constructors): Likewise.
6500 (find_method): Pass sym_class to collect_methods.
6501 (collect_methods): Add sym_class parameter. Pass language
6503 * symtab.c (lookup_symbol): Rename to ...
6504 (lookup_symbol_in_language): ... this. Add language
6505 parameter. Use passed language instead of current_language.
6506 (lookup_symbol): New as wrapper around
6507 lookup_symbol_in_language.
6508 (lookup_symbol_aux): Add language parameter. Use passed
6509 language instead of current_language.
6510 (search_symbols): Indent.
6511 * symtab.h (enum language): Forward declare.
6512 (lookup_symbol_in_language): Declare.
6513 (lookup_symbol): Update description.
6514 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6515 * ada-lang.c (restore_language): Remove.
6516 (lookup_symbol_in_language): Remove.
6518 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6520 * breakpoint.c (bpstat_num): Add int *num parameter.
6521 * breakpoint.h (bpstat_num): Likewise.
6522 * infcmd.c (continue_command): Adjust to new bpstat_num
6524 (program_info): Likewise.
6526 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6528 * config/sh/tm-sh.h: Remove file.
6529 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6530 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6531 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6532 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6534 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6536 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6537 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6538 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6539 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6540 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6541 sequence if target_shortname is "remote".
6543 2007-03-27 Anton Blanchard <anton@samba.org>
6545 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6546 instead of wordsize when looking for the LR in a stack frame.
6548 2007-03-27 Andreas Schwab <schwab@suse.de>
6549 Daniel Jacobowitz <dan@codesourcery.com>
6551 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6552 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6553 argument. Update all callers.
6554 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6555 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6556 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6557 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6558 (dwarf2_frame_set_adjust_regnum): ...this.
6559 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6560 * rs6000-tdep.c: Include "dwarf2-frame.h".
6561 (rs6000_adjust_frame_regnum): Define.
6562 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6563 Register rs6000_adjust_frame_regnum.
6565 * Makefile.in (rs6000-tdep.o): Update dependencies.
6567 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6569 * Makefile.in: Add support for a "pdf" target.
6571 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6573 * amd64-tdep.c (amd64_init_frame_cache): New function.
6574 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6576 2007-03-26 Nigel Stephens <nigel@mips.com>
6577 Maciej W. Rozycki <macro@mips.com>
6579 * ui-out.c (ui_out_field_core_addr): Truncate address to
6580 TARGET_ADDR_BIT size before printing.
6582 2007-03-22 Nigel Stephens <nigel@mips.com>
6583 Maciej W. Rozycki <macro@mips.com>
6585 * remote-mips.c (mips_xfer_memory): Update prototype.
6587 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6589 * symfile.h: #include "symtab.h"
6591 2007-03-22 Denis Pilat <denis.pilat@st.com>
6593 * utils.c (pagination_on_command, pagination_off_command):
6594 Remove useless prototypes.
6596 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6599 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6600 instead of TYPE_NAME for object base class name.
6603 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6605 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6606 Specify frame type in calls to frame_func_unwind().
6608 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6610 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6611 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6612 (refine_prologue_limit): Delete.
6613 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6614 Assume lim_pc is set. Correct check for incomplete prologues.
6615 Do not skip clobbers of the frame pointer.
6616 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6619 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6621 * frame.c (frame_pop): Check to see whether there's a frame to
6622 which we can pop first.
6624 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6626 * MAINTAINERS (Write After Approval): Add myself.
6628 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6630 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6631 (handle_inferior_event): Remove unnecessary braces.
6632 * breakpoint.c (bpstat_what): Remove wrong comment.
6634 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6636 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6637 (spu_gdbarch_init): Install it.
6639 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6641 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6642 object types, not 0.
6644 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6646 * spu-tdep.c (spu_frame_align): New function.
6647 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6649 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6651 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6652 (spu_software_single_step): Likewise.
6653 (spu_read_pc, spu_write_pc): New functions.
6654 (spu_gdbarch_init): Install them.
6656 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6658 * cli/cli-dump.c (struct callback_data): load_offset needs to
6659 have signed long type.
6661 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6663 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6664 Revert the previous change that had some unexpected side-effects
6666 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6667 function to get the address of the calling instruction.
6669 2007-03-07 Denis Pilat <denis.pilat@st.com>
6671 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6672 get_selected_frame by deprecated_safe_get_selected_frame.
6674 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6676 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6677 "gdb_string.h". Don't include "nbsd-tdep.h".
6678 (SIZEOF_STRUCT_REG): Remove.
6679 (SHNBSD_SIZEOF_GREGS): New.
6680 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6681 (shnbsd_regset_from_core_section): New functions.
6682 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6683 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6684 shnbsd_supply_gregset, shnbsd_collect_gregset.
6685 (shnbsd_gregset): New variable.
6686 (shnbsd_init_abi): Set regset_from_core_section.
6687 (GDB_OSABI_NETBSD_CORE): New define.
6688 (shnbsd_core_osabi_sniffer): New function.
6689 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6690 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6691 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6693 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6695 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6697 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6698 length of the types referenced by the new type CV ring.
6700 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6702 * frame.c (frame_pop, frame_observer_target_changed): Call
6704 (flush_cached_frames): Rename to reinit_frame_cache and delete
6706 * frame.h (flush_cached_frames): Delete prototype and update comment.
6708 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6709 reinit_frame_cache instead of flush_cached_frames. Do not call
6710 select_frame after reinit_frame_cache.
6711 * corelow.c (core_open): Likewise.
6712 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6713 * infrun.c (prepare_to_proceed, context_switch)
6714 (handle_inferior_event): Likewise.
6715 * linux-fork.c (fork_load_infrun_state): Likewise.
6716 * ocd.c (ocd_start_remote): Likewise.
6717 * remote-e7000.c (e7000_start_remote): Likewise.
6718 * remote-mips.c (device): Likewise.
6719 * thread.c (switch_to_thread): Likewise.
6720 * tracepoint.c (finish_tfind_command): Likewise.
6721 * gdbarch.c: Regenerated.
6723 2007-02-28 Jerome Guitton <guitton@adacore.com>
6724 Joel Brobecker <brobecker@adacore.com>
6726 * gdbtypes.c (check_typedef): Do not replace stub type if
6727 the resolved type is not defined in the same objfile.
6729 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6731 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6733 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6735 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6736 symbol for Ada units when the symbol is defined using 't' rather
6737 than 'Tt' as symbol descriptor.
6739 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6741 * config/mips/tm-nbsd.h: Delete file.
6742 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6743 * config/sh/tm-nbsd.h: Delete file.
6744 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6746 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6748 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6749 unused WRONG_PARAM value since it was recently deleted.
6751 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6753 * varobj.c (varobj_update): Free temporary vectors.
6755 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6757 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6758 * config/powerpc/tm-linux.h: Delete file.
6759 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6760 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6761 (TEXT_SEGMENT_BASE): Do not redefine.
6762 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6763 from config/rs6000/tm-rs6000.h.
6764 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6765 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6766 (TEXT_SEGMENT_BASE): Remove.
6767 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6768 (rs6000_in_solib_return_trampoline): Remove.
6769 (SKIP_TRAMPOLINE_CODE): Remove.
6770 (rs6000_skip_trampoline_code): Remove.
6771 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6772 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6773 (FP0_REGNUM): Remove.
6774 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6775 (rs6000_set_host_arch_hook): Remove.
6776 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6777 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6778 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6779 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6780 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6781 * rs6000-nat.c: Include "rs6000-tdep.h".
6782 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6783 (set_host_arch): Rename to ...
6784 (rs6000_create_inferior): ... this. Make public.
6785 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6786 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6787 (rs6000_create_inferior): Remove.
6788 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6789 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6790 set_gdbarch_in_solib_return_trampoline, and
6791 set_gdbarch_skip_trampoline_code.
6792 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6793 from config/rs6000/tm-rs6000.h.
6795 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6797 * buildsym.c (record_producer): Do nothing if no producer is provided.
6799 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6801 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6802 to check changelist is non-NULL. Call error if the frontend tries
6803 to update a non-root variable.
6805 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6807 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6809 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6810 (dwarf2_frame_sniffer): Update.
6811 (dwarf2_signal_frame_this_id): New function.
6812 (dwarf2_signal_frame_unwind): Use it.
6813 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6814 * frame.c (frame_func_unwind): Add this_type argument.
6815 (get_frame_func): Update.
6816 (frame_unwind_address_in_block): Add this_type argument and check it.
6818 (get_frame_address_in_block): Update.
6819 * frame.h (enum frame_type): Move higher in the file.
6820 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6823 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6824 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6825 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6826 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6827 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6828 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6829 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6830 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6831 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6832 frame_func_unwind and frame_unwind_address_in_block to specify
6833 the frame type. Use frame_unwind_address_in_block instead of
6834 frame_pc_unwind in sniffers.
6836 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6838 * frame.c (deprecated_selected_frame): Rename to...
6839 (selected_frame): ...this. Make static.
6840 (get_selected_frame, select_frame): Update.
6841 * frame.h (deprected_select_frame): Delete.
6842 (deprecated_safe_get_selected_frame): Update comments.
6844 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6845 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6846 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6847 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6848 tui/tui.c: Replace references to deprecated_selected_frame.
6850 2007-02-27 Fred Fish <fnf@specifix.com>
6852 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6853 directly decrement the stack pointer, accumulate their operand into
6854 the stack offset, and mark the function as not being frameless.
6856 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6858 * arch-utils.c (selected_byte_order): New.
6859 * arch-utils.h (selected_byte_order): New prototype.
6860 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6862 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6864 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6865 (default_symfile_offsets): Check VMA here. Update section VMAs.
6867 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6869 * remote.c (init_remote_state): Add special handling for placeholder
6872 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6874 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6875 (filenames_h): New variable.
6876 (clean): Clean up xml-builtin.c and stamp-xml.
6877 (arm-linux-nat.o): Update.
6878 * config/arm/linux.mh (TDEP_XML): Define.
6879 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6880 (arm_linux_has_wmmx_registers): New.
6881 (GET_THREAD_ID): Fix typo.
6882 (IWMMXT_REGS_SIZE): Define.
6883 (fetch_wmmx_regs, store_wmmx_regs): New.
6884 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6885 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6886 (super_xfer_partial, arm_linux_xfer_partial): New.
6887 (_initialize_arm_linux_nat): Use them.
6888 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6889 (xml_builtin_xfer_partial): New function.
6890 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6891 * NEWS: Update mention of iWMMXt support.
6893 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6895 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6896 if there are no FPA registers.
6897 (arm_dwarf_reg_to_regnum): New function.
6898 (arm_register_type, arm_register_name): Return minimal values for
6899 unsupported registers.
6900 (arm_register_sim_regno): Handle iWMMXt registers.
6901 (arm_gdbarch_init): Record missing FPA registers if indicated by
6902 a target description. Recognize iWMMXt registers. Only register
6903 "info float" for FPA. Use ARM_NUM_REGS. Register
6904 arm_dwarf_reg_to_regnum.
6905 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6907 (struct gdbarch_tdep): Add have_fpa_registers.
6908 * features/xscale-iwmmxt.xml: Update capitalization.
6909 * regformats/arm-with-iwmmxt.dat: Regenerated.
6911 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6913 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6915 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6917 * MAINTAINERS (mep): New target.
6919 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6921 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6923 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6924 (mep-tdep.o): New rule.
6925 * configure.tgt (mep-*-*): New target.
6926 * mep-tdep.c: New file.
6927 * config/mep/mep.mt: New file.
6929 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6931 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6932 BREAKPOINT_HIT and STOP_UNKNOWN.
6934 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6936 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6938 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6940 * gdb_expat.h (XMLCALL): Define if not already defined.
6942 2007-02-20 Andreas Schwab <schwab@suse.de>
6944 * Makefile.in (symfile.o): Update dependencies.
6946 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6948 * MAINTAINERS: Disable -Werror for cris simulator. Build
6949 sparc64-solaris2.10 instead of the broken sparc-elf.
6950 * solib-frv.c: Include "solib.h".
6951 * Makefile.in (solib-frv.o): Update.
6952 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6953 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6954 (xtensa_frame_this_id, xtensa_frame_prev_register)
6955 (xtensa_push_dummy_call): Use %p.
6957 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6959 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6960 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6961 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6962 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6963 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6964 (sparc-linux-tdep.o): Update.
6966 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6968 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6969 (xtensa_mask_t): Change mask field to be a separate array.
6970 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6971 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6972 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6973 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6974 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6975 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6976 (mask14, mask15): Rename to
6977 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6978 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6979 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6980 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6981 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6982 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6983 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6984 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6985 (xtensa_submask14, xtensa_submask15): New.
6986 (rmap): Follow strict aliasing rules doing static initialization.
6988 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6990 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6991 handling from here...
6992 (tdesc_register_type): ...to here.
6993 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6994 * features/arm-core.xml: Use code_ptr and data_ptr.
6996 2007-02-13 Denis Pilat <denis.pilat@st.com>
6998 * varobj.h (enum varobj_update_error): New enum.
6999 * varobj.c (struct varobj_root): Add is_valid member.
7000 (varobj_get_type): Check for invalid varobj.
7001 (varobj_get_attributes): Likewise.
7002 (variable_editable):Likewise.
7003 (varobj_update): Likewise. Use varobj_update_error.
7004 (new_root_variable): Set root varobj as valid by default.
7005 (varobj_invalidate): New function.
7006 * symfile.c (clear_symtab_users): Use varobj_invalidate.
7007 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
7008 Use varobj_update_error.
7010 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
7013 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
7014 Pascal language marker.
7015 * dwarf2read.c (set_cu_language): Likewise.
7017 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
7019 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
7020 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
7021 instead of target_terminal_init since inferior_ptid isn't set yet.
7023 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
7025 * MAINTAINERS (Write After Approval): Add myself.
7027 2007-02-09 Fred Fish <fnf@specifix.com>
7029 Based on work by Apple Computer, Inc.
7030 * event-top.c (async_request_quit): Call quit() whenever either
7031 quit_flag is set or immediate_quit is set.
7033 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7035 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
7036 type to a pointer to const struct block.
7037 (ada_lookup_symbol_list): Don't cast away constness when calling
7038 remove_out_of_scope_renamings.
7040 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7042 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
7043 address of 'filename'; it is always non null.
7045 2007-02-09 Joel Brobecker <brobecker@adacore.com>
7047 * exec.c (add_to_section_table): Do not discard empty sections.
7049 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7051 * features/Makefile, features/arm-with-iwmmxt.xml,
7052 features/gdbserver-regs.xsl, features/number-regs.xsl,
7053 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
7054 * regformats/arm-with-iwmmxt.dat: Generate.
7055 * NEWS: Mention iWMMXt.
7057 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7059 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
7060 (xml-tdesc.o): Update.
7061 * xml-support.c: Add a comment.
7062 (gdb_xml_enums_boolean): New variable.
7063 (gdb_xml_parse_attr_enum): Use strcasecmp.
7064 * xml-support.h (gdb_xml_enums_boolean): Declare.
7065 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
7066 next_regnum, and current_union.
7067 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
7068 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
7069 (field_attributes, union_children, reg_attributes, union_attributes)
7070 (vector_attributes, feature_attributes, feature_children): New.
7071 (target_children): Make static. Add <feature>.
7072 (tdesc_elements): Make static.
7073 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
7074 (struct tdesc_feature, tdesc_feature_p): New types.
7075 (struct target_desc): Add features member.
7076 (struct tdesc_arch_data, tdesc_data): New.
7077 (target_find_description): Clarify error message. Warn about
7078 ignored register descriptions.
7079 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7080 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
7081 (tdesc_data_cleanup, tdesc_numbered_register)
7082 (tdesc_numbered_register_choices, tdesc_find_register)
7083 (tdesc_register_name, tdesc_register_type)
7084 (tdesc_remote_register_number, tdesc_register_reggroup_p)
7085 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
7086 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
7087 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
7088 (tdesc_create_feature, tdesc_record_type): New.
7089 (free_target_description): Free features.
7090 (_initialize_target_descriptions): Initialize tdesc_data.
7091 * arch-utils.c (default_remote_register_number): New.
7092 * arch-utils.h (default_remote_register_number): New prototype.
7093 * target-descriptions.h (set_tdesc_pseudo_register_name)
7094 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
7095 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
7096 (tdesc_numbered_register, tdesc_numbered_register_choices)
7097 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7098 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
7099 (tdesc_create_reg): Declare.
7100 * gdbarch.sh (remote_register_number): New entry.
7101 * gdbarch.c, gdbarch.h: Regenerate.
7102 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
7103 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
7105 * arm-tdep.c (arm_register_aliases): New.
7106 (arm_register_name_strings): Rename to...
7107 (arm_register_names): ...this. Make const. Delete the old version.
7108 (current_option, arm_register_byte): Delete.
7109 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
7110 (value_of_arm_user_reg): New.
7111 (arm_gdbarch_init): Verify any described registers. Call
7112 tdesc_use_registers. Don't use arm_register_byte. Create aliases
7113 for standard register names.
7114 (_initialize_arm_tdep): Do not adjust arm_register_names.
7115 * user-regs.c (struct user_reg): Add baton member.
7116 (append_user_reg, user_reg_add_builtin, user_regs_init)
7117 (user_reg_add, value_of_user_reg): Use a baton for user
7119 * std-regs.c: Update.
7120 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
7121 (user_reg_add): Add baton argument.
7122 * NEWS: Mention target description register support.
7123 * features/arm-core.xml, features/arm-fpa.xml: New.
7124 * eval.c (evaluate_subexp_standard): Allow ptype $register
7125 when the program is not running.
7127 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
7129 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
7131 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7133 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
7134 info->disassembler_options to "any".
7136 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7138 * varobj.c (install_new_value): Only call value_get_print_value
7141 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7143 Reported by timeless@gmail.com:
7144 * gdb/target.c (target_flash_erase): Do not return void value.
7145 (target_flash_done): Likewise.
7146 * gdb/cli/cli-cmds.c (source_command): Likewise.
7148 2007-02-08 Fred Fish <fnf@specifix.com>
7150 Based on work by Apple Computer, Inc.
7151 * event-top.c (handle_sigint): Set quit_flag.
7152 (async_request_quit): Don't set quit_flag. Avoid calling quit()
7153 if quit_flag has already been reset.
7155 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7157 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7160 2007-02-08 Fred Fish <fnf@specifix.com>
7162 * defs.h (request_quit): Remove declaration.
7163 * utils.c (request_quit): Remove definition.
7165 2007-02-08 Joel Brobecker <brobecker@gnat.com>
7166 Jan Kratochvil <jan.kratochvil@redhat.com>
7167 Daniel Jacobowitz <dan@codesourcery.com>
7169 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7170 (skip_prologue): Allow bl->blrl used by PIC code.
7172 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7173 Daniel Jacobowitz <dan@codesourcery.com>
7175 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7176 initialize tmp_obstack.
7177 * p-valprint.c (pascal_object_print_value_fields)
7178 (pascal_object_print_value): Likewise.
7180 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7182 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7184 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7186 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7187 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7189 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7191 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7193 (tdesc_parse_xml): Cache expanded descriptions.
7195 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7197 * Makefile.in (XMLFILES): New.
7198 (COMMON_OBS): Add xml-builtin.o.
7199 (xml-builtin.c, stamp-xml): New rules.
7200 (xml-tdesc.o): Update.
7201 * features/feature_to_c.sh: New file.
7202 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7203 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7204 (gdb_xml_start_element): Initialize scope after possibly reallocating
7205 scopes. Move cleanup later. Handle the XInclude description
7207 (gdb_xml_end_element): Only parse the body if there is a current element.
7208 Call XML_DefaultCurrent if there is no element.
7209 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7210 (struct xinclude_parsing_data, xinclude_start_include)
7211 (xinclude_end_include, xml_xinclude_default)
7212 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7213 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7214 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7215 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7216 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7217 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7218 XInclude directives. Use the compiled in DTD.
7219 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7220 directory name. Do not warn here.
7221 (file_read_description_xml): Update call. Warn here instead. Pass
7223 (fetch_available_features_from_target): New.
7224 (target_read_description_xml): Use it.
7225 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7227 * features/xinclude.dtd: New file.
7229 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7231 * linux-thread-db.c (check_for_thread_db): Return early if we have
7232 no libthread_db support.
7234 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7236 * mi/mi-parse.h: Include <sys/time.h>.
7238 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
7240 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7241 instead of print_variable_value to print values.
7243 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7245 * mi/mi-main.c: Numerous formatting changes.
7246 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7247 removed in my previous change.
7249 2007-02-03 Eli Zaretskii <eliz@gnu.org>
7251 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7252 Use 1000000L instead of 1000000.
7254 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7256 Based on work by Apple Computer, Inc.
7258 * configure.ac: Test for sys/resource.h and getrusage.
7259 * configure, config.in: Regenerate.
7261 * mi/mi-main.c: Include <sys/resource.h> if present.
7262 (rusage): Declare if HAVE_GETRUSAGE.
7263 (current_command_ts, do_timings): New static variables.
7264 (timestamp, print_diff_now, print_diff, timeval_diff):
7265 New static timing functions.
7266 (mi_cmd_enable_timings): New function for new MI command.
7267 (captured_mi_execute_command, mi_execute_async_cli_command):
7268 Call timing functions.
7270 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7273 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7275 * mi/mi-parse.h: (mi_timestamp): New structure.
7276 (mi_parse): Add mi_timestamp* member.
7278 2007-02-02 Denis Pilat <denis.pilat@st.com>
7280 * thread.c (make_cleanup_restore_current_thread): New function.
7281 (info_threads_command): Use of make_cleanup_restore_current_thread
7282 to restore the current thread and the selected frame.
7283 (restore_selected_frame): New function.
7284 (struct current_thread_cleanup): Add frame_id field.
7285 (do_restore_current_thread_cleanup): Add restoring of the selected
7287 (make_cleanup_restore_current_thread): Likewise.
7288 (thread_apply_all_command): backup the selected frame while
7289 entering the function and restore it at exit.
7290 (thread_apply_command): Likewise.
7292 2007-02-02 Denis Pilat <denis.pilat@st.com>
7294 * MAINTAINERS (Write After Approval): Add myself to the list.
7296 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7298 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7299 (m32r_store_register): Ditto.
7301 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7303 * ser-mingw.c (pipe_windows_open)
7304 (pipe_windows_read, pipe_windows_write): Declare
7305 variables at the top of the function.
7307 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7309 * doublest.c (floatformat_from_length): Use the right element from
7310 gdbarch floatformats.
7311 (floatformat_from_type, extract_typed_floating)
7312 (store_typed_floating): Likewise.
7313 * doublest.h: Remove declarations for undefined floatformat arrays.
7314 * gdbarch.sh (float_format, double_format, long_double_format): Change
7316 (pformat): Update for pairs.
7317 * gdbarch.c, gdbarch.h: Regenerated.
7318 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7319 (floatformats_ieee_double_littlebyte_bigword)
7320 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7321 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7322 (floatformats_vax_d): New variables.
7323 (builtin_type_ieee_single, builtin_type_ieee_double)
7324 (builtin_type_arm_ext, builtin_type_ia64_spill)
7325 (builtin_type_ia64_quad): Replace arrays with individual types.
7326 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7327 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7328 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7329 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7330 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7331 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7332 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7333 unused and endian-specific types.
7334 (recursive_dump_type): Update for floatformat pairs.
7335 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7336 (build_gdbtypes): Use build_flt.
7337 (_initialize_gdbtypes): Update set of initialized types.
7338 * gdbtypes.h: Update declarations to match gdbtypes.c.
7339 (struct main_type): Store a pointer to two floatformats.
7340 * arch-utils.c (default_float_format, default_double_format): Delete.
7341 * arch-utils.h (default_float_format, default_double_format): Delete.
7343 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7344 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7345 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7346 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7347 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7349 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7351 * target.c (maintenance_print_target_stack): New function.
7352 (initialize_targets): Add new "maintenance print target-stack"
7355 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7357 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7359 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7361 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7362 (struct dwarf2_loclist_baton): Likewise.
7364 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7366 * cli/cli-script.c: Include breakpoint.h.
7367 (build_command_line): Require arguments only for if and while
7369 (get_command_line, execute_user_command, execute_control_command):
7370 Fix wording of warning messages.
7371 (print_command_lines): Print breakpoint commands.
7372 (execute_control_command): Call commands_from_control_command to
7373 handle the `commands' command inside a body of a flow-control
7375 (read_next_line): Recognize the `commands' command and build a
7376 command line structure for it.
7377 (recurse_read_control_structure, read_command_lines): Handle
7378 `commands' similarly to `if' and `while'.
7380 * breakpoint.c (get_number_trailer): Document the special meaning
7381 of NULL as the first argument PP.
7382 (commands_from_control_command): New function.
7384 * breakpoint.h (commands_from_control_command): Add prototype.
7386 * defs.h (commands_control): New enumerated value for enum
7387 command_control_type.
7389 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7391 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7392 (ada_exception_sal): Update accordingly.
7394 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7396 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7397 * NEWS: Describe CHAR array vs. string identifcation rules.
7399 2007-01-25 Paul Brook <paul@codesourcery.com>
7401 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7403 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7405 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7406 expression is empty, bother to return the 'optimized out' value we
7407 construct. (Thanks to Carl Burch.)
7409 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7411 * varobj.c (c_value_of_root, c_value_of_child)
7412 (cplus_describe_child): Don't call release_value.
7414 2007-01-24 Thiemo Seufer <ths@mips.com>
7416 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7419 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7421 Refactor getting children name, value and type access
7423 * varobj.c (get_type_deref): Remove.
7424 (adjust_value_for_child_access): New.
7425 (c_number_of_children): Use the above.
7426 (c_describe_child): Likewise.
7427 (enum accessibility): New.
7428 (match_accessibility): New function.
7429 (cplus_describe_child): New function.
7430 (cplus_name_of_child, cplus_value_of_child)
7431 (cplus_type_of_child): Reimplement in terms
7432 of cplus_describe_child.
7433 (cplus_number_of_children): Use
7434 adjust_value_for_child_access.
7436 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7438 Fix computation of the 'editable' attribute and
7439 value changeability for for references.
7440 * varobj.c (get_value_type): New function.
7441 (c_variable_editable): Use get_value_type.
7442 (varobj_value_is_changeable): Likewise.
7444 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7446 * source.c (find_and_open_source): Try rewriting the source
7447 path inside filename if dirname is NULL.
7449 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7451 * dwarf2read.c (add_partial_symbol): Create an extra partial
7452 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7453 (new_symbol): Likewise for symbols.
7455 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7457 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7459 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7461 * value.c (value_primitive_field): Copy the full 'location'
7462 contents, instead of assuming that copying ADDRESS will
7463 bring over everything in the union. Remove obsolete comment.
7465 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7467 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7468 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7469 (m32c_m16c_pointer_to_address): Separate code from declarations.
7471 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7473 * target.c (update_current_target): Correct typo.
7475 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7477 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7480 2007-01-11 Andrew Cagney <cagney@redhat.com>
7481 Daniel Jacobowitz <dan@codesourcery.com>
7482 Jan Kratochvil <jan.kratochvil@redhat.com>
7484 * dwarf2-frame.c (execute_cfa_program): New support of
7485 `DW_CFA_GNU_negative_offset_extended'.
7487 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7489 * NEWS: Mention flash support for "load" and new remote packets.
7491 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7493 * breakpoint.c (delete_command): Skip redundant loop iterations.
7495 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7497 * gdbarch.sh (register_type): Update comment.
7498 * gdbarch.h: Regenerated.
7499 * arch-utils.c (generic_register_size): Call register_type.
7500 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7501 * m32c-tdep.c (check_for_saved): Likewise.
7502 * mips-tdep.c (mips_print_register, print_gp_register_row)
7503 (mips_print_registers_info): Likewise.
7504 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7506 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7507 (sh64_do_register, sh64_print_register)
7508 (sh64_media_print_registers_info): Likewise.
7509 * tui/tui-regs.c (tui_register_format): Likewise.
7511 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7513 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7515 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7516 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7517 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7518 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7519 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7520 (make_symbol_completion_list): Likewise.
7522 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7523 Daniel Jacobowitz <dan@codesourcery.com>
7525 * buildsym.c (end_symtab): Use preallocated symtab if available.
7526 Fill in SYMBOL_SYMTAB.
7527 * buildsym.h (struct subfile): Add symtab member.
7528 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7529 (struct file_entry): Add symtab.
7530 (free_cu_line_header): New function.
7531 (read_file_scope): Use it. Save line_header in the cu. Process
7533 (add_file_name): Initialize new symtab member.
7534 (dwarf_decode_lines): Create symtabs for included files.
7535 (new_symbol): Set SYMBOL_SYMTAB.
7536 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7537 (search_symbols): Likewise.
7538 * symtab.h (struct symbol): Add symtab member.
7539 (SYMBOL_SYMTAB): Define.
7541 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7543 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7545 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7547 * arch-utils.c (show_endian): Correct reversed condition.
7549 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7551 * MAINTAINERS (Write After Approval): Add myself.
7553 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7554 Vladimir Prus <vladimir@codesourcery.com>
7556 Fix 'selected frame' varobjs.
7557 * varobj.c (struct varobj): Remove the error field.
7558 (varobj_set_value): Don't check var->error.
7559 (install_new_value): Don't set var->error.
7560 (varobj_update): Always pass the new value
7561 of the root via install_new_value.
7562 (create_child): Don't set error field.
7563 (new_variable): Likewise.
7564 (c_value_of_root): Always reevaluate the value
7565 of selected frame varobjs in the selected frame.
7566 Don't call reinit_frame_cache.
7568 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7570 * source.c (_initialize_source): Improve the help text of
7571 the substitute-path commands.
7573 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7575 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7576 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7577 (frv_skip_prologue): Remove prototypes.
7578 (frv_adjust_breakpoint_address): Renamed from
7579 frv_gdbarch_adjust_breakpoint_address.
7580 (frv_gdbarch_init): Adjust.
7582 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7584 * gdbarch.sh (deprecated_extract_return_value)
7585 (deprecated_store_return_value): Remove.
7586 (extract_return_value, store_return_value): Remove default values.
7587 * gdbarch.c, gdbarch.h: Regenerate.
7588 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7589 (legacy_store_return_value): Remove.
7590 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7593 * mi/mi-main.c: Remove obsolete comment.
7595 * regcache.c, regcache.h (deprecated_register_bytes)
7596 (deprecated_read_register_bytes)
7597 (deprecated_write_register_bytes): Remove.
7599 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7600 Don't forget to move destination pointer.
7602 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7604 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7606 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7608 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7609 past entry function with recent newlib.
7611 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7613 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7614 introduction. Specify -var-update more exactly.
7616 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7618 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7620 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7622 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7623 the Global Maintainers' invitation to be a global maintainer.
7625 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7627 * infrun.c (singlestep_pc): New variable.
7628 (resume): Set singlestep_pc.
7629 (context_switch): Add a debugging message. Flush the frame cache.
7630 (handle_inferior_event): Add debugging messages. Handle thread
7631 hops when a software single step has completed. Let context_switch
7632 handle flushing the frame cache.
7634 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7636 * NEWS: Mention target descriptions, "set tdesc filename",
7637 "unset tdesc filename", "show tdesc filename", and
7638 qXfer:features:read.
7639 * arch-utils.c (choose_architecture_for_target): New function.
7640 (gdbarch_info_fill): Call it.
7641 * target-descriptions.c (struct property): Make members non-const.
7642 (struct target_desc): Add arch member.
7643 (target_description_filename): New variable.
7644 (target_find_description): Try via XML first.
7645 (tdesc_architecture): New.
7646 (free_target_description, make_cleanup_free_target_description): New.
7647 (set_tdesc_property): Call xstrdup.
7648 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7649 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7650 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7651 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7652 * target-descriptions.h (tdesc_architecture)
7653 (make_cleanup_free_target_description, set_tdesc_architecture): New
7655 * Makefile.in (SFILES): Add xml-tdesc.c.
7656 (COMMON_OBS): Add xml-tdesc.o.
7657 (target-descriptions.o): Update.
7658 (xml-tdesc.o): New rule.
7659 * xml-tdesc.c, xml-tdesc.h: New files.
7660 * remote.c (PACKET_qXfer_features): New enum.
7661 (remote_protocol_features): Add qXfer:features:read.
7662 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7663 (_initialize_remote): Register qXfer:features:read.
7664 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7665 * features/gdb-target.dtd: New file.
7667 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7669 * copyright.sh: Clarify error.
7671 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7673 * symtab.c (matching_bfd_sections): Fix VMA matching for
7676 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7678 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7681 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7683 Updated copyright notices for most files.
7685 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7687 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7689 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7691 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7693 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7695 * configure, config.in: Regenerate.
7696 * defs.h (debug_file_directory): Declare.
7697 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7698 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7699 relocate it if DEBUGDIR_RELOCATABLE.
7700 * symfile.c (debug_file_directory): Make non-static.
7701 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7702 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7703 (_initialize_symfile): Don't initialize debug_file_directory here.
7705 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7707 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7710 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7712 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7713 frame_unwind_register to recurse.
7714 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7715 (alpha_heuristic_frame_prev_register): Likewise.
7716 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7717 * m32c-tdep.c (m32c_prev_register): Likewise.
7718 * frame.c (frame_register_unwind_location): Remove FIXME.
7720 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7721 Eli Zaretskii <eliz@gnu.org>
7723 * copyright.sh: New file.
7725 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7727 * configure.ac: Check for XML_StopParser.
7728 * xml-support.c (gdb_xml_body_text): Check for an error.
7729 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7730 (gdb_xml_end_element_wrapper): Likewise.
7731 * config.in, configure: Regenerated.
7733 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7735 * varobj.c (install_new_value): Always update print_value.
7736 (value_get_print_value): Immediately return NULL for missing
7739 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7741 * configure.ac: Tighten pattern for extracting value of
7742 DEPRECATED_TM_FILE from the target makefile fragment.
7743 * configure: Regenerated.
7745 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7747 * linux-nat.c (struct simple_pid_list): Add status.
7748 (add_to_pid_list): Record the PID's status.
7749 (linux_record_stopped_pid): Likewise. Make static.
7750 (pull_pid_from_list): Return the saved status.
7751 (linux_nat_handle_extended): Deleted.
7752 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7753 Make static. Handle non-SIGSTOP for a new thread's first signal.
7754 (flush_callback): Handle unexpected pending signals.
7755 (linux_nat_wait): Update calls to changed functions.
7756 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7757 Remove prototypes for newly static functions.
7759 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7761 * gdbarch.sh (value_from_register): New gdbarch function.
7762 * gdbarch.c, gdbarch.h: Regenerate.
7763 * findvar.c (default_value_from_register): New function.
7764 (value_from_register): Use gdbarch_value_from_register.
7765 * value.h (default_value_from_register): Declare.
7766 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7767 spu_value_to_register): Remove.
7768 (spu_value_from_register): New function.
7769 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7770 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7771 Call set_gdbarch_value_from_register.
7772 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7773 s390_value_to_register): Remove.
7774 (s390_value_from_register): New function.
7775 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7776 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7777 Call set_gdbarch_value_from_register.
7779 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7781 * NEWS: Add "set sysroot" and "show sysroot".
7782 * solib.c (solib_absolute_prefix): Delete. Replace
7783 all uses with gdb_sysroot.
7784 (_initialize_solib): Add "set sysroot" and "show sysroot".
7785 Make "solib-absolute-prefix" an alias to it.
7787 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7789 * frame.c (get_frame_register_bytes): New function.
7790 (put_frame_register_bytes): Likewise.
7791 * frame.h (get_frame_register_bytes): Declare.
7792 (put_frame_register_bytes): Likewise.
7793 * findvar.c (value_from_register): Always construct lval_register
7794 values. Use get_frame_register_bytes.
7795 * valops.c (value_assign): Use get_frame_register_bytes and
7796 put_frame_register_bytes.
7798 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7800 * MAINTAINERS: Update Stan Shebs' email address.
7802 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7804 * ada-lang.c (is_known_support_routine): Improve the implementation.
7806 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7808 * ada-lang.c: Add include of source.h.
7809 (is_known_support_routine): Improve the check verifying that the file
7810 associated to this frame exists.
7811 * Makefile.in (ada-lang.o): Add dependency on source.h.
7813 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7815 * ax-general.c (ax_const_l): Select proper opcode for the given
7818 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7820 * varobj.c (c_value_of_root): Don't select frame if variable
7821 object is out of scope.
7823 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7825 * varobj.c (struct varobj): New member print_value.
7826 (install_new_value): Compare last printed value with current one
7827 instead of contents.
7828 (new_variable): Initialize var->print_value to NULL.
7829 (free_variable): Free var->print_value.
7830 (value_get_print_value): New function derived from
7831 c_value_of_variable.
7832 (c_value_of_variable): Use value_get_print_value.
7834 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7836 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7838 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7840 * NEWS: Add entries for new catch commands.
7842 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7844 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7845 (add_partial_symbol): Correct identification of external references.
7846 (process_structure_scope): Likewise.
7847 (read_partial_die): Handle DW_AT_byte_size attribute.
7849 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7851 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7853 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7855 * varobj.c (get_type_deref): Fix variable objects for references to
7858 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7860 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7863 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7865 * memory-map.c (struct_memory_map_parsing_data): Remove most
7866 members. Make property_name an array.
7867 (free_memory_map_parsing_data, memory_map_start_element)
7868 (memory_map_end_element, memory_map_character_data): Delete.
7869 (memory_map_start_memory, memory_map_end_memory)
7870 (memory_map_start_property, memory_map_end_property): New functions.
7871 (property_attributes, memory_children, memory_type_enum)
7872 (memory_attributes, memory_map_children, memory_map_elements): New.
7873 (parse_memory_map): Rewrite.
7874 * xml-support.c (debug_xml): New.
7875 (xml_get_required_attribute, xml_get_integer_attribute)
7876 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7878 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7879 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7880 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7881 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7882 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7883 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7884 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7886 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7887 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7888 (enum gdb_xml_element_flag, struct gdb_xml_element)
7889 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7890 (struct gdb_xml_enum): New.
7891 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7892 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7893 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7894 (xml_get_required_attribute, xml_get_integer_attribute)
7895 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7896 * Makefile.in (xml_support_h, xml-support.o): Update.
7898 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7900 * Makefile.in (eval.o): Update dependencies.
7901 * eval.c: Include "ui-out.h" and "exceptions.h".
7902 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7903 Use value_zero if an error occurs when avoiding side effects.
7904 * varobj.c (c_value_of_root): Initialize new_val.
7906 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7908 * varobj.c (varobj_list_children): Stop if the number of children is
7910 (c_number_of_children):
7912 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7914 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7915 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7916 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7917 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7918 sizeof, instead of hardcoded constants.
7920 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7922 * CONTRIBUTE: Use sourceware.org.
7924 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7926 * buildsym.c (start_subfile): Handle producer.
7927 (record_producer): New function.
7928 * buildsym.h (struct subfile): Include producer.
7929 (record_producer): New prototype.
7930 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7931 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7932 armcc_cfa_offsets_reversed.
7933 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7934 (dwarf2_frame_find_quirks): New function.
7935 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7936 (decode_frame_entry_1): Record the CIE version. Record the
7937 augmentation. Skip armcc augmentations.
7938 * dwarf2read.c (read_file_scope): Save the producer.
7939 * symtab.h (struct symtab): Rename unused version member to
7942 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7944 * configure.ac (build_warnings): Use -Wall and
7945 -Wdeclaration-after-statement.
7946 * configure: Regenerated.
7948 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7950 Simplify access to variours properties of child
7951 variable objects in C.
7952 * varobj.c (value_struct_element_index): New function.
7953 (c_describe_child): New function.
7954 (c_name_of_child, c_value_of_child)
7955 (c_type_of_child): Rewrite to use c_describe_child.
7957 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7960 * varobj.c: Include "vec.h".
7961 (varobj_p): New typedef, declare vector of those.
7962 (struct varobj): Use vector for the 'children' member.
7963 (child_exists): Remove.
7964 (save_child_in_parent): Remove.
7965 (remove_child_from_parent): Remove.
7966 (struct varobj_child): Remove.
7967 (struct vstack): Remove.
7968 (vpush, vpop): Remove.
7969 (varobj_list_children): Adjust to work work vector.
7970 (varobj_update): Likewise. Use vectors for
7971 working stack and result.
7972 (delete_variable_1): Likewise.
7973 * Makefile.in (varobj.o): Update dependencies.
7975 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7977 Port from Apple's version.
7979 * varobj.c (type_changeable): Rename to...
7980 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7981 (is_root_p): New function. Use it everywhere.
7983 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7985 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7988 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7990 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7992 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7994 * hpread.c (hpread_type_lookup): Fix compilation failure.
7996 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7998 * NEWS: New port to S+core.
7999 * MAINTAINERS (Write After Approval, Responsible Maintainers):
8002 * Makefile.in: Add dependencies for S+core files.
8003 * configure.tgt (score*, score-*-*): Add S+core target.
8004 * config/score/embed.mt: New file.
8005 * score-tdep.c: New file.
8006 * score-tdep.h: New file.
8008 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8010 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
8011 the appropriate type rather than a bogus void type.
8013 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8015 * ada-lang.h (ada_find_printable_frame): Remove.
8016 (ada_exception_catchpoint_p, ada_decode_exception_location)
8017 (ada_decode_assert_location): Add declaration.
8018 * ada-lang.c: Add include of annotate.h and valprint.h.
8019 (exception_catchpoint_kind): New enum.
8020 (function_name_from_pc, is_known_support_routine)
8021 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
8022 (ada_exception_name_addr_1, ada_exception_name_addr)
8023 (print_it_exception, print_one_exception, print_mention_exception)
8024 (print_it_catch_exception, print_one_catch_exception)
8025 (print_mention_catch_exception, catch_exception_breakpoint_ops)
8026 (print_it_catch_exception_unhandled)
8027 (print_one_catch_exception_unhandled)
8028 (print_mention_catch_exception_unhandled, print_it_catch_assert)
8029 (print_one_catch_assert, print_mention_catch_assert)
8030 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
8031 (ada_get_next_arg, catch_ada_exception_command_split)
8032 (ada_exception_sym_name, ada_exception_sym_name)
8033 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
8034 (ada_parse_catchpoint_condition, ada_exception_sal)
8035 (ada_decode_exception_location)
8036 (ada_decode_assert_location): New function.
8037 (catch_exception_unhandled_breakpoint_ops): New global variable.
8038 (catch_assert_breakpoint_ops): New global variable.
8039 * breakpoint.c: Add include of ada-lang.h.
8040 (print_one_breakpoint): Do not print the condition for Ada
8041 exception catchpoints.
8042 (create_ada_exception_breakpoint): New function.
8043 (catch_ada_exception_command, catch_assert_command): New function.
8044 (catch_command_1): Add support for the new "catch exception" and
8045 "catch assert" commands.
8046 (_initialize_breakpoint): Add help description for the new catch
8048 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
8050 (breakpoint.o): Add dependency on ada-lang.h.
8052 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
8054 * coffread.c (cs_to_section): If bfd_section is found, always
8055 return its section index.
8056 (coff_symtab_read): Determine the minimal_symbol_type using the
8059 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8060 Daniel Jacobowitz <dan@codesourcery.com>
8062 * Makefile.in (top.o): Update.
8063 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
8064 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
8065 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
8067 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
8069 2007-01-03 Mark Kettenis <kettenis@gnu.org>
8071 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
8072 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
8074 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8076 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
8077 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
8078 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
8079 greater than or equal to zero.
8080 * m2-typeprint.c (m2_array): Likewise.
8081 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
8082 * gdbtypes.c (copy_type_recursive): Correct == typo.
8083 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
8084 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
8086 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
8087 (default_macro_scope): Remove unused variable.
8088 * prologue-value.h (pv_area_find_reg): Don't name an argument
8090 * remote-fileio.c (remote_fio_func_map): Add missing braces.
8091 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
8093 (cleanup_sigint_signal_handler): Remove casts.
8094 * valprint.c (val_print): Use a volatile local for the modified
8096 * varobj.c (languages): Remove extra array dimension.
8097 (varobj_create): Correct access to languages array.
8098 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
8100 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
8101 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
8102 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
8103 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
8104 (mi_cmd_data_write_memory): Likewise.
8105 * signals/signals.c (target_signal_to_string): Cast to int before
8107 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
8110 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8112 * NEWS: Mention pointer to member improvements.
8113 * Makefile.in (gnu-v3-abi.o): Delete special rule.
8114 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
8115 * ada-valprint.c (ada_print_scalar): Update for new type codes.
8116 * c-typeprint.c (c_print_type): Update for new type codes.
8117 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
8118 (c_type_print_base): Likewise.
8119 (c_type_print_args): Rewrite.
8120 * c-valprint.c (c_val_print): Update for new type codes. Remove
8121 support for references to members. Treat methods like functions.
8122 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
8123 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
8124 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
8125 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
8126 (struct cp_abi_ops): Add corresponding members.
8127 * cp-valprint.c (cp_print_class_method): Delete.
8128 (cp_find_class_member): New function.
8129 (cp_print_class_member): Use it. Simplify support for bogus
8131 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
8132 lookup_methodptr_type.
8133 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
8134 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
8135 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
8137 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
8138 references returned by user defined operators.
8139 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
8140 (f_type_print_varspec_suffix): Remove support for member pointers.
8141 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
8143 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
8144 (lookup_methodptr_type): New.
8145 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
8146 (recursive_dump_type): Update for new types.
8147 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
8148 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
8149 (lookup_memberptr_type, lookup_methodptr_type)
8150 (smash_to_memberptr_type): New prototypes.
8151 (smash_to_method_type): Formatting fix.
8152 (lookup_member_type, smash_to_member_type): Delete prototypes.
8153 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
8154 Do not rely on debug information for the vptr or the method's
8155 enclosing type. Handle function descriptors for IA64.
8156 (gnuv3_virtual_fn_field): Rewrite using the new functions.
8157 (gnuv3_find_method_in, gnuv3_print_method_ptr)
8158 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8159 (gnuv3_method_ptr_to_value): New.
8160 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8161 * hpread.c (hpread_type_lookup): Update for new types.
8162 * infcall.c (value_arg_coerce): Likewise.
8163 * m2-typeprint.c (m2_print_type): Remove explicit support
8164 for member pointers.
8165 * m2-valprint.c (m2_val_print): Likewise.
8166 * p-typeprint.c (pascal_type_print_varspec_prefix)
8167 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8168 * p-valprint.c (pascal_val_print): Likewise.
8169 (pascal_object_print_class_method, pascal_object_print_class_member):
8171 * p-lang.h (pascal_object_print_class_method)
8172 (pascal_object_print_class_member): Delete prototypes.
8173 * stabsread.c (read_type): Update for new types.
8174 * typeprint.c (print_type_scalar): Likewise.
8175 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8176 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8177 argument. Construct a pointer to member if the address of a
8178 function or data member is requested.
8179 (value_cast_pointers): Don't modify the input value.
8180 (value_cast): Adjust pointer to member handling for new types.
8181 Allow null pointer to member constants. Don't modify the input
8183 (value_ind): Remove pointer to member check. Handle function
8184 descriptors for function pointers.
8185 (value_struct_elt, value_find_oload_method_list, check_field):
8186 Remove pointer to member checks.
8187 * value.c (unpack_long): Allow pointers to data members.
8188 (value_from_longest): Allow member pointers.
8189 * value.h (value_aggregate_elt): Add want_address.
8190 * varobj.c (c_variable_editable): Remove check for members.
8191 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8192 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8194 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8195 * c-lang.h (cp_print_class_method): Delete prototype.
8196 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8197 * mips-tdep.c (mips_gdbarch_init): Likewise.
8198 * gdbarch.c, gdbarch.h: Regenerated.
8200 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8202 * rs6000-tdep.c (rs6000_use_struct_convention)
8203 (rs6000_extract_return_value, rs6000_store_return_value)
8204 (rs6000_extract_struct_value_address): Remove.
8205 (rs6000_return_value): New function.
8206 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8207 store_return_value, deprecated_extract_struct_value_address and
8208 deprecated_use_struct_convention. Use rs6000_return_value
8211 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
8213 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8214 -display-disable, -display-enable, -display-insert and
8217 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8219 * breakpoint.c (remove_breakpoint): Remove dead code.
8221 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
8223 * varobj.c: Include block.h.
8224 (c_value_of_root): Check scope within nested statements.
8226 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8228 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8229 regcache_cooked_write_signed instead of
8230 deprecated_write_register_bytes.
8232 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8234 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8236 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8238 Followed the Start of New Year Procedure:
8239 * ChangeLog-2006: New file, containing all the entries for 2006.
8240 * ChangeLog: Removed all 2006 entries, and changed the reference
8241 to the previous ChangeLog to point to ChangeLog 2006.
8242 * top.c (print_gdb_version): Update copyright year.
8244 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8246 * Makefile.in (remote-sds.o): Remove.
8247 * remote-sds.c: Delete.
8249 For older changes see ChangeLog-2006.
8255 version-control: never