1 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
4 bof, and nat0-nat127 as pseudo-registers.
5 (ia64_frame_cache): New struct used to cache frame info.
6 (ia64_register_reggroup_p): New routine used to override default
7 register grouping so registers without names are still saved and
9 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
11 (ia64_pseudo_register_read): New routine to read pseudo-registers.
12 (ia64_pseudo_register_write): New routine to write pseudo-registers.
13 (ia64_alloc_frame_cache): New routine to create a new
15 (examine_prologue): Change prototype to add next_frame pointer.
16 Assume frameless until otherwise proven. Verify that the cfm for
17 current frame matches the cfm that should occur for the prologues
18 alloc insn and if equal, mark as not frameless. At end of routine,
19 if not frameless, calculate registers for the previous frame and store
20 in the cache, if a cache is provided.
21 (ia64_skip_prologue): Use new prototype when calling examine_prologue
22 and pass 0 for next_frame.
23 (ia64_store_return_value): Change to use convert_typed_floating()
24 instead of calling ia64_convert_to_raw().
25 (ia64_extract_return_value): Change to use convert_typed_floating()
26 instead of calling ia64_convert_to_virtual().
27 (ia64_frame_cache): New routine to support new frame model.
28 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
29 (ia64_frame_sniffer): Ditto.
30 (ia64_sigtramp_frame_init_saved_regs): Ditto.
31 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
32 (ia64_sigtramp_frame_prev_register): Ditto.
33 (ia64_sigtramp_frame_sniffer): Ditto.
34 (ia64_frame_base_address): Ditto.
35 (ia64_extract_struct_value_address): Change to issue error message.
36 (ia64_frame_align): New routine to align sp.
37 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
38 (ia64_push_arguments): Removed. Logic moved to
39 ia64_push_dummy_call().
40 (ia64_push_return_address): Ditto.
41 (ia64_unwind_dummy_id): New function.
42 (ia64_unwind_pc): Ditto.
43 (ia64_convert_register_p): Ditto.
44 (ia64_register_to_value): Ditto.
45 (ia64_value_to_register): Ditto.
46 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
47 (ia64_register_byte, ia64_register_raw_size): Ditto.
48 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
49 (ia64_saved_pc_after_call): Ditto.
50 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
51 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
52 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
53 (ia64_register_convert_to_raw): Ditto.
54 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
55 (ia64_init_extra_frame_info): Ditto.
56 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
57 (ia64_gdbarch_init): Remove registering of deprecated functions that
58 are no longer used. Add registration of new gdbarch functions.
59 Remove registering deprecated_write_sp. Replace
60 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
61 Delete set_gdbarch_deprecated_register_convertible(),
62 set_gdbarch_deprecated_register_convert_to_virtual(), and
63 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
64 set_gdbarch_deprecated_register_size(),
65 set_gdbarch_deprecated_register_bytes(),
66 set_gdbarch_pcregnum(),
67 set_gdbarch_deprecated_register_byte(),
68 set_gdbarch_deprecated_register_raw_size(),
69 set_gdbarch_deprecated_max_register_raw_size(),
70 set_gdbarch_deprecated_register_virtual_size(),
71 and set_gdbarch_deprecated_max_register_virtual_size() calls.
72 Replace set_gdbarch_deprecated_extract_return_value() with
73 set_gdbarch_extract_return_value(). Remove calls to:
74 set_gdbarch_deprecated_saved_pc_after_call();
75 set_gdbarch_deprecated_frame_chain(),
76 set_gdbarch_deprecated_frame_saved_pc(),
77 set_gdbarch_deprecated_frame_init_saved_regs(),
78 set_gdbarch_deprecated_get_saved_register(),
79 set_gdbarch_deprecated_call_dummy_words(),
80 set_gdbarch_deprecated_sizeof_call_dummy_words(),
81 set_gdbarch_deprecated_init_extra_frame_info(),
82 set_gdbarch_deprecated_frame_args_address(),
83 set_gdbarch_deprecated_frame_locals_address(),
84 and set_gdbarch_deprecated_dummy_write_sp().
85 Add set_gdbarch_convert_register_p(),
86 set_gdbarch_register_to_value(),
87 set_gdbarch_value_to_register(),
88 set_gdbarch_push_dummy_call(),
89 set_gdbarch_frame_align(),
90 set_gdbarch_unwind_dummy_id(),
91 set_gdbarch_unwind_pc(),
92 frame_unwind_append_sniffer(),
93 frame_unwind_append_sniffer(),
94 and frame_base_set_default().
96 2003-08-25 Chris Demetriou <cgd@broadcom.com>
98 * configure.tgt: Document need for special "mipsisa64" handling.
99 (mipsisa64*-*-linux64): Handle as target linux64.
100 (mipsisa64*-*-*): Handle as target embed64.
102 2003-08-18 Michael Chastain <mec@shout.net>
104 * PROBLEMS: Document pr gdb/1322, the Java anonymous
107 2003-08-24 Mark Kettenis <kettenis@gnu.org>
109 * i387-tdep.h: Update copyright date.
110 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
112 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
113 CFLAGS games to reflect reality.
115 2003-08-24 Andrew Cagney <cagney@redhat.com>
117 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
118 GDB_MULTI_ARCH is always non-zero.
119 * osabi.c (_initialize_gdb_osabi): Ditto.
120 (gdbarch_init_osabi): Ditto.
121 * sparc-tdep.c: Ditto for #if code.
123 2003-08-23 Mark Kettenis <kettenis@gnu.org>
125 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
127 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
129 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
130 x86_64_supply_fxsave.
131 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
132 x86_64_supply_fxsave.
133 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
134 x86_64_supply_fxsave.
136 2003-08-23 Andreas Jaeger <aj@suse.de>
138 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
141 2003-08-23 Mark Kettenis <kettenis@gnu.org>
143 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
144 i387_supply_register.
145 (go32_fetch_registers): Adjust call to i387_supply_fsave.
146 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
148 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
150 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
152 * i386bsd-nat.c (supply_fpregset): Adjust call to
154 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
155 call to i387_supply_fxsave. Call i387_supply_fsave instead of
157 (store_inferior_registers): Remove extraneous whitespace. Call
158 i387_fill_fsave instead of fill_fpregset.
159 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
160 (supply_fpregset): Likewise.
161 * i386v4-nat.c (supply_fpregset): Adjust call to
163 * i386-interix-nat.c (supply_fpregset): Adjust call to
165 * i386-linux-nat.c (supply_fpregset): Adjust call to
167 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
168 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
169 i387supply_fsave and i387_supply_fxsave.
170 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
171 Incorporate code from `i387_supply_register.
172 (i387_supply_register): Remove.
173 (i387_supply_fxsave): Add `regnum' argument.
175 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
177 (i387_supply_register): remove prototype.
180 2003-08-22 Michael Chastain <mec@shout.net>
182 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
183 Add lines for files in gdb/testsuite/gdb.cp/* that are
184 still not 8.3 unique.
186 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
188 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
189 TYPE_VPTR_FIELDNO is valid.
191 2003-08-19 Mark Kettenis <kettenis@gnu.org>
193 * utils.c (set_width_command): Remove prototypes.
194 (set_screen_size): New prototype.
195 (init_page_info): Simplify by fetching the screen size from
196 Readline. Call set_screen_size.
197 (set_screen_size): New function.
198 (set_width): Add missing whitespace in comment.
199 (set_width_command): Call set_screen_size.
200 (set_height_command): New function.
201 (initialize_utils): Fix formatting. Make "set height" command
202 call set_height_command. Remove redundant code that turns off
203 pagination if output isn't a terminal. Remove redundant call to
206 2003-08-22 Mark Kettenis <kettenis@gnu.org>
208 * sparc64-tdep.h (sparc64_regnum): Fix comment.
209 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
210 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
211 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
213 (sparc64_register_info): Give the reister with number
214 SPARC64_STATE_REGNUM a name.
215 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
217 (sparc64_push_dummy_call): Take BIAS into account when checking
219 (sparc_software_single_step): Remove assertions that check whether
220 NPC and NNPC were zero.
221 (sparc_supply_rwindow): Make public. Merge functionality with
222 sparc64_supply_rwindow.
223 (sparc_fill_rwindow): Make public. Merge functionality with
224 sparc64_fill_rwindow.
225 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
226 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
227 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
228 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
229 sparc_supply_rwindow instead of sparc64_supply_rwindow.
231 * reggroups.c: Add whitespace after declarations of local
232 variables in functions.
234 2003-08-21 Michael Chastain <mec@shout.net>
236 * gdbtypes.h: Change array bound type from an int to enum.
238 2003-08-21 Andrew Cagney <cagney@redhat.com>
240 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
241 * config/sparc/tm-sparc.h: Ditto.
242 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
244 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
246 2003-07-13 Mark Kettenis <kettenis@gnu.org>
248 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
249 (register_objfile_data, set_objfile_data, objfile_data): New
251 * objfiles.c (objfile_alloc_data, objfile_free_data): New
253 (allocate_objfile): Call objfile_alloc_data.
254 (free_objfile): Call objfile_free_data.
255 (struct objfile_data): New.
256 (struct objfile_data_registration): New.
257 (struct objfile_data_registry): New.
258 (objfile_data_registry): New variable.
259 (register_objfile_data): New function.
260 (objfile_alloc_data, objfile_free_data): New functions.
261 (set_objfile_data, objfile_data): New functions.
262 * dwarf2-frame.c (dwarf2_frame_data): New variable.
263 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
264 (_initialize_dwarf2_frame): New function and prototype.
266 2003-08-21 Andrew Cagney <cagney@redhat.com>
268 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
269 a specific architecture.
270 * arch-utils.h (set_architecture_from_arch_mach): Delete
272 (target_architecture_hook): Delete declaration.
273 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
274 (default_float_format): Assume GDB_MULTI_ARCH.
275 (default_double_format): Assume GDB_MULTI_ARCH.
276 (set_endian_from_file): Delete function.
277 (arch_ok): Delete function.
278 (set_arch): Delete function.
279 (set_architecture_from_arch_mach): Delete function.
280 (set_architecture_from_file): Delete function.
281 (set_architecture): Assume GDB_MULTI_ARCH.
282 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
284 2003-08-21 Mark Kettenis <kettenis@gnu.org>
286 Rewrite FreeBSD/sparc64 native configuration.
287 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
288 * sparc64fbsd-nat.c: New file.
289 * sparc64fbsd-tdep.c: New file.
290 * sparc64-tdep.c sparc64-tdep.h: New files.
291 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
292 sparc64fbsd-tdep.o): New dependencies.
293 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
294 and sparc64fbsd-tdep.c.
295 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
296 * config/sparc/fbsd.mh: Remove copyright notice.
297 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
299 * config/sparc/fbsd.mt: Remove copyright notice.
300 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
301 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
302 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
303 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
304 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
305 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
306 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
307 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
309 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
310 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
312 2003-08-21 Michael Chastain <mec@shout.net>
314 * symtab.h: Add doco on the space critical structures and
315 some measurements of space usage.
317 2003-08-21 Michael Snyder <msnyder@redhat.com>
319 * tracepoint.c (trace_dump_command): Trace break address
320 is subject to DECR_PC_AFTER_BREAK.
321 (set_traceframe_context): Make "trace_line" an int.
322 Fixes suggested by Mark Newman <mark.newman@lmco.com>
324 2003-08-20 Michael Snyder <msnyder@redhat.com>
326 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
327 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
328 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
330 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
331 functions, replace sh_push_dummy_call.
332 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
334 2003-08-20 Michael Chastain <mec@shout.net>
336 * gdbtypes.h (struct main_type): Rearrange to save space.
338 2003-08-20 Michael Snyder <msnyder@redhat.com>
340 * trad-frame.c: Comment typo fix.
342 2003-08-20 Michael Snyder <msnyder@redhat.com>
343 Kevin Buettner <kevinb@redhat.com>
345 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
346 (frv_frame_init_saved_regs): Add declaration.
347 (frame_extra_info): Add new field ``saved_regs''.
348 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
349 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
350 Update frame related code.
351 (frv_extract_struct_value_address): Adjust formatting.
352 * Makefile.in (frv-tdep.o): Update dependencies.
353 * config/frv/tm-frv.h (target_insert_watchpoint)
354 (target_remove_watchpoint, target_insert_hw_breakpoint)
355 (target_remove_hw_breakpoint): Delete these macros.
356 (remote_insert_watchpoint, remote_remove_watchpoint)
357 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
360 2003-08-20 Michael Chastain <mec@shout.net>
362 * defs.h (ENUM_BITFIELD): New macro.
363 * symtab.h (ENUM_BITFIELD): Use it.
364 (BYTE_BITFIELD): Remove old macro, which was already disabled.
366 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
368 * MAINTAINERS (write after approval): Add myself.
370 2003-08-18 Andrew Cagney <cagney@redhat.com>
372 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
373 * gdbarch.h, gdbarch.c: Re-generate.
374 * infcall.c (call_function_by_hand): Adjust the SP by
375 frame_red_zone_size before allocating any stack space.
376 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
377 * x86-64-tdep.c (x86_64_frame_align): New function.
378 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
380 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
381 Remove code adjusting SP so that it skips over the Red Zone.
383 2003-08-18 Mark Kettenis <kettenis@gnu.org>
385 * NEWS (New native configurations): Mention FreeBSD/amd64.
387 2003-08-18 Andrew Cagney <cagney@redhat.com>
389 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
390 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
392 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
394 2003-08-18 Mark Kettenis <kettenis@gnu.org>
396 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
398 2003-08-18 Michal Ludvig <mludvig@suse.cz>
400 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
402 * i386-linux-nat.c: Include "linux-nat.h".
403 (child_post_startup_inferior): New function.
405 2003-08-18 Mark Kettenis <kettenis@gnu.org>
407 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
408 at the start of a frameless function. This probably fixes PR
411 2003-08-17 Michael Chastain <mec@shout.net>
413 * symfile.c (find_sym_fns): Remove special case for apollo target.
415 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
417 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
418 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
419 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
420 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
421 (linux_supports_tracevforkdone): New function.
422 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
424 (child_follow_fork): Handle vfork.
425 (linux_handle_extended_wait): Likewise. Also handle exec.
426 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
427 * NEWS: Mention fork tracing.
429 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
431 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
433 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
435 * Makefile.in (i386-linux-nat.o): Update dependencies.
436 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
437 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
438 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
439 * i386-linux-nat.c: Include "linux-nat.h".
440 (child_post_startup_inferior): New function.
441 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
442 * infptrace.c (kill_inferior): Wrap in #ifdef.
443 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
444 attaching to each LWP.
445 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
446 (init_lin_lwp_ops): Fill in some more operations.
447 * linux-nat.h (linux_enable_event_reporting)
448 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
450 * linux-nat.c (linux_enable_event_reporting): New function.
451 (child_post_attach, linux_child_post_startup_inferior)
452 (child_post_startup_inferior, child_follow_fork)
453 (linux_handle_extended_wait, kill_inferior): New functions.
455 2003-08-16 Andrew Cagney <cagney@redhat.com>
457 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
458 * gdbarch.h, gdbarch.c: Re-generate.
460 2003-08-16 Mark Kettenis <kettenis@gnu.org>
462 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
464 2003-08-16 Andrew Cagney <cagney@redhat.com>
466 * NEWS: Mention that "set prompt-escape-char" was deleted.
467 * top.c (get_prompt_1): Delete function.
469 (init_main): Do not clear "gdb_prompt_escape". Delete "set
470 prompt-escape-char" command.
471 (MAX_PROMPT_SIZE): Delete macro.
472 (get_prompt): Simplify, do not call get_prompt_1.
474 2003-08-16 Andrew Cagney <cagney@redhat.com>
476 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
477 -Werror. -Wformat-nonliteral problems.
479 2003-08-15 J. Brobecker <brobecker@gnat.com>
481 Further multiarching work mostly for hppa64-*-hpux11:
482 * hppa-tdep.h: New file.
483 * hppa-tdep.c: #include hppa-tdep.c.
484 (hppa32_num_regs): Renamed from hppa_num_regs.
485 (hppa64_num_regs): New constant.
486 (hppa64_call_dummy_breakpoint_offset): New constant.
487 (hppa32_call_dummy_length): New constant.
488 (hppa64_call_dummy_length): New constant.
489 (hppa32_stack_align): Make name 32bit explicit.
490 (hppa32_register_virtual_type): Likewise.
491 (hppa32_extract_return_value): Likewise.
492 (hppa32_use_struct_convention): Likewise.
493 (hppa32_store_return_value): Likewise.
494 (hppa64_register_virtual_type): New function.
495 (hppa64_extract_return_value): New function.
496 (hppa64_use_struct_convention): New function.
497 (hppa64_store_return_value): New function.
498 (hppa_frame_locals_address): Remove declaration, function does
500 (hppa_register_byte): Add support for PA64 ABI.
501 (hppa_gdbarch_init): Add support for PA64 ABI.
502 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
503 Make name 32bit explicit.
504 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
505 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
506 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
507 (hppa64_hpux_frame_base_before_sigtramp): New function.
508 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
509 * config/pa/tm-hppa64.h: Remove macros that are no longer
510 necessary now that the gdbarch vector is properly setup.
511 Transform some macros into function calls. Some minor cleanup.
512 * config/pa/tm-hppah.h: Update function calls in macros
513 following the function renaming in hppa-hpux-tdep.c.
514 * Makefile.in (hppa_tdep_h): New variable.
515 (hppa-tdep.o): Add dependency over hppa_tdep_h.
517 2003-08-14 Michael Snyder <msnyder@redhat.com>
519 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
521 2003-08-13 J. Brobecker <brobecker@gnat.com>
523 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
524 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
527 2003-08-13 Michael Snyder <msnyder@redhat.com>
529 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
530 (frv_saved_pc_after_call): Use deprecated ftype.
531 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
532 (frv_remote_translate_xfer_address): Remove.
533 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
535 2003-08-13 J. Brobecker <brobecker@gnat.com>
537 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
538 initialization after the common gdbarch initialization, not before.
540 2003-08-13 J. Brobecker <brobecker@gnat.com>
542 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
543 (ADDR_BITS_REMOVE): Remove, redundant.
545 2003-08-13 J. Brobecker <brobecker@gnat.com>
547 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
548 gdbarch method to clear the 2 low bits of text addresses.
550 2003-08-12 Andrew Cagney <cagney@redhat.com>
552 * Makefile.in (dsrec.o): Update dependencies.
553 * dsrec.c: Include "gdb_assert.h".
554 (make_srec): Use snprintf instead of sprintf, use a literal format
557 2003-08-12 Andrew Cagney <cagney@redhat.com>
559 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
560 FRAME_OBSTACK_ZALLOC.
562 2003-08-12 Kevin Buettner <kevinb@redhat.com>
564 * i386-tdep.c (i386_gdbarch_init): Enable default support for
567 2003-08-10 Mark Kettenis <kettenis@gnu.org>
569 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
570 amd64fbsd_sc_reg_offset): Add extern declarations.
571 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
574 2003-08-11 Ben Elliston <bje@wasabisystems.com>
576 * MAINTAINERS (write after approval): Update my mail address.
578 2003-08-10 Andrew Cagney <cagney@redhat.com>
580 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
582 2003-08-10 Mark Kettenis <kettenis@gnu.org>
584 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
585 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
586 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
587 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
588 i386bsd_sc_reg_offset): Add extern declarations.
589 * i386obsd-nat.c: Include "i386-tdep.h"
590 (_initialize_i386obsd_nat): Remove extern declarations.
591 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
593 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
596 * i386-tdep.c (i386_register_to_value): Use get_frame_register
597 instead of frame_read_register.
598 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
599 instead of frame_read_register. Use I386_ESP_REGNUM instead of
601 (i386_frame_prev_register): Use frame_unwind_register_unsigned
602 instead of frame_unwind_unsigned_register. Use
603 I386_EFLAGS_REGISTER instead of PS_REGNUM.
604 (i386_get_longjmp_target): Use regcache_read_unsigned_register
605 instead of read_register. Use builtin_type_void_data_ptr instead
606 of builtin_type_void_func_ptr when extracting the address of the
608 (i386_extract_return_value, i386_store_return_value,
609 i386_pseudo_register_read, i386_pseudo_register_write): Use
610 register_size instead REGISTER_RAW_SIZE.
612 2003-08-10 Andrew Cagney <cagney@redhat.com>
614 * infcall.c (call_function_by_hand): Use xstrprintf instead of
615 sprintf. Make "name" constant.
617 2003-08-10 Mark Kettenis <kettenis@gnu.org>
619 * i387-tdep.c (i387_register_to_value): Use get_frame_register
620 instead of frame_read_register.
621 (i387_print_float_info): Use get_frame_register and
622 get_frame_register_unsigned instead of frame_register_read.
624 * i386fbsd-nat.c: Include "i386-tdep.h".
625 (child_resume): Make `eflags' an ULONGEST. Use
626 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
627 instead of register_read and register_write.
629 * i386bsd-nat.c (fetch_inferior_registers,
630 store_inferior_registers): Don't use && at the end of a line.
631 (_initialize_i386bsd_nat): Fix typo.
633 * frame.c (_initialize_frame): Add missing backslash.
635 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
636 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
637 and supply_register instead of manipulating the register buffer
640 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
641 * config/i386/nm-i386sol2.h
642 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
644 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
645 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
646 instructions that GCC likes to mingle into the prologue. Fixes
647 gdb/1253 and gdb/1255.
649 2003-08-09 Andrew Cagney <cagney@redhat.com>
652 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
653 * command.h (add_setshow_uinteger_cmd): Declare.
654 * frame.c (set_backtrace_cmd): New function.
655 (show_backtrace_cmd): New function.
656 * frame.c (_initialize_frame): Replace "set/show
657 backtrace-below-main" with "set/show backtrace past-main". Add
658 command "set/show backtrace limit".
659 (backtrace_past_main): Rename "backtrace_below_main".
660 (backtrace_limit): New variable.
661 (get_prev_frame): Update. Check the backtrace_limit.
663 2003-08-09 Andrew Cagney <cagney@redhat.com>
665 * defs.h (xstrprintf): Declare.
666 * utils.c (xstrprintf): New function.
667 * breakpoint.c (insert_breakpoints): Replace sprintf and
668 non-literal format strings, with xstrprintf and cleanups.
669 (delete_breakpoint,breakpoint_re_set): Ditto.
670 (commands_command, insert_breakpoints): Ditto.
671 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
672 (break_at_finish_command_1): Ditto.
674 2003-08-09 Andrew Cagney <cagney@redhat.com>
676 * MAINTAINERS (language support): List Adam Fedor as Objective C
679 2003-08-08 J. Brobecker <brobecker@gnat.com>
681 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
684 2003-08-08 J. Brobecker <brobecker@gnat.com>
686 * config/pa/tm-hppa64.h: Remove lots of macros that are no
687 longer necessary now that hppa64 is partially multiarch'ed.
689 2003-08-08 Andrew Cagney <cagney@redhat.com>
691 * interps.c (interp_set): Check for a NULL "old_interp".
693 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
695 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
696 (install-only): Support DESTDIR.
697 (uninstall): Likewise.
698 (install-gdbtk): Likewise.
700 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
702 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
703 contains something meaningful at all times.
705 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
707 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
709 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
711 * MAINTAINERS (write after approval): Added self.
713 2003-08-07 Andrew Cagney <cagney@redhat.com>
715 * inferior.h (AT_SYMBOL): Define.
716 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
717 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
718 * mips-tdep.c (mips_call_dummy_address): Delete function.
719 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
720 set call_dummy_address.
722 2003-08-07 Andrew Cagney <cagney@redhat.com>
724 * language.c (op_error): Delete function.
725 (binop_type_check): Delete function.
726 * language.h (type_op_error, range_op_error): Delete macros.
727 (op_error): Delete declaration.
729 2003-08-07 Andrew Cagney <cagney@redhat.com>
731 * interps.h (INTERP_MI2, INTERP_MI3): Define.
733 2003-08-07 Michal Ludvig <mludvig@suse.cz>
735 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
736 (x86_64_push_arguments): Skip the red zone.
738 2003-08-05 Andrew Cagney <cagney@redhat.com>
740 * reggroups.c (reggroup_next): Check for the final entry.
742 2003-08-04 Andrew Cagney <cagney@redhat.com>
744 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
745 * cli/cli-script.c (define_command): Call query directly, instead
746 of passing it a buffer.
747 * ocd.c (ocd_error): Pass error a constant format string.
748 * remote-mips.c (mips_error): Use fputs_filtered.
750 * solib-svr4.c (_initialize_svr4_solib): Update
751 register_gdbarch_data call.
752 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
754 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
755 (register_gdbarch_data): Delete "free" parameter. Update
757 * gdbarch.h, gdbarch.c: Re-generate.
758 * reggroups.c (_initialize_reggroup): Update.
759 * gnu-v3-abi.c (init_gnuv3_ops): Update.
760 * frame-base.c (_initialize_frame_base): Update.
761 * frame-unwind.c (_initialize_frame_unwind): Update.
762 * user-regs.c (_initialize_user_regs): Update.
763 * remote.c (_initialize_remote): Update.
764 * regcache.c (_initialize_regcache): Update.
766 * regcache.c (xfree_regcache_descr): Delete function.
767 (_initialize_regcache): Update call to register_gdbarch_data.
768 (init_regcache_descr, init_legacy_regcache_descr): Use
769 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
771 * remote.c (free_remote_state): Delete function.
772 (_initialize_remote): Update register_gdbarch_data.
773 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
774 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
776 2003-08-04 Andrew Cagney <cagney@redhat.com>
778 * reggroups.c (struct reggroup_el): Define.
779 (struct reggroups): Delete field "nr_group". Replace array
780 "group" with a "first" to "last" linked list.
781 (reggroups_init): Update. Allocate using gdbarch's obstack.
782 (reggroups_free): Delete function.
783 (add_group): Update. Add "el" parameter.
784 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
785 (default_groups): Update.
786 (reggroup_next): Replace reggroups.
787 (reggroups_dump): Update.
788 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
789 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
790 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
792 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
794 * Makefile.in (tui-interp.o): Update dependencies.
796 2003-08-04 David Carlton <carlton@kealia.com>
798 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
799 to internal_error call.
800 * source.c (forward_search_command): Add "%s" format argument.
801 (reverse_search_command): Ditto.
802 * top.c (quit_confirm): Ditto.
803 * cli/cli-setshow.c (do_setshow_command): Ditto.
804 * cp-valprint.c (cp_print_class_method): Replace
805 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
806 (cp_print_class_member): Ditto.
807 * event-top.c (command_line_handler): Ditto.
808 * linux-proc.c (linux_info_proc_cmd): Ditto.
809 * p-typeprint.c (pascal_type_print_base): Ditto.
810 * p-valprint.c (pascal_object_print_class_method): Ditto.
811 (pascal_object_print_class_member): Ditto.
812 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
813 * remote.c (remote_cisco_section_offsets): Ditto.
814 * top.c (command_line_input): Ditto.
815 * utils.c (vwarning,error_stream,quit): Ditto.
816 * valprint.c (print_floating,print_binary_chars)
817 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
819 2003-08-04 Andrew Cagney <cagney@redhat.com>
821 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
823 2003-08-02 Andrew Cagney <cagney@redhat.com>
825 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
826 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
829 2003-08-02 Andrew Cagney <cagney@redhat.com>
831 * Makefile.in: Update all dependencies and definitions.
833 2003-08-02 Adam Fedor <fedor@gnu.org>
835 * linespec.c (is_objc_method_format): New function
836 (decode_line_1, locate_first_half): Use it.
839 2003-08-01 Andrew Cagney <cagney@redhat.com>
841 * NEWS: Mention that m32r is multi-arch.
842 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
843 * configure.tgt: Recognize m32r-*-*.
844 * config/m32r/tm-m32r.h: Delete file.
845 * config/m32r/m32r.mt: New file.
846 * m32r-rom.c (m32r_upload_command): Use hostent only when
847 gethostname succeeds, in order to avoid a compilation
849 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
852 2003-08-01 Michael Snyder <msnyder@redhat.com>
854 * sh-tdep.c (sh_frame_align): New gdbarch method.
855 (sh_gdbarch_init): Set up frame_align method.
857 2003-07-31 Michael Snyder <msnyder@redhat.com>
859 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
860 which is already covered by the new frames infrastructure.
862 2003-07-31 Andrew Cagney <cagney@redhat.com>
864 * user-regs.c (struct user_reg): Add "next" link.
865 (struct user_regs): Replace "user" with "first" and "last" links.
866 (append_user_reg): Add pre-allocated "reg" parameter.
867 (builtin_user_regs): Provide initial value for "last".
868 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
869 (user_regs_init): Allocate memory from the gdbarch obstack.
870 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
871 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
873 (usernum_to_user_reg): New function.
874 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
875 (value_of_user_reg): Use usernum_to_user_reg.
876 (user_regs_free): Delete function.
877 (_initialize_user_regs): Update register_gdbarch_data call.
879 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
881 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
883 2003-07-30 Michael Snyder <msnyder@redhat.com>
885 * value.h (value_being_returned): Add a struct_addr argument.
886 * infcall.c (call_function_by_hand): Pass struct_addr to
887 value_being_returned.
888 * infcmd.c (print_return_value): Pass zero as struct_addr.
889 * values.c (value_being_returned): If struct_addr is passed,
890 use it instead of trying to recover it from the inferior.
892 2003-07-30 Kevin Buettner <kevinb@redhat.com>
894 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
895 the prologue analyzer won't need to attempt to extract the pc
896 value from the woefully incomplete dummy frame.
897 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
898 possible. Disable code which modifies the frame.
900 2003-07-28 Andrew Cagney <cagney@redhat.com>
902 * annotate.c (annotate_breakpoints_headers): Restrict annotation
904 (annotate_breakpoints_table, annotate_record): Ditto.
905 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
906 (annotate_field_name_end, annotate_field_value): Ditto.
907 (annotate_field_end, annotate_frame_source_begin): Ditto.
908 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
909 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
910 (annotate_frame_begin, annotate_frame_function_name): Ditto.
911 (annotate_frame_address_end, annotate_frame_address): Ditto.
912 (annotate_frame_args, annotate_frame_end): Ditto.
913 (annotate_frame_where, annotate_arg_begin): Ditto.
914 (annotate_arg_name_end, annotate_arg_value): Ditto.
915 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
916 (annotate_function_call, annotate_signal_name): Ditto.
917 (annotate_signal_string, annotate_signal_name_end): Ditto.
918 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
919 (annotate_value_begin, annotate_value_history_value): Ditto.
920 (annotate_value_history_end, annotate_value_end): Ditto.
921 (annotate_display_begin, annotate_display_number_end): Ditto.
922 (annotate_display_format, annotate_display_expression): Ditto.
923 (annotate_display_expression_end, annotate_display_value): Ditto.
924 (annotate_display_end, annotate_array_section_begin): Ditto.
925 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
926 (annotate_elt, annotate_array_section_end): Ditto.
928 2003-07-28 Andrew Cagney <cagney@redhat.com>
930 * regcache.c (struct regcache_descr): Update comments on
932 (init_legacy_regcache_descr): Don't set nr_raw_registers or
933 sizeof_raw_register_valid_p.
934 (init_regcache_descr): Set nr_raw_registers and
935 sizeof_raw_register_valid_p before calling
936 init_legacy_regcache_descr.
938 2003-07-28 Andrew Cagney <cagney@redhat.com>
940 * mips-tdep.c (print_gp_register_row): Print the GPR's register
943 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
945 * thread.c (info_threads_command): Use get_selected_frame ().
946 Check that there is at least one non-sentinel frame.
948 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
950 * m68hc11-tdep.c (struct frame_extra_info): Remove.
951 (m68hc11_pop_frame): Remove.
952 (m68hc11_frame_saved_pc): Remove.
953 (m68hc11_frame_chain): Remove.
954 (m68hc11_frame_init_saved_regs): Remove.
955 (m68hc11_init_extra_frame_info): Remove.
956 (m68hc11_store_struct_return): Remove.
957 (m68hc11_saved_pc_after_call): Remove.
959 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
961 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
962 frame unwind information.
963 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
964 and adapted for frame unwinding.
965 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
966 (m68hc11_unwind_pc): New function.
967 (m68hc11_frame_unwind_cache): New function to analyze frames.
968 (m68hc11_frame_this_id): New function to create new frame struct.
969 (m68hc11_frame_prev_register): New function to unwind a register from
971 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
972 (m68hc11_frame_p): New function for the above.
973 (m68hc11_frame_base_address): New function to return fp of frame.
974 (m68hc11_frame_args_address): Update for frame.
975 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
976 (m68hc11_unwind_sp): New function.
977 (m68hc11_unwind_dummy_id): New function.
978 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
981 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
983 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
984 (m68hc11_guess_from_prologue): Advance the pc and frame size only
985 when we are beyond the current pc.
987 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
989 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
990 from m68hc11_push_arguments.
991 (m68hc11_push_arguments): Remove.
992 (m68hc11_push_return_address): Remove.
993 (m68hc11_gdbarch_init): Install the above; remove above deprecated
994 handlers; remove deprecated_extra_stack_alignment_needed.
996 2003-07-27 Andrew Cagney <cagney@redhat.com>
998 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
999 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1000 REAL_PC and not the pointer.
1001 * hppa-hpux-tdep.c: Include frame.h
1003 2003-07-27 Andrew Cagney <cagney@redhat.com>
1005 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1006 GDB_MULTI_ACH_PARTIAL.
1008 2003-07-27 Andrew Cagney <cagney@redhat.com>
1010 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1011 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1012 operator at start and not end of line.
1013 (decode_prologue): Ditto.
1014 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1015 frame_unwind_register_unsigned instead of
1016 frame_unwind_unsigned_register.
1017 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1019 (m32r_push_dummy_call): Use register_size instead of
1021 (m32r_frame_sniffer): Replace m32r_frame_p.
1022 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1023 * m32r-rom.c (report_transfer_performance): Delete extern
1025 (m32r_load, m32r_upload_command): Use print_transfer_performance
1026 instead of report_transfer_performance.
1027 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1028 / add_show_from_set.
1030 2003-07-26 Andrew Cagney <cagney@redhat.com>
1032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1033 store_return_value and extract_struct_value_address.
1035 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1038 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1039 NULL, default to the section containing PC.
1041 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1043 * NEWS: Mention "regs" deprecated for m68hc11 too.
1045 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1046 (m68hc11_print_register): New function to print out one register.
1047 (m68hc11_print_registers_info): New function to print registers.
1048 (show_regs): Deprecate and use the above.
1049 (m68hc11_gdbarch_init): Install the print_registers_info.
1051 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1053 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1054 that we have a SIGTRAP before returning non-zero.
1056 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1057 Elena Zannoni <ezannoni@redhat.com>
1059 * linespec.c (decode_line_2): Avoid crash if
1060 find_function_start_sal() returns empty record.
1062 2003-07-23 Andreas Schwab <schwab@suse.de>
1064 * ia64-tdep.c (ia64_print_insn): New function.
1065 (ia64_gdbarch_init): Set print_insn to it.
1066 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1067 deprecated_tm_print_insn_info.
1069 2003-07-22 Michael Snyder <msnyder@redhat.com>
1071 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1072 handle 8-bit returns (long long).
1073 (h8300h_extract_return_value): Ditto.
1074 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1076 2003-07-22 Andrew Cagney <cagney@redhat.com>
1078 * gdbarch.c Include "gdb_obstack.h".
1079 (struct gdbarch): Add an "obstack".
1080 (alloc_gdbarch_data): Allocate the gdbarch data using
1081 GDBARCH_OBSTACK_CALLOC.
1082 (free_gdbarch_data): Delete function.
1083 (gdbarch_obstack_zalloc): New function.
1084 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1085 Assert that the architecture is not initialized.
1086 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1087 vector from the obstack.
1088 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1089 architecture obstack.
1090 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1091 (set_gdbarch_data): Assert that the data is not initialized.
1092 (struct gdbarch_data): Delete member "free".
1093 (register_gdbarch_data): Do not initialize "free".
1094 * gdbarch.h, gdbarch.c: Re-generate.
1096 2003-07-22 Andrew Cagney <cagney@redhat.com>
1098 * configure.in (build_warnings): Add -Wformat-nonliteral.
1099 * configure: Re-generate.
1101 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1103 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1105 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1107 * findvar.c (read_var_value): Remove case for thread local storage
1108 variables. It is now entirely handled by the dwarf2 location
1110 * printcmd.c (address_info): Ditto.
1111 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1113 (struct symbol): Remove objfile field, which was used by
1114 LOC_THREAD_LOCAL_STATIC only.
1115 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1116 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1117 usage of objfile pointer.
1118 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1119 thread local variables.
1120 Add include of objfiles.h.
1121 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1123 * Makefile.in (dwarf2loc.o): Update dependencies.
1125 2003-07-22 Andrew Cagney <cagney@redhat.com>
1127 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1129 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1130 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1131 (struct value): Add opaque declaration.
1132 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1134 2003-07-21 Andrew Cagney <cagney@redhat.com>
1136 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1137 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1139 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1141 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1142 regcache_cooked_read_unsigned instead of read_register.
1143 (m68hc11_saved_pc_after_call): Likewise.
1144 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1145 instead of write_register.
1146 (m68hc11_register_type): New function.
1147 (m68hc11_register_virtual_type): Remove.
1148 (m68hc11_store_return_value): Convert to use the regcache.
1149 (m68hc11_extract_struct_value_address): Likewise.
1150 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1151 m68hc11_register_type; undeprecate store_return_value and
1152 extract_struct_value_address.
1154 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1156 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1157 and translate to use regcache.
1158 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1160 2003-07-18 Andrew Cagney <cagney@redhat.com>
1162 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1163 * gdbarch.h, gdbarch.c: Re-generate.
1164 * i386-tdep.c (i386_gdbarch_init): Do not set
1165 DWARF2_BUILD_FRAME_INFO.
1166 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1168 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1169 DWARF2_BUILD_FRAME_INFO.
1171 2003-07-18 Andrew Cagney <cagney@redhat.com>
1173 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1174 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1176 2003-07-18 Andrew Cagney <cagney@redhat.com>
1178 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1179 frame_unwind_address_in_block, instead of frame_pc_unwind.
1180 (dwarf2_frame_cache): Ditto.
1182 2003-07-18 Andrew Cagney <cagney@redhat.com>
1184 * user-regs.h (struct gdbarch): Declare opaque.
1185 * ui-out.h (struct ui_file): Declare opaque.
1186 * dwarf2-frame.h (struct frame_info): Declare opaque.
1188 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1190 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1192 (procfs_meminfo): Change strerror to safe_strerror.
1193 (procfs_can_run): Remove K&R badness.
1195 2003-07-17 Michael Snyder <msnyder@redhat.com>
1197 * remote-sim.c: Comment typo fix.
1199 2003-07-17 Andrew Cagney <cagney@redhat.com>
1201 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1203 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1204 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1205 GDB_MULTI_ARCH_PARTIAL.
1207 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1209 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1210 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1211 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1213 2003-07-16 Theodore A. Roth <troth@openavr.org>
1215 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1217 (avr_frame_unwind_cache): Don't unwind FP for main.
1219 Save the computed prev_sp.
1220 (avr_saved_regs_unwinder): Remove function.
1221 (avr_frame_prev_register): Use PC unwind logic from
1222 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1224 2003-07-16 Andrew Cagney <cagney@redhat.com>
1226 * frame-base.h (frame_base_p_ftype): Delete definition.
1227 (frame_base_append_predicate): Delete declaration.
1228 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1229 (frame_unwind_append_predicate): Delete declaration.
1230 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1231 (append_predicate): Delete parameter "p".
1232 (frame_unwind_append_predicate): Delete function.
1233 (frame_unwind_append_sniffer): Update call to append_predicate.
1234 (frame_unwind_free): Delete function.
1235 (_initialize_frame_unwind): Pass NULL as "free" to
1236 register_gdbarch_data.
1237 (frame_unwind_init): Append the dummy_frame_sniffer.
1238 (frame_unwind_find_by_frame): Simplify.
1239 * frame-base.c (struct frame_base_table): Delete field "p".
1240 (append_predicate): Delete parameter "p".
1241 (frame_base_append_predicate): Delete function.
1242 (frame_base_append_sniffer): Update call to append_predicate.
1243 (frame_base_free): Delete function.
1244 (frame_base_find_by_frame): Simplify.
1245 (_initialize_frame_base): Pass NULL as "free" to
1246 register_gdbarch_data.
1247 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1248 (x86_64_sigtramp_frame_sniffer): Replace
1249 "x86_64_sigtramp_frame_p".
1250 (x86_64_init_abi): Set the frame unwind sniffers.
1251 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1252 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1253 (m68k_gdbarch_init): Set the frame unwind sniffers.
1254 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1255 "i386_sigtramp_frame_p".
1256 (i386_frame_sniffer): Replace "i386_frame_p".
1257 (i386_gdbarch_init): Set the frame unwind sniffers.
1258 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1259 (avr_gdbarch_init): Set the frame unwind sniffers.
1260 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1261 "alpha_sigtramp_frame_p"
1262 (alpha_heuristic_frame_sniffer): Replace
1263 "alpha_heuristic_frame_p".
1264 (alpha_gdbarch_init): Set the frame unwind sniffers.
1265 (alpha_dwarf2_init_abi): Ditto.
1266 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1267 "alpha_debug_frame_p".
1268 (alpha_mdebug_frame_base_sniffer): Replace
1269 "alpha_mdebug_frame_base_p".
1270 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1271 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1272 (d10v_gdbarch_init): Set the frame unwind sniffer.
1273 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1274 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1275 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1276 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1277 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1278 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1280 2003-07-16 Michael Snyder <msnyder@redhat.com>
1282 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1283 should go thru sh_dsp_register_sim_regno, else the dsp regs
1284 will not get the right values.
1286 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1288 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1289 deprecated_store_floating by call to store_typed_floating.
1290 (sh_sh4_register_convert_to_raw): Substitute call to
1291 deprecated_extract_floating by call to extract_typed_floating.
1293 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1295 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1297 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1299 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1300 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1301 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1303 (do_pseudo_register): Remove.
1304 (sh_push_dummy_code): New function.
1305 (sh64_store_struct_return): Rename from sh_store_struct_return.
1306 Only called for sh64 now.
1307 (sh_extract_struct_value_address): Regcache'ify.
1308 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1309 and accomodate new tasks.
1310 (sh64_push_return_address): Rename from sh_push_return_address.
1311 Only called for sh64 now.
1312 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1314 (sh3e_sh4_extract_return_value): Regcache'ify.
1315 (sh_default_store_return_value): Ditto.
1316 (sh3e_sh4_store_return_value): Ditto.
1317 (sh_default_register_byte): Remove.
1318 (sh_sh4_register_byte): Remove.
1319 (sh_default_register_raw_size): Remove.
1320 (sh_sh4_register_raw_size): Remove.
1321 (sh_register_virtual_size): Remove.
1322 (sh_sh3e_register_virtual_type): Remove.
1323 (sh_sh3e_register_type): New function.
1324 (sh_sh4_register_virtual_type): Remove.
1325 (sh_sh4_register_type): New function.
1326 (sh_default_register_virtual_type): Remove.
1327 (sh_default_register_type): New function.
1328 (do_fv_register_info): Add parameters to accomodate call from
1329 sh_print_registers_info.
1330 (do_dr_register_info): Ditto.
1331 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1332 Add parameters to accomodate call from sh_print_registers_info.
1333 (sh_do_fp_register): Ditto.
1334 (sh64_do_pseudo_register): Call do_dr_register_info,
1335 do_fv_register_info and sh_do_fp_register with default parameters.
1336 (sh_do_register): Add parameters to accomodate call from
1337 sh_print_registers_info.
1338 (sh_print_register): Ditto.
1339 (sh_print_registers_info): Rename from sh_do_registers_info.
1340 Add parameters to be used as gdbarch_print_registers_info
1341 implementation. Accomodate removed do_pseudo_register function
1343 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1344 function pointer. Call sh_print_register with default parameters.
1345 (sh64_do_registers_info): Call sh_print_registers_info instead of
1346 sh_do_registers_info.
1347 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1348 detection of deprecated vs. non-deprecated functionality.
1349 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1350 function pointer assignments by direct function calls.
1352 2003-07-15 Andrew Cagney <cagney@redhat.com>
1354 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1355 (frame_register_unwind, create_new_frame): Ditto.
1356 (legacy_get_prev_frame, get_frame_type): Ditto.
1357 (get_frame_base_address): Use frame_base_find_by_frame.
1358 (get_frame_locals_address): Use frame_base_find_by_frame.
1359 (get_frame_args_address): Use frame_base_find_by_frame.
1360 * frame-base.h (frame_base_sniffer_ftype): Declare.
1361 (frame_base_append_sniffer): Declare.
1362 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1363 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1364 (frame_base_append_sniffer): New function.
1365 (frame_base_append_predicate): Add a NULL sniffer.
1366 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1367 (struct frame_base_table): Add "sniffer".
1368 (frame_base_free): Free the "sniffer" table.
1369 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1370 (frame_unwind_append_sniffer): Declare.
1371 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1372 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1373 (struct frame_unwind_table): Add "sniffer", delete "middle".
1374 (append_predicate): Add "sniffer" parameter, append the sniffer.
1375 (frame_unwind_init): Update append_predicate call.
1376 (frame_unwind_append_sniffer): New function.
1377 (frame_unwind_append_predicate): Update append_predicate call.
1378 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1380 2003-07-15 Andrew Cagney <cagney@redhat.com>
1382 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1383 before code inhibiting repeated unwind attempts. Add to
1384 commentary on that test's problems.
1385 * blockframe.c (inside_main_func): Look for "main" in the minimal
1387 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1390 2003-07-15 Andrew Cagney <cagney@redhat.com>
1392 * complaints.c (struct explanation): Define.
1393 (struct complaints): Change type of "explanation" to "struct
1395 (symfile_explanations): Convert to a "struct explanation" table.
1396 (vcomplaint): Update.
1398 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1400 * x86-64-linux-nat.c (regmap): Removed.
1401 (supply_gregset, fill_gregset): Call
1402 x86_64_linux_(fill,supply)_gregset functions.
1403 * x86-64-linux-tdep.c (USER_*): New defines.
1404 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1405 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1407 (fetch_core_registers): Ditto.
1408 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1409 * x86-64-linux-tdep.h: New file.
1410 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1412 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1414 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1416 * x86-64-tdep.c (x86_64_store_return_value): Use
1417 regcache_cooked_write_part instead of regcache_cooked_write.
1419 * configure.host: Add x86_64-*-freebsd*.
1420 * configure.tgt: Add x86_64-*-freebsd*.
1421 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1422 * amd64fbsd-nat.c: New file.
1423 * amd64fbsd-tdep.c: New file.
1424 * config/i386/nm-fbsd64.h: New file.
1425 * config/i386/fbsd64.mh: New file.
1426 * config/i386/fbsd64.mt: New file.
1428 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1430 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1431 `sc_regs_offset' and `sc_fpregs_offset'.
1432 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1433 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1434 (alpha_sigtramp_register_address): Rewrite to use new members of
1435 `struct gdbarch_tdep'.
1436 (alpha_gdbarch_init): Initialize new members of struct
1438 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1439 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1440 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1441 (alphafbsd_pc_in_sigtramp): Implement.
1442 (alphafbsd_sigtramp_offset): New function.
1443 (alphafbsd_sigcontext_addr): New function.
1444 (alphafbsd_init_abi): Initialize signal trampoline related members
1445 of `struct gdbarch_tdep'.
1446 (_initialize_alphafbsd_tdep): Add prototype.
1448 2003-07-11 Theodore A. Roth <troth@openavr.org>
1450 * Makefile.in (install-only): Quote sed expression when generating
1453 2003-07-11 Richard Henderson <rth@redhat.com>
1455 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1456 * dwarf2-frame.c: Include complaints.h.
1457 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1458 variable initialization; return NULL on error.
1459 (decode_frame_entry): New.
1461 2003-07-11 Andrew Cagney <cagney@redhat.com>
1463 * frame.h (frame_address_in_block): Delete declaration.
1464 * blockframe.c (frame_address_in_block): Delete function.
1465 (get_frame_block): Use get_frame_address_in_block.
1466 (block_innermost_frame): Ditto.
1467 * stack.c (print_frame, backtrace_command_1): Ditto.
1469 * frame.h (get_frame_address_in_block): Declare.
1470 (frame_unwind_address_in_block): Declare.
1471 * frame.c (frame_unwind_address_in_block): New function.
1472 (get_frame_address_in_block): New function.
1474 2003-07-10 Andrew Cagney <cagney@redhat.com>
1476 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1477 pre-default. Note: re-generate has no effect.
1479 2003-07-10 Andrew Cagney <cagney@redhat.com>
1481 * gdbarch.sh: When a variable, but not a function, compare against
1482 0. Fix problem in previous patch.
1483 * gdbarch.c: Re-generate.
1485 2003-07-10 Andrew Cagney <cagney@redhat.com>
1487 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1488 functions against NULL, not 0.
1489 * gdbarch.c: Re-generate.
1491 2003-07-10 Fred Fish <fnf@ninemoons.com>
1493 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1494 null string instead of a null pointer.
1495 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1497 2003-07-09 Michael Snyder <msnyder@redhat.com>
1499 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1501 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1503 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1504 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1505 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1506 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1507 * x86-64-tdep.c: ... from here.
1509 2003-07-09 Andreas Schwab <schwab@suse.de>
1511 * m68k-tdep.h (enum struct_return): Define.
1512 (struct gdbarch_tdep): Add struct_return.
1513 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1514 bytes are padded to the right, not to the left. Pass struct value
1515 address in register %a1, not on stack.
1516 (m68k_use_struct_convention): New function.
1517 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1518 struct_return in tdep to pcc_struct_return.
1519 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1522 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1524 * somread.c (som_symfile_offsets): Fix compilation error.
1526 2003-07-09 Andrew Cagney <cagney@redhat.com>
1528 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1529 Add comments about the checks.
1531 2003-07-08 Andrew Cagney <cagney@redhat.com>
1533 * Makefile.in: Make dependency section headers consistent.
1534 (config_h): Move to $BUILD headers section.
1535 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1536 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1537 (ada-exp.tab.c): Move to YACC/LEX section.
1538 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1539 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1541 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1543 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1544 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1545 of strerror with safe_strerror, use ISO C function definitions,
1546 and replace instances of sprintf with snprintf.
1548 2003-07-07 Andrew Cagney <cagney@redhat.com>
1550 * frame.c (get_prev_frame): Enable check for identical frames.
1551 Update comments. Update error messages.
1553 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1555 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1557 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1559 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1560 sort_symtab_syms, no longer necessary.
1562 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1564 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1566 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1568 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1569 (mips_register_byte): Likewise.
1571 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1573 * Makefile.in (sparc_tdep_h): New.
1574 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1575 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1576 * sparc-linux-nat.c: Include "sparc-tdep.h".
1577 * sparc-nat.c: Likewise.
1578 * sparc-tdep.c: Likewise.
1579 * sparc64nbsd-nat.c: Likewise.
1580 * sparcnbsd-nat.c: Likewise.
1581 * sparcnbsd-tdep.c: Likewise.
1582 * sparc-tdep.h: New file.
1583 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1584 and sparc_npc_regnum.
1586 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1588 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1589 (mips_linux_cannot_store_register): List supported instead of
1590 unsupported registers.
1592 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1594 * disasm.c (dump_insns): Separate instructions from addresses.
1596 2003-07-07 Andreas Schwab <schwab@suse.de>
1598 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1600 * m68k-tdep.c (NUM_FREGS): Delete.
1601 (SIG_PC_FP_OFFSET): Delete.
1602 (TARGET_M68K): Delete.
1603 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1604 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1605 P_MOVEL_SP, P_MOVEML_SP): Define.
1606 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1608 (m68k_register_raw_size): Delete.
1609 (m68k_register_virtual_size): Delete.
1610 (m68k_register_type): Renamed from m68k_register_virtual_type and
1611 add gdbarch argument.
1612 (m68k_store_struct_return): Delete.
1613 (m68k_deprecated_extract_return_value): Delete.
1614 (m68k_deprecated_extract_struct_value_address): Delete.
1615 (m68k_frame_chain): Delete.
1616 (m68k_frame_saved_pc): Delete.
1617 (m68k_fix_call_dummy): Delete.
1618 (m68k_push_dummy_frame): Delete.
1619 (m68k_pop_frame): Delete.
1620 (m68k_extract_return_value): New function.
1621 (m68k_store_return_value): Rewrite using regcache.
1622 (m68k_extract_struct_value_address): Rewrite using regcache.
1623 (m68k_push_dummy_call): New function.
1624 (struct m68k_frame_cache): Define.
1625 (m68k_alloc_frame_cache): New function.
1626 (m68k_analyze_frame_setup): New function.
1627 (m68k_analyze_register_saves): New function.
1628 (m68k_analyze_prologue): New function.
1629 (m68k_skip_prologue): Rewrite using above functions.
1630 (m68k_unwind_pc): New function.
1631 (m68k_frame_cache): New function.
1632 (m68k_frame_this_id): New function.
1633 (m68k_frame_prev_register): New function.
1634 (m68k_frame_unwind): New variable.
1635 (m68k_frame_p): New function.
1636 (m68k_sigtramp_frame_cache): New function.
1637 (m68k_sigtramp_frame_this_id): New function.
1638 (m68k_sigtramp_frame_prev_register): New function.
1639 (m68k_sigtramp_frame_unwind): New variable.
1640 (m68k_sigtramp_frame_p): New function.
1641 (m68k_frame_base_address): New function.
1642 (m68k_frame_base): New function.
1643 (m68k_unwind_dummy_id): New function.
1644 (fill_gregset): Use regcache_collect.
1645 (fill_fpregset): Likewise.
1646 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1648 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1649 deprecated_init_frame_pc, deprecated_store_struct_return,
1650 deprecated_extract_return_value, deprecated_store_return_value,
1651 deprecated_frame_chain, deprecated_frame_saved_pc,
1652 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1653 deprecated_register_virtual_size,
1654 deprecated_max_register_raw_size,
1655 deprecated_max_register_virtual_size,
1656 deprecated_register_virtual_type, deprecated_register_size,
1657 deprecated_register_byte, deprecated_register_bytes,
1658 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1659 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1660 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1661 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1662 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1663 deprecated_push_dummy_frame, deprecated_pop_frame,
1664 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1665 only if SYSCALL_TRAP is defined. Set extract_return_value,
1666 store_return_value, extract_struct_value_address, register_type,
1667 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1669 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1670 M68K_MAX_REGISTER_SIZE): Define.
1671 (struct m68k_sigtramp_info): Define.
1672 (struct gdbarch_tdep): Add get_sigtramp_info.
1673 * m68klinux-nat.c (fetch_register): Use register_size instead of
1674 REGISTER_RAW_SIZE. Don't put assignment in if.
1675 (store_register): Likewise.
1676 (fetch_inferior_registers): Likewise.
1677 (store_inferior_registers): Likewise.
1678 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1679 (m68k_linux_frame_saved_pc): Delete.
1680 (m68k_linux_sigcontext_reg_offset,
1681 m68k_linux_ucontext_reg_offset): Define.
1682 (m68k_linux_get_sigtramp_info): New function.
1683 (m68k_linux_extract_return_value): Rewrite using regcache.
1684 (m68k_linux_store_return_value): Likewise.
1685 (m68k_linux_extract_struct_value_address): Likewise.
1686 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1687 Don't set deprecated_frame_saved_pc,
1688 deprecated_extract_return_value, deprecated_store_return_value,
1689 deprecated_extract_struct_value_address. Set
1690 extract_return_value, store_return_value,
1691 extract_struct_value_address.
1693 2003-07-07 Andrew Cagney <cagney@redhat.com>
1695 * expprint.c: Include "user-regs.h" instead of "frame.h".
1696 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1697 frame_map_regnum_to_name.
1698 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1699 (frame_map_name_to_regnum): Simplify, call
1700 user_reg_map_name_to_regnum.
1701 (frame_map_regnum_to_name): Simplify, call
1702 user_reg_map_regnum_to_name.
1703 (frame_register_unwind): Update.
1704 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1705 (_initialize_frame_reg): Call user_reg_add_builtin.
1706 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1707 (value_of_register): Use value_of_user_reg.
1708 * eval.c (evaluate_subexp_standard): Update.
1709 * parse.c (write_dollar_variable): Update.
1710 * d10v-tdep.c (d10v_print_registers_info): Update.
1711 * infcmd.c (registers_info): Update.
1712 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1713 (builtin_regs_h): Delete macro.
1714 (user_regs_h): Define.
1715 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1716 (builtin-regs.o): Delete target.
1717 (user-regs.o): Specify dependencies.
1718 (expprint.o): Update dependencies.
1719 (findvar.o): Update dependencies.
1720 (frame.o): Update dependencies.
1721 (std-regs.o): Update dependencies.
1723 2003-07-06 Christopher Faylor <cgf@redhat.com>
1725 * win32-nat.c (solib_symbols_add): Use one variable for all section
1726 address stuff. Pass variable rather than address of variable to
1727 safe_symbol_file_add.
1729 2003-07-06 Andreas Schwab <schwab@suse.de>
1731 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1733 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1735 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1737 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1739 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1741 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1743 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1744 * config/i386/nto.mh: New file.
1745 * config/i386/nm-nto.h: New file.
1746 * configure.host: Add i[3456]86-*-nto*.
1748 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1750 * remote-vx.c (vx_add_symbols): Fix compilation error.
1752 2003-07-03 Andrew Cagney <cagney@redhat.com>
1754 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1755 * gdbarch.h, gdbarch.c: Re-generate.
1756 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1757 (legacy_register_name): Declare.
1758 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1759 (REGISTER_NAME): Define.
1760 * sparc-tdep.c (legacy_register_name): New function.
1761 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1762 (REGISTER_NAME): Define.
1763 (hppa64_register_name): Declare.
1764 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1765 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1766 (hppa64_register_name): New function.
1767 (hppa_register_name): New function.
1768 * arch-utils.c (legacy_register_name): Delete.
1769 * arch-utils.h (legacy_register_name): Delete.
1771 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1773 * cli/cli-interp.c (cli_interpreter_resume): Update the
1774 cli_uiout's stream to gdb_stdout.
1776 2003-07-03 Andrew Cagney <cagney@redhat.com>
1778 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1780 * gdbarch.h, gdbarch.c: Re-generate.
1781 * regcache.c (init_regcache_descr): Use legacy code when either
1782 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1784 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1786 * NEWS: Move "set logging" entry into GDB 6.0 section.
1788 2003-07-02 Jim Blandy <jimb@redhat.com>
1790 * s390-tdep.c (struct frame_extra_info): new member:
1791 'stack_bought_valid'.
1792 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1793 initialize fextra_info->stack_bought.
1794 (s390_frameless_function_invocation): Don't trust the value of
1795 fextra_info_ptr->stack_bought unless
1796 fextra_info->stack_bought_valid is set.
1798 New S390 prologue analyzer.
1799 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1800 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1801 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1802 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1803 compute_x_addr, s390_on_stack, s390_store,
1804 s390_get_signal_frame_info): New functions.
1805 (S390_NUM_SPILL_SLOTS): New macro.
1806 (s390_get_frame_info): Rewritten.
1807 (is_arg_reg): Deleted.
1809 Break out the decoding of S/390 instructions into separate
1810 functions, to make it more legible, and easier to check
1812 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1813 is_rx, is_rxe): New functions.
1814 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1815 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1816 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1817 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1818 enums for opcode values. (Is this an improvement?)
1820 2003-07-02 Andrew Cagney <cagney@redhat.com>
1822 * i386-tdep.c: Revert change committed as part of trad-frame code
1825 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1827 * breakpoint.c (insert_catchpoint): Make static.
1829 2003-07-02 Andreas Schwab <schwab@suse.de>
1831 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1832 former ia64_push_arguments and ia64_push_return_address, and use
1833 regcache functions instead of read/write_register.
1834 (ia64_gdbarch_init): Set push_dummy_call instead of
1835 deprecated_push_arguments and deprecated_push_return_address.
1837 2003-07-01 Andreas Jaeger <aj@suse.de>
1839 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1841 Set %rax only to number of SSE registers used.
1843 2003-07-01 Andrew Cagney <cagney@redhat.com>
1845 * trad-frame.h: Update comments, a -1 .addr is reserved.
1846 (trad_frame_value_p, trad_frame_addr_p): Declare.
1847 (trad_frame_reg_p): Declare.
1848 (trad_frame_set_value): Rename trad_frame_register_value.
1849 (trad_frame_set_unknown): Declare.
1850 * trad-frame.c (trad_frame_realreg_p): New function.
1851 (trad_frame_addr_p, trad_frame_value_p): New function.
1852 (trad_frame_set_unknown): New function.
1853 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1854 (trad_frame_prev_register): Use trad_frame_realreg_p,
1855 trad_frame_addr_p and trad_frame_value_p.
1856 (trad_frame_set_value): Rename trad_frame_register_value.
1857 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1858 and trad_frame_set_value.
1860 2003-06-30 Jim Blandy <jimb@redhat.com>
1862 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1863 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1864 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1865 for 16 registers, and then 32 more bytes.
1866 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1868 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1869 Move up in the file, since it's now used by is_simple_arg.
1870 (is_simple_arg): Don't assume registers are four bytes long.
1871 Exclude all double arguments. Extended floats are not simple
1873 (is_power_of_two): New function.
1874 (pass_by_copy_ref): Call is_power_of_two, and check that the
1875 length fits in a register, rather than listing all the acceptable
1876 sizes. Extended floats are not passed by reference.
1877 (s390_push_arguments): Don't assume registers are four bytes long.
1878 Reserve an argument register to point to the buffer for structures
1879 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1880 S390_STACK_FRAME_OVERHEAD.
1882 2003-06-30 Andreas Schwab <schwab@suse.de>
1884 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1885 format error message.
1887 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1889 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1891 2003-06-30 David Carlton <carlton@kealia.com>
1893 Band-aid for PR c++/1245.
1894 * Makefile.in (cp-support.o): Depend on complaints_h.
1895 * cp-support.c: Include complaints.h. Add declaration for
1896 find_last_component.
1897 (cp_find_first_component): Separate code into
1898 cp_find_first_component_aux.
1899 (cp_find_first_component_aux): Call demangled_name_complaint.
1900 (demangled_name_complaint): New.
1902 2003-06-30 Andrew Cagney <cagney@redhat.com>
1904 * remote.c (remote_write_bytes): Explicitly compute and then use
1905 the payload size. Update comments to reflect. Fixes problem of
1906 GDB not sending small packets as found by Fred Fish.
1908 2003-06-30 Andrew Cagney <cagney@redhat.com>
1910 * remote.c (remote_async_wait): Fix -Wformat problem.
1912 2003-06-29 Andrew Cagney <cagney@redhat.com>
1914 * remote.c (remote_wait): Call error, and not warning, when the
1916 (remote_async_wait): Ditto.
1918 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1920 * sparc-tdep.c (sparc_y_regnum): Make external again.
1922 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1924 * cli/cli-logging.c (pop_output_files): Add void to function
1927 2003-06-29 Andrew Cagney <cagney@redhat.com>
1929 * frame.c (frame_register_unwind): Use unsigned char when dumping
1930 the buffer contents.
1932 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1934 * cli/cli-logging.c: New file.
1935 * cli-out.c (struct ui_out_data): Add original_stream.
1936 (cli_redirect): New function.
1937 (cli_ui_out_impl): Add cli_redirect.
1938 (cli_out_new): Initialize original_stream.
1939 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1940 (uo_redirect, ui_out_redirect): New.
1941 * ui-out.h (struct ui_out_impl): Add redirect member.
1942 (redirect_ftype): New.
1943 (ui_out_redirect): Add prototype.
1944 * Makefile.in: Add rules for cli-logging.c.
1945 * NEWS: Mention "set logging".
1947 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1949 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1951 2003-06-27 Andrew Cagney <cagney@redhat.com>
1953 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1954 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1955 * avr-tdep.c (avr_call_dummy_address): Delete function.
1956 (avr_gdbarch_init): Do not set call_dummy_address.
1958 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1960 * symfile.c (syms_from_objfile): Move variables to inner block.
1961 Move the checks for the non-mainline case a bit earlier to avoid
1962 doing some useless computations.
1964 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1966 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1968 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1970 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1973 2003-06-26 Michael Chastain <mec@shout.net>
1975 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1976 gdb/testsuite/gdb.c++/pr-1210.exp.
1978 2003-06-26 Andrew Cagney <cagney@redhat.com>
1980 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1981 altivec_expression.h and altivec_registers.h.
1983 2003-06-26 Andrew Cagney <cagney@redhat.com>
1985 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1986 info->mach when MIPS16. Patch suggested by Fred Fish.
1988 2003-06-26 Andrew Cagney <cagney@redhat.com>
1990 * utils.c (internal_vproblem): Print the problem to a reason
1991 buffer and then pass to query. Make the msg variable more local.
1993 2003-06-26 Andrew Cagney <cagney@redhat.com>
1995 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1996 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1997 * gdbarch.h, gdbarch.c: Re-generate.
1998 * frame-base.c (default_frame_args_address): Update. Use
1999 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2001 (default_frame_locals_address): Ditto for
2002 DEPRECATED_FRAME_LOCALS_ADDRESS.
2003 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2004 (vax_frame_num_args): Update.
2005 (vax_gdbarch_init): Update.
2006 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2007 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2008 * mcore-tdep.c (mcore_gdbarch_init): Update.
2009 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2010 * ia64-tdep.c (ia64_gdbarch_init): Update.
2011 * symtab.h (address_class): Update comments.
2012 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2013 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2014 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2015 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2016 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2017 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2018 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2019 * alpha-mdebug-tdep.c: Update.
2020 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2022 2003-06-26 Andreas Jaeger <aj@suse.de>
2024 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2025 of SSE registers so that varargs functions work. Rework handling
2026 of passing arguments on the stack.
2027 (x86_64_store_return_value): Return double and float values in SSE
2030 2003-06-24 Michael Chastain <mec@shout.net>
2032 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2033 the "constructor breakpoints ignored" bug.
2035 2003-06-25 David Carlton <carlton@kealia.com>
2037 * MAINTAINERS: Update e-mail address.
2039 2003-06-24 Jim Blandy <jimb@redhat.com>
2041 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2043 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2045 (ppc_linux_init_abi): Register it as the
2046 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2048 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2049 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2052 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2053 (ppc64_standard_linkage_target): Use it.
2055 2003-06-23 Andrew Cagney <cagney@redhat.com>
2057 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2058 for 0 "int0" and 4 "int32" sized registers.
2059 * gdbtypes.c (builtin_type_int0): Define.
2060 (build_gdbtypes): Initialize builtin_type_int0.
2061 * gdbtypes.h (builtin_type_int0): Declare.
2063 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2066 as characters are unsigned.
2068 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2071 * dwarfread.c (struct_type): Skip static fields without crashing.
2073 2003-06-22 Andrew Cagney <cagney@redhat.com>
2075 GDB 6.0 branch created.
2077 * PROBLEMS: Update. Empty.
2080 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2082 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2083 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2085 2003-06-22 Andrew Cagney <cagney@redhat.com>
2087 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2088 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2091 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2093 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2096 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2098 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2099 argument of val_print.
2100 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2101 to the address argument of baseclass_offset or target_read_memory.
2102 Do add it to the argument of cp_print_value_fields.
2104 2003-06-21 Andrew Cagney <cagney@redhat.com>
2106 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2107 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2108 instead of 0..NUM_REGS.
2109 (mips_register_reggroup_p): New function.
2110 (mips_pseudo_register_write): New function.
2111 (mips_pseudo_register_read): New function.
2112 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2113 based on the register's type.
2114 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2116 (mips_get_saved_register): Simplify. Assert that REGNO is a
2118 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2119 (mips_register_type): Replace mips_register_virtual_type. Map
2120 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2122 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2123 that the register is cooked / virtual.
2124 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2125 Only get the extra info when needed.
2126 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2127 (mips32_heuristic_proc_desc): Fetch the cooked register.
2128 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2129 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2130 (mips_print_register): Use gdbarch_register_type, instead of
2131 REGISTER_VIRTUAL_TYPE.
2132 (print_gp_register_row): Use gdbarch_register_type, instead of
2133 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2134 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2135 Print the pseudo / cooked registers.
2136 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2137 Print the pseudo / cooked registers.
2138 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2139 REG_NUM is pseudo / cooked.
2140 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2141 (mips_n32n64_xfer_return_value): Ditto.
2142 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2143 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2144 (mips_register_sim_regno): New function.
2145 (mips_gdbarch_init): Set deprecated_register_byte,
2146 register_group_p, pseudo_register_write, pseudo_register_read,
2147 register_sim_regno, and num_pseudo_regs. Set register_type,
2148 instead of register_virtual_type.
2149 * Makefile.in (mips-tdep.o): Update dependencies.
2150 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2151 REGISTER_VIRTUAL_TYPE.
2152 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2153 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2154 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2155 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2156 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2158 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2160 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2161 * cli/cli-cmds.c: Include "gdb_vfork.h".
2162 (shell_escape): Use vfork.
2164 2003-06-21 Andrew Cagney <cagney@redhat.com>
2166 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2167 32 bit floating-point register saves.
2169 * frame.h (deprecated_unwind_get_saved_register): Delete.
2170 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2171 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2172 and deprecated_get_next_frame_hack instead of
2173 deprecated_unwind_get_saved_register.
2175 * mips-tdep.c (mips_dump_tdep): Do not print
2176 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2178 * frame.c (get_frame_register): New function.
2179 (frame_unwind_register_signed): New function.
2180 (get_frame_register_signed): New function.
2181 (frame_unwind_register_unsigned): New function.
2182 (get_frame_register_unsigned): New function.
2183 * frame.h: Add comments on naming schema.
2184 (get_frame_register, frame_unwind_register_signed): Declare.
2185 (get_frame_register_signed, get_frame_register_signed): Declare.
2186 (frame_unwind_register_unsigned): Declare.
2187 (get_frame_register_unsigned): Declare.
2189 2003-06-20 Theodore A. Roth <troth@openavr.org>
2191 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2193 2003-06-20 Theodore A. Roth <troth@openavr.org>
2195 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2196 (avr_read_sp): Ditto.
2198 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2200 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2201 * config/arm/nm-linux.h: Likewise.
2202 * config/arm/tm-linux.h: Likewise.
2203 * config/ia64/nm-linux.h: Likewise.
2204 * config/ia64/tm-ia64.h: Likewise.
2205 * config/s390/tm-linux.h: Likewise.
2206 * config/s390/tm-s390.h: Likewise.
2207 * s390-nat.c: Likewise.
2208 * s390-tdep.c: Likewise.
2210 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2211 * config/ia64/linux.mt: Likewise.
2212 * config/m68k/linux.mh: Likewise.
2213 * config/mips/linux.mt: Likewise.
2214 * config/powerpc/linux.mh: Likewise.
2215 * config/sh/linux.mt: Likewise.
2217 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2219 * solib.c (solib_open): Change tests for whether to search
2220 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2223 2003-06-19 Theodore A. Roth <troth@openavr.org>
2225 * avr-tdep.c (avr_frame_address): Delete function.
2226 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2227 set_gdbarch_frame_args_address.
2229 2003-06-19 Andrew Cagney <cagney@redhat.com>
2231 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2232 (REGISTER_CONVERT_FROM_TYPE): Delete.
2233 (mips_register_convert_to_type): Delete declaration.
2234 (mips_register_convert_from_type): Delete declaration.
2235 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2238 2003-06-19 Michael Snyder <msnyder@redhat.com>
2240 * linux-nat.h: New file.
2241 * linux-nat.c: Include linux-nat.h.
2242 * lin-lwp.c: Include linux-nat.h.
2243 Move struct lwp_info def to linux-nat.h.
2244 * linux-proc.c: Include linux-nat.h.
2245 (linux_make_note_section): Iterate over lwps instead of threads.
2246 (linux_do_thread_registers): Use lwp instead of merged pid.
2247 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2248 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2249 Add dependency on linux_nat_h.
2251 2003-06-19 Theodore A. Roth <troth@openavr.org>
2253 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2255 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2257 * varobj.c (get_type, get_target_type): Use check_typedef.
2259 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2261 * breakpoint.c (insert_catchpoint): Call internal_error.
2263 2003-06-19 Theodore A. Roth <troth@openavr.org>
2265 * avr-tdep.c (avr_push_dummy_code): Delete function.
2266 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2268 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2270 * arch-utils.c (default_prepare_to_proceed): Remove.
2271 (generic_prepare_to_proceed): Remove.
2272 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2273 (generic_prepare_to_proceed): Remove prototype.
2274 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2275 * gdbarch.c: Regenerate.
2276 * gdbarch.h: Regenerate.
2277 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2278 * hppah-nat.c (hppa_switched_threads): Remove.
2279 * infrun.c (prepare_to_proceed): New static function, copied from
2280 generic_prepare_to_proceed. Remove select_it argument.
2281 (proceed): Call prepare_to_proceed.
2282 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2284 (ptrace_wait): Don't set the removed variables.
2285 (hppa_switched_threads): Remove.
2286 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2287 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2288 (lin_lwp_prepare_to_proceed): Remove prototype.
2289 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2290 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2292 2003-06-18 Theodore A. Roth <troth@openavr.org>
2294 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2296 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2297 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2298 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2299 (AVR_PROLOGUE_*): Enumerate prologue types.
2300 (struct frame_extra_info): Remove.
2301 (struct avr_unwind_cache): Define.
2302 (avr_write_sp): Delete function.
2303 (avr_read_fp): Ditto.
2304 (avr_init_extra_frame_info): Ditto.
2305 (avr_pop_frame): Ditto.
2306 (avr_frame_saved_pc): Ditto.
2307 (avr_saved_pc_after_call): Ditto.
2308 (avr_push_return_address): Ditto.
2309 (avr_frame_chain): Ditto.
2310 (avr_store_struct_return): Ditto.
2311 (avr_push_arguments): Ditto.
2312 (avr_scan_prologue): Update comments. Changed to set up the info for
2313 cache unwinding. Now returns end of prologue PC.
2314 (avr_skip_prologue): Better handling of functions lacking a prologue
2315 by using avr_scan_prologue.
2316 (avr_scan_arg_moves): New function.
2317 (avr_saved_regs_unwinder): Ditto.
2318 (avr_frame_unwind_cache): Ditto.
2319 (avr_unwind_pc): Ditto.
2320 (avr_frame_this_id): Ditto.
2321 (avr_frame_prev_register): Ditto.
2322 (avr_frame_p): Ditto.
2323 (avr_frame_base_address ): Ditto.
2324 (avr_unwind_dummy_id): Ditto.
2325 (avr_push_dummy_code): Ditto.
2326 (push_stack_item): Ditto.
2327 (pop_stack_item): Ditto.
2328 (avr_push_dummy_call): Ditto.
2329 (struct stack_item): Define.
2330 (avr_frame_unwind): Declare structure.
2331 (avr_frame_base): Ditto.
2332 (avr_gdbarch_init): Remove calls to
2333 set_gdbarch_deprecated_init_frame_pc,
2334 set_gdbarch_deprecated_target_read_fp,
2335 set_gdbarch_deprecated_dummy_write_sp,
2336 set_gdbarch_deprecated_fp_regnum,
2337 set_gdbarch_deprecated_push_arguments,
2338 set_gdbarch_deprecated_push_return_address,
2339 set_gdbarch_deprecated_pop_frame,
2340 set_gdbarch_deprecated_store_struct_return,
2341 set_gdbarch_deprecated_frame_init_saved_regs,
2342 set_gdbarch_deprecated_init_extra_frame_info,
2343 set_gdbarch_deprecated_frame_chain,
2344 set_gdbarch_deprecated_frame_saved_pc,
2345 set_gdbarch_deprecated_saved_pc_after_call.
2346 Add calls to set_gdbarch_push_dummy_call,
2347 set_gdbarch_push_dummy_code,
2348 frame_unwind_append_predicate,
2349 frame_base_set_default,
2350 set_gdbarch_unwind_dummy_id,
2351 set_gdbarch_unwind_pc.
2354 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2356 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2357 registers for H8/300S.
2358 (h8300_print_registers_info): Ditto.
2359 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2361 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2363 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2364 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2365 (lin_lwp_wait): Likewise. Update comments.
2366 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2367 (pull_pid_from_list, linux_record_stopped_pid): New.
2369 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2371 * ada-lang.c (scan_discrim_bound): Name first argument.
2372 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2373 declared by ALL_BLOCK_SYMBOLS.
2375 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2377 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2378 ("regcache.h"): Include it.
2379 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2381 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2383 * NEWS: Mention gdbserver detach change and "disconnect" command.
2384 * infcmd.c (disconnect_command): New function.
2385 (_initialize_infcmd): Add ``disconnect'' command.
2386 * remote.c (remote_async_detach): Delete.
2387 (remote_detach): Merge remote_async_detach.
2388 (remote_disconnect): New.
2389 (init_remote_ops): Set to_disconnect.
2390 (init_remote_cisco_ops): Likewise.
2391 (init_remote_async_ops): Likewise. Use remote_detach.
2392 * target.c (cleanup_target): Default to_disconnect.
2393 (update_current_target): Inherit to_disconnect.
2394 (target_disconnect, debug_to_disconnect): New functions.
2395 (setup_target_debug): Set to_disconnect.
2396 * target.h (struct target_ops): Add to_disconnect.
2397 (target_disconnect): Add prototype.
2399 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2401 * breakpoint.c (insert_catchpoint): New function.
2402 (insert_breakpoints): Use catch_exceptions to call
2403 insert_catchpoint. Disable catchpoints if they fail to insert.
2405 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2407 * symfile.c (reread_symbols): Clear sym_private.
2409 2003-06-17 Andrew Cagney <cagney@redhat.com>
2411 * trad-frame.h (struct frame_info): Add opaque declaration.
2412 * remote-fileio.h (struct cmd_list_element): Add opaque
2414 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2417 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2419 * remote.c (remote_prepare_to_store): Replace call to
2420 deprecated_read_register_bytes with multiple regcache_raw_read
2423 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2425 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2426 (nto_find_and_open_solib): Likewise.
2427 (nto_init_solib_absolute_prefix): Likewise.
2428 (_initialize_nto_tdep): Fix indentation.
2430 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2432 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2434 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2436 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2438 2003-06-17 Jim Blandy <jimb@redhat.com>
2440 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2442 2003-06-16 Theodore A. Roth <troth@openavr.org>
2444 * avr-tdep.c (avr_extract_return_value): New function.
2445 (avr_gdbarch_init): Set extract_return_value method.
2447 2003-06-16 Andrew Cagney <cagney@redhat.com>
2449 * frame.h (deprecated_get_next_frame_hack): Declare.
2450 * frame.c (legacy_saved_regs_prev_register): Only require
2451 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2452 there are always saved regs.
2453 (deprecated_generic_get_saved_register): Do not require
2454 DEPRECATED_FRAME_INIT_SAVED_REGS.
2455 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2456 use frame ID unwind instead.
2457 (deprecated_get_next_frame_hack): New function.
2459 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2461 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2462 (h8300_push_dummy_call): ...this function. Some minor optimization.
2463 (h8300_push_return_address): Remove.
2464 (h8300_gdbarch_init): Remove calls to
2465 set_gdbarch_deprecated_dummy_write_sp,
2466 set_gdbarch_deprecated_push_arguments and
2467 set_gdbarch_deprecated_push_return_address.
2468 Add call to set_gdbarch_push_dummy_call.
2470 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2472 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2473 (E_PSEUDO_EXR_REGNUM): Ditto.
2474 (h8300_is_argument_spill): Check for instructions moving argument
2475 registers into safe registers.
2476 (h8300_skip_prologue): Check for stm instruction to push registers
2477 used for register variables onto stack.
2478 (gdb_print_insn_h8300): Remove.
2479 (h8300_examine_prologue): Add a comment.
2480 (h8300_register_name): Take pseudo registers into account.
2481 (h8300s_register_name): Ditto.
2482 (h8300sx_register_name): Ditto.
2483 (h8300_print_register): Ditto.
2484 (h8300_print_registers_info): Define "nice" printing order.
2485 (h8300_saved_pc_after_call): Take pseudo registers into account.
2486 (h8300_register_type): Ditto. Return type used for remote connection
2487 when requesting real CCR or EXR register, return actual type when
2488 requesting pseudo CCR or EXR.
2489 (h8300_pseudo_register_read): New function.
2490 (h8300_pseudo_register_write): Ditto.
2491 (h8300_dbg_reg_to_regnum): Ditto.
2492 (h8300s_dbg_reg_to_regnum): Ditto.
2493 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2494 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2495 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2496 set_gdbarch_print_insn architecture dependent.
2497 Call set_gdbarch_pseudo_register_read and
2498 set_gdbarch_pseudo_register_write.
2499 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2501 2003-06-16 Andrew Cagney <cagney@redhat.com>
2503 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2504 * gdbarch.h, gdbarch.c: Re-generate.
2505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2506 * s390-tdep.c (s390_gdbarch_init): Update.
2507 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2508 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2509 * mips-tdep.c (mips_gdbarch_init): Update.
2510 * mcore-tdep.c (mcore_gdbarch_init): Update.
2511 * cris-tdep.c (cris_gdbarch_init): Update.
2512 * infcall.c (call_function_by_hand): Update.
2513 * ia64-tdep.c (ia64_push_arguments): Update comment.
2514 * frame.c (legacy_get_prev_frame): Do not assume
2515 SAVE_DUMMY_FRAME_TOS_P.
2516 * dummy-frame.c (find_dummy_frame): Update comment.
2518 2003-06-16 Andrew Cagney <cagney@redhat.com>
2520 * regcache.c (do_cooked_read): Do not use register_valid_p.
2522 2003-06-15 Theodore A. Roth <troth@openavr.org>
2524 * avr-tdep.c (avr_register_type): Remove a blank line.
2525 (avr_scan_prologue): Correct some comments.
2527 2003-06-15 Theodore A. Roth <troth@openavr.org>
2529 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2531 Properly scan prologues generated by gcc with the -mcall-prologues
2533 Add code to scan -mcall-prologues for mega devices.
2535 2003-06-15 Theodore A. Roth <troth@openavr.org>
2537 * avr-tdep.c (avr_register_byte): Delete function.
2538 (avr_register_raw_size): Delete function.
2539 (avr_register_virtual_size): Delete function.
2540 (avr_register_virtual_type): Delete function.
2541 (avr_register_type): New function.
2542 (avr_address_to_pointer): Remove unused code.
2543 (avr_read_fp): Need to read FP as two separate bytes due to change to
2544 avr_register_type() usage.
2545 (avr_gdbarch_init): Don't set deprecated_register_size.
2546 Don't set deprecated_register_bytes.
2547 Don't set deprecated_register_byte.
2548 Don't set deprecated_register_raw_size.
2549 Don't set deprecated_max_register_raw_size.
2550 Don't set deprecated_register_virtual_size.
2551 Don't set deprecated_max_register_virtual_size.
2552 Don't set deprecated_register_virtual_type.
2553 Set register_type method.
2555 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2557 * Makefile.in (linux-nat.o): Add rule.
2558 * linux-nat.c: New file.
2559 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2560 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2561 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2562 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2563 * config/arm/linux.mh (NATDEPFILES): Likewise.
2564 * config/i386/linux.mh (NATDEPFILES): Likewise.
2565 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2566 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2567 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2568 * config/mips/linux.mh (NATDEPFILES): Likewise.
2569 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2570 * config/s390/s390.mh (NATDEPFILES): Likewise.
2571 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2573 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2575 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2576 replace out-of-date comment.
2578 2003-06-15 Andrew Cagney <cagney@redhat.com>
2580 * rdi-share/host.h (Fail): Change to a varargs function.
2581 * remote-rdi.c (Fail): Update.
2583 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2585 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2586 (i386_convert_register_p, i386_register_to_value,
2587 i386_register_from_value): Handle types longer than 8 bytes.
2589 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2591 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2592 Move floating-point code to new function in i387-tdep.c.
2593 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2594 New functions containing code moved here from i386-tdep.c.
2595 * i387-tdep.h: Add opaque declaration for `struct type'.
2596 (i387_register_to_value, i387_value_to_register): New prototypes.
2597 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2598 (x86_64_init_abi): Set convert_register_p, register_to_value and
2599 value_to_register here.
2601 2003-06-14 Andrew Cagney <cagney@redhat.com>
2603 * mips-tdep.c (mips_register_to_value): Make static.
2604 (mips_value_to_register): Make static.
2605 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2606 * ia64-tdep.c (ia64_register_raw_size): Make static.
2607 (ia64_register_virtual_size): Make static.
2608 (ia64_register_byte): Make static.
2609 * i387-tdep.c: Include "i387-tdep.h".
2610 (print_387_control_word): Delete function.
2611 (print_387_status_word): Delete function.
2612 (print_387_status_bits): Delete function.
2613 (print_387_control_bits): Delete function.
2614 * Makefile.in (i387-tdep.o): Update dependencies.
2615 * rdi-share/host.h (Fail): Declare.
2616 * remote-rdi.c (Fail): Update to match declaration.
2618 2003-06-14 Andrew Cagney <cagney@redhat.com>
2620 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2621 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2622 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2623 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2624 * README: Delete reference to remote-array.
2625 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2626 (remote-array.o): Delete target.
2627 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2628 * remote-array.c: Delete file.
2630 2003-06-14 Andrew Cagney <cagney@redhat.com>
2631 Mark Kettenis <kettenis@gnu.org>
2633 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2634 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2635 parameter with "frame".
2636 * gdbarch.h, gdbarch.c: Re-generate.
2637 * frame.h (put_frame_register): Declare.
2638 * frame.c (put_frame_register): New function.
2639 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2640 (legacy_register_to_value): Rewrite, use "frame" to get the
2642 (legacy_value_to_register): Rewrite, use "frame" to find the
2643 register's location before storing.
2644 * arch-utils.h (legacy_convert_register_p): Update.
2645 (legacy_register_to_value, legacy_value_to_register): Update.
2646 * findvar.c (value_from_register): Rewrite, eliminate use of
2647 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2648 "frame" to REGISTER_TO_VALUE.
2649 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2650 lval_reg_frame_relative + lval_register branch of the switch. Do
2651 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2652 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2653 I386_EDI_REGNUM): New defines.
2654 (i386_next_regnum, i386_convert_register_p,
2655 i386_register_to_value, i386_value_to_register): New functions.
2656 (i386_register_convertible, i386_register_convert_to_virtual,
2657 i386_convert_to_raw): Remove functions.
2658 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2659 value_to_register instead of register_convertible,
2660 register_convert_to_virtual and register_convert_to_raw.
2661 * mips-tdep.c (mips_convert_register_p): New function.
2662 (mips_value_to_register): Replace mips_register_convert_from_type.
2663 (mips_register_to_value): Replace mips_register_convert_to_type.
2664 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2666 * alpha-tdep.c (alpha_convert_register_p): Update.
2667 (alpha_value_to_register): Update, store the register.
2668 (alpha_register_to_value): Update, fetch the register.
2670 2003-06-14 Theodore A. Roth <troth@openavr.org>
2672 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2673 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2674 Don't set deprecated_call_dummy_words.
2675 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2676 Don't set remote_translate_xfer_address.
2677 (avr_io_reg_read_command): Remove commented out debug printf.
2680 2003-06-14 Theodore A. Roth <troth@openavr.org>
2682 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2683 causes gdb to seg fault.
2685 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2687 * sparc-nat.c (fetch_inferior_registers): Correct
2688 a reference to "registers".
2690 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2692 * Makefile.in (exc_request_U_h): Define
2693 (exc_request_S_h): Likewise.
2694 (msg_reply_S_h): Likewise.
2695 (msg_U_h): Likewise.
2696 (notify_S_h): Likewise.
2697 (process_reply_S_h): Likewise.
2698 (gnu-nat.o): Depend on gdb_obstack_h
2699 * gnu-nat.c: Include "gdb_obstack.h".
2701 2003-06-13 Andrew Cagney <cagney@redhat.com>
2703 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2704 * gdbarch.h, gdbarch.c: Re-generate.
2706 2003-06-13 Andrew Cagney <cagney@redhat.com>
2708 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2709 when deprecated REGISTER macros can be deleted.
2710 * gdbarch.h, gdbarch.c: Re-generate.
2712 2003-06-13 Jim Blandy <jimb@redhat.com>
2714 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2715 Linux entry point symbols for _dl_debug_state, too.
2717 2003-06-13 Andrew Cagney <cagney@redhat.com>
2719 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2720 available, do not use the FP register, and always save the TOS.
2721 * dummy-frame.c (dummy_frame_this_id): Do not assert
2722 SAVE_DUMMY_FRAME_TOS.
2723 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2724 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2725 (i386_push_dummy_call): Add 8 to the returned SP.
2726 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2727 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2728 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2729 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2730 (x86_64_push_dummy_call): Return "sp + 16".
2731 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2732 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2733 save_dummy_frame_tos.
2735 2003-06-13 Jim Blandy <jimb@redhat.com>
2737 * frv-tdep.c (frv_use_struct_convention): Delete static
2738 declaration for function deleted in my change of 2003-06-12.
2740 2003-06-13 Theodore A. Roth <troth@openavr.org>
2742 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2743 (avr_pointer_to_address): Shift code addrs left 1 bit.
2744 (avr_convert_from_func_ptr_addr): Delete function since operation is
2745 better handled by avr_address_to_pointer and avr_pointer_to_address.
2746 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2748 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2750 From Kelley Cook <kelleycook@wideopenwest.com>:
2751 * configure.host: Accept i[34567]86 variants.
2752 * configure.tgt: Likewise.
2753 * nlm/configure.in: Likewise.
2754 * nlm/configure: Regenerated.
2756 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2758 * arm-tdep.c (solib-svr4.h): Dont' include it.
2759 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2760 * arm-linux-tdep.c: ... here. Make static.
2761 (arm_linux_init_abi): Register it.
2762 (solib-svr4.h): Include it.
2763 * Makefile.in: Update dependencies.
2764 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2765 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2767 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2769 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2770 indicate registers used for return values.
2771 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2772 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2774 (h8300_init_extra_frame_info): Ditto.
2775 (h8300_frame_locals_address): Removed.
2776 (h8300_frame_args_address): Removed.
2777 (h8300_extract_return_value): Use new regcache structure. Only care
2779 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2780 (h8300_store_return_value): Use new regcache structure. Only care
2782 (h8300h_store_return_value): Same function for 32 bit CPUs.
2783 (h8300_store_struct_return): Removed.
2784 (h8300_extract_struct_value_address): Use new regcache structure.
2785 (h8300h_extract_struct_value_address): Removed.
2786 (h8300_push_dummy_code): New function.
2787 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2788 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2789 set_gdbarch_store_return_value architecture dependent.
2790 Call set_gdbarch_push_dummy_code and
2791 set_gdbarch_extract_struct_value_address.
2792 Remove calls to set_gdbarch_frame_args_address,
2793 set_gdbarch_frame_locals_address,
2794 set_gdbarch_deprecated_store_struct_return,
2795 set_gdbarch_deprecated_extract_return_value,
2796 set_gdbarch_deprecated_extract_struct_value_address,
2797 set_gdbarch_deprecated_call_dummy_words and
2798 set_gdbarch_deprecated_sizeof_call_dummy_words.
2800 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2802 * h8300-tdep.c (h8300_register_byte): Remove.
2803 (h8300h_register_byte): Remove.
2804 (h8300_register_virtual_type): Remove. Substitute by...
2805 (h8300_register_type): New function.
2806 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2807 (h8300h_extract_struct_value_address): Ditto.
2808 (h8300_gdbarch_init): Drop calls to
2809 set_gdbarch_deprecated_register_byte and
2810 set_gdbarch_deprecated_register_virtual_type.
2811 Add call to set_gdbarch_register_type.
2813 2003-06-13 Andrew Cagney <cagney@redhat.com>
2815 * gdbarch.sh: Update comments on registers.
2816 (deprecated_register_byte): Rename register_byte.
2817 (deprecated_register_raw_size): Rename register_raw_size.
2818 (deprecated_register_virtual_size): Rename register_virtual_size.
2819 (deprecated_register_virtual_type): Rename register_virtual_type.
2820 * gdbarch.h, gdbarch.c: Re-generate.
2821 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2822 * vax-tdep.c (vax_gdbarch_init): Update.
2823 * v850-tdep.c (v850_gdbarch_init): Update.
2824 * sparc-tdep.c (sparc_gdbarch_init): Update.
2825 * sh-tdep.c (sh_gdbarch_init): Update.
2826 * s390-tdep.c (s390_gdbarch_init): Update.
2827 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2828 * ns32k-tdep.c: Update.
2829 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2830 * mips-tdep.c (mips_gdbarch_init): Update.
2831 * mcore-tdep.c (mcore_gdbarch_init): Update.
2832 * m68k-tdep.c (m68k_gdbarch_init): Update.
2833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2834 * ia64-tdep.c (ia64_gdbarch_init): Update.
2835 * hppa-tdep.c (hppa_gdbarch_init): Update.
2836 * h8300-tdep.c (h8300_gdbarch_init): Update.
2837 * frv-tdep.c (frv_gdbarch_init): Update.
2838 * cris-tdep.c (cris_gdbarch_init): Update.
2839 * avr-tdep.c (avr_gdbarch_init): Update.
2840 * alpha-tdep.c (alpha_gdbarch_init): Update.
2841 * arm-tdep.c (arm_gdbarch_init): Update.
2843 2003-06-13 Andrew Cagney <cagney@redhat.com>
2845 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2846 mips_o32_use_struct_convention with always_use_struct_convention.
2848 2003-06-12 David Carlton <carlton@kealia.com>
2850 * cp-namespace.c (cp_set_block_scope): Comment out
2851 processing_has_namespace_info branch.
2853 2003-06-12 Jim Blandy <jimb@redhat.com>
2855 Recognize and skip 64-bit PowerPC Linux linkage functions.
2856 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2857 insn_pattern, insns_match_pattern, d_field, ds_field): New
2858 functions, macros, and types for working with PPC instructions.
2859 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2860 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2861 ppc64_skip_trampoline_code): New functions, variables, and macros
2862 for recognizing and skipping linkage functions.
2863 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2864 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2866 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2867 register offsets for both the 32- and 64-bit interfaces.
2869 Actually finish the job started by my change of 2003-05-29.
2870 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2871 other #definition of this.
2872 (ppc_linux_skip_trampoline_code): Remove declaration.
2873 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2875 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2878 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2879 'long' on ppc64-*-linux*.
2881 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2882 isn't #defined, assume the register doesn't exist: act as if
2883 tdep->ppc_mq_regnum were -1.
2885 * configure.host, configure.tgt: Add entries for
2886 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2888 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2891 * arch-utils.c (always_use_struct_convention): New function.
2892 * arch-utils.h (always_use_struct_convention): New prototype.
2893 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2894 (alpha_gdbarch_init): Register always_use_struct_convention,
2895 instead of alpha_use_struct_convention.
2896 * cris-tdep.c (cris_use_struct_convention): Delete.
2897 (cris_gdbarch_init): Register always_use_struct_convention,
2898 instead of cris_use_struct_convention.
2899 * frv-tdep.c (frv_use_struct_convention): Delete.
2900 (frv_gdbarch_init): Register always_use_struct_convention,
2901 instead of frv_use_struct_convention.
2902 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2903 (h8300_gdbarch_init): Register always_use_struct_convention,
2904 instead of h8300_use_struct_convention.
2905 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2906 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2907 instead of mips_o32_use_struct_convention.
2909 2003-06-12 Andrew Cagney <cagney@redhat.com>
2911 * wince.c: Include "mips-tdep.h".
2912 * mips-tdep.h (mips_next_pc): Declare.
2913 * mcore-tdep.c: Make more local functions static.
2914 * Makefile.in (wince.o): Update dependencies.
2916 2003-06-12 David Carlton <carlton@kealia.com>
2918 * symtab.c (lookup_symbol_aux_minsyms): Replace
2919 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2920 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2921 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2922 SYMBOL_NATURAL_NAME.
2924 2003-06-12 Andreas Schwab <schwab@suse.de>
2926 * Makefile.in (tuiDisassem.o): Update dependencies.
2928 2003-06-12 David Carlton <carlton@bactrian.org>
2930 * symtab.h: Delete declaration of make_symbol_overload_list.
2931 Add declaration of lookup_partial_symbol.
2932 * symtab.c (remove_params): Move to cp-support.c.
2933 (overload_list_add_symbol, make_symbol_overload_list)
2934 (sym_return_val_size, sym_return_val_index): Ditto.
2935 (lookup_partial_symbol): Make extern.
2936 * cp-support.h: Add declaration of make_symbol_overload_list.
2937 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2938 symtab.h, and block.h.
2939 (remove_params): Move here from symtab.c.
2940 (overload_list_add_symbol, make_symbol_overload_list)
2941 (sym_return_val_size, sym_return_val_index): Ditto.
2942 * valops.c: Include cp-support.h.
2943 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2944 frame_h, and block_h.
2945 (valops.o): Depend on cp_support_h.
2947 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2949 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2950 substitute by NUM_REGS throughout.
2951 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2952 (h8300s_register_name): New function for H8S registers.
2953 (h8300sx_register_name): Ditto for H8SX registers.
2954 (h8300_print_register): Revise register printing, avoid depending
2956 (h8300_register_byte): Only care for H8/300 registers.
2957 (h8300h_register_byte): New function for any other architecture.
2958 (h8300_register_raw_size): Remove.
2959 (h8300_register_virtual_type): Revise to return actually useful
2961 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2962 (h8300h_extract_struct_value_address): New function for any other
2964 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2965 set_gdbarch_register_name, set_gdbarch_register_byte,
2966 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2967 Remove calls to set_gdbarch_deprecated_register_size,
2968 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2969 set_gdbarch_deprecated_max_register_raw_size,
2970 set_gdbarch_register_virtual_size and
2971 set_gdbarch_deprecated_max_register_virtual_size entirely.
2972 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2973 set_gdbarch_long_double_bit.
2975 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2977 * doublest.c (convert_doublest_to_floatformat): When dealing
2978 with the implied integer bit, only alter mant_bits if we are
2979 processing a full 32 bits of mantissa.
2981 2003-06-11 David Carlton <carlton@bactrian.org>
2983 * dictionary.h: New.
2984 * dictionary.c: New.
2985 * block.h: Add opaque declaration for struct dictionary.
2986 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2988 (BLOCK_DICT): New macro.
2989 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2990 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2992 (ALL_BLOCK_SYMBOLS): Update definition.
2993 * Makefile.in (SFILES): Add dictionary.c.
2994 (dictionary_h): New.
2995 (COMMON_OBS): Add dictionary.o.
2996 (dictionary.o): New.
2997 (ada-lang.o): Depend on dictionary_h.
2998 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2999 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3000 (mi-cmd-stack.o): Ditto.
3001 (gdbtk-cmds.o): Update dependencies.
3002 (gdbtk-stack.o): Ditto.
3003 * ada-lang.c: Include dictionary.h.
3004 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3005 (fill_in_ada_prototype, debug_print_block): Ditto.
3006 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3007 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3009 * mdebugread.c: Include dictionary.h.
3010 (struct parse_stack): Delete 'maxsyms' member.
3011 (parse_symbol): Update calls to new_block. Delete calls to
3012 shrink_block. Use dictionary methods.
3013 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3014 Update calls to new_symtab. Don't maintain maxsyms data.
3015 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3016 (add_symbol): Just call dict_add_symbol.
3017 (new_symtab): Delete 'maxsyms' argument.
3018 (new_symtab): Update calls to new_block.
3019 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3020 (shrink_block): Delete function.
3021 (fixup_sigtramp): Update call to new_block. Add symbol via
3023 * jv-lang.c: Include dictionary.h.
3024 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3025 appropriately. Set class_symtab->free_func. Make sure the
3026 blockvector is big enough to hold two blocks.
3027 (add_class_symtab_symbol): Use dictionary methods.
3028 (free_class_block): New function.
3029 (type_from_class): Replace explicit iteration by
3031 * symtab.h (struct symtab): Replace 'free_ptr' method by
3033 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3035 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3037 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3038 Include dictionary.h.
3039 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3040 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3042 * objfiles.c: Include dictionary.h.
3043 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3044 * buildsym.c: Include dictionary.h.
3045 (finish_block): Use dictionary methods.
3046 (end_symtab): Set free_func to NULL, not free_ptr.
3047 * tracepoint.c: Include dictionary.h.
3048 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3049 (scope_info): Ditto.
3050 * stack.c: Include dictionary.h.
3051 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3052 (print_block_frame_labels, print_frame_arg_vars)
3053 (print_frame_args): Ditto.
3054 * symmisc.c (free_symtab_block): Use dictionary methods.
3055 (dump_symtab): Ditto.
3056 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3057 Include dictionary.h.
3058 * symfile.h: Delete declarations of sort_block_syms,
3060 * symfile.c (sort_block_syms): Delete.
3061 (sort_symtab_syms): Delete.
3062 * symtab.c: Include dictionary.h.
3063 (lookup_block_symbol): Use dictionary iterators.
3064 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3065 (search_symbols, make_symbol_completion_list): Ditto.
3066 (make_symbol_overload_list): Ditto.
3067 * valops.c (value_of_local): Use dict_empty.
3068 Include dictionary.h.
3070 2003-06-11 J. Brobecker <brobecker@gnat.com>
3072 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3074 2003-06-11 David Carlton <carlton@bactrian.org>
3076 * block.h (BLOCK_SHOULD_SORT): Delete.
3077 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3079 * ada-lang.c (ada_add_block_symbols): Ditto.
3080 * symfile.c (sort_block_syms): Delete.
3081 (sort_symtab_syms): Ditto.
3082 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3084 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3085 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3086 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3087 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3088 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3089 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3090 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3092 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3094 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3097 2003-06-11 Andrew Cagney <cagney@redhat.com>
3099 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3100 REGISTER_CONVERTIBLE.
3101 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3102 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3103 * gdbarch.h, gdbarch.c: Re-generate.
3104 * arch-utils.h (deprecated_register_convertible_not): Rename
3105 generic_register_convertible_not.
3106 * arch-utils.c (deprecated_register_convertible_not): Rename
3107 generic_register_convertible.
3108 (legacy_convert_register_p, legacy_register_to_value): Update.
3109 * sh-tdep.c (sh64_push_arguments): Update.
3110 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3111 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3112 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3113 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3114 * arch-utils.c (legacy_value_to_register): Update.
3115 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3116 (rs6000_register_convert_to_raw): Make parameter "from" const.
3117 * mips-tdep.c (mips_gdbarch_init): Update.
3118 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3119 * infcmd.c (default_print_registers_info): Update.
3120 * ia64-tdep.c (ia64_gdbarch_init): Update.
3121 (ia64_register_convert_to_raw): Make parameter "from" const.
3122 * i386-tdep.c (i386_gdbarch_init): Update.
3123 (i386_register_convert_to_raw): Update.
3125 2003-06-11 Andrew Cagney <cagney@redhat.com>
3127 * remote-fileio.c: Include "remote-fileio.h".
3128 * Makefile.in (remote-fileio.o): Update dependencies.
3129 (remote_fileio_h): Fix typo.
3131 2003-06-11 Andrew Cagney <cagney@redhat.com>
3133 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3134 (xstormy16_save_dummy_frame_tos): Make static.
3135 (_initialize_xstormy16_tdep): Add declaration.
3136 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3137 * v850-tdep.c: Make local functions static.
3138 (_initialize_v850_tdep): Add declaration.
3139 * sparc-tdep.c: Make local functions static.
3140 (_initialize_sparc_tdep): Add declaration.
3141 * sh-tdep.c: Make local functions static.
3142 (_initialize_sh_tdep): Add declaration.
3143 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3144 * s390-tdep.c: Make local functions static.
3145 (_initialize_s390_tdep): Add declaration.
3146 * dbxread.c (find_stab_function_addr): Make static.
3147 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3148 * ocd.c (_initialize_remote_ocd): Add declaration.
3149 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3150 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3151 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3152 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3153 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3154 * remote-array.c (_initialize_array): Add declaration.
3155 (_initialize_remote_monitors): Add declaration.
3156 * remote-mips.c: Make local functions static.
3157 (_initialize_remote_mips): Add declaration.
3158 * mcore-tdep.c: Make all local functions static.
3159 (_initialize_mcore_tdep): Add declaration.
3160 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3161 * abug-rom.c (_initialize_abug_rom): Add declaration.
3162 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3163 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3164 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3165 * remote-est.c (_initialize_est): Add declaration.
3166 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3167 (m68hc11_call_dummy_address): Make static.
3168 * ia64-tdep.c: Make local functions static.
3169 (_initialize_ia64_tdep): Add declaration.
3170 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3171 * monitor.c (monitor_wait_filter): Make static.
3172 (_initialize_remote_monitors): Add declaration.
3173 * remote-hms.c (_initialize_remote_hms): Add declaration.
3174 * remote-e7000.c (fetch_regs_from_dump): Make static.
3175 (expect_n): Make static.
3176 (_initialize_remote_e7000): Add declaration.
3177 * ser-e7kpc.c: Always include "defs.h".
3178 (_initialize_ser_e7000pc): Add declaration.
3179 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3180 * cris-tdep.c: Make all but one function static.
3181 (_initialize_cris_tdep): Add declaration.
3182 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3183 * solib.c (update_solib_list): Make static.
3184 (_initialize_solib): Add declaration.
3185 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3186 (_initialize_avr_tdep): Add declaration.
3187 * remote-rdi.c (voiddummy): Make static.
3188 (_initialize_remote_rdi): Add declaration.
3189 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3190 * remote-rdp.c (send_rdp): Make static.
3191 (_initialize_remote_rdp): Add declaration.
3192 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3194 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3196 * remote-fileio.c: Make ari happy.
3198 2003-06-10 J. Brobecker <brobecker@gnat.com>
3200 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3201 fetching the trailing bytes of the buffer we are about to write.
3203 2003-06-10 Andrew Cagney <cagney@redhat.com>
3205 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3206 * Makefile.in (remote-fileio.o): Update dependencies.
3207 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3208 include <setjmp.h>, or <sys/types.h> conditional on USG.
3209 (remote_fio_jmp_buf): Delete global variable.
3211 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3212 Martin M. Hunt <hunt@redhat.com>
3214 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3215 (SFILES): Add remote-fileio.c.
3216 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3217 dependencies for building remote.o.
3218 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3219 * remote-fileio.h: New header file defining remote File-I/O interface.
3220 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3221 static storage class.
3222 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3224 (_initialize_remote): Call initialize_remote_fileio().
3225 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3226 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3227 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3228 (captured_main): Initialize new ui_files.
3229 * ui-file.c: Add read and fgets input functions.
3230 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3231 (null_file_read): New function.
3232 (ui_file_read): New function.
3233 (set_ui_file_read): New function.
3234 (stdio_file_read): New function.
3235 * ui-file.h: New type ui_file_read_ftype.
3236 (set_ui_file_read): Declare.
3237 (ui_file_read): Declare.
3239 2003-06-09 Andrew Cagney <cagney@redhat.com>
3241 * frame.h (deprecated_unwind_get_saved_register): Rename
3242 generic_unwind_get_saved_register, update comments.
3243 * mips-tdep.c (mips_get_saved_register): Update.
3244 * frame.c (deprecated_unwind_get_saved_register): Update.
3246 2003-06-09 Andrew Cagney <cagney@redhat.com>
3248 * vax-tdep.c (vax_frame_locals_address): Delete function.
3249 (vax_gdbarch_init): Do not set frame_locals_address.
3250 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3251 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3252 * s390-tdep.c (s390_frame_args_address): Delete function.
3253 (s390_gdbarch_init): Do not set frame_args_address or
3254 frame_locals_address.
3255 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3256 (ns32k_gdbarch_init): Do not set frame_locals_address.
3257 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3258 (hppa_frame_locals_address): Delete function.
3259 (hppa_gdbarch_init): Do not set frame_args_address, or
3260 frame_locals_address.
3261 * arm-tdep.c (arm_frame_args_address): Delete.
3262 (arm_frame_locals_address): Delete.
3263 (arm_gdbarch_init): Do not set frame_args_address, or
3264 frame_locals_address.
3266 2003-06-09 Andrew Cagney <cagney@redhat.com>
3268 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3269 * gdbarch.h, gdbarch.c: Re-generate.
3270 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3271 * arch-utils.c (frame_num_args_unknown): Delete function.
3272 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3273 (frame_info): Use FRAME_NUM_ARGS_P.
3274 * arm-tdep.c (arm_frame_num_args): Delete function.
3275 (arm_gdbarch_init): Do not set frame_num_args.
3276 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3277 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3278 (hppa_gdbarch_init): Do not set frame_num_args.
3279 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3280 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3281 frame_num_args to default frame_num_args_unknown.
3282 * v850-tdep.c (v850_gdbarch_init): Ditto.
3283 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3284 * sh-tdep.c (sh_gdbarch_init): Ditto.
3285 * s390-tdep.c (s390_gdbarch_init): Ditto.
3286 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3287 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3288 * mips-tdep.c (mips_gdbarch_init): Ditto.
3289 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3290 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3292 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3293 * i386-tdep.c (i386_gdbarch_init): Ditto.
3294 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3295 * frv-tdep.c (frv_gdbarch_init): Ditto.
3296 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3297 * cris-tdep.c (cris_gdbarch_init): Ditto.
3298 * avr-tdep.c (avr_gdbarch_init): Ditto.
3299 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3301 2003-06-09 Andrew Cagney <cagney@redhat.com>
3303 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3304 (print_frame_args): Moved to "stack.c".
3305 * stack.c: Include "gdb_assert.h".
3306 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3307 (print_frame_args): Moved from "printcmd.c".
3308 * frame.h (print_frame_args): Delete declaration.
3309 * Makefile.in (stack.o): Update dependencies.
3311 2003-06-08 Andrew Cagney <cagney@redhat.com>
3313 * frame.c (get_prev_frame): Remove reference to
3314 frame_args_address_correct in comments.
3315 * frame-base.c (default_frame_args_address): Delete code
3316 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3317 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3318 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3319 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3320 (vax_frame_args_address_correct): Delete declaration.
3322 2003-06-08 Andrew Cagney <cagney@redhat.com>
3324 * gdbarch.sh (UNWIND_SP): Add.
3325 * gdbarch.h, gdbarch.c: Re-generate.
3326 * frame.c (frame_sp_unwind): New function.
3327 (get_frame_sp): New function.
3328 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3329 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3330 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3332 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3333 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3335 2003-06-08 Andrew Cagney <cagney@redhat.com>
3337 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3340 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3341 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3342 * config/m68k/tm-sun3.h: Update.
3343 * config/m68k/tm-m68klynx.h: Update.
3344 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3346 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3347 trad_frame". Update comments.
3348 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3349 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3350 (trad_frame_register_value, trad_frame_prev_register): Update.
3352 2003-06-08 Andrew Cagney <cagney@redhat.com>
3354 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3355 from GCC's acinclude.m4.
3356 * configure.in: Check for getopt's delcaration.
3357 * aclocal.m4, config.in, configure: Re-generate.
3358 * main.c (error_init): Delete declaration.
3359 * defs.h (error_init): Declare.
3360 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3361 (rs6000_convert_from_func_ptr_addr): Make static.
3362 (_initialize_rs6000_tdep): Add declaration.
3363 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3364 (show_commands, set_verbose, show_history): Delete declaration.
3365 * top.h (set_verbose): Add declaration.
3366 (show_history, set_history, show_commands): Add declaration.
3367 (do_restore_instream_cleanup): Add declaration.
3368 * objc-lang.c (specialcmp): Make static.
3369 (print_object_command): Make static.
3370 (find_objc_msgsend): Make static.
3371 (find_objc_msgcall_submethod_helper): Make static.
3372 (find_objc_msgcall_submethod): Make static.
3373 (_initialize_objc_language): Add declaration.
3374 (find_implementation_from_class): Make static.
3375 (find_implementation): Make static.
3376 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3377 * objc-lang.h (lookup_struct_typedef): Add declaration.
3378 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3379 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3380 (do_restore_user_call_depth): Make static.
3381 (do_restore_instream_cleanup): Delete declaration.
3382 (dont_repeat): Delete declaration.
3383 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3384 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3385 * reggroups.c (_initialize_reggroup): Add declaration.
3386 * cp-support.c (_initialize_cp_support): Add declaration.
3387 * cp-abi.c (_initialize_cp_abi): Add declaration.
3388 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3389 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3390 (_initialize_gnu_v3_abi): Add declaration.
3391 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3392 (_initialize_gnu_v2_abi): Add declaration.
3393 * frame-base.c (_initialize_frame_base): Add declaration.
3394 * doublest.c (floatformat_from_length): Make static.
3395 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3396 * frame.c (create_sentinel_frame): Make static.
3397 (_initialize_frame): Add declaration.
3398 * top.c (do_catch_errors): Make static.
3399 (gdb_rl_operate_and_get_next_completion): Make static.
3400 * typeprint.c: Include "typeprint.h".
3401 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3402 (sentinel_frame_this_id): Make static.
3403 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3404 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3405 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3406 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3407 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3408 * maint.c (maintenance_print_architecture): Make static.
3409 * signals/signals.c (_initialize_signals): Add declaration.
3410 * std-regs.c (_initialize_frame_reg): Add declaration.
3411 * jv-exp.y (push_variable): ISO C definition.
3412 (push_qualified_expression_name): Ditto.
3413 * memattr.c (_initialize_mem): Add declaration.
3414 * remote.c (remote_check_watch_resources): Make static.
3415 (remote_stopped_by_watchpoint): Make static.
3416 (remote_stopped_data_address): Make static.
3417 * d10v-tdep.c (nr_dmap_regs): Make static.
3418 (a0_regnum): Make static.
3419 (d10v_frame_unwind_cache): Make static.
3420 (d10v_frame_p): Make static.
3421 * osabi.c (show_osabi): Make static.
3422 (_initialize_gdb_osabi): Add extern declaration.
3423 * gdbtypes.c (make_qualified_type): Make static.
3424 (safe_parse_type): Make static.
3425 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3426 * macrotab.c (macro_bcache_free): Make static.
3427 * interps.c (interp_set_quiet): Make static.
3428 (interpreter_exec_cmd): Make static.
3429 * stack.h (select_frame_command): New file.
3430 * stack.c: Include "stack.h".
3431 (select_frame_command_wrapper): Delete function.
3432 (select_frame_command): Make global.
3433 * infcall.c: Include "infcall.h".
3434 * linespec.c: Include "linespec.h".
3435 * symfile.c (sections_overlap): Make static.
3436 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3437 * charset.c (_initialize_charset): Add missing prototype.
3438 * regcache.c (init_legacy_regcache_descr): Make static.
3439 (do_regcache_xfree): Make static.
3440 (regcache_xfer_part): Make static.
3441 (_initialize_regcache): Add missing prototype.
3442 * breakpoint.c (parse_breakpoint_sals): Make static.
3443 (breakpoint_sals_to_pc): Make static.
3444 * interps.h (clear_interpreter_hooks): ISO C declaration.
3445 * Makefile.in (stack_h): Define.
3446 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3447 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3449 2003-06-08 Andrew Cagney <cagney@redhat.com>
3451 * Makefile.in (d10v-tdep.o): Update dependencies.
3452 (SFILES): Add trad-frame.c.
3453 (trad_frame_h): Define.
3454 (COMMON_OBS): Add trad-frame.o.
3455 (trad-frame.o): Specify dependencies.
3456 * d10v-tdep.c: Include "trad-frame.h".
3457 (saved_regs_unwinder): Delete function.
3458 (d10v_frame_prev_register): Use trad_frame_prev_register.
3459 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3460 trad_frame", delete "regs" and "prev_sp".
3461 (prologue_find_regs): Use trad-frame.
3462 * trad-frame.h, trad-frame.c: New files.
3464 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3466 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3468 2003-06-07 Adam Fedor <fedor@gnu.org>
3470 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3471 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3472 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3473 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3474 resolve_msgsend_super, resolve_msgsend_super_stret):
3477 2003-06-07 Andrew Cagney <cagney@redhat.com>
3479 * symfile.h: Re-indent, clean up comments.
3481 2003-06-07 Andrew Cagney <cagney@redhat.com>
3483 * inferior.h (deprecated_write_sp): Replace
3484 generic_target_write_sp.
3485 * regcache.c (deprecated_write_sp): Replace
3486 generic_target_write_sp.
3487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3488 * vax-tdep.c (vax_gdbarch_init): Update.
3489 * v850-tdep.c (v850_gdbarch_init): Update.
3490 * sparc-tdep.c (sparc_gdbarch_init): Update.
3491 * sh-tdep.c (sh_gdbarch_init): Update.
3492 * s390-tdep.c (s390_gdbarch_init): Update.
3493 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3494 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3495 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3496 * mcore-tdep.c (mcore_gdbarch_init): Update.
3497 * m68k-tdep.c (m68k_gdbarch_init): Update.
3498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3499 * ia64-tdep.c (ia64_gdbarch_init): Update.
3500 * h8300-tdep.c (h8300_gdbarch_init): Update.
3501 * frv-tdep.c (frv_gdbarch_init): Update.
3502 * cris-tdep.c (cris_gdbarch_init): Update.
3503 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3505 2003-06-07 Andrew Cagney <cagney@redhat.com>
3507 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3508 Assert that PC_REGNUM is valid.
3509 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3511 2003-06-07 Andrew Cagney <cagney@redhat.com>
3513 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3514 * gdbarch.h, gdbarch.c: Regenerate.
3515 * mn10300-tdep.c: Include "gdb_assert.h".
3516 (mn10300_read_fp): New function.
3517 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3518 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3519 * ia64-tdep.c: Include "gdb_assert.h".
3520 (ia64_read_fp): New function.
3521 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3522 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3523 * regcache.c (generic_target_read_sp): Delete function.
3524 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3525 * inferior.h (generic_target_read_sp): Delete declaration.
3526 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3527 generic_target_read_sp.
3528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3529 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3530 * sh-tdep.c (sh_gdbarch_init): Ditto.
3531 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3532 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3534 2003-06-07 Andrew Cagney <cagney@redhat.com>
3536 * gdbarch.sh: Comment each field of startup_gdbarch.
3537 * gdbarch.h, gdbarch.c: Re-generate.
3539 2003-06-07 Andrew Cagney <cagney@redhat.com>
3541 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3542 * gdbarch.h, gdbarch.c: Re-generate.
3543 * regcache.c: Update comments on read_pc et.al.
3544 (generic_target_read_pc): Delete function.
3545 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3546 * inferior.h (generic_target_read_pc): Delete declaration.
3547 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3548 generic_target_read_pc.
3549 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3550 * sh-tdep.c (sh_gdbarch_init): Ditto.
3551 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3554 2003-06-07 Andrew Cagney <cagney@redhat.com>
3556 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3557 "index" with "special_local_sect". Use strcmp instead of STREQ.
3558 Append period to coments.
3560 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3562 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3563 (elfstab_offset_sections): Likewise.
3564 * gdb-stabs.h (stab_section_info): Likewise.
3565 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3566 * objfiles.c (objfile_relocate): Likewise.
3567 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3568 * remote.c (get_offsets): Likewise.
3569 (remote_cisco_objfile_relocate): Likewise.
3570 * somread.c (som_symfile_offsets): Likewise.
3571 * symfile.c (alloc_section_addr_info): New function.
3572 (build_section_addr_info_from_section_tab): Use it.
3573 (free_section_addr_info): Adjust.
3574 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3575 (syms_from_objfile): Allocate local_addr dynamically.
3576 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3578 (add_symbol_file_command): Allocate sect_opts dynamically.
3579 (reread_symbols): Avoid use of SECT_OFF_MAX.
3580 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3581 (alloc_section_addr_info): Declare it.
3582 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3583 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3585 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3587 2003-06-06 Andrew Cagney <cagney@redhat.com>
3589 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3590 (d10v_frame_unwind_cache): Do not set "return_pc".
3592 2003-06-06 Michael Snyder <msnyder@redhat.com>
3594 * h8300-tdep.c: Make tidy (long lines).
3596 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3598 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3599 to regcache_collect().
3601 2003-06-05 J. Brobecker <brobecker@gnat.com>
3603 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3604 pc_in_sigtramp multiarch method.
3605 (hppa_hpux_som_init_abi): Use it.
3606 (hppa_hpux_elf_init_abi): Likewise.
3607 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3608 macro has been multiarched.
3609 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3610 macro here, as hppa64 isn't multiarched yet.
3612 2003-06-05 Andrew Cagney <cagney@redhat.com>
3614 * Makefile.in (value_h): Add $(frame_h).
3615 * value.h: Include "frame.h".
3616 (struct value): Replace "frame_addr" with "frame_id".
3617 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3618 * values.c (allocate_value): Use VALUE_FRAME_ID.
3619 (value_copy): Use VALUE_FRAME_ID.
3620 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3621 * valops.c (value_assign): Update. Use frame_find_by_id.
3623 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3625 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3628 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3630 * thread-db.c (check_event): For create/death event breakpoints,
3631 loop through all messages to ensure that we read the message
3632 corresponding to the breakpoint we are at.
3634 2003-06-04 Michael Snyder <msnyder@redhat.com>
3636 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3638 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3640 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3641 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3642 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3643 when handling .eh_frame sections.
3645 2003-06-04 J. Brobecker <brobecker@gnat.com>
3647 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3648 prepare_to_proceed procedure instead of the hppa-specific one.
3649 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3651 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3653 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3654 * config.in: Regenerated.
3655 * configure.in: Add test for syscall function and check for
3656 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3657 * configure: Regenerated.
3658 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3660 (kill_lwp): New function that uses tkill syscall or
3661 uses kill, depending on whether threading model is nptl or not.
3662 All callers of kill() changed to use kill_lwp().
3663 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3664 see if all threads have already exited in the nptl model.
3665 (stop_and_resume_callback): New callback function used by the
3666 lin_lwp_wait thread exit handling code.
3667 (stop_wait_callback): Check for threads already having exited and
3668 delete such threads fromt the lwp list when discovered.
3669 (stop_callback): Don't assert retcode of kill call.
3671 Roland McGrath <roland@redhat.com>
3672 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3675 2003-06-03 Richard Henderson <rth@redhat.com>
3677 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3678 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3679 (alpha_sigtramp_frame_prev_register): Likewise.
3680 (alpha_heuristic_frame_prev_register): Likewise.
3681 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3683 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3684 alpha-specific register id names.
3685 (alpha_mdebug_frame_unwind_cache): Likewise.
3686 (alpha_mdebug_frame_prev_register): Likewise.
3688 2003-06-03 Richard Henderson <rth@redhat.com>
3690 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3691 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3692 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3693 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3695 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3696 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3697 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3699 * alpha-linux-tdep.c: Remove unnecessary includes.
3700 * Makefile.in (alpha-linux-tdep.o): Update.
3702 2003-06-03 Richard Henderson <rth@redhat.com>
3704 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3705 (alphabsd_fill_fpreg): Likewise.
3707 2003-06-03 J. Brobecker <brobecker@gnat.com>
3709 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3710 references to struct frame_info fields by calls to the equivalent
3711 accessors. Necessary now that frame_info is opaque.
3713 2003-06-03 J. Brobecker <brobecker@gnat.com>
3715 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3716 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3717 structure, field no longer exists.
3719 2003-06-03 J. Brobecker <brobecker@gnat.com>
3721 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3722 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3724 2003-06-03 J. Brobecker <brobecker@gnat.com>
3726 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3727 references to struct frame_info fields by calls to the equivalent
3728 accessors. Necessary now that frame_info is opaque.
3730 2003-06-03 J. Brobecker <brobecker@gnat.com>
3732 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3733 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3734 structure, field no longer exists.
3736 2003-06-03 Theodore A. Roth <troth@openavr.org>
3738 * remote.c (init_remote_state): Compute sizeof_g_packet by
3739 accumulation of the size of all registers instead of blindly using
3740 DEPRECATED_REGISTER_BYTES.
3742 2003-06-03 Michael Snyder <msnyder@redhat.com>
3744 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3745 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3748 2003-06-03 J. Brobecker <brobecker@gnat.com>
3750 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3751 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3753 2003-06-03 Andrew Cagney <cagney@redhat.com>
3755 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3756 (sparc_convert_to_raw): Delete function.
3757 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3758 register_convert_to_virtual.
3760 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3762 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3763 layer if not dealing with a statically-linked threaded program.
3765 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3767 * solib.c (solib_open): Update comment to reflect actual search order.
3769 2003-06-03 Andrew Cagney <cagney@redhat.com>
3771 * frame.c (get_frame_memory_signed): New function.
3772 (get_frame_memory, get_frame_memory_unsigned): New function.
3773 (get_frame_arch): New function.
3774 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3775 (get_frame_memory, get_frame_unsigned_memory): Declare.
3776 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3777 get_frame_memory_unsigned and get_frame_arch.
3778 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3780 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3782 * MAINTAINERS (write after approval): Add myself.
3784 2003-06-03 Jim Blandy <jimb@redhat.com>
3786 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3787 elements of gregset_t are 64 bits each, but access registers
3788 are still 32 bits, so they're packed two per gregset_t
3789 element. Unpack/pack them properly.
3791 2003-06-02 David Carlton <carlton@bactrian.org>
3793 * linespec.c (find_methods): Break out code into
3794 add_matching_methods and add_constructors.
3795 (add_matching_methods): New.
3796 (add_constructors): Ditto.
3798 2003-06-02 Andrew Cagney <cagney@redhat.com>
3800 * sparc-tdep.c (sparc_print_registers): Delete call to
3801 REGISTER_CONVERTIBLE.
3802 (sparc_gdbarch_init): Do not set register_convertible.
3803 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3804 * frv-tdep.c (frv_gdbarch_init): Ditto.
3805 * cris-tdep.c (cris_gdbarch_init): Ditto.
3807 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3809 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3810 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3811 (syms_from_objfile): Ditto.
3813 2003-06-03 Andreas Schwab <schwab@suse.de>
3815 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3816 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3818 2003-06-02 Richard Henderson <rth@redhat.com>
3820 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3821 a member of all_reggroup.
3823 2003-06-02 Richard Henderson <rth@redhat.com>
3825 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3826 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3827 (alpha_lds, alpha_sts): New.
3828 (alpha_convert_register_p): Change from _register_convertible.
3829 (alpha_register_to_value): Change from _convert_to_virtual;
3830 restructure and fail for type sizes other than 4 or 8.
3831 (alpha_value_to_register): Similarly.
3832 (alpha_extract_return_value): Use alpha_sts.
3833 (alpha_store_return_value): Use alpha_lds.
3834 (alpha_gdbarch_init): Update hooks.
3836 2003-06-02 Richard Henderson <rth@redhat.com>
3838 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3840 (alpha_sigtramp_register_address): Likewise.
3842 2003-06-02 Richard Henderson <rth@redhat.com>
3844 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3845 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3846 * alpha-tdep.h: Declare them.
3848 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3849 Remove zerobuf. Don't error on UNIQUE.
3850 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3851 (ALPHA_REGSET_UNIQUE): Provide default.
3852 (supply_gregset): Use alpha_supply_int_regs.
3853 (fill_gregset): Use alpha_fill_int_regs.
3854 (supply_fpregset): Use alpha_supply_fp_regs.
3855 (fill_fpregset): Use alpha_fill_fp_regs.
3856 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3857 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3858 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3859 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3860 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3861 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3863 2003-06-02 Richard Henderson <rth@redhat.com>
3865 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3867 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3868 (alpha_store_return_value): Likewise.
3870 2003-06-02 David Carlton <carlton@math.stanford.edu>
3872 * block.c (contained_in): Add 'const' to arguments.
3873 (block_function): Ditto.
3874 * block.h: Update declarations for block_function and
3877 2003-06-02 David Carlton <carlton@math.stanford.edu>
3879 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3880 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3881 * p-valprint.c (pascal_val_print): Ditto.
3882 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3884 2003-06-02 Richard Henderson <rth@redhat.com>
3886 * alpha-tdep.c (alpha_push_dummy_call): Use
3887 builtin_type_ieee_double_little instead of builtin_type_double.
3889 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3890 sign-extension of 32-bit values.
3891 (alpha_store_return_value): Similarly.
3893 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3894 (alpha_extract_return_value): Likewise.
3895 (alpha_store_return_value): Likewise.
3897 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3898 (alpha_store_return_value): Error on IEEE Quad floats.
3900 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3901 (alpha_extract_struct_value_address): Likewise.
3902 (alpha_store_return_value): Likewise.
3903 (alpha_store_struct_return): Remove.
3904 (alpha_gdbarch_init): Update hook registration to match.
3906 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3907 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3908 macros where appropriate.
3909 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3910 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3912 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3913 for SP, GP; void_func_ptr for PC; non-language-specific types
3915 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3917 2003-06-02 Richard Henderson <rth@redhat.com>
3919 * top.h (lim_at_start): Declare.
3920 * main.c (captured_main): Set it.
3921 * top.c (lim_at_start): Define.
3922 (command_loop): Use it instead of &environ.
3923 * event-top.c (command_handler): Likewise.
3925 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3927 * mipsnbsd-tdep.c: Update copyright years.
3928 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3930 2003-06-01 Richard Henderson <rth@redhat.com>
3932 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3933 (alpha-linux-tdep.o): Update dependencies.
3934 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3935 * alpha-mdebug-tdep.c: Remove unneeded includes.
3937 2003-06-01 Richard Henderson <rth@redhat.com>
3939 * alpha-tdep.c (alpha_register_reggroup_p): New.
3940 (alpha_gdbarch_init): Register it.
3942 2003-06-02 Andrew Cagney <cagney@redhat.com>
3944 * dwarfread.c: Eliminate "register"
3945 (decode_die_type): Eliminate assignment within "if".
3946 (struct_type, decode_array_element_type): Ditto.
3947 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3948 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3949 (decode_modified_type, completedieinfo): Ditto.
3950 * block.c: Eliminate "register".
3951 (blockvector_for_pc_sect): Eliminate assignment within "if".
3952 * cp-support.h (struct symbol): Opaque declaration.
3953 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3955 2003-06-01 Richard Henderson <rth@redhat.com>
3957 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3958 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3960 2003-06-01 Adam Fedor <fedor@gnu.org>
3962 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3963 * gdbarch.[ch]: Regenerate.
3964 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3965 (hppa_gdbarch_init): Set it in the gdbarch vector.
3966 * i386-tdep.c (i386_fetch_pointer_argument): New
3967 (i386_gdbarch_init): Set it into gdbarch.
3968 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3969 (rs6000_gdbarch_init): Set it in gdbarch.
3970 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3971 (sparc_gdbarch_init): Set it in gdbarch.
3973 2003-06-01 Andrew Cagney <cagney@redhat.com>
3975 * defs.h (extract_address): Delete declaration.
3976 * findvar.c (extract_address): Delete function.
3977 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3978 extract_address with the inline equivalent,
3979 extract_unsigned_integer.
3980 (xstormy16_extract_struct_value_address): Ditto.
3981 (xstormy16_pointer_to_address): Ditto.
3982 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3983 * v850-tdep.c (v850_push_arguments): Ditto.
3984 (v850_extract_return_value): Ditto.
3985 (v850_extract_struct_value_address): Ditto.
3986 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3987 (sparcnbsd_get_longjmp_target_64): Ditto.
3988 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3989 (get_longjmp_target): Ditto.
3990 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3991 (sh64_extract_struct_value_address): Ditto.
3992 (sh_push_arguments): Ditto.
3993 (sh64_push_arguments): Ditto.
3994 * remote-vxsparc.c (vx_read_register): Ditto.
3995 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3996 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3997 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3998 * mipsv4-nat.c (get_longjmp_target): Ditto.
3999 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4000 * mips-nat.c (get_longjmp_target): Ditto.
4001 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4002 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4003 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4004 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4005 * irix5-nat.c (get_longjmp_target): Ditto.
4006 * irix4-nat.c (get_longjmp_target): Ditto.
4007 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4008 (ia64_push_arguments): Ditto.
4009 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4010 * h8300-tdep.c (h8300_push_arguments): Ditto.
4011 (h8300_store_return_value): Ditto.
4012 (h8300_extract_struct_value_address): Ditto.
4013 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4014 (frv_push_arguments): Ditto.
4015 * avr-tdep.c (avr_pointer_to_address): Ditto.
4016 (avr_push_arguments): Ditto.
4017 * arm-tdep.c (arm_push_dummy_call): Ditto.
4018 (arm_get_longjmp_target): Ditto.
4019 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4020 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4021 (alpha_get_longjmp_target): Ditto.
4023 * solib-irix.c (extract_mips_address): Inline extract_address,
4024 replacing it with extract_signed_integer.
4025 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4026 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4027 (first_link_map_member, open_symbol_file_object): Ditto.
4028 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4029 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4030 (LM_NEXT, LM_NAME): Ditto.
4032 2003-06-01 Richard Henderson <rth@redhat.com>
4034 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4035 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4036 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4037 (alpha_cannot_store_register): Likewise.
4038 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4039 * alpha-nat.c (supply_gregset): Likewise.
4040 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4042 2003-06-01 Andrew Cagney <cagney@redhat.com>
4044 * infcall.c (call_function_by_hand): Update comment on
4045 DEPRECATED_DUMMY_WRITE_SP.
4047 * mips-tdep.c (mips_gdbarch_init): Do not set
4048 deprecated_dummy_write_sp.
4049 (mips_eabi_push_dummy_call): Set the SP register.
4050 (mips_o64_push_dummy_call): Set the SP register.
4051 (mips_o32_push_dummy_call): Set the SP register.
4052 (mips_n32n64_push_dummy_call): Set the SP register.
4054 2003-06-01 Richard Henderson <rth@redhat.com>
4056 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4057 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4058 (supply_gregset): Likewise.
4059 * alpha-tdep.c (alpha_store_return_value): Likewise.
4060 (alpha_get_longjmp_target): Likewise.
4061 (alpha_register_name): Constify array.
4062 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4063 deprecated_register_size, deprecated_register_bytes,
4064 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4065 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4066 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4068 2003-06-01 Richard Henderson <rth@redhat.com>
4070 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4071 from arg_reg_buffer to regcache to avoid double conversion.
4073 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4075 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4077 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4078 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4080 2003-06-01 Richard Henderson <rth@redhat.com>
4082 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4083 (decode_frame_entry): Set it. Skip FDE augmentation.
4085 2003-06-01 Richard Henderson <rth@redhat.com>
4087 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4088 not overlapping PC_REGNUM.
4090 2003-06-01 Richard Henderson <rth@redhat.com>
4092 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4093 alpha_push_arguments. Don't dump argument register data to
4094 the target stack. Fix float and 128-bit long double semantics.
4095 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4096 (alpha_fix_call_dummy): Remove.
4097 (alpha_call_dummy_words): Remove.
4098 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4100 2003-06-01 Richard Henderson <rth@redhat.com>
4102 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4104 2003-06-01 Andrew Cagney <cagney@redhat.com>
4106 * mips-tdep.c (is_mips16_addr): New function.
4107 (make_mips16_addr, unmake_mips16_addr): New functions.
4108 (pc_is_mips16, mips_fetch_instruction): Use.
4109 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4110 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4111 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4112 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4114 * config/mips/tm-mips.h: Update copyright.
4115 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4116 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4117 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4118 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4119 (TM_PRINT_INSN_MACH): Delete.
4120 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4122 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4123 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4124 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4125 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4126 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4127 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4128 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4129 mips*-*-riscos* and mips*-*-sysv* onto mips.
4130 * config/mips/mips64.mt: New file.
4131 * config/mips/mips.mt: New file.
4132 * config/mips/littlemips.mt: Delete file.
4133 * config/mips/decstation.mt: Delete file.
4134 * config/mips/vr4300el.mt: Delete file.
4135 * config/mips/vr5000el.mt: Delete file.
4136 * config/mips/vr5000.mt: Delete file.
4137 * config/mips/vr4100.mt: Delete file.
4138 * config/mips/vr4xxxel.mt: Delete file.
4139 * config/mips/vr4300.mt: Delete file.
4140 * config/mips/vr4xxx.mt: Delete file.
4141 * config/mips/bigmips.mt: Delete file.
4142 * config/mips/bigmips64.mt: Delete file.
4143 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4144 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4145 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4146 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4147 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4149 * config/mips/tm-irix3.h: Ditto.
4150 * config/mips/tm-mipsv4.h: Ditto.
4151 * config/mips/tm-embed.h: Ditto.
4152 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4154 * config/mips/tm-vr5000el.h: Delete file.
4155 * config/mips/tm-tx39l.h: Delete file.
4156 * config/mips/tm-vr4300el.h: Delete file.
4157 * config/mips/tm-vr4xxxel.h: Delete file.
4158 * config/mips/tm-vr4300.h: Delete file.
4159 * config/mips/tm-vr4100.h: Delete file.
4160 * config/mips/tm-vr4xxx.h: Delete file.
4161 * config/mips/tm-vr5000.h: Delete file.
4162 * config/mips/tm-embedl64.h: Delete file.
4163 * config/mips/tm-embedl.h: Delete file.
4164 * config/mips/tm-embed64.h: Delete file.
4165 * config/mips/tm-bigmips64.h: Delete file.
4166 * config/mips/tm-bigmips.h: Delete file.
4168 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4171 * shnbsd-nat.c: Include "sh-tdep.h".
4173 From Richard Henderson <rth@redhat.com>:
4174 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4176 2003-05-31 Andrew Cagney <cagney@redhat.com>
4178 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4179 forward declaration.
4180 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4181 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4182 (mips_find_saved_regs): Use set_reg_offset.
4183 (mips_frame_init_saved_regs): Delete function.
4184 (mips_pop_frame): Call mips_find_saved_regs instead of
4185 DEPRECATED_FRAME_INIT_SAVED_REGS.
4187 2003-05-31 Andrew Cagney <cagney@redhat.com>
4189 * mips-tdep.c (mips_gdbarch_init): Do not set
4190 deprecated_max_register_raw_size, register_virtual_size, and
4191 deprecated_max_register_virtual_size.
4193 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4195 * i386-tdep.c: Include "dwarf2-frame.h".
4196 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4197 * Makefile.in (i386-tdep.o): Update dependencies.
4199 * dwarf2-frame.c, dwarf2-frame.h: New files.
4200 * Makefile.in (SFILES): Add dwarf2-frame.c.
4201 (dwarf2_frame_h): Define.
4202 (COMMON_OBS): Add dwarf2-frame.o.
4203 (dwarf2-frame.o): Add dependencies.
4205 2003-05-31 Andreas Jaeger <aj@suse.de>
4207 * x86-64-linux-nat.c: Fix comment.
4209 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4211 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4214 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4215 have a sigcontext_addr handler.
4216 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4217 sigcontext_addr handler.
4219 2003-05-31 Andrew Cagney <cagney@redhat.com>
4221 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4222 (print_fp_register_row): Replace do_fp_register_row.
4223 (mips_print_fp_register): Add "file" and "frame" parameters.
4224 (mips_print_register): Add "file" and "frame" parameters.
4225 (mips_print_registers_info): Replace mips_do_registers_info.
4226 (mips_gdbarch_init): Set print_registers_info instead of
4227 deprecated_do_registers_info.
4228 (mips_read_fp_register_single): Add "frame" parameter.
4229 (mips_read_fp_register_double): Add "frame" parameter.
4231 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4233 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4234 Fixes a bug where GDB would print the wrong register names for
4235 targets without SSE.
4237 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4238 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4241 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4242 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4243 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4246 From Michal Ludvig <mludvig@suse.cz>:
4247 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4249 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4250 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4251 I386_ST0_REGNUM): Move here from...
4252 * i386-tdep.c: ... here.
4253 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4254 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4255 registers if possible.
4256 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4257 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4259 (i386bsd_sc_reg_offset): New variable.
4260 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4261 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4263 (i386fbsd_sc_reg_offset): New variable.
4264 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4266 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4268 (i386fbsd4_sc_reg_offset): New variable.
4269 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4270 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4272 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4273 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4274 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4276 (i386nbsd_sc_reg_offset): New variable.
4277 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4278 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4280 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4282 (i386obsd_sc_reg_offset): New variable.
4283 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4284 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4286 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4287 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4288 for frame pointer offset in `struct sigcontext'.
4290 2003-05-31 Andrew Cagney <cagney@redhat.com>
4292 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4293 architecture methods call_dummy_words, sizeof_call_dummy_words,
4294 push_return_address, store_struct_return, and fix_call_dummy. Set
4295 push_dummy_call instead of deprecated_push_arguments.
4296 (mips_store_struct_return): Delete function.
4297 (mips_fix_call_dummy): Delete function.
4298 (mips_push_return_address): Delete function.
4299 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4300 RA_REGNUM and T9_REGNUM.
4301 (mips_n32n64_push_dummy_call): Ditto for
4302 mips_n32n64_push_arguments.
4303 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4304 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4306 2003-05-31 Andrew Cagney <cagney@redhat.com>
4308 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4309 "dummy_addr" to "bp_addr".
4310 * infcall.c (call_function_by_hand): Pass "funaddr" to
4311 gdbarch_push_dummy_call.
4312 * gdbarch.h, gdbarch.c: Re-generate.
4313 * i386-tdep.c (i386_push_dummy_call): Update.
4314 * arm-tdep.c (arm_push_dummy_call): Update.
4315 * d10v-tdep.c (d10v_push_dummy_call): Update.
4317 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4319 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4320 variable declarations.
4321 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4322 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4323 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4324 x86_64_init_frame_pc, x86_64_init_frame_pc,
4325 x86_64_function_has_prologue): Remove prototypes.
4326 (X86_64_NUM_GREGS): New define.
4327 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4328 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4329 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4330 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4331 XMM1_REGNUM): Remove defines.
4332 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4333 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4334 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4335 X86_64_XMM1_REGNUM): New defines.
4336 (struct x86_64_register_info): Renamed from `struct
4337 register_info'. Remove `size' member.
4338 (x86_64_register_info_table): Remove variable.
4339 (x86_64_register_info): New variable.
4340 (X86_64_NUM_REGS): New define.
4341 (X86_64_NUM_GREGS): Remove define.
4342 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4343 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4345 (x86_54_dwarf2_reg_to_regnum): Remove function.
4346 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4347 (x86_64_dwarf_reg_to_regnum): New function.
4348 (x86_64_register_name): Rewrite.
4349 (x86_64_register_raw_size): Remove function.
4350 (x86_64_register_byte_table): Remove variable.
4351 (x86_64_register_byte): Remove function.
4352 (x86_64_register_virtual_type): Remove function.
4353 (x86_64_register_type): New function.
4354 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4355 x86_64_register_convert_to_raw): Remove functions.
4356 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4357 (x86_64_use_struct_convention): Make static. Adjust for renamed
4359 (x86_64_frame_init_saved_regs): Remove function.
4360 (x86_64_push_arguments): Make static. Change to accept a regcache
4362 (x86_64_store_return_value, x86_64_extract_return_value): Make
4363 static. Rewrite based on i386 counterparts.
4364 (x86_64_push_dummy_call): New function.
4365 (X86_64_NUM_SAVED_REGS): New define.
4366 (x86_64_register_number): Remove function.
4367 (x86_64_store_struct_return): Remove function.
4368 (x86_64_frameless_function_invocation,
4369 x86_64_function_has_prologue): Remove functions.
4370 (PROLOG_BUFSIZE): Remove define.
4371 (struct x86_64_frame_cache): New structure.
4372 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4373 x86_64_frame_cache, x86_64_frame_this_id,
4374 x86_64_frame_prev_register, x86_64_frame_p,
4375 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4376 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4378 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4380 (x86_64_skip_prologue): Rewrite in terms of
4381 x86_64_analyze_prologue.
4382 (x86_64_frame_base_address): New function.
4383 (x86_64_frame_base): New variable.
4384 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4385 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4386 set deprecated_fp_regnum, deprecated_register_size,
4387 deprecated_register_bytes, register_raw_size, register_byte,
4388 register_virtual_type, register_convertiable,
4389 register_convert_to_virtual, convert_to_raw,
4390 deprecated_get_saved_register, deprecated_target_read_fp,
4391 deprecated_push_arguments, deprecated_push_return_address,
4392 deprecated_pop_frame, deprecated_store_struct_return,
4393 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4394 frameless_function_invocation, deprecated_frame_saved_pc,
4395 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4396 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4397 deprecated_init_frame_pc and virtual_frame_pointer. Call
4398 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4399 and x86_64_frame_p. Call frame_base_set_default to register
4401 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4402 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4403 (_initialize_x86_64_tdep): Remove function.
4404 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4405 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4406 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4408 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4409 (x86_64_linux_sigcontext_addr): Rewrite.
4410 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4411 x86_64_linux_frame_saved_pc): Remove functions.
4412 (x86_64_linux_pc_in_sigtramp): Renamed from
4413 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4415 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4417 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4418 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4419 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4420 (x86_64_regmap): Rename to regmap.
4421 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4423 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4425 (x86_64_fxsave_offset): Remove function.
4426 (supply_fpregset): Simply call x86_64_supply_fxsave.
4427 (fill_fpregset): Simply call x86_64_fill_fxsave.
4428 (fetch_inferior_registers, store_inferior_registers): Avoid
4429 asignment in if-statement.
4430 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4431 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4432 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4433 (fetch_core_registers): Remove function.
4434 (linux_elf_core_fns): Remove.
4435 (offsetoff): Don't define.
4436 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4437 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4438 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4440 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4441 protection against multiple includes instead of NM_X86_64_h. Add
4442 various comments. Include "config/nm-linux.h". Don't include
4444 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4445 GET_THREAD_SIGNALS): Remove defines.
4446 (x86_64_register_u_addr, kernel_u_size,
4447 lin_thread_get_thread_signals): Remove prototypes.
4448 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4449 [HAVE_LINK_H]: Don't include "solib.h".
4450 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4451 * config/i386/tm-x86-64linux.h: Fix comments.
4452 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4453 x86-64-tdep.o): Update dependencies.
4455 2003-05-30 Andrew Cagney <cagney@redhat.com>
4457 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4458 Change parameter type to a "struct regcache *".
4460 * gdbarch.sh: Regardless of the multi-arch level, always define
4461 the macro when not already defined.
4462 * gdbarch.h, gdbarch.c: Re-generate.
4464 2003-05-30 Richard Henderson <rth@redhat.com>
4466 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4467 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4468 (alpha_mdebug_frame_this_id): Likewise.
4469 (alpha_mdebug_frame_prev_register): Likewise.
4470 (alpha_mdebug_frame_base_address): Likewise.
4471 (alpha_mdebug_frame_locals_address): Likewise.
4472 (alpha_mdebug_frame_args_address): Likewise.
4473 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4474 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4475 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4477 (alpha_heuristic_frame_this_id): Make static.
4478 (alpha_heuristic_frame_prev_register): Likewise.
4479 (alpha_heuristic_frame_base_address): Likewise.
4480 * alpha-tdep.h: Update.
4482 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4484 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4485 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4487 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4488 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4489 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4490 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4491 I386_ST0_REGNUM): New defines.
4492 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4493 codestream_get): Remove define.
4494 (codestream_next_addr, condestream_addr, condestream_buf,
4495 codestream_off, codestream_cnt): Remove variables.
4496 (codestream_fill, codestream_seek, codestream_read): Remove
4498 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4500 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4501 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4502 i386_frame_saved_pc, i386_saved_pc_after_call,
4503 i386_frame_num_args, i386_frame_init_saved_regs,
4504 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4505 i386_push_arguments): Remove functions.
4506 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4507 functionality. Use i386_analyze_prologue instead of
4508 i386_get_frame_setup.
4509 (I386_NUM_SAVED_REGS): New define.
4510 (struct i386_frame_cache): New structure.
4511 (i386_alloc_frame_cache, i386_analyze_struct_return,
4512 i386_skip_probe, i386_analyze_frame_setup,
4513 i386_analyze_register_saves, i386_analyze_prologue,
4514 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4515 i386_frame_prev_register, i386_sigtramp_frame_cache,
4516 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4517 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4518 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4520 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4522 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4523 I386_EAX_REGNUM and I386_EDX_REGNUM.
4524 (i386_extract_return_value, i386_store_return_value): Use
4525 I386_ST0_REGNUM where appropriate.
4526 (i386_extract_struct_value_address): Rewrite to use extract_address.
4527 (i386_svr4_pc_in_sigtramp): Add comment.
4528 (i386_svr4_sigcontext_addr): Rewrite.
4529 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4531 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4532 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4533 of new defines. Set push_dummy_call, don't set
4534 deprecated_push_arguments, deprecated_push_return_address,
4535 deprecated_pop_frame. Don't set parm_boundary. Don't set
4536 deprecated_frame_chain, deprecated_frame_saved_pc,
4537 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4538 save_dummy_frame_tos, unwind_pc. Call
4539 frame_unwind_append_predicate and frame_base_set_default. Don't
4540 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4541 Don't set frameless_function_invocation. Don't set
4542 deprecated_register_bytes, deprecated_register_size,
4543 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4544 * i386-linux-tdep.c: Fix formatting in some comments.
4545 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4546 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4547 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4548 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4549 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4550 redundant parentheses.
4551 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4552 (i386_linux_sigcontext_addr): Use it. Rewrite.
4553 (find_minsym_and_objfile): Change name of second argument.
4554 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4555 changed. Use frame_pc_unwind instead of
4556 DEPRECATED_SAVED_PC_AFTER_CALL.
4557 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4558 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4559 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4561 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4563 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4564 (_initialize_i386_cygwin_tdep): New prototype.
4565 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4566 deprecated_frame_chain_valid.
4567 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4568 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4569 Rely on the SVR4 defaults.
4570 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4571 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4573 2003-05-30 Andrew Cagney <cagney@redhat.com>
4575 * infcall.c (call_function_by_hand): Always call
4576 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4578 2003-05-30 Richard Henderson <rth@redhat.com>
4580 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4583 2003-05-29 Jim Blandy <jimb@redhat.com>
4585 Use gdbarch methods for solib stuff on PowerPC Linux.
4586 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4587 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4589 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4590 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4591 giving the same effect as the #definitions above.
4593 2003-05-29 Adam Fedor <fedor@gnu.org>
4595 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4596 (find_implementation_from_class): Replace it with the standard
4597 case i.e. do nothing.
4599 2003-05-29 Richard Henderson <rth@redhat.com>
4601 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4602 (alpha_linux_sigtramp_offset): Use it. Make static.
4603 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4604 update for new frame model.
4605 * alpha-mdebug-tdep.c: New file.
4606 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4607 (alpha_osf1_init_abi): Install it.
4608 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4609 (linked_proc_desc_table): Remove.
4610 (alpha_frame_past_sigtramp_frame): Remove.
4611 (alpha_dynamic_sigtramp_offset): Remove.
4612 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4613 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4614 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4615 (push_sigtramp_desc): Remove.
4616 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4617 (alpha_cannot_store_register): Likewise.
4618 (alpha_sigcontext_addr): Remove.
4619 (alpha_find_saved_regs): Remove.
4620 (alpha_frame_init_saved_regs): Remove.
4621 (alpha_init_frame_pc_first): Remove.
4622 (read_next_frame_reg): Remove.
4623 (alpha_frame_saved_pc): Remove.
4624 (alpha_saved_pc_after_call): Remove.
4625 (temp_proc_desc, temp_saved_regs): Remove.
4626 (alpha_about_to_return): Remove.
4627 (cached_proc_desc): Remove.
4628 (alpha_frame_chain): Remove.
4629 (alpha_print_extra_frame_info): Remove.
4630 (alpha_init_extra_frame_info): Remove.
4631 (alpha_frame_locals_address): Remove.
4632 (alpha_frame_args_address): Remove.
4633 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4634 (alpha_push_dummy_frame): Remove.
4635 (alpha_pop_frame): Remove.
4636 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4637 (alpha_read_insn): New.
4638 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4639 for different insn encodings.
4640 (alpha_in_lenient_prologue): Remove.
4641 (struct alpha_sigtramp_unwind_cache): New.
4642 (alpha_sigtramp_frame_unwind_cache): New.
4643 (alpha_sigtramp_register_address): New.
4644 (alpha_sigtramp_frame_this_id): New.
4645 (alpha_sigtramp_frame_prev_register): New.
4646 (alpha_sigtramp_frame_unwind): New.
4647 (alpha_sigtramp_frame_p): New.
4648 (struct alpha_heuristic_unwind_cache): New.
4649 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4650 don't count nop insns that occur between functions.
4651 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4652 heuristic_proc_desc, but without the mdebug wrapping.
4653 (alpha_heuristic_frame_this_id): New.
4654 (alpha_heuristic_frame_prev_register): New.
4655 (alpha_heuristic_frame_unwind): New.
4656 (alpha_heuristic_frame_p): New.
4657 (alpha_heuristic_frame_base_address): New.
4658 (alpha_heuristic_frame_base): New.
4659 (alpha_unwind_dummy_id): New.
4660 (alpha_unwind_pc): New.
4661 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4662 frame related deprecated initializations; install replacements.
4663 (alpha_dump_tdep): Remove.
4664 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4665 (alpha_read_insn, alpha_after_prologue,
4666 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4667 alpha_heuristic_frame_prev_register,
4668 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4669 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4670 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4671 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4673 2003-05-29 Andrew Cagney <cagney@redhat.com>
4675 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4676 dependant on the availability of ASSERT_FUNCTION.
4677 (ASSERT_FUNCTION): Do not define when there is no function name.
4679 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4681 From Jimi X <jimix@watson.ibm.com>:
4682 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4684 2003-05-28 Jim Blandy <jimb@redhat.com>
4686 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4687 argument to ptrace to int; the system headers should give it the
4688 right type, and pointers don't fit in ints on powerpc64-*-*.
4690 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4692 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4695 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4697 * stabsread.c (dbx_lookup_type): Make static.
4699 (add_undefined_type): Ditto.
4700 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4703 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4705 * hpread.c (hpread_has_name): Make static.
4706 (hpread_psymtab_to_symtab): Ditto.
4707 (file_exists): Ditto.
4708 (hpread_call_pxdb): Ditto.
4709 (hpread_pxdb_needed): Ditto.
4710 (hpread_quick_traverse): Ditto.
4711 (hpread_get_header): Ditto.
4712 (hpread_get_lntt): Ditto.
4713 (hpread_get_slt): Ditto.
4716 2003-05-25 Andreas Schwab <schwab@suse.de>
4718 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4719 stack_align and deprecated_extra_stack_alignment_needed.
4720 (m68k_stack_align): Delete.
4722 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4723 (m68k_register_virtual_size): Likewise.
4724 (altos_skip_prologue): Remove obsolete function.
4725 (isi_frame_num_args): Likewise.
4726 (news_frame_num_args): Likewise.
4727 (m68k_fix_call_dummy): Make static.
4728 (m68k_push_dummy_frame): Likewise.
4729 (m68k_pop_frame): Likewise.
4730 (m68k_skip_prologue): Likewise.
4731 (m68k_frame_init_saved_regs): Likewise.
4732 (m68k_saved_pc_after_call): Likewise.
4733 (m68k_get_longjmp_target): Make multi-arch.
4734 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4735 structure. Register m68k_get_longjmp_target if enabled.
4736 * m68k-tdep.h (struct gdbarch_tdep): Define.
4737 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4739 * Makefile.in (config.status): Also depend on configure.tgt
4741 (m68klinux-tdep.o): Update dependencies.
4742 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4743 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4744 (M68K_LINUX_JB_PC): Define.
4745 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4746 and take additional parameter.
4747 (m68k_linux_sigtramp_saved_pc): Update.
4748 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4749 m68k_linux_pc_in_sigtramp, in_plt_section,
4750 find_solib_trampoline_target.
4751 * config/m68k/tm-linux.h: Don't include any tm headers.
4752 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4753 (JB_ELEMENT_SIZE): Likewise.
4755 (GET_LONGJMP_TARGET): Likewise.
4756 (IN_SIGTRAMP): Likewise.
4757 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4759 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4761 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4762 (sparc32_push_arguments): Re-implement by calling
4763 sparc32_do_push_arguments.
4765 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4767 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4768 SPARC_O1_REGNUM): New defines.
4769 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4770 (sparc32_store_return_value): New function.
4771 (sparc_extract_struct_value_address): Rewrite to operate on a
4773 (sparc_gdbarch_init): Don't set
4774 deprecated_extract_struct_value_address. Set
4775 extract_struct_value_address instead. Don't set
4776 deprecated_extract_return_value and deprecated_store_return_value
4777 for 32-bit targets. Set extract_return_value and
4778 store_return_value instead.
4779 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4780 DEPRECTAED_EXTRACT_RETURN_VALUE,
4781 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4782 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4783 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4784 (sparc_store_return_value): Remove prototype.
4785 (sparc32_store_return_value): New prototype.
4786 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4789 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4791 * sparcnbsd-tdep.c: Include "gdb_string.h".
4793 2003-05-23 Andrew Cagney <cagney@redhat.com>
4795 * p-valprint.c (pascal_val_print): Replace extract_address with
4796 the inline equivalent extract_unsigned_integer.
4797 * jv-valprint.c (java_value_print): Ditto.
4798 * ada-valprint.c (ada_val_print_1): Ditto.
4799 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4801 2003-05-23 Theodore A. Roth <troth@openavr.org>
4803 * blockframe.c (frameless_look_for_prologue): Remove unused
4804 after_prologue variable.
4806 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4808 * blockframe.c (get_pc_function_start): Rewrite to avoid
4809 asignments in if-statements.
4811 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4813 Committed by Elena Zannoni <ezannoni@redhat.com>.
4814 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4815 files, don't relocate absolute symbols (and do use mst_abs).
4817 2003-05-23 Andrew Cagney <cagney@redhat.com>
4819 * objc-lang.c: Include "gdb_assert.h".
4820 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4821 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4822 (gdb_check, gdb_check_fatal): Delete functions.
4823 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4825 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4826 * Makefile.in (objc-lang.o): Update dependencies.
4828 2003-05-22 Ian Lance Taylor <ian@airs.com>
4830 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4831 with fprintf_filtered, not fprintf_unfiltered.
4833 2003-05-22 Andrew Cagney <cagney@redhat.com>
4835 * stack.c (frame_info): Inline extract_address, replacing it with
4836 extract_unsigned_integer.
4837 * findvar.c (unsigned_pointer_to_address): Ditto.
4838 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4839 * dwarf2expr.c (dwarf2_read_address): Ditto.
4840 * frame.c (frame_pc_unwind): Update comment.
4841 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4843 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4845 * infptrace.c (detach): Call print_sys_errmsg rather than
4846 perror_with_name to issue warning message when errno is non-zero
4847 after calling ptrace detach.
4849 2003-05-21 J. Brobecker <brobecker@gnat.com>
4851 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4852 macro definitions from here...
4853 * hppa-tdep.c: ...to there.
4855 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4857 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4858 register_ptrace_addr(). Fix all callers.
4860 2003-05-21 Andreas Schwab <schwab@suse.de>
4862 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4864 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4866 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4867 (_initialize_m68k_linux_tdep): New function.
4868 (m68k_linux_frame_saved_pc): Make static.
4869 (m68k_linux_extract_return_value): Likewise.
4870 (m68k_linux_store_return_value): Likewise.
4871 (m68k_linux_extract_struct_value_address): Likewise.
4872 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4874 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4875 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4876 (DEPRECATED_FRAME_SAVED_PC): Remove.
4878 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4880 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4881 regset numbering rather than our own.
4883 2003-05-19 David Carlton <carlton@bactrian.org>
4885 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4887 2003-05-19 David Carlton <carlton@bactrian.org>
4889 Partial fix for PR c++/827.
4890 * cp-support.h: Include symtab.h.
4891 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4892 * cp-namespace.c: Update contributors.
4893 (cp_lookup_symbol_nonlocal): New.
4894 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4895 (lookup_symbol_file): Ditto.
4896 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4897 * block.h: Declare block_scope, block_using, block_global_block.
4898 * block.c (block_scope): New.
4899 (block_using, block_global_block): Ditto.
4900 * Makefile.in (cp_support_h): Depend on symtab_h.
4901 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4903 2003-05-19 David Carlton <carlton@bactrian.org>
4905 * language.h (struct language_defn): Add 'la_value_of_this'
4906 and 'la_lookup_symbol_nonlocal' members.
4907 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4908 lookup_symbol_static, lookup_symbol_global,
4909 lookup_symbol_aux_block.
4910 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4911 if we should search fields of this and how to do static/global
4913 (lookup_symbol_aux_block): Make extern.
4914 (basic_lookup_symbol_nonlocal): New.
4915 (lookup_symbol_static, lookup_symbol_global): Ditto.
4916 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4917 'la_lookup_symbol_nonlocal' members.
4918 * c-lang.c (c_language_defn, cplus_language_defn)
4919 (asm_language_defn, minimal_language_defn): Ditto.
4920 * jv-lang.c (java_language_defn): Ditto.
4921 * language.c (unknown_language_defn, auto_language_defn)
4922 (local_language_defn): Ditto.
4923 * m2-lang.c (m2_language_defn): Ditto.
4924 * objc-lang.c (objc_language_defn): Ditto.
4925 * scm-lang.c (scm_language_defn): Ditto.
4926 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4927 * p-lang.c (pascal_language_defn): Ditto for both.
4928 * Makefile.in (f-lang.o): Depend on value_h.
4931 2003-05-19 David Carlton <carlton@bactrian.org>
4933 * block.h: Declare block_static_block.
4934 * block.c (block_static_block): New.
4935 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4936 lookup_symbol_aux_local, calling block_static_block instead.
4937 (lookup_symbol_aux_local): Delete 'static_block' argument.
4939 2003-05-19 David Carlton <carlton@bactrian.org>
4941 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4943 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4945 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4946 register numbers mapping.
4948 2003-05-18 Adam Fedor <fedor@gnu.org>
4950 * symtab.c (completion_list_objc_symbol): New function.
4951 (make_symbol_completion_list): Use it to add ObjC symbols
4952 when looking though the list.
4953 (language_search_unquoted_string): New function.
4954 (make_file_symbol_completion_list): Use it.
4956 2003-05-18 Andreas Schwab <schwab@suse.de>
4958 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4960 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4961 as m68k_linux_extract_return_value.
4962 (DEPRECATED_STORE_RETURN_VALUE): Define as
4963 m68k_linux_store_return_value.
4964 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4965 m68k_linux_extract_struct_value_address.
4966 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4967 get_next_frame, get_frame_base, get_frame_pc.
4968 (m68k_linux_frame_saved_pc): Use get_frame_base.
4969 (m68k_linux_extract_return_value): New function.
4970 (m68k_linux_store_return_value): New function.
4971 (m68k_linux_extract_struct_value_address): New function.
4972 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4974 * c-exp.y (typebase): Remove duplicate occurence of
4975 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4976 of lookup_signed_typename.
4978 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4980 * dwarf2loc.c (find_location_expression): Change type of second
4981 argument to `size_t *'.
4982 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4985 2003-05-18 David Carlton <carlton@bactrian.org>
4987 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4988 'linkage_name'. Add comment.
4989 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4991 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4992 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4993 (lookup_block_symbol): Ditto.
4995 2003-05-16 Andrew Cagney <cagney@redhat.com>
4997 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4998 * gdbarch.h, gdbarch.c: Re-generate.
4999 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5000 * TODO (REGISTER_BYTES): Delete reference.
5001 * alpha-tdep.c (alpha_gdbarch_init): Update.
5002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5003 * x86-64-tdep.c (x86_64_init_abi): Update.
5004 * vax-tdep.c (vax_gdbarch_init): Update.
5005 * v850-tdep.c (v850_gdbarch_init): Update.
5006 * sparc-tdep.c (sparc_gdbarch_init): Update.
5007 * sh-tdep.c (sh_gdbarch_init): Update.
5008 * s390-tdep.c (s390_gdbarch_init): Update.
5009 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5010 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5011 (ns32k_gdbarch_init_32382): Update.
5012 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5013 * mcore-tdep.c (mcore_gdbarch_init): Update.
5014 * m68k-tdep.c (m68k_gdbarch_init): Update.
5015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5016 * ia64-tdep.c (ia64_gdbarch_init): Update.
5017 * i386-tdep.c (i386_gdbarch_init): Update.
5018 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5019 * hppa-tdep.c (hppa_gdbarch_init): Update.
5020 * h8300-tdep.c (h8300_gdbarch_init): Update.
5021 * frv-tdep.c (frv_gdbarch_init): Update.
5022 * cris-tdep.c (cris_gdbarch_init): Update.
5023 * avr-tdep.c (avr_gdbarch_init): Update.
5024 * arm-tdep.c (arm_gdbarch_init): Update.
5025 * sparc-tdep.c (sparc_pop_frame): Update.
5026 * rs6000-tdep.c (rs6000_pop_frame): Update.
5027 * remote.c (init_remote_state): Update.
5028 (remote_prepare_to_store): Update.
5029 * remote-vx.c (vx_prepare_to_store): Update.
5030 * remote-sds.c (sds_fetch_registers): Update.
5031 (sds_prepare_to_store): Update.
5032 * remote-array.c: Update.
5033 * regcache.c (init_legacy_regcache_descr): Update.
5034 (init_regcache_descr): Update.
5035 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5036 (mips_o64_extract_return_value): Update.
5037 * irix5-nat.c (fetch_core_registers): Update.
5038 * irix4-nat.c (fetch_core_registers): Update.
5039 * i386-tdep.h: Update.
5040 * hppa-tdep.c (pa_do_registers_info): Update.
5041 (pa_do_strcat_registers_info): Update.
5042 * cris-tdep.c (cris_register_bytes_ok): Update.
5043 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5044 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5045 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5046 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5047 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5048 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5049 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5050 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5051 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5052 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5053 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5054 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5055 (REGISTER_BYTES_OK): Update.
5056 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5057 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5059 2003-05-16 Ian Lance Taylor <ian@airs.com>
5061 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5062 (vax_print_insn, print_insn_arg): Remove static functions.
5063 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5064 print_insn_vax from opcodes library.
5065 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5067 2003-05-15 Andrew Cagney <cagney@redhat.com>
5069 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5070 * target.h (memory_breakpoint_from_pc): Delete declaration.
5071 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5072 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5073 * monitor.c (monitor_insert_breakpoint): Use
5074 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5075 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5076 * gdbarch.h, gdbarch.c: Re-generate.
5077 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5078 (sparc_gdbarch_init): Set breakpoint_from_pc to
5079 sparc_breakpoint_from_pc.
5080 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5081 (BREAKPOINT_FROM_PC): Define.
5082 (sparc_breakpoint_from_pc): Declare.
5083 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5084 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5085 (BREAKPOINT_FROM_PC): Define.
5086 (BREAKPOINT): Delete macro.
5087 * target.h: Update comment.
5088 * s390-tdep.c (s390_gdbarch_init): Update comments.
5089 * remote.c: Update comments.
5090 * remote-mips.c: Update comments.
5091 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5092 * mem-break.c: Update comment.
5093 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5094 (ia64_memory_insert_breakpoint): Update.
5095 * config/sparc/tm-sparc.h: Update comment.
5096 * config/pa/tm-hppa64.h: Update comment.
5097 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5098 (rs6000_breakpoint_from_pc): Update.
5099 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5100 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5101 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5102 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5103 (mips_breakpoint_from_pc): Update.
5104 (mips_dump_tdep): Update.
5106 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5107 * minsyms.c (lookup_minimal_symbol): Inline
5108 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5110 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5111 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5112 * p-lang.c (pascal_printstr): Ditto.
5113 * objc-lang.c (objc_printstr): Ditto.
5114 * m2-lang.c (m2_printstr): Ditto.
5115 * jv-valprint.c (java_print_value_fields): Ditto.
5116 * f-lang.c (f_printstr): Ditto.
5117 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5118 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5119 for repeat_count_threshold.
5120 * Makefile.in (cp-valprint.o): Update dependencies.
5122 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5124 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5125 (examine_prologue): Support looking through leaf functions, knowing
5126 they start with mov r2,r12. Support skipping over indirect stores
5127 of the input registers. Upon hitting a non-nop branch instruction
5128 or predicated instruction, bail out by setting lim_pc to the current
5129 pc value in the loop. At the end, if the lim_pc value is still
5130 beyond our calculated value and we have trust_limit set,
5131 use the lim_pc value.
5133 2003-05-15 Andrew Cagney <cagney@redhat.com>
5135 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5136 generic_find_dummy_frame.
5137 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5138 (deprecated_generic_find_dummy_frame): Update.
5139 (deprecated_read_register_dummy): Update.
5140 * frame.c (deprecated_generic_get_saved_register): Update.
5142 2003-05-15 Theodore A. Roth <troth@openavr.org>
5144 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5145 (avr_gdbarch_init): Set breakpoint_from_pc method.
5147 2003-05-15 Andrew Cagney <cagney@redhat.com>
5149 * regcache.c (build_regcache): Set deprecated_register_valid
5151 (deprecated_grub_regcache_for_register_valid): Delete function.
5152 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5155 2003-05-15 David Carlton <carlton@bactrian.org>
5157 Committed by Elena Zannoni <ezannoni@redhat.com>
5158 * symtab.c (lookup_symbol_aux): Delete calls to
5159 lookup_symbol_aux_minsyms.
5160 (lookup_symbol_aux_minsyms): Comment out function and
5161 prototype. Delete lookup by mangled name.
5163 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5165 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5166 correctly indicate an empty stack and ``stack_allocated'' to the
5167 indicate the number of elements initially allocated.
5168 (dwarf_expr_grow_stack): Simplify method for computing new
5169 stack size. Don't loop infinitely if ``stack_len'' is zero.
5170 (execute_stack_op): Move ``ctx->in_reg'' initialization
5171 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5172 be used in conjuction with DW_OP_piece. Revise error message
5175 2003-05-14 Theodore A. Roth <troth@openavr.org>
5177 * MAINTAINERS: Update my email address.
5178 * avr-tdep.c: Ditto.
5180 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5182 * symtab.h (enum domain_enum): Rename from namespace_enum.
5183 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5184 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5185 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5186 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5187 TYPES_NAMESPACE, METHODS_NAMESPACE.
5188 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5189 (struct symbol, struct partial_symbol): Rename field
5190 'namespace_enum namespace' to 'domain_enum domain'.
5191 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5192 Delete old define kludge for namespace.
5194 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5195 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5196 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5197 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5198 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5199 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5200 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5201 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5202 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5203 occurrences of the above.
5205 2003-05-14 Ian Lance Taylor <ian@airs.com>
5207 * Makefile.in (install-only): Use $(SHELL) when running
5210 2003-05-13 Ian Lance Taylor <ian@airs.com>
5212 * MAINTAINERS (write after approval): Add myself.
5214 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5215 second and third arguments.
5216 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5217 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5219 2003-05-13 Andrew Cagney <cagney@redhat.com>
5221 * defs.h (store_address): Delete declaration.
5222 findvar.c (store_address): Delete function.
5223 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5224 store_unsigned_integer.
5225 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5226 * v850-tdep.c (v850_push_arguments): Ditto.
5227 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5228 * sh-tdep.c (sh64_get_saved_register): Ditto.
5229 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5230 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5231 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5232 (mips_get_saved_register): Ditto.
5233 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5234 (find_func_descr, ia64_push_arguments): Ditto.
5235 * i386-tdep.c (i386_push_arguments): Ditto.
5236 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5237 * frv-tdep.c (frv_push_arguments): Ditto.
5238 * frame.c (legacy_saved_regs_prev_register): Ditto.
5239 (deprecated_generic_get_saved_register): Ditto.
5240 * findvar.c (unsigned_address_to_pointer): Ditto.
5241 * dwarf2read.c (dwarf2_const_value): Ditto.
5242 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5243 * alpha-tdep.c (alpha_push_arguments): Ditto.
5245 2003-05-12 J. Brobecker <brobecker@gnat.com>
5247 * NEWS: Mention that the hppa-hpux port has been partially
5248 multiarched (32bit ABIT only, so far).
5250 2003-05-11 Andrew Cagney <cagney@redhat.com>
5252 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5253 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5254 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5255 sim/testsuite/sim/arm/misaligned2.ms, and
5256 sim/testsuite/sim/arm/misaligned3.ms.
5257 * disasm.h (struct ui_file): Add opaque struct declaration.
5258 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5259 * frame.h (struct ui_file): Ditto.
5261 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5263 * value.h: Pretty print.
5265 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5267 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5269 2003-05-08 Andrew Cagney <cagney@redhat.com>
5271 * regcache.h (max_register_size): Delete declaration.
5272 * regcache.c (max_register_size): Delete function.
5273 (struct regcache_descr): Delete field "max_register_size".
5274 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5275 registers fit in MAX_REGISTER_SIZE.
5276 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5277 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5278 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5279 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5280 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5281 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5282 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5283 * dve3900-rom.c, hppa-tdep.c: Ditto.
5285 2003-05-08 David Carlton <carlton@math.stanford.edu>
5287 * valops.c (push_word): Fix typo.
5289 2003-05-08 Andrew Cagney <cagney@redhat.com>
5291 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5292 * gdbarch.h: Re-generate.
5293 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5294 (legacy_max_register_raw_size): Delete declaration.
5295 * regcache.c (legacy_max_register_raw_size): Delete function.
5296 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5297 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5298 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5299 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5300 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5301 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5302 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5303 * findvar.c, dwarf2cfi.c: Ditto.
5305 2003-05-08 Andrew Cagney <cagney@redhat.com>
5307 * mips-tdep.c (read_signed_register): New function, moved to here
5309 (read_signed_register_pid): Ditto.
5310 * regcache.c (read_signed_register_pid): Delete function, moved to
5312 (read_signed_register): Ditto.
5313 * regcache.h (read_signed_register): Delete declaration.
5314 (read_signed_register_pid): Delete declaration.
5316 2003-05-08 Andrew Cagney <cagney@redhat.com>
5318 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5319 * gdbarch.h: Re-generate.
5320 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5321 (legacy_max_register_virtual_size): Delete declaration.
5322 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5323 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5324 * tracepoint.c (memrange_sortmerge): Ditto.
5325 * sparc-tdep.c (sparc_print_registers): Ditto.
5326 * regcache.c (legacy_max_register_virtual_size): Delete function.
5328 2002-05-08 J. Brobecker <brobecker@gnat.com>
5330 * fork-child.c (escape_bang_in_quoted_argument): New function.
5331 (fork_inferior): Escape '!' characters in quoted arguments
5334 2003-05-08 J. Brobecker <brobecker@gnat.com>
5336 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5337 the language of the CU is not currently supported by GDB.
5339 2003-05-08 J. Brobecker <brobecker@gnat.com>
5341 * defs.h (language): Add language_minimal enum value.
5342 * c-lang.c (minimal_language_defn): New language definition.
5343 (_initialize_c_language): Add the new minimal language to the list
5344 of languages known to GDB.
5346 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5348 * frame.c (get_frame_type): Don't attempt to lazily initialize
5349 frame's unwinder for legacy frames.
5351 2003-05-07 Andrew Cagney <cagney@redhat.com>
5353 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5354 and "regcache" parameters.
5355 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5357 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5359 * dwarf2read.c (dwarf_decode_lines): Only use output of
5360 check_cu_functions() when calling record_line(). Do not update
5361 the current address.
5363 2003-05-07 Andrew Cagney <cagney@redhat.com>
5365 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5368 2003-05-07 Jim Blandy <jimb@redhat.com>
5370 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5371 'maint info symtabs' and 'maint info psymtabs'.
5372 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5373 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5374 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5375 Declarations updated.
5376 * maint.c (maintenance_list_command): Delete.
5377 (_initialize_maint_cmds): Update calls to add_cmd.
5378 * gdbcmd.h (maintenancelistlist): Delete declaration.
5379 * cli/cli-cmds.c (maintenancelistlist): Delete.
5380 (init_cmd_lists): Don't initialize it.
5381 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5383 2003-05-07 Andrew Cagney <cagney@redhat.com>
5385 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5387 (d10v_print_registers_info): Update.
5388 (d10v_dmap_register, d10v_imap_register): Delete functions.
5389 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5390 and "imap_register".
5391 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5392 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5393 * arch-utils.c (generic_remote_translate_xfer_address): Add
5394 "regcache" and "gdbarch" parameters.
5395 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5396 parameter. Change class to multi-arch.
5397 * gdbarch.h, gdbarch.c: Re-generate.
5398 * remote.c (remote_xfer_memory): Use
5399 gdbarch_remote_translate_xfer_address.
5401 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5403 * infrun.c (prev_pc): Move declaration ahead of proceed().
5404 (proceed): Refresh prev_pc value before resuming.
5405 (stop_stepping): Remove code to refresh prev_pc.
5407 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5409 * nto-tdep.c: Removed stray comment.
5411 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5413 * i386-nto-tdep.c: Fix old K&R function definitions.
5414 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5415 Also change add_show_from_set() call to add_setshow_cmd().
5416 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5418 2003-05-05 Andrew Cagney <cagney@redhat.com>
5420 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5421 (fprint_dummy_frames): New function.
5422 (maintenance_print_dummy_frames): New function.
5423 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5424 * frame.c (fprint_frame_id): Make global.
5425 * frame.h (fprint_frame_id): Declare.
5426 * Makefile.in (dummy-frame.o): Update dependencies.
5428 2003-05-05 Andrew Cagney <cagney@redhat.com>
5430 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5431 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5432 SIZEOF_CALL_DUMMY_WORDS.
5433 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5434 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5435 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5436 CALL_DUMMY_BREAKPOINT_OFFSET.
5437 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5438 CALL_DUMMY_START_OFFSET.
5439 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5440 * gdbarch.h, gdbarch.c: Re-generate.
5441 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5442 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5443 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5444 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5445 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5446 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5447 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5448 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5449 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5450 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5451 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5452 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5453 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5454 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5455 * config/sparc/tm-sparc.h: Update.
5457 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5459 * configure.tgt: Add i[3456]86-*-nto*.
5460 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5461 * nto-tdep.c: New file. Neutrino target support routines.
5462 * nto-tdep.h: New file. Neutrino target header.
5463 * config/tm-qnxnto.h: New file.
5464 * config/i386/i386nto.mt: New file.
5465 * config/i386/tm-i386nto.h: New file.
5467 2003-05-04 Andrew Cagney <cagney@redhat.com>
5469 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5470 (load_infrun_state): Ditto.
5471 (struct thread_info): Drop "prev_func_name" field.
5472 * thread.c (load_infrun_state): Update.
5473 (save_infrun_state): Update.
5474 * infrun.c (prev_func_name): Delete variable.
5475 (init_wait_for_inferior): Do not clear prev_func_name.
5476 (stop_stepping, keep_going, context_switch): Do not swap
5478 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5479 instead of PC_IN_SIGTRAMP.
5481 2003-05-04 Andrew Cagney <cagney@redhat.com>
5483 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5484 REGISTER_BYTE with register_offset_hack.
5485 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5486 that REGISTER_BYTE is consistent with the regcache.
5487 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5488 * gdbarch.h, gdbarch.c: Regenerate.
5490 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5492 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5493 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5495 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5497 2003-05-03 J. Brobecker <brobecker@gnat.com>
5499 From Thierry Schneider <tpschneider1@yahoo.com>
5500 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5501 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5502 (mi-cmd-symbol.o): Add rule.
5504 2003-05-03 Andrew Cagney <cagney@redhat.com>
5506 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5507 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5508 * gdbarch.h, gdbarch.c: Re-generate.
5509 * d10v-tdep.c (d10v_push_dummy_code): New function.
5510 (d10v_gdbarch_init): Set push_dummy_code.
5511 * infcall.c (legacy_push_dummy_code): New function.
5512 (generic_push_dummy_code): New function.
5513 (push_dummy_code): New function.
5514 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5515 instead of dummy_addr, to push_dummy_call. Move call to
5516 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5518 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5520 2003-05-03 Andrew Cagney <cagney@redhat.com>
5522 * disasm.h (print_insn): Declare.
5523 * disasm.c (init_gdb_disassemble_info): New function.
5524 (gdb_disassembly): Call init_gdb_disassemble_info.
5525 (gdb_print_insn): New function.
5526 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5527 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5528 * mcore-tdep.c: Include "disasm.h"
5529 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5530 * d10v-tdep.c: Include "disasm.h".
5531 (display_trace): Call gdb_print_insn, instead of print_insn.
5532 (print_insn): Delete function.
5533 * printcmd.c: Include "disasm.h".
5534 (print_insn): Delete function.
5535 (print_formatted): Call gdb_print_insn, instead of print_insn.
5536 * Makefile.in (printcmd.o): Update dependencies.
5537 (mcore-tdep.o, d10v-tdep.o): Ditto.
5539 2003-05-02 Andrew Cagney <cagney@redhat.com>
5541 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5542 PC_REGNUM, re-indent.
5543 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5544 PC_REGNUM isn't set.
5546 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5547 * gdbarch.h, gdbarch.c: Re-generate.
5548 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5549 register_virtual_size, pc_regnum, or register_bytes.
5550 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5551 (d10v_register_type): Use D10V_PC_REGNUM.
5552 (d10v_print_registers_info, d10v_read_pc): Ditto.
5553 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5554 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5556 2003-05-02 David Carlton <carlton@bactrian.org>
5558 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5559 the name with mstrsave.
5561 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5563 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5564 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5565 (host_charset_name, target_charset_name): New vars for use by
5567 (host_charset_enum, target_charset_enum): New enums for set/show
5569 (set_charset_sfunc, set_host_charset_sfunc,
5570 set_target_charset_sfunc): New functions.
5571 (set_host_charset, set_target_charset): Make static.
5572 (list_charsets, set_host_charset_command,
5573 set_target_charset_command): Delete functions.
5574 (show_charset_command): Rewrite as....
5575 (show_charset): Hook this up with the set/show command mechanism.
5576 (_initialize_charset): Change names of charsets to match the
5577 set/show enums. Use host_charset_name and target_charset_name.
5578 Use set/show mechanism for charset, host-charset, target-charset
5579 commands. Do not make 'show host-charset' and 'show
5580 target-charset' be aliases of 'show charset'.
5582 * charset.h (set_host_charset, set_target_charset): Don't export,
5583 they are not used outside the file.
5585 2003-05-01 Andrew Cagney <cagney@redhat.com>
5587 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5588 (gdb_disassembly): Make "di" non static, always initialize and
5589 cleanup. Always use dis_asm_read_memory.
5590 (gdb_dis_asm_read_memory): Delete function.
5592 2003-05-01 Andrew Cagney <cagney@redhat.com>
5594 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5595 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5597 2003-04-30 Andrew Cagney <cagney@redhat.com>
5599 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5600 "tm_print_insn_info".
5601 (TARGET_PRINT_INSN_INFO): Delete macro.
5602 (dis_asm_read_memory): Delete function declaration.
5603 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5604 (tm_print_insn_info): Delete variable definition.
5605 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5606 * gdbarch.h, gdbarch.c: Re-generate.
5607 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5608 "deprecated_tm_print_insn_info".
5609 * mcore-tdep.c (mcore_dump_insn): Ditto.
5610 * mips-tdep.c (mips_gdbarch_init): Ditto.
5611 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5612 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5613 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5614 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5615 instead of TARGET_PRINT_INSN_INFO, add comment.
5616 * s390-tdep.c (s390_get_frame_info): Instead of
5617 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5618 (s390_check_function_end, s390_is_sigreturn): Ditto.
5619 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5620 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5621 * disasm.c: Include "gdbcore.h".
5622 (_initialize_disasm): New function, initialize
5623 "deprecated_tm_print_insn_info".
5624 (deprecated_tm_print_insn_info): New variable.
5625 (dis_asm_read_memory): Moved from "corefile.c", made static.
5626 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5627 * Makefile.in (disasm.o): Update dependencies.
5629 2003-04-30 Andrew Cagney <cagney@redhat.com>
5631 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5633 2003-04-29 Adam Fedor <fedor@gnu.org>
5635 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5636 * infcall.c (find_function_addr): Make non-static.
5637 * infcall.h (find_function_addr): Declare.
5638 * Makefile.in (eval.o): Update dependencies.
5640 2003-04-28 Adam Fedor <fedor@gnu.org>
5642 * symtab.c (symbol_find_demangled_name): Check for and demangle
5644 (symbol_init_demangled_name): Init for language_objc as well.
5646 2003-04-28 Andrew Cagney <cagney@redhat.com>
5648 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5649 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5650 * gdbarch.h, gdbarch.c: Re-generate.
5651 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5652 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5653 * inferior.h (deprecated_read_fp): Rename read_fp.
5654 (generic_target_read_fp): Delete declaration.
5655 * regcache.c (generic_target_read_fp): Delete function.
5656 (deprecated_read_fp): Replace read_fp, use
5657 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5658 * d10v-tdep.c (d10v_read_fp): Delete function.
5659 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5661 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5662 deprecated_target_read_fp to generic_target_read_fp.
5663 * sh-tdep.c (sh_gdbarch_init): Ditto.
5664 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5665 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5666 * frv-tdep.c (frv_gdbarch_init): Ditto.
5668 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5669 deprecated_fp_regnum.
5670 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5671 * vax-tdep.c (vax_gdbarch_init): Ditto.
5672 * v850-tdep.c (v850_gdbarch_init): Ditto.
5673 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5674 * sh-tdep.c (sh_gdbarch_init): Ditto.
5675 * s390-tdep.c (s390_gdbarch_init): Ditto.
5676 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5677 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5678 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5679 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5680 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5681 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5682 * i386-tdep.c (i386_gdbarch_init): Ditto.
5683 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5684 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5685 * frv-tdep.c (frv_gdbarch_init): Ditto.
5686 * cris-tdep.c (cris_gdbarch_init): Ditto.
5687 * avr-tdep.c (avr_gdbarch_init): Ditto.
5688 * arm-tdep.c (arm_gdbarch_init): Ditto.
5689 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5691 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5692 * v850-tdep.c (v850_gdbarch_init): Ditto.
5693 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5694 * sh-tdep.c (sh_gdbarch_init): Ditto.
5695 * s390-tdep.c (s390_gdbarch_init): Ditto.
5696 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5697 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5698 * mips-tdep.c (mips_gdbarch_init): Ditto.
5699 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5700 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5701 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5702 * frv-tdep.c (frv_gdbarch_init): Ditto.
5703 * avr-tdep.c (avr_gdbarch_init): Ditto.
5704 * arm-tdep.c (arm_gdbarch_init): Ditto.
5706 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5707 DEPRECATED_FP_REGNUM.
5708 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5709 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5710 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5711 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5712 (sparc32_register_virtual_type): Ditto.
5713 * sh-tdep.c (sh64_frame_chain): Ditto.
5714 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5715 (sh_nofp_frame_init_saved_regs): Ditto.
5716 (sh64_nofp_frame_init_saved_regs): Ditto.
5717 (sh_fp_frame_init_saved_regs): Ditto.
5718 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5719 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5720 * procfs.c (procfs_fetch_registers): Ditto.
5721 (procfs_store_registers): Ditto.
5722 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5723 (store_inferior_registers, fetch_core_registers): Ditto.
5724 (fetch_kcore_registers, clear_regs): Ditto.
5725 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5726 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5727 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5728 * nlm/i386.c (do_status): Ditto.
5729 * mipsv4-nat.c (supply_gregset): Ditto.
5730 * mips-tdep.c: Ditto for comments.
5731 * mips-nat.c (fetch_inferior_registers): Ditto.
5732 (store_inferior_registers, fetch_core_registers): Ditto.
5733 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5734 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5735 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5736 (i386_do_pop_frame, i386_register_type): Ditto.
5737 * hppa-tdep.c (hppa_frame_chain): Ditto.
5738 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5739 (hppa_pop_frame, hppa_read_fp): Ditto.
5740 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5741 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5742 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5743 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5744 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5745 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5746 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5747 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5748 * blockframe.c: Ditto for comments.
5749 * arch-utils.h: Ditto for comments.
5750 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5751 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5752 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5753 * alpha-tdep.h: Ditto for comments.
5754 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5755 (alpha_cannot_store_register): Ditto.
5756 (alpha_push_dummy_frame): Ditto.
5757 * alpha-nat.c (supply_gregset): Ditto.
5759 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5760 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5761 * config/sparc/tm-sparc.h: Update comment.
5763 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5764 deprecated_read_fp instead of TARGET_READ_FP.
5765 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5766 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5767 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5768 deprecated_read_fp instead of read_fp.
5769 * s390-tdep.c (s390_push_arguments): Ditto.
5770 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5771 * frame.h: Ditto in comments.
5772 * frame.c (legacy_get_prev_frame): Ditto.
5773 * dummy-frame.c (dummy_frame_this_id): Ditto.
5774 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5776 2003-04-28 Andrew Cagney <cagney@redhat.com>
5778 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5779 * gdbarch.h, gdbarch.c: Re-generate.
5780 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5781 * vax-tdep.c (_initialize_vax_tdep): Update.
5782 * v850-tdep.c (_initialize_v850_tdep): Update.
5783 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5784 * s390-tdep.c (_initialize_s390_tdep): Update.
5785 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5786 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5787 * mips-tdep.c (_initialize_mips_tdep): Update.
5788 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5789 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5790 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5791 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5792 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5793 * frv-tdep.c (_initialize_frv_tdep): Update.
5794 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5795 (_initialize_cris_tdep): Update.
5796 * arch-utils.c (legacy_print_insn): Update.
5797 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5799 2003-04-26 Adam Fedor <fedor@gnu.org>
5801 * linespec.c (decode_objc): New function to decode ObjC calls
5802 (decode_line_1): Check for ObjC calls (using decode_objc)
5803 * Makefile (linespec.o): Update dependencies.
5805 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5807 * breakpoint.h (struct breakpoint_ops): New.
5808 (struct breakpoint): Add ops member.
5810 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5811 (mention): Use new breakpoint ops member.
5812 (set_raw_breakpoint): Initialize ops field to NULL.
5813 (print_exception_catchpoint, print_one_exception_catchpoint)
5814 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5815 (gnu_v3_exception_catchpoint_ops): New.
5816 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5818 2003-04-25 Adam Fedor <fedor@gnu.org>
5820 * Makefile.in (COMMON_OBS): Add objc-lang.o
5822 2003-04-25 Andrew Cagney <cagney@redhat.com>
5824 * d10v-tdep.c (print_insn): Delete function.
5825 (display_trace): Use TARGET_PRINT_INSN.
5826 (_initialize_d10v_tdep): Do not set tm_print_insn.
5827 (d10v_gdbarch_init): Set print_insn.
5829 2003-04-25 Andrew Cagney <cagney@redhat.com>
5831 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5832 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5833 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5834 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5835 (nr_dmap_regs, a0_regnum): ... new functions.
5836 (d10v_print_registers_info): Use a0_regnum, use register_size.
5837 (d10v_register_byte): Delete function.
5838 (d10v_register_raw_size): Delete function.
5839 (d10v_register_type): Use a0_regnum.
5840 (d10v_print_registers_info): Use a0_regnum.
5841 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5842 (d10v_gdbarch_init): Do not set register_byte or
5843 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5844 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5846 (trace_command): Use XCALLOC.
5847 (print_insn): Delete reference to tm_print_insn.
5848 (saved_regs_unwinder): Use store_unsigned_integer instead of
5850 * frame.h (FRAME_OBSTACK_CALLOC): Define
5852 2003-04-25 David Carlton <carlton@bactrian.org>
5854 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5856 2003-04-24 Adam Fedor <fedor@gnu.org>
5858 * objc-lang.c: Include "valprint.h"
5859 * Makefile.in (objc-lang.o): Update dependencies.
5861 2003-04-24 Adam Fedor <fedor@gnu.org>
5863 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5864 architecture dependant compilation and mark as unimplemented
5865 (until they get put in the gdbarch vector).
5867 2003-04-23 David Carlton <carlton@bactrian.org>
5869 * cp-support.c (cp_find_first_component): Accept 'operator' in
5872 2003-04-23 Andrew Cagney <cagney@redhat.com>
5874 * infcall.c (call_function_by_hand): Eliminate redundant
5875 indentation. Move "saved_async" and "old_cleanups" to where they
5878 2003-04-23 Andrew Cagney <cagney@redhat.com>
5880 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5881 and "buffer". Move the "name" code to where it is needed.
5883 2003-04-23 Andrew Cagney <cagney@redhat.com>
5885 * infcall.c (call_function_by_hand): Move variables "start_sp",
5886 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5887 code to ON_STACK switch branch.
5889 2003-04-23 Andrew Cagney <cagney@redhat.com>
5891 * infcall.c (call_function_by_hand): Make declaration of "i",
5892 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5895 2003-04-23 Andrew Cagney <cagney@redhat.com>
5897 * infcall.c (call_function_by_hand): Delete variable
5898 "n_method_args". Localize "param_type"'s declaration to the loop
5899 that it is used. Reinstate code assigning to said variable -
5900 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5901 Rationalize code using "param_type".
5903 2003-04-22 Andrew Cagney <cagney@redhat.com>
5905 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5906 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5907 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5908 to DEPRECATED_PUSH_RETURN_ADDRESS.
5910 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5912 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5913 on the DWARF2 register number prior to fetching a register.
5915 2003-04-22 J. Brobecker <brobecker@gnat.com>
5917 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5918 Update all the tests using SOFT_FLOAT considering the fact that
5919 this macro was always set to 0.
5920 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5921 considering the fact that this macro was always set to 0.
5922 * hppa-tdep.h (hppa_store_return_value): Likewise.
5923 (hppa_extract_return_value): Likewise.
5925 2003-04-22 J. Brobecker <brobecker@gnat.com>
5927 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5928 the hppa-pro target only.
5930 2003-04-21 J. Brobecker <brobecker@gnat.com>
5932 Ongoing multi-arch conversion effort for HP/UX:
5933 * config/pa/tm-hppa.h: Move all macro that are no longer
5934 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5935 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5937 2003-04-21 J. Brobecker <brobecker@gnat.com>
5939 * config/pa/tm-hppa.h: Obsolete a section that was only used
5942 2003-04-21 J. Brobecker <brobecker@gnat.com>
5944 Ongoing multi-arch conversion for HP/UX.
5945 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5946 if already defined (allows hppa64 to stay non-multiarched for now).
5947 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5949 2003-04-21 Andrew Cagney <cagney@redhat.com>
5951 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5953 2003-04-21 Andrew Cagney <cagney@redhat.com>
5955 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5956 "i386_num_mmx_regs".
5958 2003-04-21 Andrew Cagney <cagney@redhat.com>
5960 * infcall.c: New file.
5961 * infcall.h: New file.
5962 * valarith.c: Include "infcall.h".
5963 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5964 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5965 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5966 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5967 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5968 (SFILES): Add "infcall.c"
5969 (COMMON_OBS): Add "infcall.o".
5970 (infcall.o): Specify dependencies.
5971 * value.h (call_function_by_hand): Delete declaration.
5972 * inferior.h (run_stack_dummy): Delete declaration.
5973 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5974 (run_stack_dummy): Move to "infcall.c", merged into
5975 call_function_by_hand.
5976 * valops.c (call_function_by_hand): Moved to "infcall.c".
5977 (find_function_addr, value_arg_coerce): Ditto.
5978 (unwindonsignal_p, coerce_float_to_double): Ditto.
5979 (_initialize_valops): Move "set/show coerce-float-to-double", and
5980 "set/show unwindonsignal" commands to "infcall.c".
5981 * v850-tdep.c, target.h: Update comments.
5982 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5983 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5984 (sh64_init_extra_frame_info): Update comments.
5985 * mn10300-tdep.c: Update comments.
5986 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5987 * config/sparc/tm-sparc.h: Update comments.
5988 * breakpoint.h: Update comments.
5989 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5990 * arm-tdep.c: Update comment.
5992 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5994 * i386-tdep.c (i386_num_register_names): New variable.
5995 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5996 (MM0_REGNUM): Remove redundant parentheses in define.
5997 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5998 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5999 i386_mxcsr_regnum_p): Remove redundant parentheses.
6000 (i386_register_name): Use i386_num_register_names.
6002 * i386-tdep.c (i386_extract_return_value,
6003 i386_store_return_value): Correct check for availability of
6004 floating-point registers.
6006 * i386-tdep.c (i386_frame_num_args): Remove function.
6007 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6009 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6010 mmx_regnum_to_fp_regnum. Adjust all callers.
6012 * i386-tdep.c (i386_get_longjmp_target): Use
6013 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6014 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6017 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6019 * core-regset.c: Update comments to reflect reality. Re-order
6021 (fetch_core_registers): Use switch instead of if. Remove
6022 redundant prototype.
6024 2003-04-18 Jim Blandy <jimb@redhat.com>
6026 * s390-tdep.c (s390_frame_align): New function.
6027 (s390_gdbarch_init): Register it with the gdbarch object.
6029 2003-04-17 Richard Henderson <rth@redhat.com>
6031 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6033 2003-04-17 Michael Snyder <msnyder@redhat.com>
6034 Karen Bennet <bennet@redhat.com>
6036 Committed by Elena Zannoni <ezannoni@redhat.com>
6037 * gdb_gcore.sh: New script to create a core dump of a process.
6039 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6041 * values.c (value_being_returned): Don't fetch the return
6042 value if the return type is void.
6044 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6046 * thread-db.c: Reindented.
6048 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6050 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6051 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6078 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6080 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6081 the size of ``long double'' to 16, instead of 8.
6083 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6085 * i386-linux-nat.c: Add some whitespace to make things more
6087 (fetch_register, store_register, fetch_inferior_registers,
6088 store_inferior_registers): Get rid of assignment in if-statement.
6089 (store_register): Fix typo in error message.
6091 2003-04-16 Andrew Cagney <cagney@redhat.com>
6093 * utils.c (xmmalloc): Always allocate something, matches
6094 libiberty/xmalloc's semantics.
6095 (xmrealloc, xmcalloc): Ditto.
6097 2003-04-16 Andrew Cagney <cagney@redhat.com>
6099 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6101 (get_frame_type): Initialize unwind and type when needed.
6102 (get_frame_id, frame_register_unwind): Ditto.
6104 2003-04-16 Andrew Cagney <cagney@redhat.com>
6106 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6108 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6109 * sparcl-stub.c: Obsolete file.
6110 * config/sparc/tm-sparclet.h: Obsolete file.
6111 * sparclet-stub.c: Obsolete file.
6112 * sparclet-rom.c: Obsolete file.
6113 * sparcl-tdep.c: Obsolete file.
6114 * config/sparc/tm-sparclite.h: Obsolete file.
6115 * config/sparc/sparclite.mt: Obsolete file.
6116 * config/sparc/sparclet.mt: Obsolete file.
6117 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6118 sparc86x-*-* obsolete.
6120 2003-04-15 David Carlton <carlton@math.stanford.edu>
6122 * Makefile.in (SFILES): Add cp-namespace.c.
6123 (COMMON_OBS): Add cp-namespace.o.
6124 (block.o): Depend on gdb_obstack_h and cp_support_h.
6125 (buildsym.o): Depend on cp_support_h.
6126 (cp-namespace.o): New.
6127 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6128 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6129 (dwarf2read.o): Depend on cp_support_h.
6130 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6131 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6132 processing_current_namespace.
6133 (read_namespace): Update processing_current_namespace; check for
6134 anonymous namespaces.
6135 (dwarf2_name): New function.
6136 (dwarf2_extension): Ditto.
6137 * cp-support.h: Update copyright, contributors.
6138 Add inclusion guards.
6139 Add opaque declaration for structs obstack, block, symbol.
6140 (struct using_direct): New struct.
6141 Add declarations for cp_find_first_component,
6142 cp_entire_prefix_len, processing_has_namespace_info,
6143 processing_current_namespace, cp_is_anonymous,
6144 cp_add_using_directive, cp_initialize_namespace,
6145 cp_finalize_namespace, cp_set_block_scope,
6146 cp_scan_for_anonymous_namespaces.
6147 * cp-namespace.c: New file.
6148 * cp-support.c: Update copyright.
6149 Include ctype.h, gdb_assert.h, gdbcmd.h.
6150 New variable maint_cplus_cmd_list.
6151 (cp_find_first_component): New function.
6152 (cp_entire_prefix_len, maint_cplus_command)
6153 (first_component_command, _initialize_cp_support): Ditto.
6154 * buildsym.c: Include cp-support.h.
6155 New variable using_list.
6156 (add_symbol_to_list): Check for anonymous namespaces.
6157 (finish_block): Set block's scope.
6158 (start_symtab): Initialize C++ namespace support.
6159 (end_symtab): Finalize C++ namespace support.
6160 * block.h: Add opaque declarations for structs
6161 block_namespace_info, using_direct, and obstack.
6162 Add declarations for block_set_scope and block_set_using.
6163 (struct block): Add 'language_specific' member.
6164 (BLOCK_NAMESPACE): New macro.
6165 * block.c: Include gdb_obstack.h and cp-support.h.
6166 (struct block_namespace_info): New struct.
6167 (block_set_scope): New function.
6168 (block_set_using, block_initialize_namespace): Ditto.
6170 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6172 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6173 (locate_base): Return early if there aren't any link map offsets.
6174 (svr4_solib_create_inferior_hook): Warn if shared library support
6177 2003-04-14 David Carlton <carlton@math.stanford.edu>
6179 * symtab.c (symbol_set_names): Add prefix when storing Java names
6180 in hash table. Fix for PR java/1039.
6182 2003-04-14 David Carlton <carlton@math.stanford.edu>
6184 * symtab.c (symbol_set_names): Rename 'name' arg to
6185 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6186 * symtab.h: Change 'name' argument in declaration of
6187 symbol_set_names to 'linkage_name'.
6188 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6190 2003-04-14 Andrew Cagney <cagney@redhat.com>
6192 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6193 return the fully sign-extended register value.
6194 (get_frame_pointer): Ditto.
6195 (mips_pop_frame): Initialize "proc_desc" after checking for a
6198 2003-04-14 Andrew Cagney <cagney@redhat.com>
6200 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6201 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6202 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6203 (mips_push_register): Delete function.
6204 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6207 2003-04-14 Jim Blandy <jimb@redhat.com>
6209 * symmisc.c: #include "gdb_regex.h".
6210 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6212 * maint.c (maintenance_list_command): New function.
6213 (_initialize_maint_cmds): Register the above as commands.
6214 * symtab.h (maintenance_list_symtabs,
6215 maintenance_list_psymtabs): New declarations.
6216 * cli/cli-cmds.c (maintenancelistlist): New variable.
6217 (init_cmd_lists): Initialize it.
6218 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6219 * gdbcmd.h (maintenancelistlist): New declaration.
6220 * Makefile.in (symmisc.o): Update dependencies.
6222 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6224 * s390-nat.c: Include asm/types.h for addr_t.
6226 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6228 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6229 actually incoming type.
6231 2003-04-13 Andrew Cagney <cagney@redhat.com>
6233 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6234 get_next_frame and get_frame_saved_regs.
6236 2003-04-13 Andrew Cagney <cagney@redhat.com>
6238 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6239 of gdbarch_num_regs.
6241 2003-04-13 Andrew Cagney <cagney@redhat.com>
6243 * frame.h: Mention what replaced what in "struct frame_info".
6244 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6245 deprecated_update_frame_base_hack and
6246 deprecated_update_frame_pc_hack.
6247 * hppa-tdep.c: Ditto.
6249 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6251 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6252 to read_reg and update its comment. Remove regnum member.
6253 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6254 Don't call read_reg when setting in_reg. Call read_reg to get
6255 the frame base if it's in a register. Return the register number
6256 on the stack instead of in the context. Remove extra arguments
6258 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6259 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6260 the register number on the expression stack.
6261 (needs_frame_read_reg): Remove extra arguments.
6263 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6265 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6267 (execute_stack_op): All callers updated.
6268 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6269 * dwarf2loc.c (find_location_expression): New function.
6270 (dwarf_expr_frame_base): Call it.
6271 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6272 (dwarf2_tracepoint_var_ref): New function, broken out from
6273 locexpr_tracepoint_var_ref.
6274 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6276 (loclist_read_variable, loclist_read_needs_frame): New functions.
6277 (loclist_describe_location, loclist_tracepoint_var_ref): New
6279 (dwarf2_loclist_funcs): New struct location_funcs.
6280 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6281 (struct dwarf2_locexpr_baton): Add comments.
6282 (dwarf2_loclist_funcs): New extern.
6283 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6284 base_address and base_known.
6285 (dwarf_loc_buffer): New variable.
6286 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6287 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6288 (dwarf2_has_info): Initialize dwarf_loc_offset.
6289 (dwarf2_build_psymtabs): Read in .debug_loc.
6290 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6292 (psymtab_to_symtab_1): Likewise. Move base address calculation
6294 (dwarf2_get_pc_bounds): ... here. Use the base address from
6296 (dwarf2_symbol_mark_computed): Handle location lists.
6298 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6300 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6301 if the linkage name demangled successfully.
6303 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6305 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6306 disassmbly_flavour): Removed.
6308 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6310 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6312 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6314 2003-04-12 Andrew Cagney <cagney@redhat.com>
6316 * frame.h (struct frame_info): Move definition from here ...
6317 * frame.c (struct frame_info): ... to here.
6319 2003-04-12 Andrew Cagney <cagney@redhat.com>
6321 * gdbthread.h (save_infrun_state): Delete parameter
6323 (struct thread_info): Delete field "prev_func_start".
6324 (load_infrun_state): Ditto.
6325 * thread.c (load_infrun_state, save_infrun_state): Update.
6326 * infrun.c (prev_func_start): Delete variable.
6327 (context_switch, init_wait_for_inferior): Update.
6328 (stop_stepping, keep_going): Update.
6330 2003-04-12 Andrew Cagney <cagney@redhat.com>
6332 * gdbarch.sh: Add missing opaque declarations.
6333 * gdbarch.h: Regnerate.
6334 * symtab.h: Add missing opaque declarations.
6335 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6336 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6337 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6338 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6339 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6340 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6341 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6342 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6343 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6344 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6345 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6346 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6347 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6349 2003-04-11 Andrew Cagney <cagney@redhat.com>
6351 * frame.c (get_frame_id): Return this frame's "id".
6352 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6354 (legacy_saved_regs_this_id): Replace function body with
6356 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6357 FRAME_OBSTACK_ZALLOC.
6358 (create_new_frame): Mark the frame ID as valid.
6360 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6362 * Makefile.in (libbfd_h): Added missing setting.
6363 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6364 according to the selected ABI.
6366 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6368 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6370 2003-04-11 Andrew Cagney <cagney@redhat.com>
6372 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6373 SAVED_PC_AFTER_CALL.
6374 * gdbarch.h, gdbarch.c: Regenerate.
6375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6376 * x86-64-tdep.c (x86_64_init_abi): Update.
6377 * vax-tdep.c (vax_gdbarch_init): Update.
6378 * v850-tdep.c (v850_gdbarch_init): Update.
6379 * sparc-tdep.c (sparc_gdbarch_init): Update.
6380 * sh-tdep.c (sh_gdbarch_init): Update.
6381 * s390-tdep.c (s390_gdbarch_init): Update.
6382 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6383 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6384 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6385 * mips-tdep.c (mips_gdbarch_init): Update.
6386 * mcore-tdep.c (mcore_gdbarch_init): Update.
6387 * m68k-tdep.c (m68k_gdbarch_init): Update.
6388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6389 * ia64-tdep.c (ia64_gdbarch_init): Update.
6390 (ia64_saved_pc_after_call): Update declaration.
6391 * i386ly-tdep.c (i386lynx_init_abi): Update.
6392 * i386-tdep.c (i386_gdbarch_init): Update.
6393 * hppa-tdep.c (hppa_gdbarch_init): Update.
6394 * h8300-tdep.c (h8300_gdbarch_init): Update.
6395 * frv-tdep.c (frv_gdbarch_init): Update.
6396 * cris-tdep.c (cris_gdbarch_init): Update.
6397 * avr-tdep.c (avr_gdbarch_init): Update.
6398 * arm-tdep.c (arm_gdbarch_init): Update.
6399 * alpha-tdep.c (alpha_gdbarch_init): Update.
6400 * ns32knbsd-nat.c (frame_num_args): Update.
6401 * ns32k-tdep.c (umax_frame_num_args): Update.
6402 * mips-tdep.c (mips_init_frame_pc_first): Update.
6403 * infrun.c (step_over_function): Update.
6404 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6405 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6406 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6407 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6408 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6409 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6410 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6411 * arch-utils.c (init_frame_pc_default): Update.
6412 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6413 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6416 2003-04-11 Andrew Cagney <cagney@redhat.com>
6418 * i387-tdep.c: Update copyright.
6419 (i387_to_double): Delete function.
6420 (double_to_i387): Delete function.
6422 2003-04-10 Andrew Cagney <cagney@redhat.com>
6424 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6425 frame's function's address. Simplify.
6426 (d10v_frame_unwind_cache): Check that the frame's function is
6429 2003-04-10 Jim Blandy <jimb@redhat.com>
6431 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6432 call to set_gdbarch_deprecated_push_arguments.
6434 2003-04-10 Andrew Cagney <cagney@redhat.com>
6436 * frame.c (fprint_frame_id): New function.
6437 (fprint_frame_type, fprint_frame): New function.
6438 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6439 (create_sentinel_frame, get_frame_id): Ditto.
6440 (frame_id_p, frame_id_eq): Ditto.
6441 (frame_id_inner, create_new_frame): Ditto.
6442 (legacy_get_prev_frame, get_prev_frame): Ditto.
6443 (deprecated_update_frame_pc_hack): Ditto.
6444 (frame_register_unwind): Ditto.
6445 (deprecated_update_frame_base_hack): Ditto.
6447 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6449 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6450 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6451 frame_chain function.
6452 * Makefile.in: Add dependencies due to above change.
6454 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6456 * blockframe.c (legacy_frame_chain_valid): Move call to
6457 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6460 2003-04-09 Andrew Cagney <cagney@redhat.com>
6462 * frame.h (struct frame_id): Replace "pc" and "base" with
6463 "stack_addr" and "code_addr". Update comments.
6464 (frame_id_build): Update parameter names and comment.
6465 (struct frame_info): Replace "id_p" and "id" with "this_id".
6466 * dummy-frame.c (dummy_frame_this_id): Update.
6467 * breakpoint.c (print_one_breakpoint): Update.
6468 * frame.c (get_frame_id): Update.
6469 (get_frame_base, frame_id_build): Update.
6470 (create_sentinel_frame, legacy_get_prev_frame): Update.
6471 (deprecated_update_frame_base_hack): Update.
6472 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6473 (frame_id_inner): Ditto.
6475 2003-04-09 Andrew Cagney <cagney@redhat.com>
6477 * defs.h (gdb_print_host_address): Make "addr" parameter a
6479 * utils.c (gdb_print_host_address): Update.
6481 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6483 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6484 register number for R0 is 0.
6486 2003-04-09 J. Brobecker <brobecker@gnat.com>
6488 * frame.h (struct gdbarch): Add opaque structure definition
6489 to avoid a compilation warning on LynxOS 4.0.
6491 2003-04-09 Andrew Cagney <cagney@redhat.com>
6493 * frame.h (struct frame_info): Delete field "pc". Replace
6494 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6496 * frame.c (frame_pc_unwind): Update.
6497 (create_sentinel_frame): Do not set "pc".
6498 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6499 (get_frame_pc): Call frame_pc_unwind.
6500 (deprecated_update_frame_pc_hack): Update.
6501 (create_new_frame): Use "pc" not "->pc".
6503 2003-04-09 Andrew Cagney <cagney@redhat.com>
6505 * frame.c (get_frame_id): Eliminate code updating "frame".
6506 (legacy_get_prev_frame): Ditto.
6507 (get_frame_base): Return id.base directly.
6508 (deprecated_update_frame_base_hack): Update "id.base".
6509 * frame.h (struct frame_info): Delete field "frame".
6511 2003-04-09 Andrew Cagney <cagney@redhat.com>
6513 * NEWS: Mention that the "Sequent family" is obsolete.
6514 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6515 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6516 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6517 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6518 * config/i386/tm-ptx4.h: Obsolete file.
6519 * config/i386/tm-ptx.h: Obsolete file.
6520 * symm-tdep.c: Obsolete file.
6521 * config/i386/symmetry.mt: Obsolete file.
6522 * config/i386/tm-symmetry.h: Obsolete file.
6523 * symm-nat.c: Obsolete file.
6524 * config/i386/nm-symmetry.h: Obsolete file.
6525 * config/i386/xm-symmetry.h: Obsolete file.
6526 * config/i386/symmetry.mh: Obsolete file.
6527 * config/i386/nm-ptx4.h: Obsolete file.
6528 * config/i386/ptx4.mh: Obsolete file.
6529 * config/i386/ptx.mt: Obsolete file.
6530 * config/i386/ptx.mh: Obsolete file.
6531 * config/i386/xm-ptx4.h: Obsolete file.
6532 * config/i386/xm-ptx.h: Obsolete file.
6534 2003-04-09 Andrew Cagney <cagney@redhat.com>
6536 Obsolete mips*-*-mach3*.
6537 * NEWS: Mention that mips*-*-mach3* is obsolete.
6538 * m3-nat.c: Obsolete file.
6539 * config/nm-m3.h: Obsolete file.
6540 * config/mips/tm-mipsm3.h: Obsolete file.
6541 * config/mips/mipsm3.mt: Obsolete file.
6542 * config/mips/mipsm3.mh: Obsolete file.
6543 * config/mips/xm-mipsm3.h: Obsolete file.
6544 * mipsm3-nat.c: Obsolete file.
6545 * configure.host: Obsolete mips-dec-mach3*.
6546 * configure.tgt: Obsolete mips*-*-mach3*.
6548 2003-04-09 Andrew Cagney <cagney@redhat.com>
6550 * doublest.h: Update copyright.
6551 (deprecated_store_floating, deprecated_extract_floating): Rename
6552 store_floating and extract_floating. Update comments.
6553 * doublest.c: Update copyright.
6554 (extract_floating_by_length): Replace extract_floating.
6555 (store_floating_by_length): Replace store_floating.
6556 (deprecated_extract_floating): New function.
6557 (deprecated_store_floating): New function.
6558 (extract_typed_floating): Call extract_floating_by_length.
6559 (store_typed_floating): Call store_floating_by_length.
6560 * x86-64-tdep.c (x86_64_store_return_value): Update.
6561 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6562 (sh64_extract_return_value): Update.
6563 (sh_sh4_register_convert_to_virtual): Update.
6564 (sh_sh64_register_convert_to_virtual): Update.
6565 (sh_sh4_register_convert_to_raw): Update.
6566 (sh_sh64_register_convert_to_raw): Update.
6567 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6568 (rs6000_register_convert_to_raw): Update.
6569 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6570 (ia64_register_convert_to_raw): Update.
6571 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6572 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6573 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6574 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6575 (alpha_register_convert_to_raw): Update.
6577 2003-04-08 Andrew Cagney <cagney@redhat.com>
6579 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6580 * gdbarch.h, gdbarch.c: Re-generate.
6581 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6582 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6583 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6584 conditionally, use frame_pc_unwind as an alternative. Add
6586 * arch-utils.c (init_frame_pc_default): Only call
6587 SAVED_PC_AFTER_CALL when available.
6589 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6591 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6592 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6593 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6594 (start_remote): Ditto.
6595 (handle_inferior_event): Ditto.
6596 (save_inferior_status): Ditto.
6597 (restore_inferior_status): Ditto.
6598 * infcmd.c (attach_command): Ditto.
6599 * fork-child.c (startup_inferior): Ditto.
6600 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6601 * alpha-tdep.c (heuristic_proc_start): Ditto.
6602 * mips-tdep.c (heuristic_proc_start): Ditto.
6603 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6604 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6605 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6606 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6607 * remote-vx.c (vx_create_inferior): Ditto.
6609 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6611 * infrun.c (stop_soon_quietly): Make it an enum, to better
6612 override the default behavior of handle_inferior_event.
6613 (clear_proceed_status): Update uses of stop_soon_quietly to
6614 reflect that it is now an enum.
6615 (start_remote): Ditto.
6616 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6617 is set to handle the new GNU/Linux kernel behavior for
6618 attach/sigstop. Update uses of stop_soon_quietly.
6619 * inferior.h (enum stop_kind): New enum.
6620 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6621 Reset normal handle_inferior_event behavior, afterwards.
6622 * fork-child.c (startup_inferior): Update.
6623 * alpha-tdep.c (heuristic_proc_start): Update.
6624 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6625 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6626 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6627 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6628 * remote-vx.c (vx_create_inferior): Update.
6629 * mips-tdep.c (heuristic_proc_start): Update.
6631 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6633 * disasm.c (dump_insns): Move variables inside loop, or they will
6634 be freed more than once, causing wild memory corruptions.
6635 (gdb_disassembly): Look for the substring "-thread",
6636 instead of "-threads" in the target name, to make sure to find
6637 the 'multi-thread' target. Also, make sure we do the right thing
6638 with the "core" target.
6640 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6642 * mips-tdep.c (mips_print_fp_register): New function, created from
6643 do_fp_register_row(). Registers are now (also) printed as hex.
6644 Only one register is printed per row.
6645 (mips_print_register, do_fp_register_row): Print floating point
6646 registers with mips_print_fp_register().
6648 2003-04-06 Andrew Cagney <cagney@redhat.com>
6650 * valprint.h (inspect_it): Add extern declaration.
6651 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6652 (selectors_info, classes_info): Ditto.
6653 (find_objc_msgcall): Fix indentation.
6654 (objc_printstr): Delete extern declarations.
6656 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6658 2003-04-06 Andrew Cagney <cagney@redhat.com>
6660 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6662 * frame.c (legacy_saved_regs_this_id): Update.
6663 (legacy_get_prev_frame): Update.
6664 * xstormy16-tdep.c: Update comment.
6665 * sparc-tdep.c (sparc_frame_chain): Update comment.
6666 * blockframe.c (legacy_frame_chain_valid): Update.
6668 2003-04-06 Andrew Cagney <cagney@redhat.com>
6670 * valprint.c (val_print_type_code_int): Delete #ifdef
6671 PRINT_TYPELESS_INTEGER code.
6673 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6674 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6675 multi-arch definition.
6676 * gdbarch.h: Re-generate.
6678 2003-04-05 Andrew Cagney <cagney@redhat.com>
6680 Eliminate FRAME_FIND_SAVED_REGS.
6681 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6682 Change FSR parameter to a pointer.
6683 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6684 Assume FSR parameter is a pointer.
6685 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6687 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6688 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6689 saved_regs a pointer.
6690 (hppa_frame_saved_pc): Ditto.
6691 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6692 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6694 (restore_pc_queue): Make fsr a pointer.
6695 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6696 (hppa_frame_chain): Make saved_regs a pointer, call
6697 hppa_frame_init_saved_regs.
6698 * sparc-tdep.c: Include "gdb_assert.h".
6699 (sparc_frame_find_saved_regs): Replace internal_error with
6701 * remote-vxsparc.c (vx_read_register): Delete reference to
6702 FRAME_FIND_SAVED_REGS.
6703 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6704 * gdbarch.h: Regenerate.
6705 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6706 (deprecated_get_frame_saved_regs): Delete declaration.
6707 (struct frame_saved_regs): Delete definition.
6708 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6709 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6710 (hppa_frame_find_saved_regs): Delete declaration.
6711 (FRAME_FIND_SAVED_REGS): Delete macro.
6712 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6713 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6714 FRAME_FIND_SAVED_REGS in comment.
6716 2003-04-05 Andrew Cagney <cagney@redhat.com>
6718 * frame.c (frame_func_unwind, get_frame_func): New functions.
6719 * frame.h (get_frame_func, frame_func_unwind): Declare.
6720 (struct frame_info): Add field "prev_func" for caching the
6721 previous frame's function address.
6722 * arm-tdep.c (arm_frameless_function_invocation): Combine
6723 get_pc_function_start and get_frame_pc into get_frame_func.
6724 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6725 (sh64_nofp_frame_init_saved_regs): Ditto.
6726 * s390-tdep.c (s390_function_start): Ditto.
6727 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6728 (rs6000_frameless_function_invocation): Ditto.
6729 (rs6000_frame_saved_pc): Ditto.
6730 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6731 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6732 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6733 (i386_frame_init_saved_regs): Ditto.
6734 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6735 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6736 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6737 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6738 * blockframe.c (frameless_look_for_prologue): Ditto.
6740 2003-04-05 Andrew Cagney <cagney@redhat.com>
6742 * frame.c (legacy_get_prev_frame): Link prev to next at the
6743 function start. Update comments.
6745 2003-04-05 Andrew Cagney <cagney@redhat.com>
6747 * frame.c (get_frame_id): Update comment.
6748 (legacy_get_prev_frame): Update comment.
6749 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6750 * gdbarch.h: Regenerate.
6751 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6752 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6754 2003-04-05 Andrew Cagney <cagney@redhat.com>
6756 * stack.c (print_frame_info): Use get_frame_pc.
6758 2003-04-04 Andrew Cagney <cagney@redhat.com>
6760 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6761 the frame's type from the unwinder.
6762 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6763 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6764 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6765 (get_frame_base_address): Use get_frame_type.
6766 (get_frame_locals_address, get_frame_args_address): Ditto.
6767 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6768 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6769 (struct frame_info): Add comment explaining why the frame contains
6771 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6772 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6773 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6775 * frame-unwind.h: Include "frame.h".
6776 (struct frame_unwind): Add "type" field.
6777 * Makefile.in (frame_unwind_h): Add $(frame_h).
6779 2003-04-04 Andrew Cagney <cagney@redhat.com>
6781 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6782 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6783 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6785 (d10v_unwind_dummy_id): Use frame_id_build.
6786 * frame.c (find_frame_sal): Use get_frame_pc.
6787 (create_new_frame): Use deprecated_update_frame_pc_hack and
6788 deprecated_update_frame_base_hack.
6789 (create_sentinel_frame): Add comment about ->pc going away.
6790 (get_prev_frame): Add comment about ->pc going away.
6791 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6792 frame_id_build, deprecated_update_frame_pc_hack and
6793 deprecated_update_frame_base_hack.
6794 (select_frame): Use get_frame_pc.
6795 (legacy_saved_regs_this_id): Use frame_id_build.
6797 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6799 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6800 signed integer case.
6801 (classify_argument): Handle enumerations and references.
6803 2003-04-04 Andrew Cagney <cagney@redhat.com>
6805 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6808 2003-04-01 Adam Fedor <fedor@gnu.org>
6810 * gdb/objc-lang.c (selectors_info): Replace calls to
6811 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6812 SYMBOL_NATURAL_NAME.
6813 (classes_info, find_methods): Likewise.
6815 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6817 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6818 ``mach'' to the value determined by bfd_default_set_arch_mach().
6820 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6822 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6823 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6824 (mi-cmd-file.o): Update dependencies.
6826 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6828 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6829 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6831 2003-04-01 Adam Fedor <fedor@gnu.org>
6833 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6834 * language.h (struct language_defn): Add la_demangle.
6835 (language_demangle): Declare.
6836 * language.c (language_demangle): New function.
6837 (unk_lang_demangle): Likewise.
6838 (unknown_language_defn, auto_language_defn, local_language_defn):
6839 Add ukn_lang_demangle.
6840 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6841 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6842 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6843 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6844 * jv-lang.c (java_demangle): New function
6845 (java_language_defn): Use it for la_demangle element.
6846 * objc-lang.c (objc_demangle): Add options argument
6847 (objc_language_defn): Use objc_demangle for la_demangle element.
6848 * maint.c (maintenance_demangle): Replace switch with
6849 call to language_demangle.
6850 * utils.c (fprintf_symbol_filtered): Likewise.
6852 2003-04-01 Andrew Cagney <cagney@redhat.com>
6854 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6855 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6856 PRINT_TYPELESS_INTEGER.
6857 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6858 PUSH_RETURN_ADDRESS.
6860 2003-04-01 Andrew Cagney <cagney@redhat.com>
6862 * Makefile.in (d10v-tdep.o): Update dependencies.
6863 * d10v-tdep.c: Include "frame-base.h".
6864 (d10v_frame_unwind): Make constant.
6865 (d10v_frame_base_address): New function.
6866 (d10v_frame_base): New variable.
6867 (d10v_gdbarch_init): Set frame_base default.
6868 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6870 (d10v_frame_unwind_cache): Set and use "prev_sp".
6871 (d10v_frame_this_id): Use the previous frame's inner most stack
6872 address and this frame's func address for the frame ID. Use
6873 frame_id_build. Don't analyze beyond the current instruction.
6875 2003-04-01 Andrew Cagney <cagney@redhat.com>
6877 * frame.h (get_frame_locals_address, get_frame_args_address):
6878 Refer to the base address, instead of the address of the first
6881 2003-04-01 Andrew Cagney <cagney@redhat.com>
6883 Add frame debug info addresses:
6884 * frame-base.c: New file.
6885 * frame-base.h: New file.
6886 * frame.h (struct frame_base): Add opaque declaration.
6887 (get_frame_base): Update comment.
6888 (get_frame_base_address): Declare.
6889 (get_frame_locals_address): Declare.
6890 (get_frame_args_address): Declare.
6891 (struct frame_info): Add "base" and "base_cache". Update
6892 comments on the unwinder.
6893 * frame.c: Include "frame-base.h".
6894 (get_frame_locals_address): New function.
6895 (get_frame_base_address): New function.
6896 (get_frame_args_address): New function.
6897 * findvar.c (read_var_value): Use get_frame_locals_address and
6898 get_frame_args_address.
6899 * stack.c (frame_info): Use get_frame_locals_address and
6900 get_frame_args_address.
6901 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6902 moved to "frame-base.c".
6903 * printcmd.c (print_frame_nameless_args): Ditto.
6904 * symtab.h (address_class): Update comments.
6905 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6906 get_frame_base_address.
6907 * dwarf2expr.c (execute_stack_op): Ditto.
6908 * Makefile.in (frame_base_h): Define.
6909 (frame.o): Update dependencies.
6910 (frame-base.o): Add dependencies.
6911 (SFILES): Add frame-base.c.
6912 (COMMON_OBS): Add frame-base.o.
6914 2003-04-01 Andrew Cagney <cagney@redhat.com>
6916 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6917 CALL_DUMMY_LENGTH): Ditto.
6918 * gdbarch.c: Re-generate.
6919 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6920 (CALL_DUMMY_LENGTH): Delete macro.
6921 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6922 * arm-tdep.c (arm_gdbarch_init): Ditto.
6923 * avr-tdep.c (avr_gdbarch_init): Ditto.
6924 * cris-tdep.c (cris_gdbarch_init): Ditto.
6925 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6926 * frv-tdep.c (frv_gdbarch_init): Ditto.
6927 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6928 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6929 * i386-tdep.c (i386_gdbarch_init): Ditto.
6930 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6932 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6933 * mips-tdep.c (mips_gdbarch_init): Ditto.
6934 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6935 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6936 * s390-tdep.c (s390_gdbarch_init): Ditto.
6937 * sh-tdep.c (sh_gdbarch_init): Ditto.
6938 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6939 * v850-tdep.c (v850_gdbarch_init): Ditto.
6940 * vax-tdep.c (vax_gdbarch_init): Ditto.
6941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6943 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6945 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6947 2003-04-01 Andrew Cagney <cagney@redhat.com>
6949 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6950 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6951 * gdbarch.h, gdbarch.c: Re-generate.
6952 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6953 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6954 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6955 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6956 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6957 * infcmd.c (run_stack_dummy): Simplify assuming
6958 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6959 * infrun.c (handle_inferior_event): Ditto.
6960 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6961 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6962 * arm-tdep.c (arm_gdbarch_init): Ditto.
6963 * avr-tdep.c (avr_gdbarch_init): Ditto.
6964 * cris-tdep.c (cris_gdbarch_init): Ditto.
6965 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6966 * frv-tdep.c (frv_gdbarch_init): Ditto.
6967 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6968 * i386-tdep.c (i386_gdbarch_init): Ditto.
6969 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6970 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6971 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6972 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6973 * mips-tdep.c (mips_gdbarch_init): Ditto.
6974 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6975 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6976 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6977 * s390-tdep.c (s390_gdbarch_init): Ditto.
6978 * sh-tdep.c (sh_gdbarch_init): Ditto.
6979 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6980 * v850-tdep.c (v850_gdbarch_init): Ditto.
6981 * vax-tdep.c (vax_gdbarch_init): Ditto.
6982 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6984 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6986 * symfile.c (symfile_relocate_debug_section): Update call to
6987 bfd_simple_get_relocated_section_contents.
6989 2003-03-31 Andrew Cagney <cagney@redhat.com>
6991 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6992 * gdbarch.h, gdbarch.c: Regenerate.
6993 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6994 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6996 * frame.h (generic_fix_call_dummy): Delete declaration.
6997 * dummy-frame.h: Update comment.
6998 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7001 * sh-tdep.c (sh_gdbarch_init): Ditto.
7002 * s390-tdep.c (s390_gdbarch_init): Ditto.
7003 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7004 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7006 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7007 * i386-tdep.c (i386_gdbarch_init): Ditto.
7008 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7009 * frv-tdep.c (frv_gdbarch_init): Ditto.
7010 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7011 * cris-tdep.c (cris_gdbarch_init): Ditto.
7012 * avr-tdep.c (avr_gdbarch_init): Ditto.
7013 * arm-tdep.c (arm_gdbarch_init): Ditto.
7015 2003-03-31 J. Brobecker <brobecker@gnat.com>
7017 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7018 (INIT_FRAME_AP): Likewise.
7019 (EXTRA_FRAME_INFO): Likewise.
7021 2003-03-31 Andrew Cagney <cagney@redhat.com>
7023 * gdbarch.sh: Include "symfile.h".
7024 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7025 * gdbarch.h, gdbarch.c: Re-generate.
7026 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7027 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7028 call_dummy_address, the default is at entry_point_address.
7029 * v850-tdep.c (v850_gdbarch_init): Ditto.
7030 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7031 * sh-tdep.c (sh_gdbarch_init): Ditto.
7032 * s390-tdep.c (s390_gdbarch_init): Ditto.
7033 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7034 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7035 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7036 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7037 * i386-tdep.c (i386_gdbarch_init): Ditto.
7038 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7039 * frv-tdep.c (frv_gdbarch_init): Ditto.
7040 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7041 * cris-tdep.c (cris_gdbarch_init): Ditto.
7042 * arm-tdep.c (arm_gdbarch_init): Ditto.
7044 2003-03-31 Andrew Cagney <cagney@redhat.com>
7046 * gdbarch.sh (CALL_DUMMY_P): Delete.
7047 * gdbarch.h, gdbarch.c: Re-generate.
7048 * inferior.h (CALL_DUMMY_P): Delete macro.
7049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7050 * vax-tdep.c (vax_gdbarch_init): Update.
7051 * v850-tdep.c (v850_gdbarch_init): Update.
7052 * sparc-tdep.c (sparc_gdbarch_init): Update.
7053 * sh-tdep.c (sh_gdbarch_init): Update.
7054 * s390-tdep.c (s390_gdbarch_init): Update.
7055 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7056 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7057 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7058 * mips-tdep.c (mips_gdbarch_init): Update.
7059 * mcore-tdep.c (mcore_gdbarch_init): Update.
7060 * m68k-tdep.c (m68k_gdbarch_init): Update.
7061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7062 * ia64-tdep.c (ia64_gdbarch_init): Update.
7063 * i386-tdep.c (i386_gdbarch_init): Update.
7064 * h8300-tdep.c (h8300_gdbarch_init): Update.
7065 * frv-tdep.c (frv_gdbarch_init): Update.
7066 * d10v-tdep.c (d10v_gdbarch_init): Update.
7067 * cris-tdep.c (cris_gdbarch_init): Update.
7068 * breakpoint.c (deprecated_frame_in_dummy): Update.
7069 * avr-tdep.c (avr_gdbarch_init): Update.
7070 * alpha-tdep.c (alpha_gdbarch_init): Update.
7071 * arm-tdep.c (arm_gdbarch_init): Update.
7072 * dummy-frame.c (dummy_frame_this_id): Update comments.
7073 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7074 * frame.c (legacy_get_prev_frame): Ditto.
7075 * valops.c (call_function_by_hand): Delete function.
7076 (hand_function_call): Rename to call_function_by_hand
7078 2003-03-30 Andrew Cagney <cagney@redhat.com>
7080 2002-11-10 Klee Dienes <kdienes@apple.com>
7081 * value.h (struct value): Update comment.
7083 2003-03-30 Andrew Cagney <cagney@redhat.com>
7085 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7087 (d10v_gdbarch_init): Do not set fp_regnum.
7089 * frame.c (get_frame_base): Force ID initialization.
7090 (get_prev_frame): Move computation of the frame ID from here ...
7091 (get_frame_id): ... to here.
7092 (legacy_get_prev_frame): Mark the frame ID as valid.
7093 * frame.h (struct frame_info): Add field "id_p".
7095 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7097 * i386-tdep.c (i386_store_struct_return): Removed.
7098 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7100 2003-03-30 Andrew Cagney <cagney@redhat.com>
7102 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7103 * gdbarch.h, gdbarch.c: Regenerate.
7104 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7106 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7107 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7108 * i386-tdep.c (i386_gdbarch_init): Ditto.
7109 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7110 * cris-tdep.c (cris_gdbarch_init): Ditto.
7111 * vax-tdep.c (vax_gdbarch_init): Ditto.
7112 * s390-tdep.c (s390_gdbarch_init): Ditto.
7113 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7114 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7115 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7116 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7117 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7118 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7119 * sparc-tdep.c (sparc_gdbarch_init): Update.
7120 * sh-tdep.c (sh_gdbarch_init): Update.
7121 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7122 * mips-tdep.c (mips_gdbarch_init): Update.
7123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7124 * ia64-tdep.c (ia64_gdbarch_init): Update.
7125 * frv-tdep.c (frv_gdbarch_init): Update.
7126 * avr-tdep.c (avr_gdbarch_init): Update.
7127 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7128 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7129 instead of when push_dummy_call is not available.
7131 2003-03-30 Andrew Cagney <cagney@redhat.com>
7133 * infttrace.c: Include "gdbthread.h".
7134 (parent_attach_all): Fix function signature.
7135 (call_ptrace): Update call.
7136 * Makefile.in (infttrace.o): Update dependencies.
7138 2003-03-30 Andrew Cagney <cagney@redhat.com>
7140 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7141 PUSH_RETURN_ADDRESS.
7142 * gdbarch.h, gdbarch.c: Regenerate.
7143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7144 * x86-64-tdep.c (x86_64_init_abi): Update.
7145 * v850-tdep.c (v850_gdbarch_init): Update.
7146 * sparc-tdep.c (sparc_gdbarch_init): Update.
7147 * sh-tdep.c (sh_gdbarch_init): Update.
7148 * s390-tdep.c (s390_gdbarch_init): Update.
7149 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7150 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7151 * mips-tdep.c (mips_gdbarch_init): Update.
7152 * mcore-tdep.c (mcore_gdbarch_init): Update.
7153 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7154 * ia64-tdep.c (ia64_gdbarch_init): Update.
7155 * i386-tdep.c (i386_gdbarch_init): Update.
7156 * h8300-tdep.c (h8300_gdbarch_init): Update.
7157 * frv-tdep.c (frv_gdbarch_init): Update.
7158 * cris-tdep.c (cris_gdbarch_init): Update.
7159 * avr-tdep.c (avr_gdbarch_init): Update.
7160 * arm-tdep.c (arm_gdbarch_init): Update.
7161 * valops.c (hand_function_call): Update.
7163 2003-03-29 Andrew Cagney <cagney@redhat.com>
7165 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7166 sizeof_call_dummy_words.
7167 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7169 * gdbarch.h: Regenerate.
7171 2003-03-29 Andrew Cagney <cagney@redhat.com>
7173 * infttrace.h: New file.
7174 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7175 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7176 (hpread_read_doc_function_type): Detect an initialized type1.
7177 (hpread_quick_traverse): Initialize mod_name_string.
7178 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7179 (som_solib_get_solib_by_pc): Declare.
7180 (so_lib_thread_start_addr): Declare.
7181 (no_shared_libraries): Declare.
7182 * somread.c (init_import_symbols): Make static. Add forward
7184 * config/pa/nm-hppah.h: Include "infttrace.h" for
7186 (hppa_insert_hw_watchpoint): Declare.
7187 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7188 * hppah-nat.c: Include "gdb_string.h".
7189 (parent_attach_all): Delete extern declaration, moved to
7191 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7193 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7194 * Makefile.in (infttrace_h): Define.
7195 (hpread.o): Update dependencies.
7196 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7197 * hppa-hpux-tdep.c: Include "gdb_string.h".
7198 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7199 * infrun.c (handle_inferior_event): Always initialize
7200 stepped_after_stopped_by_watchpoint. Add default and remove
7201 fallthrough in switch statement.
7202 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7204 (hppa_remove_hw_watchpoint): Ditto.
7206 2003-03-29 Andrew Cagney <cagney@redhat.com>
7208 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7211 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7213 * arm-tdep.c (arm_push_arguments): Delete.
7214 (struct stack_item): New type.
7215 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7216 (arm_store_struct_return): Delte.
7217 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7218 arm_push_arguments or arm_store_struct_return.
7220 2003-03-28 Andrew Cagney <cagney@redhat.com>
7222 * Makefile.in (d10v-tdep.o): Update dependencies.
7223 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7224 * d10v-tdep.c: Include "remote.h".
7225 (target_resume_hook): Delete extern declaration.
7226 (target_wait_loop_hook): Ditto.
7227 (tdisassemble_command): Eliminate assignment in "if" conditional.
7228 (d10v_ts2_register_sim_regno): Eliminate call to
7229 legacy_register_sim_regno.
7230 (d10v_ts3_register_sim_regno): Ditto.
7232 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7234 * thread.c: Reindented.
7236 * linux-proc.c: Ditto.
7238 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7240 * MAINTAINERS (write after approval): Add myself.
7242 2003-03-27 Theodore A. Roth <troth@openavr.org>
7244 * objc-exp.y: Add missing semi-colons.
7246 2003-03-27 Andrew Cagney <cagney@redhat.com>
7248 * regcache.c (write_sp): Delete function and references.
7249 * inferior.h (write_sp): Delete declaration.
7250 * valops.c (hand_function_call): Replace write_sp with
7252 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7253 (sparc_pop_frame): Ditto.
7255 2003-03-27 Andrew Cagney <cagney@redhat.com>
7257 * NEWS: Mention removal of support for hppa*-*-bsd* and
7258 hppa*-*-osf* natives, and hppa*-*-pro* target.
7259 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7260 * config/pa/xm-pa.h: Obsolete file.
7261 * config/pa/xm-hppab.h: Obsolete file.
7262 * config/pa/nm-hppab.h: Obsolete file.
7263 * config/pa/tm-hppab.h: Obsolete file.
7264 * config/pa/tm-hppao.h: Obsolete file.
7265 * config/pa/nm-hppao.h: Obsolete file.
7266 * config/pa/tm-pro.h: Obsolete file.
7267 * config/pa/hppaosf.mt: Obsolete file.
7268 * config/pa/hppaosf.mh: Obsolete file.
7269 * config/pa/hppapro.mt: Obsolete file.
7270 * config/pa/hppabsd.mt: Obsolete file.
7271 * config/pa/hppabsd.mh: Obsolete file.
7272 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7273 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7276 2003-03-27 Andrew Cagney <cagney@redhat.com>
7278 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7279 push_arguments. Don't set push_return_address or write_sp.
7280 (d10v_push_dummy_call): Replace d10v_push_arguments.
7281 (d10v_push_return_address, d10v_write_sp): Delete function,
7282 handled by push_dummy_call.
7284 2003-03-26 Andrew Cagney <cagney@redhat.com>
7286 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7287 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7288 regcache and dummy_addr parameters.
7289 * gdbarch.h, gdbarch.c: Re-generate.
7290 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7291 available; assume it will handle stack alignment and return
7292 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7293 legacy_push_arguments.
7294 (legacy_push_arguments): Rename default_push_arguments.
7295 * value.h (legacy_push_arguments): Rename default_push_arguments.
7296 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7297 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7298 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7299 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7300 * config/i386/tm-symmetry.h: Update.
7301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7302 * x86-64-tdep.c (x86_64_init_abi): Update.
7303 * v850-tdep.c (v850_gdbarch_init): Update.
7304 * sparc-tdep.c (sparc_gdbarch_init): Update.
7305 * sh-tdep.c (sh_gdbarch_init): Update.
7306 * s390-tdep.c (s390_gdbarch_init): Update.
7307 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7309 * mips-tdep.c (mips_gdbarch_init): Update.
7310 * mcore-tdep.c (mcore_gdbarch_init): Update.
7311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7312 * ia64-tdep.c (ia64_gdbarch_init): Update.
7313 * i386-tdep.c (i386_gdbarch_init): Update.
7314 * hppa-tdep.c (hppa_gdbarch_init): Update.
7315 * h8300-tdep.c (h8300_gdbarch_init): Update.
7316 * frv-tdep.c (frv_gdbarch_init): Update.
7317 * d10v-tdep.c (d10v_gdbarch_init): Update.
7318 * cris-tdep.c (cris_gdbarch_init): Update.
7319 * avr-tdep.c (avr_gdbarch_init): Update.
7320 * arm-tdep.c (arm_gdbarch_init): Update.
7321 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7322 * alpha-tdep.c (alpha_gdbarch_init): Update.
7324 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7326 * signals/signals.c (do_target_signal_to_host): Correct realtime
7329 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7331 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7332 (struct sal_chain, map_catch_names): Remove.
7333 (catch_exception_command_1): Don't call
7334 handle_gnu_4_16_catch_command.
7336 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7338 From Mark Dettinger <dettinge@de.ibm.com>:
7339 * dwarf2cfi.c (read_2u): Increment pointer by two.
7341 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7343 * signals/signals.c: Fix typos in last change.
7345 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7347 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7348 not already defined. Use __SIGRTMIN if available.
7349 (target_signal_from_host): Remove SIGRTMIN block.
7350 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7351 the signal is within the realtime range.
7353 2003-03-25 Adam Fedor <fedor@gnu.org>
7355 * Makefile.in (infrun.o): Add $(language_h)
7356 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7357 for language specific trampolines.
7358 * language.h (struct language_defn): Add skip_trampoline.
7359 (skip_language_trampoline): Declare.
7360 * language.c (unk_lang_trampoline, skip_language_trampoline):
7362 (unknown_language_defn, auto_language_defn, local_language_defn):
7363 Add ukn_lang_trampoline.
7364 * ada-lang.c (ada_language_defn): Add NULL for language
7365 specific skip_trampoline.
7366 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7367 scm-lang.c: Likewise.
7368 * objc-lang.c (objc_skip_trampoline): New function.
7369 (objc_language_defn): Add objc_skip_trampoline.
7371 2003-03-25 Andrew Cagney <cagney@redhat.com>
7373 * frame.c (get_prev_frame): Delay validating a frame's ID -
7374 non-NULL, didn't go backwards - until an attempt to unwind it to
7377 2003-03-25 Andrew Cagney <cagney@redhat.com>
7379 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7380 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7381 * gdbarch.h, gdbarch.c: Re-generate.
7382 * config/sparc/tm-sparc.h
7383 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7384 * sparc-tdep.c (sparc_gdbarch_init): Set
7385 deprecated_extra_stack_alignment_needed.
7386 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7388 extra_stack_alignment_needed.
7389 * v850-tdep.c (v850_gdbarch_init): Ditto.
7390 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7391 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7392 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7393 * cris-tdep.c (cris_gdbarch_init): Ditto.
7394 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7397 2003-03-25 Andrew Cagney <cagney@redhat.com>
7399 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7400 STORE_STRUCT_RETURN.
7401 * gdbarch.h, gdbarch.c: Regenerate.
7402 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7403 (d10v_push_arguments): Set the struct return register.
7404 (d10v_gdbarch_init): Update.
7405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7406 * x86-64-tdep.c (x86_64_init_abi): Update.
7407 * vax-tdep.c (vax_gdbarch_init): Update.
7408 * v850-tdep.c (v850_gdbarch_init): Update.
7409 * sparc-tdep.c (sparc_gdbarch_init): Update.
7410 * sh-tdep.c (sh_gdbarch_init): Update.
7411 * s390-tdep.c (s390_gdbarch_init): Update.
7412 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7413 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7414 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7415 * mips-tdep.c (mips_gdbarch_init): Update.
7416 * mcore-tdep.c (mcore_gdbarch_init): Update.
7417 * m68k-tdep.c (m68k_gdbarch_init): Update.
7418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7419 * ia64-tdep.c (ia64_gdbarch_init): Update.
7420 * i386-tdep.c (i386_gdbarch_init): Update.
7421 * hppa-tdep.c (hppa_gdbarch_init): Update.
7422 * h8300-tdep.c (h8300_gdbarch_init): Update.
7423 * frv-tdep.c (frv_gdbarch_init): Update.
7424 * cris-tdep.c (cris_gdbarch_init): Update.
7425 * avr-tdep.c (avr_gdbarch_init): Update.
7426 * arm-tdep.c (arm_gdbarch_init): Update.
7427 * alpha-tdep.c (alpha_gdbarch_init): Update.
7429 2003-03-25 Andrew Cagney <cagney@redhat.com>
7431 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7432 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7433 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7434 * gdbarch.h, gdbarch.c: Regenerate.
7435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7436 call_dummy_stack_adjust_p.
7437 * vax-tdep.c (vax_gdbarch_init): Ditto.
7438 * v850-tdep.c (v850_gdbarch_init): Ditto.
7439 * sh-tdep.c (sh_gdbarch_init): Ditto.
7440 * s390-tdep.c (s390_gdbarch_init): Ditto.
7441 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7442 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7443 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7444 * mips-tdep.c (mips_gdbarch_init): Ditto.
7445 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7446 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7448 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7449 * i386-tdep.c (i386_gdbarch_init): Ditto.
7450 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7451 * frv-tdep.c (frv_gdbarch_init): Ditto.
7452 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7453 * cris-tdep.c (cris_gdbarch_init): Ditto.
7454 * avr-tdep.c (avr_gdbarch_init): Ditto.
7455 * arm-tdep.c (arm_gdbarch_init): Ditto.
7456 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7457 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7458 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7459 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7460 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7461 call_dummy_stack_adjust_p.
7462 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7463 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7464 * sparc-tdep.c (sparc32_push_arguments): Update.
7465 * valops.c (hand_function_call): Update.
7467 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7469 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7470 set_gdbarch_char_signed.
7472 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7475 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7477 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7479 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7480 (_initialize_arm_tdep): Don't set tm_print_insn.
7482 2003-03-24 Adam Fedor <fedor@gnu.org>
7484 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7485 * objc-lang.h: Add multiple inclusion protection.
7486 (start_msglist, add_msglist, end_msglist): Additional declarations.
7488 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7490 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7491 value was renamed to ARM_FLOAT_SOFT_FPA.
7493 2003-03-23 Andrew Cagney <cagney@redhat.com>
7495 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7496 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7497 * gdbarch.h, gdbarch.c: Regenerate.
7498 * valops.c (hand_function_call): Update.
7499 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7500 * frame.c (legacy_saved_regs_this_id): Update.
7501 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7502 * dummy-frame.h: Update.
7503 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7504 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7505 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7506 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7507 * config/m68k/tm-sun3.h: Update.
7508 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7510 * x86-64-tdep.c (x86_64_init_abi): Update.
7511 * vax-tdep.c (vax_gdbarch_init): Update.
7512 * v850-tdep.c (v850_gdbarch_init): Update.
7513 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7514 * sh-tdep.c (sh_gdbarch_init): Update.
7515 * s390-tdep.c (s390_gdbarch_init): Update.
7516 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7517 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7518 (frame_get_saved_regs): Update.
7519 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7520 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7521 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7522 * mips-tdep.c (mips_gdbarch_init): Update.
7523 * mcore-tdep.c (mcore_gdbarch_init): Update.
7524 * m68k-tdep.c (m68k_gdbarch_init): Update.
7525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7526 * ia64-tdep.c (ia64_gdbarch_init): Update.
7527 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7528 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7529 (i386_interix_back_one_frame): Update.
7530 * hppa-tdep.c (hppa_gdbarch_init): Update.
7531 (hppa_init_extra_frame_info): Update.
7532 * h8300-tdep.c (h8300_gdbarch_init): Update.
7533 * frv-tdep.c (frv_gdbarch_init): Update.
7534 * cris-tdep.c (cris_gdbarch_init): Update.
7535 * avr-tdep.c (avr_gdbarch_init): Update.
7536 * arm-tdep.c (arm_gdbarch_init): Update.
7537 * alpha-tdep.c (alpha_gdbarch_init): Update.
7539 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7541 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7542 (arm_get_fp_model): Declare.
7543 * arm-tdep.c (fp_model_strings): New string array.
7544 (arm_fp_model, current_fp_model): New variables.
7545 (arm_get_fp_model): New function.
7546 (arm_set_fp): New function.
7547 (set_fp_model_sfunc): New function.
7548 (show_fp_model): New function.
7549 (_initialize_arm_tdep): Add new command to set/show the FPU.
7550 (arm_extract_return_value): Use arm_get_fp_model.
7551 (arm_store_return_value): Likewise.
7552 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7553 to initialize the floating-point data types.
7554 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7557 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7559 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7560 the current setting of each value.
7561 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7562 new_set and new_show. Use add_setshow_cmd_full and
7563 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7564 commands and add new version as subcommands of "set/show arm".
7566 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7568 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7569 (set_arm_command, show_arm_command): New functions.
7570 (_initialize_arm_tdep): Add them.
7571 (num_disassembly_options): Renamed from num_flavor_options.
7572 (valid_disassembly_styles): Renamed from valid_flavors.
7573 (disassembly_style): Renamed from disassembly_flavor.
7574 (set_disassembly_style_sfunc): Renamed from
7575 set_disassembly_flavor_sfunc.
7576 (set_disassembly_style): Renamed from set_disassembly_flavor.
7577 (arm_othernames): Updated.
7578 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7579 command. Add "set/show arm disassembly" commands. Deprecate
7580 "othernames" command.
7582 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7584 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7585 (arm-tdep.o): Depend on elf_arm_h.
7587 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7589 * Makefile.in (coff_internal_h): Define.
7590 (arm-tdep.o): Update dependencies.
7592 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7594 * arm-tdep.c (prologue_cache): Delete.
7595 (check_prologue_cache, save_prologue_cache): Delete.
7596 (arm_scan_prologue): Don't check or update the prologue_cache.
7597 (arm_gdb_arch_init): Don't initialize it.
7598 (_initialize_arm_tdep): Likewise.
7600 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7602 * MAINTAINERS (tui): Maintainer of tui code.
7604 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7606 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7607 (i386-cygwin-tdep.o): Add dependencies.
7608 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7609 * i386-cygwin-tdep.c: New file.
7610 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7611 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7613 2003-03-20 Andrew Cagney <cagney@redhat.com>
7615 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7616 (handle_inferior_event): Remove code calling
7617 DYNAMIC_TRAMPOLINE_NEXTPC.
7619 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7620 already has a full path.
7622 * main.c (gdb_main): Return 1.
7623 (captured_main): Call error to report an invalid interpreter.
7625 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7626 * alpha-osf1-tdep.c: Include "gdb_string.h".
7628 2003-03-19 J. Brobecker <brobecker@gnat.com>
7630 Continuing work to convert the hppa targets to multiarch partial.
7632 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7633 method, now that hppa_push_dummy_frame has a conformant prototype.
7634 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7635 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7636 for the switch to multiarch partial.
7638 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7640 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7641 when iss is issNull.
7643 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7645 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7646 NUM_REGS bounds check.
7648 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7650 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7651 * mips-tdep.c (gdb_assert.h): Include.
7652 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7653 (mips_register_name): Handle integer registers explicitly. Add
7655 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7656 (mips_lsi33k_reg_names): Don't list integer registers; they're
7657 handled by mips_register_name() now.
7658 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7659 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7660 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7661 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7662 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7664 2003-03-18 Andrew Cagney <cagney@redhat.com>
7666 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7668 * gdbtypes.h (print_scalar_formatted): Update declaration.
7669 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7671 2003-03-18 J. Brobecker <brobecker@gnat.com>
7673 * infrun.c (observer.h): Add #include.
7674 (normal_stop): Add call to observer_notify_normal_stop.
7675 * Makefile.in (infrun.o): Add dependency on observer.h.
7677 2003-03-18 J. Brobecker <brobecker@gnat.com>
7679 Continuing work to convert the hppa targets to multiarch partial.
7680 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7681 parameter. Reformat comment.
7682 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7683 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7684 to match new profile.
7686 2003-03-18 J. Brobecker <brobecker@gnat.com>
7688 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7689 appear to be working in any case.
7691 2003-03-18 J. Brobecker <brobecker@gnat.com>
7693 * observer.c (observer_test_first_observer): New static variable.
7694 (observer_test_second_observer): Likewise.
7695 (observer_test_third_observer): Likewise.
7696 (observer_test_first_notification_function): New static function.
7697 (observer_test_second_notification_function): Likewise.
7698 (observer_test_third_notification_function): Likewise.
7700 2003-03-17 J. Brobecker <brobecker@gnat.com>
7702 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7703 * somsolib.c (gdb_assert.h): Likewise.
7704 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7705 (somsolib.o): Likewise.
7707 2003-03-17 Andrew Cagney <cagney@redhat.com>
7709 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7710 BFD. Simplify setting of di.endian.
7712 2003-03-17 Andrew Cagney <cagney@redhat.com>
7714 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7715 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7717 From Elena Zannoni <ezannoni@redhat.com>
7718 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7719 vector and floating-point parameters.
7720 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7722 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7724 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7726 * MAINTAINERS: Remove my name from several maintainership roles.
7728 2003-03-17 Andrew Cagney <cagney@redhat.com>
7730 Fix frame off-by-one bug.
7731 * frame-unwind.h (frame_this_id_ftype): Replace
7732 frame_unwind_id_ftype.
7733 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7734 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7735 with "prev_register".
7736 * frame-unwind.c (frame_unwind_find_by_pc): Return
7737 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7739 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7740 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7741 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7742 (dummy_frame_unwind): Update.
7743 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7744 sentinel_frame_register_unwind.
7745 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7746 (sentinel_frame_unwinder): Update.
7747 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7748 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7749 * frame.c (create_sentinel_frame): Update. Initialize
7750 "prologue_cache" instead of "unwind_cache".
7751 (frame_register_unwind): Call this frame's prev_register with the
7752 next frame and this frame's prologue cache.
7753 (get_prev_frame): Simplify. Always call prev frame's this_id with
7754 this frame and prev frame's prologue cache. Document that this
7755 call is shifted one to the left when compared to the
7756 frame_register_unwind call.
7757 (legacy_saved_regs_prev_register): Replace
7758 frame_saved_regs_register_unwind.
7759 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7760 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7761 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7762 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7763 (d10v_frame_unwind): Update.
7764 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7765 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7766 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7767 "saved_regs" with "this_saved_regs".
7769 2003-03-16 Andrew Cagney <cagney@redhat.com>
7771 * frame.c (frame_pop): Don't call target_store_registers. Fix
7772 problem reported by Mark Kettenis.
7774 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7776 * i386-tdep.c (i386_register_type): Renamed from
7777 i386_register_virtual_type. Adjust function signature.
7778 (i386_gdbarch_init): Set register_type instead of
7779 deprecated_max_register_raw_size,
7780 deprecated_max_register_virtual_size and register_virtual_type.
7782 2003-03-14 Andrew Cagney <cagney@redhat.com>
7784 * frame.c (get_prev_frame): When a legacy frame, always call
7785 legacy_get_prev_frame. Simplify unwind code using assumption that
7786 the unwinder is new.
7787 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7788 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7789 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7791 2003-03-14 Andrew Cagney <cagney@redhat.com>
7793 * frame.c (get_saved_register): Delete function.
7794 * frame.h (get_saved_register): Delete declaration.
7795 * xstormy16-tdep.c: Update comment.
7796 * regcache.h: Update comments.
7797 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7798 get_saved_register and extract_address, use
7799 frame_read_unsigned_register.
7800 (sparc_frame_saved_pc): Ditto.
7801 (sparc_get_saved_register): Instead of get_saved_register, use
7803 (sparc_pop_frame): Ditto.
7804 * findvar.c: Update comments.
7805 (value_of_register): Call frame_register instead of
7807 (value_from_register): Ditto.
7808 * config/sparc/tm-sparc.h: Update comment.
7809 * breakpoint.c: Update comment.
7811 2003-03-14 Andrew Cagney <cagney@redhat.com>
7813 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7815 * gdbarch.h, gdbarch.c: Re-generate.
7816 * frame.h: Update comments.
7817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7818 * x86-64-tdep.c (x86_64_init_abi): Update.
7819 * sparc-tdep.c (sparc_gdbarch_init): Update.
7820 * sh-tdep.c (sh_gdbarch_init): Update.
7821 * mips-tdep.c (mips_gdbarch_init): Update.
7822 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7823 * cris-tdep.c (cris_gdbarch_init): Update.
7824 * ia64-tdep.c (ia64_gdbarch_init): Update.
7825 * frame.c (frame_register): Update.
7826 (get_saved_register): Update.
7827 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7829 2003-03-13 Andrew Cagney <cagney@redhat.com>
7831 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7832 * gdbarch.h, gdbarch.c: Regenerate.
7833 * valops.c (hand_function_call): Update comment.
7834 * stack.c (return_command): Update comment.
7835 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7836 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7837 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7838 * x86-64-tdep.c (x86_64_init_abi): Update.
7839 * vax-tdep.c (vax_gdbarch_init): Update.
7840 * v850-tdep.c (v850_gdbarch_init): Update.
7841 * sparc-tdep.c (sparc_gdbarch_init): Update.
7842 * sh-tdep.c (sh_gdbarch_init): Update.
7843 * s390-tdep.c (s390_gdbarch_init): Update.
7844 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7845 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7846 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7847 * mips-tdep.c (mips_gdbarch_init): Update.
7848 * mcore-tdep.c (mcore_gdbarch_init): Update.
7849 * m68k-tdep.c (m68k_gdbarch_init): Update.
7850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7851 * ia64-tdep.c (ia64_gdbarch_init): Update.
7852 * i386-tdep.c (i386_gdbarch_init): Update.
7853 * hppa-tdep.c (hppa_gdbarch_init): Update.
7854 * h8300-tdep.c (h8300_gdbarch_init): Update.
7855 * frv-tdep.c (frv_gdbarch_init): Update.
7856 * cris-tdep.c (cris_gdbarch_init): Update.
7857 * avr-tdep.c (avr_gdbarch_init): Update.
7858 * arm-tdep.c (arm_gdbarch_init): Update.
7859 * alpha-tdep.c (alpha_gdbarch_init): Update.
7861 2003-03-13 Andrew Cagney <cagney@redhat.com>
7863 * frame.c (legacy_frame_p): New function.
7864 (get_prev_frame): Use legacy_frame_p.
7865 * frame.h (legacy_frame_p): Declare.
7867 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7869 * MAINTAINERS (write after approval): Alphabetically
7872 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7874 * MAINTAINERS (write after approval): Add myself.
7876 2003-03-12 Andrew Cagney <cagney@redhat.com>
7878 * frame.c (get_prev_frame): Rename the frame parameter to
7880 (get_next_frame, legacy_get_prev_frame): Ditto.
7882 2003-03-12 Andrew Cagney <cagney@redhat.com>
7884 * frame.c (get_current_frame): Check target_has_registers before
7885 checking target_has_stack.
7886 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7887 instead of deprecated_selected_frame.
7888 * findvar.c (value_of_register): Pass "frame", not
7889 deprecated_selected_frame, to value_of_builtin_reg.
7891 2003-03-12 Andrew Cagney <cagney@redhat.com>
7893 * regcache.c (regcache_cooked_write_signed): New function.
7894 (regcache_cooked_write_unsigned): New function.
7895 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7896 (regcache_cooked_read_signed): Fix regnum in range assertion.
7897 * regcache.h (regcache_cooked_write_signed): Declare.
7898 (regcache_cooked_write_unsigned): Declare.
7900 2003-03-12 Andrew Cagney <cagney@redhat.com>
7902 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7903 * gdbarch.h, gdbarch.c: Re-generate.
7904 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7905 * x86-64-tdep.h: Update.
7906 * x86-64-tdep.c (x86_64_init_abi): Update.
7907 * v850-tdep.c (v850_gdbarch_init): Update.
7908 * sparc-tdep.c (sparc_gdbarch_init): Update.
7909 * sh-tdep.c (sh_gdbarch_init): Update.
7910 * s390-tdep.c (s390_gdbarch_init): Update.
7911 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7912 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7913 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7914 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7915 * mips-tdep.c (mips_gdbarch_init): Update.
7916 * mcore-tdep.c (mcore_gdbarch_init): Update.
7917 * m68k-tdep.c (m68k_gdbarch_init): Update.
7918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7919 * ia64-tdep.c (ia64_gdbarch_init): Update.
7920 * i386-tdep.c (i386_gdbarch_init): Update.
7921 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7922 * hppa-tdep.c (hppa_gdbarch_init): Update.
7923 * h8300-tdep.c (h8300_gdbarch_init): Update.
7924 * frv-tdep.c (frv_gdbarch_init): Update.
7925 * cris-tdep.c (cris_gdbarch_init): Update.
7926 * avr-tdep.c (avr_gdbarch_init): Update.
7927 * arm-tdep.c (arm_gdbarch_init): Update.
7928 * alpha-tdep.c (alpha_gdbarch_init): Update.
7929 * sh-tdep.c (sh_init_extra_frame_info): Update.
7930 (sh64_init_extra_frame_info): Update.
7931 * ns32knbsd-nat.c (frame_num_args): Update.
7932 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7933 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7934 (xstormy16_frame_chain_valid): Update.
7935 * vax-tdep.c (vax_saved_pc_after_call): Update.
7936 * v850-tdep.c (v850_frame_chain): Update.
7937 (v850_pop_frame): Update.
7938 (v850_init_extra_frame_info): Update.
7939 * sparc-tdep.c (setup_arbitrary_frame): Update.
7940 * ns32k-tdep.c (umax_frame_num_args): Update.
7941 * s390-tdep.c (s390_pop_frame_regular): Update.
7942 * mn10300-tdep.c (mn10300_frame_chain): Update.
7943 (mn10300_pop_frame_regular): Update.
7944 (mn10300_init_extra_frame_info): Update.
7945 * mips-tdep.c (mips_init_frame_pc_first): Update.
7946 (mips_frame_chain): Update.
7947 (mips_pop_frame): Update.
7948 * mcore-tdep.c (mcore_frame_chain): Update.
7949 (mcore_pop_frame): Update.
7950 (mcore_init_extra_frame_info): Update.
7951 * arch-utils.c (init_frame_pc_default): Update.
7952 * m68k-tdep.c (isi_frame_num_args): Update.
7953 (delta68_frame_num_args): Update.
7954 (news_frame_num_args): Update.
7955 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7956 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7957 (alpha_frame_chain): Update.
7958 (alpha_pop_frame): Update.
7959 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7960 (hppa_init_extra_frame_info): Update.
7961 (hppa_frame_chain): Update.
7962 (hppa_frame_chain_valid): Update.
7963 * cris-tdep.c (cris_init_extra_frame_info): Update.
7964 * avr-tdep.c (avr_init_extra_frame_info): Update.
7965 * arm-tdep.c (arm_frame_chain_valid): Update.
7966 (arm_init_extra_frame_info): Update.
7967 (arm_pop_frame): Update.
7968 * frame.c (frame_pc_unwind): Update.
7969 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7970 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7971 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7972 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7973 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7974 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7976 2003-03-12 Andrew Cagney <cagney@redhat.com>
7978 Eliminate the need for POP_FRAME.
7979 * frame.c (do_frame_unwind_register): New function.
7980 (frame_pop): When no POP_FRAME, pop the frame using register
7981 unwind and a scratch regcache.
7982 (frame_saved_regs_pop): Delete function.
7983 (trad_frame_unwinder): Update.
7984 * d10v-tdep.c (d10v_frame_pop): Delete function.
7985 (d10v_frame_unwind): Update.
7986 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7987 (sentinel_frame_unwinder): Update.
7988 * dummy-frame.c (dummy_frame_pop): Delete function.
7989 (dummy_frame_unwind): Update.
7990 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7991 (struct frame_unwind): Update.
7993 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7995 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7996 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7997 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7998 Do range checks on register number obtained from debugging info.
7999 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8000 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8001 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8003 (do_fp_register_row): Fix typo which caused double type to be
8004 used when attempting to unpack a float.
8006 2003-03-11 J. Brobecker <brobecker@gnat.com>
8008 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8010 2003-03-11 Andrew Cagney <cagney@redhat.com>
8012 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8013 frame. Problem found by Corinna Vinschen.
8015 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8017 * doublest.c (floatformat_from_length): Accept also
8018 the real size of 'long double' type.
8020 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8022 From Klee Dienes <kdienes@apple.com>:
8023 * breakpoint.c (bpstat_copy): Copy the command lines as well
8024 as the old value, to match what is freed in bpstat_clear.
8026 2003-03-10 David Carlton <carlton@math.stanford.edu>
8028 * minsyms.c (add_minsym_to_hash_table): Replace
8029 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8030 (compare_minimal_symbols, compact_minimal_symbols)
8031 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8032 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8033 of DEPRECATED_SYMBOL_MATCHES_NAME.
8034 (lookup_minimal_symbol_solib_trampoline): Ditto.
8036 2003-03-10 Andrew Cagney <cagney@redhat.com>
8038 * regcache.h (regcache_cooked_read_ftype): Define.
8039 (regcache_save, regcache_restore): Add a cooked_read parameter.
8040 * regcache.c (regcache_save, regcache_restore): Update.
8041 (do_cooked_read): New function.
8042 (regcache_cpy): Pass do_cooked_read to regcache_save and
8045 2003-03-10 Andrew Cagney <cagney@redhat.com>
8047 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8048 * gdbarch.h, gdbarch.c: Re-generate.
8049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8050 * x86-64-tdep.h: Update.
8051 * x86-64-tdep.c (x86_64_init_abi): Update.
8052 * v850-tdep.c (v850_gdbarch_init): Update.
8053 * sparc-tdep.c (sparc_gdbarch_init): Update.
8054 * sh-tdep.c (sh_gdbarch_init): Update.
8055 * s390-tdep.c (s390_gdbarch_init): Update.
8056 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8057 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8058 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8059 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8060 * mips-tdep.c (mips_gdbarch_init): Update.
8061 * mcore-tdep.c (mcore_gdbarch_init): Update.
8062 * m68k-tdep.c (m68k_gdbarch_init): Update.
8063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8064 * ia64-tdep.c (ia64_gdbarch_init): Update.
8065 * i386-tdep.c (i386_gdbarch_init): Update.
8066 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8067 * hppa-tdep.c (hppa_gdbarch_init): Update.
8068 * h8300-tdep.c (h8300_gdbarch_init): Update.
8069 * frv-tdep.c (frv_gdbarch_init): Update.
8070 * cris-tdep.c (cris_gdbarch_init): Update.
8071 * avr-tdep.c (avr_gdbarch_init): Update.
8072 * arm-tdep.c (arm_gdbarch_init): Update.
8073 * alpha-tdep.c (alpha_gdbarch_init): Update.
8074 * sh-tdep.c (sh_init_extra_frame_info): Update.
8075 (sh64_init_extra_frame_info): Update.
8076 * ns32knbsd-nat.c (frame_num_args): Update.
8077 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8078 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8079 (xstormy16_frame_chain_valid): Update.
8080 * vax-tdep.c (vax_saved_pc_after_call): Update.
8081 * v850-tdep.c (v850_frame_chain): Update.
8082 (v850_pop_frame): Update.
8083 (v850_init_extra_frame_info): Update.
8084 * sparc-tdep.c (setup_arbitrary_frame): Update.
8085 * ns32k-tdep.c (umax_frame_num_args): Update.
8086 * s390-tdep.c (s390_pop_frame_regular): Update.
8087 * mn10300-tdep.c (mn10300_frame_chain): Update.
8088 (mn10300_pop_frame_regular): Update.
8089 (mn10300_init_extra_frame_info): Update.
8090 * mips-tdep.c (mips_init_frame_pc_first): Update.
8091 (mips_frame_chain): Update.
8092 (mips_pop_frame): Update.
8093 * mcore-tdep.c (mcore_frame_chain): Update.
8094 (mcore_pop_frame): Update.
8095 (mcore_init_extra_frame_info): Update.
8096 * arch-utils.c (init_frame_pc_default): Update.
8097 * m68k-tdep.c (isi_frame_num_args): Update.
8098 (delta68_frame_num_args): Update.
8099 (news_frame_num_args): Update.
8100 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8101 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8102 (alpha_frame_chain): Update.
8103 (alpha_pop_frame): Update.
8104 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8105 (hppa_init_extra_frame_info): Update.
8106 (hppa_frame_chain): Update.
8107 (hppa_frame_chain_valid): Update.
8108 * cris-tdep.c (cris_init_extra_frame_info): Update.
8109 * avr-tdep.c (avr_init_extra_frame_info): Update.
8110 * arm-tdep.c (arm_frame_chain_valid): Update.
8111 (arm_init_extra_frame_info): Update.
8112 (arm_pop_frame): Update.
8113 * frame.c (frame_pc_unwind): Update.
8114 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8115 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8116 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8117 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8118 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8119 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8121 2003-03-10 Andrew Cagney <cagney@redhat.com>
8123 * gdbarch.sh (gdbarch_unwind_pc): New method.
8124 * gdbarch.h, gdbarch.c: Regenerate.
8125 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8126 but use read_pc and FRAME_SAVED_PC as fall backs.
8127 (frame_saved_regs_pc_unwind): Delete function.
8128 (trad_frame_unwinder): Update.
8129 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8130 (struct frame_unwind): Update.
8131 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8132 (dummy_frame_unwind): Update.
8133 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8134 (sentinel_frame_unwinder): Update.
8135 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8136 (d10v_frame_unwind): Update.
8137 (d10v_unwind_pc): New function.
8138 (d10v_gdbarch_init): Set unwind_pc.
8140 2003-03-10 Andrew Cagney <cagney@redhat.com>
8142 * gdbarch.h: Re-generate.
8144 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8146 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8149 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8151 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8153 2003-03-08 Andrew Cagney <cagney@redhat.com>
8155 * cli-out.c: Update copyright.
8156 (cli_out_data): Define typedef. Use instead of ui_out_data.
8158 2003-03-08 Andrew Cagney <cagney@redhat.com>
8160 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8163 2003-03-07 Andrew Cagney <cagney@redhat.com>
8165 * gdbarch.sh: Don't generate two macro definitions when an
8166 undefined macro taking no arguments.
8167 * gdbarch.h: Regenerate.
8169 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8171 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8172 (x86_64_unwind_dummy_id): New functions.
8173 (x86_64_init_abi): Register these two new functions.
8175 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8177 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8178 (x86_64_skip_prologue): Move prologue detection to
8180 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8182 2003-03-05 Andrew Cagney <cagney@redhat.com>
8184 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8185 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8186 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8187 to use unwind_dummy_id when a dummy frame.
8188 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8190 * gdbarch.h, gdbarch.c: Regneerate.
8192 2003-03-05 Andrew Cagney <cagney@redhat.com>
8194 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8195 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8196 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8199 2003-03-05 Andrew Cagney <cagney@redhat.com>
8201 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8202 (struct d10v_unwind_cache): Delete field "frameless". Replace
8203 "next_addr" with "sp_offset". Add "r11_offset".
8204 (d10v_frame_unwind_cache): Update.
8205 (prologue_find_regs): Update. When "mv r11, sp", save the
8206 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8207 RN was saved in r11_offset.
8209 2003-03-05 Andrew Cagney <cagney@redhat.com>
8211 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8212 cached PC value in the next frame.
8214 2003-03-05 Andrew Cagney <cagney@redhat.com>
8216 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8217 "id_unwind_cache" with "id".
8218 (frame_id_unwind): Delete declaration.
8219 * frame.c (frame_id_unwind): Delete function.
8220 (get_prev_frame): Call the frame id unwind method directly. Store
8221 the returned next frame's ID value in NEXT_FRAME. Note that there
8222 is a problem with the wrong unwind ID being called with the wrong
8225 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8227 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8229 2003-03-05 James Ingham <jingham@apple.com>
8230 Daniel Jacobowitz <drow@mvista.com>
8232 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8233 (auto_cp_abi): New variable.
8234 (current_cp_abi, num_cp_abis): Make static.
8235 (CP_ABI_MAX): Define.
8236 (cp_abis): Turn into an array.
8237 (value_virtual_fn_field): Fix formatting.
8238 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8240 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8241 (list_cp_abis, _initialize_cp_abi): New functions.
8242 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8243 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8244 switch_to_cp_abi. Update prototype for register_cp_abi.
8245 * Makefile.in (cp-abi.o): Update dependencies.
8246 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8247 instead of switch_to_cp_abi.
8248 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8250 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8252 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8254 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8256 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8257 * dwarf2loc.c: Include "regcache.h".
8258 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8260 * Makefile.in (dwarf2loc.o): Update dependencies.
8262 2003-03-04 Theodore A. Roth <troth@openavr.org>
8264 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8265 number of io registers reported by remote target is not a multiple of
8268 2003-03-04 David Carlton <carlton@math.stanford.edu>
8270 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8271 (lookup_symbol_aux_psymtabs): Update call to
8272 lookup_partial_symbol.
8273 (lookup_transparent_type, find_main_psymtab)
8274 (make_symbol_overload_list): Ditto.
8276 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8278 * MAINTAINERS (Write after approval): Update my email address.
8280 2003-03-03 Andrew Cagney <cagney@redhat.com>
8282 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8283 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8284 predicate. Replace MAX_REGISTER_RAW_SIZE.
8285 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8286 MAX_REGISTER_VIRTUAL_SIZE.
8287 * regcache.c (legacy_max_register_raw_size): New function.
8288 (legacy_max_register_virtual_size): New function.
8289 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8290 (MAX_REGISTER_RAW_SIZE): Define.
8291 (legacy_max_register_raw_size): Declare.
8292 (legacy_max_register_virtual_size): Declare.
8293 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8294 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8295 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8296 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8297 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8298 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8299 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8300 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8301 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8302 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8303 * vax-tdep.c (vax_gdbarch_init): Update.
8304 * v850-tdep.c (v850_gdbarch_init): Update.
8305 * sparc-tdep.c (sparc_gdbarch_init): Update.
8306 * sh-tdep.c (sh_gdbarch_init): Update.
8307 * s390-tdep.c (s390_gdbarch_init): Update.
8308 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8309 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8310 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8311 * mips-tdep.c (mips_gdbarch_init): Update.
8312 * mcore-tdep.c (mcore_gdbarch_init): Update.
8313 * m68k-tdep.c (m68k_gdbarch_init): Update.
8314 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8315 * ia64-tdep.c (ia64_gdbarch_init): Update.
8316 * i386-tdep.c (i386_gdbarch_init): Update.
8317 * hppa-tdep.c (hppa_gdbarch_init): Update.
8318 * h8300-tdep.c (h8300_gdbarch_init): Update.
8319 * frv-tdep.c (frv_gdbarch_init): Update.
8320 * cris-tdep.c (cris_gdbarch_init): Update.
8321 * avr-tdep.c (avr_gdbarch_init): Update.
8322 * arm-tdep.c (arm_gdbarch_init): Update.
8323 * alpha-tdep.c (alpha_gdbarch_init): Update.
8324 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8325 max_register_raw_size or max_register_virtual_size.
8327 2003-03-03 David Carlton <carlton@math.stanford.edu>
8329 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8330 SYMBOL_MATCHES_NAME, add comment.
8331 (SYMBOL_MATCHES_NATURAL_NAME): New.
8332 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8333 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8334 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8335 * symtab.c (lookup_partial_symbol): Use
8336 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8338 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8339 SYMBOL_MATCHES_NAME.
8342 2003-03-03 David Carlton <carlton@math.stanford.edu>
8344 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8345 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8346 by regexp matching against SYMBOL_NATURAL_NAME.
8348 2003-03-03 David Carlton <carlton@math.stanford.edu>
8350 * linespec.c (find_method): Extract code into collect_methods.
8351 (collect_methods): New.
8353 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8355 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8358 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8359 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8361 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8363 * arch-utils.c (generic_register_byte): Fix to use the loop index
8364 and not regnum when summing the size of all registers up to regnum.
8366 2003-03-01 Andrew Cagney <cagney@redhat.com>
8368 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8369 FRAME_INIT_SAVED_REGS.
8370 * gdbarch.h, gdbarch.c: Regenerate.
8371 * stack.c (frame_info): Update.
8372 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8373 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8374 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8375 * ns32k-tdep.c (ns32k_pop_frame): Update.
8376 * mips-tdep.c (mips_pop_frame): Update.
8377 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8378 * ia64-tdep.c (ia64_frame_chain): Update.
8379 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8380 (ia64_frameless_function_invocation): Update.
8381 (ia64_init_extra_frame_info): Update.
8382 (ia64_pop_frame_regular): Update.
8383 * frame.h (struct frame_info): Update comment.
8384 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8385 * frame.c (frame_saved_regs_register_unwind): Update.
8386 (frame_saved_regs_register_unwind): Update.
8387 (deprecated_generic_get_saved_register): Update.
8388 * cris-tdep.c: Update comment.
8389 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8391 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8392 * x86-64-tdep.c (x86_64_init_abi): Update.
8393 * vax-tdep.c (vax_gdbarch_init): Update.
8394 * v850-tdep.c (v850_gdbarch_init): Update.
8395 * sparc-tdep.c (sparc_gdbarch_init): Update.
8396 * sh-tdep.c (sh_gdbarch_init): Update.
8397 * s390-tdep.c (s390_gdbarch_init): Update.
8398 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8399 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8400 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8401 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8402 * mips-tdep.c (mips_gdbarch_init): Update.
8403 * mcore-tdep.c (mcore_gdbarch_init): Update.
8404 * m68k-tdep.c (m68k_gdbarch_init): Update.
8405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8406 * ia64-tdep.c (ia64_gdbarch_init): Update.
8407 * i386-tdep.c (i386_gdbarch_init): Update.
8408 * frv-tdep.c (frv_gdbarch_init): Update.
8409 * avr-tdep.c (avr_gdbarch_init): Update.
8410 * arm-tdep.c (arm_gdbarch_init): Update.
8411 * alpha-tdep.c (alpha_gdbarch_init): Update.
8413 2003-03-01 Andrew Cagney <cagney@redhat.com>
8415 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8416 option enum and switch. When no windows, set the interpreter to
8419 2003-03-01 Andrew Cagney <cagney@redhat.com>
8421 * main.c (captured_main): Replace magic option characters with an
8424 2003-03-01 Andrew Cagney <cagney@redhat.com>
8426 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8427 INIT_EXTRA_FRAME_INFO.
8428 * gdbarch.h, gdbarch.c: Regenerate.
8429 * arm-tdep.c: Update comments.
8430 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8431 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8432 * frame.h, avr-tdep.c: Ditto.
8433 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8434 (create_new_frame, legacy_get_prev_frame): Ditto.
8435 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8436 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8438 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8439 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8440 * v850-tdep.c (v850_gdbarch_init): Ditto.
8441 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8442 * sh-tdep.c (sh_gdbarch_init): Ditto.
8443 * s390-tdep.c (s390_gdbarch_init): Ditto.
8444 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8445 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8446 * mips-tdep.c (mips_gdbarch_init): Ditto.
8447 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8448 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8449 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8450 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8451 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8452 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8453 * frv-tdep.c (frv_gdbarch_init): Ditto.
8454 * cris-tdep.c (cris_gdbarch_init): Ditto.
8455 * avr-tdep.c (avr_gdbarch_init): Ditto.
8456 * arm-tdep.c (arm_gdbarch_init): Ditto.
8457 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8458 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8460 2003-03-01 Andrew Cagney <cagney@redhat.com>
8462 * gdbarch.sh (register_type): New function with predicate.
8463 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8464 * gdbarch.h, gdbarch.c: Re-generate.
8465 * arch-utils.c (generic_register_byte): Use generic_register_size.
8466 (generic_register_size): When available, use
8467 gdbarch_register_type.
8468 * regcache.c (init_regcache_descr): When available, initialize the
8469 register type array using gdbarch_register_type. If the
8470 architecture supplies gdbarch_register_type, do not use the legacy
8472 * d10v-tdep.c (d10v_register_type): Replace
8473 d10v_register_virtual_type.
8474 (d10v_gdbarch_init): Set register_type instead of
8475 register_virtual_type.
8477 2003-03-01 Andrew Cagney <cagney@redhat.com>
8479 * Makefile.in (ax-gdb.o): Update dependencies.
8480 * ax-gdb.c: Include "regcache.h".
8481 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8482 * findvar.c (value_of_register): Ditto.
8483 * infcmd.c (default_print_registers_info): Ditto.
8485 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8487 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8488 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8490 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8492 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8495 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8497 * Makefile.in (dwarf2loc.o): Update dependencies.
8498 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8499 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8500 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8501 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8502 (locexpr_tracepoint_var_ref): New function.
8503 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8505 2003-02-28 Andrew Cagney <cagney@redhat.com>
8507 * regcache.c (register_size): New function.
8508 * regcache.h (register_size): Declare
8509 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8510 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8512 2003-02-28 David Carlton <carlton@math.stanford.edu>
8514 * linespec.c (decode_compound): Extract code into find_method.
8517 2003-02-28 J. Brobecker <brobecker@gnat.com>
8519 * Makefile.in: Add rules to build and link in observer.o.
8521 2003-02-27 J. Brobecker <brobecker@gnat.com>
8523 * observer.c: Minor comments edits.
8525 2003-02-27 J. Brobecker <brobecker@gnat.com>
8527 * observer.h, observer.c: New file.
8529 2003-02-27 Andrew Cagney <cagney@redhat.com>
8531 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8533 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8535 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8536 (M6812_OP_STS_EXT): Likewise.
8537 (m6811_prologue): Use the above to recognize prologue.
8538 (m6812_prologue): Likewise.
8540 2003-02-27 David Carlton <carlton@math.stanford.edu>
8542 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8544 (compare_psymbols): Ditto.
8545 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8547 2003-02-27 Michael Snyder <msnyder@redhat.com>
8549 * f-lang.c (build_fortran_types): New function.
8550 (_initialize_f_language): Gdbarch-register built-in fortran types.
8551 * doublest.c (extract_floating): Fix warning text.
8553 2003-02-27 Andrew Cagney <cagney@redhat.com>
8555 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8556 predicate. Replaces PUSH_DUMMY_FRAME.
8557 * gdbarch.h, gdbarch.c: Regnerate.
8558 * valops.c (hand_function_call): Update. Call
8559 generic_push_dummy_frame directly.
8560 * vax-tdep.c (vax_gdbarch_init): Update.
8561 * sparc-tdep.c (sparc_gdbarch_init): Update.
8562 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8563 * m68k-tdep.c (m68k_gdbarch_init): Update.
8564 * hppa-tdep.c (hppa_gdbarch_init): Update.
8565 * alpha-tdep.c (alpha_gdbarch_init): Update.
8566 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8567 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8568 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8569 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8570 push_dummy_frame to generic_push_dummy_frame.
8571 * v850-tdep.c (v850_gdbarch_init): Ditto.
8572 * sh-tdep.c (sh_gdbarch_init): Ditto.
8573 * s390-tdep.c (s390_gdbarch_init): Ditto.
8574 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8575 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8576 * mips-tdep.c (mips_gdbarch_init): Ditto.
8577 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8578 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8579 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8580 * i386-tdep.c (i386_gdbarch_init): Ditto.
8581 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8582 * frv-tdep.c (frv_gdbarch_init): Ditto.
8583 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8584 * cris-tdep.c (cris_gdbarch_init): Ditto.
8585 * avr-tdep.c (avr_gdbarch_init): Ditto.
8586 * arm-tdep.c (arm_gdbarch_init): Ditto.
8588 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8590 * mips-tdep.c (show_mips_abi): New function.
8591 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8592 command ``show mips abi''.
8594 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8596 From Elena Zannoni <ezannoni@redhat.com>
8597 * dbxread.c (process_one_symbol): Only record line 0 if one or
8598 more sline entries have been seen for the function.
8600 2003-02-26 Michael Chastain <mec@shout.net>
8602 * configure: Regenerate with autoconf 000227.
8604 2003-02-26 Michael Chastain <mec@shout.net>
8607 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8608 for old libc5/glibc.
8609 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8611 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8613 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8614 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8616 2003-02-26 Michael Chastain <mec@shout.net>
8618 * configure.in: New variable HAVE_UINTPTR_T.
8619 * configure, config.in: Regenerated.
8621 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8624 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8626 2003-02-25 Andrew Cagney <cagney@redhat.com>
8628 * frame.c (get_prev_frame): Add comment on check for
8629 inside_entry_func. Only check for inside_entry_file when not a
8630 dummy and not a sentinel. Check that the new frame is not inner
8633 2003-02-25 Andrew Cagney <cagney@redhat.com>
8635 * frame.c (frame_debug): New variable.
8636 (_initialize_frame): Add "set/show debug frame" command.
8637 (get_prev_frame): When frame_debug, print reason why unwind
8640 2003-02-25 Michael Chastain <mec@shout.net>
8642 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8643 to avoid uintptr_t definition problems.
8645 2003-02-25 David Carlton <carlton@math.stanford.edu>
8647 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8648 (SYMBOL_LINKAGE_NAME): Ditto.
8649 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8650 SYMBOL_LINKAGE_NAME.
8651 (struct general_symbol_info): Expand comment.
8652 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8653 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8654 (SYMBOL_MATCHES_REGEXP): Ditto.
8655 * symtab.c (symbol_natural_name): New function.
8656 * objfiles.h: Replace all uses of SYMBOL_NAME by
8657 DEPRECATED_SYMBOL_NAME.
8658 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8659 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8660 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8661 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8662 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8663 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8664 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8665 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8666 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8667 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8669 * ada-exp.y: Update copyright.
8670 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8671 * cp-valprint.c: Ditto.
8673 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8675 * infptrace.c (detach): Do not flag error if ptrace detach fails
8676 and errno is set to ESRCH.
8678 2003-02-24 Andrew Cagney <cagney@redhat.com>
8680 * infptrace.c (udot_info): Change type of udot_off to long. Use
8681 paddr when printing udot_off's value.
8683 2003-02-24 David Carlton <carlton@math.stanford.edu>
8685 * symtab.c (make_symbol_overload_list): Only read in partial
8686 symtabs containing a matching partial symbol.
8688 2003-02-24 David Carlton <carlton@math.stanford.edu>
8690 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8691 do the comparison, not strcmp.
8692 * symfile.c (compare_psymbols): Ditto.
8693 * defs.h: Declare strcmp_iw_ordered.
8694 * utils.c (strcmp_iw_ordered): New function.
8696 2003-02-24 Jim Blandy <jimb@redhat.com>
8698 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8699 support, shared libs): Remove my name from here, to better reflect
8702 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8704 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8705 (target_ops): Add to_have_continuable_watchpoint.
8706 * target.c (update_current_target): Add INHERIT line for
8707 to_have_continuable_watchpoint.
8708 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8709 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8710 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8711 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8713 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8715 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8718 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8720 * solib.c (solib_open): Call target defined search function after
8721 failing with solib-search-path.
8722 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8723 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8725 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8727 * MAINTAINERS: Add myself to Write After section.
8729 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8731 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8733 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8735 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8736 (m68hc11_add_reggroups): New function.
8737 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8738 (m68hc11_gdbarch_init): Install the reggroups.
8739 (_initialize_m68hc11_tdep): Initialize them.
8741 2003-02-21 James E Wilson <wilson@tuliptree.org>
8743 * MAINTAINERS: Update my email address.
8745 2003-02-21 David Carlton <carlton@math.stanford.edu>
8747 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8749 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8751 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8752 * symtab.h: Add opaque declarations of struct axs_value and
8754 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8755 (struct location_funcs): New type.
8756 (struct symbol): Add "loc" to aux_value.
8757 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8758 * dwarf2read.c: Include "dwarf2expr.h".
8759 (dwarf2_symbol_mark_computed): New function.
8760 (read_func_scope): Use it.
8761 (var_decode_location): New function.
8762 (new_symbol): Use it.
8763 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8765 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8766 (dwarf2expr_h, dwarf2loc_h): New variables.
8767 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8768 (dwarf2expr.o, dwarf2loc.o): New rules.
8769 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8770 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8772 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8773 * m2-exp.y (yylex): Likewise.
8774 * printcmd.c (address_info, print_frame_args): Likewise.
8775 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8776 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8777 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8778 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8779 * symtab.c (lookup_block_symbol): Likewise.
8781 2003-02-20 Adam Fedor <fedor@gnu.org>
8783 * symtab.h: Remove objc_specific struct
8784 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8785 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8786 Have language_objc use cplus_specific struct.
8788 2003-02-20 Tom Tromey <tromey@redhat.com>
8790 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8791 TYPE_NAME, when printing a String value. PR java/1075.
8793 2003-02-20 Adam Fedor <fedor@gnu.org>
8795 * objc-lang.h (find_methods): Remove declaration.
8796 * objc-lang.c (find_methods): Make static.
8798 2003-02-20 Christopher Faylor <cgf@redhat.com>
8800 * win32-nat.c (get_image_name): Check return value from
8802 (child_xfer_memory): Ditto.
8804 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8806 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8807 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8808 '${exec_prefix}' (in addition to the expansion thereof) as
8810 * configure: Rebuilt.
8812 2003-02-20 David Carlton <carlton@math.stanford.edu>
8814 * symtab.c (search_symbols): Revert the search_symbols part of my
8815 2002-12-23 patch. Add comment.
8817 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8819 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8820 * dbxread.c (elfstab_build_psymtabs): Don't call
8821 install_minimal_symbols.
8822 (stabsect_build_psymtabs): Likewise.
8823 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8825 * somread.c (som_symfile_read): Call install_minimal_symbols
8826 and do_cleanups earlier.
8827 * nlmread.c (nlm_symfile_read): Likewise.
8828 * mdebugread.c (elfmdebug_build_psymtabs): Call
8829 install_minimal_symbols and make appropriate cleanups.
8831 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8833 * solib.c (reload_shared_libraries): New function.
8834 (_initialize_solib): Add callbacks for ``set solib-search-path''
8835 and ``set solib-absolute-prefix''.
8837 2003-02-20 David Carlton <carlton@math.stanford.edu>
8839 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8841 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8842 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8843 * ada-typeprint.c (ada_typedef_print): Ditto.
8844 * ax-gdb.c (gen_var_ref): Ditto.
8845 * breakpoint.c (print_one_breakpoint): Ditto.
8846 * buildsym.c (finish_block): Ditto.
8847 * c-valprint.c (c_val_print): Ditto.
8848 * expprint.c (print_subexp): Ditto.
8849 * findvar.c (locate_var_value): Ditto.
8850 * infcmd.c (jump_command): Ditto.
8851 * linespec.c (decode_line_2, decode_compound): Ditto.
8852 * maint.c (maintenance_translate_address): Ditto.
8853 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8854 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8856 * p-valprint.c (pascal_val_print): Ditto.
8857 * stabsread.c (define_symbol): Ditto.
8858 * stack.c (print_frame, frame_info, print_block_frame_locals)
8859 (print_frame_arg_vars, return_command): Ditto.
8860 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8861 * symmisc.c (print_symbol): Ditto.
8862 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8863 (compare_search_syms, print_symbol_info, print_msymbol_info)
8864 (rbreak_command): Ditto.
8865 * tracepoint.c (tracepoints_info): Ditto.
8866 * typeprint.c (typedef_print): Ditto.
8867 * valops.c (value_of_variable, hand_function_call): Ditto.
8868 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8869 * ada-typeprint.c: Update Copyright.
8870 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8871 * tracepoint.c, cli/cli-cmds.c: Ditto.
8873 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8875 * frame.c (generic_unwind_get_saved_register): Make non-static.
8876 * frame.h (generic_unwind_get_saved_register): Declare.
8877 * mips-tdep.c (read_next_frame_reg): Fetch register from
8878 current regcache when frame is NULL.
8879 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8881 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8882 instead of frame_register_unwind().
8884 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8886 * remote-sim.c (gdbsim_insert_breakpoint)
8887 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8890 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8892 * remote.c (_initialize_remote): Add commands "set/show remote
8893 hardware-watchpoint-limit" and "set/show remote
8894 hardware-breakpoint-limit".
8895 (remote_hw_watchpoint_limit): Initialize to -1.
8896 (remote_hw_breakpoint_limit): Ditto.
8897 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8899 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8901 * coff-pe-read.c: New file - support reading of minimal symbols from a
8902 portable executable using the export table.
8903 * coff-pe-read.h: New file.
8904 * coffread.c: Include coff-pe-read.h.
8905 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8906 debugging symbols found.
8907 * Makefile.in (SFILES): Add coff-pe-read.o.
8908 (coff_pe_read_h): Define.
8909 (COMMON_OBS): Add coff-pe-read.o.
8910 (coffread.o): Add coff_pe_read_h dependency.
8911 (coff-pe-read.o): New target.
8913 2003-02-19 David Carlton <carlton@math.stanford.edu>
8915 * Makefile.in (SFILES): Add block.c.
8917 (COMMON_OBS): Add block.o.
8919 (x86-64-tdep.o): Add $(block_h).
8920 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8921 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8922 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8923 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8924 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8925 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8926 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8927 * value.h: Add opaque declaration for struct block.
8928 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8929 * ada-lang.h: Ditto.
8930 * x86-64-tdep.c: #include "block.h"
8931 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8932 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8933 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8934 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8935 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8936 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8937 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8938 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8939 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8940 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8941 * symtab.c (block_function): Ditto.
8942 (contained_in): Ditto.
8943 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8944 block.h. Add opaque declaration for struct block.
8945 * symtab.h: Move block_function and contained_in declarations to
8946 block.h. Add opaque declarations for struct block, struct
8948 (struct block): Move to block.h.
8949 (struct blockvector): Ditto.
8950 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8951 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8952 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8953 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8954 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8956 * block.c: New file.
8957 * block.h: New file.
8959 2003-02-19 Theodore A. Roth <troth@openavr.org>
8961 * avr-tdep.c (avr_extract_return_value): Remove function.
8962 (avr_store_return_value): Remove function.
8963 (avr_extract_struct_value_address): Remove function.
8964 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8966 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8968 * rs6000-tdep.c: Include "gdb_assert.h".
8969 (registers_e500): Add "acc" and "spefscr".
8970 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8971 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8972 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8974 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8976 2003-02-18 Keith Seitz <keiths@redhat.com>
8978 * Makefile.in: Add gdbtk-interps.c.
8980 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8982 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8983 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8985 2003-02-18 Andrew Cagney <cagney@redhat.com>
8987 * symtab.h (struct objfile): Add opaque declaration.
8989 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8991 From Jim Ingham <jingham@apple.com>:
8992 * dbxread.c (process_one_symbol): Use last_function_start rather
8993 than function_start_offset to find the real beginning of the
8994 current function. The latter is just the text section offset on
8995 some systems, the former is always the real function start.
8997 2003-02-17 Andrew Cagney <cagney@redhat.com>
8999 * configure.in: Revert ${target} != ${host}.
9001 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9003 * configure.in (Makefile): Use the test ${target} != ${host},
9004 instead of the absence of the "nm.h" file, to determine of the
9005 configuration non-native.
9006 * configure: Regenerate.
9008 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9010 From Brian Ford <ford@vss.fsi.com>
9012 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9013 conditionalize tui_active test.
9014 (lookup_cmd_1): Ditto.
9016 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9018 * configure.in: Add check for _etext.
9019 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9021 * config.in, configure: regenerated.
9023 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9025 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9027 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9029 * main.c (tui_version): Delete variable.
9030 (captured_main): When --tui, set interpreter_p to "tui" instead of
9031 enabling tui_version.
9032 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9034 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9035 * cli/cli-cmds.c (disassemble_command): Ditto.
9036 * defs.h (tui_version): Delete declaration.
9037 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9038 (tui-interp.o): Add rules.
9039 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9041 2003-02-14 Christopher Faylor <cgf@redhat.com>
9043 * win32-nat.c (register_loaded_dll): Correctly set address range for
9046 2003-02-12 Jason Molenda (jmolenda@apple.com)
9048 * symmisc.c (print_objfile_statistics): Include information about
9049 the number of psymtabs and symtabs in each object file.
9051 2003-02-13 Keith R Seitz <keiths@redhat.com>
9053 * main.h (struct captured_main_args): Add interpreter_p.
9054 * main.c (captured_main): Initialize interpreter_p from context.
9055 * gdb.c (main): Set interpreter_p argument.
9056 * Makefile.in (gdb.o): Add dependency for interps.h.
9058 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9060 * event-top.c (cli_command_loop): Delete declaration.
9061 (_initialize_event_loop): Delete function setting event_loop_hook.
9062 * event-top.h (cli_command_loop): Declare. Update copyright.
9063 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9064 * interps.c (current_interp_command_loop): When event_loop_p, call
9067 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9069 * interps.h (interp_command_loop_ftype): Change return type to
9072 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9074 * x86-64-tdep.c (x86_64_extract_return_value)
9075 (x86_64_store_return_value): Use regcache instead of regbuf.
9076 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9077 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9079 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9081 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9082 * aclocal.m4: Regenerate.
9083 * configure: Regenerate.
9085 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9086 TCL_LD_SEARCH_FLAGS.
9088 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9090 * dwarf2cfi.c: Reindented.
9092 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9094 * interps.c (clear_interpreter_hooks): Convert function definition
9097 2003-02-07 David Carlton <carlton@math.stanford.edu>
9099 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9101 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9103 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9104 (struct type): ...to here.
9105 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9107 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9108 (replace_type): Set length on all type variants for a given type.
9110 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9112 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9114 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9116 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9118 * Makefile.in (symm-nat.o): Update dependencies.
9119 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9120 (lynx-nat.o, ia64-linux-nat.): Ditto.
9121 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9122 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9123 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9125 * Makefile.in (inflow_h): Define.
9126 (procfs.o, inflow.o, procfs.o): Update dependencies.
9127 * inftarg.c (child_stop): Delete extern declaration of
9128 inferior_process_group. Include "inflow.h".
9129 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9130 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9131 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9132 (our_process_group, inferior_process_group): Extern declarations.
9134 * procfs.c: Include "gdb_assert.h".
9136 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9137 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9138 * jv-typeprint.c (java_type_print_base): Ditto.
9139 * typeprint.c (typedef_print): Eliminate STREQ.
9140 * cli/cli-script.c (define_command, define_command): Ditto.
9141 * main.c (captured_main): Ditto.
9142 * values.c (lookup_internalvar): Ditto.
9143 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9144 within `if' conditional.
9145 * linespec.c (decode_line_2): Ditto.
9146 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9147 (bfd_openw_with_cleanup): Ditto.
9149 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9151 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9152 legacy_extract_return_value and store_return_value to
9153 legacy_return_value.
9155 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9157 * win32-nat.c (get_relocated_section_addrs): New function. Find
9158 section load addresses for symbol handling in relocated DLLs.
9159 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9161 2003-02-05 Fred Fish <fnf@intrinsity.com>
9163 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9165 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9167 (angel_RDI_info): Ditto.
9168 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9170 (threads_continue_all_with_signals): Ditto.
9172 2003-02-05 Jim Ingham <jingham@apple.com>
9173 Keith Seitz <keiths@redhat.com>
9174 Elena Zannoni <ezannoni@redhat.com>
9175 Andrew Cagney <ac131313@redhat.com>
9177 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9178 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9179 (SUBDIR_MI_OBS): Add "mi-interp.o".
9180 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9181 (SFILES): Add "interps.c".
9182 (COMMON_OBS): Add "interps.o".
9183 (interps_h, mi_main_h): Define.
9184 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9185 (mi-main.o, main.o, event-top.o): Update dependencies.
9186 * cli/cli-interp.c: New file.
9187 * interps.h, interps.c: New files.
9188 * top.c: (gdb_init): Don't install the default interpreter, handed
9190 * main.c: Include "interps.h".
9191 (interpreter_p): Note that it should malloc'ed.
9192 (captured_command_loop): Call current_interp_command_loop.
9193 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9194 xfree and xstrdup when updating interpreter_p. Install the
9195 default interpreter. Add hack to stop mi1's copyright notice
9197 * event-top.h (gdb_setup_readline): Declare.
9198 (gdb_disable_readline): Declare.
9199 * event-top.c: Include "interps.h".
9200 (display_gdb_prompt): Call current_interp_display_prompt_p.
9201 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9202 gdb_stdlog, and gdb_stdtarg.
9203 (_initialize_event_loop): Don't call gdb_setup_readline.
9204 * cli-out.c (cli_out_set_stream): New function.
9205 * cli-out.h (cli_out_set_stream): Declare.
9207 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9209 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9210 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9211 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9212 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9213 config/i386/i386v42mp.mt: Removed.
9215 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9217 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9220 2003-02-05 Michael Chastain <mec@shout.net>
9222 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9223 2.12.1 and earlier versions.
9225 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9227 Remove orphaned hosts, targets and files.
9228 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9229 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9230 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9231 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9232 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9233 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9234 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9235 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9236 * config/sparc/tm-sp64sim.h: Delete.
9237 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9239 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9240 mips*-dec-mach3* targets.
9242 2003-02-04 Michael Chastain <mec@shout.net>
9244 * NEWS: Fix typo: sepcifying -> specifying.
9246 2003-02-04 Michael Chastain <mec@shout.net>
9248 * dwarfread.c: Add documentation on the state of dwarf-1,
9249 looking towards obsoletion.
9251 2003-02-03 Michael Chastain <mec@shout.net>
9253 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9254 gdb/testsuite/gdb.c++/pr-1023.exp.
9256 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9258 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9259 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9261 * utils.c (init_page_info): Delete reference to MPW in comments.
9262 * main.c (captured_main): Delete #ifdef MPW.
9264 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9266 * NEWS: Note that the m32r-*-elf* is obsolete.
9267 * monitor.c (monitor_expect): Obsolete reference to m32r.
9268 * configure.tgt: Mark m32r-*-elf* as obsolete.
9269 * MAINTAINERS: Mark m32k as obsolete.
9270 * m32r-rom.c: Obsolete file.
9271 * config/m32r/m32r.mt: Obsolete file.
9272 * config/m32r/tm-m32r.h: Obsolete file.
9273 * m32r-stub.c: Obsolete file.
9274 * m32r-tdep.c: Obsolete file.
9276 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9278 * NEWS: Mention that the z8k-zilog-none is obsolete.
9279 * MAINTAINERS: Mark z8k as obsolete.
9280 * configure.tgt: Obsolete the z8k-*-coff* target.
9281 * config/z8k/z8k.mt: Obsolete file.
9282 * config/z8k/tm-z8k.h: Obsolete file.
9283 * z8k-tdep.c: Obsolete file.
9285 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9287 * NEWS: Mention that the mn10200-elf is obsolete.
9288 * configure.tgt: Obsolete mn10200-*-* target.
9289 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9290 mention that the mn10200 is obsolete.
9291 * breakpoint.h: Ditto.
9292 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9293 * config/mn10200/mn10200.mt: Obsolete file.
9294 * config/mn10200/tm-mn10200.h: Obsolete file.
9295 * mn10200-tdep.c: Obsolete file.
9297 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9299 * MAINTAINERS: Mark h8500 as obsolete.
9300 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9301 * findvar.c (value_from_register): Ditto.
9302 * h8500-tdep.c: Mark file as obsolete.
9303 * config/h8500/h8500.mt: Ditto.
9304 * config/h8500/tm-h8500.h: Ditto.
9305 * NEWS: Mention that h8500 is obsolete.
9307 2003-02-04 David Carlton <carlton@math.stanford.edu>
9309 * objfiles.c (allocate_objfile): Always set name. Add comment at
9311 * jv-lang.c (get_dynamics_objfile): Add comment.
9313 2003-02-04 David Carlton <carlton@math.stanford.edu>
9315 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9316 * printcmd.c (build_address_symbolic): Replace uses of
9317 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9318 SYMBOL_NAME, and asm_demangle.
9321 2003-02-04 David Carlton <carlton@math.stanford.edu>
9323 * linespec.c (decode_compound): Extract code into
9325 (lookup_prefix_sym): New function.
9327 2003-02-04 David Carlton <carlton@math.stanford.edu>
9329 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9330 FLOAT_COERCION_BADNESS.
9331 * gdbtypes.c (rank_one_type): Replace all uses of
9332 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9334 2003-02-04 Jim Blandy <jimb@redhat.com>
9336 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9337 section, let dwarf_macinfo_section point to it, not
9340 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9342 Pointed out by Anton Blanchard <anton@samba.org>.
9343 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9344 (ppc_linux_at_sigtramp_return_path): Use it.
9346 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9348 * defs.h (streq): Add prototype.
9349 * utils.c (streq): New function.
9351 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9352 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9353 * mdebugread.c (new_symbol): Likewise.
9354 * stabsread.c (define_symbol): Likewise.
9355 * coffread.c (process_coff_symbol): Likewise.
9356 * dwarfread.c (new_symbol): Likewise.
9358 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9359 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9361 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9362 SYMBOL_INIT_DEMANGLED_NAME.
9363 * objfiles.c: Include "hashtab.h".
9364 (allocate_objfile): Call htab_set_functions_ex for the
9365 demangled_names_hash.
9366 (free_objfile): Call htab_delete for the demangled_names_hash.
9367 * objfiles.h (struct htab): Add declaration.
9368 (struct objfile): Add demangled_names_hash.
9369 * symfile.c: Include "hashtab.h".
9370 (reread_symbols): Call htab_delete for the demangled_names_hash.
9371 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9372 SYMBOL_NAME in the bcache.
9373 * symtab.c: Include "hashtab.h". Update comments.
9374 (create_demangled_names_hash, symbol_set_names): New functions.
9375 (symbol_find_demangled_name): New function, broken out from
9376 symbol_init_demangled_names.
9377 (symbol_init_demangled_names): Use it.
9378 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9379 (SYMBOL_SET_NAMES): New macro.
9380 (symbol_set_names): Add prototype.
9382 2003-02-03 Jim Blandy <jimb@redhat.com>
9384 Use a single, consistent representation for an empty minimal
9385 symbol table in an objfile.
9386 * objfiles.c (terminate_minimal_symbol_table): New function.
9387 (allocate_objfile): Call it.
9388 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9389 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9391 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9392 objfile has minimal symbols, compare minimal_symbol_count to zero,
9393 instead of comparing msymbols with NULL.
9394 * objfiles.c (have_minimal_symbols): Same.
9395 * solib-sunos.c (solib_add_common_symbols): Call
9396 terminate_minimal_symbol_table.
9397 * symfile.c (reread_symbols): Same.
9399 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9401 * s390-tdep.c (s390_address_class_type_flags)
9402 (s390_address_class_type_flags_to_name)
9403 (s390_address_class_name_to_type_flags): New functions.
9404 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9405 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9407 2003-02-03 Michael Snyder <msnyder@redhat.com>
9409 * arm-tdep.c: Fix spell-o in comment.
9411 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9413 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9414 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9415 error messages to contain BFD filename.
9417 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9419 Fix PR gdb/742 gdb/743 gdb/877
9420 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9421 (do_mixed_source_and_assembly): Use
9422 make_cleanup_ui_out_tuple_begin_end and
9423 make_cleanup_ui_out_tuple_begin_end.
9424 (do_mixed_source_and_assembly): Ditto.
9425 * thread.c (do_captured_list_thread_ids): Ditto.
9426 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9427 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9428 ui_out_tuple_end): Delete prototypes.
9429 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9430 ui_out_list_end, ui_out_tuple_end): Delete.
9432 From Kevin Buettner <kevinb@redhat.com>:
9433 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9434 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9435 (do_cleanup_table_end): New functions.
9436 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9437 Use cleanups to invoke_ui_out_tuple_end().
9438 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9439 * cli/cli-setshow.c (cmd_show_list): Use
9440 make_cleanup_ui_out_tuple_begin_end.
9442 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9444 * frame.c (frame_unwind_register): New function.
9445 (frame_unwind_unsigned_register): Use.
9446 (frame_unwind_signed_register): Use.
9447 (frame_read_register): New function.
9448 * frame.h (frame_unwind_register): Declare.
9449 (frame_read_register): Declare.
9451 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9452 and frame_unwind_register instead of read_memory, write_register
9453 and deprecated_write_register_bytes.
9455 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9457 * frame.h: Note that namelen can be negative.
9458 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9461 * NEWS: Mention that the d10v's `regs' command is deprecated.
9462 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9463 (d10v_print_registers_info): New function.
9464 (show_regs): Call d10v_print_registers_info.
9465 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9467 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9469 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9470 lost in the previous patch.
9472 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9474 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9475 * stack.c (print_frame_info_base): Output complete FRAME tuple
9476 for synthesized frames.
9478 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9480 * mips-nat.c (zerobuf): Delete.
9481 (fetch_inferior_registers): Alloc local zerobuf.
9482 (fetch_core_registers): Alloc local zerobuf.
9483 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9484 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9485 * thread-db.c (thread_db_store_registers): Ditto.
9486 * sh-tdep.c (sh_do_register): Ditto.
9487 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9488 * remote-sim.c (gdbsim_store_register): Ditto.
9489 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9490 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9491 * monitor.c (monitor_supply_register): Ditto.
9492 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9493 * mips-nat.c (fetch_inferior_registers): Ditto.
9494 * m68klinux-nat.c (fetch_register): Ditto.
9495 * lynx-nat.c (fetch_inferior_registers): Ditto.
9496 (fetch_inferior_registers): Ditto.
9497 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9498 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9499 (hpux_thread_store_registers): Ditto.
9500 * hppah-nat.c (fetch_register): Ditto.
9501 * hppab-nat.c (fetch_register): Ditto.
9502 * hppa-tdep.c (pa_register_look_aside): Ditto.
9503 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9504 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9506 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9508 * gdbarch.sh: Explictly specify all method levels. When a
9509 variable with an empty level, provide a non-multi-arch default.
9510 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9511 * gdbarch.h: Re-generate.
9512 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9513 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9515 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9517 * defs.h (host_pointer_to_address): Delete declaration.
9518 (address_to_host_pointer): Delete declaration.
9519 * utils.c (host_pointer_to_address): Delete function.
9520 (address_to_host_pointer): Delete function.
9521 * procfs.c (procfs_address_to_host_pointer): New function.
9522 * procfs.c (proc_set_watchpoint): Use.
9523 (procfs_can_use_hw_breakpoint): Update comments.
9524 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9525 (som_solib_add): Use.
9526 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9527 * hppa-tdep.c (unwind_command): Use.
9529 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9531 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9534 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9535 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9536 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9537 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9538 (define_symbol): Update.
9539 * symfile.c (generic_load): Remove references to nindy.
9540 * symtab.c: Remove references to nindy.
9542 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9544 * infcmd.c (print_float_info): Delete code conditional on
9546 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9547 * config/m68k/nm-apollo68b.h: Ditto.
9548 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9549 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9550 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9552 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9554 * config/i386/tm-i386os9k.h: Removed.
9556 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9557 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9558 they're identical to i[3456]86-*-sysv* now.
9559 * config/i386/i386v32.mh: Removed.
9560 * config/i386/xm-i386v32.h: Removed.
9561 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9563 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9565 * config/i386/i386dgux.mh: Removed.
9566 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9568 * configure.in: Fix typo.
9569 * configure: Regenerated.
9571 2003-01-31 David Carlton <carlton@math.stanford.edu>
9573 * dwarf2read.c (dwarf2_locate_sections): Set
9574 dwarf_ranges_section.
9576 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9578 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9579 * utils.c: Update comments documenting legitimate uses of PTR.
9581 * utils.c: Re-indent.
9583 * config/djgpp/fnchange.lst: Delete nindy files.
9584 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9585 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9586 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9587 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9588 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9589 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9590 * Makefile.in (init.c): Remove nindy references.
9591 (saber_gdb): Delete rule.
9592 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9593 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9595 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9596 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9597 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9598 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9600 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9601 * saber.suppress: Delete file.
9603 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9605 * dbxread.c (stabs_data): New static variable.
9606 (fill_symbuf): Support an in-memory buffer for stabs data.
9607 (stabs_seek): New function.
9608 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9609 (read_ofile_symtab): Use stabs_seek.
9610 (elfstab_build_psymtabs): Take an asection* instead of
9611 an offset and size. Relocate the stabs data if necessary.
9612 Save the section* for dbx_psymtab_to_symtab.
9613 * dwarf2read.c: Add section variables for each debug section.
9614 (dwarf2_locate_sections): Fill them in.
9615 (dwarf2_read_section): Take an asection* argument.
9616 Relocate the section contents if necessary.
9617 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9618 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9619 it to dwarf2_read_section.
9620 (dwarf2_build_frame_info): Update callers.
9621 * elfread.c (elf_symfile_read): Update call to
9622 elfstab_build_psymtabs.
9623 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9624 (DBX_STAB_SECTION): New macro.
9625 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9626 * symfile.c (symfile_dummy_outputs): New function.
9627 (symfile_relocate_debug_section): New function.
9628 * symfile.h (symfile_relocate_debug_section): Add prototype.
9630 2003-01-31 Richard Henderson <rth@redhat.com>
9632 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9633 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9634 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9635 * alpha-tdep.c (alpha_register_name): Add "unique".
9636 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9637 (ALPHA_UNIQUE_REGNUM): New.
9638 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9640 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9642 * README: Remove reference to Ericsson 1800 monitor.
9643 * Makefile.in (remote-es.o): Delete rule.
9644 (ALLDEPFILES): Delete remote-es.c.
9645 * remote-es.c: Delete file.
9646 * config/m68k/es1800.mt: Delete file.
9647 * config/djgpp/fnchange.lst: Update.
9648 * configure.tgt: Delete m68*-ericsson-* target.
9650 2003-01-31 Adam Fedor <fedor@gnu.org>
9652 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9653 Remove duplicate/shadowing variable of same name.
9655 2003-01-30 Jim Blandy <jimb@redhat.com>
9657 * symfile.c (find_separate_debug_file): Assert that the objfile's
9658 directory name we compute ends with a slash, and then assume that
9659 that's so everywhere we use it.
9661 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9663 * valops.c (value_assign): Flush frame cache after stores to memory
9666 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9668 * Makefile.in (mon960-rom.o): Delete rule.
9669 * mon960-rom.c: Delete file.
9671 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9673 * d10v-tdep.c: Include "frame-unwind.h".
9674 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9676 (next_addr, uses_frame): Delete.
9677 (struct d10v_unwind_cache): Define.
9678 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9679 Use info instead of next_addr and uses_frame globals.
9680 (d10v_frame_init_saved_regs): Delete function.
9681 (d10v_init_extra_frame_info): Delete function.
9682 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9683 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9684 init_frame_pc or frame_saved_pc.
9685 (d10v_pop_frame): Delete function.
9686 (do_d10v_pop_frame): Delete function.
9687 (d10v_frame_chain): Delete function.
9688 (d10v_frame_chain_valid): Delete function.
9689 (d10v_frame_pc_unwind): New function.
9690 (d10v_frame_id_unwind): New function.
9691 (saved_regs_unwinder): New function.
9692 (d10v_frame_register_unwind): New function.
9693 (d10v_frame_pop): New function.
9694 (d10v_frame_unwind): New variable.
9695 (d10v_frame_p): New function.
9696 (d10v_frame_saved_pc): Delete function.
9697 * Makefile.in (d10v-tdep.o): Update dependencies.
9699 2003-01-30 J. Brobecker <brobecker@gnat.com>
9701 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9702 causing some regressions due to a change in the default value
9705 2003-01-29 Richard Henderson <rth@redhat.com>
9706 Elena Zannoni <ezannoni@redhat.com>
9707 Daniel Jacobowitz <drow@mvista.com>
9710 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9712 (RANGES_SECTION): New.
9713 (dwarf_ranges_buffer): New variable.
9714 (struct comp_unit_head): Add member "die".
9715 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9716 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9717 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9718 (dwarf2_locate_sections): Likewise.
9719 (dwarf2_build_psymtabs): Read .debug_ranges.
9720 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9721 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9722 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9723 Look for DW_AT_ranges and return the bounding box.
9725 2003-01-29 Brian Ford <ford@vss.fsi.com>
9727 * win32-nat.c (cygwin_pid): Removed as unused.
9728 (child_attach): Try fall back to Cygwin pid.
9730 2003-01-29 Jim Blandy <jimb@redhat.com>
9732 * objfiles.h (struct objfile): Doc fix.
9734 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9736 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9737 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9738 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9739 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9740 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9741 (FRAME_SAVED_PC): Change to a function with predicate.
9742 * gdbarch.h, gdbarch.c: Re-generate.
9744 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9746 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9748 * complaints.c (complain): Delete function.
9749 * complaints.h (struct deprecated_complaint): Delete definition.
9750 (complain): Delete declaration.
9752 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9754 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9757 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9759 * sentinel-frame.h, sentinel-frame.c: New files.
9760 * Makefile.in (frame.o): Update dependencies.
9761 (SFILES): Add sentinel-frame.c.
9762 (sentinel_frame_h): Define.
9763 (COMMON_OBS): Add sentinel-frame.o.
9764 (sentinel-frame.o): Specify dependencies.
9765 * frame.c: Include "sentinel-frame.h".
9766 (frame_register_unwind): Rewrite assuming that there is always a a
9768 (frame_register, generic_unwind_get_saved_register): Ditto.
9769 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9770 (create_sentinel_frame, unwind_to_current_frame): New functions.
9771 (get_current_frame): Rewrite using create_sentinel_frame and
9772 unwind_to_current_frame. When possible, always create a frame.
9773 (create_new_frame): Set next to the sentinel frame.
9774 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9775 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9776 ID cache when necessary.
9777 (frame_saved_regs_id_unwind): Use frame_relative_level.
9778 (deprecated_generic_get_saved_register): Use frame_relative_level,
9779 get_frame_saved_regs, get_frame_pc, get_frame_base and
9781 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9784 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9786 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9788 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9790 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9791 (maintenance_set_profile_cmd): Use error () instead of warning ().
9793 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9795 * configure.in: Check that -pg works if using --enable-profiling.
9796 Check for monstartup and _mcleanup regardless of --enable-profiling.
9797 * maint.c: Check for monstartup and _mcleanup before using them.
9798 * config.in: Regenerated.
9799 * configure: Regenerated.
9801 2003-01-24 Nick Clifton <nickc@redhat.com>
9805 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9807 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9808 (sh2e_show_regs): New.
9809 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9810 * config/sh/tm-sh.h: Added sh2e to comments.
9812 2003-01-23 Jim Blandy <jimb@redhat.com>
9814 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9815 symbols found)" message here; we haven't checked for a separate
9816 debug info file yet, so we don't know yet.
9817 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9818 we've looked everywhere. Also, there's no need to print a special
9819 message when we're loading the separate debug info file: the one
9820 symbol_file_add prints is fine.
9822 2003-01-23 Alexander Larsson <alexl@redhat.com>
9823 Jim Blandy <jimb@redhat.com>
9825 Add support for executables whose debug info has been separated
9826 out into a separate file, leaving only a link behind.
9827 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9828 and separate_debug_objfile_backlink.
9829 (put_objfile_before): New declaration.
9830 * symfile.c: #include "filenames.h".
9831 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9832 debug info in a separate file, read that, too. Save the addrs
9833 argument, so we can use it again to read the separated debug info;
9834 syms_from_objfile modifies the table we pass it.
9835 (reread_symbols): After re-reading an objfile, call
9836 reread_separate_symbols to refresh its separate debug info
9837 objfile, if it has one.
9838 (reread_separate_symbols, find_separate_debug_file,
9839 get_debug_link_info, separate_debug_file_exists): New functions.
9840 (debug_file_directory): New global var.
9841 (_initialize_symfile): Initialize debug_file_directory, and
9842 provide the new `set debug-file-directory' command to let the user
9844 * objfiles.c (free_objfile): If this objfile has its debug info in
9845 a separate objfile, free that one too. If this is itself a
9846 separate debug info objfile, clear our parent's backlink.
9847 (put_objfile_before): New function.
9848 * utils.c (gnu_debuglink_crc32): New function.
9849 * defs.h (gnu_debuglink_crc32): New declaration.
9850 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9851 * configure.in: Handle --with-separate-debug-dir config option.
9852 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9853 * acconfig.h (DEBUGDIR): New macro.
9854 * configure, aclocal.m4, config.in: Regenerated.
9856 2003-01-22 Jim Blandy <jimb@redhat.com>
9858 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9859 like the old symbol_file_add, but taking new arguments: you can
9860 now pass in either a `struct section_addr_info' list to say where
9861 each section is loaded, or a `struct section_offsets' table. Pass
9862 these new arguments through to syms_from_objfile as appropriate.
9863 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9864 with the appropriate quiescent values for the new arguments.
9866 * symfile.c: #include "gdb_assert.h".
9867 (syms_from_objfile): Add the ability to pass in a section offset
9868 table directly, as an alternative to the section_addr_info table.
9869 Document arguments better.
9870 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9871 * symfile.h (syms_from_objfile): Update declaration.
9872 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9874 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9876 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9878 Original patch by Tom Tromey <tromey@cygnus.com> and
9879 Jason Molenda <jmolenda@apple.com>.
9880 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9881 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9882 * NEWS: Mention profiling.
9883 * configure.in (--enable-gdbtk): Fix typo.
9884 (--enable-profiling): New. Set PROFILE_CFLAGS.
9885 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9887 (profiling_state): New variable.
9888 (mcleanup_wrapper): New function.
9889 (_initialize_maint): Remove NOTYET, fix call to
9890 add_setshow_boolean_cmd for "maint set profile".
9891 * configure: Regenerated.
9893 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9895 * Makefile.in (install-gdbtk): Install PNG images too.
9897 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9899 * exec.c (text_start): Delete global variable.
9900 (exec_file_attach): Make text_start local to the function.
9901 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9902 * valops.c (hand_function_call): Delete code that handles
9903 BEFORE_TEXT_END and AFTER_TEXT_END.
9904 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9905 of CALL_DUMMY_LOCATION.
9906 * gdbarch.c: Regenerate.
9907 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9908 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9909 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9910 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9911 (text_end): Delete extern declaration.
9913 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9915 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9916 * blockframe.c (backtrace_below_main): Move to "frame.c".
9917 (frame_chain_valid): Delete check for backtrace_below_main.
9918 (_initialize_blockframe): Delete initialization, move ``set
9919 backtrace-below-main'' command to "frame.c".
9920 (do_flush_frames_sfunc): Delete function.
9921 * frame.c: Include "command.h" and "gdbcmd.h".
9922 (frame_type_from_pc): New function.
9923 (create_new_frame): Use frame_type_from_pc.
9924 (legacy_get_prev_frame): New function.
9925 (get_prev_frame): Rewrite. When an old style frame, call
9926 legacy_get_prev_frame. Otherwize, unwind the PC first.
9927 (_initialize_frame): Add ``set backtrace-below-main'' command.
9928 * Makefile.in (frame.o): Update dependencies.
9930 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9932 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9933 DEPRECATED_REGISTERS_INFO.
9935 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9937 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9938 Maintainers'. Update `Various Maintainers'.
9940 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9942 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9943 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9944 Suppress actual parameters when `-'.
9945 * gdbarch.h, gdbarch.c: Regenerate.
9947 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9949 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9950 code handling dummy frames.
9952 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9954 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9955 (struct frame_unwind): Add field pop.
9956 * frame.h (frame_pop): Declare.
9957 * frame.c (frame_saved_regs_pop): New function.
9958 (trad_frame_unwinder): Add frame_saved_regs_pop.
9959 (frame_pop): New function.
9960 * dummy-frame.c (dummy_frame_pop): New function.
9961 (discard_innermost_dummy): New function.
9962 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9963 (dummy_frame_unwind): Add dummy_frame_pop.
9964 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9965 * valops.c (hand_function_call): Ditto.
9966 * stack.c (return_command): Ditto.
9968 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9970 * cris-tdep.c: Fix function declaration indentation.
9971 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9972 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9973 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9974 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9975 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9976 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9978 2003-01-18 Michael Chastain <mec@shout.net>
9980 * README (Unpacking and Installation -- quick overview):
9981 Warn against ".../gdb-5.3/gdb/configure".
9983 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9985 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9986 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9987 (struct frame_unwind): Declare opaque.
9988 (dummy_frame_p): Declare function.
9989 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9990 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9991 * dummy-frame.c: Include "frame-unwind.h".
9992 (dummy_frame_p): New function.
9993 (dummy_frame_unwind): New variable.
9994 * frame.c: Include "frame-unwind.h".
9995 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9996 to use the new unwind field.
9997 (set_unwind_by_pc): Delete function.
9998 (create_new_frame, get_prev_frame): Set unwind field using
9999 frame_unwind_find_by_pc.
10000 (trad_frame_unwind, trad_frame_unwinder): New variables.
10001 * frame.h (trad_frame_unwind): Declare variable.
10002 (frame_id_unwind_ftype): Delete declaration.
10003 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10004 (struct frame_unwind): Declare opaque.
10005 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10006 register_unwind with a single unwind pointer.
10007 * frame-unwind.h, frame-unwind.c: New files.
10008 * Makefile.in (SFILES): Add frame-unwind.c.
10009 (frame_unwind_h): Define.
10010 (COMMON_OBS): Add frame-unwind.o.
10011 (frame-unwind.o): Specify dependencies.
10012 (frame.o, dummy-frame.o): Update dependencies.
10014 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10016 * ada-valprint.c: Eliminate PTR.
10017 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10018 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10019 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10020 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10021 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10022 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10023 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10025 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10027 * main.c (captured_main): Don't use PTR.
10028 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10029 * gdbtypes.c (lookup_primitive_typename): Ditto.
10030 (lookup_struct_elt_type): Ditto.
10031 * f-valprint.c (info_common_command): Ditto.
10032 (list_all_visible_commons): Ditto.
10033 * jv-typeprint.c (java_type_print_base): Ditto.
10035 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10036 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10037 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10038 i386-interix-nat.c and i386-interix-tdep.c. Rename
10039 m68klinux-nat.c and m68klinux-tdep.c. Rename
10040 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10041 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10042 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10043 * main.c (captured_main): Use xfree, not free.
10045 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10047 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10048 ID back using a parameter.
10049 * frame.c (frame_id_unwind): Update call.
10050 (frame_saved_regs_id_unwind): Update.
10051 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10052 * dummy-frame.h (struct frame_id): Add opaque declaration.
10053 (dummy_frame_id_unwind): Update declaration.
10055 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10057 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10059 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10061 * MAINTAINERS (Stephen P. Smith): Updated email address.
10063 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10066 * breakpoint.c (until_break_command): Add new argument. Use it to
10067 decide whether to stop only at the current frame or not.
10068 * breakpoint.h (until_break_command): Update prototype.
10069 * infcmd.c (until_command): Add new argument to until_break_command
10071 (advance_command): New function.
10072 (_initialize_infcmd): Update help string for 'until' command.
10073 Add new 'advance' command.
10075 2003-01-14 David Carlton <carlton@math.stanford.edu>
10077 * linespec.c (decode_line_1): Normalize comments.
10078 (set_flags): Ditto.
10079 (locate_first_half): Ditto.
10080 (decode_compound): Ditto.
10081 (symtab_from_filename): Ditto.
10082 (decode_all_digits): Ditto.
10083 (decode_dollar): Ditto.
10084 (find_methods): Ditto.
10085 (find_toplevel_char): Ditto.
10087 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10089 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10090 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10091 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10092 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10093 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10094 * language.c, language.h, m32r-tdep.c: Update copyright.
10095 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10096 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10097 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10098 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10099 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10100 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10102 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10104 * stabsread.h (process_later, resolve_cfront_continuation):
10106 Update copyright years.
10107 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10108 Update copyright year.
10109 * dbxread.c(struct cont_elem): Obsolete.
10110 (process_later, process_now): Obsolete functions.
10111 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10112 Update copyright year.
10113 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10114 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10115 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10116 (parse_partial_symbols): Obsolete cfront support.
10118 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10120 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10121 read_cfront_baseclasses, read_cfront_member_functions,
10122 resolve_cfront_continuation,read_cfront_static_fields,
10123 copy_cfront_struct_fields): Obsolete functions.
10124 (define_symbol, read_one_struct_field): Obsolete cfront support.
10125 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10126 Update Copyright year.
10128 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10130 * stack.c (print_frame_info, print_stack_frame_base_stub,
10131 print_stack_frame_base, show_and_print_stack_frame_stub,
10132 show_and_print_stack_frame, print_only_stack_frame_stub,
10133 print_only_stack_frame): Delete functions.
10134 (print_stack_frame_stub): Call print_frame_info instead of
10135 print_frame_info_base.
10136 (print_frame_info_base): Rename to print_frame_info.
10137 (backtrace_command_1): Call print_frame_info, instead of
10138 print_frame_info_base.
10139 (current_frame_command): Call print_stack_frame, instead of
10140 print_only_stack_frame.
10141 (frame_command): Call print_stack_frame, instead of
10142 show_and_print_stack_frame.
10143 (up_command): Ditto.
10144 (down_command): Ditto.
10145 * frame.h (print_only_stack_frame): Delete prototype.
10146 * infrun.c (normal_stop): Call print_stack_frame, instead of
10147 show_and_print_stack_frame.
10148 * thread.c (info_threads_command): Call print_stack_frame, instead
10149 of print_only_stack_frame.
10151 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10153 * README (Graphical interface to GDB): Update URL. Point at
10156 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10159 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10161 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10164 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10166 * thread-db.c (attach_thread): Prototype.
10167 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10168 thread information (ti), and valid flags (th_valid, ti_valid).
10169 (attach_thread): Move target_pid_to_str call to after the thread
10170 is added to GDB's list. Initialize the cache.
10171 (thread_get_info_callback, thread_db_map_id2thr)
10172 (thread_db_get_info): New functions.
10173 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10174 (thread_db_store_registers, thread_db_thread_alive)
10175 (thread_db_get_thread_local_address): Use them.
10176 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10177 of calling error() for threads in unknown state.
10179 (clear_lwpid_callback): New function.
10180 (thread_db_resume): Use it to clear the cache.
10182 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10184 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10185 (resume_callback): Remove dead code.
10187 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10189 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10191 * gdbarch.h, gdbarch.c: Regenerate.
10192 * stack.c (frame_info): Only initialize the saved registers when
10193 FRAME_INIT_SAVED_REGS_P.
10194 * frame.c (frame_saved_regs_register_unwind): Assert
10195 FRAME_INIT_SAVED_REGS_P.
10196 (deprecated_generic_get_saved_register): Ditto.
10198 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10200 * source.c (openp): Squelch warning about "filename".
10202 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10204 * source.c (openp): If the file does not exist don't necessarily
10207 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10210 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10211 (integer_types_same_name_p): New function.
10212 (rank_one_type): Use it.
10213 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10215 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10217 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10219 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10220 * configure.in: Add --with-sysroot.
10221 * configure: Regenerated.
10222 * main.c (gdb_sysroot): New variable.
10223 (captured_main): Initialize gdb_sysroot.
10224 * defs.h (gdb_sysroot): New extern declaration.
10225 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10227 2003-01-12 Michael Chastain <mec@shout.net>
10229 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10231 2003-01-12 Michael Chastain <mec@shout.net>
10233 * top.c (print_gdb_version): Bump copyright year to 2003.
10235 2003-01-12 David Carlton <carlton@bactrian.org>
10237 * linespec.c (symtab_from_filename): Rename variable 's' to
10240 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10242 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10244 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10246 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10248 * d10v-tdep.c: Include "gdb_assert.h".
10249 (d10v_store_return_value): Rewrite to match current interface.
10250 (d10v_extract_struct_value_address): Ditto.
10251 (d10v_extract_return_value): Ditto.
10252 (d10v_gdbarch_init): Set store_restore_value,
10253 extract_struct_value_address and extract_return_value.
10255 2003-01-12 J. Brobecker <brobecker@gnat.com>
10257 * hpread.c (set_namestring): New procedure replacing the
10258 SET_NAMESTRING macro.
10259 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10260 by calls to set_namestring.
10262 2003-01-11 J. Brobecker <brobecker@gnat.com>
10264 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10265 a compilation warning.
10266 (hpread_process_one_debug_symbol): Likewise.
10268 2003-01-10 David Carlton <carlton@math.stanford.edu>
10270 * linespec.c (decode_line_1): Rename variable 's' to
10272 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10273 (decode_dollar): Ditto.
10274 (decode_variable): Ditto.
10275 (symbol_found): Ditto.
10277 2003-01-09 Michael Chastain <mec@shout.net>
10279 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10281 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10283 * win32-nat.c (set_process_privilege): New function.
10284 (child_attach): Call set_process_privilege() to enable the
10285 SE_DEBUG_NAME user privilege if available in process token.
10287 2003-01-10 J. Brobecker <brobecker@gnat.com>
10289 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10290 compilation error in the previous revision.
10292 2003-01-09 David Carlton <carlton@math.stanford.edu>
10294 * linespec.c: Update copyright.
10296 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10298 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10299 than inferior_ptid.
10300 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10302 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10304 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10306 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10307 (frame_saved_regs_zalloc): Update.
10308 (frame_saved_regs_register_unwind): Update.
10309 (create_new_frame): Update.
10310 (get_prev_frame): Update.
10311 (frame_extra_info_zalloc): Update.
10312 (deprecated_get_frame_saved_regs): Update.
10313 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10314 * cris-tdep.c: Update comment.
10316 * somsolib.h: Fix function indentation.
10317 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10318 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10319 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10320 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10321 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10323 * infrun.c (follow_fork): Use ISO C definition.
10324 * expprint.c (print_subexp): Use xfree instead of free.
10325 * charset.c: Include "gdb_string.h" instead of <string.h>.
10326 (register_iconv_charsets): Use ISO C definition.
10327 (host_charset, target_charset): Ditto.
10328 * Makefile.in (charset.o): Update dependencies.
10329 (mi-cmd-env.o): Update dependencies.
10331 2003-01-08 Andrew Cagney <cagney@redhat.com>
10333 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10336 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10338 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10339 build directories. Save edited gdb output in Mbuild.log. If a
10340 build fails, remove any final GDB executable.
10342 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10344 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10345 replacing hex constants with function names and stripping leading
10346 file name directory prefixes.
10348 2003-01-08 Andrew Cagney <cagney@redhat.com>
10350 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10353 2003-01-08 David Carlton <carlton@math.stanford.edu>
10355 * linespec.c (decode_line_1): Move code into decode_variable.
10356 (decode_variable): New function.
10358 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10360 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10362 2003-01-08 Andrew Cagney <cagney@redhat.com>
10364 * cris-tdep.c (cris_frame_init_saved_regs): Use
10365 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10367 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10368 (sh64_nofp_frame_init_saved_regs): Ditto.
10369 (sh_fp_frame_init_saved_regs): Ditto.
10370 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10371 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10372 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10373 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10375 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10377 * minsyms.c (lookup_minimal_symbol): Update comment.
10378 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10379 (lookup_minimal_symbol_solib_trampoline): Likewise.
10381 2003-01-08 Andrew Cagney <cagney@redhat.com>
10383 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10384 frame_relative_level.
10386 * alpha-tdep.c: Use get_frame_extra_info.
10387 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10388 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10389 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10390 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10392 * alpha-tdep.c: Use get_next_frame.
10393 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10394 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10395 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10396 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10397 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10398 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10399 * xstormy16-tdep.c: Ditto.
10401 2003-01-07 Andrew Cagney <cagney@redhat.com>
10403 * alpha-tdep.c: Use get_frame_base.
10404 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10405 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10406 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10407 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10408 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10409 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10410 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10411 * config/sparc/tm-sparc.h: Ditto.
10413 2003-01-07 Andrew Cagney <cagney@redhat.com>
10415 * frame.c (deprecated_get_frame_context): New function.
10416 (deprecated_set_frame_context): New function.
10417 * frame.h (deprecated_get_frame_context): Declare.
10418 (deprecated_set_frame_context): Declare.
10419 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10420 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10422 2003-01-07 Andrew Cagney <cagney@redhat.com>
10424 * frame.c (deprecated_set_frame_next_hack): New function.
10425 (deprecated_set_frame_prev_hack): New function.
10426 * frame.h (deprecated_set_frame_next_hack): Declare.
10427 (deprecated_set_frame_prev_hack): Declare.
10428 * mcore-tdep.c (analyze_dummy_frame): Use
10429 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10430 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10432 2003-01-07 David Carlton <carlton@math.stanford.edu>
10434 * linespec.c (decode_line_1): Move code into decode_dollar.
10435 (decode_dollar): New function.
10437 2003-01-07 Andrew Cagney <cagney@redhat.com>
10439 * arm-tdep.c (arm_init_extra_frame_info): Use
10440 deprecated_update_frame_base_hack.
10441 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10442 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10443 (fix_frame_pointer): Ditto.
10444 (mn10300_analyze_prologue): Ditto.
10446 2003-01-07 Andrew Cagney <cagney@redhat.com>
10448 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10449 extra_info using frame_extra_info_zalloc.
10450 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10451 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10452 (sh64_init_extra_frame_info): Ditto.
10453 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10454 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10455 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10456 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10457 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10458 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10459 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10460 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10461 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10462 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10463 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10464 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10466 * mn10300-tdep.c (analyze_dummy_frame): Use
10467 deprecated_set_frame_extra_info_hack.
10468 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10470 2003-01-07 J. Brobecker <brobecker@gnat.com>
10472 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10473 class is not scText. These do not define "real" procedures.
10474 (parse_partial_symbols): Likewise.
10476 2003-01-06 Michael Snyder <msnyder@redhat.com>
10478 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10480 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10482 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10483 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10484 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10485 deprecated_frame_xmalloc_with_cleanup.
10486 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10487 deprecated_frame_xmalloc.
10488 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10489 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10491 2003-01-06 Andrew Cagney <cagney@redhat.com>
10493 * x86-64-linux-tdep.c: Include "osabi.h".
10494 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10496 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10498 2003-01-06 Andrew Cagney <cagney@redhat.com>
10500 * MAINTAINERS (Target Instruction Set Architectures): Update
10501 arm-elf. Can be built with -Werror, has been multiarched.
10503 * value.h (unpack_long): Make buffer parameter constant.
10504 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10505 * scm-lang.h (scm_parse): Ditto.
10506 * defs.h (extract_typed_address, extract_address): Ditto.
10507 (extract_long_unsigned_integer): Ditto.
10508 * inferior.h (unsigned_pointer_to_address): Ditto.
10509 (signed_pointer_to_address): Ditto.
10510 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10511 * gdbarch.h, gdbarch.c: Regenerate.
10512 * findvar.c (extract_long_unsigned_integer): Update.
10513 (extract_address): Update.
10514 (extract_typed_address): Update.
10515 (unsigned_pointer_to_address): Update.
10516 * values.c (unpack_long): Update.
10517 (unpack_double): Update.
10518 (unpack_pointer): Update.
10519 (unpack_field_as_long): Update.
10520 * d10v-tdep.c (d10v_pointer_to_address): Update.
10521 * avr-tdep.c (avr_pointer_to_address): Update.
10522 * scm-lang.c (scm_unpack): Update.
10523 * findvar.c (signed_pointer_to_address): Update.
10525 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10527 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10528 since it is in i386-tdep.c.
10530 2003-01-06 J. Brobecker <brobecker@gnat.com>
10532 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10533 failure introduced in the previous change.
10535 2003-01-05 Michael Chastain <mec@shout.net>
10537 * README: Remove references to deleted remote-*.c files:
10538 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10539 remote-nrom.c, remote-os9k.c, remote-udi.c.
10541 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10543 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10544 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10545 i386_get_longjmp_target.
10547 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10549 * arm-tdep.c (prologue_cache): Change to a pointer.
10550 (_initialize_arm_tdep): Allocate prologue_cache.
10551 (check_prologue_cache): Update.
10552 (save_prologue_cache): Update.
10553 (arm_gdbarch_init): Update.
10555 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10557 * stabsread.c (update_method_name_from_physname): Call complaint()
10560 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10562 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10563 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10564 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10566 * blockframe.c: Include "gdbcmd.h" and "command.h".
10567 (backtrace_below_main): New variable.
10568 (file_frame_chain_valid, func_frame_chain_valid)
10569 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10570 (generic_func_frame_chain_valid): Remove functions.
10571 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10572 (_initialize_blockframe): New function.
10573 * Makefile.in (blockframe.o): Update dependencies.
10574 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10575 comment. Call frame_chain_valid ().
10576 * frame.h: Remove old prototypes. Add prototype for
10577 frame_chain_valid and update comments to match.
10578 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10579 Remove old comment.
10580 * gdbarch.h: Regenerated.
10581 * gdbarch.c: Regenerated.
10583 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10584 set_gdbarch_frame_chain_valid.
10585 * avr-tdep.c (avr_gdbarch_init): Likewise.
10586 * cris-tdep.c (cris_gdbarch_init): Likewise.
10587 * frv-tdep.c (frv_gdbarch_init): Likewise.
10588 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10589 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10590 (i386_nw_init_abi): Likewise.
10591 (i386_gdbarch_init): Likewise.
10592 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10594 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10595 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10596 * mips-tdep.c (mips_gdbarch_init): Likewise.
10597 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10598 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10599 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10600 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10601 * s390-tdep.c (s390_gdbarch_init): Likewise.
10602 * sh-tdep.c (sh_gdbarch_init): Likewise.
10603 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10604 * v850-tdep.c (v850_gdbarch_init): Likewise.
10605 * vax-tdep.c (vax_gdbarch_init): Likewise.
10606 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10608 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10609 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10610 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10611 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10612 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10613 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10614 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10615 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10617 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10619 * Makefile.in (acconfig_h): Remove incorrect macro.
10620 (config_h): Define.
10621 (osabi.o): Update dependencies.
10622 * configure.tgt: Set gdb_osabi based on target triplet.
10623 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10624 * configure: Regenerated.
10625 * config.in: Regenerated.
10626 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10627 (GDB_OSABI_DEFAULT): Define if not already defined.
10628 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10629 (set_osabi_string): New variables.
10630 (gdbarch_register_osabi): Add new OS ABI to
10631 gdb_osabi_available_names.
10632 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10633 (set_osabi, show_osabi): New functions.
10634 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10636 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10638 * arch-utils.c (gdbarch_info_init): Set osabi to
10639 GDB_OSABI_UNINITIALIZED.
10640 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10641 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10642 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10643 * gdbarch.c: Regenerated.
10644 * gdbarch.h: Regenerated.
10645 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10647 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10648 * osabi.h (enum gdb_osabi): Move to defs.h.
10649 (gdbarch_init_osabi): Update prototype.
10650 * defs.h (enum gdb_osabi): Moved here.
10651 * Makefile.in: Update dependencies.
10653 * alpha-tdep.h: Don't include "osabi.h".
10654 (struct gdbarch_tdep): Remove osabi member.
10655 * alpha-tdep.c: Include "osabi.h".
10656 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10657 iterate over arches. Update call to gdbarch_init_osabi.
10658 (alpha_dump_tdep): Don't dump osabi.
10659 * alpha-linux-tdep.c: Include "osabi.h".
10660 * alpha-osf1-tdep.c: Include "osabi.h".
10661 * alphafbsd-tdep.c: Include "osabi.h".
10662 * alphanbsd-tdep.c: Include "osabi.h".
10664 * arm-tdep.h: Don't include "osabi.h".
10665 (struct gdbarch_tdep): Remove osabi member.
10666 * arm-tdep.c: Include "osabi.h".
10667 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10668 iterate over arches. Update call to gdbarch_init_osabi.
10669 (arm_dump_tdep): Don't dump osabi.
10670 * arm-linux-tdep.c: Include "osabi.h".
10671 * armnbsd-tdep.c: Include "osabi.h".
10673 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10674 Update call to gdbarch_init_osabi.
10676 * i386-tdep.h: Don't include "osabi.h".
10677 (struct gdbarch_tdep): Remove osabi member.
10678 * i386-tdep.c: Include "osabi.h".
10679 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10680 iterate over arches. Update call to gdbarch_init_osabi.
10681 (i386_dump_tdep): Don't dump osabi.
10682 * i386-linux-tdep.c: Include "osabi.h".
10683 * i386-sol2-tdep.c: Include "osabi.h".
10684 * i386bsd-tdep.c: Include "osabi.h".
10685 * i386gnu-tdep.c: Include "osabi.h".
10686 * i386ly-tdep.c: Include "osabi.h".
10687 * i386nbsd-tdep.c: Include "osabi.h".
10688 * i386obsd-tdep.c: Include "osabi.h".
10690 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10691 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10692 check osabi when iterating over arches. Update call to
10693 gdbarch_init_osabi.
10694 (mips_dump_tdep): Don't dump osabi.
10696 * ns32k-tdep.h: Don't include "osabi.h".
10697 (struct gdbarch_tdep): Remove.
10698 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10699 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10700 allocate tdep. Update call to gdbarch_init_osabi.
10701 (ns32k_dump_tdep): Remove.
10702 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10703 * ns32knbsd-tdep.c: Include "osabi.h".
10705 * ppc-tdep.h: Don't include "osabi.h".
10706 (struct gdbarch_tdep): Remove osabi member.
10707 * rs6000-tdep.c: Include "osabi.h".
10708 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10709 osabi when iterating over arches. Update call to
10710 gdbarch_init_osabi.
10711 (rs6000_dump_tdep): Don't dump osabi.
10712 * ppc-linux-tdep.c: Include "osabi.h".
10713 * ppcnbsd-tdep.c: Include "osabi.h".
10715 * sh-tdep.h: Don't include "osabi.h".
10716 (struct gdbarch_tdep): Remove osabi member.
10717 * sh-tdep.c: Include "osabi.h".
10718 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10719 iterate over arches. Update call to gdbarch_init_osabi.
10720 (sh_dump_tdep): Don't dump osabi.
10721 * shnbsd-tdep.c: Include "osabi.h".
10723 * sparc-tdep.c: Include "osabi.h".
10724 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10725 iterate over arches. Update call to gdbarch_init_osabi.
10726 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10729 * vax-tdep.h: Don't include "osabi.h".
10730 (struct gdbarch_tdep): Remove.
10731 * vax-tdep.c: Include "osabi.h".
10732 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10733 iterate over arches. Don't allocate tdep. Update call
10734 to gdbarch_init_osabi.
10735 (vax_dump_tdep): Remove.
10736 (_initialize_vax_tdep): Update call to gdbarch_register.
10738 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10740 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10742 (breakpoint_re_set_one): Don't fetch the value for a disabled
10745 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10747 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10748 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10749 (COERCE_FLOAT_TO_DOUBLE): Remove.
10750 * gdbarch.c: Regenerate.
10751 * gdbarch.h: Regenerate.
10752 * Makefile.in: Remove value_h from gdbarch_h.
10753 * valops.c (coerce_float_to_double): New variable.
10754 (default_coerce_float_to_double): Remove.
10755 (standard_coerce_float_to_double): Remove.
10756 (value_arg_coerce): Use coerce_float_to_double.
10757 (_initialize_valops): Add "set coerce-float-to-double".
10758 * value.h (default_coerce_float_to_double): Remove prototype.
10759 (standard_coerce_float_to_double): Remove prototype.
10761 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10763 * mdebugread.c (parse_symbol): Likewise.
10764 * stabsread.c (define_symbol): Mark all functions as prototyped.
10766 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10767 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10768 set_gdbarch_coerce_float_to_double.
10769 * arm-tdep.c (arm_gdbarch_init): Likewise.
10770 * frv-tdep.c (frv_gdbarch_init): Likewise.
10771 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10772 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10773 * mips-tdep.c (mips_gdbarch_init): Likewise.
10774 (mips_coerce_float_to_double): Remove.
10775 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10776 (rs6000_coerce_float_to_double): Remove.
10777 * s390-tdep.c (s390_gdbarch_init): Likewise.
10778 * sh-tdep.c (sh_gdbarch_init): Likewise.
10779 (sh_coerce_float_to_double): Remove.
10780 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10781 (sparc_coerce_float_to_double): Remove.
10782 * v850-tdep.c (v850_gdbarch_init): Likewise.
10783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10784 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10785 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10786 (hppa_coerce_float_to_double): Remove prototype.
10787 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10789 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10791 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10793 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10795 Suggested by Stewart Brown <sb24@avaya.com>:
10796 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10797 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10798 (c_type_print_varspec_suffix): Likewise.
10800 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10802 * configure.in: Don't set and AC_SUBST SUBDIRS.
10803 * configure: Regenerated.
10805 * configure.in: Remove code dealing with shared libraries.
10806 * Makefile.in: Remove HLDFLAGS and HLDENV.
10807 * configure: Regenerated.
10809 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10811 * frame.c (deprecated_frame_xmalloc): New function.
10812 (deprecated_set_frame_saved_regs_hack): New function.
10813 (deprecated_set_frame_extra_info_hack): New function.
10814 * frame.h (deprecated_frame_xmalloc): Declare.
10815 (deprecated_set_frame_saved_regs_hack): Declare.
10816 (deprecated_set_frame_extra_info_hack): Declare.
10818 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10820 * configure.in: Move code that provides the --enable-gdbtk option
10821 right after the code that handles the --enable-tui option, and
10822 polish it somewhat.
10823 * configure: Regenerated.
10825 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10826 AC_CHECK_FUNCS and remove the old check for pread64.
10827 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10828 * acconfig.h (_GNU_SOURCE): Add.
10829 (HAVE_PREAD64): Remove.
10830 * configure, aclocal.m4, config.in: Regenerated.
10832 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10834 * alpha-tdep.c: Use get_frame_saved_regs.
10835 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10836 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10837 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10838 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10839 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10841 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10843 * configure.in: Remove all use of the SUBDIRS variable; add
10844 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10845 code providing the --enable-multi-ice option, and move it right in
10846 front of the code that checks whether gdbserver is supported.
10848 * configure: Regenerated.
10849 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10852 2003-01-03 Andrew Cagney <cagney@redhat.com>
10854 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10855 * avr-tdep.c, cris-tdep.c: Ditto.
10856 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10857 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10859 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10861 * configure.in: Remove --enable-netrom option.
10862 * configure: Regenerated.
10864 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10866 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10867 declaration for `struct re_pattern_buffer' instead.
10868 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10870 2003-01-03 J. Brobecker <brobecker@gnat.com>
10872 * mdebugread.c (parse_symbol): Count until the stEnd matching
10873 the structure name.
10875 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10877 * configure.in: Remove --with-cpu option.
10878 subscripts. Remove evil changequotes here.
10879 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10880 * config.in, configure: Regenerated.
10882 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10883 * configure.in: Cleanup section that sources GDB and BFD configure
10884 subscripts. Remove evil changequotes here.
10885 * config.in, configure: Regenerated.
10887 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10889 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10890 frame accessor methods.
10891 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10892 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10893 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10894 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10895 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10896 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10897 * z8k-tdep.c: Ditto.
10899 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10901 * configure.in: Remove UI_OUT configuration code.
10902 * ada-lang.c: Update assuming UI_OUT is always true.
10903 * Makefile.in (UIOUT_CFLAGS): Remove.
10904 * configure: Regenerated.
10905 * TODO: Remove blurb about elimination of -DUI_OUT.
10907 * configure.in: Move code that provides the --enable-gdbcli,
10908 --enable-gdbmi options right before the code that handles the
10909 --enable-tui option. Polish a bit.
10910 * configure: Regenerated.
10912 * configure.in: Rewrite check for GNU regex and the
10913 --without-included regex option, and move it into the "Checks for
10914 library functions" section. This makes us use the system regex
10915 again by default on systems with version 2 of the GNU C library.
10916 This was apparently broken.
10917 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10918 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10919 * config.in, configure: Regenerated.
10921 * configure.in: Move code that provides the --enable-tui option
10922 before the "Checks for libraries" section. Polish the code
10923 somewhat and set need_curses to yes if we build the TUI. Rewrite
10924 code that looks for a library providing termcap functionality to
10925 match more closely what's done in the Readline library, and move
10926 it into to the "Checks for libraries" section.
10927 * configure: Regenerated.
10928 * Makefile.in (TERMCAP): Remove variable.
10929 * config/i386/go32.mh (TERMCAP): Remove variable.
10931 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10933 * MAINTAINERS: Mention gdb_mbuild.sh.
10934 * gdb_mbuild.sh: Rewrite.
10936 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10938 * configure.in: Fix typo in last change.
10939 * config.in, configure: Regenerated.
10941 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10943 * valarith.c (value_binop): Delete obsolete code and comments.
10944 * configure.host: Ditto.
10945 * buildsym.h (make_blockvector): Ditto.
10946 * buildsym.c (make_blockvector): Ditto.
10947 * defs.h (enum language): Ditto.
10948 (chill_demangle): Ditto.
10949 * elfread.c (elf_symtab_read): Ditto.
10950 * dwarfread.c (CHILL_PRODUCER): Ditto.
10951 (set_cu_language): Ditto.
10952 (handle_producer): Ditto.
10953 * expprint.c (print_subexp): Ditto.
10954 * gdbtypes.c (chill_varying_type): Ditto.
10955 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10956 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10957 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10958 (chill_varying_type): Ditto.
10959 * language.h (_LANG_chill): Ditto.
10960 * language.c (binop_result_type, integral_type): Ditto.
10961 (character_type, string_type, structured_type): Ditto.
10962 (lang_bool_type, binop_type_check): Ditto.
10963 * stabsread.h (os9k_stabs): Ditto.
10964 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10965 (define_symbol, read_type, read_struct_fields): Ditto.
10966 (read_array_type, read_enum_type, read_huge_number): Ditto.
10967 (read_range_type, start_stabs): Ditto.
10968 * symfile.c (init_filename_language_table): Ditto.
10969 (add_psymbol_with_dem_name_to_list): Ditto.
10970 * symtab.c (symbol_init_language_specific): Ditto.
10971 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10972 * symtab.h (struct general_symbol_info): Ditto.
10973 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10974 * typeprint.c (typedef_print): Ditto.
10975 * utils.c (fprintf_symbol_filtered): Ditto.
10976 * valops.c (value_cast, search_struct_field, value_slice): Delete
10978 (varying_to_slice): Delete function.
10979 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10980 (varying_to_slice): Delete declaration.
10981 * MAINTAINERS: Update.
10983 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10985 * configure.in: Reorganize "Checks for library functions section"
10986 a bit. Remove check for `btowc' and `isascii' functions.
10987 * configure: Regenerated.
10989 * acconfig.h (_MSE_INT_H): Remove.
10990 * configure.in: Create "Checks for header files" section, and move
10991 appropriate tests there. Don't check for objlist.h, wchar.h,
10992 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10993 misdetection fix. Also add "Checks for types", "Checks for
10994 compiler characteristics" and "Checks for library functions"
10996 * config.in, configure: Regenerated.
10998 * configure.in: Create "Checks for programs" section, and move
10999 appropriate tests there.
11001 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11003 * configure.in: Create "Checks for libraries" section, and move
11004 appropriate tests there. Cleanup check for wctype in libw. Use
11005 AC_SEARCH_LIBS to see whether we need libsocket.
11006 * configure: Regenerated.
11008 For older changes see ChangeLog-2002
11014 version-control: never