1 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
3 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
4 (mips_n32n64_return_value, mips_o32_return_value)
5 (mips_o64_return_value): Update calls to mips_xfer_register.
7 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
9 * frame.c (frame_unwind_unsigned_register): Delete.
10 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
11 * frame.h (frame_unwind_unsigned_register): Delete prototype.
13 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
14 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
15 mt-tdep.c: Replace frame_unwind_unsigned_register with
16 frame_unwind_register_unsigned.
18 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
20 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
21 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
22 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
24 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
25 if not building on Cygwin.
26 (win32_make_so, handle_output_debug_string, handle_exception)
27 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
28 (win32_attach): Only fallback to Cygwin pids if building on
30 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
32 (win32_create_inferior): Disable starting the inferior through a
33 shell, environment var processing and tty handling if not building
35 (cygwin_pid_to_str): Rename to ...
36 (win32_pid_to_str): ... this.
37 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
38 and "cygwin-exceptions" commands if not building on Cygwin.
40 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
42 * doc/gdb.texinfo: Add TSIZE definition, removed
43 statement about unbounded arrays being unimplemented.
44 * m2-valprint.c (m2_print_array_contents): New function.
45 (m2_print_unbounded_array): New function.
46 (m2_print_array_contents): New function.
47 * m2-typeprint.c (m2_unbounded_array): New function.
48 (m2_is_unbounded_array): New function.
49 (m2_print_type): Test for unbounded array when walking
51 * m2-lang.h: Added extern m2_is_unbounded_array.
52 * m2-lang.c (evaluate_subexp_modula2): New function.
53 (exp_descriptor_modula2): New structure.
54 (m2_language_defn): Use exp_descriptor_modula2.
55 * m2-exp.y: Added TSIZE and binary subscript.
57 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
59 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
62 2007-10-16 Kevin Buettner <kevinb@redhat.com>
64 * m32r-tdep.c (decode_prologue): Sign extend offset for
66 (m32r_frame_unwind_cache): Likewise.
68 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
70 * rs6000-tdep.c (skip_prologue): Restore comment with
71 function description to its proper place.
73 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
75 * NEWS: Mention gdbserver PowerPC improvements.
77 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
79 * features/Makefile (WHICH): Add PowerPC register definitions.
80 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
81 (rs6000/powerpc-64-expedite): New macros.
82 ($(outdir)/%.dat): Handle subdirectories.
83 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
84 regformats/rs6000/powerpc-e500.dat: New generated files.
86 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
88 * ppc-linux-nat.c (ppc_linux_read_description): New.
89 (_initialize_ppc_linux_nat): Set to_read_description.
90 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
92 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
94 * NEWS: Document target described register support for PowerPC.
95 * ppc-tdep.h: Remove ppc_spr constants.
96 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
97 ppc_builtin_type_vec128 members.
98 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
99 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
100 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
101 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
102 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
103 * rs6000-tdep.c: Include preparsed descriptions.
104 (init_sim_regno_table): Do not iterate over pseudo registers.
105 Look up segment registers by name. Use sim_spr_register_name
107 (rs6000_register_sim_regno): Call init_sim_regno_table here.
108 (rs6000_builtin_type_vec128): Delete.
109 (rs6000_register_name): Only handle SPE pseudo registers and upper
110 halves. Call tdesc_register_name for everything else.
111 (rs6000_register_type): Delete. Replace with...
112 (rs6000_pseudo_register_type): ...this new function. Only handle
113 SPE pseudo registers.
114 (rs6000_register_reggroup_p): Delete. Replace with...
115 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
116 handle SPE pseudo registers.
117 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
119 (rs6000_register_to_value, rs6000_value_to_register): Remove check
121 (e500_register_reggroup_p): Delete.
122 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
123 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
124 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
125 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
126 (registers_powerpc, registers_403, registers_403GC, registers_505)
127 (registers_860, registers_601, registers_602, registers_603)
128 (registers_604, registers_750, registers_7400, registers_e500): Delete
130 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
132 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
133 (variants): Delete outdated comment. Use standard target descriptions
134 instead of "struct reg" arrays.
135 (init_variants): Delete.
136 (rs6000_gdbarch_init): Do not guess word size from the BFD
137 architecture if we have a target description. Select a variant
138 before creating a new architecture. Use the variant's target
139 description if the target did not define a register layout.
140 Validate target-supplied registers. Reject mismatches. Use
141 fixed register numbers and new constants instead of magic
142 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
143 (_initialize_rs6000_tdep): Initialize the preparsed target
145 * target-descriptions.c (tdesc_predefined_types): Add int128 and
147 (tdesc_find_register_early): New function.
148 (tdesc_numbered_register): Use it.
149 (tdesc_register_size): New function.
150 (tdesc_use_registers): Take a target_desc argument. Do not use
152 * target-descriptions.h (tdesc_use_registers): Update prototype
154 (tdesc_register_size): New prototype.
155 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
156 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
157 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
158 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
159 (rs6000-tdep.o): Update.
160 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
161 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
162 * mips-tdep.c (mips_gdbarch_init): Likewise.
164 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
166 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
167 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
168 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
169 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
170 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
171 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
172 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
175 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
177 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
178 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
179 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
180 feature descriptions for standard PowerPC register sets.
182 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
183 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
184 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
185 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
186 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
187 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
188 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
189 target descriptions for PowerPC processors.
191 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
193 * target-descriptions.c (tdesc_predefined_types): New.
194 (tdesc_named_type): Use it.
195 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
196 (_intialize_target_descriptions): Register "maint print c-tdesc".
197 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
198 (cfiles, %.c): New rules.
199 * features/arm-with-iwmmxt.c, features/mips-linux.c,
200 features/mips64-linux.c: New generated files.
202 * arm-linux-nat.c: Include preparsed description instead of
204 (super_xfer_partial, arm_linux_xfer_partial): Remove.
205 (arm_linux_read_description): New function.
206 (_initialize_arm_linux_nat): Set to_read_description instead of
207 to_xfer_partial. Initialize preparsed description.
208 * config/arm/linux.mh (TDEP_XML): Delete.
209 * mips-linux-nat.c: Include preparsed descriptions instead of
211 (super_xfer_partial, mips_linux_xfer_partial): Remove.
212 (mips_linux_read_description): New function.
213 (_initialize_mips_linux_nat): Set to_read_description instead of
214 to_xfer_partial. Initialize preparsed description.
215 * config/mips/linux.mh (TDEP_XML): Delete.
216 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
217 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
218 (mips64_linux_c): New macros.
219 (arm-linux-nat.o, mips-linux-nat.o): Update.
221 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
223 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
224 Replace xasprintf by xstrprintf.
225 symfile-mem.c (add_vsyscall_page): Ditto.
227 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
229 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
230 replacing use of global current_gdbarch.
231 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
232 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
234 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
235 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
236 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
237 (ia64_sigtramp_frame_cache): Update caller.
239 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
241 * gdbarch.sh (deprecated_use_struct_convention): Remove.
242 (extract_return_value, store_return_value): Remove.
243 (return_value): Remove default implementation.
244 * gdbarch.c, gdbarch.h: Regenerate.
246 * stack.c (return_command): Remove compatibility hack.
247 * arch-utils.c (legacy_return_value): Remove.
248 * arch-utils.h (legacy_return_value): Likewise.
250 * arch-utils.c (always_use_struct_convention): Remove.
251 * arch-utils.h (always_use_struct_convention): Likewise.
252 * value.c (generic_use_struct_convention): Remove.
253 * defs.h (generic_use_struct_convention): Likewise.
255 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
257 * avr-tdep.c (avr_return_value): New function.
258 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
259 set_gdbarch_extract_return_value.
261 * fvr-tdep.c (frv_return_value): New function.
262 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
263 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
264 and set_gdbarch_deprecated_use_struct_convention.
266 * ia64-tdep.c (ia64_use_struct_convention): Make static.
267 Add check for structure, union, or array types.
268 (ia64_extract_return_value): Make static.
269 (ia64_store_return_value): Make static. Support multi-word values.
270 (ia64_return_value): New function.
271 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
272 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
273 and set_gdbarch_deprecated_use_struct_convention.
275 2007-10-12 Joel Brobecker <brobecker@adacore.com>
277 * solib-target.c (solib_target_parse_libraries)
278 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
280 2007-10-12 Jim Blandy <jimb@codesourcery.com>
282 * serial.h (struct serial_ops): Document read_prim to return zero
284 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
285 read_prim returns zero, not SERIAL_TIMEOUT.
287 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
289 * alpha-mdebug-tdep.c: Include "gdb_string.h".
290 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
291 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
292 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
294 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
295 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
296 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
297 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
298 * config/alpha/tm-alpha.h: Remove file.
300 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
302 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
303 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
305 * config/pa/tm-hppa.h: Delete file.
306 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
307 * config/pa/hppahpux.mt: Likewise.
308 * config/pa/hppa.mt: Likewise.
309 * config/pa/linux.mt: Likewise.
310 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
312 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
314 * config/arm/nm-nbsdaout.h: Remove file.
315 * config/nm-nbsdaout.h: Likewise.
316 * config/nm-nbsd.h: Likewise.
318 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
320 * block.h (struct block): Remove "gcc_compile_flag" member.
321 (BLOCK_GCC_COMPILED): Remove.
322 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
323 * buildsym.c (finish_block): Do not set it.
324 * symmisc.c (dump_symtab_1): Do not dump it.
326 * value.h (using_struct_return): Remove "gcc_p" argument.
327 * value.c (using_struct_return): Likewise.
328 * eval.c (evaluate_subexp_standard): Adapt callers.
329 * infcall.c (call_function_by_hand): Likewise.
330 * stack.c (return_command): Likewise.
331 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
333 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
334 * gdbarch.c, gdbarch.h: Regenerate.
335 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
336 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
337 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
338 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
339 (push_dummy_code, call_function_by_hand): Adapt callers.
341 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
343 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
344 (finish_command_continuation, finish_command): Adapt callers.
346 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
348 * infcall.c (call_function_by_hand): Remove special handling
349 for HP aCC compiled code.
351 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
353 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
354 reference. Fix endianness bugs.
355 (cris_reg_struct_has_address): Remove.
356 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
357 and set_gdbarch_deprecated_use_struct_convention calls.
359 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
360 * gdbarch.c, gdbarch.h: Regenerate.
361 * infcall.c (call_function_by_hand): Remove handling of
362 deprecated_reg_struct_has_addr.
364 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
365 Kazu Hirata <kazu@codesourcery.com>
367 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
368 checking watchpoint resources.
370 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
372 * memattr.c (inaccessible_by_default): Change the initial
375 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
378 * coffread.c (read_one_sym): Check for read errors.
380 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
382 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
383 instead of "Linux 2.6.19" in comment.
384 (linux_xfer_partial): Use "GNU/Linux target" instead of
385 "Linux target" in comment.
386 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
387 (m68k_linux_get_sigtramp_info): Likewise.
389 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
391 * MAINTAINERS (language support): List Joel and Paul as
394 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
396 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
398 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
399 not set DEPRECATED_TM_FILE.
400 * config/arm/tm-arm.h: Delete file.
402 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
404 * MAINTAINERS (Write After Approval): Add self.
406 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
408 * buildsym.c (record_line): Remove empty lines followed by
409 end-of-sequence markers.
411 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
413 * configure.tgt: Recognize fido-*-elf.
415 2007-10-10 Joel Brobecker <brobecker@adacore.com>
419 2007-10-10 Markus Deuling <deuling@de.ibm.com>
421 * stack.c (print_frame_args, frame_info, return_command): Use
422 get_regcache_arch or get_frame_arch to get at the current architecture
423 by regcache or by frame, respectively.
425 2007-10-10 Markus Deuling <deuling@de.ibm.com>
427 * rs6000-nat.c (fetch_register, store_register)
428 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
429 get_regcache_arch to get at the current architecture by regcache.
431 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
432 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
433 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
434 current_gdbarch by gdbarch.
435 (rs6000_skip_trampoline_code, rs6000_register_to_value)
436 (rs6000_value_to_register): Use get_frame_arch to get at the current
437 architecture by frame_info.
439 2007-10-10 Markus Deuling <deuling@de.ibm.com>
441 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
442 get_regcache_arch to get at the current architecture by regcache.
444 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
445 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
446 get_regcache_arch to get at the current architecture by regcache.
448 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
449 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
450 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
451 current architecture by regcache.
453 2007-10-10 Markus Deuling <deuling@de.ibm.com>
455 * remote-mips.c (mips_wait, mips_fetch_registers)
456 (mips_store_registers): Use get_regcache_arch to get at the
457 current architecture by regcache.
459 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
460 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
461 get at the current architecture by regcache.
462 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
463 architecture by frame_info.
465 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
466 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
467 the current architecture by regcache.
469 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
470 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
471 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
472 current architecture by frame_info.
473 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
474 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
475 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
476 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
477 get at the current architecture by regcache.
479 * mips-linux-nat.c (mips_linux_register_addr)
480 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
481 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
482 (mips64_linux_regsets_fetch_registers)
483 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
484 the current architecture by regcache.
486 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
487 get at the current architecture by frame_info.
489 2007-10-10 Markus Deuling <deuling@de.ibm.com>
491 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
492 current architecture by regcache.
493 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
494 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
495 (mips_stub_frame_cache, mips_read_fp_register_single)
496 (mips_read_fp_register_double, mips_print_fp_register)
497 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
498 at the current architecture by frame_info.
499 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
500 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
501 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
502 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
503 (mips_o32_push_dummy_call, mips_o32_return_value)
504 (mips_o64_push_dummy_call, mips_o64_return_value)
505 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
508 2007-10-10 Markus Deuling <deuling@de.ibm.com>
510 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
511 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
512 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
513 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
514 (xtensa_register_write_masked, xtensa_register_read_masked)
515 (xtensa_supply_gregset, xtensa_store_return_value)
516 (xtensa_extract_return_value): Use get_regcache_arch to get at the
517 current architecture by regcache.
518 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
519 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
520 architecture by frame_info.
522 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
524 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
525 (thumb_analyze_prologue): Move pv_area_store_would_trash call
526 out of loop. Do not set cache->frameoffset.
527 (arm_scan_prologue): Use prologue-value mechanism. Do not set
528 frameoffset. Simplify framesize.
529 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
531 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
533 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
535 * target.c (update_current_target): Call setup_target_debug.
536 (push_target): Do not call it here.
538 2007-10-09 Michael Snyder <msnyder@specifix.com>
540 * MAINTAINERS: Update my email address.
542 2007-10-09 Markus Deuling <deuling@de.ibm.com>
544 * xtensa-tdep.c: Replace following current-gdbarch based macros by
546 (xtensa_pseudo_register_read)
547 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
548 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
549 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
550 (xtensa_pseudo_register_read)
551 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
552 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
553 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
554 (xtensa_frame_prev_register): NUM_AREGS.
555 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
556 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
557 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
558 (xtensa_supply_gregset, xtensa_frame_cache)
559 (xtensa_frame_prev_register): WS_REGNUM.
560 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
561 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
562 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
563 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
564 (xtensa_register_reggroup_p): REGMAP.
565 (call0_track_op): LITBASE_REGNUM.
566 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
567 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
568 (xtensa_frame_prev_register, AREG_NUMBER)
569 (xtensa_register_type): AR_BASE.
570 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
571 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
572 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
573 (xtensa_frame_cache, xtensa_frame_prev_register)
574 (xtensa_extract_return_value, xtensa_store_return_value)
575 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
576 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
577 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
578 (xtensa_frame_prev_register, xtensa_push_dummy_call)
579 (call0_frame_cache): A1_REGNUM.
580 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
581 (xtensa_push_dummy_call): A4_REGNUM.
582 (ARGS_FIRST_REG): A6_REGNUM.
583 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
584 (xtensa_frame_prev_register): A15_REGNUM.
585 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
586 them in the appropriate source file:
587 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
588 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
589 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
590 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
591 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
592 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
593 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
594 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
595 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
596 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
597 A13_REGNUM, A14_REGNUM, A15_REGNUM.
599 2007-10-09 Markus Deuling <deuling@de.ibm.com>
601 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
602 the current architecture by frame_info.
603 (h8300_frame_prev_register
604 (h8300_print_register): Replace current_gdbarch by gdbarch.
605 (h8300_print_registers_info, h8300_register_type)
606 (h8300_register_type): Likewise.
608 2007-10-09 Markus Deuling <deuling@de.ibm.com>
610 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
611 the current architecture by regcache.
612 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
613 (i386_linux_fetch_inferior_registers)
614 (i386_linux_store_inferior_registers): Likewise.
615 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
616 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
617 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
618 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
619 (i386_extract_return_value, i386_store_return_value): Likewise.
620 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
621 the current architecture by frame_info.
622 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
623 (i386_register_to_value, i386_value_to_register): Likewise.
625 2007-10-09 Markus Deuling <deuling@de.ibm.com>
627 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
628 the current architecture by regcache.
629 (monitor_store_register, monitor_store_registers): Likewise.
631 2007-10-09 Markus Deuling <deuling@de.ibm.com>
633 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
634 the current architecture by regcache.
636 2007-10-09 Markus Deuling <deuling@de.ibm.com>
638 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
641 2007-10-09 Markus Deuling <deuling@de.ibm.com>
643 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
644 architecture by frame.
645 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
646 (inside_main_func, frame_sp_unwind): Likewise.
648 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
650 * solib-svr4.c (enable_break): Add the dynamic linker also if
653 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
655 * MAINTAINERS (Write After Approval): Add self.
657 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
659 * stabsread.c (read_huge_number): Initialize local variable to 0.
661 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
663 * p-lang.h (pascal_main_name): Add declaration.
664 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
665 (GPC_MAIN_PROGRAM_NAME_2): New constants.
666 (pascal_main_name): New function.
667 * symtab.c: Include p-lang.h.
668 (find_main_name): Add call to pascal_main_name.
669 * Makefile.in (symtab.o): Add dependency on p-lang.h.
671 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
673 * stabsread.c (read_huge_number): Fix handling of octal
674 representation when the bit width is known.
675 (read_range_type): Record unsigned integral types with their size,
676 when the type size is known.
678 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
680 * MAINTAINERS (Write After Approval): Add self.
682 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
684 * breakpoint.c (print_one_breakpoint_location): ARI fix:
685 Replace asprintf by xstrprintf.
687 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
689 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
690 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
692 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
694 * linux-fork.c: Move "gdb_wait.h" include back to the position of
695 <sys/wait.h> include before last commit.
697 2007-10-08 Maciej W. Rozycki <macro@mips.com>
699 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
701 2007-10-08 Markus Deuling <deuling@de.ibm.com>
703 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
704 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
705 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
706 (store_regs_user_thread, store_regs_kernel_thread): Use
707 get_regcache_arch or get_frame_arch to get at the current architecture
708 by regcache or by frame, respectively.
710 2007-10-08 Markus Deuling <deuling@de.ibm.com>
712 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
713 (sh64_pseudo_register_read, sh64_pseudo_register_write)
714 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
715 (sh64_print_register, sh64_media_print_registers_info)
716 (sh64_compact_print_registers_info, sh64_unwind_sp)
717 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
718 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
719 (sh64_frame_prev_register): Use FRAME to recognize current
722 2007-10-08 Markus Deuling <deuling@de.ibm.com>
724 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
725 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
726 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
727 current_gdbarch by gdbarch.
728 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
729 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
730 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
731 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
732 recognize current architecture.
734 2007-10-08 Markus Deuling <deuling@de.ibm.com>
736 * remote.c (init_remote_state, fetch_register_using_p)
737 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
738 (store_register_using_P, store_registers_using_G)
739 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
740 get at the current architecture by regcache or by frame, respectively.
742 2007-10-08 Markus Deuling <deuling@de.ibm.com>
744 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
745 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
746 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
747 get_regcache_arch or get_frame_arch to get at the current architecture
748 by regcache or by frame, respectively.
749 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
750 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
751 (store_register, old_store_inferior_registers, supply_gregset)
752 (supply_fpregset, fill_fpregset): Likewise.
753 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
754 Replace current_gdbarch by gdbarch.
756 2007-10-08 Markus Deuling <deuling@de.ibm.com>
758 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
759 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
760 get_frame_arch to get at the current architecture by regcache or by
763 2007-10-08 Markus Deuling <deuling@de.ibm.com>
765 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
766 Replace current_gdbarch by gdbarch.
767 * ia64-tdep.c (ia64_frame_prev_register
768 (ia64_sigtramp_frame_prev_register)
769 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
770 get_frame_arch to get at the current architecture by regcache or by
772 * ia64-linux-nat.c (ia64_linux_fetch_register)
773 (ia64_linux_fetch_registers, ia64_linux_store_register)
774 (ia64_linux_store_registers): Likewise.
776 2007-10-08 Markus Deuling <deuling@de.ibm.com>
778 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
779 current_gdbarch by gdbarch.
780 * hppa-linux-nat.c (fetch_register, store_register)
781 (hppa_linux_fetch_inferior_registers)
782 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
783 get_frame_arch to get at the current architecture by regcache or by
785 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
786 (hppa_hpux_unwind_adjust_stub): Likewise.
787 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
788 (hppa_hpux_fetch_inferior_registers)
789 (hppa_hpux_store_inferior_registers): Likewise.
791 2007-10-08 Markus Deuling <deuling@de.ibm.com>
793 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
794 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
795 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
796 or get_frame_arch to get at the current architecture by regcache or by
798 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
799 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
800 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
801 current_gdbarch by gdbarch.
803 2007-10-08 Markus Deuling <deuling@de.ibm.com>
805 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
806 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
807 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
808 get at the current architecture by regcache or by·frame, respectively.
809 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
812 2007-10-08 Markus Deuling <deuling@de.ibm.com>
814 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
815 Use get_regcache_arch or get_frame_arch to get at the current
816 architecture by regcache or by frame, respectively.
817 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
818 * amd64-nat.c (amd64_supply_native_gregset)
819 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
821 2007-10-08 Markus Deuling <deuling@de.ibm.com>
823 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
825 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
826 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
827 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
828 get_frame_arch to get at the current architecture by regcache or by
830 * alpha-nat.c (fetch_osf_core_registers): Likewise.
832 2007-10-08 Markus Deuling <deuling@de.ibm.com>
834 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
835 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
836 current_gdbarch by gdbarch.
837 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
839 2007-10-08 Markus Deuling <deuling@de.ibm.com>
841 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
842 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
843 * regcache.c (regcache_raw_write): Use get_regcache_arch or
844 get_frame_arch to get at the current architecture by regcache or by
847 2007-10-08 Markus Deuling <deuling@de.ibm.com>
849 * findvar.c (value_of_register, locate_var_value): Use
850 get_regcache_arch or get_frame_arch to get at the current architecture
851 by regcache or by frame, respectively.
852 * findvar.c (default_value_from_register, value_from_register): Replace
853 current_gdbarch by gdbarch.
855 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
857 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
859 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
861 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
862 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
864 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
866 * remote.c (get_offsets): Only call free_symfile_segment_data if
869 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
871 * objc-exp.y: ARI fix: remove 4 PARAMS.
873 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
875 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
876 news. Mention XML support for M68K in GDB 6.7.
878 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
880 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
882 (init_vector_type): Use builtin_type_int32.
884 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
886 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
887 size to enable bi-arch generate-core-file support.
889 2007-10-02 Markus Deuling <deuling@de.ibm.com>
891 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
893 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
895 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
897 * tui/tui-win.c (tui_initialize_win): New function for
898 initializing tui's SIGWINCH signal handler.
899 * tui/tui-win.h (tui_initialize_win): Declare.
901 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
903 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
904 pointer to uintptr_t before casting to CORE_ADDR.
906 2007-10-02 Markus Deuling <deuling@de.ibm.com>
908 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
910 2007-10-02 Mark Mitchell <mark@codesourcery.com>
912 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
913 * ser-mingw.c (enum select_thread_state): New type.
914 (struct ser_console_state): Add have_started and thread_state.
915 (select_thread_wait): New function.
916 (thread_fn_type): New type.
917 (create_select_thread): New function.
918 (destroy_select_thread): Likewise.
919 (start_select_thread): Likewise.
920 (stop_select_thread): Likewise.
921 (console_select_thread): Use new functions.
922 (pipe_select_thread): Likewise.
923 (file_select_thread): Likewise.
924 (ser_console_wait_handle): Likewise.
925 (ser_console_done_wait_handle): Likewise.
926 (ser_console_close): Likewise.
927 (free_pipe_state): Likewise.
928 (pipe_wait_handle): Likewise.
929 (pipe_done_wait_handle): Likewise.
930 (struct net_windows_state): Derive from ser_console_state.
931 (net_windows_select_thread): Use new functions.
932 (net_windows_wait_handle): Likewise.
933 (net_windows_done_wait_handle): Likewise.
934 (net_windows_close): Likewise.
936 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
938 * inflow.c (terminal_ours_1): Remove useless line.
940 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
942 * mips-tdep.c (mips_read_fp_register_double): Correct check for
944 (mips_print_fp_register): Correct check for even FP registers.
945 (mips_virtual_frame_pointer): New function.
946 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
948 2007-09-30 Mike Frysinger <vapier@gentoo.org>
950 * value.h (lookup_only_internalvar): New prototype.
951 (create_internalvar): Likewise.
952 * value.c (lookup_only_internalvar): New function.
953 (create_internalvar): Likewise.
954 (lookup_internalvar): Use new lookup_only_internalvar and
955 create_internalvar functions.
956 * parse.c (write_dollar_variable): Look up $ symbols in internal
957 table first rather than last.
959 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
961 * linux-nat.c (linux_nat_new_thread): New variable.
962 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
963 linux_nat_switch_fork.
964 (lwp_list): Make public.
965 (add_lwp): Call linux_nat_new_thread.
966 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
968 (resume_callback): Clear lp->siginfo. Remove unused variable.
969 (linux_nat_resume): Assert that the LWP list is already initialized.
972 (stop_wait_callback, linux_nat_wait): Call it.
973 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
974 * linux-nat.h (struct lwp_info): Add siginfo.
975 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
978 * amd64-linux-nat.c (amd64_linux_dr): New.
979 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
980 (amd64_linux_dr_set): Take a PTID argument.
981 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
982 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
983 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
984 (amd64_linux_new_thread): New.
985 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
986 * i386-linux-nat.c (i386_linux_dr): New.
987 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
988 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
989 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
990 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
991 (i386_linux_new_thread): New.
992 (i386_linux_resume): Remove unnecessary PID check.
993 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
994 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
995 (fetch_debug_register, fetch_debug_register_pair): Delete.
996 (debug_registers): New.
997 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
998 ALL_LWPS and debug_registers.
999 (ia64_linux_new_thread): New.
1000 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
1001 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
1002 * ppc-linux-nat.c (last_stopped_data_address): Delete.
1003 (saved_dabr_value): New.
1004 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1006 (ppc_linux_new_thread): New.
1007 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
1008 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
1009 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
1010 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
1012 (s390_fix_watch_points): Take a PTID argument.
1013 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
1014 (_initialize_s390_nat): Call linux_nat_set_new_thread.
1016 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1017 Jeff Johnston <jjohnstn@redhat.com>
1019 * breakpoint.c (watchpoints_triggered): New.
1020 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
1021 Check watchpoint_triggered instead. Combine handling for software
1022 and hardware watchpoints. Do not use target_stopped_data_address
1023 here. Always check a watchpoint if its scope breakpoint triggers.
1024 Do not stop for thread or overlay events. Improve check for
1025 triggered watchpoints without a value change.
1026 (watch_command_1): Insert the scope breakpoint first. Link the
1027 scope breakpoint to the watchpoint.
1028 * breakpoint.h (enum watchpoint_triggered): New.
1029 (struct breakpoint): Add watchpoint_triggered.
1030 (bpstat_stop_status): Update prototype.
1031 (watchpoints_triggered): Declare.
1032 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
1033 (stepped_after_stopped_by_watchpoint): Delete.
1034 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
1035 local. Handle infwait_step_watch_state. Update calls to
1036 bpstat_stop_status. Use watchpoints_triggered to check
1038 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
1039 (remote_stopped_data_address): Do not check it.
1041 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
1043 * configure.ac: Add $LIBINTL when testing libbfd.
1044 * configure: Regenerated.
1046 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
1048 * NEW: Mention pending breakpoint changes and
1049 support for breakpoints at multiple locations.
1051 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
1053 * arm-linux-tdep.c (arm_linux_software_single_step): New.
1054 (arm_linux_init_abi): Use it.
1055 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
1056 condition correctly.
1057 * arm-tdep.h (arm_get_next_pc): Declare.
1058 * Makefile.in (arm-linux-tdep.o): Update.
1060 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1062 * varobj.c (install_new_value): Don't
1063 call value_get_print_value when a value is
1064 lazy. Update the print_value member in a
1067 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1069 * breakpoint.c (create_breakpoint): Set
1070 condition on each location, not on the first
1071 location of breakpoint.
1073 2007-09-26 Jim Blandy <jimb@codesourcery.com>
1075 * remote.c (getpkt_sane): Fix error message. No animals were
1076 harmed in the making of this debugger.
1078 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1080 * p-typeprint.c: Fix 11 ARI reported problems.
1081 (pascal_print_type): Fix 4 operator at end of line.
1082 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
1083 using strncmp function.
1084 (pascal_type_print_base): Fix 2 operator at end of line.
1085 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
1086 using strncmp function.
1089 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1091 * Fix PR pascal/2231
1092 dwarf2read.c (read_subroutine_type):
1093 All pascal functions are prototyped.
1095 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1097 * Fix PR pascal/2283
1098 p-valprint.c (pascal_val_print): correct current language check.
1099 Also print array of char as strings.
1102 2007-09-26 David Ung <davidu@mips.com>
1103 Maciej W. Rozycki <macro@mips.com>
1105 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
1107 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
1109 * p-exp.y: Fix 12 ARI reported problems.
1110 (name_not_typename): Fix 2 operator at end of line issues.
1111 (yylex): Fix 3 operator at end of line issues.
1112 Replace 7 DEPRECATED_STREQ macros using strcmp function.
1114 2007-09-25 David Ung <davidu@mips.com>
1115 Maciej W. Rozycki <macro@mips.com>
1117 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
1118 rules return composite types in registers as appropriate.
1120 2007-09-24 Jim Blandy <jimb@codesourcery.com>
1122 * symfile.h (struct symfile_segment_data): Doc fixes.
1123 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
1124 Assert that we were passed some loaded segment addresses,
1125 and that sections' segment numbers are valid.
1126 Simplify offset calculation.
1127 * remote.c (get_offsets): Clarify selection of relocate-by-segment
1128 strategy, and set num_segments correctly. Delete redundant
1129 assignments to do_sections.
1131 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
1133 * frame.c (get_prev_frame_1): Also check for PC in the same register.
1135 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
1137 * breakpoint.c (remove_sal): New.
1138 (expand_line_sal_maybe): New.
1139 (create_breakpoints): Call expand_line_sal_maybe.
1140 (clear_command): Add comment.
1141 (breakpoint_re_set_one): Call expand_line_sal_maybe.
1142 * linespec.c (decode_indirect): Set explicit_pc to 1.
1143 (decode_all_digits): Set explicit_line to 1.
1144 (append_expanded_sal): New.
1145 (expand_line_sal): New.
1146 * linespec.h (expand_line_sal): Declare.
1147 * symtab.c (init_sal): Initialize explicit_pc
1149 * symtab.h (struct symtab_and_line): New fields
1150 explicit_pc and explicit_line.
1152 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
1154 * infcall.c (call_function_by_hand): Handle language-specific
1155 pass and return by reference.
1157 * cp-abi.c (cp_pass_by_reference): New.
1158 * cp-abi.h (cp_pass_by_reference): Declare.
1159 (struct cp_abi_ops): Add pass_by_reference.
1160 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
1161 (init_gnuv3_ops): Set pass_by_reference.
1163 * language.c (language_pass_by_reference): New.
1164 (default_pass_by_reference): New.
1165 (unknown_language_defn, auto_language_defn, local_language_defn): Add
1166 default_pass_by_reference.
1167 * langauge.h (struct language_defn): Add la_pass_by_reference.
1168 (language_pass_by_reference, default_pass_by_reference): Declare.
1169 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
1170 * c-lang.c (c_language_defn, asm_language_defn)
1171 (minimal_language_defn): Likewise.
1172 (cplus_language_defn): Add cp_pass_by_reference.
1173 * f-lang.c (f_language_defn): Add default_pass_by_reference.
1174 * jv-lang.c (java_language_defn): Likewise.
1175 * m2-lang.c (m2_language_defn): Likewise.
1176 * objc-lang.c (objc_language_defn): Likewise.
1177 * p-lang.c (pascal_language_defn): Likewise.
1178 * scm-lang.c (scm_language_defn): Likewise
1180 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
1182 Allow a code breakpoint to have several locations
1184 * breakpoint.h (enum enable_state): Remove the
1185 bp_shlib_disabled enumerator.
1186 (struct bp_location): New members shlib_disabled,
1187 global_next, enabled and function_name.
1188 Rename pending to condition_not_parsed.
1190 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
1191 (ALL_BP_LOCATIONS_SAFE): Likewise.
1192 (breakpoint_enabled): Don't check for pending.
1193 (condition_command): Free and update all locations of
1195 (insert_bp_location): Adjust.
1196 (software_breakpoint_inserted_here_p): Don't care
1197 if breakpoint is enabled, as soon as it's inserted.
1198 (print_it_typical): Print bpstat's location, not
1199 bpstat's breakpoint's location.
1200 (bpstat_stop_status): Iterate over all locations, not
1202 (print_breakpoint_location): New.
1203 (print_one_breakpoint): Renamed to
1204 (print_one_breakpoint_location): ...this. Take
1205 parameters to describe which location is being
1206 printed. Modify code to properly print header
1207 for several locations and individual locations.
1208 (print_one_breakpoint): Print all locations.
1209 (breakpoint_has_pc): New.
1210 (describe_other_breakpoints): Use the above.
1211 (check_duplicates): Renamed to...
1212 (check_duplicates_for): .. this.
1213 (check_duplicates): Use check_duplicates_for.
1214 (allocate_bp_location): Adjust.
1215 (set_raw_breakpoint_without_location): New,
1216 extracted from set_raw_breakpoint.
1217 (set_breakpoint_location_function): New.
1218 (set_raw_breakpoint): Use
1219 set_raw_breakpoint_without_location.
1220 (make_breakpoint_permanent): Mark all locations
1222 (disable_breakpoints_in_shlibs): Iterate over
1224 (disable_breakpoints_in_unloaded_shlib): Likewise.
1225 (re_enable_breakpoints_in_shlibs): Likewise.
1226 (mention): Say "pending" when breakpoint has
1227 zero locations. If breakpoint has more than one
1229 (add_location_to_breakpoint): New.
1230 (create_breakpoint): Accept symtabs_and_lines, not
1231 symtab_and_line. Pass extra sals to
1232 add_location_to_breakpoint.
1233 (create_breakpoints): Pass symtabs_and_lines to
1235 (break_command_1): Make pending breakpoints
1236 have zero locations.
1237 (do_captured_breakpoint): Remove wrong allocation.
1238 (clear_command): Iterate over all locations.
1239 (unlink_locations_from_global_list): Renamed
1240 from unlink_location_from_global_list. Remove
1242 (delete_breakpoint): Remove all locations.
1243 Iterate over all locations when deciding which
1244 other location to re-enable.
1245 (all_locations_are_pending): New.
1246 (update_breakpoint_locations): Renamed from
1247 update_breakpoint_location. Try to match old
1248 and new locations using names of containing
1250 (breakpoint_re_set_one): Adjust.
1251 (find_location_by_number): New.
1252 (disable_command): Allow disabling individual location.
1253 (enable_command): Allow enabling individual location.
1254 * breakpoint.c: Adjust all uses of breakpoint's
1255 enable state to for bp_shlib_disabled change.
1257 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1259 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1260 (resolve_pending_breakpoint): Remove.
1261 (re_enable_breakpoints_in_shlibs): Remove.
1262 (unlink_locations_from_global_list): New.
1263 (update_breakpoint_locations): New.
1264 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1265 Use parse_condition and update_breakpoint_location to
1266 reset breakpoint. Ignore 'symbol not found' error from
1268 (breakpoint_re_set): Don't emit newline before the
1269 reason why breakpoint is not reset.
1270 (do_enable_breakpoint): Don't specially process pending
1272 (free_bp_location): New.
1273 (break_command_1): For pending breakpoints, initialize
1274 all fields of a sal with zeroes.
1275 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1276 * infcmd.c (post_create_inferior): Don't call
1277 re_enable_breakpoints_in_shlibs.
1278 * infrun.c (handle_inferior_event): Likewise.
1279 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1280 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1281 * win32-nat.c (get_win32_debug_event): Likewise.
1283 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1285 * breakpoint.c (create_breakpoint): Split from
1286 create_breakpoints, implementing most of its logic.
1287 Take just a single sal, single address string and
1288 single condition. Do not take parsed condition at
1290 (create_breakpoints): Just call create_breakpoint
1292 (find_condition_and_thread): New.
1293 (break_command_1): Use find_condition_and_thread.
1294 Do not keep parsed conditions.
1295 (do_captured_breakpoint): Don't convert
1296 condition string to struct expression.
1298 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1300 * breakpoint.h (struct breakpoint): Move the cond
1302 (struct bp_location): Here.
1303 * breakpoint.c (condition_command, bpstat_stop_status)
1304 (print_one_breakpoint, allocate_bp_location)
1305 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1306 (create_exec_event_catchpoint, create_breakpoints)
1307 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1308 (create_ada_exception_breakpoint, set_breakpoint_sal)
1309 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1310 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1312 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1314 Associate bp_stat with bp_location, not breakpoint.
1315 * breakpoint.h (breakpoint_at): Change type
1317 * breakpoint.c (bpstat_alloc): Take bp_location,
1319 (bpstat_find_breakpoint): Look at bpstat's location's
1320 owner, not at bpstat->breakpoint_at.
1321 (bpstat_find_step_resume_breakpoint): Likewise.
1322 (bpstat_num): Likewise.
1323 (print_it_typical): Likewise.
1324 (print_bp_stop_message): Likewise.
1325 (watchpoint_check): Likewise.
1326 (bpstat_what): Likewise.
1327 (bpstat_get_triggered_catchpoints): Likewise.
1328 (breakpoint_auto_delete): Likewise.
1329 (delete_breakpoint): Likewise.
1330 (bpstat_stop_status): Pass location, not breakpoint,
1331 to bpstat_alloc. Look at bpstat's location's
1332 owner, not at bpstat->breakpoint_at.
1334 2007-09-21 Jim Blandy <jimb@codesourcery.com>
1336 * macrotab.h (new_macro_table): Document that removing information
1337 from an obstack/bcache-managed macro table leaks memory.
1338 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1339 that data is never freed in obstack/bcache-managed macro tables,
1340 just leak the storage.
1341 (macro_undef): If we're undefining a macro at exactly the same
1342 source location that we defined it, simply remove the definition
1345 2007-09-21 Joel Brobecker <brobecker@adacore.com>
1347 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1348 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1349 Adjust the struct sym_fns object accordingly by setting
1350 the new field to NULL.
1351 * xcoffread.c (aix_process_linenos): Make static.
1352 (xcoff_sym_fns): Set new field to aix_process_linenos.
1353 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1354 by call to new the new sym_fns sym_read_linetable function.
1355 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1356 * config/rs6000/tm-rs6000.h: Delete.
1358 2007-09-21 David Ung <davidu@mips.com>
1359 Maciej W. Rozycki <macro@mips.com>
1361 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1362 rules do not treat composite types specially.
1364 2007-09-20 Maciej W. Rozycki <macro@mips.com>
1366 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1367 (mips16_in_function_epilogue_p): Likewise.
1368 (mips_in_function_epilogue_p): Likewise.
1369 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1371 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1373 * configure.ac: Add check for "etext".
1374 * configure, config.in: Regenerate.
1375 * maint.c (TEXTEND): Only define if either _etext or etext
1377 Disable the profiling functionality if TEXTEND is not defined.
1379 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1381 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1382 address register. Correct the call to frame_id_build.
1383 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1386 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1388 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1389 the linetable past the function end.
1391 2007-09-18 James E. Wilson <wilson@specifix.com>
1393 * MAINTAINERS: Update my email address.
1395 2007-09-18 Jerome Guitton <guitton@adacore.com>
1397 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1398 (inf_ttrace_delete_dying_threads_callback): New function.
1399 (inf_ttrace_resume): After resuming the execution, iterate over
1400 the dying threads to delete them for the thread list.
1401 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1402 mark the corresponding thread as dying instead of removing it
1403 from the thread list.
1404 (inf_ttrace_thread_alive): return 0 for dying threads.
1406 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1408 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1409 that return_frame is not null.
1411 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1413 * solib-svr4.c: Add include of "auxv.h".
1414 (enable_break): Use the AT_BASE auxiliary entry if available.
1415 * Makefile.in (solib-svr4.o): Update dependencies.
1417 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1419 * NEWS: Create a new section for the next release branch.
1420 Rename the section of the current branch, now that it has
1423 2007-09-17 Jerome Guitton <guitton@adacore.com>
1425 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1426 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1428 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1430 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1431 * mi/mi-cmds.h (mi_cmd_list_features): New.
1432 * mi/mi-main.c (mi_cmd_list_features): New.
1434 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1436 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1437 * version.in: Bump version to 6.7.50-20070911-cvs.
1439 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1441 * thread.c (free_thread): Do not delete the step resume breakpoint
1444 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1446 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1447 * corelow.c (core_read_description): New.
1448 (init_core_ops): Set to_read_description.
1449 * gdbarch.sh: Add gdbarch_core_read_description.
1450 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1451 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1452 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1453 (mips_register_g_packet_guesses): Use them.
1454 (_initialize_mips_tdep): Initialize them.
1455 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1456 * gdbarch.h, gdbarch.c: Regenerated.
1458 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1460 * infrun.c (stepping_past_breakpoint): New global variable.
1461 (stepping_past_breakpoint_ptid): Likewise.
1462 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1463 Only switch threads if we need to single-step over a breakpoint hit
1464 in the previously selected thread. If stepping, remember previous
1465 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1466 switch_to_thread instead of copying its contents.
1467 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1468 prepare_to_proceed returns true.
1469 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1470 (context_switch): Call switch_to_thread.
1471 (handle_inferior_event): Switch back to previous thread if requested
1472 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1473 * gdbthread.h (switch_to_thread): Add prototype.
1474 * thread.c (switch_to_thread): Make global.
1476 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1478 * p-valprint.c: Fix 7 ARI reported problems.
1479 (pascal_val_print): Fix one operator at end of line issue.
1480 Use paddress function to remove use of
1481 deprecated_print_address_numeric function (2 times).
1482 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1483 (pascal_value_print): Fix 3 operator at end of line issues.
1485 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1488 * arm-tdep.c (arm_in_call_stub): Delete.
1489 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1491 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1493 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1496 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1497 Jim Blandy <jimb@codesourcery.com>
1499 * NEWS: Update description of string changes. Mention print/s.
1500 * c-valprint.c (textual_element_type): New.
1501 (c_val_print): Use it. Do not skip address printing for pointers
1502 with a string format.
1503 (c_value_print): Doc update.
1504 * dwarf2read.c (read_array_type): Use make_vector_type.
1505 * gdbtypes.c (make_vector_type): New.
1506 (init_vector_type): Use it.
1507 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1508 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1509 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1510 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1511 (make_vector_type): New.
1512 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1513 Call the language print routine for string format.
1514 (print_scalar_formatted): Call val_print for string format. Handle
1515 unsigned original types for char format.
1516 (validate_format): Do not reject string format.
1517 * stabsread.c (read_type): Use make_vector_type.
1518 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1520 2007-09-04 Michael Snyder <msnyder@access-company.com>
1522 * expprint.c (print_subexp_standard): Check strchr for null.
1523 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1525 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1527 * stabsread.c (patch_block_status): Guard against null.
1528 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1530 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1532 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1533 in internal error message.
1535 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1536 Daniel Jacobowitz <dan@codesourcery.com>
1538 * infcmd.c (post_create_inferior): Update comment.
1539 (run_command_1): Always call post_create_inferior with 0 as
1542 * i386-cygwin-tdep.h: New.
1543 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1544 (win32_xfer_shared_library): Make it extern.
1546 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1548 (win32_so_ops): Delete.
1549 (get_relocated_section_addrs): Delete.
1550 (solib_symbols_add): Delete.
1551 (register_loaded_dll): Delete.
1552 (win32_make_so): New.
1553 (handle_load_dll): Use win32_make_so.
1554 (win32_free_so): Free the passed in so.
1555 (win32_relocate_section_addresses): Delete.
1556 (win32_solib_create_inferior_hook): Delete.
1557 (handle_unload_dll): Don't add PE offset here. Free so with
1558 win32_free_so instead of free_so.
1559 (win32_special_symbol_handling): Delete.
1560 (get_win32_debug_event): Remove unneeded calls. Set state to
1561 TARGET_WAITKIND_LOADED on a dll unload.
1562 (do_initial_win32_stuff): Clear cygwin_load_start and
1564 (map_code_section_args): Delete.
1565 (dll_code_sections_add): Delete.
1566 (core_section_load_dll_symbols): Delete.
1567 (win32_xfer_shared_libraries): New.
1568 (win32_current_sos): Delete.
1569 (win32_xfer_partial): New.
1570 (open_symbol_file_object): Delete.
1571 (in_dynsym_resolve_code): Delete.
1572 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1573 of win32_ops. Remove win32_so_ops settings. Don't set
1574 current_target_so_ops here.
1576 * Makefile.in (i386_cygwin_tdep_h): New variable.
1577 (i386-cygwin-tdep.o): Update dependencies.
1578 (win32-nat.o): Update dependencies.
1580 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1581 Daniel Jacobowitz <dan@codesourcery.com>
1583 * gdbarch.sh (core_xfer_shared_libraries): New.
1585 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1587 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1589 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1590 (xml_escape_text): New.
1591 * xml-support.h (xml_escape_text): Declare.
1593 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1594 * config/i386/cygwin.mt (TDEPFILES): ... here.
1596 * win32-nat.c: (fetch_elf_core_registers): Delete.
1597 (win32_elf_core_fn): Delete.
1598 (_initialize_core_win32): Delete.
1600 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1601 "xml-support.h" and "gdbcore.h".
1602 (i386_win32_gregset_reg_offset): New.
1603 (I386_WIN32_SIZEOF_GREGSET): New.
1604 (i386_win32_regset_from_core_section): New.
1605 (win32_xfer_shared_library): New.
1606 (struct cpms_data): New.
1607 (core_process_module_section): New.
1608 (win32_core_xfer_shared_libraries): New.
1609 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1610 gregset_num_regs, sizeof_gregset members of tdep. Register
1611 regset_from_core_section and core_xfer_shared_libraries callbacks.
1613 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1614 * gdbarch.h, gdbarch.c: Regenerate.
1616 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1618 * corelow.c (core_xfer_partial): Pass writebuf to
1619 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1621 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1623 * arm-tdep.h (arm_skip_stub): Declare.
1624 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1626 (arm_pe_skip_trampoline_code): New function.
1627 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1628 gdbarch_skip_trampoline_code callback.
1629 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1631 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1633 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1635 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1637 * configure.ac: Add --with-expat.
1638 * configure: Regenerated.
1640 2007-09-03 Andreas Schwab <schwab@suse.de>
1642 * configure.ac: Accept --with-system-readline.
1643 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1644 * configure: Regenerate.
1645 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1647 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1649 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1650 Daniel Jacobowitz <dan@codesourcery.com>
1652 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1654 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1656 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1658 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1660 * top.c (print_gdb_version): Update for GPL version 3.
1662 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1664 * NEWS: Mention the build-id .debug files verification.
1666 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1668 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1670 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1672 * Makefile.in (symfile.o): Update dependencies.
1673 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1674 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1675 (struct build_id): New structure.
1676 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1677 (find_separate_debug_file): New variable BUILD_ID.
1678 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1680 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1682 * varobj.c (struct varobj): Fix comment
1683 for the type member not to lie when it can be
1686 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1688 Implement -var-info-path-expression.
1690 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1692 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1693 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1694 * varobj.c (struct varobj): New field 'path_expr'.
1695 (c_path_expr_of_child, cplus_path_expr_of_child)
1696 (java_path_expr_of_child): New.
1697 (struct language_specific): New field path_expr_of_child.
1698 (varobj_create): Initialize the path_expr field.
1699 (varobj_get_path_expr): New.
1700 (new_variable): Initialize the path_expr field.
1701 (free_variable): Free the path_expr field.
1702 (adjust_value_for_children_access): New parameter
1704 (c_number_of_children): Adjust.
1705 (c_describe_child): New parameter CFULL_EXPRESSION.
1706 Compute full expression.
1707 (c_value_of_child, c_type_of_child): Adjust.
1708 (cplus_number_of_children): Adjust.
1709 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1710 Compute full expression.
1711 (cplus_name_of_child, cplus_value_of_child)
1712 (cplus_type_of_child): Adjust.
1713 * varobj.h (varobj_get_path_expr): Declare.
1715 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1717 * mi/mi-cmd-var.c (print_varobj): If a varobj
1718 type is NULL, don't try to print it.
1720 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1722 * ppc-linux-nat.c (right_fill_reg): Delete.
1723 (supply_gregset): Use ppc_supply_gregset.
1724 (supply_fpregset): Use ppc_supply_fpregset.
1725 (fill_gregset): Use ppc_collect_gregset.
1726 (fill_fpregset): Use ppc_collect_fpregset.
1727 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1728 (right_supply_register, ppc_linux_supply_gregset): Delete.
1729 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1730 (ppc_linux_supply_fpregset): Delete.
1731 (ppc_linux_collect_gregset): New function.
1732 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1733 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1734 ppc_linux_supply_gregset, and ppc_collect_gregset.
1735 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1736 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1737 (ppc_linux_regset_from_core_section): Update.
1738 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1739 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1740 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1741 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1742 (ppcobsd_collect_gregset): Likewise.
1743 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1744 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1745 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1746 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1747 (rs6000_aix64_reg_offsets): Likewise.
1748 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1749 ppc_floating_point_unit_p.
1750 (rs6000_aix_collect_regset): Similarly.
1751 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1752 when regsize is larger than regcache register size.
1753 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1754 regcache register size.
1755 (ppc_greg_offset): New function, split out from..
1756 (ppc_supply_gregset): ..here. Separate code handling all regs from
1757 single reg case. Correct xer offset.
1758 (ppc_fpreg_offset): New function, split out from..
1759 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1761 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1762 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1763 a fp unit, instead return if no fp.
1765 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1767 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1768 this code has not been compiled for two years.
1770 2007-08-29 Michael Snyder <msnyder@access-company.com>
1772 * event-top.c (gdb_readline2): Return after EOF.
1774 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1776 * symtab.c: Remove a function that has been commented out 3 years ago.
1778 2007-08-29 Randolph Chung <tausq@debian.org>
1780 * hppa-tdep.c (hppa32_cannot_fetch_register)
1781 (hppa64_cannot_fetch_register): New functions.
1782 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1783 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1785 2007-08-28 Michael Snyder <msnyder@access-company.com>
1787 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1788 check for null before calling check_typedef.
1790 * NEWS: Mention Coverity bug fixes.
1792 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1794 * spu-tdep.c (spu_pointer_to_address): New function.
1795 (spu_integer_to_address): Likewise.
1796 (spu_gdbarch_init): Add spu_pointer_to_address and
1797 spu_integer_to_address to gdbarch.
1799 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1801 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1803 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1805 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1806 that contains the GDB license.
1807 * copying.awk: Adjust to the GPLv3 wording.
1808 * copying.c: Regenerate.
1810 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1812 * copying.awk: Protoization, and i18n markup.
1814 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1816 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1817 * copyright.sh: Likewise.
1818 * gdb-events.sh: Likewise.
1819 * gdb_gcore.sh: Likewise.
1820 * gdb_mbuild.sh: Likewise.
1821 * gdbarch.sh: Likewise.
1822 * observer.sh: Likewise.
1823 * features/feature_to_c.sh: Likewise.
1824 * regformats/regdat.sh: Likewise.
1826 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1828 Switch the license of all .c files to GPLv3.
1829 Switch the license of all .h files to GPLv3.
1830 Switch the license of all .cc files to GPLv3.
1832 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1834 * configure.ac: Switch license to GPLv3.
1836 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1838 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1839 determine the file's FPU type.
1841 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1843 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1844 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1845 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1847 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1849 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1851 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1852 (elf_lookup_lib_symbol): Fix formatting.
1854 2007-08-21 Michael Snyder <msnyder@access-company.com>
1856 * dbxread.c (read_dbx_symtab): Guard null deref.
1859 * valops.c (find_overload_match): Guard against NULL.
1861 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1863 * MAINTAINERS (Patch Champions): Remove self.
1865 2007-08-21 Chris Smith <chris.smith@st.com>
1867 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1870 2007-08-18 Michael Snyder <msnyder@access-company.com>
1872 * stabsread.c (dbx_lookup_type): Memory leak.
1874 * event-loop.c (delete_async_signal_handler): Move pointer null
1875 test to before pointer dereference.
1877 * ui-out.c (append_header_to_list): Possible cut and paste error.
1879 * MAINTAINERS: white space tweak.
1881 2007-08-17 Michael Snyder <msnyder@access-company.com>
1883 * stack.c (print_frame): Memory leak.
1885 * completer.c (filename_completer): Avoid memory leak.
1886 Remove unnecessary nested block.
1888 * c-exp.y (parse_number): Memory leak.
1890 * completer.c (location_completer): Must free 'fn_list', except
1891 in the one case where it is returned (as 'list').
1893 * varobj.c (value_of_root): Memory leak.
1895 * gdbtypes.h (virtual_base_list): Remove export decl.
1896 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1897 (virtual_base_index): Memory leak.
1898 (virtual_base_index_skip_primaries): Ditto.
1900 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1902 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1903 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1904 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1905 (xtensa_read_register): New function.
1906 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1907 (xtensa_insn_kind): New types.
1908 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1909 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1910 (xtensa_verify_config, xtensa_pseudo_register_read)
1911 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1912 (xtensa_store_return_value)
1913 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1914 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1915 (xtensa_frame_this_id, xtensa_frame_prev_register)
1916 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1917 (call0_frame_cache, call0_frame_get_reg_at_entry)
1918 (call0_classify_opcode, call0_track_op)
1919 (call0_analyze_prologue, call0_frame_cache): New functions.
1921 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1923 * breakpoint.c (bpstat_free): New.
1924 (bpstat_clear): Use bpstat_free.
1925 (delete_breakpoint): Document why we cannot
1926 remove bpstats from stop_bpstat.
1927 * breakpoint.h (bpstat_free): Declare.
1929 2007-08-16 Michael Snyder <msnyder@access-company.com>
1931 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1933 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1934 Joel Brobecker <brobecker@adacore.com>
1936 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1938 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1939 Joel Brobecker <brobecker@adacore.com>
1941 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1942 checkin guarding against NULL.
1944 2007-08-14 Michael Snyder <msnyder@access-company.com>
1946 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1947 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1948 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1949 go at beginning of new line.
1951 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1952 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1953 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1954 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1955 tui-winsource.h, tui.c, tui.h: Function declarations and
1956 definitions, wrap long lines.
1958 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1959 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1960 Reformat block comments to GNU standard.
1962 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1963 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1964 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1965 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1966 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1967 spaces after periods, etc).
1969 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1970 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1971 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1972 tui-winsource.h: Whitespace changes, fix pointer declarations
1975 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1976 Michael Snyder <msnyder@access-company.com>
1978 * ada-lang.c (field_alignment): Guard against NULL.
1980 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1982 * MAINTAINERS (Global Maintainers): Add self.
1984 2007-08-14 Michael Snyder <msnyder@access-company.com>
1986 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1988 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1990 * varobj.c (cplus_describe_child): Guard against null.
1991 Use "NULL" instead of "0" to initialize pointers.
1993 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1995 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1996 to match any gdbarch with matching OSABI. Set default ABI and FPU
1997 after running the OSABI handler.
1999 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
2001 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
2002 * config/i386/linux.mt (TDEPFILES): ...to here.
2004 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2006 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
2007 the 'silent' parameter and code to implement that.
2008 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
2010 * win32-nat.c: Adjust.
2013 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2015 * breakpoint.c (update_breakpoints_after_exec): Don't
2016 set address to zero.
2018 2007-08-13 Michael Snyder <msnyder@access-company.com>
2020 * valops.c: Whitespace clean-up.
2022 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
2024 * event-top.c (command_line_handler): Memory leak.
2026 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
2027 No need to make copy.
2029 * source.c (find_source_lines): Require symtab 's'.
2031 2007-08-11 Michael Snyder <msnyder@access-company.com>
2033 * completer.c: Spelling fix in comments.
2035 2007-08-10 Michael Snyder <msnyder@access-company.com>
2037 * gdbtypes.c: Coding standard cleanup.
2038 * gdbtypes.c: Comment/whitespace cleanup.
2040 * stabsread.c (read_huge_number): Attempt to compute value before
2041 values that it depends on.
2043 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
2044 (decode_objc): Use "NULL" instead of 0.
2045 (find_method): Ditto.
2046 (decode_all_digits): Ditto.
2047 (decode_dollar): Ditto.
2049 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
2051 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
2053 * solib-svr4.c (enable_break): Don't free tmp_pathname until
2056 * completer.c: Comment/whitespace cleanup.
2058 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2060 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
2062 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
2064 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
2065 allocated file descriptors.
2067 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2069 * Makefile.in: Minor cleanup throughout; add some missing variables,
2070 add some missing rules, remove some rules that are no longer needed,
2071 and fix the dependencies in several rules.
2073 2007-08-10 Ludovic Courtès <ludo@gnu.org>
2075 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
2076 (scm_lang_h, scm_tags_h): New.
2077 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
2078 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
2079 * defs.h (enum language): Add `language_scm'.
2081 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
2084 2007-08-09 Ludovic Courtès <ludo@gnu.org>
2086 * MAINTAINERS (Write After Approval): Add myself.
2088 2007-08-09 Michael Snyder <msnyder@access-company.com>
2090 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
2092 2007-08-09 Joel Brobecker <brobecker@adacore.com>
2094 * solib-som.c (som_relocate_section_addresses): Stop saving
2095 the $CODE$ section in the so_list structure.
2097 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
2099 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
2100 (xtensa_register_group_t): Add entries for coprocessors.
2101 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
2102 (xtensa_add_reggroups): Likewise.
2103 (xtensa_register_reggroup_p): Likewise.
2104 (xtensa_coprocessor_register_group): New function.
2107 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2109 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
2111 2007-08-08 Michael Snyder <msnyder@access-company.com>
2113 * target.c (target_read_string): Guard against null.
2115 * varobj.c (value_of_root): Move alloc after return to avoid leak.
2117 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
2118 (tui_set_layout_for_display_command): Mem leak.
2120 * top.c (command_line_input): Memory leak.
2122 * solib-svr4.c (open_symbol_file_object): Memory leak.
2123 (svr4_current_sos): Ditto.
2124 (enable_break): Ditto.
2126 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
2128 * dwarf2read.c (add_partial_symbol): Memory leak.
2130 2007-08-06 Michael Snyder <msnyder@access-company.com>
2132 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
2134 2007-08-05 Jim Blandy <jimb@codesourcery.com>
2136 * macroexp.c (init_buffer): Remove testing code that overrides the
2137 caller's length guess.
2138 (gather_arguments): Use a larger initial size, now that the vector
2139 growth code has been exercised.
2141 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
2143 * solib-target.c (solib_target_relocate_section_addresses): Add
2144 orig_delta to addr_high.
2146 2007-08-04 Michael Snyder <msnyder@access-company.com>
2148 * remote-fileio.c (remote_fileio_func_write): Memory leak.
2150 * breakpoint.c (print_one_breakpoint): Off by one error.
2152 * tracepoint.c (add_register): Off by one error.
2153 (stringify_collection_list): Free malloc buffer.
2155 2007-08-03 Michael Snyder <msnyder@access-company.com>
2157 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
2158 stop memory leak, straighten out cleanups.
2160 * jv-lang.c (java_link_class_type): Guard against NULL.
2162 2007-08-02 Michael Snyder <msnyder@access-company.com>
2164 * gdbtypes.c (create_set_type): Test should only be done within
2165 the preceeding if block. Otherwise, variable is uninitialized.
2167 * gdbtypes.c (check_typedef): Guard NULL.
2169 2007-08-01 Michael Snyder <msnyder@access-company.com>
2171 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
2172 avoid dereference in lookup_cmd_1.
2174 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
2175 clean up long lines.
2176 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
2177 (tui_alloc_win_info): Ditto.
2178 (tui_add_content_elements): Ditto.
2179 * tui/tui-file.c (tui_file_magic): Ditto.
2181 2007-07-31 Michael Snyder <msnyder@access-company.com>
2183 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
2184 True and false paths are mutually exclusive.
2186 * event-top.c (command_line_handler): Add pedantic return.
2188 * f-valprint.c (info_common_command): Bail out to prevent null
2189 pointer deref. Break up a long line.
2191 * exec.c (xfer_memory): Remove redundant condition from 'if'.
2193 * symfile.c (reread_separate_symbols): Free xmalloced memory.
2195 * printcmd.c (build_address_symbolic): Remove dead code and dead
2198 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
2200 * linespec.c (minsym_found): Advance to the next line if possible.
2202 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
2204 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
2205 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
2206 solib-svr4.o, and add solib-target.o
2208 2007-07-27 Michael Snyder <msnyder@access-company.com>
2210 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2212 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
2214 * MAINTAINERS (Write After Approval): Add myself.
2216 2007-07-26 Maciej W. Rozycki <macro@mips.com>
2218 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
2221 2007-07-25 Maciej W. Rozycki <macro@mips.com>
2223 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2225 2007-07-24 Michael Snyder <msnyder@access-company.com>
2227 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2228 'buffer' must cover both branches that call strcmp (Coverity).
2230 * stack.c (print_frame_args): Check return value of lookup_symbol.
2232 * ax-gdb.c (find_field): Guard against null ptr.
2234 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2236 * regformats/reg-spu.dat: Fix order of npc, id registers.
2238 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2240 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2241 sections should always go to the executable file.
2243 2004-07-20 Chris Dearman <chris@mips.com>
2245 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2246 prologue instructions.
2248 2007-07-20 Maciej W. Rozycki <macro@mips.com>
2250 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2253 2007-07-20 Chris Dearman <chris@mips.com>
2254 Maciej W. Rozycki <macro@mips.com>
2256 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2259 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2260 Daniel Jacobowitz <dan@codesourcery.com>
2262 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2263 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2265 * NEWS: Mention gdbserver DLL support.
2267 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2269 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2271 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2273 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2276 2007-07-13 Kevin Buettner <kevinb@redhat.com>
2278 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2281 2007-07-12 Kevin Buettner <kevinb@redhat.com>
2283 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2284 (mep_analyze_prologue): Add case for BRA instruction.
2286 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2288 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2290 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
2292 * breakpoint.c: Include "top.h".
2293 (breakpoint_1): Don't set convenience variable $_ if server prefix
2295 (_initialize_breakpoint): Describe this behaviour in command help.
2297 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2299 * solib-target.c (library_list_start_segment): Cast address to
2302 2007-07-06 Mark Kettenis <kettenis@gnu.org>
2304 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2305 for terminated processes.
2307 2007-07-05 Michael Snyder <msnyder@access-company.com>
2309 * event-top.c (cli_command_loop): Prompt string can (and should)
2310 be freed after call to readline (Coverity). Also move local var
2311 declarations into block where they are used.
2313 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2314 should) be freed after call to readline (Coverity). Also move
2315 local var declarations into block where they are used.
2317 2007-07-03 Andreas Schwab <schwab@suse.de>
2319 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2322 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2323 Thiago Bauermann <bauerman@br.ibm.com>
2324 Joseph S. Myers <joseph@codesourcery.com>
2325 Daniel Jacobowitz <dan@codesourcery.com>
2327 * remote.c (remote_check_symbols): Use
2328 gdbarch_convert_from_func_ptr_addr.
2329 * infcall.c (find_function_addr): Handle function descriptors
2330 without debugging information.
2331 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2332 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2333 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2334 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2335 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2336 allow SEC_CODE and SEC_DATA.
2337 (enable_break): Update calls. Pass current_target to solib_add.
2338 Use gdbarch_convert_from_func_ptr_addr.
2340 2007-07-03 Ilko Iliev <iliev@ronetix.at>
2341 Daniel Jacobowitz <dan@codesourcery.com>
2343 * symfile.c (print_transfer_performance): Avoid integer overflow.
2346 2007-07-03 Markus Deuling <deuling@de.ibm.com>
2348 * cp-namespace.c (lookup_symbol_file): Add block to
2349 lookup_symbol_global call.
2350 * Makefile.in (solist_h): Add dependency on symtab header.
2351 (symtab.o): Add dependency on solist header.
2352 * solib.c (solib_global_lookup): New function.
2353 * solib-svr4.c (scan_dyntag): Likewise.
2354 (elf_locate_base): Call helper routine scan_dyntag.
2355 (elf_lookup_lib_symbol): New function.
2356 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2357 * solist.h (symtab.h): New include.
2358 (struct target_so_ops): New member lookup_lib_global_symbol.
2359 (solib_global_lookup): New prototype.
2360 * symtab.c: New include solist.h.
2361 (lookup_objfile_from_block): New function.
2362 (lookup_global_symbol_from_objfile): New function.
2363 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2364 (lookup_symbol_global): Call library-specific lookup procedure.
2365 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2367 * NEWS: Document framework.
2369 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2371 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2374 * cli/cli-script.c (build_command_line): Update NULL check.
2376 2007-07-02 Michael Snyder <msnyder@access-company.com>
2378 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2380 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2382 * Makefile.in (XMLFILES): Add library-list.dtd.
2383 (ALLDEPFILES): Add solib-target.o.
2384 (solib-target.o): New rule.
2385 * remote.c (PACKET_qXfer_libraries): New constant.
2386 (remote_protocol_features): Add qXfer:libraries:read.
2387 (remote_wait): Recognize library stop replies.
2388 (remote_async_wait): Likewise. Fix typo.
2389 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2390 (init_remote_async_ops): Fix typo.
2391 (_initialize_remote): Register "set remote library-info-packet".
2392 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2393 * solib-target.c: New file.
2394 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2396 (info_sharedlibrary_command): Likewise.
2397 (solib_add_library, solib_remove_library): New.
2398 * solist.h (struct so_list): Replace textsection with addr_low and
2400 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2401 * NEWS: Describe new qXfer:libraries:read and shared library
2403 * features/library-list.dtd: New.
2405 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2407 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2408 (start_remote): Use STOP_QUIETLY_REMOTE.
2409 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2410 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2411 Update to match shared library event breakpoint support. Only
2412 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2413 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2414 * fork-child.c (startup_inferior): Do not set
2415 inferior_ignoring_startup_exec_events
2416 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2418 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2420 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2422 * breakpoint.c (insert_bp_location): Remove dead code
2423 (DISABLE_UNSETTABLE_BREAK).
2424 (disable_breakpoints_in_shlibs)
2425 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2427 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2429 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2430 Call insert_bp_location.
2432 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2434 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2437 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2439 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2442 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2444 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2445 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2446 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2447 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2448 to display_gdb_prompt.
2450 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2453 * target.c (memory_xfer_partial): Do not continue past targets with
2456 2007-06-30 Andreas Schwab <schwab@suse.de>
2458 * m68k-tdep.c (m68k_ps_type): New.
2459 (m68k_init_types): New.
2460 (m68k_register_type): Use m68k_ps_type for PS register.
2461 (_initialize_m68k_tdep): Call m68k_init_types.
2463 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2464 from the generic m68k arch.
2466 2007-06-28 Michael Snyder <msnyder@access-company.com>
2468 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2471 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2472 gdb_assert before using return value of find_thread_pid (Coverity).
2474 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2476 * cli/cli-script.c (build_command_line): Add null pointer guard
2479 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2481 * linux-thread-db.c (thread_db_attach): Delete.
2482 (thread_db_detach): Typo fix. Call target_mourn_inferior
2483 instead of fixing up proc_handle.
2484 (have_threads_callback, have_threads): New functions.
2485 (thread_db_wait): Remove dead proc_handle.pid check. Only
2486 translate PTIDs if we have registered threads. Check for new
2487 threads if we have none.
2488 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2489 (find_new_threads_callback): Only enable event reporting if TID == 0.
2490 (same_ptid_callback): New.
2491 (thread_db_get_thread_local_address): Check for new threads.
2492 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2493 or to_post_startup_inferior.
2495 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2497 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2498 is always active if SOFTWARE_SINGLE_STEP_P is true.
2499 (resume): Use gdbarch_software_single_step[_p] instead of
2500 SOFTWARE_SINGLE_STEP[_P].
2501 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2503 * gdbarch.sh (software_single_step): Remove target macro.
2504 * gdbarch.h, gdbarch.c: Regenerate.
2506 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2508 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2509 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2510 (struct gdbarch_swap, struct gdbarch_swap_registration,
2511 struct gdbarch_swap_registry, gdbarch_swap_registry,
2512 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2513 current_gdbarch_swap_in_hack): Remove.
2514 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2515 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2516 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2517 (deprecated_current_gdbarch_select_hack): Likewise.
2518 * gdbarch.h, gdbarch.c: Regenerate.
2520 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2522 * infrun.c (clear_proceed_status): Clean up stop_registers.
2523 (normal_stop): Allocate regcache for stop_registers.
2524 (struct inferior_status): Remove stop_registers member.
2525 (save_inferior_status): Do not save stop_registers.
2526 (restore_inferior_status): Do not restore stop_registers.
2527 (discard_inferior_status): Do not discard stop_registers.
2528 (build_infrun): Remove.
2529 (_initialize_infrun): Do not swap stop_registers.
2531 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2533 * remote.c (remote_address_masked): If remote_address_size is zero,
2534 default to target address size.
2535 (build_remote_gdbarch_data): Remove.
2536 (_initialize_remote): Do not swap remote_address_size.
2538 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2540 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2541 builtin_type_char, builtin_type_short, builtin_type_int,
2542 builtin_type_long, builtin_type_signed_char,
2543 builtin_type_unsigned_char, builtin_type_unsigned_short,
2544 builtin_type_unsigned_int, builtin_type_unsigned_long,
2545 builtin_type_float, builtin_type_double, builtin_type_long_double,
2546 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2547 builtin_type_bool, builtin_type_long_long,
2548 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2549 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2550 variable declaration with compatibility macro.
2551 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2552 builtin_type_char, builtin_type_short, builtin_type_int,
2553 builtin_type_long, builtin_type_signed_char,
2554 builtin_type_unsigned_char, builtin_type_unsigned_short,
2555 builtin_type_unsigned_int, builtin_type_unsigned_long,
2556 builtin_type_float, builtin_type_double, builtin_type_long_double,
2557 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2558 builtin_type_bool, builtin_type_long_long,
2559 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2560 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2561 (build_gdbtypes): Remove.
2562 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2563 opaque-type-resolution command here. Do not call
2564 deprecated_register_gdbarch_swap.
2566 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2568 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2569 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2570 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2572 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2573 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2574 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2575 (build_parse): Remove.
2576 (_initialize_parse): Do not call build_parse. Do not register
2577 msym_ types for gdbarch-swapping.
2579 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2580 instead of creating private type.
2582 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2583 (_initialize_xcoffread): Do not initialized them.
2584 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2586 * mdebugread.c (nodebug_func_symbol_type): Remove.
2587 (nodebug_var_symbol_type): Remove.
2588 (_initialize_mdebugread): Do not initialize them.
2589 (parse_symbol): Use builtin nodebug_ type instead of them.
2590 (parse_procedure): Likewise.
2592 2007-06-21 Chris Dearman <chris@mips.com>
2594 * printcmd.c (do_one_display): If display/i, start with an initial
2595 line feed to avoid bad layout if there is a branch delay slot.
2597 2007-06-21 Nigel Stephens <nigel@mips.com>
2598 Maciej W. Rozycki <macro@mips.com>
2600 * disasm.c (gdb_print_insn): Return the number of branch delay
2601 slot instructions too.
2602 * disasm.h (gdb_print_insn): Update prototype.
2603 * printcmd.c (branch_delay_insns): New variable to record the
2604 number of delay slot instructions after disassembling a branch.
2605 (print_formatted): Record the number of branch delay slot
2607 (do_examine): When disassembling, if the last instruction
2608 disassembled has any branch delay slots, then bump the count so
2609 that they get disassembled too.
2610 * tui/tui-disasm.c (tui_disassemble): Update the call to
2612 * NEWS: Document the new behaviour.
2614 2007-06-21 Andreas Schwab <schwab@suse.de>
2616 * regcache.c (write_pc_pid): Restore missing else.
2618 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2620 * regcache.c (regcache_print): Use get_current_regcache ()
2621 instead of current_regcache.
2623 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2626 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2627 instead of bfd_make_section_anyway.
2628 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2629 when clearing SEC_LOAD.
2631 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2633 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2634 registers for big-endian.
2636 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2638 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2639 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2640 * gdbarch.c, gdbarch.h: Regenerate.
2642 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2644 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2645 gdbarch_believe_pcc_promotion.
2646 * stabsread.c (define_symbol): Likewise.
2647 Remove unnecessary definition.
2648 * coffread.c (process_coff_symbol): Remove unnecessary code.
2649 * gdbarch.c, gdbarch.h: Regenerate.
2651 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2653 * configure.ac: Do not use ${objdir}.
2654 * configure: Regenerated.
2656 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2658 * gdbarch.sh (deprecated_register_size): Remove.
2659 * gdbarch.h, gdbarch.c: Regenerate.
2661 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2662 by INT_REGISTER_SIZE.
2663 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2664 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2665 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2666 set_gdbarch_deprecated_register_size.
2668 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2670 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2671 gdbarch_deprecated_fp_regnum.
2672 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2673 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2674 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2675 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2677 * gdbarch.c, gdbarch.h: Regenerate.
2679 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2681 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2682 gdbarch_extract_return_value.
2683 * value.c (generic_use_struct_convention): Likewise (comment).
2684 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2685 * arch-utils.c (legacy_return_value): Likewise.
2686 * arch-utils.h (legacy_return_value): Likewise (comment).
2687 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2688 gdbarch_store_return_value.
2689 * stack.c (return_command): Likewise (comment).
2690 * arch-utils.h (legacy_return_value): Likewise (comment).
2691 * arch-utils.c (legacy_return_value): Likewise.
2692 * gdbarch.c, gdbarch.h: Regenerate.
2694 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2696 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2697 gdbarch_deprecated_use_struct_convention.
2698 * arch-utils.c (legacy_return_value): Likewise.
2699 * gdbarch.c, gdbarch.h: Regenerate.
2701 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2703 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2704 gdbarch_deprecated_function_start_offset.
2705 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2706 * linespec.c (minsym_found): Likewise.
2707 * infrun.c (handle_inferior_event): Likewise.
2708 * infcall.c (find_function_addr): Likewise.
2709 * cli/cli-cmds.c (disassemble_command): Likewise.
2710 * gdbarch.c, gdbarch.h: Regenerate.
2712 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2714 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2715 gdbarch_deprecated_reg_struct_has_addr.
2716 * infcall.c (call_function_by_hand): Likewise.
2717 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2718 * gdbarch_deprecated_reg_struct_has_addr_p.
2719 * infcall.c (call_function_by_hand): Likewise.
2720 * gdbarch.c, gdbarch.h: Regenerate.
2722 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2724 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2725 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2726 (sh_gdbarch_init): Remove
2727 set_gdbarch_deprecated_extract_struct_value_address.
2728 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2729 (sh64_gdbarch_init): Remove
2730 set_gdbarch_deprecated_extract_struct_value_address.
2731 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2732 (ia64_gdbarch_init): Remove
2733 set_gdbarch_deprecated_extract_struct_value_address.
2734 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2735 (frv_gdbarch_init): Remove
2736 set_gdbarch_deprecated_extract_struct_value_address.
2737 * gdbarch.c, gdbarch.h: Regenerate.
2739 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2741 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2742 * v850-tdep.c (v850_unwind_sp): Likewise.
2743 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2744 * stack.c (frame_info): Likewise.
2745 * stabsread.c (define_symbol): Likewise.
2746 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2747 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2748 (sh_unwind_sp): Likewise.
2749 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2750 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2751 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2752 (rs6000_frame_cache): Likewise.
2753 * rs6000-nat.c (store_register): Likewise.
2754 * remote-mips.c (mips_wait): Likewise.
2755 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2756 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2757 (ppc64_sysv_abi_push_dummy_call): Likewise.
2758 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2759 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2760 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2761 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2762 * m32r-rom.c (m32r_supply_register): Likewise.
2763 * frame.c (frame_sp_unwind): Likewise.
2764 * mips-tdep.c (mips_insn16_frame_cache)
2765 (mips_insn32_frame_cache): Likewise (comment).
2766 * m68klinux-nat.c (supply_gregset): Likewise.
2767 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2768 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2769 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2770 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2771 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2772 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2773 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2774 (cris_register_type, crisv32_register_type)
2775 (cris_dwarf2_frame_init_reg): Likewise.
2776 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2777 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2778 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2779 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2781 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2782 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2783 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2784 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2785 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2786 * v850-tdep.c (v850_unwind_pc): Likewise.
2787 * stack.c (frame_info): Likewise.
2788 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2789 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2790 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2791 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2792 (sh_dsp_show_regs): Likewise.
2793 * shnbsd-tdep.c (shnbsd_supply_gregset)
2794 (shnbsd_collect_gregset): Likewise.
2795 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2796 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2797 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2798 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2799 (6000_register_reggroup_p, rs6000_unwind_pc)
2800 (rs6000_frame_cache): Likewise.
2801 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2802 (rs6000_store_inferior_registers): Likewise.
2803 * remote-mips.c (mips_wait, mips_load): Likewise.
2804 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2805 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2806 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2807 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2808 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2809 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2810 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2811 (store_ppc_registers, fill_gregset): Likewise.
2812 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2813 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2814 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2815 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2816 * m68klinux-nat.c (supply_gregset): Likewise.
2817 * irix5-nat.c (fill_gregset): Likewise.
2818 * i386-tdep.c (i386_unwind_pc): Likewise.
2819 * i386-linux-nat.c (i386_linux_resume): Likewise.
2820 * frame.c (get_prev_frame_1): Likewise.
2821 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2822 * dbug-rom.c (dbug_supply_register): Likewise.
2823 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2824 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2825 (cris_register_type, crisv32_register_type, crisv32_register_name)
2826 (cris_dwarf2_frame_init_reg, find_step_target)
2827 (cris_software_single_step, cris_supply_gregset)
2828 (cris_regnums): Likewise.
2829 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2830 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2831 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2832 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2833 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2835 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2836 * dbug-rom.c (dbug_supply_register): Likewise.
2837 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2838 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2839 * win32-nat.c (win32_resume): Likewise.
2840 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2841 * m68k-tdep.c (m68k_register_type): Likewise.
2842 * m68klinux-nat.c (supply_gregset): Likewise.
2844 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2845 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2846 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2847 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2848 (fv_reg_base_num, dr_reg_base_num): Likewise.
2849 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2850 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2851 (sh64_extract_return_value, sh64_store_return_value)
2852 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2853 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2854 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2855 (invalidate_cache): Likewise.
2856 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2857 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2858 (mipsnbsd_fill_fpreg): Likewise.
2859 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2860 (mipsnbsd_store_inferior_registers): Likewise.
2861 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2862 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2863 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2864 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2865 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2866 (fill_fpregset): Likewise.
2867 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2868 * i386-tdep.h (struct_return): Likewise (comment).
2869 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2870 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2871 (go32_store_registers): Likewise.
2872 * alpha-tdep.c (alpha_next_pc): Likewise.
2873 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2874 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2875 (alphabsd_store_inferior_registers): Likewise.
2876 * core-regset.c (fetch_core_registers): Likewise.
2877 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2879 * gdbarch.c, gdbarch.h: Regenerate.
2881 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2883 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2884 * dbxread.c (start_psymtab): Check HAVE_ELF.
2885 (aout_sym_fns): Likewise.
2886 * elfread.c (elf_symfile_segments): New.
2887 (elf_sym_fns): Add elf_symfile_segments.
2888 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2889 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2890 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2891 * somread.c (som_sym_fns): Use default_symfile_segments.
2892 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2893 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2894 (default_symfile_segments): New function.
2895 (syms_from_objfile): Update call to find_sym_fns.
2896 (symfile_get_segment_data, free_symfile_segment_data): New.
2897 (symfile_map_offsets_to_segments): New.
2898 (symfile_find_segment_sections): New.
2899 * symfile.h (struct symfile_segment_data): New.
2900 (struct sym_fns): Add sym_segments.
2901 (default_symfile_segments, symfile_get_segment_data)
2902 (free_symfile_segment_data): New prototypes.
2903 (symfile_map_offsets_to_segments): Likewise.
2904 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2905 * Makefile.in (COMMON_OBS): Remove elfread.o.
2906 (elf_internal_h): New.
2907 (elfread.o): Update.
2908 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2910 * config.in, configure: Regenerated.
2911 * NEWS: Mention qOffsets changes.
2913 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2915 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2916 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2917 Replace global variable declaration with compatibility macro.
2918 (struct builtin_m2_type): New data type.
2919 (builtin_m2_type): Add prototype.
2920 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2921 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2922 Remove global variables.
2923 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2924 (build_m2_types): New function.
2925 (m2_type_data): New variable.
2926 (builtin_m2_type): New function.
2927 (_initialize_m2_language): Do not build data types. Register
2928 m2_type_data per-gdbarch data.
2930 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2932 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2933 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2934 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2935 builtin_type_f_real_s8, builtin_type_f_real_s16,
2936 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2937 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2938 variable declaration with compatibility macro.
2939 (struct builtin_f_type): New data type.
2940 (builtin_f_type): Add prototype.
2941 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2942 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2943 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2944 builtin_type_f_real_s8, builtin_type_f_real_s16,
2945 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2946 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2947 (f_language_arch_info): Use builtin_f_type instead of variables.
2948 (build_fortran_types): Build builtin_f_type structure instead of
2949 setting global type variables.
2950 (f_type_data): New variable.
2951 (builtin_f_type): New function.
2952 (_initialize_f_language): Do not call build_fortran_types. Do not
2953 swap global type variables. Register f_type_data per-gdbarch data.
2955 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2957 * f-lang.c (_initialize_f_language): Do not initialize or
2958 swap builtin_type_string.
2960 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2962 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2963 value_of_builtin_frame_reg): Remove.
2964 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2965 inactive call to value_of_builtin_frame_reg.
2967 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2969 * gdbarch.sh (bfd_vma_bit): Remove.
2970 * gdbarch.c, gdbarch.h: Regenerate.
2972 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2973 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2974 (build_gdbtypes): Do not initialize it.
2975 (_initialize_gdbtypes): Do not swap it.
2977 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2979 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2980 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2981 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2982 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2983 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2984 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2985 builtin_type_vec64, builtin_type_vec128): Remove.
2986 (init_simd_type): Remove.
2987 (init_vector_type): Make global.
2988 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2989 (build_gdbtypes): Do not build vector types.
2990 (_initialize_gdbtypes): Do not swap vector types.
2991 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2992 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2993 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2994 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2995 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2996 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2997 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2998 (init_vector_type): Add prototype.
3000 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
3001 i386_sse_type members.
3002 (i386_mmx_type, i386_sse_type): Change from variables to functions.
3003 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
3004 (i386_init_types): Do not build vector types.
3005 (i386_mmx_type, i386_sse_type): New functions.
3006 (i386_register_type): Call them instead of using global variables.
3007 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
3008 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
3009 of using global variable.
3011 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
3012 and ppc_builtin_type_vec128 members.
3013 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
3014 (rs6000_builtin_type_vec128): Likewise.
3015 (rs6000_register_type): Call them instead of using builtin_type_vec64
3016 and builtin_type_vec128.
3017 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
3019 * spu-tdep.c (struct gdbarch_tdep): New data type.
3020 (spu_builtin_type_vec128): Remove variable.
3021 (spu_builtin_type_vec128): New function.
3022 (spu_register_type): Call it instead of using global variable.
3023 (spu_gdbarch_init): Allocate tdep structure.
3024 (spu_init_vector_type): Remove function.
3025 (_initialize_spu_tdep): Do not call it.
3027 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3029 * amd64-tdep.c (struct amd64_register_info): Remove.
3030 (amd64_register_info): Remove.
3031 (amd64_register_names): New static variable.
3032 (AMD64_NUM_REGS): Use amd64_register_names instead of
3033 amd64_register_info.
3034 (amd64_register_name): Likewise.
3035 (amd64_register_type): Do not refer to amd64_register_info.
3037 * s390-tdep.c (struct s390_register_info): Remove.
3038 (s390_register_info): Remove.
3039 (s390_register_name): Do not refer to s390_register_info.
3040 (s390_register_type): Likewise.
3042 * sparc64-tdep.c (struct sparc64_register_info): Remove.
3043 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
3044 (sparc64_register_names, sparc64_pseudo_register_names): New.
3045 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
3046 sparc64_register_names and sparc64_pseudo_register_names instead of
3047 sparc64_register_info and sparc64_pseudo_register_info.
3048 (sparc64_register_name): Likewise.
3049 (sparc64_register_type): Do not refer to sparc64_register_info
3050 and sparc64_pseudo_register_info.
3052 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3054 * c-lang.c (cplus_builtin_types): Remove.
3055 (enum cplus_primitive_types): New data type.
3056 (cplus_language_arch_info): New function.
3057 (cplus_language_defn): Set la_language_arch_info member. Do not set
3058 la_builtin_type_vector and string_char_type members.
3060 * f-lang.c (f_builtin_types): Remove.
3061 (enum f_primitive_types): New data type.
3062 (f_language_arch_info): New function.
3063 (f_language_de): Set la_language_arch_info member. Do not set
3064 la_builtin_type_vector and string_char_type members.
3066 * m2-lang.c (m2_builtin_types): Remove.
3067 (enum m2_primitive_types): New data type.
3068 (m2_language_arch_info): New function.
3069 (m2_language_defn): Set la_language_arch_info member. Do not set
3070 la_builtin_type_vector and string_char_type members.
3072 * objc-lang.c (objc_builtin_types): Remove.
3073 (objc_language): Set la_language_arch_info member. Do not set
3074 la_builtin_type_vector and string_char_type members.
3076 * p-lang.c (pascal_builtin_types): Remove.
3077 (enum pascal_primitive_types): New data type.
3078 (pascal_language_arch_info): New function.
3079 (pascal_language_defn): Set la_language_arch_info member. Do not set
3080 la_builtin_type_vector and string_char_type members.
3082 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3084 * regcache.c (struct regcache): Add ptid_t member.
3085 (regcache_xmalloc): Initialize it.
3086 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
3087 (regcache_dup): Likewise.
3088 (regcache_dup_no_passthrough): Likewise.
3089 (current_regcache): Make static.
3090 (registers_ptid): Remove variable.
3091 (get_thread_regcache): New function.
3092 (get_current_regcache): New function.
3093 (registers_changed): Implement by freeing current regcache.
3094 (regcache_raw_read): Do not refer to current_regcache. Set
3095 inferior_ptid to regcache->ptid while calling target routines.
3096 (regcache_raw_write): Likewise.
3097 (regcache_raw_supply): Do not refer to current_regcache.
3098 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
3099 (write_pc_pid): Likewise.
3100 (build_regcache): Remove.
3101 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
3102 or deprecated_register_gdbarch_swap. Do not initialize
3104 * regcache.h (get_current_regcache): Add prototype.
3105 (get_thread_regcache): Likewise.
3106 (current_regcache): Remove declaration.
3108 * corelow.c (core_open): Replace current_regcache by
3109 get_current_regcache ().
3110 * frame.c (frame_pop): Likewise.
3111 (put_frame_register): Likewise.
3112 (get_current_frame, create_new_frame): Likewise.
3113 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
3114 * stack.c (return_command): Likewise.
3115 * infcall.c (call_function_by_hand): Likewise.
3116 * infrun.c (resume): Likewise.
3117 (save_inferior_status, restore_inferior_status): Likewise.
3118 * linux-fork.c (fork_load_infrun_state): Likewise.
3119 (fork_save_infrun_state): Likewise.
3120 * win32-nat.c (win32_resume): Likewise.
3121 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
3122 * monitor.c (monitor_wait): Likewise.
3123 * remote.c (remote_wait): Likewise.
3124 * remote-mips.c (mips_wait): Likewise.
3126 * bsd-kvm.c (bsd_kvm_open): Likewise
3127 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
3128 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
3129 * i386-linux-nat.c (i386_linux_resume): Likewise.
3130 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3131 (ia64_linux_stopped_data_address): Likewise.
3133 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
3134 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3135 * mep-tdep.c (current_me_module, current_options): Likewise.
3136 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
3138 * linux-nat.c (linux_nat_do_thread_registers): Use thread
3139 regcache instead of current_regcache. Call target_fetch_registers.
3140 (linux_nat_corefile_thread_callback): Update call site.
3141 (linux_nat_do_registers): Likewise.
3142 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
3143 of current_regcache.
3144 (procfs_make_note_section): Likewise.
3145 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
3146 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3147 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
3148 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3150 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3152 * regcache.c (read_register, read_register_pid): Remove.
3153 (write_register, write_register_pid): Likewise.
3154 * regcache.h (read_register, read_register_pid): Remove prototype.
3155 (write_register, write_register_pid): Likewise.
3157 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3159 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
3160 (write_pc): Likewise. Remove default implementation, add predicate.
3161 * gdbarch.c, gdbarch.h: Regenerate.
3162 * regcache.c (read_pc_pid): Use current regcache instead of calling
3164 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
3166 (generic_target_write_pc): Remove.
3167 * inferior.h (generic_target_write_pc): Remove.
3168 * frv-tdep.c (frv_gdbarch_init): Do not install it.
3169 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3170 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3171 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3172 * sh-tdep.c (sh_gdbarch_init): Likewise.
3173 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3175 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
3176 argument. Use REGCACHE instead of calling read_register_pid.
3177 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
3178 * hppa-tdep.c (hppa_read_pc): Likewise.
3179 * hppa-tdep.h (hppa_read_pc): Likewise.
3180 * ia64-tdep.c (ia64_read_pc): Likewise.
3181 * m32r-tdep.c (m32r_read_pc): Likewise.
3182 * mep-tdep.c (mep_read_pc): Likewise.
3183 * mn10300-tdep.c (mn10300_read_pc): Likewise.
3184 * spu-tdep.c (spu_read_pc): Likewise.
3186 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
3187 argument. Use REGCACHE instead of calling write_register_pid.
3188 * avr-tdep.c (avr_write_pc): Likewise.
3189 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
3190 * hppa-tdep.c (hppa_write_pc): Likewise.
3191 * hppa-tdep.h (hppa_write_pc): Likewise.
3192 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
3193 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
3194 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
3195 * ia64-tdep.c (ia64_write_pc): Likewise.
3196 * ia64-tdep.h (ia64_write_pc): Likewise.
3197 * m32r-tdep.c (m32r_write_pc): Likewise.
3198 * m88k-tdep.c (m88k_write_pc): Likewise.
3199 * mep-tdep.c (mep_write_pc): Likewise.
3200 * mips-tdep.c (mips_write_pc): Likewise.
3201 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3202 * mn10300-tdep.c (mn10300_write_pc): Likewise.
3203 * sparc-tdep.c (sparc_write_pc): Likewise.
3204 * spu-tdep.c (spu_write_pc): Likewise.
3206 * mips-tdep.c (read_signed_register): Remove.
3207 (read_signed_register_pid): Likewise.
3208 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
3209 Use REGCACHE instead of calling read_signed_register_pid.
3211 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3213 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
3214 * gdbarch.c, gdbarch.h: Regenerate.
3215 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
3216 (push_dummy_code): Likewise. Pass it to callee.
3217 (call_function_by_hand): Pass current regcache to push_dummy_code.
3219 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
3220 argument. Use it instead of current_regcache.
3222 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
3223 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
3225 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3227 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3228 * gdbarch.c, gdbarch.h: Regenerate.
3229 * infrun.c (handle_inferior_event): Pass current frame to
3230 gdbarch_get_longjmp_target.
3232 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3233 Read registers from FRAME instead of using read_register.
3234 Use get_frame_arch instead of current_gdbarch.
3235 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3236 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3237 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3238 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3239 (mips64_linux_get_longjmp_target): Likewise.
3240 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3242 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3244 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3245 * gdbarch.c, gdbarch.h: Regenerate.
3246 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3247 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3248 * infrun.c (handle_inferior_event): Pass current frame to
3249 gdbarch_skip_trampoline_code and skip_language_trampoline.
3251 * language.c (unk_lang_trampoline): Add FRAME argument.
3252 (skip_language_trampoline): Add FRAME argument. Pass it to
3253 skip_trampoline callback.
3254 * language.h: Add forward declaration of struct frame_info.
3255 (struct language_defn): Add FRAME argument to skip_trampoline.
3256 (skip_language_trampoline): Add FRAME argument.
3257 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3258 to skip_trampoline callback.
3259 * cp-abi.h: Add forward declaration of struct frame_info.
3260 (cplus_skip_trampoline): Add FRAME argument.
3261 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3262 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3263 to gdbarch_skip_trampoline_code.
3264 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3265 to gdbarch_skip_trampoline_code.
3267 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3268 * symtab.h (find_solib_trampoline_target): Likewise.
3269 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3270 find_solib_trampoline_target.
3272 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3273 from FRAME instead of calling read_register.
3275 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3276 argument. Read registers from FRAME instead of using read_register.
3277 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3278 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3280 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3283 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3285 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3286 registers from FRAME instead of using read_signed_register.
3288 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3290 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3291 instead of using read_register.
3292 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3293 ppc64_standard_linkage_target.
3294 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3295 Pass it to find_solib_trampoline_target. Read registers from FRAME
3296 instead of using read_register.
3298 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3301 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3303 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3305 * gdbarch.c, gdbarch.h: Regenerate.
3306 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3308 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3309 registers from FRAME instead of using read_register.
3310 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3311 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3312 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3315 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3316 from FRAME instead of using read_register.
3317 (thumb_get_next_pc): Likewise.
3318 (arm_get_next_pc): Likewise.
3319 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3320 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3321 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3324 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3325 from FRAME instead of using read_register.
3326 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3327 to find_step_target.
3329 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3330 from FRAME instead of using read_register / read_signed_register.
3331 (extended_mips16_next_pc): Likewise.
3332 (mips16_next_pc): Likewise.
3333 (mips_next_pc): Likewise.
3334 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3335 to mips_next_pc. Use get_frame_pc instead of read_pc.
3336 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3339 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3340 of current frame. Read registers from FRAME.
3341 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3342 branch_dest. Use get_frame_pc instead of read_pc.
3343 (rs6000_software_single_step): Likewise.
3344 (bl_to_blrl_insn_p): Do not call branch_dest.
3345 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3348 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3349 Read registers from FRAME instead of current regcache.
3350 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3351 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3352 * sparc-tdep.c (sparc_address_from_register): Remove.
3353 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3354 GDBARCH. Pass FRAME to step_trap callback.
3355 (sparc_step_trap): Add FRAME argument.
3356 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3357 to sparc_analyze_control_transfer. Read registers from FRAME instead
3358 of calling sparc_address_from_register.
3359 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3361 (sparc_address_from_register): Remove prototype.
3362 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3363 (sparcnbsd_step_trap): Add FRAME argument.
3365 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3366 by FRAME. Read registers from FRAME instead of REGCACHE.
3368 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3370 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3371 instead of calling read_register.
3373 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3374 calling write_register.
3376 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3377 calling write_register.
3379 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3380 instead of calling read_register.
3381 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3382 instead of calling read_register and write_register.
3384 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3385 instead of current_regcache.
3387 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3388 of calling write_register.
3389 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3390 parameter instead of current_regcache.
3392 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3393 instead of calling read_register.
3394 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3395 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3396 (mips_n32n64_push_dummy_call): Likewise.
3397 (mips_o32_push_dummy_call): Likewise.
3398 (mips_o64_push_dummy_call): Likewise.
3400 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3401 parameter instead of current_regcache.
3403 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3404 Use it instead of read_register and write_register.
3405 (xtensa_register_read_masked): Likewise.
3406 (xtensa_pseudo_register_read): Update call.
3407 (xtensa_pseudo_register_write): Likewise.
3408 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3409 instead of calling read_register.
3410 (xtensa_push_dummy_call): Update comment.
3412 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3414 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3415 by frame_unwind_register_signed calls.
3416 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3417 frame allocations when called with NULL NEXT_FRAME parameter.
3418 (read_next_frame_reg): Remove.
3420 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3421 instead of reading the FPSCR register.
3422 (sh_frame_cache): Pass unwound FPSCR register value to
3423 sh_analyze_prologue.
3424 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3426 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3427 instead of reading the CTBP register.
3428 (v850_frame_cache): Pass unwound CTBP register value to
3429 v850_analyze_prologue.
3431 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3433 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3434 * sh-tdep.c (sh_show_regs): Likewise.
3435 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3436 (sh_generic_show_regs): Add FRAME parameter. Use register
3437 values from that frame instead of calling read_register.
3438 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3439 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3440 sh_dsp_show_regs): Likewise.
3441 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3442 sh64_show_regs): Likewise.
3444 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3446 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3447 current regcache instead of calling read_register.
3449 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3451 * mep-tdep.c (current_me_module): Read from current regcache
3452 instead of calling read_register.
3453 (current_options): Likewise.
3455 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3457 * cris-tdep.c (cris_stopped_data_address): Read register values
3458 from current frame instead of calling read_register.
3459 * frv-tdep.c (frv_stopped_data_address): Likewise.
3461 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3463 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3464 instead of write_register (PC_REGNUM, ...).
3466 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3468 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3469 explaining why the PC adjustment code is necessary.
3471 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3473 * m68k-tdep.h (enum m68k_flavour): New.
3474 (struct gdbarch_tdep): New fields
3475 float_return, flavour and fpregs_present.
3476 * m68k-tdep.c (m68k_register_type): Use
3477 fpregs_present and conditionalize floating
3478 registers type on flavour.
3479 (m68k_register_names): New.
3480 (m68k_register_name): Use the above.
3481 (m68k_convert_register_p): Consult fpregs_present.
3482 (m68k_register_to_value, m68k_value_to_register):
3483 Use register_type to obtain the type of floating
3485 (m68k_svr4_extract_return_value): Check tdep->float_return.
3486 Use register_type to get the type of floating
3488 (m68k_svr4_store_return_value): Likewise.
3489 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3490 (m68k_analyze_register_saves): Likewise.
3491 (m68k_gdbarch_init): Extract infromation
3492 from XML description, if present. Guess coldfire by
3493 looking at the file, if present. Conditionalize
3494 setting of long double format. Set decr_pc_after_break
3495 to 2 on coldfire and fido. Enable XML-driven
3496 register description.
3497 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3498 size of tdep->fpreg_type, as opposed to hardcoded value.
3499 * Makefile.in (m68k-tdep.o): Update dependencies.
3501 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3503 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3504 qXfer:spu:write remote packet types.
3506 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3508 * xml-tdesc.c (tdesc_start_target): New.
3509 (target_attributes): New.
3510 (tdesc_elements): Use it.
3511 * features/gdb-target.dtd: Add #FIXED version attribute for
3514 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3516 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3518 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3520 * fork-child.c (fork_inferior): Update comment.
3522 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3524 * features/Makefile: Generate regformats for mips-linux and
3526 * features/sort-regs.xsl: Correct typo.
3527 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3528 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3531 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3533 * config/mips/linux.mh (TDEP_XML): New.
3534 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3535 * mips-linux-nat.c (mips_linux_register_addr): Handle
3536 MIPS_RESTART_REGNUM.
3537 (mips64_linux_register_addr): Likewise.
3538 (super_xfer_partial, mips_linux_xfer_partial): New.
3539 (_initialize_mips_linux_nat): Add them to the target_ops.
3540 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3541 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3542 (mips_linux_o32_sigframe_init)
3543 (mips_linux_n32n64_sigframe_init): Likewise.
3544 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3545 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3546 "org.gnu.gdb.mips.linux" feature.
3547 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3548 (mips_linux_restart_reg_p): New prototype.
3549 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3550 initialization routine.
3551 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3553 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3555 * Makefile.in (mips-tdep.o): Update.
3556 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3557 (mips_n32_n64_aliases, mips_register_aliases): New.
3558 (mips_register_name): Call tdesc_register_name.
3559 (mips_tdesc_register_reggroup_p): New.
3560 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3561 (mips_gdbarch_init): Add target-described register support.
3562 Register aliases for register names.
3563 * target-descriptions.c (tdesc_register_name): Make global.
3564 (tdesc_register_in_reggroup_p): New function, broken out from
3565 tdesc_register_reggroup_p.
3566 (tdesc_register_reggroup_p): Use it.
3567 * target-descriptions.h (tdesc_register_name)
3568 (tdesc_register_in_reggroup_p): New prototypes.
3569 * NEWS: Correct formatting. Mention MIPS register support.
3570 * features/mips-cp0.xml, features/mips-fpu.xml,
3571 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3572 features/mips64-cpu.xml: New files.
3574 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3576 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3577 * valops.c (value_cast): Likewise.
3578 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3579 * ui-out.c (ui_out_field_core_addr): Likewise.
3580 * tracepoint.c (tracepoints_info): Likewise.
3581 * symtab.c (print_msymbol_info): Likewise.
3582 * solib-irix.c (irix_current_sos)
3583 (irix_open_symbol_file_object): Likewise.
3584 * remote.c (build_remote_gdbarch_data): Likewise.
3585 * prologue-value.c (make_pv_area): Likewise.
3586 * procfs.c (info_mappings_callback): Likewise.
3587 * printcmd.c (print_scalar_formatted)
3588 (deprecated_print_address_numeric): Likewise.
3589 * memattr.c (mem_info_command): Likewise.
3590 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3591 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3592 * exec.c (print_section_info): Likewise.
3593 * dwarf2read.c (read_subrange_type): Likewise.
3594 * dwarf2loc.c (find_location_expression): Likewise.
3595 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3596 (signed_address_type, execute_stack_op): Likewise.
3597 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3598 * gdbarch.c, gdbarch.h: Regenerate.
3600 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3602 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3603 * arch-utils.c (show_architecture): Likewise.
3604 * remote-mips.c (mips_open): Likewise
3605 * nto-tdep.c (nto_find_and_open_solib)
3606 (nto_init_solib_absolute_prefix): Likewise.
3607 * nto-procfs (procfs_open): Likewise.
3608 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3609 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3610 * gdbarch.c, gdbarch.h: Regenerate.
3612 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3614 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3615 * gdbtypes.c (build_flt): Likewise.
3616 * gdbarch.c, gdbarch.h: Regenerate.
3618 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3620 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3621 gdbarch_breakpoint_from_pc.
3622 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3623 * remote.c (remote_insert_breakpoint)
3624 (remote_insert_hw_breakpoint): Likewise.
3625 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3626 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3627 * breakpoint.h (bp_target_info): Likewise (comment).
3628 * breakpoint.c (read_memory_nobpt): Likewise.
3629 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3630 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3631 * gdbarch.c, gdbarch.h: Regenerate.
3633 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3635 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3636 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3637 * solib-pa64.c (read_dynamic_info): Likewise.
3638 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3639 * solib.c (info_sharedlibrary_command): Likewise.
3640 * s390-nat.c (SUBOFF): Likewise.
3641 * p-valprint.c (pascal_val_print): Likewise.
3642 * procfs.c (info_proc_mappings): Likewise.
3643 * printcmd.c (decode_format): Likewise.
3644 * nto-tdep.c (nto_truncate_ptr): Likewise.
3645 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3646 (mips64_linux_get_longjmp_target): Likewise.
3647 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3648 * jv-valprint.c (java_value_print): Likewise.
3649 * jv-lang.c (get_java_object_header_size): Likewise.
3650 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3651 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3652 (hppa_hpux_unwind_adjust_stub): Likewise.
3653 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3654 * gdbtypes.c (make_pointer_type, make_reference_type)
3655 (smash_to_memberptr_type): Likewise.
3656 * gdbarch.c, gdbarch.h: Regenerate.
3658 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3660 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3661 (print_gp_register_row): Stop before printing a register bigger
3662 than the ABI register size.
3663 (mips_print_registers_info): Update call to mips_print_register.
3665 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3667 * expression.h (enum exp_opcode): Document a register name for
3669 * parse.c (write_dollar_variable): Write the register name for
3671 (operator_length_standard): Expect the register name following
3673 * ada-lang.c (resolve_subexp): Likewise.
3674 * ax-gdb.c (gen_expr): Likewise.
3675 * eval.c (evaluate_subexp_standard): Likewise.
3676 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3678 * tracepoint.c (encode_actions): Likewise.
3680 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3682 * utils.c (set_screen_size): Use INT_MAX for default columns.
3684 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3686 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3687 qXfer:spu:write packet types.
3689 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3691 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3692 * gdbarch.c, gdbarch.h: Regenerate.
3694 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3696 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3697 gdbarch_stab_reg_to_regnum.
3698 * stabsread.c (define_symbol): Likewise.
3699 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3700 gdbarch_ecoff_reg_to_regnum.
3701 * mdebugread.c (parse_symbol): Likewise.
3702 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3703 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3704 gdbarch_dwarf_reg_to_regnum.
3705 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3706 * coffread.c (process_coff_symbol): Likewise.
3707 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3708 gdbarch_dwarf2_reg_to_regnum.
3709 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3710 (locexpr_describe_location): Likewise.
3711 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3712 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3713 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3714 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3715 * gdbarch.c, gdbarch.h: Regenerate.
3717 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3719 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3720 gdbarch_smash_text_address.
3721 * somread.c (som_symtab_read): Likewise.
3722 * elfread.c (record_minimal_symbol): Likewise.
3723 * dbxread.c (process_one_symbol): Likewise.
3724 * coffread.c (coff_symtab_read): Likewise.
3725 * gdbarch.c, gdbarch.h: Regenerate.
3727 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3729 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3730 * findvar.c (value_from_register): Likewise.
3731 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3732 * valops.c (value_assign): Likewise.
3733 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3734 gdbarch_convert_register_p.
3735 * findvar.c (value_from_register): Likewise.
3736 * valops.c (value_assign): Likewise.
3737 * gdbarch.c, gdbarch.h: Regenerate.
3739 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3741 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3742 gdbarch_register_sim_regno.
3743 * sim-regno.h (sim_regno): Likewise (comment).
3744 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3745 * gdbarch.c, gdbarch.h: Regenerate.
3747 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3749 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3750 gdbarch_virtual_frame_pointer.
3751 * tracepoint.c (encode_actions): Likewise.
3752 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3753 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3754 * gdbarch.c, gdbarch.h: Regenerate.
3756 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3758 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3759 * p-lang.c (pascal_create_fundamental_type): Likewise.
3760 * objc-lang.c (objc_create_fundamental_type): Likewise.
3761 * mdebugread.c (_initialize_mdebugread): Likewise.
3762 * m2-lang.c (m2_create_fundamental_type)
3763 (_initialize_m2_language): Likewise.
3764 * gdbtypes.c (build_gdbtypes): Likewise.
3765 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3766 * doublest.c (floatformat_from_length): Likewise.
3767 * c-lang.c (c_create_fundamental_type): Likewise.
3768 * ada-lang.c (ada_create_fundamental_type)
3769 (ada_language_arch_info): Likewise.
3770 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3771 * value.c (unpack_double): Likewise (comment).
3772 * gdbtypes.c (build_gdbtypes): Likewise.
3773 * doublest.c (floatformat_from_length): Likewise.
3774 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3775 * valarith.c (value_binop): Likewise.
3776 * p-lang.c (pascal_create_fundamental_type): Likewise.
3777 * objc-lang.c (objc_create_fundamental_type): Likewise.
3778 * mdebugread.c (_initialize_mdebugread): Likewise.
3779 * m2-lang.c (m2_create_fundamental_type): Likewise.
3780 * gdbtypes.c (build_gdbtypes): Likewise.
3781 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3782 * doublest.c (floatformat_from_length): Likewise.
3783 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3784 * c-lang.c (c_create_fundamental_type): Likewise.
3785 * ada-lex.l (processReal): Likewise.
3786 * ada-lang.c (ada_create_fundamental_type)
3787 (ada_language_arch_info): Likewise.
3788 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3789 * value.c (unpack_double): Likewise (comment).
3790 * gdbtypes.c (build_gdbtypes): Likewise.
3791 * doublest.c (floatformat_from_length): Likewise.
3792 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3793 gdbarch_long_double_bit.
3794 * p-lang.c (pascal_create_fundamental_type): Likewise.
3795 * objc-lang.c (objc_create_fundamental_type): Likewise.
3796 * m2-lang.c (m2_create_fundamental_type): Likewise.
3797 * gdbtypes.c (build_gdbtypes): Likewise.
3798 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3799 * doublest.c (floatformat_from_length): Likewise.
3800 * c-lang.c (c_create_fundamental_type): Likewise.
3801 * ada-lex.l (processReal): Likewise.
3802 * ada-lang.c (ada_create_fundamental_type)
3803 (ada_language_arch_info): Likewise.
3804 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3805 gdbarch_long_double_format.
3806 * gdbtypes.c (build_gdbtypes): Likewise.
3807 * doublest.c (floatformat_from_length): Likewise.
3808 * gdbarch.c, gdbarch.h: Regenerate.
3810 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3812 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3813 * ada-lang.c (ada_create_fundamental_type)
3814 (ada_language_arch_info): Likewise.
3815 * c-lang.c (c_create_fundamental_type): Likewise.
3816 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3817 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3818 * m2-lang.c (m2_create_fundamental_type): Likewise.
3819 * objc-lang.c (objc_create_fundamental_type): Likewise.
3820 * p-lang.c (pascal_create_fundamental_type): Likewise.
3821 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3822 * c-exp.y (parse_number): Likewise.
3823 * objc-exp.y (parse_number): Likewise.
3824 * ada-lex.l (processInt): Likewise.
3825 * f-exp.y (parse_number): Likewise.
3826 * p-exp.y (parse_number): Likewise.
3827 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3828 (gdbtypes_post_init, build_gdbtypes): Likewise.
3829 * p-lang.c (pascal_create_fundamental_type): Likewise.
3830 * parse.c (build_parse): Likewise.
3831 * xcoffread.c (_initialize_xcoffread): Likewise.
3832 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3833 (read_range_type): Likewise.
3834 * objc-lang.c (objc_create_fundamental_type): Likewise.
3835 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3836 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3837 (m2_create_fundamental_type): Likewise.
3838 * c-lang.c (c_create_fundamental_type): Likewise.
3839 * coffread.c (coff_read_enum_type): Likewise.
3840 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3841 * dwarf2read.c (new_symbol): Likewise.
3842 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3843 * c-exp.y (parse_number): Likewise.
3844 * objc-exp.y (parse_number): Likewise.
3845 * ada-lex.l (processInt): Likewise.
3846 * f-exp.y (parse_number): Likewise.
3847 * p-exp.y (parse_number): Likewise.
3848 * valarith.c (value_binop): Likewise.
3849 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3850 * ada-lang.c (ada_create_fundamental_type)
3851 (ada_language_arch_info): Likewise.
3852 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3853 * symfile.c (TARGET_LONG_BYTES): Likewise.
3854 * p-lang.c (pascal_create_fundamental_type): Likewise.
3855 * objc-lang.c (objc_create_fundamental_type): Likewise.
3856 * m2-lang.c (m2_create_fundamental_type): Likewise.
3857 * f-lang.c (f_create_fundamental_type): Likewise.
3858 * c-lang.c (c_create_fundamental_type): Likewise.
3859 * coffread.c (decode_base_type): Likewise.
3860 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3861 * c-exp.y (parse_number): Likewise.
3862 * objc-exp.y (parse_number): Likewise.
3863 * p-exp.y (parse_number): Likewise.
3864 * ada-lang.c (ada_create_fundamental_type)
3865 (ada_language_arch_info): Likewise.
3866 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3867 * stabsread.c (read_range_type): Likewise.
3868 * p-lang.c (pascal_create_fundamental_type): Likewise.
3869 * objc-lang.c (objc_create_fundamental_type): Likewise.
3870 * m2-lang.c (m2_create_fundamental_type): Likewise.
3871 * f-lang.c (f_create_fundamental_type): Likewise.
3872 * c-lang.c (c_create_fundamental_type): Likewise.
3873 * gdbarch.c, gdbarch.h: Regenerate.
3875 2007-06-12 Andreas Schwab <schwab@suse.de>
3877 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3878 (struct frame_unwind): Add dealloc_cache.
3879 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3881 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3882 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3883 (libunwind_frame_unwind): Set dealloc_cache.
3884 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3886 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3887 Markus Deuling <deuling@de.ibm.com>
3889 * remote.c (remote_write_qxfer): New function.
3890 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3891 (remote_read_qxfer): Do not cache empty objects.
3892 (_initialize_remote): Add PACKET_qXfer_spu_read and
3893 PACKET_qXfer_spu_write.
3895 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3897 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3898 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3900 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3901 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3902 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3903 * spu-tdep.c (infospucmdlist): New variable.
3904 (spu_register_name): Handle additional pseudo registers.
3905 (spu_register_type): Likewise.
3906 (spu_pseudo_register_read): Likewise.
3907 (spu_pseudo_register_write): Likewise.
3908 (spu_pseudo_register_read_spu): New function.
3909 (spu_pseudo_register_write_spu): Likewise.
3910 (info_spu_event_command): New function.
3911 (info_spu_signal_command): Likewise.
3912 (info_spu_mailbox_list): Likewise.
3913 (info_spu_mailbox_command): Likewise.
3914 (spu_mfc_get_bitfield): Likewise.
3915 (info_spu_dma_cmdlist): Likewise.
3916 (info_spu_dma_command): Likewise.
3917 (info_spu_proxydma_command): Likewise.
3918 (info_spu_command): Likewise.
3919 (_initialize_spu_tdep): Install "info spu" commands.
3921 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3923 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3924 accessing non-seekable spufs files.
3926 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3928 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3929 gdbarch_skip_trampoline_code.
3930 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3931 * objc-lang.c (objc_skip_trampoline)
3932 (objc_submethod_helper_data): Likewise.
3933 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3934 * infrun.c (handle_inferior_event): Likewise.
3935 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3936 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3937 gdbarch_in_solib_return_trampoline.
3938 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3939 * infrun.c (handle_inferior_event): Likewise.
3940 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3941 * gdbarch.c, gdbarch.h: Regenerate.
3943 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3945 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3946 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3947 * linespec.c (minsym_found): Likewise.
3948 * infrun.c (step_into_function): Likewise.
3949 * gdbarch.c, gdbarch.h: Regenerate.
3951 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3953 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3954 * valops.c (value_allocate_space_in_inferior): Likewise.
3955 * gdbarch.c, gdbarch.h: Regenerate.
3957 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3959 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3960 gdbarch_memory_insert_breakpoint.
3961 * mem-break.c (memory_insert_breakpoint): Likewise.
3962 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3963 gdbarch_memory_remove_breakpoint.
3964 * mem-break.c (memory_remove_breakpoint): Likewise.
3965 * gdbarch.c, gdbarch.h: Regenerate.
3967 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3969 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3970 gdbarch_fetch_tls_load_module_address.
3971 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3972 gdbarch_fetch_tls_load_module_address_p.
3973 * gdbarch.c, gdbarch.h: Regenerate.
3975 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3977 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3978 gdbarch_decr_pc_after_break.
3979 * tracepoint.c (trace_dump_command): Likewise.
3980 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3981 * linux-thread-db.c (check_event): Likewise.
3982 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3983 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3984 * frame.h: Likewise (comment).
3985 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3986 * aix-thread.c (aix_thread_wait): Likewise.
3987 * gdbarch.c, gdbarch.h: Regenerate.
3989 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3991 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3992 gdbarch_address_class_type_flags.
3993 * dwarf2read.c (read_tag_pointer_type): Likewise.
3994 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3995 gdbarch_address_class_type_flags_p.
3996 * dwarf2read.c (read_tag_pointer_type): Likewise.
3997 * gdbarch.c, gdbarch.h: Regenerate.
3999 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4001 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
4002 * value.c (value_as_address): Likewise (comment).
4003 * remote-mips.c (common_breakpoint): Likewise.
4004 * regcache.c (read_pc_pid): Likewise.
4005 * printcmd.c (do_one_display): Likewise.
4006 * monitor.c (monitor_write_memory, monitor_read_memory)
4007 (monitor_insert_breakpoint): Likewise.
4008 * mips-tdep.c (heuristic_proc_start): Likewise.
4009 * infrun.c (insert_step_resume_breakpoint_at_frame)
4010 (insert_step_resume_breakpoint_at_caller): Likewise.
4011 * buildsym.c (record_line): Likewise.
4012 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
4013 (arm_get_next_pc): Likewise.
4014 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
4015 (store_regs): Likewise.
4016 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4017 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
4018 * gdbarch.c, gdbarch.h: Regenerate.
4020 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4022 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
4023 * tracepoint.c (scope_info): Likewise.
4024 * target.c (debug_print_register): Likewise.
4025 * stack.c (frame_info): Likewise.
4026 * sh-tdep.c (sh_register_reggroup_p): Likewise.
4027 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
4028 (sh64_media_print_registers_info)
4029 (sh64_compact_print_registers_info): Likewise.
4030 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
4031 * remote-sim.c (gdbsim_fetch_register): Likewise.
4032 * remote.c (packet_reg): Likewise (comment).
4033 * reggroups.c (default_register_reggroup_p): Likewise.
4034 * regcache.c (regcache_dump): Likewise.
4035 * printcmd.c (address_info): Likewise.
4036 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4037 * mt-dep.c (mt_registers_info): Likewise.
4038 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
4039 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
4040 (mips_read_fp_register_double, mips_print_fp_register)
4041 (mips_print_register, print_gp_register_row, mips_print_registers_info)
4042 (mips_register_sim_regno): Likewise.
4043 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
4044 * inf-ptrace.c (inf_ptrace_fetch_register)
4045 (inf_ptrace_store_register): Likewise.
4046 * infcmd.c (default_print_registers_info): Likewise.
4047 * ia64-linux-nat.c (ia64_linux_fetch_register)
4048 (ia64_linux_store_register): Likewise.
4049 * i386-linux-nat.c (fetch_register, store_register): Likewise.
4050 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
4051 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4052 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
4053 (hppa_hpux_store_register): Likewise.
4054 * findvar.c (locate_var_value): Likewise.
4055 * dwarf2loc.c (locexpr_describe_location): Likewise.
4056 * dwarf2-frame.c (execute_cfa_program): Likewise.
4057 * arm-tdep.c (arm_push_dummy_call): Likewise.
4058 * arch-utils.c (legacy_register_sim_regno): Likewise.
4059 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
4060 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4061 * mi/mi-main.c (mi_cmd_data_list_register_names)
4062 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
4063 (mi_cmd_data_write_register_values): Likewise.
4064 * gdbarch.c, gdbarch.h: Regenerate.
4066 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
4068 * target-memory.c (blocks_to_erase): Correct off-by-one error.
4070 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
4072 * remote.c (process_g_packet): Don't check size.
4073 * gdbarch.sh: Remove register_bytes_ok.
4074 * gdbarch.c: Regenerated.
4075 * gdbarch.h: Regenerated.
4076 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
4077 (m68k_register_bytes_ok): Remove.
4078 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
4080 2007-06-06 Andreas Schwab <schwab@suse.de>
4082 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
4083 (destroy_addr_space_name): Define.
4084 (libunwind_load): Get address of destroy_addr_space function.
4085 (libunwind_frame_cache): Destroy unw_addr_space_t object before
4086 returning unsuccessfully.
4087 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
4089 (libunwind_sigtramp_frame_sniffer): Likewise.
4090 (libunwind_get_reg_special): Likewise.
4092 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4094 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
4095 gdbarch_fetch_pointer_argument.
4096 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
4097 * gdbarch.c, gdbarch.h: Regenerate.
4099 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4101 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
4102 gdbarch_have_nonsteppable_watchpoint.
4103 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
4104 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
4105 gdbarch_cannot_step_breakpoint.
4106 * infrun.c (resume): Likewise.
4107 * gdbarch.c, gdbarch.h: Regenerate.
4109 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4111 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
4112 * stack.c (print_frame_args): Likewise.
4113 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
4114 * stack.c (print_args_stub, frame_info): Likewise.
4115 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
4116 * stack.c (print_args_stub, frame_info): Likewise.
4117 * gdbarch.c, gdbarch.h: Regenerate.
4119 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4121 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
4122 gdbarch_coff_make_msymbol_special.
4123 * coffread.c (coff_symtab_read): Likewise.
4124 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
4125 gdbarch_elf_make_msymbol_special.
4126 * elfread.c (elf_symtab_read): Likewise.
4127 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
4128 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
4129 * gdbarch.c, gdbarch.h: Regenerate.
4131 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4133 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
4134 gdbarch_frame_red_zone_size.
4135 * gdbarch.c, gdbarch.h: Regenerate.
4137 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4139 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
4140 * infcall.c (call_function_by_hand): Likewise.
4141 * gcore.c (derive_stack_segment): Likewise.
4142 * frame.c (frame_id_inner): Likewise.
4143 * arch-utils.c (core_addr_lessthan): Likewise (comment).
4144 * ada-lang.c (ensure_lval): Likewise.
4145 * gdbarch.c, gdbarch.h: Regenerate.
4147 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4149 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
4150 gdbarch_address_to_pointer.
4151 * findvar.c (store_typed_address): Likewise.
4152 * gdbtypes.c (make_pointer_type): Likewise (comment).
4153 * procfs.c (procfs_address_to_host_pointer): Likewise.
4154 * std-regs.c (value_of_builtin_frame_reg): Likewise.
4155 (value_of_builtin_frame_fp_reg): Likewise.
4156 (value_of_builtin_frame_pc_reg): Likewise.
4157 * utils.c (paddress): Likewise (comment).
4158 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
4159 gdbarch_pointer_to_address.
4160 * findvar.c (extract_typed_address): Likewise.
4161 * gdbtypes.c (make_pointer_type): Likewise (comment).
4162 * valops.c (value_cast): Likewise (comment).
4163 * gdbarch.c, gdbarch.h: Regenerate.
4165 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4167 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
4168 * infrun.c (handle_inferior_event): Likewise.
4169 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
4170 gdbarch_get_longjmp_target_p.
4171 * breakpoint.c (breakpoint_re_set): Likewise.
4172 * infrun.c (handle_inferior_event): Likewise.
4173 * gdbarch.c, gdbarch.h: Regenerate.
4175 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4177 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
4178 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
4179 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
4180 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
4181 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
4182 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
4183 find_stub_with_shl_get, cover_find_stub_with_shl_get,
4184 initialize_hp_cxx_exception_support, child_enable_exception_callback,
4185 current_ex_event, child_get_current_exception_event): Remove.
4186 (hppa_hpux_inferior_created): Remove.
4187 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
4189 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
4190 (deprecated_exception_support_initialized): Remove.
4191 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
4192 (deprecated_exception_support_initialized): Remove.
4193 (breakpoint_init_inferior): Remove handling of non-zero
4194 deprecated_exception_catchpoints_are_fragile.
4196 * symtab.h (deprecated_hp_som_som_object_present): Remove.
4197 * symtab.c (deprecated_hp_som_som_object_present): Remove.
4198 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
4199 deprecated_hp_som_som_object_present.
4200 * eval.c (evaluate_subexp_standard): Likewise.
4201 * valops.c (value_cast): Likewise.
4203 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
4204 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
4205 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
4207 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4209 * objfiles.h (ImportEntry, ExportEntry): Remove types.
4210 (struct objfile): Remove import_list, import_list_size,
4211 export_list, export_list_size members.
4212 (is_in_import_list): Remove prototype.
4213 * objfiles.c (is_in_import_list): Remove.
4214 * somread.c (init_import_symbols, init_export_symbols): Remove.
4215 (som_symfile_read): Do not call init_import_symbols. Do not
4216 set objfile->export_list and objfile->export_list_size.
4218 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4220 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
4221 Use the original objfile if necessary.
4223 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
4225 * defs.h (ldirname): New prototype.
4226 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4228 * utils.c (ldirname): New function.
4229 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4231 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4233 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4235 2007-06-01 Joel Brobecker <brobecker@adacore.com>
4237 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4239 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4241 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4243 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4245 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4246 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4247 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4248 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4249 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4250 ppc_linux_at_sigtramp_return_path): Remove.
4252 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4254 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4255 (xtensa_register_write_masked, xtensa_register_read_masked)
4256 (xtensa_extract_return_value, xtensa_store_return_value
4257 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4258 TARGET_BYTE_ORDER by gdbarch_byte_order.
4259 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4260 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4261 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4262 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4263 (sh64_push_dummy_call, sh64_extract_return_value)
4264 (sh64_store_return_value, sh64_register_convert_to_virtual)
4265 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4266 (sh64_pseudo_register_write, sh64_do_fp_register)
4267 (sh64_frame_prev_register): Likewise.
4268 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4269 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4270 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4271 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4272 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4273 * ppc-linux-nat.c (store_register): Likewise.
4274 * nto-tdep.c (nto_find_and_open_solib)
4275 (nto_init_solib_absolute_prefix): Likewise.
4276 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4277 (mips_convert_register_p, mips_eabi_push_dummy_call)
4278 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4279 (mips_o32_push_dummy_call, mips_o32_return_value)
4280 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4281 (mips_read_fp_register_single, mips_read_fp_register_double)
4282 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4283 (mips_breakpoint_from_pc): Likewise.
4284 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4285 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4286 (mips_linux_o32_sigframe_init): Likewise.
4287 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4288 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4289 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4290 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4291 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4292 * coffread.c (process_coff_symbol): Likewise.
4293 * arm-tdep.c (convert_from_extended, convert_to_extended)
4294 (gdb_print_insn_arm): Likewise.
4296 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4298 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4299 * i386-tdep.c (i386_dbx_reg_to_regnum)
4300 (i386_svr4_reg_to_regnum): Likewise.
4301 * inf-ptrace.c (inf_ptrace_fetch_registers)
4302 (inf_ptrace_store_registers): Likewise.
4303 * corelow.c (get_core_registers): Likewise.
4304 * i386-linux-nat.c (supply_gregset, fill_gregset)
4305 (i386_linux_fetch_inferior_registers)
4306 (i386_linux_store_inferior_registers): Likewise.
4307 * remote.c (init_remote_state,packet_reg_from_regnum)
4308 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4309 (remote_prepare_to_store,store_registers_using_G)
4310 (remote_store_registers,remote_arch_state): Likewise.
4311 * tracepoint.c (encode_actions): Likewise.
4312 * mi/mi-main.c (mi_cmd_data_list_register_names)
4313 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4314 (mi_cmd_data_write_register_values): Likewise.
4315 * tui/tui-regs.c (tui_show_register_group)
4316 (tui_show_register_group): Likewise.
4317 * xtensa-tdep.h (FP_ALIAS): Likewise.
4318 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4319 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4320 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4321 * win32-nat.c (do_win32_fetch_inferior_registers)
4322 (do_win32_store_inferior_registers,fetch_elf_core_registers
4323 * user-regs.h: Likewise (comment).
4324 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4325 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4326 * target-descriptions.h: Likewise (comment).
4327 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4328 * target.c (debug_print_register): Likewise.
4329 * stack.c (frame_info): Likewise.
4330 * stabsread.c (define_symbol): Likewise.
4331 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4332 (sh64_media_print_registers_info)
4333 (sh64_compact_print_registers_info): Likewise.
4334 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4335 * rs6000-nat.c (fetch_register,store_register): Likewise.
4336 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4337 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4338 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4339 * remote-m32r-sdi.c (m32r_fetch_registers)
4340 (m32r_store_registers): Likewise.
4341 * reggroups.c (default_register_reggroup_p): Likewise.
4342 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4343 (regcache_restore,regcache_dump): Likewise.
4344 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4345 * mips-tdep.c (mips_xfer_register,mips_register_name)
4346 (mips_register_reggroup_p,mips_pseudo_register_read)
4347 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4348 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4349 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4350 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4351 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4352 (print_gp_register_row,mips_print_registers_info)
4353 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4354 (mips_register_sim_regno): Likewise.
4355 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4356 (mips_linux_n32n64_sigframe_init): Likewise.
4357 * mips-linux-nat.c (mips_linux_register_addr)
4358 (mips64_linux_register_addr): Likewise.
4359 * findvar.c (value_of_register): Likewise.
4360 * infcmd.c (default_print_registers_info,registers_info)
4361 (print_vector_info,print_float_info): Likewise.
4362 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4363 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4364 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4365 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4366 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4367 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4368 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4369 (ia64_linux_store_registers): Likewise.
4370 * hpux-thread.c (hpux_thread_fetch_registers)
4371 (hpux_thread_store_registers): Likewise.
4372 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4373 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4374 (h8300_register_type): Likewise.
4375 * dwarf2-frame.c (dwarf2_frame_cache)
4376 (dwarf2_frame_state_alloc_regs): Likewise.
4377 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4378 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4379 (crisv32_cannot_store_register,cris_register_name): Likewise.
4380 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4381 * arch-utils.c (legacy_register_sim_regno)
4382 (legacy_virtual_frame_pointer): Likewise.
4383 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4384 * arm-tdep.h: Likewise (comment).
4385 * frv-tdep.c (frv_register_sim_regno): Likewise.
4386 * m68klinux-nat.c (old_fetch_inferior_registers)
4387 (old_store_inferior_registers): Likewise.
4388 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4389 * irix5-nat.c (fetch_core_registers): Likewise.
4390 * hppa-tdep.c (hppa_frame_cache): Likewise.
4391 * hppa-linux-nat.c (hppa_linux_register_addr)
4392 (hppa_linux_fetch_inferior_registers)
4393 (hppa_linux_store_inferior_registers): Likewise.
4394 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4395 (hppa_hpux_store_inferior_registers): Likewise.
4396 * amd64-nat.c (amd64_native_gregset_reg_offset)
4397 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4398 * dbug-rom.c (dbug_regname): Likewise.
4399 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4400 (HARD_PAGE_REGNUM (comment)): Likewise.
4401 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4402 * i386-tdep.c (i386_dbx_reg_to_regnum)
4403 (i386_svr4_reg_to_regnum): Likewise.
4404 * mi/mi-main.c (mi_cmd_data_list_register_names)
4405 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4406 (mi_cmd_data_write_register_values): Likewise.
4407 * gdbarch.c, gdbarch.h: Regenerate.
4408 * tui/tui-regs.c (tui_show_register_group): Likewise.
4409 * xtensa-tdep.h (FP_ALIAS): Likewise.
4410 * user-regs.h: Likewise (comment).
4411 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4412 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4413 * target-descriptions.h: Likewise (comment).
4414 * target.c (debug_print_register): Likewise.
4415 * stack.c (frame_info): Likewise.
4416 * stabsread.c (define_symbol): Likewise.
4417 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4418 (sh64_compact_print_registers_info): Likewise.
4419 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4420 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4421 (regcache_restore,regcache_dump): Likewise.
4422 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4423 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4424 (mips_stab_reg_to_regnum): Likewise.
4425 * findvar.c (value_of_register): Likewise.
4426 * infcmd.c (default_print_registers_info,registers_info)
4427 (print_vector_info,print_float_info): Likewise.
4428 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4429 * h8300-tdep.c (h8300_register_type): Likewise.
4430 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4431 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4432 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4433 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4434 * parse.c: Remove comment.
4435 * gdbarch.c, gdbarch.h: Regenerate
4437 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4439 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4440 gdbarch_cannot_fetch_register.
4441 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4442 * hppa-linux-nat.c (fetch_register): Likewise.
4443 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4444 * m68klinux-nat.c (fetch_register): Likewise.
4445 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4447 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4448 gdbarch_cannot_store_register.
4449 * hppa-linux-nat.c (store_register): Likewise.
4450 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4451 * regcache.c (regcache_raw_write): Likewise.
4452 * m68klinux-nat.c (store_register): Likewise.
4453 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4454 * gdbarch.c, gdbarch.h: Regenerate.
4456 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4458 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4459 * gdbarch.c, gdbarch.h: Regenerate.
4461 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4463 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4464 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4465 * gdbarch.c, gdbarch.h: Regenerate.
4467 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4469 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4470 * ax-gdb.c (gen_bitfield_ref): Likewise.
4471 * mi/mi-main.c (get_register): Likewise.
4472 * findvar.c (default_value_from_register, extract_signed_integer)
4473 (extract_unsigned_integer, extract_long_unsigned_integer)
4474 (store_signed_integer, store_unsigned_integer): Likewise.
4475 * regcache.c (regcache_dump): Likewise.
4476 * value.c (lookup_internalvar, value_of_internalvar)
4477 (set_internalvar): Likewise.
4479 * valprint.c (print_binary_chars, print_octal_chars)
4480 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4481 * infcmd.c (default_print_registers_info): Likewise.
4482 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4483 * stabsread.c (define_symbol): Likewise.
4484 * doublest.c (floatformat_from_length, floatformat_from_type)
4485 (extract_typed_floating, store_typed_floating): Likewise.
4486 * gdbarch.c, gdbarch.h: Regenerate.
4488 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4490 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4491 gdbarch_call_dummy_location.
4492 * infcall.c (call_function_by_hand): Likewise.
4493 * inferior.h: Change comment.
4494 * arch-utils.c: Change comment.
4495 * gdbarch.c, gdbarch.h: Regenerate.
4497 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4499 * solib-aix5.c: Delete.
4500 * Makefile.in (solib-aix5.o): Delete rule.
4502 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4504 * breakpoint.h (enum bpstat_what_main_action): Remove
4505 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4506 * infrun.c (process_event_stop_test): Do not check for it.
4508 2007-05-22 Chris Dearman <chris@mips.com>
4509 Maciej W. Rozycki <macro@mips.com>
4511 * ser-unix.c (show_serial_hwflow): New function.
4512 (hardwire_raw): Add hardware flow control support.
4513 (_initialize_ser_hardwire): Add "set/show remoteflow".
4514 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4515 * NEWS: Document the new command.
4517 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4519 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4520 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4521 define for i[[3456]]86-*-linux* native configurations.
4522 * config.in, configure: Regenerate.
4524 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4526 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4527 a core file. Add comment in the function description.
4529 2007-05-18 Caroline Tice <ctice@apple.com>
4531 * c-valprint.c (c_value_print): If the initialized field of the
4532 value struct is 0, print out "[uninitialized]" before the value.
4533 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4534 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4535 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4536 ctx->initialized appropriately. Verify no location op follows
4538 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4539 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4540 set_value_initialized.
4541 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4542 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4543 * value.c (struct value): New field, initialized.
4544 (allocate_value): Initialize new field.
4545 (set_value_initialized): New function.
4546 (value_initialized): New function.
4547 * value.h (value_initialized): New extern declaration.
4548 (set_value_initialized): Likewise.
4550 2007-05-18 Caroline Tice <ctice@apple.com>
4552 * MAINTAINERS (Write After Approval): Add self.
4554 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4556 * gdbtypes.c (make_reference_type): Preserve the type chain
4557 and set the length of all the variants of the pointer type.
4559 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4561 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4562 and set the length of all the variants of the pointer type.
4564 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4566 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4568 (mips_o64_push_dummy_call): Reformat a comment.
4570 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4572 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4573 (score_prologue_frame_base_address): Return fp to keep gdb print
4574 local variables correctly when debugging information is stabs.
4576 (score_analyze_prologue): For software watchpoint, fetch all the
4577 instructions from range [startaddr, pc] once and identify them locally
4578 to reduce memory access.
4579 (score_malloc_and_get_memblock, score_free_memblock)
4580 (score_adjust_memblock_ptr): New functions.
4581 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4583 (score_target_can_use_watch, score_stopped_by_watch)
4584 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4585 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4586 New functions for remote & local hw-watchpoint and hw-breakpoint.
4588 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4590 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4591 declarations as well.
4593 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4595 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4596 * config/arm/tm-embed.h: Delete file.
4598 * arm-tdep.h (arm_software_single_step): Declare.
4599 * arm-tdep.c (arm_software_single_step): Make global.
4600 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4602 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4603 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4604 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4605 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4607 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4608 allow defines to be overriden by TM file.
4609 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4610 change default to {0xbe,0xbe}.
4611 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4612 arm_obsd_thumb_be_breakpoint): New global variables.
4613 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4614 tdep->thumb_breakpoint_size.
4615 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4616 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4617 tdep->thumb_breakpoint_size.
4619 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4621 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4623 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4626 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4627 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4628 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4629 (mips_abi_regsize): Simplify.
4630 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4631 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4632 (mips_o32_return_value, mips_o64_push_dummy_call)
4633 (mips_o64_return_value): Propogate constant register sizes. Use the
4634 ABI register size instead of mips_stack_argsize.
4635 (mips_dump_tdep): Don't print mips_stack_argsize.
4636 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4639 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4641 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4642 * config/mips/tm-linux.h: Delete.
4643 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4644 (mips_linux_in_dynsym_resolve_code): Make static. Use
4645 svr4_in_dynsym_resolve_code.
4646 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4648 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4650 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4651 * Makefile.in (mips-linux-tdep.o): Update.
4652 * solib.c (set_solib_ops): New.
4653 (current_target_so_ops): Update comment.
4654 * solib.h (set_solib_ops): New prototype.
4656 2007-05-16 Chris Dearman <chris@mips.com>
4658 * printcmd.c (do_examine): Fix typos in a comment.
4660 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4662 * configure.ac: Allow sysroots to be relocated under $prefix as
4663 well as $exec_prefix.
4664 * configure: Regenerate.
4666 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4668 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4669 (offsetof): Do not define.
4670 (find_stub_with_shl_get): Use numerical value 3 instead of
4671 symbolic value TYPE_PROCEDURE.
4673 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4675 * gdb_proc_service.h (paddr_t): Delete typedef.
4676 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4677 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4678 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4679 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4680 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4681 * Makefile.in (proc-service.o): Update.
4683 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4685 * Makefile.in (mips-tdep.o): Update.
4686 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4689 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4691 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4692 instead of store_typed_address.
4693 * value.c (pack_long): New.
4694 (value_from_longest): Use it.
4695 * value.h (pack_long): New prototype.
4697 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4699 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4700 DW_EH_PE_signed if appropriate.
4702 2007-05-14 Paul Brook <paul@codesourcery.com>
4703 Daniel Jacobowitz <dan@codesourcery.com>
4705 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4707 (dwarf_decode_lines): Check for line info without a file.
4709 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4711 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4714 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4716 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4718 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4720 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4722 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4724 * gdbarch.sh (read_sp): Remove.
4725 * gdbarch.c, gdbarch.h: Regenerate.
4726 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4728 * avr-tdep.c (avr_read_sp): Remove.
4729 (avr_unwind_sp): New function.
4730 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4731 * mips-tdep.c (mips_read_sp): Remove.
4732 (mips_unwind_sp): New function.
4733 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4734 * score-tdep.c (score_read_unsigned_register): Remove.
4735 (score_read_sp): Remove.
4736 (score_unwind_sp): New function.
4737 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4739 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4741 * buildsym.c (start_subfile): Handle absolute pathnames
4742 while comparing subfile names.
4744 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4746 * hppa-hpux-tdep.c: Include "regcache.h".
4747 * hppa-linux-tdep.c: Likewise.
4748 * hppa-tdep.c: Include "gdb_stdint.h".
4749 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4751 * Makefile.in: Update dependencies.
4753 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4755 * blockframe.c: Remove obsolete comments.
4756 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4757 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4758 * hppa-tdep.h (enum hppa_regnum): Likewise.
4759 * mips-tdep.h: Likewise.
4760 * m68hc11-tdep.c: Likewise.
4762 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4764 * inferior.h (read_sp): Remove prototype.
4765 * regcache.c (read_sp): Remove.
4766 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4767 * infcall.c (call_function_by_hand): Likewise.
4768 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4770 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4772 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4774 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4775 instead of read_register and read_register_pid.
4777 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4778 argument instead of PTID. Use regcache functions instead of
4780 (ia64_linux_insert_watchpoint): Update call.
4781 (ia64_linux_stopped_data_address): Use regcache functions
4782 instead of read_register_pid and write_register_pid.
4784 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4786 * libunwind-frame.h (struct regcache): Add forward declaration.
4787 (libunwind_get_reg_special): Add REGCACHE argument.
4788 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4789 argument. Pass it to unw_init_remote_p.
4791 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4792 libunwind_get_reg_special.
4793 (ia64_access_reg): Remove "write" case.
4794 (ia64_access_fpreg): Likewise. Read from next_frame passed
4795 as callback argument instead of from current_regcache.
4796 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4797 passed as callback argument instead of from current_regcache.
4798 (ia64_access_rse_fpreg): New function.
4799 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4801 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4803 * NEWS: Mention SPU overlay support.
4805 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4807 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4809 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4811 * breakpoint.c (remove_breakpoint): Do not remove software
4812 breakpoints in unmapped overlay sections.
4814 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4816 * spu-tdep.c: Include "observer.h".
4817 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4818 (spu_overlay_data): New variable.
4819 (struct spu_overlay_table): New type.
4820 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4821 spu_overlay_new_objfile): New functions.
4822 (spu_gdbarch_init): Install spu_overlay_update.
4823 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4824 allocate spu_overlay_data objfile data.
4826 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4828 * gdbarch.sh (overlay_update): New gdbarch function.
4829 (struct obj_section): Add forward declaration.
4830 * gdbarch.c, gdbarch.h: Regenerate.
4832 * symfile.c (simple_overlay_update): Make global.
4833 (target_overlay_update): Remove variable.
4834 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4835 target_overlay_update.
4836 (overlay_load_command): Likewise.
4837 * symfile.h (struct obj_section): Add forward declaration.
4838 (simple_overlay_update): Add prototype.
4840 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4842 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4844 * observer.sh: Add "struct objfile" forward declaration.
4845 * target.h (deprecated_target_new_objfile_hook): Remove.
4846 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4847 (clear_symtab_users): Call observer_notify_new_objfile.
4848 (symbol_file_add_with_addrs_or_offsets): Likewise.
4849 * rs6000-nat.c: Include "observer.h".
4850 (vmap_ldinfo): Call observer_notify_new_objfile.
4851 (xcoff_relocate_core): Likewise.
4852 * remote.c (remote_new_objfile_chain): Remove.
4853 (remote_new_objfile): Do not call remote_new_objfile_chain.
4854 (_initialize_remote): Use observer_attach_new_objfile.
4855 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4856 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4857 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4858 * aix-thread.c: Include "observer.h".
4859 (target_new_objfile_chain): Remove.
4860 (new_objfile): Do not call target_new_objfile_chain.
4861 (_initialize_aix_thread): Use observer_attach_new_objfile.
4862 * hpux-thread.c: Include "observer.h"
4863 (target_new_objfile_chain): Remove.
4864 (hpux_thread_new_objfile): Make static. Do not call
4865 target_new_objfile_chain.
4866 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4867 * linux-thread-db.c: Include "observer.h".
4868 (target_new_objfile_chain): Remove.
4869 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4870 (_initialize_thread_db): Use observer_attach_new_objfile.
4871 * sol-thread.c: Include "observer.h".
4872 (target_new_objfile_chain): Remove.
4873 (sol_thread_new_objfile): Make static. Do not call
4874 target_new_objfile_chain.
4875 (_initialize_sol_thread): Use observer_attach_new_objfile.
4876 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4877 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4880 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4882 * gdbarch.sh (remote_translate_xfer_address): Remove.
4883 * gdbarch.h, gdbarch.c: Regenerate.
4884 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4885 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4886 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4887 call gdbarch_remote_translate_xfer_address.
4888 * frv-tdep.c (frv_gdbarch_init): Do not call
4889 set_gdbarch_remote_translate_xfer_address.
4890 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4891 (ia64_gdbarch_init): Do not install it.
4893 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4895 * NEWS: Mention change in handling the -tui option.
4897 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4899 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4902 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4904 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4905 (breakpoint_inserted_here_p): Call it.
4906 (software_breakpoint_inserted_here_p): Likewise.
4908 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4910 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4911 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4912 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4913 (inf_ptrace_store_register): Likewise.
4914 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4915 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4917 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4919 * linux-nat.c (linux_trad_target): Adapt parameter list.
4920 * linux-nat.h (linux_trad_target): Likewise.
4922 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4924 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4925 (mips_linux_cannot_store_register): Likewise.
4926 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4927 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4928 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4929 (mips64_linux_register_addr): Likewise.
4930 (mips_linux_register_u_offset): Adapt parameter list. Pass
4931 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4933 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4934 * config/mips/nm-linux.h: Delete file.
4936 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4938 * remote.c (remote_detach): Error out if remote can't detach.
4940 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4942 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4943 instruction's opcode in the "opcode" variable and declares new
4944 variable "closing_insn".
4946 2007-05-10 Chris Dearman <chris@mips.com>
4947 Maciej W. Rozycki <macro@mips.com>
4949 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4950 whitespace when setting a var_filename.
4952 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4954 * main.c (captured_main): Recognize -tui option and print an error
4955 message when the TUI is not configured.
4957 2007-05-09 Andreas Schwab <schwab@suse.de>
4959 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4960 set removed members.
4961 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4963 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4965 * gdbarch.sh (deprecated_store_struct_return): Remove.
4966 * gdbarch.c, gdbarch.h: Regenerate.
4967 * frv-tdep.c (frv_store_struct_return): Remove.
4968 (frv_gdbarch_init): Do not install it.
4970 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4972 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4973 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4974 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4976 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4978 * spu-linux-nat.c: Include "gdb_stdint.h".
4979 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4980 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4981 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4982 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4983 (spu_child_wait): Mark up string for translation.
4985 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4986 Luis Machado <luisgpm@br.ibm.com>
4988 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4989 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4990 BC_INSTRUCTION): Define.
4991 (deal_with_atomic_sequence): New function.
4992 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4993 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4994 gdbarch_software_single_step routine.
4996 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4998 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4999 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
5000 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
5001 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
5002 spu_child_post_attach, spu_fetch_inferior_registers,
5003 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
5004 memory addresses as ULONGEST, not CORE_ADDR.
5006 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5008 * gdbarch.sh: Add skip_permanent_breakpoint callback.
5009 * gdbarch.h, gdbarch.c: Regenerate.
5011 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
5012 (resume): Call gdbarch_skip_permanent_breakpoint instead of
5013 SKIP_PERMANENT_BREAKPOINT. Inline default case.
5015 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
5016 Add REGCACHE argument. Use it instead of read/write_register.
5017 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
5019 * config/pa/tm-hppah.h: Delete file.
5020 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
5021 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
5023 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
5025 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
5026 * NEWS: Mention improved C++ thunk support.
5027 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
5028 * cp-abi.c (cplus_skip_trampoline): New.
5029 * cp-abi.h (cplus_skip_trampoline): New prototype.
5030 (struct cp_abi_ops): Add skip_trampoline member.
5031 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
5032 (init_gnuv3_ops): Set skip_trampoline.
5034 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5036 * rs6000-tdep.c (struct frame_extra_info): Delete.
5038 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5040 * linux-thread-db.c: Update some FIXME comments.
5041 (thread_db_xfer_partial): Delete.
5042 (init_thread_db_ops): Do not set to_xfer_partial.
5044 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5046 * inftarg.c, infptrace.c: Remove files.
5047 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
5048 (inftarg.o, infptrace.o): Remove rules.
5049 * gdbcore.h (register_addr): Remove prototype.
5050 * inferior.h (kill_inferior, store_inferior_registers,
5051 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
5052 call_ptrace, pre_fork_inferior): Remove prototypes.
5053 * target.h (child_xfer_memory, child_pid_to_exec_file,
5054 child_core_file_to_sym_file, child_post_attach,
5055 child_post_startup_inferior, child_acknowledge_created_inferior,
5056 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
5057 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
5058 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
5059 child_follow_fork, child_reported_exec_events_per_exec_call,
5060 child_has_exited, child_thread_alive): Remove prototypes.
5062 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5064 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
5065 (sparc_store_inferior_registers): Likewise.
5066 * sparc-nat.c (fetch_inferior_registers): Rename to ...
5067 (sparc_fetch_inferior_registers): ... this.
5068 (store_inferior_registers): Rename to ...
5069 (sparc_store_inferior_registers): ... this.
5070 (sparc_target): Update callback names.
5071 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
5072 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
5074 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5076 * linux-nat.c (child_post_attach): Rename to ...
5077 (linux_child_post_attach): ... this. Make static.
5078 (child_follow_fork): Rename to ...
5079 (linux_child_follow_fork): ... this. Make static.
5080 (child_insert_fork_catchpoint): Rename to ...
5081 (linux_child_insert_fork_catchpoint): ... this. Make static.
5082 (child_insert_vfork_catchpoint): Rename to ...
5083 (linux_child_insert_vfork_catchpoint): ... this. Make static.
5084 (child_insert_exec_catchpoint): Rename to ...
5085 (linux_child_insert_exec_catchpoint): ... this. Make static.
5086 (child_pid_to_exec_file): Rename to ...
5087 (linux_child_pid_to_exec_file): ... this. Make static.
5089 (linux_handle_extended_wait): Update call.
5090 (linux_xfer_partial): Update callback routine names.
5092 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5094 * configure.host (alpha*-*-osf[12]*): Remove support.
5095 * NEWS: Mention removed configurations.
5097 * config/alpha/alpha-osf1.mh: Delete file.
5098 * config/alpha/alpha-osf2.mh: Delete file.
5099 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
5101 * config/alpha/nm-osf.h: Delete file.
5102 * config/alpha/nm-osf2.h: Delete file.
5103 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
5104 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
5105 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
5107 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
5108 (register_addr, kernel_u_size): Remove.
5109 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
5111 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5113 * regcache.c (regcache_invalidate): New function.
5114 (register_cached): Remove.
5115 (set_register_cached): Remove.
5116 (deprecated_registers_fetched): Remove.
5117 (registers_changed): Use regcache_invalidate instead
5118 of set_register_cached.
5119 (regcache_raw_read): Update comment.
5121 * regcache.h (regcache_invalidate): Add prototype.
5122 (register_cached): Remove.
5123 (set_register_cached): Remove.
5124 (deprecated_registers_fetched): Remove.
5126 * findvar.c (value_of_register): Do not call register_cached.
5127 * frame.c (frame_register): Likewise.
5128 * tui/tui-regs.c (tui_get_register): Likewise.
5130 * remote.c (fetch_register_using_p): Do not call set_register_cached.
5131 (process_g_packet): Likewise.
5132 (remote_fetch_registers): Likewise.
5133 * remote-sim.c (gdbsim_fetch_register): Likewise.
5134 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
5135 by regcache_invalidate.
5136 (mt_pseudo_register_write): Likewise.
5137 * sh-tdep.c (sh_pseudo_register_write): Likewise.
5139 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
5140 call by loop over regcache_raw_supply (..., NULL).
5142 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5144 * target.h (struct target_ops): Add REGCACHE parameter to
5145 to_prepare_to_store.
5146 (target_prepare_to_store): Likewise.
5147 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
5148 (update_current_target): Adapt prepare_to_store de_fault rule.
5150 * regcache.c (regcache_raw_write): Pass regcache to
5151 target_prepare_to_store.
5153 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
5154 Do not call CHILD_PREPARE_TO_STORE.
5155 * gnu-nat.c (gnu_prepare_to_store): Likewise.
5156 * procfs.c (procfs_prepare_to_store): Likewise.
5158 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
5159 * go32-nat.c (go32_prepare_to_store): Likewise.
5160 * monitor.c (monitor_prepare_to_store): Likewise.
5161 * nto-procfs.c (procfs_prepare_to_store): Likewise.
5162 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
5163 * remote-mips.c (mips_prepare_to_store): Likewise.
5164 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
5165 * win32-nat.c (win32_prepare_to_store): Likewise.
5167 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
5168 Use it instead of current_regcache.
5170 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
5171 parameter. Pass it on to next target.
5172 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
5174 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5176 * target.h (struct regcache): Add forward declaration.
5177 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
5178 and to_store_registers target operations.
5179 (target_fetch_registers, target_store_registers): Update.
5181 * regcache.c (regcache_raw_read): Replace register_cached by
5182 regcache_valid_p. Pass regcache to target_fetch_registers.
5183 (regcache_raw_write): Pass regcache to target_store_registers.
5185 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
5186 store_regs, store_wmmx_regs): Replace register_cached by
5189 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
5190 to target_fetch_registers calls.
5191 * corelow.c (core_open): Likewise.
5192 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
5193 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5194 ps_lsetfpregs): Likewise.
5195 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5196 ps_lsetfpregs): Likewise.
5197 * win32-nat.c (win32_resume): Likewise.
5198 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
5199 to target_store_registers call.
5200 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5202 * inferior.h (store_inferior_registers): Update prototype.
5203 (fetch_inferior_registers): Likewise.
5204 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
5205 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
5206 Update function pointer signatures.
5208 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
5209 use it instead of current_regcache, update calls.
5210 (aix_thread_store_registers): Likewise.
5211 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
5212 (alphabsd_store_inferior_registers): Likewise.
5213 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
5214 (amd64bsd_store_inferior_registers): Likewise.
5215 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
5216 (amd64_linux_store_inferior_registers): Likewise.
5217 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
5218 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
5219 fetch_wmmx_regs, store_wmmx_regs): Likewise.
5220 (arm_linux_fetch_inferior_registers): Likewise.
5221 (arm_linux_store_inferior_registers): Likewise.
5222 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
5223 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
5224 (store_register, store_regs, store_fp_register, store_fp_regs,
5225 armnbsd_store_registers): Likewise.
5226 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5227 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5228 (bsd_uthread_store_registers): Likewise.
5229 * corelow.c (get_core_registers): Likewise.
5230 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5231 go32_store_registers): Likewise.
5232 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5233 (hppabsd_store_registers): Likewise.
5234 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5235 (hppa_hpux_fetch_inferior_registers): Likewise.
5236 (hppa_hpux_store_register): Likewise.
5237 (hppa_hpux_store_inferior_registers): Likewise.
5238 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5239 (hppa_linux_fetch_inferior_registers): Likewise.
5240 (hppa_linux_store_inferior_registers): Likewise.
5241 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5242 (hpux_thread_store_registers): Likewise.
5243 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5244 (i386bsd_store_inferior_registers): Likewise.
5245 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5246 gnu_store_registers): Likewise.
5247 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5248 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5250 (i386_linux_fetch_inferior_registers): Likewise.
5251 (i386_linux_store_inferior_registers): Likewise.
5252 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5253 (ia64_linux_fetch_registers): Likewise.
5254 (ia64_linux_store_register): Likewise.
5255 (ia64_linux_store_registers): Likewise.
5256 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5257 (inf_child_store_inferior_registers): Likewise.
5258 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5259 (inf_ptrace_fetch_registers): Likewise.
5260 (inf_ptrace_store_register): Likewise.
5261 (inf_ptrace_store_registers): Likewise.
5262 * infptrace.c (fetch_register, store_register): Likewise.
5263 (fetch_inferior_registers, store_inferior_registers): Likewise.
5264 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5265 (m32r_linux_fetch_inferior_registers): Likewise.
5266 (m32r_linux_store_inferior_registers): Likewise.
5267 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5268 (m68kbsd_store_inferior_registers): Likewise.
5269 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5270 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5271 fetch_fpregs, store_fpregs): Likewise.
5272 (m68k_linux_fetch_inferior_registers): Likewise.
5273 (m68k_linux_store_inferior_registers): Likewise.
5274 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5275 (m88kbsd_store_inferior_registers): Likewise.
5276 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5277 (mips64obsd_store_inferior_registers): Likewise.
5278 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5279 (mips64_linux_regsets_store_registers): Likewise.
5280 (mips64_linux_fetch_registers): Likewise.
5281 (mips64_linux_store_registers): Likewise.
5282 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5283 (mipsnbsd_store_inferior_registers): Likewise.
5284 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5285 (monitor_fetch_registers, monitor_store_registers): Likewise.
5286 * nto-procfs.c (procfs_fetch_registers): Likewise.
5287 (procfs_store_registers): Likewise.
5288 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5289 fetch_register, supply_vrregset, fetch_altivec_registers,
5290 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5291 (store_altivec_register, store_spe_register, store_register,
5292 fill_vrregset, store_altivec_registers, store_ppc_registers,
5293 ppc_linux_store_inferior_registers): Likewise.
5294 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5295 (ppcnbsd_store_inferior_registers): Likewise.
5296 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5297 (ppcobsd_store_registers): Likewise.
5298 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5299 * remote.c (fetch_register_using_p, process_g_packet,
5300 fetch_registers_using_g, remote_fetch_registers): Likewise.
5301 (store_register_using_P, store_registers_using_G,
5302 remote_store_registers): Likewise.
5303 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5304 m32r_store_register, m32r_store_register): Likewise.
5305 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5306 * remote-sim.c (gdbsim_fetch_register): Likewise.
5307 (gdbsim_store_register): Likewise.
5308 * rs6000-nat.c (fetch_register, store_register): Likewise.
5309 (rs6000_fetch_inferior_registers): Likewise.
5310 (rs6000_store_inferior_registers): Likewise.
5311 * s390-nat.c (fetch_regs, store_regs): Likewise.
5312 (fetch_fpregs, store_fpregs): Likewise.
5313 (s390_linux_fetch_inferior_registers): Likewise.
5314 (s390_linux_store_inferior_registers): Likewise.
5315 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5316 (shnbsd_store_inferior_registers): Likewise.
5317 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5318 (sol_thread_store_registers): Likewise.
5319 * sparc-nat.c (fetch_inferior_registers): Likewise.
5320 (store_inferior_registers): Likewise.
5321 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5322 (spu_store_inferior_registers): Likewise.
5323 * target.c (debug_print_register): Likewise.
5324 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5325 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5326 (vaxbsd_store_inferior_registers): Likewise.
5327 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5328 (win32_fetch_inferior_registers): Likewise.
5329 (win32_store_inferior_registers): Likewise.
5331 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5333 * gdbcore.h (struct regcache): Add forward declaration.
5334 (struct core_fns): Add REGCACHE argument to core_read_registers
5336 * corelow.c (get_core_register_section): Add REGCACHE argument,
5337 use it instead of current_regcache, pass it to core_read_registers
5339 (get_core_registers): Add current_regcache as parameter to
5340 get_core_register_section calls.
5342 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5343 use it instead of current_regcache.
5344 * armnbsd-nat.c (fetch_core_registers): Likewise.
5345 (fetch_elfcore_registers): Likewise.
5346 * core-regset.c (fetch_core_registers): Likewise.
5347 * cris-tdep.c (fetch_core_registers): Likewise.
5348 * irix5-nat.c (fetch_core_registers): Likewise.
5349 * m68klinux-nat.c (fetch_core_registers): Likewise.
5350 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5351 * win32-nat.c (fetch_elf_core_registers): Likewise.
5353 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5355 * gregset.h (struct regcache): Add forward declaration.
5356 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5357 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5358 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5359 (fill_gregset): Add REGCACHE parameter.
5360 (fill_fpregset): Likewise.
5361 (fill_fpxregset): Likewise.
5363 Update all definitions accordingly:
5364 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5365 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5366 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5367 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5368 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5369 (supply_gregset): Add REGCACHE parameter, use it instead of
5370 current_regcache. Make GREGSETP parameter const, adapt casts.
5371 (supply_fpregset): Add REGCACHE parameter, use it instead of
5372 current_regcache. Make FPREGSETP parameter const, adapt casts.
5373 (fill_gregset): Add REGCACHE parameter, use it instead of
5375 (fill_fpregset): Likewise.
5377 Update all callers to pass in current_regcache as the new argument:
5378 * core-regset.c: Include "regcache.h".
5379 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5380 * procfs.c: Include "regcache.h".
5381 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5382 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5383 (procfs_do_thread_registers): Likewise.
5384 (procfs_make_note_section): Likewise.
5385 * proc-service.c: Include "regcache.h".
5386 (ps_lgetregs): Update fill_gregset call.
5387 (ps_lsetregs): Update supply_gregset call.
5388 (ps_lgetfpregs): Update fill_fpregset call.
5389 (ps_lsetfpregs): Update supply_fpregset call.
5390 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5391 supply_fpregset calls.
5392 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5393 (ps_lgetregs): Update fill_gregset call.
5394 (ps_lsetregs): Update supply_gregset call.
5395 (ps_lgetfpregs): Update fill_fpregset call.
5396 (ps_lsetfpregs): Update supply_fpregset call.
5398 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5399 fill_fpregset, and fill_fpxregset calls.
5400 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5401 (store_regs): Update fill_gregset call.
5402 (fetch_fpregs): Update supply_fpregset call.
5403 (store_fpregs): Update fill_fpregset call.
5404 (fetch_fpxregs): Update supply_fpxregset call.
5405 (store_fpxregs): Update fill_fpxregset call.
5406 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5407 (store_regs): Update fill_gregset call.
5408 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5409 (store_regs): Update fill_gregset call.
5410 (fetch_fpregs): Update supply_fpregset call.
5411 (store_fpregs): Update fill_fpregset call.
5412 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5413 * s390-nat.c (fetch_regs): Update supply_gregset call.
5414 (store_regs): Update fill_gregset call.
5415 (fetch_fpregs): Update supply_fpregset call.
5416 (store_fpregs): Update fill_fpregset call.
5418 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5421 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5423 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5424 it instead of current_regcache.
5425 (parse_register_dump): Add REGCACHE parameter, pass it to
5426 supply_register callback.
5427 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5428 parse_register_dump.
5429 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5430 parse_register_dump and dumpregs callback.
5431 (monitor_wait): Pass current_regcache to parse_register_dump and
5433 (monitor_fetch_register): Pass current_regcache to
5434 monitor_supply_register.
5435 (monitor_fetch_registers): Pass current_regcache to
5437 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5438 supply_register and dumpregs callbacks.
5439 (monitor_supply_register, monitor_dump_reg_block): Update
5441 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5442 it to monitor_supply_register.
5443 * dink32-rom.c (dink32_supply_register): Likewise.
5444 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5445 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5446 instead of current_regcache.
5448 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5450 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5451 Add REGCACHE parameter. Use it instead of current_regcache.
5452 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5453 i386nto_supply_gregset and i386nto_supply_fpregset.
5454 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5455 of current_regcache.
5457 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5458 nto_supply_ helper functions.
5459 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5461 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5463 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5464 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5465 and regset_fill member function pointers.
5466 (nto_dummy_supply_regset): Adapt prototype.
5468 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5470 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5471 instead of current_regcache. Make REGS const.
5472 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5473 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5475 * shnbsd-nat.c: Include "regcache.h".
5476 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5478 (shnbsd_store_inferior_registers): Pass current_regcache to
5480 * Makefile.in (shbsd-nat.o): Update dependencies.
5482 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5484 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5485 instead of current_regcache.
5486 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5487 Make GREGSETP const, remove superfluous casts.
5488 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5489 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5491 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5492 (supply_64bit_reg): Likewise
5493 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5494 Make GREGSETP const, adapt casts accordingly.
5495 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5496 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5498 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5499 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5501 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5502 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5503 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5505 * mips-linux-nat.c: Include "regcache.h".
5506 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5507 current_regcache to mips{64}_(supply|fill)_ helper routines.
5508 (mips64_linux_regsets_fetch_registers): Likewise.
5509 (mips64_linux_regsets_store_registers): Likewise.
5511 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5512 REGCACHE argument; replace current_regcache. Make REGS const.
5513 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5514 replace current_regcache.
5515 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5516 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5517 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5518 mipsnbsd_store_inferior_registers): Pass current_regcache to
5519 mipsnbsd_(supply|fill)_... helper routines.
5521 * Makefile.in (mips-linux-nat.o): Update dependencies.
5523 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5525 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5526 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5527 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5528 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5529 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5530 * i386gnu-nat.c (store_fpregs): Likewise.
5531 * i386v4-nat.c (fill_fpregset): Likewise.
5532 * go32-nat.c (store_register, go32_store_registers): Likewise.
5534 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5536 * cris-tdep.c (supply_gregset): Rename to ...
5537 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5538 instead of current_regcache.
5539 (fetch_core_registers): Update call. Pass current_regcache.
5541 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5543 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5544 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5545 Use it instead of current_regcache.
5546 (supply_fparegset): Rename to ...
5547 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5548 Use it instead of current_regcache.
5549 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5550 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5552 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5554 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5555 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5556 use it instead of current_regcache.
5557 * alpha-tdep.h (struct regcache): Add forward declaration.
5558 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5559 alpha_fill_fp_regs): Update prototypes.
5561 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5562 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5563 * alpha-linux-nat.c: Include "regcache.h".
5564 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5565 current_regcache to alpha_supply/fill_ routines.
5567 * alphabsd-tdep.c: Include "regcache.h".
5568 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5569 pass it to alpha_supply_ routines. Make REGS const.
5570 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5571 pass it to alpha_fill_ routines.
5572 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5573 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5574 alphabsd_fill_fpreg): Update prototypes.
5576 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5577 fill_fpregset, alphabsd_fetch_inferior_registers,
5578 alphabsd_store_inferior_registers): Pass current_regcache to
5579 alphabsd_supply/fill_ routines.
5581 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5584 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5586 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5587 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5588 instead of current_regcache.
5589 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5590 REGCACHE parameter, pass it to supply_ routines.
5591 (aix_thread_fetch_registers): Pass current_regcache to
5592 fetch_regs_user_thread and fetch_regs_kernel_thread.
5594 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5595 Add REGCACHE parameter, use it instead of current_regcache.
5596 Call regcache_valid_p instead of register_cached.
5597 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5598 Also, pass REGCACHE to fill_ routines.
5599 (aix_thread_store_registers): Pass current_regcache to
5600 store_regs_user_thread and store_regs_kernel_thread.
5602 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5604 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5605 pointed to by GREGSETP.
5607 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5609 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5610 of regcache_raw_read_signed.
5611 (fill_fpregset): Use regcache_raw_collect instead of
5614 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5616 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5617 point arguments, test explicitly for use of the EABI32 ABI
5618 instead of inferring this condition from tests on register
5621 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5623 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5624 prior to allocating its location.
5626 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5628 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5629 based on mips_abi_regsize() whose result is known in advance.
5630 (mips_o64_push_dummy_call): Likewise.
5632 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5634 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5635 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5637 * mips-linux-nat.c: Include "gregset.h".
5638 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5639 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5640 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5641 fill_fpregset): Move to mips-linux-nat.c.
5643 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5645 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5647 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5648 (read_register): ... here.
5649 (deprecated_write_register_gen): Remove, inline ...
5650 (write_register): ... here.
5651 * regcache.h (deprecated_read_register_gen): Remove prototype.
5652 (deprecated_write_register_gen): Likewise.
5654 * remote-sim.c (gdbsim_store_register): Replace call to
5655 deprecated_read_register_gen with regcache_cooked_read.
5656 * target.c (debug_print_register): Replace calls to
5657 deprecated_read_register_gen and read_register with
5658 regcache_cooked_read.
5660 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5662 * hpux-thread.c (hpux_thread_store_registers): Use
5663 regcache_raw_collect, not regcache_raw_read.
5664 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5665 not regcache_raw_write.
5667 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5669 * gdbarch.sh: Remove deprecated_register_byte.
5670 * gdbarch.c, gdbarch.h: Regenerate.
5671 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5672 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5674 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5675 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5676 read-only register caches. Make REGCACHE parameter const.
5677 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5679 * mi/mi-main.c (old_regs): Remove.
5680 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5681 (register_changed_p): Reimplement to compare two register caches.
5682 (mi_cmd_data_list_changed_registers): Update caller.
5683 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5684 * mi/mi-interp.c (mi_interpreter_init): Do not call
5685 mi_setup_architecture_data.
5687 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5689 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5690 inline definition at the places the macros are used.
5691 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5693 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5695 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5697 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5698 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5699 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5700 (rs6000_aix_regset_from_core_section): New function.
5701 (rs6000_aix_init_osabi): Register it.
5702 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5703 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5704 * rs6000-nat.c (CoreRegs): Do not define type.
5705 (fetch_core_registers, rs6000_core_fns): Remove.
5706 (_initialize_core_rs6000): Do not register it. Rename to ...
5707 (_initialize_rs6000_nat): ... this.
5708 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5710 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5712 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5713 (dwarf2_read_address): Sign extend return address as required by
5714 target architecture.
5716 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5718 * solib-frv.c (lm_base): Bail out if the main executable has
5721 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5723 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5724 of FPCR register in fpregset.
5726 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5728 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5729 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5731 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5733 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5734 * rs6000-nat.c (rs6000_wait): New function.
5735 (_initialize_core_rs6000): Install it as to_wait target method.
5736 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5738 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5740 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5741 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5742 * rs6000-nat.c (super_create_inferior): New variable.
5743 (rs6000_create_inferior): Make static. Adapt argument list. Call
5744 original version of create_inferior via super_create_inferior.
5745 (_initialize_core_rs6000): Install to_create_inferior target method.
5747 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5749 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5750 (aix_thread_xfer_partial): ... this.
5751 (init_aix_thread_ops): Install to_xfer_partial instead
5752 of deprecated_xfer_memory target method.
5754 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5755 and inftarg.o, add inf-ptrace.o.
5756 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5757 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5758 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5759 (fetch_inferior_registers): Rename to ...
5760 (rs6000_fetch_inferior_registers): ... this. Make static.
5761 (store_inferior_registers): Rename to ...
5762 (rs6000_store_inferior_registers): ... this. Make static.
5763 (read_word, child_xfer_memory): Remove.
5764 (rs6000_xfer_partial): New function.
5765 (kernel_u_size): Remove.
5766 (_initialize_core_rs6000): Add inf_ptrace-based target.
5767 * Makefile.in (rs6000-nat.o): Update dependencies.
5769 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5771 * inf-ptrace.c: Include "gdb_stdint.h".
5772 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5773 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5774 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5775 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5776 (inf_ptrace_store_register): Likewise.
5777 * Makefile.in (inf-ptrace.o): Update dependencies.
5779 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5781 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5782 * configure.tgt (rs6000-*-*): Likewise.
5783 * config/rs6000/aix4.mh: Delete file.
5784 * config/rs6000/aix4.mt: Delete file.
5785 * config/rs6000/rs6000.mh: Delete file.
5786 * config/rs6000/rs6000.mt: Delete file.
5788 * config/powerpc/nm-aix.h: Delete file.
5789 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5791 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5793 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5794 Remove obsolete part of comment.
5795 (store_regs_user_thread): Use uint32_t temporaries when calling
5797 (store_regs_kernel_thread): Likewise. Add assertion to verify
5798 correct size of struct ptsprs members.
5799 (aix_thread_xfer_memory): Fix type of myaddr.
5800 (aix_thread_extra_thread_info): Fix compiler warning.
5801 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5802 (fetch_register, store_register): Adapt callers.
5804 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5806 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5808 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5810 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5812 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5813 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5814 (alpha_linux_regset_from_core_section): New function.
5815 (alpha_linux_init_abi): Install it.
5816 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5817 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5818 <sys/procfs.h>, and "gregset.h".
5819 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5820 Move from config/alpha/nm-linux.h.
5821 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5823 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5824 * alpha-nat.c: Remove #ifdef __linux__ section.
5825 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5826 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5827 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5828 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5829 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5830 (NATDEPFILES): Remove alpha-nat.o.
5831 * config/alpha/nm-linux.h: Delete file.
5832 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5833 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5834 (alpha-linux-tdep.o): Likewise.
5836 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5838 * mips-linux-nat.c: No longer include "gdbcore.h".
5839 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5840 (mips64_linux_register_addr): Likewise.
5841 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5842 mips64_linux_register_addr instead of register_addr.
5843 * mips-linux-tdep.c (mips_linux_register_addr,
5844 mips64_linux_register_addr): Move to mips-linux-nat.c.
5845 (register_addr): Remove.
5846 (register_addr_data, init_register_addr_data): Remove.
5847 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5848 (set_mips_linux_register_addr): Remove.
5849 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5850 * Makefile.in (mips-linux-nat.o): Update dependencies.
5852 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5854 * linux-nat.c (linux_register_u_offset): Remove.
5855 (linux_target_install_ops): New function.
5856 (linux_target): Use it.
5857 (linux_trad_target): New function.
5858 * linux-nat.h (linux_trad_target): Declare.
5860 * alpha-linux-nat.c: Include "gdbcore.h".
5861 (alpha_linux_register_u_offset): New function.
5862 (_initialize_alpha_linux_nat): Use linux_trad_target.
5864 * mips-linux-nat.c: Include "gdbcore.h".
5865 (mips_linux_register_u_offset): New function.
5866 (_initialize_mips_linux_nat): Use linux_trad_target.
5868 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5869 * config/arm/nm-linux.h: Delete file.
5871 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5872 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5874 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5875 * config/ia64/nm-linux.h: Delete file.
5877 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5878 * config/m32r/nm-linux.h: Delete file.
5880 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5881 * config/m68k/nm-linux.h: Delete file.
5883 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5884 * config/pa/nm-linux.h: Delete file.
5886 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5887 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5888 * config/powerpc/nm-linux.h: Delete file.
5890 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5891 * config/s390/nm-linux.h: Delete file.
5893 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5894 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5895 * config/sparc/nm-linux.h: Delete file.
5897 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5898 (mips-linux-nat.o): Likewise.
5900 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5902 * core-aout.c: Delete file.
5903 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5904 (core-aout.o): Delete rule.
5905 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5907 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5909 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5910 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5911 KERNEL_U_ADDR): Remove.
5913 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5914 (cannot_fetch_register, cannot_store_register): Remove.
5915 (fetch_register): Inline cannot_fetch_register and register_addr.
5916 (store_register): Inline cannot_store_register and register_addr.
5917 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5918 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5919 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5922 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5923 (fetch_register): Inline register_addr.
5924 (store_register): Inline register_addr.
5925 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5926 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5927 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5929 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5930 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5931 REGISTER_U_ADDR): Remove.
5933 * hppa-linux-nat.c (register_addr): Rename to ...
5934 (hppa_linux_register_addr): ... this. Make static.
5935 (fetch_register, store_register): Adapt callers.
5936 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5938 * ppc-linux-nat.c (kernel_u_size): Remove.
5939 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5941 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5942 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5944 * config/vax/nm-vax.h: Delete file.
5946 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5948 * MAINTAINERS (Write After Approval): Add myself.
5950 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5952 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5953 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5954 (m68k_linux_sigcontext_reg_offset): Fix typo.
5955 (target_is_uclinux): New.
5956 (m68k_linux_inferior_created): New.
5957 (m68k_linux_get_sigtramp_info): Check for uClinux or
5958 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5960 (_initialize_m68k_linux_tdep): Register
5961 m68k_linux_inferior_created.
5963 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5965 * win32-nat.c (win32_detach): Remove delete_command call.
5966 Resume inferior with win32_resume instead of win32_continue.
5968 2007-04-19 Jerome Guitton <guitton@adacore.com>
5970 * ser-mingw.c (fd_is_file): New function.
5971 (file_select_thread): New function.
5972 (ser_console_wait_handle): Add special handling for files.
5974 2007-04-18 Denis Pilat <denis.pilat@st.com>
5976 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5977 when missing from DW_TAG_subrange_type. Remove the handling of null
5978 return from die_type.
5980 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5982 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5983 change to rearrange some brackets.
5984 (mips_n32n64_push_dummy_call): Likewise.
5985 (mips_o32_push_dummy_call): Likewise.
5986 (mips_o64_push_dummy_call): Likewise.
5988 2007-04-18 Denis Pilat <denis.pilat@st.com>
5990 * infcmd.c (post_create_inferior): Start with a call to
5991 target_terminal_ours.
5993 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5995 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5997 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5999 (mips_o32_push_dummy_call): Likewise.
6000 (mips_o64_push_dummy_call): Likewise.
6002 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6004 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6007 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6009 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6011 (mips_o32_push_dummy_call): Likewise.
6013 2007-04-17 Andreas Schwab <schwab@suse.de>
6015 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
6016 sal to be bigger than the end of the function.
6018 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6019 Nigel Stephens <nigel@mips.com>
6021 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
6022 argument alignment requirements when calculating stack space
6023 required. When aligning an arg register to eight bytes
6024 boundary, align stack_offset too. Write floating-point
6025 arguments to the appropriate integer register if need go there.
6026 (mips_o64_push_dummy_call): Likewise.
6028 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6030 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
6031 "sig" arguments, add "regcache" argument.
6032 * gdbarch.c, gdbarch.h: Regenerate.
6034 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
6035 (handle_inferior_event): Call remove_single_step_breakpoints directly
6036 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
6038 * alpha-tdep.c (alpha_software_single_step): Update argument list.
6039 Remove handling of !insert_breakpoints_p case.
6040 * arm-tdep.c (arm_software_single_step): Likewise.
6041 * cris-tdep.c (cris_software_single_step): Likewise.
6042 * mips-tdep.c (mips_software_single_step): Likewise.
6043 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6044 * sparc-tdep.c (sparc_software_single_step): Likewise.
6045 * spu-tdep.c (spu_software_single_step): Likewise.
6047 * alpha-tdep.h (alpha_software_single_step): Update prototype.
6048 * mips-tdep.h (mips_software_single_step): Likewise.
6049 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6050 * sparc-tdep.h (sparc_software_single_step): Likewise.
6052 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6054 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
6055 when removing single-step breakpoints.
6057 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
6059 * varobj.h (varobj_set_frozen): New
6060 (varobj_get_frozen): New.
6061 (varobj_update): New parameter explicit.
6062 * varobj.c (struct varobj): New fields frozen
6064 (varobj_set_frozen, varobj_get_frozen): New.
6065 (install_new_value): Don't fetch values for
6066 frozen variable object, or children thereof. Allow
6067 a frozen variable object to have non-fetched value.
6068 (varobj_update): Allow updating child variables.
6069 Don't traverse frozen children.
6070 (new_variable): Initialize the frozen field.
6071 (c_value_of_variable): Return NULL for frozen
6072 variable without any value yet.
6073 * mi/mi-cmd-var.c (varobj_update_one): New parameter
6075 (mi_cmd_var_create): Output the 'frozen' field,
6076 as soon as testsuite is adjusted to expect that field.
6077 (mi_cmd_var_set_frozen): New.
6078 (mi_cmd_var_update): Pass the 'explicit' parameter to
6080 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
6081 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
6083 2007-04-13 Paul Brook <paul@codesourcery.com>
6085 * target-descriptions.c (tdesc_named_type): Add ieee_single and
6087 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
6089 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6091 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
6092 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
6093 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
6094 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
6095 * Makefile.in: Remove references to deleted files.
6096 * README: Do not mention deleted ROM monitor interfaces.
6097 * defs.h (enum language): Delete language_scm.
6098 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
6099 (dump_subexp_body_standard): Likewise.
6100 * parse.c (operator_length_standard): Likewise.
6101 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
6102 * remote-mips.c: Do not include remote-utils.h.
6103 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
6105 * value.c: Do not include scm-lang.h.
6106 (unpack_long): Delete scm_unpack call.
6107 * config/h8300/h8300.mt, config/mips/embed.mt,
6108 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
6109 config/sh/embed.mt, config/sh/linux.mt: Remove references to
6111 * NEWS: Mention removed files.
6113 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6115 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
6116 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
6118 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6120 * NEWS: Mention removal of HP aCC support.
6122 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6124 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
6125 first entry for static executables.
6126 (breakpoint_addr): Delete unused variable.
6127 (elf_locate_base): Search for _r_debug in static executables.
6128 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
6131 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6133 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
6134 (bpstat_what, print_one_breakpoint, allocate_bp_location)
6135 (mention): Remove bp_through_sigtramp support.
6136 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
6138 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6140 * breakpoint.c (bpstat_what): Give step-resume higher priority than
6143 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6145 * infrun.c: Doc fixes.
6146 (handle_inferior_event): Clarify debug message.
6147 (insert_step_resume_breakpoint_at_sal): Print a debug message.
6149 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6151 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
6153 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6155 * config/m68k/tm-monitor.h: Delete file.
6156 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
6157 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
6159 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
6160 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
6162 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
6164 * gdbarch.sh (software_single_step): Change the return type
6165 from void to int and reformatted some comments to <= 80
6167 * gdbarch.c, gdbarch.h: Regenerated.
6168 * alpha-tdep.c (alpha_software_single_step): Likewise.
6169 * alpha-tdep.h (alpha_software_single_step): Likewise.
6170 * arm-tdep.c (arm_software_single_step): Likewise.
6171 * cris-tdep.c (cris_software_single_step): Likewise.
6172 * mips-tdep.c (mips_software_single_step): Likewise.
6173 * mips-tdep.h (mips_software_single_step): Likewise.
6174 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6175 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6176 * sparc-tdep.c (sparc_software_single_step): Likewise.
6177 * sparc-tdep.h (sparc_software_single_step): Likewise.
6178 * spu-tdep.c (spu_software_single_step): Likewise.
6179 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
6180 and act accordingly.
6182 2007-04-11 Steve Ellcey <sje@cup.hp.com>
6184 * configure.ac (build_warnings): Add -Wno-char-subscripts.
6185 * configure: Regenerate.
6186 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
6188 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6190 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
6192 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6194 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
6196 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
6197 distinct on the TYPE_STUB_SUPPORTED debug targets.
6198 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
6200 2007-04-11 Joel Brobecker <brobecker@adacore.com>
6202 * sparc-tdep.c (X_RS2): New macro.
6203 (sparc_skip_stack_check): New function.
6204 (sparc_analyze_prologue): Adjust PC past stack probing
6205 sequence if necessary.
6207 2007-04-10 Andreas Schwab <schwab@suse.de>
6209 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
6212 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6214 * breakpoint.c (gdb_breakpoint_query): Really return an
6216 (gdb_breakpoint): Likewise.
6217 * thread.c (gdb_list_thread_ids): Likewise.
6218 (gdb_thread_select): Likewise.
6219 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
6220 (mi_cmd_thread_list_ids): Remove bogus initialization.
6222 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6224 * Makefile.in (SFILES): Remove hpacc-abi.c.
6225 (COMMON_OBS): Remove hpacc-abi.o.
6226 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6227 (hpacc-abi.o, hpread.o): Delete rules.
6228 * somread.c: Delete extern declarations from hpread.c.
6229 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6230 (som_symfile_finish): Do not call hpread_symfile_finish.
6231 (som_symfile_init): Do not call hpread_symfile_init.
6232 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6233 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6234 * hpacc-abi.c, hpread.c: Deleted.
6236 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6238 * solib-svr4.c (enable_break): Simplify return value.
6239 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6241 2007-04-10 Andreas Schwab <schwab@suse.de>
6243 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6244 l_ld_size, l_next_size, l_prev_size, l_name_size.
6246 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6247 to extract addresses from link map.
6248 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6249 (LM_NEXT): Likewise.
6250 (LM_NAME): Likewise.
6251 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6252 (elf_locate_base): Likewise.
6253 (open_symbol_file_object): Likewise.
6254 (svr4_fetch_objfile_link_map): Likewise.
6255 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6256 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6258 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6259 (svr4_lp64_fetch_link_map_offsets): Likewise.
6261 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6262 removed members. Set l_ld_offset to -1 if not present.
6264 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6266 Pass stderr of program run with "target remote |"
6268 * serial.c (serial_open): Set error_fd to -1.
6269 * serial.h (struct serial): New field error_fd.
6270 (struct serial_opts): New field avail.
6271 * ser-pipe.c (pipe_open): Create another pair
6272 of sockets. Pass stderr to gdb.
6273 * ser-mingw.c (pipe_windows_open): Pass
6274 PEX_STDERR_TO_PIPE to pex_run. Initialize
6277 (_initialize_ser_windows): Hook pipe_avail.
6278 * ser-base.c (generic_readchar): Check if there's
6279 anything in stderr channel and route that to gdb_stderr.
6281 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6283 * dbxread.c (read_ofile_symtab): Move current_objfile
6284 clearing to after end_stabs.
6286 2007-04-01 Andreas Schwab <schwab@suse.de>
6288 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6289 gdbarch instead of current_gdbarch.
6291 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6293 * varobj.c (varobj_create): Keep varobj value
6294 NULL when evaluating the type.
6296 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6298 * NEWS: Mention new Windows CE support.
6300 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6302 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6303 the obsoletion stanza.
6304 * NEWS: Mention deleted targets.
6306 * config/sh/tm-wince.h: Remove.
6307 * config/sh/wince.mt: Remove.
6308 * config/mips/tm-wince.h: Remove.
6309 * config/mips/wince.mt: Remove.
6312 * wince-stub.c: Remove.
6313 * wince-stub.h: Remove.
6314 * Makefile.in (wince.o): Remove rule.
6315 (wince-stub.o): Likewise.
6317 * mips-tdep.c (mips_next_pc): Make static.
6318 * mips-tdep.h (mips_next_pc): Remove declaration.
6319 * arm-tdep.c (arm_pc_is_thumb): Make static.
6320 (thumb_get_next_pc): Likewise.
6321 (arm_get_next_pc): Likewise.
6322 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6323 (arm_pc_is_thumb): Likewise.
6324 (thumb_get_next_pc): Likewise.
6325 (arm_get_next_pc): Likewise.
6327 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6329 * MAINTAINERS: Remove d10v entry.
6330 * Makefile.in (SFILES): Remove dwarfread.c.
6331 (COMMON_OBS): Remove dwarfread.o.
6332 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6333 (remote-est.o, rom68k-rom.o): Delete.
6334 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6335 target est, target rom68k, and DWARF 1.
6336 * configure.tgt: Mark d10v as removed.
6337 * dwarf2read.c: Doc update.
6338 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6340 (elf_locate_sections): Do not set them.
6341 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6342 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6343 * config/m68k/monitor.mt (TDEPFILES): Prune.
6344 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6345 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6347 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6349 * doublest.c (convert_floatformat_to_doublest): Use
6350 floatformat_classify.
6351 (floatformat_is_nan): Rename to...
6352 (floatformat_classify): ...this. Return more information.
6353 * doublest.h (enum float_kind): New.
6354 (floatformat_is_nan): Replace prototype...
6355 (floatformat_classify): ...with this one.
6356 * valprint.c (print_floating): Use floatformat_classify. Handle
6359 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6361 * README: Mention ISO C library requirement.
6363 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6365 * Makefile.in (SFILES): Remove nlmread.c.
6366 (COMMON_OBS): Remove nlmread.o.
6367 (nlmread.o): Delete rule.
6368 * README: Delete reference to remote-st.c.
6369 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6370 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6372 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6373 (_initialize_i386_tdep): Do not reference them.
6374 * nlmread.c: Delete file.
6375 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6376 * target.c: Doc update.
6377 * thread.c: Delete commented include.
6378 * config/alpha/tm-alpha.h: Doc update.
6380 2007-03-30 Chris Dearman <chris@mips.com>
6382 * utils.c (string_to_core_addr): Comment typo.
6384 2007-03-30 Chris Dearman <chris@mips.com>
6386 * mips-tdep.c: Comment typo.
6388 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6390 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6391 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6392 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6393 * config/powerpc/nm-ppc64-linux.h: Remove file.
6394 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6395 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6396 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6397 * infptrace.c (call_ptrace): Likewise.
6398 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6399 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6400 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6401 (store_register): Likewise.
6403 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6405 * Makefile.in (varobj.o): Add missing dependency.
6407 2007-03-29 Michael Snyder <msnyder@access-company.com>
6409 * MAINTAINERS: Update my email address.
6411 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6413 Add support for exception handling with multiple versions of
6415 * ada-lang.c: Update general comments on how Ada exception catchpoints
6417 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6418 (__gnat_raise_nodefer_with_msg): Delete.
6419 (ada_unhandled_exception_name_addr_ftype): New type.
6420 (exception_support_info): New type.
6421 (ada_unhandled_exception_name_addr): Add forward declaration.
6422 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6423 (default_exception_support_info): New constant.
6424 (exception_support_info_fallback): Likewise.
6425 (exception_info): New global variable.
6426 (ada_exception_support_info_sniffer): New function.
6427 (ada_executable_changed_observer): Likewise.
6428 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6429 ada_unhandled_exception_name_addr.
6430 (ada_unhandled_exception_name_addr): Reimplement to match the
6431 latest Ada runtime implementation.
6432 (error_breakpoint_runtime_sym_not_found): Delete.
6433 (ada_exception_sym_name): Get the exception sym name from
6434 exception_info rather than hardcoding it.
6435 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6436 Update error handling.
6437 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6439 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6441 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6442 (remote-st.o, uw-thread.o): Delete.
6443 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6444 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6445 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6446 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6447 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6448 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6449 rs6000-*-lynxos* to an obsoletion stanza.
6450 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6451 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6452 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6453 i[34567]86-*-netware*.
6454 * NEWS: Mention deleted targets.
6456 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6457 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6458 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6459 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6460 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6461 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6462 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6463 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6464 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6465 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6466 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6467 config/rs6000/tm-rs6000ly.h: Delete files.
6469 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6471 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6472 * interps.c (clear_interpreter_hooks): Do not clear
6473 deprecated_registers_changed_hook.
6474 * regcache.c (registers_changed): Do not call it.
6475 * top.c (deprecated_registers_changed_hook): Do not define it.
6476 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6477 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6478 (tui_remove_hooks): Do not remove it.
6479 (tui_selected_frame_level_changed_hook): Check for negative level.
6480 Use get_selected_frame.
6481 (tui_registers_changed_hook): Deleted.
6483 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6485 * stabsread.c (add_undefined_type): Add extra parameter.
6486 Now handles nameless types separately.
6487 (struct nat): New type.
6488 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6489 New static variables.
6490 (read_type): Update calls to add_undefined_type.
6491 (add_undefined_type_noname): New function.
6492 (add_undefined_type_1): Renames from add_undefined_type.
6493 (cleanup_undefined_types_noname): New function.
6494 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6495 (cleanup_undefined_types): New handles nameless types separately.
6496 (_initialize_stabsread): Initialize our new static constants.
6498 2007-03-29 Denis Pilat <denis.pilat@st.com>
6500 * configure.ac: Test for signal.h.
6501 * configure, config.in: Regenerate.
6503 2007-03-29 Denis Pilat <denis.pilat@st.com>
6505 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6506 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6508 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6510 * arm-wince-tdep.c: New.
6511 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6512 (MT_CFLAGS): Delete.
6514 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6515 solib-legacy.o, solib-svr4.o, and remove wince.o.
6516 * configure.tgt (arm*-*-mingw32ce*): Add.
6517 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6518 (do_target_signal_to_host): Silence 'not used' warning.
6519 * config/arm/tm-wince.h: Remove.
6521 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6523 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6524 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6526 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6527 * config/ia64/tm-linux.h: Remove file.
6528 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6529 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6530 legacy_pc_in_sigtramp.
6531 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6532 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6533 Remove func_name argument.
6534 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6536 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6537 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6538 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6539 (HAVE_STEPPABLE_WATCHPOINT): Define.
6541 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6542 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6543 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6544 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6545 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6546 target_insert_watchpoint, target_remove_watchpoint): Remove.
6547 (FETCH_INFERIOR_REGISTERS): Define.
6548 * ia64-linux-nat.c (ia64_register_addr): Make static.
6549 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6550 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6551 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6552 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6553 (ia64_linux_stopped_by_watchpoint): Make static.
6554 (ia64_linux_can_use_hw_breakpoint): New function.
6555 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6556 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6557 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6559 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6561 * linespec.c: Include language.h.
6562 (find_methods): Add language parameter. Call
6563 lookup_symbol_in_language. Pass language down.
6564 (add_matching_methods): Likewise. Call
6565 lookup_symbol_in_language.
6566 (add_constructors): Likewise.
6567 (find_method): Pass sym_class to collect_methods.
6568 (collect_methods): Add sym_class parameter. Pass language
6570 * symtab.c (lookup_symbol): Rename to ...
6571 (lookup_symbol_in_language): ... this. Add language
6572 parameter. Use passed language instead of current_language.
6573 (lookup_symbol): New as wrapper around
6574 lookup_symbol_in_language.
6575 (lookup_symbol_aux): Add language parameter. Use passed
6576 language instead of current_language.
6577 (search_symbols): Indent.
6578 * symtab.h (enum language): Forward declare.
6579 (lookup_symbol_in_language): Declare.
6580 (lookup_symbol): Update description.
6581 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6582 * ada-lang.c (restore_language): Remove.
6583 (lookup_symbol_in_language): Remove.
6585 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6587 * breakpoint.c (bpstat_num): Add int *num parameter.
6588 * breakpoint.h (bpstat_num): Likewise.
6589 * infcmd.c (continue_command): Adjust to new bpstat_num
6591 (program_info): Likewise.
6593 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6595 * config/sh/tm-sh.h: Remove file.
6596 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6597 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6598 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6599 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6601 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6603 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6604 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6605 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6606 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6607 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6608 sequence if target_shortname is "remote".
6610 2007-03-27 Anton Blanchard <anton@samba.org>
6612 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6613 instead of wordsize when looking for the LR in a stack frame.
6615 2007-03-27 Andreas Schwab <schwab@suse.de>
6616 Daniel Jacobowitz <dan@codesourcery.com>
6618 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6619 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6620 argument. Update all callers.
6621 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6622 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6623 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6624 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6625 (dwarf2_frame_set_adjust_regnum): ...this.
6626 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6627 * rs6000-tdep.c: Include "dwarf2-frame.h".
6628 (rs6000_adjust_frame_regnum): Define.
6629 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6630 Register rs6000_adjust_frame_regnum.
6632 * Makefile.in (rs6000-tdep.o): Update dependencies.
6634 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6636 * Makefile.in: Add support for a "pdf" target.
6638 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6640 * amd64-tdep.c (amd64_init_frame_cache): New function.
6641 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6643 2007-03-26 Nigel Stephens <nigel@mips.com>
6644 Maciej W. Rozycki <macro@mips.com>
6646 * ui-out.c (ui_out_field_core_addr): Truncate address to
6647 TARGET_ADDR_BIT size before printing.
6649 2007-03-22 Nigel Stephens <nigel@mips.com>
6650 Maciej W. Rozycki <macro@mips.com>
6652 * remote-mips.c (mips_xfer_memory): Update prototype.
6654 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6656 * symfile.h: #include "symtab.h"
6658 2007-03-22 Denis Pilat <denis.pilat@st.com>
6660 * utils.c (pagination_on_command, pagination_off_command):
6661 Remove useless prototypes.
6663 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6666 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6667 instead of TYPE_NAME for object base class name.
6670 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6672 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6673 Specify frame type in calls to frame_func_unwind().
6675 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6677 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6678 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6679 (refine_prologue_limit): Delete.
6680 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6681 Assume lim_pc is set. Correct check for incomplete prologues.
6682 Do not skip clobbers of the frame pointer.
6683 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6686 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6688 * frame.c (frame_pop): Check to see whether there's a frame to
6689 which we can pop first.
6691 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6693 * MAINTAINERS (Write After Approval): Add myself.
6695 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6697 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6698 (handle_inferior_event): Remove unnecessary braces.
6699 * breakpoint.c (bpstat_what): Remove wrong comment.
6701 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6703 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6704 (spu_gdbarch_init): Install it.
6706 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6708 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6709 object types, not 0.
6711 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6713 * spu-tdep.c (spu_frame_align): New function.
6714 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6716 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6718 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6719 (spu_software_single_step): Likewise.
6720 (spu_read_pc, spu_write_pc): New functions.
6721 (spu_gdbarch_init): Install them.
6723 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6725 * cli/cli-dump.c (struct callback_data): load_offset needs to
6726 have signed long type.
6728 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6730 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6731 Revert the previous change that had some unexpected side-effects
6733 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6734 function to get the address of the calling instruction.
6736 2007-03-07 Denis Pilat <denis.pilat@st.com>
6738 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6739 get_selected_frame by deprecated_safe_get_selected_frame.
6741 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6743 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6744 "gdb_string.h". Don't include "nbsd-tdep.h".
6745 (SIZEOF_STRUCT_REG): Remove.
6746 (SHNBSD_SIZEOF_GREGS): New.
6747 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6748 (shnbsd_regset_from_core_section): New functions.
6749 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6750 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6751 shnbsd_supply_gregset, shnbsd_collect_gregset.
6752 (shnbsd_gregset): New variable.
6753 (shnbsd_init_abi): Set regset_from_core_section.
6754 (GDB_OSABI_NETBSD_CORE): New define.
6755 (shnbsd_core_osabi_sniffer): New function.
6756 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6757 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6758 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6760 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6762 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6764 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6765 length of the types referenced by the new type CV ring.
6767 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6769 * frame.c (frame_pop, frame_observer_target_changed): Call
6771 (flush_cached_frames): Rename to reinit_frame_cache and delete
6773 * frame.h (flush_cached_frames): Delete prototype and update comment.
6775 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6776 reinit_frame_cache instead of flush_cached_frames. Do not call
6777 select_frame after reinit_frame_cache.
6778 * corelow.c (core_open): Likewise.
6779 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6780 * infrun.c (prepare_to_proceed, context_switch)
6781 (handle_inferior_event): Likewise.
6782 * linux-fork.c (fork_load_infrun_state): Likewise.
6783 * ocd.c (ocd_start_remote): Likewise.
6784 * remote-e7000.c (e7000_start_remote): Likewise.
6785 * remote-mips.c (device): Likewise.
6786 * thread.c (switch_to_thread): Likewise.
6787 * tracepoint.c (finish_tfind_command): Likewise.
6788 * gdbarch.c: Regenerated.
6790 2007-02-28 Jerome Guitton <guitton@adacore.com>
6791 Joel Brobecker <brobecker@adacore.com>
6793 * gdbtypes.c (check_typedef): Do not replace stub type if
6794 the resolved type is not defined in the same objfile.
6796 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6798 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6800 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6802 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6803 symbol for Ada units when the symbol is defined using 't' rather
6804 than 'Tt' as symbol descriptor.
6806 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6808 * config/mips/tm-nbsd.h: Delete file.
6809 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6810 * config/sh/tm-nbsd.h: Delete file.
6811 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6813 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6815 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6816 unused WRONG_PARAM value since it was recently deleted.
6818 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6820 * varobj.c (varobj_update): Free temporary vectors.
6822 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6824 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6825 * config/powerpc/tm-linux.h: Delete file.
6826 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6827 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6828 (TEXT_SEGMENT_BASE): Do not redefine.
6829 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6830 from config/rs6000/tm-rs6000.h.
6831 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6832 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6833 (TEXT_SEGMENT_BASE): Remove.
6834 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6835 (rs6000_in_solib_return_trampoline): Remove.
6836 (SKIP_TRAMPOLINE_CODE): Remove.
6837 (rs6000_skip_trampoline_code): Remove.
6838 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6839 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6840 (FP0_REGNUM): Remove.
6841 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6842 (rs6000_set_host_arch_hook): Remove.
6843 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6844 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6845 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6846 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6847 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6848 * rs6000-nat.c: Include "rs6000-tdep.h".
6849 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6850 (set_host_arch): Rename to ...
6851 (rs6000_create_inferior): ... this. Make public.
6852 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6853 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6854 (rs6000_create_inferior): Remove.
6855 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6856 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6857 set_gdbarch_in_solib_return_trampoline, and
6858 set_gdbarch_skip_trampoline_code.
6859 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6860 from config/rs6000/tm-rs6000.h.
6862 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6864 * buildsym.c (record_producer): Do nothing if no producer is provided.
6866 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6868 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6869 to check changelist is non-NULL. Call error if the frontend tries
6870 to update a non-root variable.
6872 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6874 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6876 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6877 (dwarf2_frame_sniffer): Update.
6878 (dwarf2_signal_frame_this_id): New function.
6879 (dwarf2_signal_frame_unwind): Use it.
6880 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6881 * frame.c (frame_func_unwind): Add this_type argument.
6882 (get_frame_func): Update.
6883 (frame_unwind_address_in_block): Add this_type argument and check it.
6885 (get_frame_address_in_block): Update.
6886 * frame.h (enum frame_type): Move higher in the file.
6887 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6890 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6891 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6892 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6893 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6894 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6895 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6896 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6897 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6898 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6899 frame_func_unwind and frame_unwind_address_in_block to specify
6900 the frame type. Use frame_unwind_address_in_block instead of
6901 frame_pc_unwind in sniffers.
6903 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6905 * frame.c (deprecated_selected_frame): Rename to...
6906 (selected_frame): ...this. Make static.
6907 (get_selected_frame, select_frame): Update.
6908 * frame.h (deprected_select_frame): Delete.
6909 (deprecated_safe_get_selected_frame): Update comments.
6911 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6912 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6913 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6914 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6915 tui/tui.c: Replace references to deprecated_selected_frame.
6917 2007-02-27 Fred Fish <fnf@specifix.com>
6919 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6920 directly decrement the stack pointer, accumulate their operand into
6921 the stack offset, and mark the function as not being frameless.
6923 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6925 * arch-utils.c (selected_byte_order): New.
6926 * arch-utils.h (selected_byte_order): New prototype.
6927 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6929 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6931 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6932 (default_symfile_offsets): Check VMA here. Update section VMAs.
6934 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6936 * remote.c (init_remote_state): Add special handling for placeholder
6939 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6941 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6942 (filenames_h): New variable.
6943 (clean): Clean up xml-builtin.c and stamp-xml.
6944 (arm-linux-nat.o): Update.
6945 * config/arm/linux.mh (TDEP_XML): Define.
6946 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6947 (arm_linux_has_wmmx_registers): New.
6948 (GET_THREAD_ID): Fix typo.
6949 (IWMMXT_REGS_SIZE): Define.
6950 (fetch_wmmx_regs, store_wmmx_regs): New.
6951 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6952 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6953 (super_xfer_partial, arm_linux_xfer_partial): New.
6954 (_initialize_arm_linux_nat): Use them.
6955 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6956 (xml_builtin_xfer_partial): New function.
6957 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6958 * NEWS: Update mention of iWMMXt support.
6960 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6962 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6963 if there are no FPA registers.
6964 (arm_dwarf_reg_to_regnum): New function.
6965 (arm_register_type, arm_register_name): Return minimal values for
6966 unsupported registers.
6967 (arm_register_sim_regno): Handle iWMMXt registers.
6968 (arm_gdbarch_init): Record missing FPA registers if indicated by
6969 a target description. Recognize iWMMXt registers. Only register
6970 "info float" for FPA. Use ARM_NUM_REGS. Register
6971 arm_dwarf_reg_to_regnum.
6972 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6974 (struct gdbarch_tdep): Add have_fpa_registers.
6975 * features/xscale-iwmmxt.xml: Update capitalization.
6976 * regformats/arm-with-iwmmxt.dat: Regenerated.
6978 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6980 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6982 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6984 * MAINTAINERS (mep): New target.
6986 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6988 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6990 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6991 (mep-tdep.o): New rule.
6992 * configure.tgt (mep-*-*): New target.
6993 * mep-tdep.c: New file.
6994 * config/mep/mep.mt: New file.
6996 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6998 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6999 BREAKPOINT_HIT and STOP_UNKNOWN.
7001 2007-02-22 Markus Deuling <deuling@de.ibm.com>
7003 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
7005 2007-02-20 Joel Brobecker <brobecker@adacore.com>
7007 * gdb_expat.h (XMLCALL): Define if not already defined.
7009 2007-02-20 Andreas Schwab <schwab@suse.de>
7011 * Makefile.in (symfile.o): Update dependencies.
7013 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
7015 * MAINTAINERS: Disable -Werror for cris simulator. Build
7016 sparc64-solaris2.10 instead of the broken sparc-elf.
7017 * solib-frv.c: Include "solib.h".
7018 * Makefile.in (solib-frv.o): Update.
7019 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
7020 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
7021 (xtensa_frame_this_id, xtensa_frame_prev_register)
7022 (xtensa_push_dummy_call): Use %p.
7024 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7026 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7027 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
7028 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7029 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
7030 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
7031 (sparc-linux-tdep.o): Update.
7033 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
7035 * xtensa-tdep.h (xtensa_reg_mask_t): New.
7036 (xtensa_mask_t): Change mask field to be a separate array.
7037 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
7038 (xtensa_pseudo_register_write, xtensa_unwind_pc)
7039 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
7040 (xtensa_breakpoint_from_pc): Remove implicit type casting.
7041 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
7042 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
7043 (mask14, mask15): Rename to
7044 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
7045 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
7046 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
7047 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
7048 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
7049 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
7050 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
7051 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
7052 (xtensa_submask14, xtensa_submask15): New.
7053 (rmap): Follow strict aliasing rules doing static initialization.
7055 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
7057 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
7058 handling from here...
7059 (tdesc_register_type): ...to here.
7060 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
7061 * features/arm-core.xml: Use code_ptr and data_ptr.
7063 2007-02-13 Denis Pilat <denis.pilat@st.com>
7065 * varobj.h (enum varobj_update_error): New enum.
7066 * varobj.c (struct varobj_root): Add is_valid member.
7067 (varobj_get_type): Check for invalid varobj.
7068 (varobj_get_attributes): Likewise.
7069 (variable_editable):Likewise.
7070 (varobj_update): Likewise. Use varobj_update_error.
7071 (new_root_variable): Set root varobj as valid by default.
7072 (varobj_invalidate): New function.
7073 * symfile.c (clear_symtab_users): Use varobj_invalidate.
7074 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
7075 Use varobj_update_error.
7077 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
7080 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
7081 Pascal language marker.
7082 * dwarf2read.c (set_cu_language): Likewise.
7084 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
7086 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
7087 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
7088 instead of target_terminal_init since inferior_ptid isn't set yet.
7090 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
7092 * MAINTAINERS (Write After Approval): Add myself.
7094 2007-02-09 Fred Fish <fnf@specifix.com>
7096 Based on work by Apple Computer, Inc.
7097 * event-top.c (async_request_quit): Call quit() whenever either
7098 quit_flag is set or immediate_quit is set.
7100 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7102 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
7103 type to a pointer to const struct block.
7104 (ada_lookup_symbol_list): Don't cast away constness when calling
7105 remove_out_of_scope_renamings.
7107 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7109 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
7110 address of 'filename'; it is always non null.
7112 2007-02-09 Joel Brobecker <brobecker@adacore.com>
7114 * exec.c (add_to_section_table): Do not discard empty sections.
7116 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7118 * features/Makefile, features/arm-with-iwmmxt.xml,
7119 features/gdbserver-regs.xsl, features/number-regs.xsl,
7120 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
7121 * regformats/arm-with-iwmmxt.dat: Generate.
7122 * NEWS: Mention iWMMXt.
7124 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7126 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
7127 (xml-tdesc.o): Update.
7128 * xml-support.c: Add a comment.
7129 (gdb_xml_enums_boolean): New variable.
7130 (gdb_xml_parse_attr_enum): Use strcasecmp.
7131 * xml-support.h (gdb_xml_enums_boolean): Declare.
7132 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
7133 next_regnum, and current_union.
7134 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
7135 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
7136 (field_attributes, union_children, reg_attributes, union_attributes)
7137 (vector_attributes, feature_attributes, feature_children): New.
7138 (target_children): Make static. Add <feature>.
7139 (tdesc_elements): Make static.
7140 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
7141 (struct tdesc_feature, tdesc_feature_p): New types.
7142 (struct target_desc): Add features member.
7143 (struct tdesc_arch_data, tdesc_data): New.
7144 (target_find_description): Clarify error message. Warn about
7145 ignored register descriptions.
7146 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7147 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
7148 (tdesc_data_cleanup, tdesc_numbered_register)
7149 (tdesc_numbered_register_choices, tdesc_find_register)
7150 (tdesc_register_name, tdesc_register_type)
7151 (tdesc_remote_register_number, tdesc_register_reggroup_p)
7152 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
7153 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
7154 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
7155 (tdesc_create_feature, tdesc_record_type): New.
7156 (free_target_description): Free features.
7157 (_initialize_target_descriptions): Initialize tdesc_data.
7158 * arch-utils.c (default_remote_register_number): New.
7159 * arch-utils.h (default_remote_register_number): New prototype.
7160 * target-descriptions.h (set_tdesc_pseudo_register_name)
7161 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
7162 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
7163 (tdesc_numbered_register, tdesc_numbered_register_choices)
7164 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7165 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
7166 (tdesc_create_reg): Declare.
7167 * gdbarch.sh (remote_register_number): New entry.
7168 * gdbarch.c, gdbarch.h: Regenerate.
7169 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
7170 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
7172 * arm-tdep.c (arm_register_aliases): New.
7173 (arm_register_name_strings): Rename to...
7174 (arm_register_names): ...this. Make const. Delete the old version.
7175 (current_option, arm_register_byte): Delete.
7176 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
7177 (value_of_arm_user_reg): New.
7178 (arm_gdbarch_init): Verify any described registers. Call
7179 tdesc_use_registers. Don't use arm_register_byte. Create aliases
7180 for standard register names.
7181 (_initialize_arm_tdep): Do not adjust arm_register_names.
7182 * user-regs.c (struct user_reg): Add baton member.
7183 (append_user_reg, user_reg_add_builtin, user_regs_init)
7184 (user_reg_add, value_of_user_reg): Use a baton for user
7186 * std-regs.c: Update.
7187 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
7188 (user_reg_add): Add baton argument.
7189 * NEWS: Mention target description register support.
7190 * features/arm-core.xml, features/arm-fpa.xml: New.
7191 * eval.c (evaluate_subexp_standard): Allow ptype $register
7192 when the program is not running.
7194 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
7196 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
7198 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7200 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
7201 info->disassembler_options to "any".
7203 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7205 * varobj.c (install_new_value): Only call value_get_print_value
7208 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7210 Reported by timeless@gmail.com:
7211 * gdb/target.c (target_flash_erase): Do not return void value.
7212 (target_flash_done): Likewise.
7213 * gdb/cli/cli-cmds.c (source_command): Likewise.
7215 2007-02-08 Fred Fish <fnf@specifix.com>
7217 Based on work by Apple Computer, Inc.
7218 * event-top.c (handle_sigint): Set quit_flag.
7219 (async_request_quit): Don't set quit_flag. Avoid calling quit()
7220 if quit_flag has already been reset.
7222 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7224 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7227 2007-02-08 Fred Fish <fnf@specifix.com>
7229 * defs.h (request_quit): Remove declaration.
7230 * utils.c (request_quit): Remove definition.
7232 2007-02-08 Joel Brobecker <brobecker@gnat.com>
7233 Jan Kratochvil <jan.kratochvil@redhat.com>
7234 Daniel Jacobowitz <dan@codesourcery.com>
7236 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7237 (skip_prologue): Allow bl->blrl used by PIC code.
7239 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7240 Daniel Jacobowitz <dan@codesourcery.com>
7242 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7243 initialize tmp_obstack.
7244 * p-valprint.c (pascal_object_print_value_fields)
7245 (pascal_object_print_value): Likewise.
7247 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7249 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7251 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7253 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7254 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7256 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7258 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7260 (tdesc_parse_xml): Cache expanded descriptions.
7262 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7264 * Makefile.in (XMLFILES): New.
7265 (COMMON_OBS): Add xml-builtin.o.
7266 (xml-builtin.c, stamp-xml): New rules.
7267 (xml-tdesc.o): Update.
7268 * features/feature_to_c.sh: New file.
7269 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7270 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7271 (gdb_xml_start_element): Initialize scope after possibly reallocating
7272 scopes. Move cleanup later. Handle the XInclude description
7274 (gdb_xml_end_element): Only parse the body if there is a current element.
7275 Call XML_DefaultCurrent if there is no element.
7276 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7277 (struct xinclude_parsing_data, xinclude_start_include)
7278 (xinclude_end_include, xml_xinclude_default)
7279 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7280 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7281 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7282 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7283 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7284 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7285 XInclude directives. Use the compiled in DTD.
7286 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7287 directory name. Do not warn here.
7288 (file_read_description_xml): Update call. Warn here instead. Pass
7290 (fetch_available_features_from_target): New.
7291 (target_read_description_xml): Use it.
7292 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7294 * features/xinclude.dtd: New file.
7296 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7298 * linux-thread-db.c (check_for_thread_db): Return early if we have
7299 no libthread_db support.
7301 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7303 * mi/mi-parse.h: Include <sys/time.h>.
7305 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
7307 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7308 instead of print_variable_value to print values.
7310 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7312 * mi/mi-main.c: Numerous formatting changes.
7313 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7314 removed in my previous change.
7316 2007-02-03 Eli Zaretskii <eliz@gnu.org>
7318 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7319 Use 1000000L instead of 1000000.
7321 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7323 Based on work by Apple Computer, Inc.
7325 * configure.ac: Test for sys/resource.h and getrusage.
7326 * configure, config.in: Regenerate.
7328 * mi/mi-main.c: Include <sys/resource.h> if present.
7329 (rusage): Declare if HAVE_GETRUSAGE.
7330 (current_command_ts, do_timings): New static variables.
7331 (timestamp, print_diff_now, print_diff, timeval_diff):
7332 New static timing functions.
7333 (mi_cmd_enable_timings): New function for new MI command.
7334 (captured_mi_execute_command, mi_execute_async_cli_command):
7335 Call timing functions.
7337 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7340 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7342 * mi/mi-parse.h: (mi_timestamp): New structure.
7343 (mi_parse): Add mi_timestamp* member.
7345 2007-02-02 Denis Pilat <denis.pilat@st.com>
7347 * thread.c (make_cleanup_restore_current_thread): New function.
7348 (info_threads_command): Use of make_cleanup_restore_current_thread
7349 to restore the current thread and the selected frame.
7350 (restore_selected_frame): New function.
7351 (struct current_thread_cleanup): Add frame_id field.
7352 (do_restore_current_thread_cleanup): Add restoring of the selected
7354 (make_cleanup_restore_current_thread): Likewise.
7355 (thread_apply_all_command): backup the selected frame while
7356 entering the function and restore it at exit.
7357 (thread_apply_command): Likewise.
7359 2007-02-02 Denis Pilat <denis.pilat@st.com>
7361 * MAINTAINERS (Write After Approval): Add myself to the list.
7363 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7365 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7366 (m32r_store_register): Ditto.
7368 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7370 * ser-mingw.c (pipe_windows_open)
7371 (pipe_windows_read, pipe_windows_write): Declare
7372 variables at the top of the function.
7374 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7376 * doublest.c (floatformat_from_length): Use the right element from
7377 gdbarch floatformats.
7378 (floatformat_from_type, extract_typed_floating)
7379 (store_typed_floating): Likewise.
7380 * doublest.h: Remove declarations for undefined floatformat arrays.
7381 * gdbarch.sh (float_format, double_format, long_double_format): Change
7383 (pformat): Update for pairs.
7384 * gdbarch.c, gdbarch.h: Regenerated.
7385 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7386 (floatformats_ieee_double_littlebyte_bigword)
7387 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7388 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7389 (floatformats_vax_d): New variables.
7390 (builtin_type_ieee_single, builtin_type_ieee_double)
7391 (builtin_type_arm_ext, builtin_type_ia64_spill)
7392 (builtin_type_ia64_quad): Replace arrays with individual types.
7393 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7394 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7395 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7396 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7397 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7398 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7399 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7400 unused and endian-specific types.
7401 (recursive_dump_type): Update for floatformat pairs.
7402 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7403 (build_gdbtypes): Use build_flt.
7404 (_initialize_gdbtypes): Update set of initialized types.
7405 * gdbtypes.h: Update declarations to match gdbtypes.c.
7406 (struct main_type): Store a pointer to two floatformats.
7407 * arch-utils.c (default_float_format, default_double_format): Delete.
7408 * arch-utils.h (default_float_format, default_double_format): Delete.
7410 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7411 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7412 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7413 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7414 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7416 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7418 * target.c (maintenance_print_target_stack): New function.
7419 (initialize_targets): Add new "maintenance print target-stack"
7422 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7424 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7426 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7428 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7429 (struct dwarf2_loclist_baton): Likewise.
7431 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7433 * cli/cli-script.c: Include breakpoint.h.
7434 (build_command_line): Require arguments only for if and while
7436 (get_command_line, execute_user_command, execute_control_command):
7437 Fix wording of warning messages.
7438 (print_command_lines): Print breakpoint commands.
7439 (execute_control_command): Call commands_from_control_command to
7440 handle the `commands' command inside a body of a flow-control
7442 (read_next_line): Recognize the `commands' command and build a
7443 command line structure for it.
7444 (recurse_read_control_structure, read_command_lines): Handle
7445 `commands' similarly to `if' and `while'.
7447 * breakpoint.c (get_number_trailer): Document the special meaning
7448 of NULL as the first argument PP.
7449 (commands_from_control_command): New function.
7451 * breakpoint.h (commands_from_control_command): Add prototype.
7453 * defs.h (commands_control): New enumerated value for enum
7454 command_control_type.
7456 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7458 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7459 (ada_exception_sal): Update accordingly.
7461 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7463 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7464 * NEWS: Describe CHAR array vs. string identifcation rules.
7466 2007-01-25 Paul Brook <paul@codesourcery.com>
7468 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7470 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7472 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7473 expression is empty, bother to return the 'optimized out' value we
7474 construct. (Thanks to Carl Burch.)
7476 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7478 * varobj.c (c_value_of_root, c_value_of_child)
7479 (cplus_describe_child): Don't call release_value.
7481 2007-01-24 Thiemo Seufer <ths@mips.com>
7483 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7486 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7488 Refactor getting children name, value and type access
7490 * varobj.c (get_type_deref): Remove.
7491 (adjust_value_for_child_access): New.
7492 (c_number_of_children): Use the above.
7493 (c_describe_child): Likewise.
7494 (enum accessibility): New.
7495 (match_accessibility): New function.
7496 (cplus_describe_child): New function.
7497 (cplus_name_of_child, cplus_value_of_child)
7498 (cplus_type_of_child): Reimplement in terms
7499 of cplus_describe_child.
7500 (cplus_number_of_children): Use
7501 adjust_value_for_child_access.
7503 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7505 Fix computation of the 'editable' attribute and
7506 value changeability for for references.
7507 * varobj.c (get_value_type): New function.
7508 (c_variable_editable): Use get_value_type.
7509 (varobj_value_is_changeable): Likewise.
7511 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7513 * source.c (find_and_open_source): Try rewriting the source
7514 path inside filename if dirname is NULL.
7516 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7518 * dwarf2read.c (add_partial_symbol): Create an extra partial
7519 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7520 (new_symbol): Likewise for symbols.
7522 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7524 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7526 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7528 * value.c (value_primitive_field): Copy the full 'location'
7529 contents, instead of assuming that copying ADDRESS will
7530 bring over everything in the union. Remove obsolete comment.
7532 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7534 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7535 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7536 (m32c_m16c_pointer_to_address): Separate code from declarations.
7538 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7540 * target.c (update_current_target): Correct typo.
7542 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7544 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7547 2007-01-11 Andrew Cagney <cagney@redhat.com>
7548 Daniel Jacobowitz <dan@codesourcery.com>
7549 Jan Kratochvil <jan.kratochvil@redhat.com>
7551 * dwarf2-frame.c (execute_cfa_program): New support of
7552 `DW_CFA_GNU_negative_offset_extended'.
7554 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7556 * NEWS: Mention flash support for "load" and new remote packets.
7558 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7560 * breakpoint.c (delete_command): Skip redundant loop iterations.
7562 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7564 * gdbarch.sh (register_type): Update comment.
7565 * gdbarch.h: Regenerated.
7566 * arch-utils.c (generic_register_size): Call register_type.
7567 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7568 * m32c-tdep.c (check_for_saved): Likewise.
7569 * mips-tdep.c (mips_print_register, print_gp_register_row)
7570 (mips_print_registers_info): Likewise.
7571 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7573 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7574 (sh64_do_register, sh64_print_register)
7575 (sh64_media_print_registers_info): Likewise.
7576 * tui/tui-regs.c (tui_register_format): Likewise.
7578 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7580 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7582 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7583 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7584 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7585 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7586 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7587 (make_symbol_completion_list): Likewise.
7589 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7590 Daniel Jacobowitz <dan@codesourcery.com>
7592 * buildsym.c (end_symtab): Use preallocated symtab if available.
7593 Fill in SYMBOL_SYMTAB.
7594 * buildsym.h (struct subfile): Add symtab member.
7595 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7596 (struct file_entry): Add symtab.
7597 (free_cu_line_header): New function.
7598 (read_file_scope): Use it. Save line_header in the cu. Process
7600 (add_file_name): Initialize new symtab member.
7601 (dwarf_decode_lines): Create symtabs for included files.
7602 (new_symbol): Set SYMBOL_SYMTAB.
7603 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7604 (search_symbols): Likewise.
7605 * symtab.h (struct symbol): Add symtab member.
7606 (SYMBOL_SYMTAB): Define.
7608 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7610 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7612 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7614 * arch-utils.c (show_endian): Correct reversed condition.
7616 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7618 * MAINTAINERS (Write After Approval): Add myself.
7620 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7621 Vladimir Prus <vladimir@codesourcery.com>
7623 Fix 'selected frame' varobjs.
7624 * varobj.c (struct varobj): Remove the error field.
7625 (varobj_set_value): Don't check var->error.
7626 (install_new_value): Don't set var->error.
7627 (varobj_update): Always pass the new value
7628 of the root via install_new_value.
7629 (create_child): Don't set error field.
7630 (new_variable): Likewise.
7631 (c_value_of_root): Always reevaluate the value
7632 of selected frame varobjs in the selected frame.
7633 Don't call reinit_frame_cache.
7635 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7637 * source.c (_initialize_source): Improve the help text of
7638 the substitute-path commands.
7640 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7642 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7643 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7644 (frv_skip_prologue): Remove prototypes.
7645 (frv_adjust_breakpoint_address): Renamed from
7646 frv_gdbarch_adjust_breakpoint_address.
7647 (frv_gdbarch_init): Adjust.
7649 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7651 * gdbarch.sh (deprecated_extract_return_value)
7652 (deprecated_store_return_value): Remove.
7653 (extract_return_value, store_return_value): Remove default values.
7654 * gdbarch.c, gdbarch.h: Regenerate.
7655 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7656 (legacy_store_return_value): Remove.
7657 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7660 * mi/mi-main.c: Remove obsolete comment.
7662 * regcache.c, regcache.h (deprecated_register_bytes)
7663 (deprecated_read_register_bytes)
7664 (deprecated_write_register_bytes): Remove.
7666 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7667 Don't forget to move destination pointer.
7669 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7671 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7673 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7675 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7676 past entry function with recent newlib.
7678 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7680 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7681 introduction. Specify -var-update more exactly.
7683 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7685 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7687 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7689 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7690 the Global Maintainers' invitation to be a global maintainer.
7692 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7694 * infrun.c (singlestep_pc): New variable.
7695 (resume): Set singlestep_pc.
7696 (context_switch): Add a debugging message. Flush the frame cache.
7697 (handle_inferior_event): Add debugging messages. Handle thread
7698 hops when a software single step has completed. Let context_switch
7699 handle flushing the frame cache.
7701 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7703 * NEWS: Mention target descriptions, "set tdesc filename",
7704 "unset tdesc filename", "show tdesc filename", and
7705 qXfer:features:read.
7706 * arch-utils.c (choose_architecture_for_target): New function.
7707 (gdbarch_info_fill): Call it.
7708 * target-descriptions.c (struct property): Make members non-const.
7709 (struct target_desc): Add arch member.
7710 (target_description_filename): New variable.
7711 (target_find_description): Try via XML first.
7712 (tdesc_architecture): New.
7713 (free_target_description, make_cleanup_free_target_description): New.
7714 (set_tdesc_property): Call xstrdup.
7715 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7716 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7717 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7718 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7719 * target-descriptions.h (tdesc_architecture)
7720 (make_cleanup_free_target_description, set_tdesc_architecture): New
7722 * Makefile.in (SFILES): Add xml-tdesc.c.
7723 (COMMON_OBS): Add xml-tdesc.o.
7724 (target-descriptions.o): Update.
7725 (xml-tdesc.o): New rule.
7726 * xml-tdesc.c, xml-tdesc.h: New files.
7727 * remote.c (PACKET_qXfer_features): New enum.
7728 (remote_protocol_features): Add qXfer:features:read.
7729 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7730 (_initialize_remote): Register qXfer:features:read.
7731 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7732 * features/gdb-target.dtd: New file.
7734 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7736 * copyright.sh: Clarify error.
7738 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7740 * symtab.c (matching_bfd_sections): Fix VMA matching for
7743 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7745 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7748 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7750 Updated copyright notices for most files.
7752 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7754 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7756 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7758 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7760 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7762 * configure, config.in: Regenerate.
7763 * defs.h (debug_file_directory): Declare.
7764 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7765 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7766 relocate it if DEBUGDIR_RELOCATABLE.
7767 * symfile.c (debug_file_directory): Make non-static.
7768 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7769 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7770 (_initialize_symfile): Don't initialize debug_file_directory here.
7772 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7774 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7777 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7779 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7780 frame_unwind_register to recurse.
7781 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7782 (alpha_heuristic_frame_prev_register): Likewise.
7783 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7784 * m32c-tdep.c (m32c_prev_register): Likewise.
7785 * frame.c (frame_register_unwind_location): Remove FIXME.
7787 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7788 Eli Zaretskii <eliz@gnu.org>
7790 * copyright.sh: New file.
7792 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7794 * configure.ac: Check for XML_StopParser.
7795 * xml-support.c (gdb_xml_body_text): Check for an error.
7796 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7797 (gdb_xml_end_element_wrapper): Likewise.
7798 * config.in, configure: Regenerated.
7800 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7802 * varobj.c (install_new_value): Always update print_value.
7803 (value_get_print_value): Immediately return NULL for missing
7806 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7808 * configure.ac: Tighten pattern for extracting value of
7809 DEPRECATED_TM_FILE from the target makefile fragment.
7810 * configure: Regenerated.
7812 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7814 * linux-nat.c (struct simple_pid_list): Add status.
7815 (add_to_pid_list): Record the PID's status.
7816 (linux_record_stopped_pid): Likewise. Make static.
7817 (pull_pid_from_list): Return the saved status.
7818 (linux_nat_handle_extended): Deleted.
7819 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7820 Make static. Handle non-SIGSTOP for a new thread's first signal.
7821 (flush_callback): Handle unexpected pending signals.
7822 (linux_nat_wait): Update calls to changed functions.
7823 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7824 Remove prototypes for newly static functions.
7826 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7828 * gdbarch.sh (value_from_register): New gdbarch function.
7829 * gdbarch.c, gdbarch.h: Regenerate.
7830 * findvar.c (default_value_from_register): New function.
7831 (value_from_register): Use gdbarch_value_from_register.
7832 * value.h (default_value_from_register): Declare.
7833 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7834 spu_value_to_register): Remove.
7835 (spu_value_from_register): New function.
7836 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7837 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7838 Call set_gdbarch_value_from_register.
7839 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7840 s390_value_to_register): Remove.
7841 (s390_value_from_register): New function.
7842 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7843 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7844 Call set_gdbarch_value_from_register.
7846 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7848 * NEWS: Add "set sysroot" and "show sysroot".
7849 * solib.c (solib_absolute_prefix): Delete. Replace
7850 all uses with gdb_sysroot.
7851 (_initialize_solib): Add "set sysroot" and "show sysroot".
7852 Make "solib-absolute-prefix" an alias to it.
7854 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7856 * frame.c (get_frame_register_bytes): New function.
7857 (put_frame_register_bytes): Likewise.
7858 * frame.h (get_frame_register_bytes): Declare.
7859 (put_frame_register_bytes): Likewise.
7860 * findvar.c (value_from_register): Always construct lval_register
7861 values. Use get_frame_register_bytes.
7862 * valops.c (value_assign): Use get_frame_register_bytes and
7863 put_frame_register_bytes.
7865 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7867 * MAINTAINERS: Update Stan Shebs' email address.
7869 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7871 * ada-lang.c (is_known_support_routine): Improve the implementation.
7873 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7875 * ada-lang.c: Add include of source.h.
7876 (is_known_support_routine): Improve the check verifying that the file
7877 associated to this frame exists.
7878 * Makefile.in (ada-lang.o): Add dependency on source.h.
7880 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7882 * ax-general.c (ax_const_l): Select proper opcode for the given
7885 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7887 * varobj.c (c_value_of_root): Don't select frame if variable
7888 object is out of scope.
7890 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7892 * varobj.c (struct varobj): New member print_value.
7893 (install_new_value): Compare last printed value with current one
7894 instead of contents.
7895 (new_variable): Initialize var->print_value to NULL.
7896 (free_variable): Free var->print_value.
7897 (value_get_print_value): New function derived from
7898 c_value_of_variable.
7899 (c_value_of_variable): Use value_get_print_value.
7901 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7903 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7905 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7907 * NEWS: Add entries for new catch commands.
7909 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7911 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7912 (add_partial_symbol): Correct identification of external references.
7913 (process_structure_scope): Likewise.
7914 (read_partial_die): Handle DW_AT_byte_size attribute.
7916 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7918 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7920 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7922 * varobj.c (get_type_deref): Fix variable objects for references to
7925 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7927 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7930 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7932 * memory-map.c (struct_memory_map_parsing_data): Remove most
7933 members. Make property_name an array.
7934 (free_memory_map_parsing_data, memory_map_start_element)
7935 (memory_map_end_element, memory_map_character_data): Delete.
7936 (memory_map_start_memory, memory_map_end_memory)
7937 (memory_map_start_property, memory_map_end_property): New functions.
7938 (property_attributes, memory_children, memory_type_enum)
7939 (memory_attributes, memory_map_children, memory_map_elements): New.
7940 (parse_memory_map): Rewrite.
7941 * xml-support.c (debug_xml): New.
7942 (xml_get_required_attribute, xml_get_integer_attribute)
7943 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7945 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7946 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7947 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7948 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7949 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7950 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7951 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7953 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7954 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7955 (enum gdb_xml_element_flag, struct gdb_xml_element)
7956 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7957 (struct gdb_xml_enum): New.
7958 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7959 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7960 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7961 (xml_get_required_attribute, xml_get_integer_attribute)
7962 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7963 * Makefile.in (xml_support_h, xml-support.o): Update.
7965 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7967 * Makefile.in (eval.o): Update dependencies.
7968 * eval.c: Include "ui-out.h" and "exceptions.h".
7969 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7970 Use value_zero if an error occurs when avoiding side effects.
7971 * varobj.c (c_value_of_root): Initialize new_val.
7973 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7975 * varobj.c (varobj_list_children): Stop if the number of children is
7977 (c_number_of_children):
7979 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7981 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7982 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7983 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7984 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7985 sizeof, instead of hardcoded constants.
7987 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7989 * CONTRIBUTE: Use sourceware.org.
7991 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7993 * buildsym.c (start_subfile): Handle producer.
7994 (record_producer): New function.
7995 * buildsym.h (struct subfile): Include producer.
7996 (record_producer): New prototype.
7997 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7998 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7999 armcc_cfa_offsets_reversed.
8000 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
8001 (dwarf2_frame_find_quirks): New function.
8002 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
8003 (decode_frame_entry_1): Record the CIE version. Record the
8004 augmentation. Skip armcc augmentations.
8005 * dwarf2read.c (read_file_scope): Save the producer.
8006 * symtab.h (struct symtab): Rename unused version member to
8009 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8011 * configure.ac (build_warnings): Use -Wall and
8012 -Wdeclaration-after-statement.
8013 * configure: Regenerated.
8015 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8017 Simplify access to variours properties of child
8018 variable objects in C.
8019 * varobj.c (value_struct_element_index): New function.
8020 (c_describe_child): New function.
8021 (c_name_of_child, c_value_of_child)
8022 (c_type_of_child): Rewrite to use c_describe_child.
8024 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8027 * varobj.c: Include "vec.h".
8028 (varobj_p): New typedef, declare vector of those.
8029 (struct varobj): Use vector for the 'children' member.
8030 (child_exists): Remove.
8031 (save_child_in_parent): Remove.
8032 (remove_child_from_parent): Remove.
8033 (struct varobj_child): Remove.
8034 (struct vstack): Remove.
8035 (vpush, vpop): Remove.
8036 (varobj_list_children): Adjust to work work vector.
8037 (varobj_update): Likewise. Use vectors for
8038 working stack and result.
8039 (delete_variable_1): Likewise.
8040 * Makefile.in (varobj.o): Update dependencies.
8042 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8044 Port from Apple's version.
8046 * varobj.c (type_changeable): Rename to...
8047 (varobj_value_is_changeable_p): ...this. Adjust all callers.
8048 (is_root_p): New function. Use it everywhere.
8050 2007-01-04 Jim Blandy <jimb@codesourcery.com>
8052 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
8055 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8057 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
8059 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8061 * hpread.c (hpread_type_lookup): Fix compilation failure.
8063 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
8065 * NEWS: New port to S+core.
8066 * MAINTAINERS (Write After Approval, Responsible Maintainers):
8069 * Makefile.in: Add dependencies for S+core files.
8070 * configure.tgt (score*, score-*-*): Add S+core target.
8071 * config/score/embed.mt: New file.
8072 * score-tdep.c: New file.
8073 * score-tdep.h: New file.
8075 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8077 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
8078 the appropriate type rather than a bogus void type.
8080 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8082 * ada-lang.h (ada_find_printable_frame): Remove.
8083 (ada_exception_catchpoint_p, ada_decode_exception_location)
8084 (ada_decode_assert_location): Add declaration.
8085 * ada-lang.c: Add include of annotate.h and valprint.h.
8086 (exception_catchpoint_kind): New enum.
8087 (function_name_from_pc, is_known_support_routine)
8088 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
8089 (ada_exception_name_addr_1, ada_exception_name_addr)
8090 (print_it_exception, print_one_exception, print_mention_exception)
8091 (print_it_catch_exception, print_one_catch_exception)
8092 (print_mention_catch_exception, catch_exception_breakpoint_ops)
8093 (print_it_catch_exception_unhandled)
8094 (print_one_catch_exception_unhandled)
8095 (print_mention_catch_exception_unhandled, print_it_catch_assert)
8096 (print_one_catch_assert, print_mention_catch_assert)
8097 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
8098 (ada_get_next_arg, catch_ada_exception_command_split)
8099 (ada_exception_sym_name, ada_exception_sym_name)
8100 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
8101 (ada_parse_catchpoint_condition, ada_exception_sal)
8102 (ada_decode_exception_location)
8103 (ada_decode_assert_location): New function.
8104 (catch_exception_unhandled_breakpoint_ops): New global variable.
8105 (catch_assert_breakpoint_ops): New global variable.
8106 * breakpoint.c: Add include of ada-lang.h.
8107 (print_one_breakpoint): Do not print the condition for Ada
8108 exception catchpoints.
8109 (create_ada_exception_breakpoint): New function.
8110 (catch_ada_exception_command, catch_assert_command): New function.
8111 (catch_command_1): Add support for the new "catch exception" and
8112 "catch assert" commands.
8113 (_initialize_breakpoint): Add help description for the new catch
8115 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
8117 (breakpoint.o): Add dependency on ada-lang.h.
8119 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
8121 * coffread.c (cs_to_section): If bfd_section is found, always
8122 return its section index.
8123 (coff_symtab_read): Determine the minimal_symbol_type using the
8126 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8127 Daniel Jacobowitz <dan@codesourcery.com>
8129 * Makefile.in (top.o): Update.
8130 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
8131 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
8132 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
8134 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
8136 2007-01-03 Mark Kettenis <kettenis@gnu.org>
8138 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
8139 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
8141 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8143 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
8144 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
8145 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
8146 greater than or equal to zero.
8147 * m2-typeprint.c (m2_array): Likewise.
8148 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
8149 * gdbtypes.c (copy_type_recursive): Correct == typo.
8150 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
8151 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
8153 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
8154 (default_macro_scope): Remove unused variable.
8155 * prologue-value.h (pv_area_find_reg): Don't name an argument
8157 * remote-fileio.c (remote_fio_func_map): Add missing braces.
8158 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
8160 (cleanup_sigint_signal_handler): Remove casts.
8161 * valprint.c (val_print): Use a volatile local for the modified
8163 * varobj.c (languages): Remove extra array dimension.
8164 (varobj_create): Correct access to languages array.
8165 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
8167 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
8168 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
8169 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
8170 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
8171 (mi_cmd_data_write_memory): Likewise.
8172 * signals/signals.c (target_signal_to_string): Cast to int before
8174 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
8177 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8179 * NEWS: Mention pointer to member improvements.
8180 * Makefile.in (gnu-v3-abi.o): Delete special rule.
8181 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
8182 * ada-valprint.c (ada_print_scalar): Update for new type codes.
8183 * c-typeprint.c (c_print_type): Update for new type codes.
8184 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
8185 (c_type_print_base): Likewise.
8186 (c_type_print_args): Rewrite.
8187 * c-valprint.c (c_val_print): Update for new type codes. Remove
8188 support for references to members. Treat methods like functions.
8189 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
8190 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
8191 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
8192 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
8193 (struct cp_abi_ops): Add corresponding members.
8194 * cp-valprint.c (cp_print_class_method): Delete.
8195 (cp_find_class_member): New function.
8196 (cp_print_class_member): Use it. Simplify support for bogus
8198 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
8199 lookup_methodptr_type.
8200 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
8201 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
8202 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
8204 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
8205 references returned by user defined operators.
8206 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
8207 (f_type_print_varspec_suffix): Remove support for member pointers.
8208 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
8210 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
8211 (lookup_methodptr_type): New.
8212 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
8213 (recursive_dump_type): Update for new types.
8214 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
8215 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
8216 (lookup_memberptr_type, lookup_methodptr_type)
8217 (smash_to_memberptr_type): New prototypes.
8218 (smash_to_method_type): Formatting fix.
8219 (lookup_member_type, smash_to_member_type): Delete prototypes.
8220 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
8221 Do not rely on debug information for the vptr or the method's
8222 enclosing type. Handle function descriptors for IA64.
8223 (gnuv3_virtual_fn_field): Rewrite using the new functions.
8224 (gnuv3_find_method_in, gnuv3_print_method_ptr)
8225 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8226 (gnuv3_method_ptr_to_value): New.
8227 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8228 * hpread.c (hpread_type_lookup): Update for new types.
8229 * infcall.c (value_arg_coerce): Likewise.
8230 * m2-typeprint.c (m2_print_type): Remove explicit support
8231 for member pointers.
8232 * m2-valprint.c (m2_val_print): Likewise.
8233 * p-typeprint.c (pascal_type_print_varspec_prefix)
8234 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8235 * p-valprint.c (pascal_val_print): Likewise.
8236 (pascal_object_print_class_method, pascal_object_print_class_member):
8238 * p-lang.h (pascal_object_print_class_method)
8239 (pascal_object_print_class_member): Delete prototypes.
8240 * stabsread.c (read_type): Update for new types.
8241 * typeprint.c (print_type_scalar): Likewise.
8242 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8243 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8244 argument. Construct a pointer to member if the address of a
8245 function or data member is requested.
8246 (value_cast_pointers): Don't modify the input value.
8247 (value_cast): Adjust pointer to member handling for new types.
8248 Allow null pointer to member constants. Don't modify the input
8250 (value_ind): Remove pointer to member check. Handle function
8251 descriptors for function pointers.
8252 (value_struct_elt, value_find_oload_method_list, check_field):
8253 Remove pointer to member checks.
8254 * value.c (unpack_long): Allow pointers to data members.
8255 (value_from_longest): Allow member pointers.
8256 * value.h (value_aggregate_elt): Add want_address.
8257 * varobj.c (c_variable_editable): Remove check for members.
8258 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8259 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8261 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8262 * c-lang.h (cp_print_class_method): Delete prototype.
8263 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8264 * mips-tdep.c (mips_gdbarch_init): Likewise.
8265 * gdbarch.c, gdbarch.h: Regenerated.
8267 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8269 * rs6000-tdep.c (rs6000_use_struct_convention)
8270 (rs6000_extract_return_value, rs6000_store_return_value)
8271 (rs6000_extract_struct_value_address): Remove.
8272 (rs6000_return_value): New function.
8273 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8274 store_return_value, deprecated_extract_struct_value_address and
8275 deprecated_use_struct_convention. Use rs6000_return_value
8278 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
8280 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8281 -display-disable, -display-enable, -display-insert and
8284 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8286 * breakpoint.c (remove_breakpoint): Remove dead code.
8288 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
8290 * varobj.c: Include block.h.
8291 (c_value_of_root): Check scope within nested statements.
8293 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8295 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8296 regcache_cooked_write_signed instead of
8297 deprecated_write_register_bytes.
8299 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8301 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8303 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8305 Followed the Start of New Year Procedure:
8306 * ChangeLog-2006: New file, containing all the entries for 2006.
8307 * ChangeLog: Removed all 2006 entries, and changed the reference
8308 to the previous ChangeLog to point to ChangeLog 2006.
8309 * top.c (print_gdb_version): Update copyright year.
8311 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8313 * Makefile.in (remote-sds.o): Remove.
8314 * remote-sds.c: Delete.
8316 For older changes see ChangeLog-2006.
8322 version-control: never