1 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
4 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
5 available before calling SECT_OFF_TEXT.
6 * PROBLEMS: Remove description of java/1322.
8 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
10 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
11 bof, and nat0-nat127 as pseudo-registers.
12 (ia64_frame_cache): New struct used to cache frame info.
13 (ia64_register_reggroup_p): New routine used to override default
14 register grouping so registers without names are still saved and
16 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
18 (ia64_pseudo_register_read): New routine to read pseudo-registers.
19 (ia64_pseudo_register_write): New routine to write pseudo-registers.
20 (ia64_alloc_frame_cache): New routine to create a new
22 (examine_prologue): Change prototype to add next_frame pointer.
23 Assume frameless until otherwise proven. Verify that the cfm for
24 current frame matches the cfm that should occur for the prologues
25 alloc insn and if equal, mark as not frameless. At end of routine,
26 if not frameless, calculate registers for the previous frame and store
27 in the cache, if a cache is provided.
28 (ia64_skip_prologue): Use new prototype when calling examine_prologue
29 and pass 0 for next_frame.
30 (ia64_store_return_value): Change to use convert_typed_floating()
31 instead of calling ia64_convert_to_raw().
32 (ia64_extract_return_value): Change to use convert_typed_floating()
33 instead of calling ia64_convert_to_virtual().
34 (ia64_frame_cache): New routine to support new frame model.
35 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
36 (ia64_frame_sniffer): Ditto.
37 (ia64_sigtramp_frame_init_saved_regs): Ditto.
38 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
39 (ia64_sigtramp_frame_prev_register): Ditto.
40 (ia64_sigtramp_frame_sniffer): Ditto.
41 (ia64_frame_base_address): Ditto.
42 (ia64_extract_struct_value_address): Change to issue error message.
43 (ia64_frame_align): New routine to align sp.
44 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
45 (ia64_push_arguments): Removed. Logic moved to
46 ia64_push_dummy_call().
47 (ia64_push_return_address): Ditto.
48 (ia64_unwind_dummy_id): New function.
49 (ia64_unwind_pc): Ditto.
50 (ia64_convert_register_p): Ditto.
51 (ia64_register_to_value): Ditto.
52 (ia64_value_to_register): Ditto.
53 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
54 (ia64_register_byte, ia64_register_raw_size): Ditto.
55 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
56 (ia64_saved_pc_after_call): Ditto.
57 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
58 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
59 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
60 (ia64_register_convert_to_raw): Ditto.
61 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
62 (ia64_init_extra_frame_info): Ditto.
63 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
64 (ia64_gdbarch_init): Remove registering of deprecated functions that
65 are no longer used. Add registration of new gdbarch functions.
66 Remove registering deprecated_write_sp. Replace
67 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
68 Delete set_gdbarch_deprecated_register_convertible(),
69 set_gdbarch_deprecated_register_convert_to_virtual(), and
70 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
71 set_gdbarch_deprecated_register_size(),
72 set_gdbarch_deprecated_register_bytes(),
73 set_gdbarch_pcregnum(),
74 set_gdbarch_deprecated_register_byte(),
75 set_gdbarch_deprecated_register_raw_size(),
76 set_gdbarch_deprecated_max_register_raw_size(),
77 set_gdbarch_deprecated_register_virtual_size(),
78 and set_gdbarch_deprecated_max_register_virtual_size() calls.
79 Replace set_gdbarch_deprecated_extract_return_value() with
80 set_gdbarch_extract_return_value(). Remove calls to:
81 set_gdbarch_deprecated_saved_pc_after_call();
82 set_gdbarch_deprecated_frame_chain(),
83 set_gdbarch_deprecated_frame_saved_pc(),
84 set_gdbarch_deprecated_frame_init_saved_regs(),
85 set_gdbarch_deprecated_get_saved_register(),
86 set_gdbarch_deprecated_call_dummy_words(),
87 set_gdbarch_deprecated_sizeof_call_dummy_words(),
88 set_gdbarch_deprecated_init_extra_frame_info(),
89 set_gdbarch_deprecated_frame_args_address(),
90 set_gdbarch_deprecated_frame_locals_address(),
91 and set_gdbarch_deprecated_dummy_write_sp().
92 Add set_gdbarch_convert_register_p(),
93 set_gdbarch_register_to_value(),
94 set_gdbarch_value_to_register(),
95 set_gdbarch_push_dummy_call(),
96 set_gdbarch_frame_align(),
97 set_gdbarch_unwind_dummy_id(),
98 set_gdbarch_unwind_pc(),
99 frame_unwind_append_sniffer(),
100 frame_unwind_append_sniffer(),
101 and frame_base_set_default().
103 2003-08-25 Chris Demetriou <cgd@broadcom.com>
105 * configure.tgt: Document need for special "mipsisa64" handling.
106 (mipsisa64*-*-linux64): Handle as target linux64.
107 (mipsisa64*-*-*): Handle as target embed64.
109 2003-08-18 Michael Chastain <mec@shout.net>
111 * PROBLEMS: Document pr gdb/1322, the Java anonymous
114 2003-08-24 Mark Kettenis <kettenis@gnu.org>
116 * i387-tdep.h: Update copyright date.
117 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
119 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
120 CFLAGS games to reflect reality.
122 2003-08-24 Andrew Cagney <cagney@redhat.com>
124 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
125 GDB_MULTI_ARCH is always non-zero.
126 * osabi.c (_initialize_gdb_osabi): Ditto.
127 (gdbarch_init_osabi): Ditto.
128 * sparc-tdep.c: Ditto for #if code.
130 2003-08-23 Mark Kettenis <kettenis@gnu.org>
132 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
134 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
136 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
137 x86_64_supply_fxsave.
138 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
139 x86_64_supply_fxsave.
140 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
141 x86_64_supply_fxsave.
143 2003-08-23 Andreas Jaeger <aj@suse.de>
145 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
148 2003-08-23 Mark Kettenis <kettenis@gnu.org>
150 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
151 i387_supply_register.
152 (go32_fetch_registers): Adjust call to i387_supply_fsave.
153 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
155 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
157 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
159 * i386bsd-nat.c (supply_fpregset): Adjust call to
161 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
162 call to i387_supply_fxsave. Call i387_supply_fsave instead of
164 (store_inferior_registers): Remove extraneous whitespace. Call
165 i387_fill_fsave instead of fill_fpregset.
166 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
167 (supply_fpregset): Likewise.
168 * i386v4-nat.c (supply_fpregset): Adjust call to
170 * i386-interix-nat.c (supply_fpregset): Adjust call to
172 * i386-linux-nat.c (supply_fpregset): Adjust call to
174 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
175 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
176 i387supply_fsave and i387_supply_fxsave.
177 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
178 Incorporate code from `i387_supply_register.
179 (i387_supply_register): Remove.
180 (i387_supply_fxsave): Add `regnum' argument.
182 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
184 (i387_supply_register): remove prototype.
187 2003-08-22 Michael Chastain <mec@shout.net>
189 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
190 Add lines for files in gdb/testsuite/gdb.cp/* that are
191 still not 8.3 unique.
193 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
195 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
196 TYPE_VPTR_FIELDNO is valid.
198 2003-08-19 Mark Kettenis <kettenis@gnu.org>
200 * utils.c (set_width_command): Remove prototypes.
201 (set_screen_size): New prototype.
202 (init_page_info): Simplify by fetching the screen size from
203 Readline. Call set_screen_size.
204 (set_screen_size): New function.
205 (set_width): Add missing whitespace in comment.
206 (set_width_command): Call set_screen_size.
207 (set_height_command): New function.
208 (initialize_utils): Fix formatting. Make "set height" command
209 call set_height_command. Remove redundant code that turns off
210 pagination if output isn't a terminal. Remove redundant call to
213 2003-08-22 Mark Kettenis <kettenis@gnu.org>
215 * sparc64-tdep.h (sparc64_regnum): Fix comment.
216 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
217 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
218 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
220 (sparc64_register_info): Give the reister with number
221 SPARC64_STATE_REGNUM a name.
222 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
224 (sparc64_push_dummy_call): Take BIAS into account when checking
226 (sparc_software_single_step): Remove assertions that check whether
227 NPC and NNPC were zero.
228 (sparc_supply_rwindow): Make public. Merge functionality with
229 sparc64_supply_rwindow.
230 (sparc_fill_rwindow): Make public. Merge functionality with
231 sparc64_fill_rwindow.
232 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
233 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
234 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
235 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
236 sparc_supply_rwindow instead of sparc64_supply_rwindow.
238 * reggroups.c: Add whitespace after declarations of local
239 variables in functions.
241 2003-08-21 Michael Chastain <mec@shout.net>
243 * gdbtypes.h: Change array bound type from an int to enum.
245 2003-08-21 Andrew Cagney <cagney@redhat.com>
247 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
248 * config/sparc/tm-sparc.h: Ditto.
249 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
251 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
253 2003-07-13 Mark Kettenis <kettenis@gnu.org>
255 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
256 (register_objfile_data, set_objfile_data, objfile_data): New
258 * objfiles.c (objfile_alloc_data, objfile_free_data): New
260 (allocate_objfile): Call objfile_alloc_data.
261 (free_objfile): Call objfile_free_data.
262 (struct objfile_data): New.
263 (struct objfile_data_registration): New.
264 (struct objfile_data_registry): New.
265 (objfile_data_registry): New variable.
266 (register_objfile_data): New function.
267 (objfile_alloc_data, objfile_free_data): New functions.
268 (set_objfile_data, objfile_data): New functions.
269 * dwarf2-frame.c (dwarf2_frame_data): New variable.
270 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
271 (_initialize_dwarf2_frame): New function and prototype.
273 2003-08-21 Andrew Cagney <cagney@redhat.com>
275 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
276 a specific architecture.
277 * arch-utils.h (set_architecture_from_arch_mach): Delete
279 (target_architecture_hook): Delete declaration.
280 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
281 (default_float_format): Assume GDB_MULTI_ARCH.
282 (default_double_format): Assume GDB_MULTI_ARCH.
283 (set_endian_from_file): Delete function.
284 (arch_ok): Delete function.
285 (set_arch): Delete function.
286 (set_architecture_from_arch_mach): Delete function.
287 (set_architecture_from_file): Delete function.
288 (set_architecture): Assume GDB_MULTI_ARCH.
289 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
291 2003-08-21 Mark Kettenis <kettenis@gnu.org>
293 Rewrite FreeBSD/sparc64 native configuration.
294 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
295 * sparc64fbsd-nat.c: New file.
296 * sparc64fbsd-tdep.c: New file.
297 * sparc64-tdep.c sparc64-tdep.h: New files.
298 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
299 sparc64fbsd-tdep.o): New dependencies.
300 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
301 and sparc64fbsd-tdep.c.
302 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
303 * config/sparc/fbsd.mh: Remove copyright notice.
304 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
306 * config/sparc/fbsd.mt: Remove copyright notice.
307 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
308 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
309 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
310 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
311 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
312 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
313 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
314 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
316 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
317 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
319 2003-08-21 Michael Chastain <mec@shout.net>
321 * symtab.h: Add doco on the space critical structures and
322 some measurements of space usage.
324 2003-08-21 Michael Snyder <msnyder@redhat.com>
326 * tracepoint.c (trace_dump_command): Trace break address
327 is subject to DECR_PC_AFTER_BREAK.
328 (set_traceframe_context): Make "trace_line" an int.
329 Fixes suggested by Mark Newman <mark.newman@lmco.com>
331 2003-08-20 Michael Snyder <msnyder@redhat.com>
333 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
334 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
335 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
337 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
338 functions, replace sh_push_dummy_call.
339 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
341 2003-08-20 Michael Chastain <mec@shout.net>
343 * gdbtypes.h (struct main_type): Rearrange to save space.
345 2003-08-20 Michael Snyder <msnyder@redhat.com>
347 * trad-frame.c: Comment typo fix.
349 2003-08-20 Michael Snyder <msnyder@redhat.com>
350 Kevin Buettner <kevinb@redhat.com>
352 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
353 (frv_frame_init_saved_regs): Add declaration.
354 (frame_extra_info): Add new field ``saved_regs''.
355 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
356 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
357 Update frame related code.
358 (frv_extract_struct_value_address): Adjust formatting.
359 * Makefile.in (frv-tdep.o): Update dependencies.
360 * config/frv/tm-frv.h (target_insert_watchpoint)
361 (target_remove_watchpoint, target_insert_hw_breakpoint)
362 (target_remove_hw_breakpoint): Delete these macros.
363 (remote_insert_watchpoint, remote_remove_watchpoint)
364 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
367 2003-08-20 Michael Chastain <mec@shout.net>
369 * defs.h (ENUM_BITFIELD): New macro.
370 * symtab.h (ENUM_BITFIELD): Use it.
371 (BYTE_BITFIELD): Remove old macro, which was already disabled.
373 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
375 * MAINTAINERS (write after approval): Add myself.
377 2003-08-18 Andrew Cagney <cagney@redhat.com>
379 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
380 * gdbarch.h, gdbarch.c: Re-generate.
381 * infcall.c (call_function_by_hand): Adjust the SP by
382 frame_red_zone_size before allocating any stack space.
383 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
384 * x86-64-tdep.c (x86_64_frame_align): New function.
385 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
387 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
388 Remove code adjusting SP so that it skips over the Red Zone.
390 2003-08-18 Mark Kettenis <kettenis@gnu.org>
392 * NEWS (New native configurations): Mention FreeBSD/amd64.
394 2003-08-18 Andrew Cagney <cagney@redhat.com>
396 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
397 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
399 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
401 2003-08-18 Mark Kettenis <kettenis@gnu.org>
403 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
405 2003-08-18 Michal Ludvig <mludvig@suse.cz>
407 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
409 * i386-linux-nat.c: Include "linux-nat.h".
410 (child_post_startup_inferior): New function.
412 2003-08-18 Mark Kettenis <kettenis@gnu.org>
414 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
415 at the start of a frameless function. This probably fixes PR
418 2003-08-17 Michael Chastain <mec@shout.net>
420 * symfile.c (find_sym_fns): Remove special case for apollo target.
422 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
424 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
425 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
426 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
427 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
428 (linux_supports_tracevforkdone): New function.
429 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
431 (child_follow_fork): Handle vfork.
432 (linux_handle_extended_wait): Likewise. Also handle exec.
433 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
434 * NEWS: Mention fork tracing.
436 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
438 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
440 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
442 * Makefile.in (i386-linux-nat.o): Update dependencies.
443 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
444 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
445 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
446 * i386-linux-nat.c: Include "linux-nat.h".
447 (child_post_startup_inferior): New function.
448 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
449 * infptrace.c (kill_inferior): Wrap in #ifdef.
450 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
451 attaching to each LWP.
452 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
453 (init_lin_lwp_ops): Fill in some more operations.
454 * linux-nat.h (linux_enable_event_reporting)
455 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
457 * linux-nat.c (linux_enable_event_reporting): New function.
458 (child_post_attach, linux_child_post_startup_inferior)
459 (child_post_startup_inferior, child_follow_fork)
460 (linux_handle_extended_wait, kill_inferior): New functions.
462 2003-08-16 Andrew Cagney <cagney@redhat.com>
464 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
465 * gdbarch.h, gdbarch.c: Re-generate.
467 2003-08-16 Mark Kettenis <kettenis@gnu.org>
469 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
471 2003-08-16 Andrew Cagney <cagney@redhat.com>
473 * NEWS: Mention that "set prompt-escape-char" was deleted.
474 * top.c (get_prompt_1): Delete function.
476 (init_main): Do not clear "gdb_prompt_escape". Delete "set
477 prompt-escape-char" command.
478 (MAX_PROMPT_SIZE): Delete macro.
479 (get_prompt): Simplify, do not call get_prompt_1.
481 2003-08-16 Andrew Cagney <cagney@redhat.com>
483 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
484 -Werror. -Wformat-nonliteral problems.
486 2003-08-15 J. Brobecker <brobecker@gnat.com>
488 Further multiarching work mostly for hppa64-*-hpux11:
489 * hppa-tdep.h: New file.
490 * hppa-tdep.c: #include hppa-tdep.c.
491 (hppa32_num_regs): Renamed from hppa_num_regs.
492 (hppa64_num_regs): New constant.
493 (hppa64_call_dummy_breakpoint_offset): New constant.
494 (hppa32_call_dummy_length): New constant.
495 (hppa64_call_dummy_length): New constant.
496 (hppa32_stack_align): Make name 32bit explicit.
497 (hppa32_register_virtual_type): Likewise.
498 (hppa32_extract_return_value): Likewise.
499 (hppa32_use_struct_convention): Likewise.
500 (hppa32_store_return_value): Likewise.
501 (hppa64_register_virtual_type): New function.
502 (hppa64_extract_return_value): New function.
503 (hppa64_use_struct_convention): New function.
504 (hppa64_store_return_value): New function.
505 (hppa_frame_locals_address): Remove declaration, function does
507 (hppa_register_byte): Add support for PA64 ABI.
508 (hppa_gdbarch_init): Add support for PA64 ABI.
509 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
510 Make name 32bit explicit.
511 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
512 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
513 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
514 (hppa64_hpux_frame_base_before_sigtramp): New function.
515 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
516 * config/pa/tm-hppa64.h: Remove macros that are no longer
517 necessary now that the gdbarch vector is properly setup.
518 Transform some macros into function calls. Some minor cleanup.
519 * config/pa/tm-hppah.h: Update function calls in macros
520 following the function renaming in hppa-hpux-tdep.c.
521 * Makefile.in (hppa_tdep_h): New variable.
522 (hppa-tdep.o): Add dependency over hppa_tdep_h.
524 2003-08-14 Michael Snyder <msnyder@redhat.com>
526 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
528 2003-08-13 J. Brobecker <brobecker@gnat.com>
530 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
531 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
534 2003-08-13 Michael Snyder <msnyder@redhat.com>
536 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
537 (frv_saved_pc_after_call): Use deprecated ftype.
538 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
539 (frv_remote_translate_xfer_address): Remove.
540 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
542 2003-08-13 J. Brobecker <brobecker@gnat.com>
544 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
545 initialization after the common gdbarch initialization, not before.
547 2003-08-13 J. Brobecker <brobecker@gnat.com>
549 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
550 (ADDR_BITS_REMOVE): Remove, redundant.
552 2003-08-13 J. Brobecker <brobecker@gnat.com>
554 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
555 gdbarch method to clear the 2 low bits of text addresses.
557 2003-08-12 Andrew Cagney <cagney@redhat.com>
559 * Makefile.in (dsrec.o): Update dependencies.
560 * dsrec.c: Include "gdb_assert.h".
561 (make_srec): Use snprintf instead of sprintf, use a literal format
564 2003-08-12 Andrew Cagney <cagney@redhat.com>
566 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
567 FRAME_OBSTACK_ZALLOC.
569 2003-08-12 Kevin Buettner <kevinb@redhat.com>
571 * i386-tdep.c (i386_gdbarch_init): Enable default support for
574 2003-08-10 Mark Kettenis <kettenis@gnu.org>
576 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
577 amd64fbsd_sc_reg_offset): Add extern declarations.
578 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
581 2003-08-11 Ben Elliston <bje@wasabisystems.com>
583 * MAINTAINERS (write after approval): Update my mail address.
585 2003-08-10 Andrew Cagney <cagney@redhat.com>
587 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
589 2003-08-10 Mark Kettenis <kettenis@gnu.org>
591 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
592 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
593 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
594 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
595 i386bsd_sc_reg_offset): Add extern declarations.
596 * i386obsd-nat.c: Include "i386-tdep.h"
597 (_initialize_i386obsd_nat): Remove extern declarations.
598 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
600 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
603 * i386-tdep.c (i386_register_to_value): Use get_frame_register
604 instead of frame_read_register.
605 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
606 instead of frame_read_register. Use I386_ESP_REGNUM instead of
608 (i386_frame_prev_register): Use frame_unwind_register_unsigned
609 instead of frame_unwind_unsigned_register. Use
610 I386_EFLAGS_REGISTER instead of PS_REGNUM.
611 (i386_get_longjmp_target): Use regcache_read_unsigned_register
612 instead of read_register. Use builtin_type_void_data_ptr instead
613 of builtin_type_void_func_ptr when extracting the address of the
615 (i386_extract_return_value, i386_store_return_value,
616 i386_pseudo_register_read, i386_pseudo_register_write): Use
617 register_size instead REGISTER_RAW_SIZE.
619 2003-08-10 Andrew Cagney <cagney@redhat.com>
621 * infcall.c (call_function_by_hand): Use xstrprintf instead of
622 sprintf. Make "name" constant.
624 2003-08-10 Mark Kettenis <kettenis@gnu.org>
626 * i387-tdep.c (i387_register_to_value): Use get_frame_register
627 instead of frame_read_register.
628 (i387_print_float_info): Use get_frame_register and
629 get_frame_register_unsigned instead of frame_register_read.
631 * i386fbsd-nat.c: Include "i386-tdep.h".
632 (child_resume): Make `eflags' an ULONGEST. Use
633 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
634 instead of register_read and register_write.
636 * i386bsd-nat.c (fetch_inferior_registers,
637 store_inferior_registers): Don't use && at the end of a line.
638 (_initialize_i386bsd_nat): Fix typo.
640 * frame.c (_initialize_frame): Add missing backslash.
642 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
643 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
644 and supply_register instead of manipulating the register buffer
647 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
648 * config/i386/nm-i386sol2.h
649 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
651 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
652 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
653 instructions that GCC likes to mingle into the prologue. Fixes
654 gdb/1253 and gdb/1255.
656 2003-08-09 Andrew Cagney <cagney@redhat.com>
659 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
660 * command.h (add_setshow_uinteger_cmd): Declare.
661 * frame.c (set_backtrace_cmd): New function.
662 (show_backtrace_cmd): New function.
663 * frame.c (_initialize_frame): Replace "set/show
664 backtrace-below-main" with "set/show backtrace past-main". Add
665 command "set/show backtrace limit".
666 (backtrace_past_main): Rename "backtrace_below_main".
667 (backtrace_limit): New variable.
668 (get_prev_frame): Update. Check the backtrace_limit.
670 2003-08-09 Andrew Cagney <cagney@redhat.com>
672 * defs.h (xstrprintf): Declare.
673 * utils.c (xstrprintf): New function.
674 * breakpoint.c (insert_breakpoints): Replace sprintf and
675 non-literal format strings, with xstrprintf and cleanups.
676 (delete_breakpoint,breakpoint_re_set): Ditto.
677 (commands_command, insert_breakpoints): Ditto.
678 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
679 (break_at_finish_command_1): Ditto.
681 2003-08-09 Andrew Cagney <cagney@redhat.com>
683 * MAINTAINERS (language support): List Adam Fedor as Objective C
686 2003-08-08 J. Brobecker <brobecker@gnat.com>
688 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
691 2003-08-08 J. Brobecker <brobecker@gnat.com>
693 * config/pa/tm-hppa64.h: Remove lots of macros that are no
694 longer necessary now that hppa64 is partially multiarch'ed.
696 2003-08-08 Andrew Cagney <cagney@redhat.com>
698 * interps.c (interp_set): Check for a NULL "old_interp".
700 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
702 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
703 (install-only): Support DESTDIR.
704 (uninstall): Likewise.
705 (install-gdbtk): Likewise.
707 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
709 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
710 contains something meaningful at all times.
712 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
714 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
716 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
718 * MAINTAINERS (write after approval): Added self.
720 2003-08-07 Andrew Cagney <cagney@redhat.com>
722 * inferior.h (AT_SYMBOL): Define.
723 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
724 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
725 * mips-tdep.c (mips_call_dummy_address): Delete function.
726 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
727 set call_dummy_address.
729 2003-08-07 Andrew Cagney <cagney@redhat.com>
731 * language.c (op_error): Delete function.
732 (binop_type_check): Delete function.
733 * language.h (type_op_error, range_op_error): Delete macros.
734 (op_error): Delete declaration.
736 2003-08-07 Andrew Cagney <cagney@redhat.com>
738 * interps.h (INTERP_MI2, INTERP_MI3): Define.
740 2003-08-07 Michal Ludvig <mludvig@suse.cz>
742 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
743 (x86_64_push_arguments): Skip the red zone.
745 2003-08-05 Andrew Cagney <cagney@redhat.com>
747 * reggroups.c (reggroup_next): Check for the final entry.
749 2003-08-04 Andrew Cagney <cagney@redhat.com>
751 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
752 * cli/cli-script.c (define_command): Call query directly, instead
753 of passing it a buffer.
754 * ocd.c (ocd_error): Pass error a constant format string.
755 * remote-mips.c (mips_error): Use fputs_filtered.
757 * solib-svr4.c (_initialize_svr4_solib): Update
758 register_gdbarch_data call.
759 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
761 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
762 (register_gdbarch_data): Delete "free" parameter. Update
764 * gdbarch.h, gdbarch.c: Re-generate.
765 * reggroups.c (_initialize_reggroup): Update.
766 * gnu-v3-abi.c (init_gnuv3_ops): Update.
767 * frame-base.c (_initialize_frame_base): Update.
768 * frame-unwind.c (_initialize_frame_unwind): Update.
769 * user-regs.c (_initialize_user_regs): Update.
770 * remote.c (_initialize_remote): Update.
771 * regcache.c (_initialize_regcache): Update.
773 * regcache.c (xfree_regcache_descr): Delete function.
774 (_initialize_regcache): Update call to register_gdbarch_data.
775 (init_regcache_descr, init_legacy_regcache_descr): Use
776 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
778 * remote.c (free_remote_state): Delete function.
779 (_initialize_remote): Update register_gdbarch_data.
780 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
781 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
783 2003-08-04 Andrew Cagney <cagney@redhat.com>
785 * reggroups.c (struct reggroup_el): Define.
786 (struct reggroups): Delete field "nr_group". Replace array
787 "group" with a "first" to "last" linked list.
788 (reggroups_init): Update. Allocate using gdbarch's obstack.
789 (reggroups_free): Delete function.
790 (add_group): Update. Add "el" parameter.
791 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
792 (default_groups): Update.
793 (reggroup_next): Replace reggroups.
794 (reggroups_dump): Update.
795 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
796 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
797 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
799 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
801 * Makefile.in (tui-interp.o): Update dependencies.
803 2003-08-04 David Carlton <carlton@kealia.com>
805 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
806 to internal_error call.
807 * source.c (forward_search_command): Add "%s" format argument.
808 (reverse_search_command): Ditto.
809 * top.c (quit_confirm): Ditto.
810 * cli/cli-setshow.c (do_setshow_command): Ditto.
811 * cp-valprint.c (cp_print_class_method): Replace
812 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
813 (cp_print_class_member): Ditto.
814 * event-top.c (command_line_handler): Ditto.
815 * linux-proc.c (linux_info_proc_cmd): Ditto.
816 * p-typeprint.c (pascal_type_print_base): Ditto.
817 * p-valprint.c (pascal_object_print_class_method): Ditto.
818 (pascal_object_print_class_member): Ditto.
819 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
820 * remote.c (remote_cisco_section_offsets): Ditto.
821 * top.c (command_line_input): Ditto.
822 * utils.c (vwarning,error_stream,quit): Ditto.
823 * valprint.c (print_floating,print_binary_chars)
824 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
826 2003-08-04 Andrew Cagney <cagney@redhat.com>
828 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
830 2003-08-02 Andrew Cagney <cagney@redhat.com>
832 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
833 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
836 2003-08-02 Andrew Cagney <cagney@redhat.com>
838 * Makefile.in: Update all dependencies and definitions.
840 2003-08-02 Adam Fedor <fedor@gnu.org>
842 * linespec.c (is_objc_method_format): New function
843 (decode_line_1, locate_first_half): Use it.
846 2003-08-01 Andrew Cagney <cagney@redhat.com>
848 * NEWS: Mention that m32r is multi-arch.
849 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
850 * configure.tgt: Recognize m32r-*-*.
851 * config/m32r/tm-m32r.h: Delete file.
852 * config/m32r/m32r.mt: New file.
853 * m32r-rom.c (m32r_upload_command): Use hostent only when
854 gethostname succeeds, in order to avoid a compilation
856 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
859 2003-08-01 Michael Snyder <msnyder@redhat.com>
861 * sh-tdep.c (sh_frame_align): New gdbarch method.
862 (sh_gdbarch_init): Set up frame_align method.
864 2003-07-31 Michael Snyder <msnyder@redhat.com>
866 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
867 which is already covered by the new frames infrastructure.
869 2003-07-31 Andrew Cagney <cagney@redhat.com>
871 * user-regs.c (struct user_reg): Add "next" link.
872 (struct user_regs): Replace "user" with "first" and "last" links.
873 (append_user_reg): Add pre-allocated "reg" parameter.
874 (builtin_user_regs): Provide initial value for "last".
875 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
876 (user_regs_init): Allocate memory from the gdbarch obstack.
877 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
878 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
880 (usernum_to_user_reg): New function.
881 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
882 (value_of_user_reg): Use usernum_to_user_reg.
883 (user_regs_free): Delete function.
884 (_initialize_user_regs): Update register_gdbarch_data call.
886 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
888 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
890 2003-07-30 Michael Snyder <msnyder@redhat.com>
892 * value.h (value_being_returned): Add a struct_addr argument.
893 * infcall.c (call_function_by_hand): Pass struct_addr to
894 value_being_returned.
895 * infcmd.c (print_return_value): Pass zero as struct_addr.
896 * values.c (value_being_returned): If struct_addr is passed,
897 use it instead of trying to recover it from the inferior.
899 2003-07-30 Kevin Buettner <kevinb@redhat.com>
901 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
902 the prologue analyzer won't need to attempt to extract the pc
903 value from the woefully incomplete dummy frame.
904 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
905 possible. Disable code which modifies the frame.
907 2003-07-28 Andrew Cagney <cagney@redhat.com>
909 * annotate.c (annotate_breakpoints_headers): Restrict annotation
911 (annotate_breakpoints_table, annotate_record): Ditto.
912 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
913 (annotate_field_name_end, annotate_field_value): Ditto.
914 (annotate_field_end, annotate_frame_source_begin): Ditto.
915 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
916 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
917 (annotate_frame_begin, annotate_frame_function_name): Ditto.
918 (annotate_frame_address_end, annotate_frame_address): Ditto.
919 (annotate_frame_args, annotate_frame_end): Ditto.
920 (annotate_frame_where, annotate_arg_begin): Ditto.
921 (annotate_arg_name_end, annotate_arg_value): Ditto.
922 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
923 (annotate_function_call, annotate_signal_name): Ditto.
924 (annotate_signal_string, annotate_signal_name_end): Ditto.
925 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
926 (annotate_value_begin, annotate_value_history_value): Ditto.
927 (annotate_value_history_end, annotate_value_end): Ditto.
928 (annotate_display_begin, annotate_display_number_end): Ditto.
929 (annotate_display_format, annotate_display_expression): Ditto.
930 (annotate_display_expression_end, annotate_display_value): Ditto.
931 (annotate_display_end, annotate_array_section_begin): Ditto.
932 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
933 (annotate_elt, annotate_array_section_end): Ditto.
935 2003-07-28 Andrew Cagney <cagney@redhat.com>
937 * regcache.c (struct regcache_descr): Update comments on
939 (init_legacy_regcache_descr): Don't set nr_raw_registers or
940 sizeof_raw_register_valid_p.
941 (init_regcache_descr): Set nr_raw_registers and
942 sizeof_raw_register_valid_p before calling
943 init_legacy_regcache_descr.
945 2003-07-28 Andrew Cagney <cagney@redhat.com>
947 * mips-tdep.c (print_gp_register_row): Print the GPR's register
950 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
952 * thread.c (info_threads_command): Use get_selected_frame ().
953 Check that there is at least one non-sentinel frame.
955 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
957 * m68hc11-tdep.c (struct frame_extra_info): Remove.
958 (m68hc11_pop_frame): Remove.
959 (m68hc11_frame_saved_pc): Remove.
960 (m68hc11_frame_chain): Remove.
961 (m68hc11_frame_init_saved_regs): Remove.
962 (m68hc11_init_extra_frame_info): Remove.
963 (m68hc11_store_struct_return): Remove.
964 (m68hc11_saved_pc_after_call): Remove.
966 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
968 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
969 frame unwind information.
970 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
971 and adapted for frame unwinding.
972 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
973 (m68hc11_unwind_pc): New function.
974 (m68hc11_frame_unwind_cache): New function to analyze frames.
975 (m68hc11_frame_this_id): New function to create new frame struct.
976 (m68hc11_frame_prev_register): New function to unwind a register from
978 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
979 (m68hc11_frame_p): New function for the above.
980 (m68hc11_frame_base_address): New function to return fp of frame.
981 (m68hc11_frame_args_address): Update for frame.
982 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
983 (m68hc11_unwind_sp): New function.
984 (m68hc11_unwind_dummy_id): New function.
985 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
988 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
990 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
991 (m68hc11_guess_from_prologue): Advance the pc and frame size only
992 when we are beyond the current pc.
994 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
996 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
997 from m68hc11_push_arguments.
998 (m68hc11_push_arguments): Remove.
999 (m68hc11_push_return_address): Remove.
1000 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1001 handlers; remove deprecated_extra_stack_alignment_needed.
1003 2003-07-27 Andrew Cagney <cagney@redhat.com>
1005 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1006 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1007 REAL_PC and not the pointer.
1008 * hppa-hpux-tdep.c: Include frame.h
1010 2003-07-27 Andrew Cagney <cagney@redhat.com>
1012 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1013 GDB_MULTI_ACH_PARTIAL.
1015 2003-07-27 Andrew Cagney <cagney@redhat.com>
1017 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1018 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1019 operator at start and not end of line.
1020 (decode_prologue): Ditto.
1021 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1022 frame_unwind_register_unsigned instead of
1023 frame_unwind_unsigned_register.
1024 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1026 (m32r_push_dummy_call): Use register_size instead of
1028 (m32r_frame_sniffer): Replace m32r_frame_p.
1029 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1030 * m32r-rom.c (report_transfer_performance): Delete extern
1032 (m32r_load, m32r_upload_command): Use print_transfer_performance
1033 instead of report_transfer_performance.
1034 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1035 / add_show_from_set.
1037 2003-07-26 Andrew Cagney <cagney@redhat.com>
1039 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1040 store_return_value and extract_struct_value_address.
1042 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1045 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1046 NULL, default to the section containing PC.
1048 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1050 * NEWS: Mention "regs" deprecated for m68hc11 too.
1052 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1053 (m68hc11_print_register): New function to print out one register.
1054 (m68hc11_print_registers_info): New function to print registers.
1055 (show_regs): Deprecate and use the above.
1056 (m68hc11_gdbarch_init): Install the print_registers_info.
1058 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1060 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1061 that we have a SIGTRAP before returning non-zero.
1063 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1064 Elena Zannoni <ezannoni@redhat.com>
1066 * linespec.c (decode_line_2): Avoid crash if
1067 find_function_start_sal() returns empty record.
1069 2003-07-23 Andreas Schwab <schwab@suse.de>
1071 * ia64-tdep.c (ia64_print_insn): New function.
1072 (ia64_gdbarch_init): Set print_insn to it.
1073 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1074 deprecated_tm_print_insn_info.
1076 2003-07-22 Michael Snyder <msnyder@redhat.com>
1078 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1079 handle 8-bit returns (long long).
1080 (h8300h_extract_return_value): Ditto.
1081 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1083 2003-07-22 Andrew Cagney <cagney@redhat.com>
1085 * gdbarch.c Include "gdb_obstack.h".
1086 (struct gdbarch): Add an "obstack".
1087 (alloc_gdbarch_data): Allocate the gdbarch data using
1088 GDBARCH_OBSTACK_CALLOC.
1089 (free_gdbarch_data): Delete function.
1090 (gdbarch_obstack_zalloc): New function.
1091 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1092 Assert that the architecture is not initialized.
1093 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1094 vector from the obstack.
1095 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1096 architecture obstack.
1097 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1098 (set_gdbarch_data): Assert that the data is not initialized.
1099 (struct gdbarch_data): Delete member "free".
1100 (register_gdbarch_data): Do not initialize "free".
1101 * gdbarch.h, gdbarch.c: Re-generate.
1103 2003-07-22 Andrew Cagney <cagney@redhat.com>
1105 * configure.in (build_warnings): Add -Wformat-nonliteral.
1106 * configure: Re-generate.
1108 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1110 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1112 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1114 * findvar.c (read_var_value): Remove case for thread local storage
1115 variables. It is now entirely handled by the dwarf2 location
1117 * printcmd.c (address_info): Ditto.
1118 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1120 (struct symbol): Remove objfile field, which was used by
1121 LOC_THREAD_LOCAL_STATIC only.
1122 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1123 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1124 usage of objfile pointer.
1125 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1126 thread local variables.
1127 Add include of objfiles.h.
1128 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1130 * Makefile.in (dwarf2loc.o): Update dependencies.
1132 2003-07-22 Andrew Cagney <cagney@redhat.com>
1134 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1136 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1137 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1138 (struct value): Add opaque declaration.
1139 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1141 2003-07-21 Andrew Cagney <cagney@redhat.com>
1143 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1144 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1146 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1148 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1149 regcache_cooked_read_unsigned instead of read_register.
1150 (m68hc11_saved_pc_after_call): Likewise.
1151 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1152 instead of write_register.
1153 (m68hc11_register_type): New function.
1154 (m68hc11_register_virtual_type): Remove.
1155 (m68hc11_store_return_value): Convert to use the regcache.
1156 (m68hc11_extract_struct_value_address): Likewise.
1157 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1158 m68hc11_register_type; undeprecate store_return_value and
1159 extract_struct_value_address.
1161 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1163 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1164 and translate to use regcache.
1165 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1167 2003-07-18 Andrew Cagney <cagney@redhat.com>
1169 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1170 * gdbarch.h, gdbarch.c: Re-generate.
1171 * i386-tdep.c (i386_gdbarch_init): Do not set
1172 DWARF2_BUILD_FRAME_INFO.
1173 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1175 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1176 DWARF2_BUILD_FRAME_INFO.
1178 2003-07-18 Andrew Cagney <cagney@redhat.com>
1180 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1181 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1183 2003-07-18 Andrew Cagney <cagney@redhat.com>
1185 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1186 frame_unwind_address_in_block, instead of frame_pc_unwind.
1187 (dwarf2_frame_cache): Ditto.
1189 2003-07-18 Andrew Cagney <cagney@redhat.com>
1191 * user-regs.h (struct gdbarch): Declare opaque.
1192 * ui-out.h (struct ui_file): Declare opaque.
1193 * dwarf2-frame.h (struct frame_info): Declare opaque.
1195 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1197 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1199 (procfs_meminfo): Change strerror to safe_strerror.
1200 (procfs_can_run): Remove K&R badness.
1202 2003-07-17 Michael Snyder <msnyder@redhat.com>
1204 * remote-sim.c: Comment typo fix.
1206 2003-07-17 Andrew Cagney <cagney@redhat.com>
1208 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1210 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1211 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1212 GDB_MULTI_ARCH_PARTIAL.
1214 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1216 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1217 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1218 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1220 2003-07-16 Theodore A. Roth <troth@openavr.org>
1222 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1224 (avr_frame_unwind_cache): Don't unwind FP for main.
1226 Save the computed prev_sp.
1227 (avr_saved_regs_unwinder): Remove function.
1228 (avr_frame_prev_register): Use PC unwind logic from
1229 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1231 2003-07-16 Andrew Cagney <cagney@redhat.com>
1233 * frame-base.h (frame_base_p_ftype): Delete definition.
1234 (frame_base_append_predicate): Delete declaration.
1235 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1236 (frame_unwind_append_predicate): Delete declaration.
1237 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1238 (append_predicate): Delete parameter "p".
1239 (frame_unwind_append_predicate): Delete function.
1240 (frame_unwind_append_sniffer): Update call to append_predicate.
1241 (frame_unwind_free): Delete function.
1242 (_initialize_frame_unwind): Pass NULL as "free" to
1243 register_gdbarch_data.
1244 (frame_unwind_init): Append the dummy_frame_sniffer.
1245 (frame_unwind_find_by_frame): Simplify.
1246 * frame-base.c (struct frame_base_table): Delete field "p".
1247 (append_predicate): Delete parameter "p".
1248 (frame_base_append_predicate): Delete function.
1249 (frame_base_append_sniffer): Update call to append_predicate.
1250 (frame_base_free): Delete function.
1251 (frame_base_find_by_frame): Simplify.
1252 (_initialize_frame_base): Pass NULL as "free" to
1253 register_gdbarch_data.
1254 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1255 (x86_64_sigtramp_frame_sniffer): Replace
1256 "x86_64_sigtramp_frame_p".
1257 (x86_64_init_abi): Set the frame unwind sniffers.
1258 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1259 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1260 (m68k_gdbarch_init): Set the frame unwind sniffers.
1261 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1262 "i386_sigtramp_frame_p".
1263 (i386_frame_sniffer): Replace "i386_frame_p".
1264 (i386_gdbarch_init): Set the frame unwind sniffers.
1265 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1266 (avr_gdbarch_init): Set the frame unwind sniffers.
1267 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1268 "alpha_sigtramp_frame_p"
1269 (alpha_heuristic_frame_sniffer): Replace
1270 "alpha_heuristic_frame_p".
1271 (alpha_gdbarch_init): Set the frame unwind sniffers.
1272 (alpha_dwarf2_init_abi): Ditto.
1273 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1274 "alpha_debug_frame_p".
1275 (alpha_mdebug_frame_base_sniffer): Replace
1276 "alpha_mdebug_frame_base_p".
1277 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1278 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1279 (d10v_gdbarch_init): Set the frame unwind sniffer.
1280 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1281 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1282 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1283 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1284 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1285 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1287 2003-07-16 Michael Snyder <msnyder@redhat.com>
1289 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1290 should go thru sh_dsp_register_sim_regno, else the dsp regs
1291 will not get the right values.
1293 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1295 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1296 deprecated_store_floating by call to store_typed_floating.
1297 (sh_sh4_register_convert_to_raw): Substitute call to
1298 deprecated_extract_floating by call to extract_typed_floating.
1300 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1302 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1304 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1306 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1307 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1308 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1310 (do_pseudo_register): Remove.
1311 (sh_push_dummy_code): New function.
1312 (sh64_store_struct_return): Rename from sh_store_struct_return.
1313 Only called for sh64 now.
1314 (sh_extract_struct_value_address): Regcache'ify.
1315 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1316 and accomodate new tasks.
1317 (sh64_push_return_address): Rename from sh_push_return_address.
1318 Only called for sh64 now.
1319 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1321 (sh3e_sh4_extract_return_value): Regcache'ify.
1322 (sh_default_store_return_value): Ditto.
1323 (sh3e_sh4_store_return_value): Ditto.
1324 (sh_default_register_byte): Remove.
1325 (sh_sh4_register_byte): Remove.
1326 (sh_default_register_raw_size): Remove.
1327 (sh_sh4_register_raw_size): Remove.
1328 (sh_register_virtual_size): Remove.
1329 (sh_sh3e_register_virtual_type): Remove.
1330 (sh_sh3e_register_type): New function.
1331 (sh_sh4_register_virtual_type): Remove.
1332 (sh_sh4_register_type): New function.
1333 (sh_default_register_virtual_type): Remove.
1334 (sh_default_register_type): New function.
1335 (do_fv_register_info): Add parameters to accomodate call from
1336 sh_print_registers_info.
1337 (do_dr_register_info): Ditto.
1338 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1339 Add parameters to accomodate call from sh_print_registers_info.
1340 (sh_do_fp_register): Ditto.
1341 (sh64_do_pseudo_register): Call do_dr_register_info,
1342 do_fv_register_info and sh_do_fp_register with default parameters.
1343 (sh_do_register): Add parameters to accomodate call from
1344 sh_print_registers_info.
1345 (sh_print_register): Ditto.
1346 (sh_print_registers_info): Rename from sh_do_registers_info.
1347 Add parameters to be used as gdbarch_print_registers_info
1348 implementation. Accomodate removed do_pseudo_register function
1350 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1351 function pointer. Call sh_print_register with default parameters.
1352 (sh64_do_registers_info): Call sh_print_registers_info instead of
1353 sh_do_registers_info.
1354 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1355 detection of deprecated vs. non-deprecated functionality.
1356 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1357 function pointer assignments by direct function calls.
1359 2003-07-15 Andrew Cagney <cagney@redhat.com>
1361 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1362 (frame_register_unwind, create_new_frame): Ditto.
1363 (legacy_get_prev_frame, get_frame_type): Ditto.
1364 (get_frame_base_address): Use frame_base_find_by_frame.
1365 (get_frame_locals_address): Use frame_base_find_by_frame.
1366 (get_frame_args_address): Use frame_base_find_by_frame.
1367 * frame-base.h (frame_base_sniffer_ftype): Declare.
1368 (frame_base_append_sniffer): Declare.
1369 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1370 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1371 (frame_base_append_sniffer): New function.
1372 (frame_base_append_predicate): Add a NULL sniffer.
1373 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1374 (struct frame_base_table): Add "sniffer".
1375 (frame_base_free): Free the "sniffer" table.
1376 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1377 (frame_unwind_append_sniffer): Declare.
1378 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1379 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1380 (struct frame_unwind_table): Add "sniffer", delete "middle".
1381 (append_predicate): Add "sniffer" parameter, append the sniffer.
1382 (frame_unwind_init): Update append_predicate call.
1383 (frame_unwind_append_sniffer): New function.
1384 (frame_unwind_append_predicate): Update append_predicate call.
1385 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1387 2003-07-15 Andrew Cagney <cagney@redhat.com>
1389 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1390 before code inhibiting repeated unwind attempts. Add to
1391 commentary on that test's problems.
1392 * blockframe.c (inside_main_func): Look for "main" in the minimal
1394 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1397 2003-07-15 Andrew Cagney <cagney@redhat.com>
1399 * complaints.c (struct explanation): Define.
1400 (struct complaints): Change type of "explanation" to "struct
1402 (symfile_explanations): Convert to a "struct explanation" table.
1403 (vcomplaint): Update.
1405 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1407 * x86-64-linux-nat.c (regmap): Removed.
1408 (supply_gregset, fill_gregset): Call
1409 x86_64_linux_(fill,supply)_gregset functions.
1410 * x86-64-linux-tdep.c (USER_*): New defines.
1411 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1412 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1414 (fetch_core_registers): Ditto.
1415 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1416 * x86-64-linux-tdep.h: New file.
1417 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1419 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1421 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1423 * x86-64-tdep.c (x86_64_store_return_value): Use
1424 regcache_cooked_write_part instead of regcache_cooked_write.
1426 * configure.host: Add x86_64-*-freebsd*.
1427 * configure.tgt: Add x86_64-*-freebsd*.
1428 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1429 * amd64fbsd-nat.c: New file.
1430 * amd64fbsd-tdep.c: New file.
1431 * config/i386/nm-fbsd64.h: New file.
1432 * config/i386/fbsd64.mh: New file.
1433 * config/i386/fbsd64.mt: New file.
1435 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1437 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1438 `sc_regs_offset' and `sc_fpregs_offset'.
1439 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1440 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1441 (alpha_sigtramp_register_address): Rewrite to use new members of
1442 `struct gdbarch_tdep'.
1443 (alpha_gdbarch_init): Initialize new members of struct
1445 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1446 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1447 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1448 (alphafbsd_pc_in_sigtramp): Implement.
1449 (alphafbsd_sigtramp_offset): New function.
1450 (alphafbsd_sigcontext_addr): New function.
1451 (alphafbsd_init_abi): Initialize signal trampoline related members
1452 of `struct gdbarch_tdep'.
1453 (_initialize_alphafbsd_tdep): Add prototype.
1455 2003-07-11 Theodore A. Roth <troth@openavr.org>
1457 * Makefile.in (install-only): Quote sed expression when generating
1460 2003-07-11 Richard Henderson <rth@redhat.com>
1462 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1463 * dwarf2-frame.c: Include complaints.h.
1464 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1465 variable initialization; return NULL on error.
1466 (decode_frame_entry): New.
1468 2003-07-11 Andrew Cagney <cagney@redhat.com>
1470 * frame.h (frame_address_in_block): Delete declaration.
1471 * blockframe.c (frame_address_in_block): Delete function.
1472 (get_frame_block): Use get_frame_address_in_block.
1473 (block_innermost_frame): Ditto.
1474 * stack.c (print_frame, backtrace_command_1): Ditto.
1476 * frame.h (get_frame_address_in_block): Declare.
1477 (frame_unwind_address_in_block): Declare.
1478 * frame.c (frame_unwind_address_in_block): New function.
1479 (get_frame_address_in_block): New function.
1481 2003-07-10 Andrew Cagney <cagney@redhat.com>
1483 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1484 pre-default. Note: re-generate has no effect.
1486 2003-07-10 Andrew Cagney <cagney@redhat.com>
1488 * gdbarch.sh: When a variable, but not a function, compare against
1489 0. Fix problem in previous patch.
1490 * gdbarch.c: Re-generate.
1492 2003-07-10 Andrew Cagney <cagney@redhat.com>
1494 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1495 functions against NULL, not 0.
1496 * gdbarch.c: Re-generate.
1498 2003-07-10 Fred Fish <fnf@ninemoons.com>
1500 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1501 null string instead of a null pointer.
1502 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1504 2003-07-09 Michael Snyder <msnyder@redhat.com>
1506 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1508 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1510 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1511 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1512 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1513 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1514 * x86-64-tdep.c: ... from here.
1516 2003-07-09 Andreas Schwab <schwab@suse.de>
1518 * m68k-tdep.h (enum struct_return): Define.
1519 (struct gdbarch_tdep): Add struct_return.
1520 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1521 bytes are padded to the right, not to the left. Pass struct value
1522 address in register %a1, not on stack.
1523 (m68k_use_struct_convention): New function.
1524 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1525 struct_return in tdep to pcc_struct_return.
1526 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1529 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1531 * somread.c (som_symfile_offsets): Fix compilation error.
1533 2003-07-09 Andrew Cagney <cagney@redhat.com>
1535 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1536 Add comments about the checks.
1538 2003-07-08 Andrew Cagney <cagney@redhat.com>
1540 * Makefile.in: Make dependency section headers consistent.
1541 (config_h): Move to $BUILD headers section.
1542 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1543 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1544 (ada-exp.tab.c): Move to YACC/LEX section.
1545 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1546 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1548 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1550 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1551 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1552 of strerror with safe_strerror, use ISO C function definitions,
1553 and replace instances of sprintf with snprintf.
1555 2003-07-07 Andrew Cagney <cagney@redhat.com>
1557 * frame.c (get_prev_frame): Enable check for identical frames.
1558 Update comments. Update error messages.
1560 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1562 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1564 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1566 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1567 sort_symtab_syms, no longer necessary.
1569 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1571 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1573 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1575 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1576 (mips_register_byte): Likewise.
1578 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1580 * Makefile.in (sparc_tdep_h): New.
1581 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1582 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1583 * sparc-linux-nat.c: Include "sparc-tdep.h".
1584 * sparc-nat.c: Likewise.
1585 * sparc-tdep.c: Likewise.
1586 * sparc64nbsd-nat.c: Likewise.
1587 * sparcnbsd-nat.c: Likewise.
1588 * sparcnbsd-tdep.c: Likewise.
1589 * sparc-tdep.h: New file.
1590 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1591 and sparc_npc_regnum.
1593 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1595 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1596 (mips_linux_cannot_store_register): List supported instead of
1597 unsupported registers.
1599 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1601 * disasm.c (dump_insns): Separate instructions from addresses.
1603 2003-07-07 Andreas Schwab <schwab@suse.de>
1605 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1607 * m68k-tdep.c (NUM_FREGS): Delete.
1608 (SIG_PC_FP_OFFSET): Delete.
1609 (TARGET_M68K): Delete.
1610 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1611 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1612 P_MOVEL_SP, P_MOVEML_SP): Define.
1613 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1615 (m68k_register_raw_size): Delete.
1616 (m68k_register_virtual_size): Delete.
1617 (m68k_register_type): Renamed from m68k_register_virtual_type and
1618 add gdbarch argument.
1619 (m68k_store_struct_return): Delete.
1620 (m68k_deprecated_extract_return_value): Delete.
1621 (m68k_deprecated_extract_struct_value_address): Delete.
1622 (m68k_frame_chain): Delete.
1623 (m68k_frame_saved_pc): Delete.
1624 (m68k_fix_call_dummy): Delete.
1625 (m68k_push_dummy_frame): Delete.
1626 (m68k_pop_frame): Delete.
1627 (m68k_extract_return_value): New function.
1628 (m68k_store_return_value): Rewrite using regcache.
1629 (m68k_extract_struct_value_address): Rewrite using regcache.
1630 (m68k_push_dummy_call): New function.
1631 (struct m68k_frame_cache): Define.
1632 (m68k_alloc_frame_cache): New function.
1633 (m68k_analyze_frame_setup): New function.
1634 (m68k_analyze_register_saves): New function.
1635 (m68k_analyze_prologue): New function.
1636 (m68k_skip_prologue): Rewrite using above functions.
1637 (m68k_unwind_pc): New function.
1638 (m68k_frame_cache): New function.
1639 (m68k_frame_this_id): New function.
1640 (m68k_frame_prev_register): New function.
1641 (m68k_frame_unwind): New variable.
1642 (m68k_frame_p): New function.
1643 (m68k_sigtramp_frame_cache): New function.
1644 (m68k_sigtramp_frame_this_id): New function.
1645 (m68k_sigtramp_frame_prev_register): New function.
1646 (m68k_sigtramp_frame_unwind): New variable.
1647 (m68k_sigtramp_frame_p): New function.
1648 (m68k_frame_base_address): New function.
1649 (m68k_frame_base): New function.
1650 (m68k_unwind_dummy_id): New function.
1651 (fill_gregset): Use regcache_collect.
1652 (fill_fpregset): Likewise.
1653 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1655 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1656 deprecated_init_frame_pc, deprecated_store_struct_return,
1657 deprecated_extract_return_value, deprecated_store_return_value,
1658 deprecated_frame_chain, deprecated_frame_saved_pc,
1659 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1660 deprecated_register_virtual_size,
1661 deprecated_max_register_raw_size,
1662 deprecated_max_register_virtual_size,
1663 deprecated_register_virtual_type, deprecated_register_size,
1664 deprecated_register_byte, deprecated_register_bytes,
1665 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1666 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1667 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1668 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1669 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1670 deprecated_push_dummy_frame, deprecated_pop_frame,
1671 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1672 only if SYSCALL_TRAP is defined. Set extract_return_value,
1673 store_return_value, extract_struct_value_address, register_type,
1674 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1676 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1677 M68K_MAX_REGISTER_SIZE): Define.
1678 (struct m68k_sigtramp_info): Define.
1679 (struct gdbarch_tdep): Add get_sigtramp_info.
1680 * m68klinux-nat.c (fetch_register): Use register_size instead of
1681 REGISTER_RAW_SIZE. Don't put assignment in if.
1682 (store_register): Likewise.
1683 (fetch_inferior_registers): Likewise.
1684 (store_inferior_registers): Likewise.
1685 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1686 (m68k_linux_frame_saved_pc): Delete.
1687 (m68k_linux_sigcontext_reg_offset,
1688 m68k_linux_ucontext_reg_offset): Define.
1689 (m68k_linux_get_sigtramp_info): New function.
1690 (m68k_linux_extract_return_value): Rewrite using regcache.
1691 (m68k_linux_store_return_value): Likewise.
1692 (m68k_linux_extract_struct_value_address): Likewise.
1693 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1694 Don't set deprecated_frame_saved_pc,
1695 deprecated_extract_return_value, deprecated_store_return_value,
1696 deprecated_extract_struct_value_address. Set
1697 extract_return_value, store_return_value,
1698 extract_struct_value_address.
1700 2003-07-07 Andrew Cagney <cagney@redhat.com>
1702 * expprint.c: Include "user-regs.h" instead of "frame.h".
1703 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1704 frame_map_regnum_to_name.
1705 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1706 (frame_map_name_to_regnum): Simplify, call
1707 user_reg_map_name_to_regnum.
1708 (frame_map_regnum_to_name): Simplify, call
1709 user_reg_map_regnum_to_name.
1710 (frame_register_unwind): Update.
1711 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1712 (_initialize_frame_reg): Call user_reg_add_builtin.
1713 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1714 (value_of_register): Use value_of_user_reg.
1715 * eval.c (evaluate_subexp_standard): Update.
1716 * parse.c (write_dollar_variable): Update.
1717 * d10v-tdep.c (d10v_print_registers_info): Update.
1718 * infcmd.c (registers_info): Update.
1719 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1720 (builtin_regs_h): Delete macro.
1721 (user_regs_h): Define.
1722 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1723 (builtin-regs.o): Delete target.
1724 (user-regs.o): Specify dependencies.
1725 (expprint.o): Update dependencies.
1726 (findvar.o): Update dependencies.
1727 (frame.o): Update dependencies.
1728 (std-regs.o): Update dependencies.
1730 2003-07-06 Christopher Faylor <cgf@redhat.com>
1732 * win32-nat.c (solib_symbols_add): Use one variable for all section
1733 address stuff. Pass variable rather than address of variable to
1734 safe_symbol_file_add.
1736 2003-07-06 Andreas Schwab <schwab@suse.de>
1738 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1740 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1742 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1744 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1746 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1748 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1750 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1751 * config/i386/nto.mh: New file.
1752 * config/i386/nm-nto.h: New file.
1753 * configure.host: Add i[3456]86-*-nto*.
1755 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1757 * remote-vx.c (vx_add_symbols): Fix compilation error.
1759 2003-07-03 Andrew Cagney <cagney@redhat.com>
1761 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1762 * gdbarch.h, gdbarch.c: Re-generate.
1763 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1764 (legacy_register_name): Declare.
1765 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1766 (REGISTER_NAME): Define.
1767 * sparc-tdep.c (legacy_register_name): New function.
1768 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1769 (REGISTER_NAME): Define.
1770 (hppa64_register_name): Declare.
1771 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1772 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1773 (hppa64_register_name): New function.
1774 (hppa_register_name): New function.
1775 * arch-utils.c (legacy_register_name): Delete.
1776 * arch-utils.h (legacy_register_name): Delete.
1778 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1780 * cli/cli-interp.c (cli_interpreter_resume): Update the
1781 cli_uiout's stream to gdb_stdout.
1783 2003-07-03 Andrew Cagney <cagney@redhat.com>
1785 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1787 * gdbarch.h, gdbarch.c: Re-generate.
1788 * regcache.c (init_regcache_descr): Use legacy code when either
1789 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1791 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1793 * NEWS: Move "set logging" entry into GDB 6.0 section.
1795 2003-07-02 Jim Blandy <jimb@redhat.com>
1797 * s390-tdep.c (struct frame_extra_info): new member:
1798 'stack_bought_valid'.
1799 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1800 initialize fextra_info->stack_bought.
1801 (s390_frameless_function_invocation): Don't trust the value of
1802 fextra_info_ptr->stack_bought unless
1803 fextra_info->stack_bought_valid is set.
1805 New S390 prologue analyzer.
1806 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1807 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1808 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1809 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1810 compute_x_addr, s390_on_stack, s390_store,
1811 s390_get_signal_frame_info): New functions.
1812 (S390_NUM_SPILL_SLOTS): New macro.
1813 (s390_get_frame_info): Rewritten.
1814 (is_arg_reg): Deleted.
1816 Break out the decoding of S/390 instructions into separate
1817 functions, to make it more legible, and easier to check
1819 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1820 is_rx, is_rxe): New functions.
1821 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1822 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1823 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1824 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1825 enums for opcode values. (Is this an improvement?)
1827 2003-07-02 Andrew Cagney <cagney@redhat.com>
1829 * i386-tdep.c: Revert change committed as part of trad-frame code
1832 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1834 * breakpoint.c (insert_catchpoint): Make static.
1836 2003-07-02 Andreas Schwab <schwab@suse.de>
1838 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1839 former ia64_push_arguments and ia64_push_return_address, and use
1840 regcache functions instead of read/write_register.
1841 (ia64_gdbarch_init): Set push_dummy_call instead of
1842 deprecated_push_arguments and deprecated_push_return_address.
1844 2003-07-01 Andreas Jaeger <aj@suse.de>
1846 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1848 Set %rax only to number of SSE registers used.
1850 2003-07-01 Andrew Cagney <cagney@redhat.com>
1852 * trad-frame.h: Update comments, a -1 .addr is reserved.
1853 (trad_frame_value_p, trad_frame_addr_p): Declare.
1854 (trad_frame_reg_p): Declare.
1855 (trad_frame_set_value): Rename trad_frame_register_value.
1856 (trad_frame_set_unknown): Declare.
1857 * trad-frame.c (trad_frame_realreg_p): New function.
1858 (trad_frame_addr_p, trad_frame_value_p): New function.
1859 (trad_frame_set_unknown): New function.
1860 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1861 (trad_frame_prev_register): Use trad_frame_realreg_p,
1862 trad_frame_addr_p and trad_frame_value_p.
1863 (trad_frame_set_value): Rename trad_frame_register_value.
1864 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1865 and trad_frame_set_value.
1867 2003-06-30 Jim Blandy <jimb@redhat.com>
1869 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1870 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1871 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1872 for 16 registers, and then 32 more bytes.
1873 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1875 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1876 Move up in the file, since it's now used by is_simple_arg.
1877 (is_simple_arg): Don't assume registers are four bytes long.
1878 Exclude all double arguments. Extended floats are not simple
1880 (is_power_of_two): New function.
1881 (pass_by_copy_ref): Call is_power_of_two, and check that the
1882 length fits in a register, rather than listing all the acceptable
1883 sizes. Extended floats are not passed by reference.
1884 (s390_push_arguments): Don't assume registers are four bytes long.
1885 Reserve an argument register to point to the buffer for structures
1886 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1887 S390_STACK_FRAME_OVERHEAD.
1889 2003-06-30 Andreas Schwab <schwab@suse.de>
1891 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1892 format error message.
1894 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1896 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1898 2003-06-30 David Carlton <carlton@kealia.com>
1900 Band-aid for PR c++/1245.
1901 * Makefile.in (cp-support.o): Depend on complaints_h.
1902 * cp-support.c: Include complaints.h. Add declaration for
1903 find_last_component.
1904 (cp_find_first_component): Separate code into
1905 cp_find_first_component_aux.
1906 (cp_find_first_component_aux): Call demangled_name_complaint.
1907 (demangled_name_complaint): New.
1909 2003-06-30 Andrew Cagney <cagney@redhat.com>
1911 * remote.c (remote_write_bytes): Explicitly compute and then use
1912 the payload size. Update comments to reflect. Fixes problem of
1913 GDB not sending small packets as found by Fred Fish.
1915 2003-06-30 Andrew Cagney <cagney@redhat.com>
1917 * remote.c (remote_async_wait): Fix -Wformat problem.
1919 2003-06-29 Andrew Cagney <cagney@redhat.com>
1921 * remote.c (remote_wait): Call error, and not warning, when the
1923 (remote_async_wait): Ditto.
1925 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1927 * sparc-tdep.c (sparc_y_regnum): Make external again.
1929 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1931 * cli/cli-logging.c (pop_output_files): Add void to function
1934 2003-06-29 Andrew Cagney <cagney@redhat.com>
1936 * frame.c (frame_register_unwind): Use unsigned char when dumping
1937 the buffer contents.
1939 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1941 * cli/cli-logging.c: New file.
1942 * cli-out.c (struct ui_out_data): Add original_stream.
1943 (cli_redirect): New function.
1944 (cli_ui_out_impl): Add cli_redirect.
1945 (cli_out_new): Initialize original_stream.
1946 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1947 (uo_redirect, ui_out_redirect): New.
1948 * ui-out.h (struct ui_out_impl): Add redirect member.
1949 (redirect_ftype): New.
1950 (ui_out_redirect): Add prototype.
1951 * Makefile.in: Add rules for cli-logging.c.
1952 * NEWS: Mention "set logging".
1954 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1956 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1958 2003-06-27 Andrew Cagney <cagney@redhat.com>
1960 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1961 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1962 * avr-tdep.c (avr_call_dummy_address): Delete function.
1963 (avr_gdbarch_init): Do not set call_dummy_address.
1965 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1967 * symfile.c (syms_from_objfile): Move variables to inner block.
1968 Move the checks for the non-mainline case a bit earlier to avoid
1969 doing some useless computations.
1971 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1973 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1975 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1977 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1980 2003-06-26 Michael Chastain <mec@shout.net>
1982 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1983 gdb/testsuite/gdb.c++/pr-1210.exp.
1985 2003-06-26 Andrew Cagney <cagney@redhat.com>
1987 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1988 altivec_expression.h and altivec_registers.h.
1990 2003-06-26 Andrew Cagney <cagney@redhat.com>
1992 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1993 info->mach when MIPS16. Patch suggested by Fred Fish.
1995 2003-06-26 Andrew Cagney <cagney@redhat.com>
1997 * utils.c (internal_vproblem): Print the problem to a reason
1998 buffer and then pass to query. Make the msg variable more local.
2000 2003-06-26 Andrew Cagney <cagney@redhat.com>
2002 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2003 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2004 * gdbarch.h, gdbarch.c: Re-generate.
2005 * frame-base.c (default_frame_args_address): Update. Use
2006 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2008 (default_frame_locals_address): Ditto for
2009 DEPRECATED_FRAME_LOCALS_ADDRESS.
2010 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2011 (vax_frame_num_args): Update.
2012 (vax_gdbarch_init): Update.
2013 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2014 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2015 * mcore-tdep.c (mcore_gdbarch_init): Update.
2016 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2017 * ia64-tdep.c (ia64_gdbarch_init): Update.
2018 * symtab.h (address_class): Update comments.
2019 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2020 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2021 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2022 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2023 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2024 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2025 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2026 * alpha-mdebug-tdep.c: Update.
2027 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2029 2003-06-26 Andreas Jaeger <aj@suse.de>
2031 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2032 of SSE registers so that varargs functions work. Rework handling
2033 of passing arguments on the stack.
2034 (x86_64_store_return_value): Return double and float values in SSE
2037 2003-06-24 Michael Chastain <mec@shout.net>
2039 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2040 the "constructor breakpoints ignored" bug.
2042 2003-06-25 David Carlton <carlton@kealia.com>
2044 * MAINTAINERS: Update e-mail address.
2046 2003-06-24 Jim Blandy <jimb@redhat.com>
2048 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2050 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2052 (ppc_linux_init_abi): Register it as the
2053 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2055 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2056 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2059 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2060 (ppc64_standard_linkage_target): Use it.
2062 2003-06-23 Andrew Cagney <cagney@redhat.com>
2064 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2065 for 0 "int0" and 4 "int32" sized registers.
2066 * gdbtypes.c (builtin_type_int0): Define.
2067 (build_gdbtypes): Initialize builtin_type_int0.
2068 * gdbtypes.h (builtin_type_int0): Declare.
2070 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2073 as characters are unsigned.
2075 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2078 * dwarfread.c (struct_type): Skip static fields without crashing.
2080 2003-06-22 Andrew Cagney <cagney@redhat.com>
2082 GDB 6.0 branch created.
2084 * PROBLEMS: Update. Empty.
2087 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2089 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2090 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2092 2003-06-22 Andrew Cagney <cagney@redhat.com>
2094 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2095 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2098 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2100 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2103 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2105 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2106 argument of val_print.
2107 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2108 to the address argument of baseclass_offset or target_read_memory.
2109 Do add it to the argument of cp_print_value_fields.
2111 2003-06-21 Andrew Cagney <cagney@redhat.com>
2113 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2114 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2115 instead of 0..NUM_REGS.
2116 (mips_register_reggroup_p): New function.
2117 (mips_pseudo_register_write): New function.
2118 (mips_pseudo_register_read): New function.
2119 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2120 based on the register's type.
2121 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2123 (mips_get_saved_register): Simplify. Assert that REGNO is a
2125 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2126 (mips_register_type): Replace mips_register_virtual_type. Map
2127 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2129 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2130 that the register is cooked / virtual.
2131 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2132 Only get the extra info when needed.
2133 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2134 (mips32_heuristic_proc_desc): Fetch the cooked register.
2135 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2136 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2137 (mips_print_register): Use gdbarch_register_type, instead of
2138 REGISTER_VIRTUAL_TYPE.
2139 (print_gp_register_row): Use gdbarch_register_type, instead of
2140 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2141 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2142 Print the pseudo / cooked registers.
2143 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2144 Print the pseudo / cooked registers.
2145 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2146 REG_NUM is pseudo / cooked.
2147 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2148 (mips_n32n64_xfer_return_value): Ditto.
2149 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2150 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2151 (mips_register_sim_regno): New function.
2152 (mips_gdbarch_init): Set deprecated_register_byte,
2153 register_group_p, pseudo_register_write, pseudo_register_read,
2154 register_sim_regno, and num_pseudo_regs. Set register_type,
2155 instead of register_virtual_type.
2156 * Makefile.in (mips-tdep.o): Update dependencies.
2157 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2158 REGISTER_VIRTUAL_TYPE.
2159 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2160 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2161 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2162 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2163 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2165 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2167 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2168 * cli/cli-cmds.c: Include "gdb_vfork.h".
2169 (shell_escape): Use vfork.
2171 2003-06-21 Andrew Cagney <cagney@redhat.com>
2173 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2174 32 bit floating-point register saves.
2176 * frame.h (deprecated_unwind_get_saved_register): Delete.
2177 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2178 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2179 and deprecated_get_next_frame_hack instead of
2180 deprecated_unwind_get_saved_register.
2182 * mips-tdep.c (mips_dump_tdep): Do not print
2183 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2185 * frame.c (get_frame_register): New function.
2186 (frame_unwind_register_signed): New function.
2187 (get_frame_register_signed): New function.
2188 (frame_unwind_register_unsigned): New function.
2189 (get_frame_register_unsigned): New function.
2190 * frame.h: Add comments on naming schema.
2191 (get_frame_register, frame_unwind_register_signed): Declare.
2192 (get_frame_register_signed, get_frame_register_signed): Declare.
2193 (frame_unwind_register_unsigned): Declare.
2194 (get_frame_register_unsigned): Declare.
2196 2003-06-20 Theodore A. Roth <troth@openavr.org>
2198 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2200 2003-06-20 Theodore A. Roth <troth@openavr.org>
2202 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2203 (avr_read_sp): Ditto.
2205 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2207 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2208 * config/arm/nm-linux.h: Likewise.
2209 * config/arm/tm-linux.h: Likewise.
2210 * config/ia64/nm-linux.h: Likewise.
2211 * config/ia64/tm-ia64.h: Likewise.
2212 * config/s390/tm-linux.h: Likewise.
2213 * config/s390/tm-s390.h: Likewise.
2214 * s390-nat.c: Likewise.
2215 * s390-tdep.c: Likewise.
2217 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2218 * config/ia64/linux.mt: Likewise.
2219 * config/m68k/linux.mh: Likewise.
2220 * config/mips/linux.mt: Likewise.
2221 * config/powerpc/linux.mh: Likewise.
2222 * config/sh/linux.mt: Likewise.
2224 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2226 * solib.c (solib_open): Change tests for whether to search
2227 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2230 2003-06-19 Theodore A. Roth <troth@openavr.org>
2232 * avr-tdep.c (avr_frame_address): Delete function.
2233 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2234 set_gdbarch_frame_args_address.
2236 2003-06-19 Andrew Cagney <cagney@redhat.com>
2238 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2239 (REGISTER_CONVERT_FROM_TYPE): Delete.
2240 (mips_register_convert_to_type): Delete declaration.
2241 (mips_register_convert_from_type): Delete declaration.
2242 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2245 2003-06-19 Michael Snyder <msnyder@redhat.com>
2247 * linux-nat.h: New file.
2248 * linux-nat.c: Include linux-nat.h.
2249 * lin-lwp.c: Include linux-nat.h.
2250 Move struct lwp_info def to linux-nat.h.
2251 * linux-proc.c: Include linux-nat.h.
2252 (linux_make_note_section): Iterate over lwps instead of threads.
2253 (linux_do_thread_registers): Use lwp instead of merged pid.
2254 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2255 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2256 Add dependency on linux_nat_h.
2258 2003-06-19 Theodore A. Roth <troth@openavr.org>
2260 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2262 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2264 * varobj.c (get_type, get_target_type): Use check_typedef.
2266 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2268 * breakpoint.c (insert_catchpoint): Call internal_error.
2270 2003-06-19 Theodore A. Roth <troth@openavr.org>
2272 * avr-tdep.c (avr_push_dummy_code): Delete function.
2273 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2275 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2277 * arch-utils.c (default_prepare_to_proceed): Remove.
2278 (generic_prepare_to_proceed): Remove.
2279 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2280 (generic_prepare_to_proceed): Remove prototype.
2281 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2282 * gdbarch.c: Regenerate.
2283 * gdbarch.h: Regenerate.
2284 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2285 * hppah-nat.c (hppa_switched_threads): Remove.
2286 * infrun.c (prepare_to_proceed): New static function, copied from
2287 generic_prepare_to_proceed. Remove select_it argument.
2288 (proceed): Call prepare_to_proceed.
2289 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2291 (ptrace_wait): Don't set the removed variables.
2292 (hppa_switched_threads): Remove.
2293 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2294 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2295 (lin_lwp_prepare_to_proceed): Remove prototype.
2296 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2297 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2299 2003-06-18 Theodore A. Roth <troth@openavr.org>
2301 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2303 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2304 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2305 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2306 (AVR_PROLOGUE_*): Enumerate prologue types.
2307 (struct frame_extra_info): Remove.
2308 (struct avr_unwind_cache): Define.
2309 (avr_write_sp): Delete function.
2310 (avr_read_fp): Ditto.
2311 (avr_init_extra_frame_info): Ditto.
2312 (avr_pop_frame): Ditto.
2313 (avr_frame_saved_pc): Ditto.
2314 (avr_saved_pc_after_call): Ditto.
2315 (avr_push_return_address): Ditto.
2316 (avr_frame_chain): Ditto.
2317 (avr_store_struct_return): Ditto.
2318 (avr_push_arguments): Ditto.
2319 (avr_scan_prologue): Update comments. Changed to set up the info for
2320 cache unwinding. Now returns end of prologue PC.
2321 (avr_skip_prologue): Better handling of functions lacking a prologue
2322 by using avr_scan_prologue.
2323 (avr_scan_arg_moves): New function.
2324 (avr_saved_regs_unwinder): Ditto.
2325 (avr_frame_unwind_cache): Ditto.
2326 (avr_unwind_pc): Ditto.
2327 (avr_frame_this_id): Ditto.
2328 (avr_frame_prev_register): Ditto.
2329 (avr_frame_p): Ditto.
2330 (avr_frame_base_address ): Ditto.
2331 (avr_unwind_dummy_id): Ditto.
2332 (avr_push_dummy_code): Ditto.
2333 (push_stack_item): Ditto.
2334 (pop_stack_item): Ditto.
2335 (avr_push_dummy_call): Ditto.
2336 (struct stack_item): Define.
2337 (avr_frame_unwind): Declare structure.
2338 (avr_frame_base): Ditto.
2339 (avr_gdbarch_init): Remove calls to
2340 set_gdbarch_deprecated_init_frame_pc,
2341 set_gdbarch_deprecated_target_read_fp,
2342 set_gdbarch_deprecated_dummy_write_sp,
2343 set_gdbarch_deprecated_fp_regnum,
2344 set_gdbarch_deprecated_push_arguments,
2345 set_gdbarch_deprecated_push_return_address,
2346 set_gdbarch_deprecated_pop_frame,
2347 set_gdbarch_deprecated_store_struct_return,
2348 set_gdbarch_deprecated_frame_init_saved_regs,
2349 set_gdbarch_deprecated_init_extra_frame_info,
2350 set_gdbarch_deprecated_frame_chain,
2351 set_gdbarch_deprecated_frame_saved_pc,
2352 set_gdbarch_deprecated_saved_pc_after_call.
2353 Add calls to set_gdbarch_push_dummy_call,
2354 set_gdbarch_push_dummy_code,
2355 frame_unwind_append_predicate,
2356 frame_base_set_default,
2357 set_gdbarch_unwind_dummy_id,
2358 set_gdbarch_unwind_pc.
2361 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2363 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2364 registers for H8/300S.
2365 (h8300_print_registers_info): Ditto.
2366 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2368 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2370 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2371 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2372 (lin_lwp_wait): Likewise. Update comments.
2373 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2374 (pull_pid_from_list, linux_record_stopped_pid): New.
2376 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2378 * ada-lang.c (scan_discrim_bound): Name first argument.
2379 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2380 declared by ALL_BLOCK_SYMBOLS.
2382 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2384 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2385 ("regcache.h"): Include it.
2386 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2388 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2390 * NEWS: Mention gdbserver detach change and "disconnect" command.
2391 * infcmd.c (disconnect_command): New function.
2392 (_initialize_infcmd): Add ``disconnect'' command.
2393 * remote.c (remote_async_detach): Delete.
2394 (remote_detach): Merge remote_async_detach.
2395 (remote_disconnect): New.
2396 (init_remote_ops): Set to_disconnect.
2397 (init_remote_cisco_ops): Likewise.
2398 (init_remote_async_ops): Likewise. Use remote_detach.
2399 * target.c (cleanup_target): Default to_disconnect.
2400 (update_current_target): Inherit to_disconnect.
2401 (target_disconnect, debug_to_disconnect): New functions.
2402 (setup_target_debug): Set to_disconnect.
2403 * target.h (struct target_ops): Add to_disconnect.
2404 (target_disconnect): Add prototype.
2406 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2408 * breakpoint.c (insert_catchpoint): New function.
2409 (insert_breakpoints): Use catch_exceptions to call
2410 insert_catchpoint. Disable catchpoints if they fail to insert.
2412 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2414 * symfile.c (reread_symbols): Clear sym_private.
2416 2003-06-17 Andrew Cagney <cagney@redhat.com>
2418 * trad-frame.h (struct frame_info): Add opaque declaration.
2419 * remote-fileio.h (struct cmd_list_element): Add opaque
2421 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2424 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2426 * remote.c (remote_prepare_to_store): Replace call to
2427 deprecated_read_register_bytes with multiple regcache_raw_read
2430 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2432 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2433 (nto_find_and_open_solib): Likewise.
2434 (nto_init_solib_absolute_prefix): Likewise.
2435 (_initialize_nto_tdep): Fix indentation.
2437 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2439 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2441 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2443 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2445 2003-06-17 Jim Blandy <jimb@redhat.com>
2447 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2449 2003-06-16 Theodore A. Roth <troth@openavr.org>
2451 * avr-tdep.c (avr_extract_return_value): New function.
2452 (avr_gdbarch_init): Set extract_return_value method.
2454 2003-06-16 Andrew Cagney <cagney@redhat.com>
2456 * frame.h (deprecated_get_next_frame_hack): Declare.
2457 * frame.c (legacy_saved_regs_prev_register): Only require
2458 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2459 there are always saved regs.
2460 (deprecated_generic_get_saved_register): Do not require
2461 DEPRECATED_FRAME_INIT_SAVED_REGS.
2462 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2463 use frame ID unwind instead.
2464 (deprecated_get_next_frame_hack): New function.
2466 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2468 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2469 (h8300_push_dummy_call): ...this function. Some minor optimization.
2470 (h8300_push_return_address): Remove.
2471 (h8300_gdbarch_init): Remove calls to
2472 set_gdbarch_deprecated_dummy_write_sp,
2473 set_gdbarch_deprecated_push_arguments and
2474 set_gdbarch_deprecated_push_return_address.
2475 Add call to set_gdbarch_push_dummy_call.
2477 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2479 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2480 (E_PSEUDO_EXR_REGNUM): Ditto.
2481 (h8300_is_argument_spill): Check for instructions moving argument
2482 registers into safe registers.
2483 (h8300_skip_prologue): Check for stm instruction to push registers
2484 used for register variables onto stack.
2485 (gdb_print_insn_h8300): Remove.
2486 (h8300_examine_prologue): Add a comment.
2487 (h8300_register_name): Take pseudo registers into account.
2488 (h8300s_register_name): Ditto.
2489 (h8300sx_register_name): Ditto.
2490 (h8300_print_register): Ditto.
2491 (h8300_print_registers_info): Define "nice" printing order.
2492 (h8300_saved_pc_after_call): Take pseudo registers into account.
2493 (h8300_register_type): Ditto. Return type used for remote connection
2494 when requesting real CCR or EXR register, return actual type when
2495 requesting pseudo CCR or EXR.
2496 (h8300_pseudo_register_read): New function.
2497 (h8300_pseudo_register_write): Ditto.
2498 (h8300_dbg_reg_to_regnum): Ditto.
2499 (h8300s_dbg_reg_to_regnum): Ditto.
2500 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2501 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2502 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2503 set_gdbarch_print_insn architecture dependent.
2504 Call set_gdbarch_pseudo_register_read and
2505 set_gdbarch_pseudo_register_write.
2506 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2508 2003-06-16 Andrew Cagney <cagney@redhat.com>
2510 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2511 * gdbarch.h, gdbarch.c: Re-generate.
2512 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2513 * s390-tdep.c (s390_gdbarch_init): Update.
2514 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2515 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2516 * mips-tdep.c (mips_gdbarch_init): Update.
2517 * mcore-tdep.c (mcore_gdbarch_init): Update.
2518 * cris-tdep.c (cris_gdbarch_init): Update.
2519 * infcall.c (call_function_by_hand): Update.
2520 * ia64-tdep.c (ia64_push_arguments): Update comment.
2521 * frame.c (legacy_get_prev_frame): Do not assume
2522 SAVE_DUMMY_FRAME_TOS_P.
2523 * dummy-frame.c (find_dummy_frame): Update comment.
2525 2003-06-16 Andrew Cagney <cagney@redhat.com>
2527 * regcache.c (do_cooked_read): Do not use register_valid_p.
2529 2003-06-15 Theodore A. Roth <troth@openavr.org>
2531 * avr-tdep.c (avr_register_type): Remove a blank line.
2532 (avr_scan_prologue): Correct some comments.
2534 2003-06-15 Theodore A. Roth <troth@openavr.org>
2536 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2538 Properly scan prologues generated by gcc with the -mcall-prologues
2540 Add code to scan -mcall-prologues for mega devices.
2542 2003-06-15 Theodore A. Roth <troth@openavr.org>
2544 * avr-tdep.c (avr_register_byte): Delete function.
2545 (avr_register_raw_size): Delete function.
2546 (avr_register_virtual_size): Delete function.
2547 (avr_register_virtual_type): Delete function.
2548 (avr_register_type): New function.
2549 (avr_address_to_pointer): Remove unused code.
2550 (avr_read_fp): Need to read FP as two separate bytes due to change to
2551 avr_register_type() usage.
2552 (avr_gdbarch_init): Don't set deprecated_register_size.
2553 Don't set deprecated_register_bytes.
2554 Don't set deprecated_register_byte.
2555 Don't set deprecated_register_raw_size.
2556 Don't set deprecated_max_register_raw_size.
2557 Don't set deprecated_register_virtual_size.
2558 Don't set deprecated_max_register_virtual_size.
2559 Don't set deprecated_register_virtual_type.
2560 Set register_type method.
2562 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2564 * Makefile.in (linux-nat.o): Add rule.
2565 * linux-nat.c: New file.
2566 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2567 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2568 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2569 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2570 * config/arm/linux.mh (NATDEPFILES): Likewise.
2571 * config/i386/linux.mh (NATDEPFILES): Likewise.
2572 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2573 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2574 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2575 * config/mips/linux.mh (NATDEPFILES): Likewise.
2576 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2577 * config/s390/s390.mh (NATDEPFILES): Likewise.
2578 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2580 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2582 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2583 replace out-of-date comment.
2585 2003-06-15 Andrew Cagney <cagney@redhat.com>
2587 * rdi-share/host.h (Fail): Change to a varargs function.
2588 * remote-rdi.c (Fail): Update.
2590 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2592 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2593 (i386_convert_register_p, i386_register_to_value,
2594 i386_register_from_value): Handle types longer than 8 bytes.
2596 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2598 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2599 Move floating-point code to new function in i387-tdep.c.
2600 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2601 New functions containing code moved here from i386-tdep.c.
2602 * i387-tdep.h: Add opaque declaration for `struct type'.
2603 (i387_register_to_value, i387_value_to_register): New prototypes.
2604 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2605 (x86_64_init_abi): Set convert_register_p, register_to_value and
2606 value_to_register here.
2608 2003-06-14 Andrew Cagney <cagney@redhat.com>
2610 * mips-tdep.c (mips_register_to_value): Make static.
2611 (mips_value_to_register): Make static.
2612 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2613 * ia64-tdep.c (ia64_register_raw_size): Make static.
2614 (ia64_register_virtual_size): Make static.
2615 (ia64_register_byte): Make static.
2616 * i387-tdep.c: Include "i387-tdep.h".
2617 (print_387_control_word): Delete function.
2618 (print_387_status_word): Delete function.
2619 (print_387_status_bits): Delete function.
2620 (print_387_control_bits): Delete function.
2621 * Makefile.in (i387-tdep.o): Update dependencies.
2622 * rdi-share/host.h (Fail): Declare.
2623 * remote-rdi.c (Fail): Update to match declaration.
2625 2003-06-14 Andrew Cagney <cagney@redhat.com>
2627 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2628 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2629 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2630 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2631 * README: Delete reference to remote-array.
2632 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2633 (remote-array.o): Delete target.
2634 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2635 * remote-array.c: Delete file.
2637 2003-06-14 Andrew Cagney <cagney@redhat.com>
2638 Mark Kettenis <kettenis@gnu.org>
2640 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2641 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2642 parameter with "frame".
2643 * gdbarch.h, gdbarch.c: Re-generate.
2644 * frame.h (put_frame_register): Declare.
2645 * frame.c (put_frame_register): New function.
2646 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2647 (legacy_register_to_value): Rewrite, use "frame" to get the
2649 (legacy_value_to_register): Rewrite, use "frame" to find the
2650 register's location before storing.
2651 * arch-utils.h (legacy_convert_register_p): Update.
2652 (legacy_register_to_value, legacy_value_to_register): Update.
2653 * findvar.c (value_from_register): Rewrite, eliminate use of
2654 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2655 "frame" to REGISTER_TO_VALUE.
2656 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2657 lval_reg_frame_relative + lval_register branch of the switch. Do
2658 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2659 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2660 I386_EDI_REGNUM): New defines.
2661 (i386_next_regnum, i386_convert_register_p,
2662 i386_register_to_value, i386_value_to_register): New functions.
2663 (i386_register_convertible, i386_register_convert_to_virtual,
2664 i386_convert_to_raw): Remove functions.
2665 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2666 value_to_register instead of register_convertible,
2667 register_convert_to_virtual and register_convert_to_raw.
2668 * mips-tdep.c (mips_convert_register_p): New function.
2669 (mips_value_to_register): Replace mips_register_convert_from_type.
2670 (mips_register_to_value): Replace mips_register_convert_to_type.
2671 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2673 * alpha-tdep.c (alpha_convert_register_p): Update.
2674 (alpha_value_to_register): Update, store the register.
2675 (alpha_register_to_value): Update, fetch the register.
2677 2003-06-14 Theodore A. Roth <troth@openavr.org>
2679 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2680 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2681 Don't set deprecated_call_dummy_words.
2682 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2683 Don't set remote_translate_xfer_address.
2684 (avr_io_reg_read_command): Remove commented out debug printf.
2687 2003-06-14 Theodore A. Roth <troth@openavr.org>
2689 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2690 causes gdb to seg fault.
2692 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2694 * sparc-nat.c (fetch_inferior_registers): Correct
2695 a reference to "registers".
2697 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2699 * Makefile.in (exc_request_U_h): Define
2700 (exc_request_S_h): Likewise.
2701 (msg_reply_S_h): Likewise.
2702 (msg_U_h): Likewise.
2703 (notify_S_h): Likewise.
2704 (process_reply_S_h): Likewise.
2705 (gnu-nat.o): Depend on gdb_obstack_h
2706 * gnu-nat.c: Include "gdb_obstack.h".
2708 2003-06-13 Andrew Cagney <cagney@redhat.com>
2710 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2711 * gdbarch.h, gdbarch.c: Re-generate.
2713 2003-06-13 Andrew Cagney <cagney@redhat.com>
2715 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2716 when deprecated REGISTER macros can be deleted.
2717 * gdbarch.h, gdbarch.c: Re-generate.
2719 2003-06-13 Jim Blandy <jimb@redhat.com>
2721 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2722 Linux entry point symbols for _dl_debug_state, too.
2724 2003-06-13 Andrew Cagney <cagney@redhat.com>
2726 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2727 available, do not use the FP register, and always save the TOS.
2728 * dummy-frame.c (dummy_frame_this_id): Do not assert
2729 SAVE_DUMMY_FRAME_TOS.
2730 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2731 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2732 (i386_push_dummy_call): Add 8 to the returned SP.
2733 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2734 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2735 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2736 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2737 (x86_64_push_dummy_call): Return "sp + 16".
2738 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2739 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2740 save_dummy_frame_tos.
2742 2003-06-13 Jim Blandy <jimb@redhat.com>
2744 * frv-tdep.c (frv_use_struct_convention): Delete static
2745 declaration for function deleted in my change of 2003-06-12.
2747 2003-06-13 Theodore A. Roth <troth@openavr.org>
2749 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2750 (avr_pointer_to_address): Shift code addrs left 1 bit.
2751 (avr_convert_from_func_ptr_addr): Delete function since operation is
2752 better handled by avr_address_to_pointer and avr_pointer_to_address.
2753 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2755 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2757 From Kelley Cook <kelleycook@wideopenwest.com>:
2758 * configure.host: Accept i[34567]86 variants.
2759 * configure.tgt: Likewise.
2760 * nlm/configure.in: Likewise.
2761 * nlm/configure: Regenerated.
2763 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2765 * arm-tdep.c (solib-svr4.h): Dont' include it.
2766 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2767 * arm-linux-tdep.c: ... here. Make static.
2768 (arm_linux_init_abi): Register it.
2769 (solib-svr4.h): Include it.
2770 * Makefile.in: Update dependencies.
2771 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2772 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2774 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2776 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2777 indicate registers used for return values.
2778 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2779 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2781 (h8300_init_extra_frame_info): Ditto.
2782 (h8300_frame_locals_address): Removed.
2783 (h8300_frame_args_address): Removed.
2784 (h8300_extract_return_value): Use new regcache structure. Only care
2786 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2787 (h8300_store_return_value): Use new regcache structure. Only care
2789 (h8300h_store_return_value): Same function for 32 bit CPUs.
2790 (h8300_store_struct_return): Removed.
2791 (h8300_extract_struct_value_address): Use new regcache structure.
2792 (h8300h_extract_struct_value_address): Removed.
2793 (h8300_push_dummy_code): New function.
2794 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2795 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2796 set_gdbarch_store_return_value architecture dependent.
2797 Call set_gdbarch_push_dummy_code and
2798 set_gdbarch_extract_struct_value_address.
2799 Remove calls to set_gdbarch_frame_args_address,
2800 set_gdbarch_frame_locals_address,
2801 set_gdbarch_deprecated_store_struct_return,
2802 set_gdbarch_deprecated_extract_return_value,
2803 set_gdbarch_deprecated_extract_struct_value_address,
2804 set_gdbarch_deprecated_call_dummy_words and
2805 set_gdbarch_deprecated_sizeof_call_dummy_words.
2807 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2809 * h8300-tdep.c (h8300_register_byte): Remove.
2810 (h8300h_register_byte): Remove.
2811 (h8300_register_virtual_type): Remove. Substitute by...
2812 (h8300_register_type): New function.
2813 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2814 (h8300h_extract_struct_value_address): Ditto.
2815 (h8300_gdbarch_init): Drop calls to
2816 set_gdbarch_deprecated_register_byte and
2817 set_gdbarch_deprecated_register_virtual_type.
2818 Add call to set_gdbarch_register_type.
2820 2003-06-13 Andrew Cagney <cagney@redhat.com>
2822 * gdbarch.sh: Update comments on registers.
2823 (deprecated_register_byte): Rename register_byte.
2824 (deprecated_register_raw_size): Rename register_raw_size.
2825 (deprecated_register_virtual_size): Rename register_virtual_size.
2826 (deprecated_register_virtual_type): Rename register_virtual_type.
2827 * gdbarch.h, gdbarch.c: Re-generate.
2828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2829 * vax-tdep.c (vax_gdbarch_init): Update.
2830 * v850-tdep.c (v850_gdbarch_init): Update.
2831 * sparc-tdep.c (sparc_gdbarch_init): Update.
2832 * sh-tdep.c (sh_gdbarch_init): Update.
2833 * s390-tdep.c (s390_gdbarch_init): Update.
2834 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2835 * ns32k-tdep.c: Update.
2836 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2837 * mips-tdep.c (mips_gdbarch_init): Update.
2838 * mcore-tdep.c (mcore_gdbarch_init): Update.
2839 * m68k-tdep.c (m68k_gdbarch_init): Update.
2840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2841 * ia64-tdep.c (ia64_gdbarch_init): Update.
2842 * hppa-tdep.c (hppa_gdbarch_init): Update.
2843 * h8300-tdep.c (h8300_gdbarch_init): Update.
2844 * frv-tdep.c (frv_gdbarch_init): Update.
2845 * cris-tdep.c (cris_gdbarch_init): Update.
2846 * avr-tdep.c (avr_gdbarch_init): Update.
2847 * alpha-tdep.c (alpha_gdbarch_init): Update.
2848 * arm-tdep.c (arm_gdbarch_init): Update.
2850 2003-06-13 Andrew Cagney <cagney@redhat.com>
2852 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2853 mips_o32_use_struct_convention with always_use_struct_convention.
2855 2003-06-12 David Carlton <carlton@kealia.com>
2857 * cp-namespace.c (cp_set_block_scope): Comment out
2858 processing_has_namespace_info branch.
2860 2003-06-12 Jim Blandy <jimb@redhat.com>
2862 Recognize and skip 64-bit PowerPC Linux linkage functions.
2863 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2864 insn_pattern, insns_match_pattern, d_field, ds_field): New
2865 functions, macros, and types for working with PPC instructions.
2866 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2867 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2868 ppc64_skip_trampoline_code): New functions, variables, and macros
2869 for recognizing and skipping linkage functions.
2870 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2871 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2873 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2874 register offsets for both the 32- and 64-bit interfaces.
2876 Actually finish the job started by my change of 2003-05-29.
2877 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2878 other #definition of this.
2879 (ppc_linux_skip_trampoline_code): Remove declaration.
2880 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2882 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2885 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2886 'long' on ppc64-*-linux*.
2888 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2889 isn't #defined, assume the register doesn't exist: act as if
2890 tdep->ppc_mq_regnum were -1.
2892 * configure.host, configure.tgt: Add entries for
2893 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2895 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2898 * arch-utils.c (always_use_struct_convention): New function.
2899 * arch-utils.h (always_use_struct_convention): New prototype.
2900 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2901 (alpha_gdbarch_init): Register always_use_struct_convention,
2902 instead of alpha_use_struct_convention.
2903 * cris-tdep.c (cris_use_struct_convention): Delete.
2904 (cris_gdbarch_init): Register always_use_struct_convention,
2905 instead of cris_use_struct_convention.
2906 * frv-tdep.c (frv_use_struct_convention): Delete.
2907 (frv_gdbarch_init): Register always_use_struct_convention,
2908 instead of frv_use_struct_convention.
2909 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2910 (h8300_gdbarch_init): Register always_use_struct_convention,
2911 instead of h8300_use_struct_convention.
2912 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2913 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2914 instead of mips_o32_use_struct_convention.
2916 2003-06-12 Andrew Cagney <cagney@redhat.com>
2918 * wince.c: Include "mips-tdep.h".
2919 * mips-tdep.h (mips_next_pc): Declare.
2920 * mcore-tdep.c: Make more local functions static.
2921 * Makefile.in (wince.o): Update dependencies.
2923 2003-06-12 David Carlton <carlton@kealia.com>
2925 * symtab.c (lookup_symbol_aux_minsyms): Replace
2926 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2927 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2928 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2929 SYMBOL_NATURAL_NAME.
2931 2003-06-12 Andreas Schwab <schwab@suse.de>
2933 * Makefile.in (tuiDisassem.o): Update dependencies.
2935 2003-06-12 David Carlton <carlton@bactrian.org>
2937 * symtab.h: Delete declaration of make_symbol_overload_list.
2938 Add declaration of lookup_partial_symbol.
2939 * symtab.c (remove_params): Move to cp-support.c.
2940 (overload_list_add_symbol, make_symbol_overload_list)
2941 (sym_return_val_size, sym_return_val_index): Ditto.
2942 (lookup_partial_symbol): Make extern.
2943 * cp-support.h: Add declaration of make_symbol_overload_list.
2944 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2945 symtab.h, and block.h.
2946 (remove_params): Move here from symtab.c.
2947 (overload_list_add_symbol, make_symbol_overload_list)
2948 (sym_return_val_size, sym_return_val_index): Ditto.
2949 * valops.c: Include cp-support.h.
2950 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2951 frame_h, and block_h.
2952 (valops.o): Depend on cp_support_h.
2954 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2956 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2957 substitute by NUM_REGS throughout.
2958 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2959 (h8300s_register_name): New function for H8S registers.
2960 (h8300sx_register_name): Ditto for H8SX registers.
2961 (h8300_print_register): Revise register printing, avoid depending
2963 (h8300_register_byte): Only care for H8/300 registers.
2964 (h8300h_register_byte): New function for any other architecture.
2965 (h8300_register_raw_size): Remove.
2966 (h8300_register_virtual_type): Revise to return actually useful
2968 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2969 (h8300h_extract_struct_value_address): New function for any other
2971 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2972 set_gdbarch_register_name, set_gdbarch_register_byte,
2973 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2974 Remove calls to set_gdbarch_deprecated_register_size,
2975 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2976 set_gdbarch_deprecated_max_register_raw_size,
2977 set_gdbarch_register_virtual_size and
2978 set_gdbarch_deprecated_max_register_virtual_size entirely.
2979 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2980 set_gdbarch_long_double_bit.
2982 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2984 * doublest.c (convert_doublest_to_floatformat): When dealing
2985 with the implied integer bit, only alter mant_bits if we are
2986 processing a full 32 bits of mantissa.
2988 2003-06-11 David Carlton <carlton@bactrian.org>
2990 * dictionary.h: New.
2991 * dictionary.c: New.
2992 * block.h: Add opaque declaration for struct dictionary.
2993 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2995 (BLOCK_DICT): New macro.
2996 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2997 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2999 (ALL_BLOCK_SYMBOLS): Update definition.
3000 * Makefile.in (SFILES): Add dictionary.c.
3001 (dictionary_h): New.
3002 (COMMON_OBS): Add dictionary.o.
3003 (dictionary.o): New.
3004 (ada-lang.o): Depend on dictionary_h.
3005 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3006 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3007 (mi-cmd-stack.o): Ditto.
3008 (gdbtk-cmds.o): Update dependencies.
3009 (gdbtk-stack.o): Ditto.
3010 * ada-lang.c: Include dictionary.h.
3011 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3012 (fill_in_ada_prototype, debug_print_block): Ditto.
3013 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3014 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3016 * mdebugread.c: Include dictionary.h.
3017 (struct parse_stack): Delete 'maxsyms' member.
3018 (parse_symbol): Update calls to new_block. Delete calls to
3019 shrink_block. Use dictionary methods.
3020 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3021 Update calls to new_symtab. Don't maintain maxsyms data.
3022 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3023 (add_symbol): Just call dict_add_symbol.
3024 (new_symtab): Delete 'maxsyms' argument.
3025 (new_symtab): Update calls to new_block.
3026 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3027 (shrink_block): Delete function.
3028 (fixup_sigtramp): Update call to new_block. Add symbol via
3030 * jv-lang.c: Include dictionary.h.
3031 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3032 appropriately. Set class_symtab->free_func. Make sure the
3033 blockvector is big enough to hold two blocks.
3034 (add_class_symtab_symbol): Use dictionary methods.
3035 (free_class_block): New function.
3036 (type_from_class): Replace explicit iteration by
3038 * symtab.h (struct symtab): Replace 'free_ptr' method by
3040 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3042 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3044 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3045 Include dictionary.h.
3046 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3047 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3049 * objfiles.c: Include dictionary.h.
3050 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3051 * buildsym.c: Include dictionary.h.
3052 (finish_block): Use dictionary methods.
3053 (end_symtab): Set free_func to NULL, not free_ptr.
3054 * tracepoint.c: Include dictionary.h.
3055 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3056 (scope_info): Ditto.
3057 * stack.c: Include dictionary.h.
3058 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3059 (print_block_frame_labels, print_frame_arg_vars)
3060 (print_frame_args): Ditto.
3061 * symmisc.c (free_symtab_block): Use dictionary methods.
3062 (dump_symtab): Ditto.
3063 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3064 Include dictionary.h.
3065 * symfile.h: Delete declarations of sort_block_syms,
3067 * symfile.c (sort_block_syms): Delete.
3068 (sort_symtab_syms): Delete.
3069 * symtab.c: Include dictionary.h.
3070 (lookup_block_symbol): Use dictionary iterators.
3071 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3072 (search_symbols, make_symbol_completion_list): Ditto.
3073 (make_symbol_overload_list): Ditto.
3074 * valops.c (value_of_local): Use dict_empty.
3075 Include dictionary.h.
3077 2003-06-11 J. Brobecker <brobecker@gnat.com>
3079 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3081 2003-06-11 David Carlton <carlton@bactrian.org>
3083 * block.h (BLOCK_SHOULD_SORT): Delete.
3084 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3086 * ada-lang.c (ada_add_block_symbols): Ditto.
3087 * symfile.c (sort_block_syms): Delete.
3088 (sort_symtab_syms): Ditto.
3089 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3091 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3092 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3093 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3094 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3095 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3096 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3097 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3099 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3101 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3104 2003-06-11 Andrew Cagney <cagney@redhat.com>
3106 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3107 REGISTER_CONVERTIBLE.
3108 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3109 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3110 * gdbarch.h, gdbarch.c: Re-generate.
3111 * arch-utils.h (deprecated_register_convertible_not): Rename
3112 generic_register_convertible_not.
3113 * arch-utils.c (deprecated_register_convertible_not): Rename
3114 generic_register_convertible.
3115 (legacy_convert_register_p, legacy_register_to_value): Update.
3116 * sh-tdep.c (sh64_push_arguments): Update.
3117 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3118 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3119 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3120 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3121 * arch-utils.c (legacy_value_to_register): Update.
3122 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3123 (rs6000_register_convert_to_raw): Make parameter "from" const.
3124 * mips-tdep.c (mips_gdbarch_init): Update.
3125 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3126 * infcmd.c (default_print_registers_info): Update.
3127 * ia64-tdep.c (ia64_gdbarch_init): Update.
3128 (ia64_register_convert_to_raw): Make parameter "from" const.
3129 * i386-tdep.c (i386_gdbarch_init): Update.
3130 (i386_register_convert_to_raw): Update.
3132 2003-06-11 Andrew Cagney <cagney@redhat.com>
3134 * remote-fileio.c: Include "remote-fileio.h".
3135 * Makefile.in (remote-fileio.o): Update dependencies.
3136 (remote_fileio_h): Fix typo.
3138 2003-06-11 Andrew Cagney <cagney@redhat.com>
3140 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3141 (xstormy16_save_dummy_frame_tos): Make static.
3142 (_initialize_xstormy16_tdep): Add declaration.
3143 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3144 * v850-tdep.c: Make local functions static.
3145 (_initialize_v850_tdep): Add declaration.
3146 * sparc-tdep.c: Make local functions static.
3147 (_initialize_sparc_tdep): Add declaration.
3148 * sh-tdep.c: Make local functions static.
3149 (_initialize_sh_tdep): Add declaration.
3150 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3151 * s390-tdep.c: Make local functions static.
3152 (_initialize_s390_tdep): Add declaration.
3153 * dbxread.c (find_stab_function_addr): Make static.
3154 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3155 * ocd.c (_initialize_remote_ocd): Add declaration.
3156 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3157 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3158 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3159 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3160 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3161 * remote-array.c (_initialize_array): Add declaration.
3162 (_initialize_remote_monitors): Add declaration.
3163 * remote-mips.c: Make local functions static.
3164 (_initialize_remote_mips): Add declaration.
3165 * mcore-tdep.c: Make all local functions static.
3166 (_initialize_mcore_tdep): Add declaration.
3167 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3168 * abug-rom.c (_initialize_abug_rom): Add declaration.
3169 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3170 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3171 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3172 * remote-est.c (_initialize_est): Add declaration.
3173 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3174 (m68hc11_call_dummy_address): Make static.
3175 * ia64-tdep.c: Make local functions static.
3176 (_initialize_ia64_tdep): Add declaration.
3177 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3178 * monitor.c (monitor_wait_filter): Make static.
3179 (_initialize_remote_monitors): Add declaration.
3180 * remote-hms.c (_initialize_remote_hms): Add declaration.
3181 * remote-e7000.c (fetch_regs_from_dump): Make static.
3182 (expect_n): Make static.
3183 (_initialize_remote_e7000): Add declaration.
3184 * ser-e7kpc.c: Always include "defs.h".
3185 (_initialize_ser_e7000pc): Add declaration.
3186 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3187 * cris-tdep.c: Make all but one function static.
3188 (_initialize_cris_tdep): Add declaration.
3189 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3190 * solib.c (update_solib_list): Make static.
3191 (_initialize_solib): Add declaration.
3192 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3193 (_initialize_avr_tdep): Add declaration.
3194 * remote-rdi.c (voiddummy): Make static.
3195 (_initialize_remote_rdi): Add declaration.
3196 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3197 * remote-rdp.c (send_rdp): Make static.
3198 (_initialize_remote_rdp): Add declaration.
3199 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3201 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3203 * remote-fileio.c: Make ari happy.
3205 2003-06-10 J. Brobecker <brobecker@gnat.com>
3207 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3208 fetching the trailing bytes of the buffer we are about to write.
3210 2003-06-10 Andrew Cagney <cagney@redhat.com>
3212 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3213 * Makefile.in (remote-fileio.o): Update dependencies.
3214 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3215 include <setjmp.h>, or <sys/types.h> conditional on USG.
3216 (remote_fio_jmp_buf): Delete global variable.
3218 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3219 Martin M. Hunt <hunt@redhat.com>
3221 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3222 (SFILES): Add remote-fileio.c.
3223 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3224 dependencies for building remote.o.
3225 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3226 * remote-fileio.h: New header file defining remote File-I/O interface.
3227 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3228 static storage class.
3229 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3231 (_initialize_remote): Call initialize_remote_fileio().
3232 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3233 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3234 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3235 (captured_main): Initialize new ui_files.
3236 * ui-file.c: Add read and fgets input functions.
3237 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3238 (null_file_read): New function.
3239 (ui_file_read): New function.
3240 (set_ui_file_read): New function.
3241 (stdio_file_read): New function.
3242 * ui-file.h: New type ui_file_read_ftype.
3243 (set_ui_file_read): Declare.
3244 (ui_file_read): Declare.
3246 2003-06-09 Andrew Cagney <cagney@redhat.com>
3248 * frame.h (deprecated_unwind_get_saved_register): Rename
3249 generic_unwind_get_saved_register, update comments.
3250 * mips-tdep.c (mips_get_saved_register): Update.
3251 * frame.c (deprecated_unwind_get_saved_register): Update.
3253 2003-06-09 Andrew Cagney <cagney@redhat.com>
3255 * vax-tdep.c (vax_frame_locals_address): Delete function.
3256 (vax_gdbarch_init): Do not set frame_locals_address.
3257 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3258 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3259 * s390-tdep.c (s390_frame_args_address): Delete function.
3260 (s390_gdbarch_init): Do not set frame_args_address or
3261 frame_locals_address.
3262 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3263 (ns32k_gdbarch_init): Do not set frame_locals_address.
3264 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3265 (hppa_frame_locals_address): Delete function.
3266 (hppa_gdbarch_init): Do not set frame_args_address, or
3267 frame_locals_address.
3268 * arm-tdep.c (arm_frame_args_address): Delete.
3269 (arm_frame_locals_address): Delete.
3270 (arm_gdbarch_init): Do not set frame_args_address, or
3271 frame_locals_address.
3273 2003-06-09 Andrew Cagney <cagney@redhat.com>
3275 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3276 * gdbarch.h, gdbarch.c: Re-generate.
3277 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3278 * arch-utils.c (frame_num_args_unknown): Delete function.
3279 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3280 (frame_info): Use FRAME_NUM_ARGS_P.
3281 * arm-tdep.c (arm_frame_num_args): Delete function.
3282 (arm_gdbarch_init): Do not set frame_num_args.
3283 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3284 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3285 (hppa_gdbarch_init): Do not set frame_num_args.
3286 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3287 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3288 frame_num_args to default frame_num_args_unknown.
3289 * v850-tdep.c (v850_gdbarch_init): Ditto.
3290 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3291 * sh-tdep.c (sh_gdbarch_init): Ditto.
3292 * s390-tdep.c (s390_gdbarch_init): Ditto.
3293 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3294 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3295 * mips-tdep.c (mips_gdbarch_init): Ditto.
3296 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3297 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3299 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3300 * i386-tdep.c (i386_gdbarch_init): Ditto.
3301 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3302 * frv-tdep.c (frv_gdbarch_init): Ditto.
3303 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3304 * cris-tdep.c (cris_gdbarch_init): Ditto.
3305 * avr-tdep.c (avr_gdbarch_init): Ditto.
3306 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3308 2003-06-09 Andrew Cagney <cagney@redhat.com>
3310 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3311 (print_frame_args): Moved to "stack.c".
3312 * stack.c: Include "gdb_assert.h".
3313 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3314 (print_frame_args): Moved from "printcmd.c".
3315 * frame.h (print_frame_args): Delete declaration.
3316 * Makefile.in (stack.o): Update dependencies.
3318 2003-06-08 Andrew Cagney <cagney@redhat.com>
3320 * frame.c (get_prev_frame): Remove reference to
3321 frame_args_address_correct in comments.
3322 * frame-base.c (default_frame_args_address): Delete code
3323 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3324 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3325 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3326 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3327 (vax_frame_args_address_correct): Delete declaration.
3329 2003-06-08 Andrew Cagney <cagney@redhat.com>
3331 * gdbarch.sh (UNWIND_SP): Add.
3332 * gdbarch.h, gdbarch.c: Re-generate.
3333 * frame.c (frame_sp_unwind): New function.
3334 (get_frame_sp): New function.
3335 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3336 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3337 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3339 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3340 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3342 2003-06-08 Andrew Cagney <cagney@redhat.com>
3344 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3347 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3348 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3349 * config/m68k/tm-sun3.h: Update.
3350 * config/m68k/tm-m68klynx.h: Update.
3351 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3353 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3354 trad_frame". Update comments.
3355 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3356 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3357 (trad_frame_register_value, trad_frame_prev_register): Update.
3359 2003-06-08 Andrew Cagney <cagney@redhat.com>
3361 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3362 from GCC's acinclude.m4.
3363 * configure.in: Check for getopt's delcaration.
3364 * aclocal.m4, config.in, configure: Re-generate.
3365 * main.c (error_init): Delete declaration.
3366 * defs.h (error_init): Declare.
3367 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3368 (rs6000_convert_from_func_ptr_addr): Make static.
3369 (_initialize_rs6000_tdep): Add declaration.
3370 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3371 (show_commands, set_verbose, show_history): Delete declaration.
3372 * top.h (set_verbose): Add declaration.
3373 (show_history, set_history, show_commands): Add declaration.
3374 (do_restore_instream_cleanup): Add declaration.
3375 * objc-lang.c (specialcmp): Make static.
3376 (print_object_command): Make static.
3377 (find_objc_msgsend): Make static.
3378 (find_objc_msgcall_submethod_helper): Make static.
3379 (find_objc_msgcall_submethod): Make static.
3380 (_initialize_objc_language): Add declaration.
3381 (find_implementation_from_class): Make static.
3382 (find_implementation): Make static.
3383 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3384 * objc-lang.h (lookup_struct_typedef): Add declaration.
3385 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3386 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3387 (do_restore_user_call_depth): Make static.
3388 (do_restore_instream_cleanup): Delete declaration.
3389 (dont_repeat): Delete declaration.
3390 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3391 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3392 * reggroups.c (_initialize_reggroup): Add declaration.
3393 * cp-support.c (_initialize_cp_support): Add declaration.
3394 * cp-abi.c (_initialize_cp_abi): Add declaration.
3395 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3396 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3397 (_initialize_gnu_v3_abi): Add declaration.
3398 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3399 (_initialize_gnu_v2_abi): Add declaration.
3400 * frame-base.c (_initialize_frame_base): Add declaration.
3401 * doublest.c (floatformat_from_length): Make static.
3402 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3403 * frame.c (create_sentinel_frame): Make static.
3404 (_initialize_frame): Add declaration.
3405 * top.c (do_catch_errors): Make static.
3406 (gdb_rl_operate_and_get_next_completion): Make static.
3407 * typeprint.c: Include "typeprint.h".
3408 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3409 (sentinel_frame_this_id): Make static.
3410 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3411 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3412 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3413 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3414 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3415 * maint.c (maintenance_print_architecture): Make static.
3416 * signals/signals.c (_initialize_signals): Add declaration.
3417 * std-regs.c (_initialize_frame_reg): Add declaration.
3418 * jv-exp.y (push_variable): ISO C definition.
3419 (push_qualified_expression_name): Ditto.
3420 * memattr.c (_initialize_mem): Add declaration.
3421 * remote.c (remote_check_watch_resources): Make static.
3422 (remote_stopped_by_watchpoint): Make static.
3423 (remote_stopped_data_address): Make static.
3424 * d10v-tdep.c (nr_dmap_regs): Make static.
3425 (a0_regnum): Make static.
3426 (d10v_frame_unwind_cache): Make static.
3427 (d10v_frame_p): Make static.
3428 * osabi.c (show_osabi): Make static.
3429 (_initialize_gdb_osabi): Add extern declaration.
3430 * gdbtypes.c (make_qualified_type): Make static.
3431 (safe_parse_type): Make static.
3432 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3433 * macrotab.c (macro_bcache_free): Make static.
3434 * interps.c (interp_set_quiet): Make static.
3435 (interpreter_exec_cmd): Make static.
3436 * stack.h (select_frame_command): New file.
3437 * stack.c: Include "stack.h".
3438 (select_frame_command_wrapper): Delete function.
3439 (select_frame_command): Make global.
3440 * infcall.c: Include "infcall.h".
3441 * linespec.c: Include "linespec.h".
3442 * symfile.c (sections_overlap): Make static.
3443 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3444 * charset.c (_initialize_charset): Add missing prototype.
3445 * regcache.c (init_legacy_regcache_descr): Make static.
3446 (do_regcache_xfree): Make static.
3447 (regcache_xfer_part): Make static.
3448 (_initialize_regcache): Add missing prototype.
3449 * breakpoint.c (parse_breakpoint_sals): Make static.
3450 (breakpoint_sals_to_pc): Make static.
3451 * interps.h (clear_interpreter_hooks): ISO C declaration.
3452 * Makefile.in (stack_h): Define.
3453 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3454 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3456 2003-06-08 Andrew Cagney <cagney@redhat.com>
3458 * Makefile.in (d10v-tdep.o): Update dependencies.
3459 (SFILES): Add trad-frame.c.
3460 (trad_frame_h): Define.
3461 (COMMON_OBS): Add trad-frame.o.
3462 (trad-frame.o): Specify dependencies.
3463 * d10v-tdep.c: Include "trad-frame.h".
3464 (saved_regs_unwinder): Delete function.
3465 (d10v_frame_prev_register): Use trad_frame_prev_register.
3466 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3467 trad_frame", delete "regs" and "prev_sp".
3468 (prologue_find_regs): Use trad-frame.
3469 * trad-frame.h, trad-frame.c: New files.
3471 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3473 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3475 2003-06-07 Adam Fedor <fedor@gnu.org>
3477 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3478 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3479 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3480 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3481 resolve_msgsend_super, resolve_msgsend_super_stret):
3484 2003-06-07 Andrew Cagney <cagney@redhat.com>
3486 * symfile.h: Re-indent, clean up comments.
3488 2003-06-07 Andrew Cagney <cagney@redhat.com>
3490 * inferior.h (deprecated_write_sp): Replace
3491 generic_target_write_sp.
3492 * regcache.c (deprecated_write_sp): Replace
3493 generic_target_write_sp.
3494 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3495 * vax-tdep.c (vax_gdbarch_init): Update.
3496 * v850-tdep.c (v850_gdbarch_init): Update.
3497 * sparc-tdep.c (sparc_gdbarch_init): Update.
3498 * sh-tdep.c (sh_gdbarch_init): Update.
3499 * s390-tdep.c (s390_gdbarch_init): Update.
3500 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3501 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3502 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3503 * mcore-tdep.c (mcore_gdbarch_init): Update.
3504 * m68k-tdep.c (m68k_gdbarch_init): Update.
3505 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3506 * ia64-tdep.c (ia64_gdbarch_init): Update.
3507 * h8300-tdep.c (h8300_gdbarch_init): Update.
3508 * frv-tdep.c (frv_gdbarch_init): Update.
3509 * cris-tdep.c (cris_gdbarch_init): Update.
3510 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3512 2003-06-07 Andrew Cagney <cagney@redhat.com>
3514 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3515 Assert that PC_REGNUM is valid.
3516 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3518 2003-06-07 Andrew Cagney <cagney@redhat.com>
3520 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3521 * gdbarch.h, gdbarch.c: Regenerate.
3522 * mn10300-tdep.c: Include "gdb_assert.h".
3523 (mn10300_read_fp): New function.
3524 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3525 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3526 * ia64-tdep.c: Include "gdb_assert.h".
3527 (ia64_read_fp): New function.
3528 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3529 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3530 * regcache.c (generic_target_read_sp): Delete function.
3531 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3532 * inferior.h (generic_target_read_sp): Delete declaration.
3533 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3534 generic_target_read_sp.
3535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3536 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3537 * sh-tdep.c (sh_gdbarch_init): Ditto.
3538 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3539 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3541 2003-06-07 Andrew Cagney <cagney@redhat.com>
3543 * gdbarch.sh: Comment each field of startup_gdbarch.
3544 * gdbarch.h, gdbarch.c: Re-generate.
3546 2003-06-07 Andrew Cagney <cagney@redhat.com>
3548 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3549 * gdbarch.h, gdbarch.c: Re-generate.
3550 * regcache.c: Update comments on read_pc et.al.
3551 (generic_target_read_pc): Delete function.
3552 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3553 * inferior.h (generic_target_read_pc): Delete declaration.
3554 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3555 generic_target_read_pc.
3556 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3557 * sh-tdep.c (sh_gdbarch_init): Ditto.
3558 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3561 2003-06-07 Andrew Cagney <cagney@redhat.com>
3563 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3564 "index" with "special_local_sect". Use strcmp instead of STREQ.
3565 Append period to coments.
3567 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3569 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3570 (elfstab_offset_sections): Likewise.
3571 * gdb-stabs.h (stab_section_info): Likewise.
3572 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3573 * objfiles.c (objfile_relocate): Likewise.
3574 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3575 * remote.c (get_offsets): Likewise.
3576 (remote_cisco_objfile_relocate): Likewise.
3577 * somread.c (som_symfile_offsets): Likewise.
3578 * symfile.c (alloc_section_addr_info): New function.
3579 (build_section_addr_info_from_section_tab): Use it.
3580 (free_section_addr_info): Adjust.
3581 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3582 (syms_from_objfile): Allocate local_addr dynamically.
3583 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3585 (add_symbol_file_command): Allocate sect_opts dynamically.
3586 (reread_symbols): Avoid use of SECT_OFF_MAX.
3587 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3588 (alloc_section_addr_info): Declare it.
3589 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3590 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3592 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3594 2003-06-06 Andrew Cagney <cagney@redhat.com>
3596 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3597 (d10v_frame_unwind_cache): Do not set "return_pc".
3599 2003-06-06 Michael Snyder <msnyder@redhat.com>
3601 * h8300-tdep.c: Make tidy (long lines).
3603 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3605 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3606 to regcache_collect().
3608 2003-06-05 J. Brobecker <brobecker@gnat.com>
3610 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3611 pc_in_sigtramp multiarch method.
3612 (hppa_hpux_som_init_abi): Use it.
3613 (hppa_hpux_elf_init_abi): Likewise.
3614 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3615 macro has been multiarched.
3616 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3617 macro here, as hppa64 isn't multiarched yet.
3619 2003-06-05 Andrew Cagney <cagney@redhat.com>
3621 * Makefile.in (value_h): Add $(frame_h).
3622 * value.h: Include "frame.h".
3623 (struct value): Replace "frame_addr" with "frame_id".
3624 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3625 * values.c (allocate_value): Use VALUE_FRAME_ID.
3626 (value_copy): Use VALUE_FRAME_ID.
3627 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3628 * valops.c (value_assign): Update. Use frame_find_by_id.
3630 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3632 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3635 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3637 * thread-db.c (check_event): For create/death event breakpoints,
3638 loop through all messages to ensure that we read the message
3639 corresponding to the breakpoint we are at.
3641 2003-06-04 Michael Snyder <msnyder@redhat.com>
3643 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3645 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3647 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3648 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3649 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3650 when handling .eh_frame sections.
3652 2003-06-04 J. Brobecker <brobecker@gnat.com>
3654 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3655 prepare_to_proceed procedure instead of the hppa-specific one.
3656 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3658 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3660 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3661 * config.in: Regenerated.
3662 * configure.in: Add test for syscall function and check for
3663 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3664 * configure: Regenerated.
3665 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3667 (kill_lwp): New function that uses tkill syscall or
3668 uses kill, depending on whether threading model is nptl or not.
3669 All callers of kill() changed to use kill_lwp().
3670 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3671 see if all threads have already exited in the nptl model.
3672 (stop_and_resume_callback): New callback function used by the
3673 lin_lwp_wait thread exit handling code.
3674 (stop_wait_callback): Check for threads already having exited and
3675 delete such threads fromt the lwp list when discovered.
3676 (stop_callback): Don't assert retcode of kill call.
3678 Roland McGrath <roland@redhat.com>
3679 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3682 2003-06-03 Richard Henderson <rth@redhat.com>
3684 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3685 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3686 (alpha_sigtramp_frame_prev_register): Likewise.
3687 (alpha_heuristic_frame_prev_register): Likewise.
3688 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3690 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3691 alpha-specific register id names.
3692 (alpha_mdebug_frame_unwind_cache): Likewise.
3693 (alpha_mdebug_frame_prev_register): Likewise.
3695 2003-06-03 Richard Henderson <rth@redhat.com>
3697 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3698 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3699 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3700 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3702 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3703 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3704 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3706 * alpha-linux-tdep.c: Remove unnecessary includes.
3707 * Makefile.in (alpha-linux-tdep.o): Update.
3709 2003-06-03 Richard Henderson <rth@redhat.com>
3711 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3712 (alphabsd_fill_fpreg): Likewise.
3714 2003-06-03 J. Brobecker <brobecker@gnat.com>
3716 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3717 references to struct frame_info fields by calls to the equivalent
3718 accessors. Necessary now that frame_info is opaque.
3720 2003-06-03 J. Brobecker <brobecker@gnat.com>
3722 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3723 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3724 structure, field no longer exists.
3726 2003-06-03 J. Brobecker <brobecker@gnat.com>
3728 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3729 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3731 2003-06-03 J. Brobecker <brobecker@gnat.com>
3733 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3734 references to struct frame_info fields by calls to the equivalent
3735 accessors. Necessary now that frame_info is opaque.
3737 2003-06-03 J. Brobecker <brobecker@gnat.com>
3739 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3740 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3741 structure, field no longer exists.
3743 2003-06-03 Theodore A. Roth <troth@openavr.org>
3745 * remote.c (init_remote_state): Compute sizeof_g_packet by
3746 accumulation of the size of all registers instead of blindly using
3747 DEPRECATED_REGISTER_BYTES.
3749 2003-06-03 Michael Snyder <msnyder@redhat.com>
3751 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3752 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3755 2003-06-03 J. Brobecker <brobecker@gnat.com>
3757 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3758 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3760 2003-06-03 Andrew Cagney <cagney@redhat.com>
3762 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3763 (sparc_convert_to_raw): Delete function.
3764 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3765 register_convert_to_virtual.
3767 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3769 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3770 layer if not dealing with a statically-linked threaded program.
3772 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3774 * solib.c (solib_open): Update comment to reflect actual search order.
3776 2003-06-03 Andrew Cagney <cagney@redhat.com>
3778 * frame.c (get_frame_memory_signed): New function.
3779 (get_frame_memory, get_frame_memory_unsigned): New function.
3780 (get_frame_arch): New function.
3781 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3782 (get_frame_memory, get_frame_unsigned_memory): Declare.
3783 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3784 get_frame_memory_unsigned and get_frame_arch.
3785 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3787 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3789 * MAINTAINERS (write after approval): Add myself.
3791 2003-06-03 Jim Blandy <jimb@redhat.com>
3793 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3794 elements of gregset_t are 64 bits each, but access registers
3795 are still 32 bits, so they're packed two per gregset_t
3796 element. Unpack/pack them properly.
3798 2003-06-02 David Carlton <carlton@bactrian.org>
3800 * linespec.c (find_methods): Break out code into
3801 add_matching_methods and add_constructors.
3802 (add_matching_methods): New.
3803 (add_constructors): Ditto.
3805 2003-06-02 Andrew Cagney <cagney@redhat.com>
3807 * sparc-tdep.c (sparc_print_registers): Delete call to
3808 REGISTER_CONVERTIBLE.
3809 (sparc_gdbarch_init): Do not set register_convertible.
3810 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3811 * frv-tdep.c (frv_gdbarch_init): Ditto.
3812 * cris-tdep.c (cris_gdbarch_init): Ditto.
3814 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3816 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3817 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3818 (syms_from_objfile): Ditto.
3820 2003-06-03 Andreas Schwab <schwab@suse.de>
3822 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3823 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3825 2003-06-02 Richard Henderson <rth@redhat.com>
3827 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3828 a member of all_reggroup.
3830 2003-06-02 Richard Henderson <rth@redhat.com>
3832 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3833 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3834 (alpha_lds, alpha_sts): New.
3835 (alpha_convert_register_p): Change from _register_convertible.
3836 (alpha_register_to_value): Change from _convert_to_virtual;
3837 restructure and fail for type sizes other than 4 or 8.
3838 (alpha_value_to_register): Similarly.
3839 (alpha_extract_return_value): Use alpha_sts.
3840 (alpha_store_return_value): Use alpha_lds.
3841 (alpha_gdbarch_init): Update hooks.
3843 2003-06-02 Richard Henderson <rth@redhat.com>
3845 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3847 (alpha_sigtramp_register_address): Likewise.
3849 2003-06-02 Richard Henderson <rth@redhat.com>
3851 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3852 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3853 * alpha-tdep.h: Declare them.
3855 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3856 Remove zerobuf. Don't error on UNIQUE.
3857 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3858 (ALPHA_REGSET_UNIQUE): Provide default.
3859 (supply_gregset): Use alpha_supply_int_regs.
3860 (fill_gregset): Use alpha_fill_int_regs.
3861 (supply_fpregset): Use alpha_supply_fp_regs.
3862 (fill_fpregset): Use alpha_fill_fp_regs.
3863 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3864 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3865 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3866 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3867 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3868 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3870 2003-06-02 Richard Henderson <rth@redhat.com>
3872 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3874 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3875 (alpha_store_return_value): Likewise.
3877 2003-06-02 David Carlton <carlton@math.stanford.edu>
3879 * block.c (contained_in): Add 'const' to arguments.
3880 (block_function): Ditto.
3881 * block.h: Update declarations for block_function and
3884 2003-06-02 David Carlton <carlton@math.stanford.edu>
3886 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3887 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3888 * p-valprint.c (pascal_val_print): Ditto.
3889 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3891 2003-06-02 Richard Henderson <rth@redhat.com>
3893 * alpha-tdep.c (alpha_push_dummy_call): Use
3894 builtin_type_ieee_double_little instead of builtin_type_double.
3896 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3897 sign-extension of 32-bit values.
3898 (alpha_store_return_value): Similarly.
3900 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3901 (alpha_extract_return_value): Likewise.
3902 (alpha_store_return_value): Likewise.
3904 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3905 (alpha_store_return_value): Error on IEEE Quad floats.
3907 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3908 (alpha_extract_struct_value_address): Likewise.
3909 (alpha_store_return_value): Likewise.
3910 (alpha_store_struct_return): Remove.
3911 (alpha_gdbarch_init): Update hook registration to match.
3913 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3914 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3915 macros where appropriate.
3916 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3917 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3919 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3920 for SP, GP; void_func_ptr for PC; non-language-specific types
3922 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3924 2003-06-02 Richard Henderson <rth@redhat.com>
3926 * top.h (lim_at_start): Declare.
3927 * main.c (captured_main): Set it.
3928 * top.c (lim_at_start): Define.
3929 (command_loop): Use it instead of &environ.
3930 * event-top.c (command_handler): Likewise.
3932 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3934 * mipsnbsd-tdep.c: Update copyright years.
3935 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3937 2003-06-01 Richard Henderson <rth@redhat.com>
3939 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3940 (alpha-linux-tdep.o): Update dependencies.
3941 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3942 * alpha-mdebug-tdep.c: Remove unneeded includes.
3944 2003-06-01 Richard Henderson <rth@redhat.com>
3946 * alpha-tdep.c (alpha_register_reggroup_p): New.
3947 (alpha_gdbarch_init): Register it.
3949 2003-06-02 Andrew Cagney <cagney@redhat.com>
3951 * dwarfread.c: Eliminate "register"
3952 (decode_die_type): Eliminate assignment within "if".
3953 (struct_type, decode_array_element_type): Ditto.
3954 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3955 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3956 (decode_modified_type, completedieinfo): Ditto.
3957 * block.c: Eliminate "register".
3958 (blockvector_for_pc_sect): Eliminate assignment within "if".
3959 * cp-support.h (struct symbol): Opaque declaration.
3960 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3962 2003-06-01 Richard Henderson <rth@redhat.com>
3964 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3965 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3967 2003-06-01 Adam Fedor <fedor@gnu.org>
3969 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3970 * gdbarch.[ch]: Regenerate.
3971 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3972 (hppa_gdbarch_init): Set it in the gdbarch vector.
3973 * i386-tdep.c (i386_fetch_pointer_argument): New
3974 (i386_gdbarch_init): Set it into gdbarch.
3975 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3976 (rs6000_gdbarch_init): Set it in gdbarch.
3977 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3978 (sparc_gdbarch_init): Set it in gdbarch.
3980 2003-06-01 Andrew Cagney <cagney@redhat.com>
3982 * defs.h (extract_address): Delete declaration.
3983 * findvar.c (extract_address): Delete function.
3984 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3985 extract_address with the inline equivalent,
3986 extract_unsigned_integer.
3987 (xstormy16_extract_struct_value_address): Ditto.
3988 (xstormy16_pointer_to_address): Ditto.
3989 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3990 * v850-tdep.c (v850_push_arguments): Ditto.
3991 (v850_extract_return_value): Ditto.
3992 (v850_extract_struct_value_address): Ditto.
3993 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3994 (sparcnbsd_get_longjmp_target_64): Ditto.
3995 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3996 (get_longjmp_target): Ditto.
3997 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3998 (sh64_extract_struct_value_address): Ditto.
3999 (sh_push_arguments): Ditto.
4000 (sh64_push_arguments): Ditto.
4001 * remote-vxsparc.c (vx_read_register): Ditto.
4002 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4003 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4004 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4005 * mipsv4-nat.c (get_longjmp_target): Ditto.
4006 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4007 * mips-nat.c (get_longjmp_target): Ditto.
4008 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4009 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4010 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4011 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4012 * irix5-nat.c (get_longjmp_target): Ditto.
4013 * irix4-nat.c (get_longjmp_target): Ditto.
4014 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4015 (ia64_push_arguments): Ditto.
4016 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4017 * h8300-tdep.c (h8300_push_arguments): Ditto.
4018 (h8300_store_return_value): Ditto.
4019 (h8300_extract_struct_value_address): Ditto.
4020 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4021 (frv_push_arguments): Ditto.
4022 * avr-tdep.c (avr_pointer_to_address): Ditto.
4023 (avr_push_arguments): Ditto.
4024 * arm-tdep.c (arm_push_dummy_call): Ditto.
4025 (arm_get_longjmp_target): Ditto.
4026 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4027 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4028 (alpha_get_longjmp_target): Ditto.
4030 * solib-irix.c (extract_mips_address): Inline extract_address,
4031 replacing it with extract_signed_integer.
4032 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4033 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4034 (first_link_map_member, open_symbol_file_object): Ditto.
4035 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4036 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4037 (LM_NEXT, LM_NAME): Ditto.
4039 2003-06-01 Richard Henderson <rth@redhat.com>
4041 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4042 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4043 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4044 (alpha_cannot_store_register): Likewise.
4045 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4046 * alpha-nat.c (supply_gregset): Likewise.
4047 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4049 2003-06-01 Andrew Cagney <cagney@redhat.com>
4051 * infcall.c (call_function_by_hand): Update comment on
4052 DEPRECATED_DUMMY_WRITE_SP.
4054 * mips-tdep.c (mips_gdbarch_init): Do not set
4055 deprecated_dummy_write_sp.
4056 (mips_eabi_push_dummy_call): Set the SP register.
4057 (mips_o64_push_dummy_call): Set the SP register.
4058 (mips_o32_push_dummy_call): Set the SP register.
4059 (mips_n32n64_push_dummy_call): Set the SP register.
4061 2003-06-01 Richard Henderson <rth@redhat.com>
4063 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4064 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4065 (supply_gregset): Likewise.
4066 * alpha-tdep.c (alpha_store_return_value): Likewise.
4067 (alpha_get_longjmp_target): Likewise.
4068 (alpha_register_name): Constify array.
4069 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4070 deprecated_register_size, deprecated_register_bytes,
4071 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4072 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4073 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4075 2003-06-01 Richard Henderson <rth@redhat.com>
4077 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4078 from arg_reg_buffer to regcache to avoid double conversion.
4080 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4082 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4084 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4085 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4087 2003-06-01 Richard Henderson <rth@redhat.com>
4089 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4090 (decode_frame_entry): Set it. Skip FDE augmentation.
4092 2003-06-01 Richard Henderson <rth@redhat.com>
4094 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4095 not overlapping PC_REGNUM.
4097 2003-06-01 Richard Henderson <rth@redhat.com>
4099 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4100 alpha_push_arguments. Don't dump argument register data to
4101 the target stack. Fix float and 128-bit long double semantics.
4102 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4103 (alpha_fix_call_dummy): Remove.
4104 (alpha_call_dummy_words): Remove.
4105 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4107 2003-06-01 Richard Henderson <rth@redhat.com>
4109 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4111 2003-06-01 Andrew Cagney <cagney@redhat.com>
4113 * mips-tdep.c (is_mips16_addr): New function.
4114 (make_mips16_addr, unmake_mips16_addr): New functions.
4115 (pc_is_mips16, mips_fetch_instruction): Use.
4116 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4117 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4118 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4119 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4121 * config/mips/tm-mips.h: Update copyright.
4122 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4123 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4124 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4125 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4126 (TM_PRINT_INSN_MACH): Delete.
4127 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4129 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4130 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4131 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4132 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4133 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4134 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4135 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4136 mips*-*-riscos* and mips*-*-sysv* onto mips.
4137 * config/mips/mips64.mt: New file.
4138 * config/mips/mips.mt: New file.
4139 * config/mips/littlemips.mt: Delete file.
4140 * config/mips/decstation.mt: Delete file.
4141 * config/mips/vr4300el.mt: Delete file.
4142 * config/mips/vr5000el.mt: Delete file.
4143 * config/mips/vr5000.mt: Delete file.
4144 * config/mips/vr4100.mt: Delete file.
4145 * config/mips/vr4xxxel.mt: Delete file.
4146 * config/mips/vr4300.mt: Delete file.
4147 * config/mips/vr4xxx.mt: Delete file.
4148 * config/mips/bigmips.mt: Delete file.
4149 * config/mips/bigmips64.mt: Delete file.
4150 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4151 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4152 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4153 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4154 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4156 * config/mips/tm-irix3.h: Ditto.
4157 * config/mips/tm-mipsv4.h: Ditto.
4158 * config/mips/tm-embed.h: Ditto.
4159 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4161 * config/mips/tm-vr5000el.h: Delete file.
4162 * config/mips/tm-tx39l.h: Delete file.
4163 * config/mips/tm-vr4300el.h: Delete file.
4164 * config/mips/tm-vr4xxxel.h: Delete file.
4165 * config/mips/tm-vr4300.h: Delete file.
4166 * config/mips/tm-vr4100.h: Delete file.
4167 * config/mips/tm-vr4xxx.h: Delete file.
4168 * config/mips/tm-vr5000.h: Delete file.
4169 * config/mips/tm-embedl64.h: Delete file.
4170 * config/mips/tm-embedl.h: Delete file.
4171 * config/mips/tm-embed64.h: Delete file.
4172 * config/mips/tm-bigmips64.h: Delete file.
4173 * config/mips/tm-bigmips.h: Delete file.
4175 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4178 * shnbsd-nat.c: Include "sh-tdep.h".
4180 From Richard Henderson <rth@redhat.com>:
4181 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4183 2003-05-31 Andrew Cagney <cagney@redhat.com>
4185 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4186 forward declaration.
4187 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4188 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4189 (mips_find_saved_regs): Use set_reg_offset.
4190 (mips_frame_init_saved_regs): Delete function.
4191 (mips_pop_frame): Call mips_find_saved_regs instead of
4192 DEPRECATED_FRAME_INIT_SAVED_REGS.
4194 2003-05-31 Andrew Cagney <cagney@redhat.com>
4196 * mips-tdep.c (mips_gdbarch_init): Do not set
4197 deprecated_max_register_raw_size, register_virtual_size, and
4198 deprecated_max_register_virtual_size.
4200 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4202 * i386-tdep.c: Include "dwarf2-frame.h".
4203 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4204 * Makefile.in (i386-tdep.o): Update dependencies.
4206 * dwarf2-frame.c, dwarf2-frame.h: New files.
4207 * Makefile.in (SFILES): Add dwarf2-frame.c.
4208 (dwarf2_frame_h): Define.
4209 (COMMON_OBS): Add dwarf2-frame.o.
4210 (dwarf2-frame.o): Add dependencies.
4212 2003-05-31 Andreas Jaeger <aj@suse.de>
4214 * x86-64-linux-nat.c: Fix comment.
4216 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4218 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4221 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4222 have a sigcontext_addr handler.
4223 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4224 sigcontext_addr handler.
4226 2003-05-31 Andrew Cagney <cagney@redhat.com>
4228 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4229 (print_fp_register_row): Replace do_fp_register_row.
4230 (mips_print_fp_register): Add "file" and "frame" parameters.
4231 (mips_print_register): Add "file" and "frame" parameters.
4232 (mips_print_registers_info): Replace mips_do_registers_info.
4233 (mips_gdbarch_init): Set print_registers_info instead of
4234 deprecated_do_registers_info.
4235 (mips_read_fp_register_single): Add "frame" parameter.
4236 (mips_read_fp_register_double): Add "frame" parameter.
4238 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4240 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4241 Fixes a bug where GDB would print the wrong register names for
4242 targets without SSE.
4244 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4245 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4248 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4249 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4250 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4253 From Michal Ludvig <mludvig@suse.cz>:
4254 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4256 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4257 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4258 I386_ST0_REGNUM): Move here from...
4259 * i386-tdep.c: ... here.
4260 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4261 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4262 registers if possible.
4263 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4264 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4266 (i386bsd_sc_reg_offset): New variable.
4267 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4268 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4270 (i386fbsd_sc_reg_offset): New variable.
4271 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4273 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4275 (i386fbsd4_sc_reg_offset): New variable.
4276 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4277 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4279 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4280 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4281 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4283 (i386nbsd_sc_reg_offset): New variable.
4284 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4285 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4287 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4289 (i386obsd_sc_reg_offset): New variable.
4290 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4291 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4293 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4294 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4295 for frame pointer offset in `struct sigcontext'.
4297 2003-05-31 Andrew Cagney <cagney@redhat.com>
4299 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4300 architecture methods call_dummy_words, sizeof_call_dummy_words,
4301 push_return_address, store_struct_return, and fix_call_dummy. Set
4302 push_dummy_call instead of deprecated_push_arguments.
4303 (mips_store_struct_return): Delete function.
4304 (mips_fix_call_dummy): Delete function.
4305 (mips_push_return_address): Delete function.
4306 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4307 RA_REGNUM and T9_REGNUM.
4308 (mips_n32n64_push_dummy_call): Ditto for
4309 mips_n32n64_push_arguments.
4310 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4311 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4313 2003-05-31 Andrew Cagney <cagney@redhat.com>
4315 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4316 "dummy_addr" to "bp_addr".
4317 * infcall.c (call_function_by_hand): Pass "funaddr" to
4318 gdbarch_push_dummy_call.
4319 * gdbarch.h, gdbarch.c: Re-generate.
4320 * i386-tdep.c (i386_push_dummy_call): Update.
4321 * arm-tdep.c (arm_push_dummy_call): Update.
4322 * d10v-tdep.c (d10v_push_dummy_call): Update.
4324 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4326 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4327 variable declarations.
4328 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4329 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4330 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4331 x86_64_init_frame_pc, x86_64_init_frame_pc,
4332 x86_64_function_has_prologue): Remove prototypes.
4333 (X86_64_NUM_GREGS): New define.
4334 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4335 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4336 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4337 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4338 XMM1_REGNUM): Remove defines.
4339 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4340 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4341 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4342 X86_64_XMM1_REGNUM): New defines.
4343 (struct x86_64_register_info): Renamed from `struct
4344 register_info'. Remove `size' member.
4345 (x86_64_register_info_table): Remove variable.
4346 (x86_64_register_info): New variable.
4347 (X86_64_NUM_REGS): New define.
4348 (X86_64_NUM_GREGS): Remove define.
4349 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4350 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4352 (x86_54_dwarf2_reg_to_regnum): Remove function.
4353 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4354 (x86_64_dwarf_reg_to_regnum): New function.
4355 (x86_64_register_name): Rewrite.
4356 (x86_64_register_raw_size): Remove function.
4357 (x86_64_register_byte_table): Remove variable.
4358 (x86_64_register_byte): Remove function.
4359 (x86_64_register_virtual_type): Remove function.
4360 (x86_64_register_type): New function.
4361 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4362 x86_64_register_convert_to_raw): Remove functions.
4363 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4364 (x86_64_use_struct_convention): Make static. Adjust for renamed
4366 (x86_64_frame_init_saved_regs): Remove function.
4367 (x86_64_push_arguments): Make static. Change to accept a regcache
4369 (x86_64_store_return_value, x86_64_extract_return_value): Make
4370 static. Rewrite based on i386 counterparts.
4371 (x86_64_push_dummy_call): New function.
4372 (X86_64_NUM_SAVED_REGS): New define.
4373 (x86_64_register_number): Remove function.
4374 (x86_64_store_struct_return): Remove function.
4375 (x86_64_frameless_function_invocation,
4376 x86_64_function_has_prologue): Remove functions.
4377 (PROLOG_BUFSIZE): Remove define.
4378 (struct x86_64_frame_cache): New structure.
4379 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4380 x86_64_frame_cache, x86_64_frame_this_id,
4381 x86_64_frame_prev_register, x86_64_frame_p,
4382 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4383 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4385 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4387 (x86_64_skip_prologue): Rewrite in terms of
4388 x86_64_analyze_prologue.
4389 (x86_64_frame_base_address): New function.
4390 (x86_64_frame_base): New variable.
4391 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4392 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4393 set deprecated_fp_regnum, deprecated_register_size,
4394 deprecated_register_bytes, register_raw_size, register_byte,
4395 register_virtual_type, register_convertiable,
4396 register_convert_to_virtual, convert_to_raw,
4397 deprecated_get_saved_register, deprecated_target_read_fp,
4398 deprecated_push_arguments, deprecated_push_return_address,
4399 deprecated_pop_frame, deprecated_store_struct_return,
4400 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4401 frameless_function_invocation, deprecated_frame_saved_pc,
4402 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4403 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4404 deprecated_init_frame_pc and virtual_frame_pointer. Call
4405 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4406 and x86_64_frame_p. Call frame_base_set_default to register
4408 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4409 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4410 (_initialize_x86_64_tdep): Remove function.
4411 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4412 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4413 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4415 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4416 (x86_64_linux_sigcontext_addr): Rewrite.
4417 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4418 x86_64_linux_frame_saved_pc): Remove functions.
4419 (x86_64_linux_pc_in_sigtramp): Renamed from
4420 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4422 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4424 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4425 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4426 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4427 (x86_64_regmap): Rename to regmap.
4428 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4430 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4432 (x86_64_fxsave_offset): Remove function.
4433 (supply_fpregset): Simply call x86_64_supply_fxsave.
4434 (fill_fpregset): Simply call x86_64_fill_fxsave.
4435 (fetch_inferior_registers, store_inferior_registers): Avoid
4436 asignment in if-statement.
4437 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4438 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4439 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4440 (fetch_core_registers): Remove function.
4441 (linux_elf_core_fns): Remove.
4442 (offsetoff): Don't define.
4443 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4444 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4445 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4447 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4448 protection against multiple includes instead of NM_X86_64_h. Add
4449 various comments. Include "config/nm-linux.h". Don't include
4451 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4452 GET_THREAD_SIGNALS): Remove defines.
4453 (x86_64_register_u_addr, kernel_u_size,
4454 lin_thread_get_thread_signals): Remove prototypes.
4455 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4456 [HAVE_LINK_H]: Don't include "solib.h".
4457 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4458 * config/i386/tm-x86-64linux.h: Fix comments.
4459 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4460 x86-64-tdep.o): Update dependencies.
4462 2003-05-30 Andrew Cagney <cagney@redhat.com>
4464 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4465 Change parameter type to a "struct regcache *".
4467 * gdbarch.sh: Regardless of the multi-arch level, always define
4468 the macro when not already defined.
4469 * gdbarch.h, gdbarch.c: Re-generate.
4471 2003-05-30 Richard Henderson <rth@redhat.com>
4473 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4474 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4475 (alpha_mdebug_frame_this_id): Likewise.
4476 (alpha_mdebug_frame_prev_register): Likewise.
4477 (alpha_mdebug_frame_base_address): Likewise.
4478 (alpha_mdebug_frame_locals_address): Likewise.
4479 (alpha_mdebug_frame_args_address): Likewise.
4480 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4481 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4482 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4484 (alpha_heuristic_frame_this_id): Make static.
4485 (alpha_heuristic_frame_prev_register): Likewise.
4486 (alpha_heuristic_frame_base_address): Likewise.
4487 * alpha-tdep.h: Update.
4489 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4491 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4492 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4494 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4495 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4496 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4497 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4498 I386_ST0_REGNUM): New defines.
4499 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4500 codestream_get): Remove define.
4501 (codestream_next_addr, condestream_addr, condestream_buf,
4502 codestream_off, codestream_cnt): Remove variables.
4503 (codestream_fill, codestream_seek, codestream_read): Remove
4505 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4507 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4508 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4509 i386_frame_saved_pc, i386_saved_pc_after_call,
4510 i386_frame_num_args, i386_frame_init_saved_regs,
4511 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4512 i386_push_arguments): Remove functions.
4513 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4514 functionality. Use i386_analyze_prologue instead of
4515 i386_get_frame_setup.
4516 (I386_NUM_SAVED_REGS): New define.
4517 (struct i386_frame_cache): New structure.
4518 (i386_alloc_frame_cache, i386_analyze_struct_return,
4519 i386_skip_probe, i386_analyze_frame_setup,
4520 i386_analyze_register_saves, i386_analyze_prologue,
4521 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4522 i386_frame_prev_register, i386_sigtramp_frame_cache,
4523 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4524 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4525 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4527 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4529 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4530 I386_EAX_REGNUM and I386_EDX_REGNUM.
4531 (i386_extract_return_value, i386_store_return_value): Use
4532 I386_ST0_REGNUM where appropriate.
4533 (i386_extract_struct_value_address): Rewrite to use extract_address.
4534 (i386_svr4_pc_in_sigtramp): Add comment.
4535 (i386_svr4_sigcontext_addr): Rewrite.
4536 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4538 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4539 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4540 of new defines. Set push_dummy_call, don't set
4541 deprecated_push_arguments, deprecated_push_return_address,
4542 deprecated_pop_frame. Don't set parm_boundary. Don't set
4543 deprecated_frame_chain, deprecated_frame_saved_pc,
4544 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4545 save_dummy_frame_tos, unwind_pc. Call
4546 frame_unwind_append_predicate and frame_base_set_default. Don't
4547 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4548 Don't set frameless_function_invocation. Don't set
4549 deprecated_register_bytes, deprecated_register_size,
4550 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4551 * i386-linux-tdep.c: Fix formatting in some comments.
4552 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4553 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4554 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4555 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4556 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4557 redundant parentheses.
4558 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4559 (i386_linux_sigcontext_addr): Use it. Rewrite.
4560 (find_minsym_and_objfile): Change name of second argument.
4561 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4562 changed. Use frame_pc_unwind instead of
4563 DEPRECATED_SAVED_PC_AFTER_CALL.
4564 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4565 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4566 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4568 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4570 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4571 (_initialize_i386_cygwin_tdep): New prototype.
4572 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4573 deprecated_frame_chain_valid.
4574 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4575 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4576 Rely on the SVR4 defaults.
4577 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4578 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4580 2003-05-30 Andrew Cagney <cagney@redhat.com>
4582 * infcall.c (call_function_by_hand): Always call
4583 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4585 2003-05-30 Richard Henderson <rth@redhat.com>
4587 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4590 2003-05-29 Jim Blandy <jimb@redhat.com>
4592 Use gdbarch methods for solib stuff on PowerPC Linux.
4593 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4594 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4596 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4597 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4598 giving the same effect as the #definitions above.
4600 2003-05-29 Adam Fedor <fedor@gnu.org>
4602 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4603 (find_implementation_from_class): Replace it with the standard
4604 case i.e. do nothing.
4606 2003-05-29 Richard Henderson <rth@redhat.com>
4608 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4609 (alpha_linux_sigtramp_offset): Use it. Make static.
4610 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4611 update for new frame model.
4612 * alpha-mdebug-tdep.c: New file.
4613 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4614 (alpha_osf1_init_abi): Install it.
4615 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4616 (linked_proc_desc_table): Remove.
4617 (alpha_frame_past_sigtramp_frame): Remove.
4618 (alpha_dynamic_sigtramp_offset): Remove.
4619 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4620 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4621 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4622 (push_sigtramp_desc): Remove.
4623 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4624 (alpha_cannot_store_register): Likewise.
4625 (alpha_sigcontext_addr): Remove.
4626 (alpha_find_saved_regs): Remove.
4627 (alpha_frame_init_saved_regs): Remove.
4628 (alpha_init_frame_pc_first): Remove.
4629 (read_next_frame_reg): Remove.
4630 (alpha_frame_saved_pc): Remove.
4631 (alpha_saved_pc_after_call): Remove.
4632 (temp_proc_desc, temp_saved_regs): Remove.
4633 (alpha_about_to_return): Remove.
4634 (cached_proc_desc): Remove.
4635 (alpha_frame_chain): Remove.
4636 (alpha_print_extra_frame_info): Remove.
4637 (alpha_init_extra_frame_info): Remove.
4638 (alpha_frame_locals_address): Remove.
4639 (alpha_frame_args_address): Remove.
4640 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4641 (alpha_push_dummy_frame): Remove.
4642 (alpha_pop_frame): Remove.
4643 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4644 (alpha_read_insn): New.
4645 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4646 for different insn encodings.
4647 (alpha_in_lenient_prologue): Remove.
4648 (struct alpha_sigtramp_unwind_cache): New.
4649 (alpha_sigtramp_frame_unwind_cache): New.
4650 (alpha_sigtramp_register_address): New.
4651 (alpha_sigtramp_frame_this_id): New.
4652 (alpha_sigtramp_frame_prev_register): New.
4653 (alpha_sigtramp_frame_unwind): New.
4654 (alpha_sigtramp_frame_p): New.
4655 (struct alpha_heuristic_unwind_cache): New.
4656 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4657 don't count nop insns that occur between functions.
4658 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4659 heuristic_proc_desc, but without the mdebug wrapping.
4660 (alpha_heuristic_frame_this_id): New.
4661 (alpha_heuristic_frame_prev_register): New.
4662 (alpha_heuristic_frame_unwind): New.
4663 (alpha_heuristic_frame_p): New.
4664 (alpha_heuristic_frame_base_address): New.
4665 (alpha_heuristic_frame_base): New.
4666 (alpha_unwind_dummy_id): New.
4667 (alpha_unwind_pc): New.
4668 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4669 frame related deprecated initializations; install replacements.
4670 (alpha_dump_tdep): Remove.
4671 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4672 (alpha_read_insn, alpha_after_prologue,
4673 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4674 alpha_heuristic_frame_prev_register,
4675 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4676 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4677 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4678 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4680 2003-05-29 Andrew Cagney <cagney@redhat.com>
4682 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4683 dependant on the availability of ASSERT_FUNCTION.
4684 (ASSERT_FUNCTION): Do not define when there is no function name.
4686 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4688 From Jimi X <jimix@watson.ibm.com>:
4689 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4691 2003-05-28 Jim Blandy <jimb@redhat.com>
4693 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4694 argument to ptrace to int; the system headers should give it the
4695 right type, and pointers don't fit in ints on powerpc64-*-*.
4697 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4699 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4702 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4704 * stabsread.c (dbx_lookup_type): Make static.
4706 (add_undefined_type): Ditto.
4707 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4710 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4712 * hpread.c (hpread_has_name): Make static.
4713 (hpread_psymtab_to_symtab): Ditto.
4714 (file_exists): Ditto.
4715 (hpread_call_pxdb): Ditto.
4716 (hpread_pxdb_needed): Ditto.
4717 (hpread_quick_traverse): Ditto.
4718 (hpread_get_header): Ditto.
4719 (hpread_get_lntt): Ditto.
4720 (hpread_get_slt): Ditto.
4723 2003-05-25 Andreas Schwab <schwab@suse.de>
4725 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4726 stack_align and deprecated_extra_stack_alignment_needed.
4727 (m68k_stack_align): Delete.
4729 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4730 (m68k_register_virtual_size): Likewise.
4731 (altos_skip_prologue): Remove obsolete function.
4732 (isi_frame_num_args): Likewise.
4733 (news_frame_num_args): Likewise.
4734 (m68k_fix_call_dummy): Make static.
4735 (m68k_push_dummy_frame): Likewise.
4736 (m68k_pop_frame): Likewise.
4737 (m68k_skip_prologue): Likewise.
4738 (m68k_frame_init_saved_regs): Likewise.
4739 (m68k_saved_pc_after_call): Likewise.
4740 (m68k_get_longjmp_target): Make multi-arch.
4741 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4742 structure. Register m68k_get_longjmp_target if enabled.
4743 * m68k-tdep.h (struct gdbarch_tdep): Define.
4744 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4746 * Makefile.in (config.status): Also depend on configure.tgt
4748 (m68klinux-tdep.o): Update dependencies.
4749 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4750 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4751 (M68K_LINUX_JB_PC): Define.
4752 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4753 and take additional parameter.
4754 (m68k_linux_sigtramp_saved_pc): Update.
4755 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4756 m68k_linux_pc_in_sigtramp, in_plt_section,
4757 find_solib_trampoline_target.
4758 * config/m68k/tm-linux.h: Don't include any tm headers.
4759 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4760 (JB_ELEMENT_SIZE): Likewise.
4762 (GET_LONGJMP_TARGET): Likewise.
4763 (IN_SIGTRAMP): Likewise.
4764 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4766 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4768 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4769 (sparc32_push_arguments): Re-implement by calling
4770 sparc32_do_push_arguments.
4772 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4774 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4775 SPARC_O1_REGNUM): New defines.
4776 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4777 (sparc32_store_return_value): New function.
4778 (sparc_extract_struct_value_address): Rewrite to operate on a
4780 (sparc_gdbarch_init): Don't set
4781 deprecated_extract_struct_value_address. Set
4782 extract_struct_value_address instead. Don't set
4783 deprecated_extract_return_value and deprecated_store_return_value
4784 for 32-bit targets. Set extract_return_value and
4785 store_return_value instead.
4786 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4787 DEPRECTAED_EXTRACT_RETURN_VALUE,
4788 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4789 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4790 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4791 (sparc_store_return_value): Remove prototype.
4792 (sparc32_store_return_value): New prototype.
4793 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4796 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4798 * sparcnbsd-tdep.c: Include "gdb_string.h".
4800 2003-05-23 Andrew Cagney <cagney@redhat.com>
4802 * p-valprint.c (pascal_val_print): Replace extract_address with
4803 the inline equivalent extract_unsigned_integer.
4804 * jv-valprint.c (java_value_print): Ditto.
4805 * ada-valprint.c (ada_val_print_1): Ditto.
4806 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4808 2003-05-23 Theodore A. Roth <troth@openavr.org>
4810 * blockframe.c (frameless_look_for_prologue): Remove unused
4811 after_prologue variable.
4813 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4815 * blockframe.c (get_pc_function_start): Rewrite to avoid
4816 asignments in if-statements.
4818 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4820 Committed by Elena Zannoni <ezannoni@redhat.com>.
4821 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4822 files, don't relocate absolute symbols (and do use mst_abs).
4824 2003-05-23 Andrew Cagney <cagney@redhat.com>
4826 * objc-lang.c: Include "gdb_assert.h".
4827 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4828 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4829 (gdb_check, gdb_check_fatal): Delete functions.
4830 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4832 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4833 * Makefile.in (objc-lang.o): Update dependencies.
4835 2003-05-22 Ian Lance Taylor <ian@airs.com>
4837 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4838 with fprintf_filtered, not fprintf_unfiltered.
4840 2003-05-22 Andrew Cagney <cagney@redhat.com>
4842 * stack.c (frame_info): Inline extract_address, replacing it with
4843 extract_unsigned_integer.
4844 * findvar.c (unsigned_pointer_to_address): Ditto.
4845 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4846 * dwarf2expr.c (dwarf2_read_address): Ditto.
4847 * frame.c (frame_pc_unwind): Update comment.
4848 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4850 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4852 * infptrace.c (detach): Call print_sys_errmsg rather than
4853 perror_with_name to issue warning message when errno is non-zero
4854 after calling ptrace detach.
4856 2003-05-21 J. Brobecker <brobecker@gnat.com>
4858 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4859 macro definitions from here...
4860 * hppa-tdep.c: ...to there.
4862 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4864 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4865 register_ptrace_addr(). Fix all callers.
4867 2003-05-21 Andreas Schwab <schwab@suse.de>
4869 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4871 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4873 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4874 (_initialize_m68k_linux_tdep): New function.
4875 (m68k_linux_frame_saved_pc): Make static.
4876 (m68k_linux_extract_return_value): Likewise.
4877 (m68k_linux_store_return_value): Likewise.
4878 (m68k_linux_extract_struct_value_address): Likewise.
4879 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4881 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4882 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4883 (DEPRECATED_FRAME_SAVED_PC): Remove.
4885 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4887 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4888 regset numbering rather than our own.
4890 2003-05-19 David Carlton <carlton@bactrian.org>
4892 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4894 2003-05-19 David Carlton <carlton@bactrian.org>
4896 Partial fix for PR c++/827.
4897 * cp-support.h: Include symtab.h.
4898 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4899 * cp-namespace.c: Update contributors.
4900 (cp_lookup_symbol_nonlocal): New.
4901 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4902 (lookup_symbol_file): Ditto.
4903 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4904 * block.h: Declare block_scope, block_using, block_global_block.
4905 * block.c (block_scope): New.
4906 (block_using, block_global_block): Ditto.
4907 * Makefile.in (cp_support_h): Depend on symtab_h.
4908 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4910 2003-05-19 David Carlton <carlton@bactrian.org>
4912 * language.h (struct language_defn): Add 'la_value_of_this'
4913 and 'la_lookup_symbol_nonlocal' members.
4914 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4915 lookup_symbol_static, lookup_symbol_global,
4916 lookup_symbol_aux_block.
4917 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4918 if we should search fields of this and how to do static/global
4920 (lookup_symbol_aux_block): Make extern.
4921 (basic_lookup_symbol_nonlocal): New.
4922 (lookup_symbol_static, lookup_symbol_global): Ditto.
4923 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4924 'la_lookup_symbol_nonlocal' members.
4925 * c-lang.c (c_language_defn, cplus_language_defn)
4926 (asm_language_defn, minimal_language_defn): Ditto.
4927 * jv-lang.c (java_language_defn): Ditto.
4928 * language.c (unknown_language_defn, auto_language_defn)
4929 (local_language_defn): Ditto.
4930 * m2-lang.c (m2_language_defn): Ditto.
4931 * objc-lang.c (objc_language_defn): Ditto.
4932 * scm-lang.c (scm_language_defn): Ditto.
4933 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4934 * p-lang.c (pascal_language_defn): Ditto for both.
4935 * Makefile.in (f-lang.o): Depend on value_h.
4938 2003-05-19 David Carlton <carlton@bactrian.org>
4940 * block.h: Declare block_static_block.
4941 * block.c (block_static_block): New.
4942 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4943 lookup_symbol_aux_local, calling block_static_block instead.
4944 (lookup_symbol_aux_local): Delete 'static_block' argument.
4946 2003-05-19 David Carlton <carlton@bactrian.org>
4948 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4950 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4952 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4953 register numbers mapping.
4955 2003-05-18 Adam Fedor <fedor@gnu.org>
4957 * symtab.c (completion_list_objc_symbol): New function.
4958 (make_symbol_completion_list): Use it to add ObjC symbols
4959 when looking though the list.
4960 (language_search_unquoted_string): New function.
4961 (make_file_symbol_completion_list): Use it.
4963 2003-05-18 Andreas Schwab <schwab@suse.de>
4965 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4967 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4968 as m68k_linux_extract_return_value.
4969 (DEPRECATED_STORE_RETURN_VALUE): Define as
4970 m68k_linux_store_return_value.
4971 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4972 m68k_linux_extract_struct_value_address.
4973 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4974 get_next_frame, get_frame_base, get_frame_pc.
4975 (m68k_linux_frame_saved_pc): Use get_frame_base.
4976 (m68k_linux_extract_return_value): New function.
4977 (m68k_linux_store_return_value): New function.
4978 (m68k_linux_extract_struct_value_address): New function.
4979 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4981 * c-exp.y (typebase): Remove duplicate occurence of
4982 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4983 of lookup_signed_typename.
4985 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4987 * dwarf2loc.c (find_location_expression): Change type of second
4988 argument to `size_t *'.
4989 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4992 2003-05-18 David Carlton <carlton@bactrian.org>
4994 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4995 'linkage_name'. Add comment.
4996 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4998 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4999 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5000 (lookup_block_symbol): Ditto.
5002 2003-05-16 Andrew Cagney <cagney@redhat.com>
5004 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5005 * gdbarch.h, gdbarch.c: Re-generate.
5006 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5007 * TODO (REGISTER_BYTES): Delete reference.
5008 * alpha-tdep.c (alpha_gdbarch_init): Update.
5009 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5010 * x86-64-tdep.c (x86_64_init_abi): Update.
5011 * vax-tdep.c (vax_gdbarch_init): Update.
5012 * v850-tdep.c (v850_gdbarch_init): Update.
5013 * sparc-tdep.c (sparc_gdbarch_init): Update.
5014 * sh-tdep.c (sh_gdbarch_init): Update.
5015 * s390-tdep.c (s390_gdbarch_init): Update.
5016 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5017 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5018 (ns32k_gdbarch_init_32382): Update.
5019 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5020 * mcore-tdep.c (mcore_gdbarch_init): Update.
5021 * m68k-tdep.c (m68k_gdbarch_init): Update.
5022 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5023 * ia64-tdep.c (ia64_gdbarch_init): Update.
5024 * i386-tdep.c (i386_gdbarch_init): Update.
5025 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5026 * hppa-tdep.c (hppa_gdbarch_init): Update.
5027 * h8300-tdep.c (h8300_gdbarch_init): Update.
5028 * frv-tdep.c (frv_gdbarch_init): Update.
5029 * cris-tdep.c (cris_gdbarch_init): Update.
5030 * avr-tdep.c (avr_gdbarch_init): Update.
5031 * arm-tdep.c (arm_gdbarch_init): Update.
5032 * sparc-tdep.c (sparc_pop_frame): Update.
5033 * rs6000-tdep.c (rs6000_pop_frame): Update.
5034 * remote.c (init_remote_state): Update.
5035 (remote_prepare_to_store): Update.
5036 * remote-vx.c (vx_prepare_to_store): Update.
5037 * remote-sds.c (sds_fetch_registers): Update.
5038 (sds_prepare_to_store): Update.
5039 * remote-array.c: Update.
5040 * regcache.c (init_legacy_regcache_descr): Update.
5041 (init_regcache_descr): Update.
5042 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5043 (mips_o64_extract_return_value): Update.
5044 * irix5-nat.c (fetch_core_registers): Update.
5045 * irix4-nat.c (fetch_core_registers): Update.
5046 * i386-tdep.h: Update.
5047 * hppa-tdep.c (pa_do_registers_info): Update.
5048 (pa_do_strcat_registers_info): Update.
5049 * cris-tdep.c (cris_register_bytes_ok): Update.
5050 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5051 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5052 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5053 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5054 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5055 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5056 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5057 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5058 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5059 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5060 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5061 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5062 (REGISTER_BYTES_OK): Update.
5063 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5064 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5066 2003-05-16 Ian Lance Taylor <ian@airs.com>
5068 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5069 (vax_print_insn, print_insn_arg): Remove static functions.
5070 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5071 print_insn_vax from opcodes library.
5072 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5074 2003-05-15 Andrew Cagney <cagney@redhat.com>
5076 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5077 * target.h (memory_breakpoint_from_pc): Delete declaration.
5078 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5079 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5080 * monitor.c (monitor_insert_breakpoint): Use
5081 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5082 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5083 * gdbarch.h, gdbarch.c: Re-generate.
5084 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5085 (sparc_gdbarch_init): Set breakpoint_from_pc to
5086 sparc_breakpoint_from_pc.
5087 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5088 (BREAKPOINT_FROM_PC): Define.
5089 (sparc_breakpoint_from_pc): Declare.
5090 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5091 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5092 (BREAKPOINT_FROM_PC): Define.
5093 (BREAKPOINT): Delete macro.
5094 * target.h: Update comment.
5095 * s390-tdep.c (s390_gdbarch_init): Update comments.
5096 * remote.c: Update comments.
5097 * remote-mips.c: Update comments.
5098 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5099 * mem-break.c: Update comment.
5100 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5101 (ia64_memory_insert_breakpoint): Update.
5102 * config/sparc/tm-sparc.h: Update comment.
5103 * config/pa/tm-hppa64.h: Update comment.
5104 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5105 (rs6000_breakpoint_from_pc): Update.
5106 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5107 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5108 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5109 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5110 (mips_breakpoint_from_pc): Update.
5111 (mips_dump_tdep): Update.
5113 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5114 * minsyms.c (lookup_minimal_symbol): Inline
5115 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5117 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5118 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5119 * p-lang.c (pascal_printstr): Ditto.
5120 * objc-lang.c (objc_printstr): Ditto.
5121 * m2-lang.c (m2_printstr): Ditto.
5122 * jv-valprint.c (java_print_value_fields): Ditto.
5123 * f-lang.c (f_printstr): Ditto.
5124 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5125 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5126 for repeat_count_threshold.
5127 * Makefile.in (cp-valprint.o): Update dependencies.
5129 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5131 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5132 (examine_prologue): Support looking through leaf functions, knowing
5133 they start with mov r2,r12. Support skipping over indirect stores
5134 of the input registers. Upon hitting a non-nop branch instruction
5135 or predicated instruction, bail out by setting lim_pc to the current
5136 pc value in the loop. At the end, if the lim_pc value is still
5137 beyond our calculated value and we have trust_limit set,
5138 use the lim_pc value.
5140 2003-05-15 Andrew Cagney <cagney@redhat.com>
5142 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5143 generic_find_dummy_frame.
5144 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5145 (deprecated_generic_find_dummy_frame): Update.
5146 (deprecated_read_register_dummy): Update.
5147 * frame.c (deprecated_generic_get_saved_register): Update.
5149 2003-05-15 Theodore A. Roth <troth@openavr.org>
5151 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5152 (avr_gdbarch_init): Set breakpoint_from_pc method.
5154 2003-05-15 Andrew Cagney <cagney@redhat.com>
5156 * regcache.c (build_regcache): Set deprecated_register_valid
5158 (deprecated_grub_regcache_for_register_valid): Delete function.
5159 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5162 2003-05-15 David Carlton <carlton@bactrian.org>
5164 Committed by Elena Zannoni <ezannoni@redhat.com>
5165 * symtab.c (lookup_symbol_aux): Delete calls to
5166 lookup_symbol_aux_minsyms.
5167 (lookup_symbol_aux_minsyms): Comment out function and
5168 prototype. Delete lookup by mangled name.
5170 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5172 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5173 correctly indicate an empty stack and ``stack_allocated'' to the
5174 indicate the number of elements initially allocated.
5175 (dwarf_expr_grow_stack): Simplify method for computing new
5176 stack size. Don't loop infinitely if ``stack_len'' is zero.
5177 (execute_stack_op): Move ``ctx->in_reg'' initialization
5178 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5179 be used in conjuction with DW_OP_piece. Revise error message
5182 2003-05-14 Theodore A. Roth <troth@openavr.org>
5184 * MAINTAINERS: Update my email address.
5185 * avr-tdep.c: Ditto.
5187 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5189 * symtab.h (enum domain_enum): Rename from namespace_enum.
5190 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5191 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5192 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5193 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5194 TYPES_NAMESPACE, METHODS_NAMESPACE.
5195 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5196 (struct symbol, struct partial_symbol): Rename field
5197 'namespace_enum namespace' to 'domain_enum domain'.
5198 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5199 Delete old define kludge for namespace.
5201 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5202 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5203 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5204 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5205 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5206 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5207 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5208 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5209 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5210 occurrences of the above.
5212 2003-05-14 Ian Lance Taylor <ian@airs.com>
5214 * Makefile.in (install-only): Use $(SHELL) when running
5217 2003-05-13 Ian Lance Taylor <ian@airs.com>
5219 * MAINTAINERS (write after approval): Add myself.
5221 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5222 second and third arguments.
5223 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5224 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5226 2003-05-13 Andrew Cagney <cagney@redhat.com>
5228 * defs.h (store_address): Delete declaration.
5229 findvar.c (store_address): Delete function.
5230 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5231 store_unsigned_integer.
5232 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5233 * v850-tdep.c (v850_push_arguments): Ditto.
5234 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5235 * sh-tdep.c (sh64_get_saved_register): Ditto.
5236 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5237 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5238 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5239 (mips_get_saved_register): Ditto.
5240 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5241 (find_func_descr, ia64_push_arguments): Ditto.
5242 * i386-tdep.c (i386_push_arguments): Ditto.
5243 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5244 * frv-tdep.c (frv_push_arguments): Ditto.
5245 * frame.c (legacy_saved_regs_prev_register): Ditto.
5246 (deprecated_generic_get_saved_register): Ditto.
5247 * findvar.c (unsigned_address_to_pointer): Ditto.
5248 * dwarf2read.c (dwarf2_const_value): Ditto.
5249 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5250 * alpha-tdep.c (alpha_push_arguments): Ditto.
5252 2003-05-12 J. Brobecker <brobecker@gnat.com>
5254 * NEWS: Mention that the hppa-hpux port has been partially
5255 multiarched (32bit ABIT only, so far).
5257 2003-05-11 Andrew Cagney <cagney@redhat.com>
5259 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5260 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5261 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5262 sim/testsuite/sim/arm/misaligned2.ms, and
5263 sim/testsuite/sim/arm/misaligned3.ms.
5264 * disasm.h (struct ui_file): Add opaque struct declaration.
5265 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5266 * frame.h (struct ui_file): Ditto.
5268 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5270 * value.h: Pretty print.
5272 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5274 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5276 2003-05-08 Andrew Cagney <cagney@redhat.com>
5278 * regcache.h (max_register_size): Delete declaration.
5279 * regcache.c (max_register_size): Delete function.
5280 (struct regcache_descr): Delete field "max_register_size".
5281 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5282 registers fit in MAX_REGISTER_SIZE.
5283 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5284 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5285 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5286 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5287 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5288 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5289 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5290 * dve3900-rom.c, hppa-tdep.c: Ditto.
5292 2003-05-08 David Carlton <carlton@math.stanford.edu>
5294 * valops.c (push_word): Fix typo.
5296 2003-05-08 Andrew Cagney <cagney@redhat.com>
5298 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5299 * gdbarch.h: Re-generate.
5300 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5301 (legacy_max_register_raw_size): Delete declaration.
5302 * regcache.c (legacy_max_register_raw_size): Delete function.
5303 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5304 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5305 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5306 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5307 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5308 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5309 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5310 * findvar.c, dwarf2cfi.c: Ditto.
5312 2003-05-08 Andrew Cagney <cagney@redhat.com>
5314 * mips-tdep.c (read_signed_register): New function, moved to here
5316 (read_signed_register_pid): Ditto.
5317 * regcache.c (read_signed_register_pid): Delete function, moved to
5319 (read_signed_register): Ditto.
5320 * regcache.h (read_signed_register): Delete declaration.
5321 (read_signed_register_pid): Delete declaration.
5323 2003-05-08 Andrew Cagney <cagney@redhat.com>
5325 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5326 * gdbarch.h: Re-generate.
5327 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5328 (legacy_max_register_virtual_size): Delete declaration.
5329 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5330 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5331 * tracepoint.c (memrange_sortmerge): Ditto.
5332 * sparc-tdep.c (sparc_print_registers): Ditto.
5333 * regcache.c (legacy_max_register_virtual_size): Delete function.
5335 2002-05-08 J. Brobecker <brobecker@gnat.com>
5337 * fork-child.c (escape_bang_in_quoted_argument): New function.
5338 (fork_inferior): Escape '!' characters in quoted arguments
5341 2003-05-08 J. Brobecker <brobecker@gnat.com>
5343 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5344 the language of the CU is not currently supported by GDB.
5346 2003-05-08 J. Brobecker <brobecker@gnat.com>
5348 * defs.h (language): Add language_minimal enum value.
5349 * c-lang.c (minimal_language_defn): New language definition.
5350 (_initialize_c_language): Add the new minimal language to the list
5351 of languages known to GDB.
5353 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5355 * frame.c (get_frame_type): Don't attempt to lazily initialize
5356 frame's unwinder for legacy frames.
5358 2003-05-07 Andrew Cagney <cagney@redhat.com>
5360 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5361 and "regcache" parameters.
5362 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5364 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5366 * dwarf2read.c (dwarf_decode_lines): Only use output of
5367 check_cu_functions() when calling record_line(). Do not update
5368 the current address.
5370 2003-05-07 Andrew Cagney <cagney@redhat.com>
5372 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5375 2003-05-07 Jim Blandy <jimb@redhat.com>
5377 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5378 'maint info symtabs' and 'maint info psymtabs'.
5379 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5380 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5381 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5382 Declarations updated.
5383 * maint.c (maintenance_list_command): Delete.
5384 (_initialize_maint_cmds): Update calls to add_cmd.
5385 * gdbcmd.h (maintenancelistlist): Delete declaration.
5386 * cli/cli-cmds.c (maintenancelistlist): Delete.
5387 (init_cmd_lists): Don't initialize it.
5388 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5390 2003-05-07 Andrew Cagney <cagney@redhat.com>
5392 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5394 (d10v_print_registers_info): Update.
5395 (d10v_dmap_register, d10v_imap_register): Delete functions.
5396 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5397 and "imap_register".
5398 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5399 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5400 * arch-utils.c (generic_remote_translate_xfer_address): Add
5401 "regcache" and "gdbarch" parameters.
5402 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5403 parameter. Change class to multi-arch.
5404 * gdbarch.h, gdbarch.c: Re-generate.
5405 * remote.c (remote_xfer_memory): Use
5406 gdbarch_remote_translate_xfer_address.
5408 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5410 * infrun.c (prev_pc): Move declaration ahead of proceed().
5411 (proceed): Refresh prev_pc value before resuming.
5412 (stop_stepping): Remove code to refresh prev_pc.
5414 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5416 * nto-tdep.c: Removed stray comment.
5418 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5420 * i386-nto-tdep.c: Fix old K&R function definitions.
5421 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5422 Also change add_show_from_set() call to add_setshow_cmd().
5423 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5425 2003-05-05 Andrew Cagney <cagney@redhat.com>
5427 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5428 (fprint_dummy_frames): New function.
5429 (maintenance_print_dummy_frames): New function.
5430 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5431 * frame.c (fprint_frame_id): Make global.
5432 * frame.h (fprint_frame_id): Declare.
5433 * Makefile.in (dummy-frame.o): Update dependencies.
5435 2003-05-05 Andrew Cagney <cagney@redhat.com>
5437 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5438 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5439 SIZEOF_CALL_DUMMY_WORDS.
5440 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5441 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5442 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5443 CALL_DUMMY_BREAKPOINT_OFFSET.
5444 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5445 CALL_DUMMY_START_OFFSET.
5446 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5447 * gdbarch.h, gdbarch.c: Re-generate.
5448 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5449 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5450 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5451 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5452 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5453 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5454 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5455 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5456 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5457 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5458 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5459 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5460 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5461 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5462 * config/sparc/tm-sparc.h: Update.
5464 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5466 * configure.tgt: Add i[3456]86-*-nto*.
5467 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5468 * nto-tdep.c: New file. Neutrino target support routines.
5469 * nto-tdep.h: New file. Neutrino target header.
5470 * config/tm-qnxnto.h: New file.
5471 * config/i386/i386nto.mt: New file.
5472 * config/i386/tm-i386nto.h: New file.
5474 2003-05-04 Andrew Cagney <cagney@redhat.com>
5476 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5477 (load_infrun_state): Ditto.
5478 (struct thread_info): Drop "prev_func_name" field.
5479 * thread.c (load_infrun_state): Update.
5480 (save_infrun_state): Update.
5481 * infrun.c (prev_func_name): Delete variable.
5482 (init_wait_for_inferior): Do not clear prev_func_name.
5483 (stop_stepping, keep_going, context_switch): Do not swap
5485 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5486 instead of PC_IN_SIGTRAMP.
5488 2003-05-04 Andrew Cagney <cagney@redhat.com>
5490 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5491 REGISTER_BYTE with register_offset_hack.
5492 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5493 that REGISTER_BYTE is consistent with the regcache.
5494 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5495 * gdbarch.h, gdbarch.c: Regenerate.
5497 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5499 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5500 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5502 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5504 2003-05-03 J. Brobecker <brobecker@gnat.com>
5506 From Thierry Schneider <tpschneider1@yahoo.com>
5507 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5508 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5509 (mi-cmd-symbol.o): Add rule.
5511 2003-05-03 Andrew Cagney <cagney@redhat.com>
5513 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5514 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5515 * gdbarch.h, gdbarch.c: Re-generate.
5516 * d10v-tdep.c (d10v_push_dummy_code): New function.
5517 (d10v_gdbarch_init): Set push_dummy_code.
5518 * infcall.c (legacy_push_dummy_code): New function.
5519 (generic_push_dummy_code): New function.
5520 (push_dummy_code): New function.
5521 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5522 instead of dummy_addr, to push_dummy_call. Move call to
5523 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5525 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5527 2003-05-03 Andrew Cagney <cagney@redhat.com>
5529 * disasm.h (print_insn): Declare.
5530 * disasm.c (init_gdb_disassemble_info): New function.
5531 (gdb_disassembly): Call init_gdb_disassemble_info.
5532 (gdb_print_insn): New function.
5533 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5534 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5535 * mcore-tdep.c: Include "disasm.h"
5536 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5537 * d10v-tdep.c: Include "disasm.h".
5538 (display_trace): Call gdb_print_insn, instead of print_insn.
5539 (print_insn): Delete function.
5540 * printcmd.c: Include "disasm.h".
5541 (print_insn): Delete function.
5542 (print_formatted): Call gdb_print_insn, instead of print_insn.
5543 * Makefile.in (printcmd.o): Update dependencies.
5544 (mcore-tdep.o, d10v-tdep.o): Ditto.
5546 2003-05-02 Andrew Cagney <cagney@redhat.com>
5548 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5549 PC_REGNUM, re-indent.
5550 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5551 PC_REGNUM isn't set.
5553 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5554 * gdbarch.h, gdbarch.c: Re-generate.
5555 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5556 register_virtual_size, pc_regnum, or register_bytes.
5557 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5558 (d10v_register_type): Use D10V_PC_REGNUM.
5559 (d10v_print_registers_info, d10v_read_pc): Ditto.
5560 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5561 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5563 2003-05-02 David Carlton <carlton@bactrian.org>
5565 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5566 the name with mstrsave.
5568 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5570 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5571 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5572 (host_charset_name, target_charset_name): New vars for use by
5574 (host_charset_enum, target_charset_enum): New enums for set/show
5576 (set_charset_sfunc, set_host_charset_sfunc,
5577 set_target_charset_sfunc): New functions.
5578 (set_host_charset, set_target_charset): Make static.
5579 (list_charsets, set_host_charset_command,
5580 set_target_charset_command): Delete functions.
5581 (show_charset_command): Rewrite as....
5582 (show_charset): Hook this up with the set/show command mechanism.
5583 (_initialize_charset): Change names of charsets to match the
5584 set/show enums. Use host_charset_name and target_charset_name.
5585 Use set/show mechanism for charset, host-charset, target-charset
5586 commands. Do not make 'show host-charset' and 'show
5587 target-charset' be aliases of 'show charset'.
5589 * charset.h (set_host_charset, set_target_charset): Don't export,
5590 they are not used outside the file.
5592 2003-05-01 Andrew Cagney <cagney@redhat.com>
5594 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5595 (gdb_disassembly): Make "di" non static, always initialize and
5596 cleanup. Always use dis_asm_read_memory.
5597 (gdb_dis_asm_read_memory): Delete function.
5599 2003-05-01 Andrew Cagney <cagney@redhat.com>
5601 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5602 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5604 2003-04-30 Andrew Cagney <cagney@redhat.com>
5606 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5607 "tm_print_insn_info".
5608 (TARGET_PRINT_INSN_INFO): Delete macro.
5609 (dis_asm_read_memory): Delete function declaration.
5610 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5611 (tm_print_insn_info): Delete variable definition.
5612 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5613 * gdbarch.h, gdbarch.c: Re-generate.
5614 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5615 "deprecated_tm_print_insn_info".
5616 * mcore-tdep.c (mcore_dump_insn): Ditto.
5617 * mips-tdep.c (mips_gdbarch_init): Ditto.
5618 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5619 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5620 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5621 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5622 instead of TARGET_PRINT_INSN_INFO, add comment.
5623 * s390-tdep.c (s390_get_frame_info): Instead of
5624 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5625 (s390_check_function_end, s390_is_sigreturn): Ditto.
5626 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5627 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5628 * disasm.c: Include "gdbcore.h".
5629 (_initialize_disasm): New function, initialize
5630 "deprecated_tm_print_insn_info".
5631 (deprecated_tm_print_insn_info): New variable.
5632 (dis_asm_read_memory): Moved from "corefile.c", made static.
5633 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5634 * Makefile.in (disasm.o): Update dependencies.
5636 2003-04-30 Andrew Cagney <cagney@redhat.com>
5638 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5640 2003-04-29 Adam Fedor <fedor@gnu.org>
5642 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5643 * infcall.c (find_function_addr): Make non-static.
5644 * infcall.h (find_function_addr): Declare.
5645 * Makefile.in (eval.o): Update dependencies.
5647 2003-04-28 Adam Fedor <fedor@gnu.org>
5649 * symtab.c (symbol_find_demangled_name): Check for and demangle
5651 (symbol_init_demangled_name): Init for language_objc as well.
5653 2003-04-28 Andrew Cagney <cagney@redhat.com>
5655 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5656 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5657 * gdbarch.h, gdbarch.c: Re-generate.
5658 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5659 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5660 * inferior.h (deprecated_read_fp): Rename read_fp.
5661 (generic_target_read_fp): Delete declaration.
5662 * regcache.c (generic_target_read_fp): Delete function.
5663 (deprecated_read_fp): Replace read_fp, use
5664 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5665 * d10v-tdep.c (d10v_read_fp): Delete function.
5666 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5668 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5669 deprecated_target_read_fp to generic_target_read_fp.
5670 * sh-tdep.c (sh_gdbarch_init): Ditto.
5671 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5672 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5673 * frv-tdep.c (frv_gdbarch_init): Ditto.
5675 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5676 deprecated_fp_regnum.
5677 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5678 * vax-tdep.c (vax_gdbarch_init): Ditto.
5679 * v850-tdep.c (v850_gdbarch_init): Ditto.
5680 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5681 * sh-tdep.c (sh_gdbarch_init): Ditto.
5682 * s390-tdep.c (s390_gdbarch_init): Ditto.
5683 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5684 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5685 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5686 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5687 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5688 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5689 * i386-tdep.c (i386_gdbarch_init): Ditto.
5690 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5691 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5692 * frv-tdep.c (frv_gdbarch_init): Ditto.
5693 * cris-tdep.c (cris_gdbarch_init): Ditto.
5694 * avr-tdep.c (avr_gdbarch_init): Ditto.
5695 * arm-tdep.c (arm_gdbarch_init): Ditto.
5696 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5698 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5699 * v850-tdep.c (v850_gdbarch_init): Ditto.
5700 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5701 * sh-tdep.c (sh_gdbarch_init): Ditto.
5702 * s390-tdep.c (s390_gdbarch_init): Ditto.
5703 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5704 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5705 * mips-tdep.c (mips_gdbarch_init): Ditto.
5706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5707 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5708 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5709 * frv-tdep.c (frv_gdbarch_init): Ditto.
5710 * avr-tdep.c (avr_gdbarch_init): Ditto.
5711 * arm-tdep.c (arm_gdbarch_init): Ditto.
5713 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5714 DEPRECATED_FP_REGNUM.
5715 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5716 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5717 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5718 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5719 (sparc32_register_virtual_type): Ditto.
5720 * sh-tdep.c (sh64_frame_chain): Ditto.
5721 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5722 (sh_nofp_frame_init_saved_regs): Ditto.
5723 (sh64_nofp_frame_init_saved_regs): Ditto.
5724 (sh_fp_frame_init_saved_regs): Ditto.
5725 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5726 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5727 * procfs.c (procfs_fetch_registers): Ditto.
5728 (procfs_store_registers): Ditto.
5729 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5730 (store_inferior_registers, fetch_core_registers): Ditto.
5731 (fetch_kcore_registers, clear_regs): Ditto.
5732 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5733 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5734 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5735 * nlm/i386.c (do_status): Ditto.
5736 * mipsv4-nat.c (supply_gregset): Ditto.
5737 * mips-tdep.c: Ditto for comments.
5738 * mips-nat.c (fetch_inferior_registers): Ditto.
5739 (store_inferior_registers, fetch_core_registers): Ditto.
5740 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5741 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5742 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5743 (i386_do_pop_frame, i386_register_type): Ditto.
5744 * hppa-tdep.c (hppa_frame_chain): Ditto.
5745 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5746 (hppa_pop_frame, hppa_read_fp): Ditto.
5747 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5748 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5749 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5750 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5751 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5752 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5753 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5754 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5755 * blockframe.c: Ditto for comments.
5756 * arch-utils.h: Ditto for comments.
5757 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5758 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5759 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5760 * alpha-tdep.h: Ditto for comments.
5761 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5762 (alpha_cannot_store_register): Ditto.
5763 (alpha_push_dummy_frame): Ditto.
5764 * alpha-nat.c (supply_gregset): Ditto.
5766 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5767 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5768 * config/sparc/tm-sparc.h: Update comment.
5770 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5771 deprecated_read_fp instead of TARGET_READ_FP.
5772 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5773 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5774 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5775 deprecated_read_fp instead of read_fp.
5776 * s390-tdep.c (s390_push_arguments): Ditto.
5777 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5778 * frame.h: Ditto in comments.
5779 * frame.c (legacy_get_prev_frame): Ditto.
5780 * dummy-frame.c (dummy_frame_this_id): Ditto.
5781 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5783 2003-04-28 Andrew Cagney <cagney@redhat.com>
5785 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5786 * gdbarch.h, gdbarch.c: Re-generate.
5787 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5788 * vax-tdep.c (_initialize_vax_tdep): Update.
5789 * v850-tdep.c (_initialize_v850_tdep): Update.
5790 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5791 * s390-tdep.c (_initialize_s390_tdep): Update.
5792 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5793 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5794 * mips-tdep.c (_initialize_mips_tdep): Update.
5795 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5796 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5797 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5798 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5799 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5800 * frv-tdep.c (_initialize_frv_tdep): Update.
5801 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5802 (_initialize_cris_tdep): Update.
5803 * arch-utils.c (legacy_print_insn): Update.
5804 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5806 2003-04-26 Adam Fedor <fedor@gnu.org>
5808 * linespec.c (decode_objc): New function to decode ObjC calls
5809 (decode_line_1): Check for ObjC calls (using decode_objc)
5810 * Makefile (linespec.o): Update dependencies.
5812 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5814 * breakpoint.h (struct breakpoint_ops): New.
5815 (struct breakpoint): Add ops member.
5817 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5818 (mention): Use new breakpoint ops member.
5819 (set_raw_breakpoint): Initialize ops field to NULL.
5820 (print_exception_catchpoint, print_one_exception_catchpoint)
5821 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5822 (gnu_v3_exception_catchpoint_ops): New.
5823 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5825 2003-04-25 Adam Fedor <fedor@gnu.org>
5827 * Makefile.in (COMMON_OBS): Add objc-lang.o
5829 2003-04-25 Andrew Cagney <cagney@redhat.com>
5831 * d10v-tdep.c (print_insn): Delete function.
5832 (display_trace): Use TARGET_PRINT_INSN.
5833 (_initialize_d10v_tdep): Do not set tm_print_insn.
5834 (d10v_gdbarch_init): Set print_insn.
5836 2003-04-25 Andrew Cagney <cagney@redhat.com>
5838 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5839 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5840 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5841 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5842 (nr_dmap_regs, a0_regnum): ... new functions.
5843 (d10v_print_registers_info): Use a0_regnum, use register_size.
5844 (d10v_register_byte): Delete function.
5845 (d10v_register_raw_size): Delete function.
5846 (d10v_register_type): Use a0_regnum.
5847 (d10v_print_registers_info): Use a0_regnum.
5848 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5849 (d10v_gdbarch_init): Do not set register_byte or
5850 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5851 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5853 (trace_command): Use XCALLOC.
5854 (print_insn): Delete reference to tm_print_insn.
5855 (saved_regs_unwinder): Use store_unsigned_integer instead of
5857 * frame.h (FRAME_OBSTACK_CALLOC): Define
5859 2003-04-25 David Carlton <carlton@bactrian.org>
5861 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5863 2003-04-24 Adam Fedor <fedor@gnu.org>
5865 * objc-lang.c: Include "valprint.h"
5866 * Makefile.in (objc-lang.o): Update dependencies.
5868 2003-04-24 Adam Fedor <fedor@gnu.org>
5870 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5871 architecture dependant compilation and mark as unimplemented
5872 (until they get put in the gdbarch vector).
5874 2003-04-23 David Carlton <carlton@bactrian.org>
5876 * cp-support.c (cp_find_first_component): Accept 'operator' in
5879 2003-04-23 Andrew Cagney <cagney@redhat.com>
5881 * infcall.c (call_function_by_hand): Eliminate redundant
5882 indentation. Move "saved_async" and "old_cleanups" to where they
5885 2003-04-23 Andrew Cagney <cagney@redhat.com>
5887 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5888 and "buffer". Move the "name" code to where it is needed.
5890 2003-04-23 Andrew Cagney <cagney@redhat.com>
5892 * infcall.c (call_function_by_hand): Move variables "start_sp",
5893 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5894 code to ON_STACK switch branch.
5896 2003-04-23 Andrew Cagney <cagney@redhat.com>
5898 * infcall.c (call_function_by_hand): Make declaration of "i",
5899 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5902 2003-04-23 Andrew Cagney <cagney@redhat.com>
5904 * infcall.c (call_function_by_hand): Delete variable
5905 "n_method_args". Localize "param_type"'s declaration to the loop
5906 that it is used. Reinstate code assigning to said variable -
5907 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5908 Rationalize code using "param_type".
5910 2003-04-22 Andrew Cagney <cagney@redhat.com>
5912 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5913 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5914 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5915 to DEPRECATED_PUSH_RETURN_ADDRESS.
5917 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5919 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5920 on the DWARF2 register number prior to fetching a register.
5922 2003-04-22 J. Brobecker <brobecker@gnat.com>
5924 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5925 Update all the tests using SOFT_FLOAT considering the fact that
5926 this macro was always set to 0.
5927 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5928 considering the fact that this macro was always set to 0.
5929 * hppa-tdep.h (hppa_store_return_value): Likewise.
5930 (hppa_extract_return_value): Likewise.
5932 2003-04-22 J. Brobecker <brobecker@gnat.com>
5934 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5935 the hppa-pro target only.
5937 2003-04-21 J. Brobecker <brobecker@gnat.com>
5939 Ongoing multi-arch conversion effort for HP/UX:
5940 * config/pa/tm-hppa.h: Move all macro that are no longer
5941 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5942 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5944 2003-04-21 J. Brobecker <brobecker@gnat.com>
5946 * config/pa/tm-hppa.h: Obsolete a section that was only used
5949 2003-04-21 J. Brobecker <brobecker@gnat.com>
5951 Ongoing multi-arch conversion for HP/UX.
5952 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5953 if already defined (allows hppa64 to stay non-multiarched for now).
5954 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5956 2003-04-21 Andrew Cagney <cagney@redhat.com>
5958 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5960 2003-04-21 Andrew Cagney <cagney@redhat.com>
5962 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5963 "i386_num_mmx_regs".
5965 2003-04-21 Andrew Cagney <cagney@redhat.com>
5967 * infcall.c: New file.
5968 * infcall.h: New file.
5969 * valarith.c: Include "infcall.h".
5970 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5971 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5972 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5973 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5974 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5975 (SFILES): Add "infcall.c"
5976 (COMMON_OBS): Add "infcall.o".
5977 (infcall.o): Specify dependencies.
5978 * value.h (call_function_by_hand): Delete declaration.
5979 * inferior.h (run_stack_dummy): Delete declaration.
5980 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5981 (run_stack_dummy): Move to "infcall.c", merged into
5982 call_function_by_hand.
5983 * valops.c (call_function_by_hand): Moved to "infcall.c".
5984 (find_function_addr, value_arg_coerce): Ditto.
5985 (unwindonsignal_p, coerce_float_to_double): Ditto.
5986 (_initialize_valops): Move "set/show coerce-float-to-double", and
5987 "set/show unwindonsignal" commands to "infcall.c".
5988 * v850-tdep.c, target.h: Update comments.
5989 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5990 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5991 (sh64_init_extra_frame_info): Update comments.
5992 * mn10300-tdep.c: Update comments.
5993 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5994 * config/sparc/tm-sparc.h: Update comments.
5995 * breakpoint.h: Update comments.
5996 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5997 * arm-tdep.c: Update comment.
5999 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6001 * i386-tdep.c (i386_num_register_names): New variable.
6002 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6003 (MM0_REGNUM): Remove redundant parentheses in define.
6004 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6005 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6006 i386_mxcsr_regnum_p): Remove redundant parentheses.
6007 (i386_register_name): Use i386_num_register_names.
6009 * i386-tdep.c (i386_extract_return_value,
6010 i386_store_return_value): Correct check for availability of
6011 floating-point registers.
6013 * i386-tdep.c (i386_frame_num_args): Remove function.
6014 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6016 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6017 mmx_regnum_to_fp_regnum. Adjust all callers.
6019 * i386-tdep.c (i386_get_longjmp_target): Use
6020 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6021 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6024 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6026 * core-regset.c: Update comments to reflect reality. Re-order
6028 (fetch_core_registers): Use switch instead of if. Remove
6029 redundant prototype.
6031 2003-04-18 Jim Blandy <jimb@redhat.com>
6033 * s390-tdep.c (s390_frame_align): New function.
6034 (s390_gdbarch_init): Register it with the gdbarch object.
6036 2003-04-17 Richard Henderson <rth@redhat.com>
6038 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6040 2003-04-17 Michael Snyder <msnyder@redhat.com>
6041 Karen Bennet <bennet@redhat.com>
6043 Committed by Elena Zannoni <ezannoni@redhat.com>
6044 * gdb_gcore.sh: New script to create a core dump of a process.
6046 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6048 * values.c (value_being_returned): Don't fetch the return
6049 value if the return type is void.
6051 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6053 * thread-db.c: Reindented.
6055 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6057 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6058 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6085 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6087 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6088 the size of ``long double'' to 16, instead of 8.
6090 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6092 * i386-linux-nat.c: Add some whitespace to make things more
6094 (fetch_register, store_register, fetch_inferior_registers,
6095 store_inferior_registers): Get rid of assignment in if-statement.
6096 (store_register): Fix typo in error message.
6098 2003-04-16 Andrew Cagney <cagney@redhat.com>
6100 * utils.c (xmmalloc): Always allocate something, matches
6101 libiberty/xmalloc's semantics.
6102 (xmrealloc, xmcalloc): Ditto.
6104 2003-04-16 Andrew Cagney <cagney@redhat.com>
6106 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6108 (get_frame_type): Initialize unwind and type when needed.
6109 (get_frame_id, frame_register_unwind): Ditto.
6111 2003-04-16 Andrew Cagney <cagney@redhat.com>
6113 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6115 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6116 * sparcl-stub.c: Obsolete file.
6117 * config/sparc/tm-sparclet.h: Obsolete file.
6118 * sparclet-stub.c: Obsolete file.
6119 * sparclet-rom.c: Obsolete file.
6120 * sparcl-tdep.c: Obsolete file.
6121 * config/sparc/tm-sparclite.h: Obsolete file.
6122 * config/sparc/sparclite.mt: Obsolete file.
6123 * config/sparc/sparclet.mt: Obsolete file.
6124 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6125 sparc86x-*-* obsolete.
6127 2003-04-15 David Carlton <carlton@math.stanford.edu>
6129 * Makefile.in (SFILES): Add cp-namespace.c.
6130 (COMMON_OBS): Add cp-namespace.o.
6131 (block.o): Depend on gdb_obstack_h and cp_support_h.
6132 (buildsym.o): Depend on cp_support_h.
6133 (cp-namespace.o): New.
6134 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6135 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6136 (dwarf2read.o): Depend on cp_support_h.
6137 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6138 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6139 processing_current_namespace.
6140 (read_namespace): Update processing_current_namespace; check for
6141 anonymous namespaces.
6142 (dwarf2_name): New function.
6143 (dwarf2_extension): Ditto.
6144 * cp-support.h: Update copyright, contributors.
6145 Add inclusion guards.
6146 Add opaque declaration for structs obstack, block, symbol.
6147 (struct using_direct): New struct.
6148 Add declarations for cp_find_first_component,
6149 cp_entire_prefix_len, processing_has_namespace_info,
6150 processing_current_namespace, cp_is_anonymous,
6151 cp_add_using_directive, cp_initialize_namespace,
6152 cp_finalize_namespace, cp_set_block_scope,
6153 cp_scan_for_anonymous_namespaces.
6154 * cp-namespace.c: New file.
6155 * cp-support.c: Update copyright.
6156 Include ctype.h, gdb_assert.h, gdbcmd.h.
6157 New variable maint_cplus_cmd_list.
6158 (cp_find_first_component): New function.
6159 (cp_entire_prefix_len, maint_cplus_command)
6160 (first_component_command, _initialize_cp_support): Ditto.
6161 * buildsym.c: Include cp-support.h.
6162 New variable using_list.
6163 (add_symbol_to_list): Check for anonymous namespaces.
6164 (finish_block): Set block's scope.
6165 (start_symtab): Initialize C++ namespace support.
6166 (end_symtab): Finalize C++ namespace support.
6167 * block.h: Add opaque declarations for structs
6168 block_namespace_info, using_direct, and obstack.
6169 Add declarations for block_set_scope and block_set_using.
6170 (struct block): Add 'language_specific' member.
6171 (BLOCK_NAMESPACE): New macro.
6172 * block.c: Include gdb_obstack.h and cp-support.h.
6173 (struct block_namespace_info): New struct.
6174 (block_set_scope): New function.
6175 (block_set_using, block_initialize_namespace): Ditto.
6177 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6179 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6180 (locate_base): Return early if there aren't any link map offsets.
6181 (svr4_solib_create_inferior_hook): Warn if shared library support
6184 2003-04-14 David Carlton <carlton@math.stanford.edu>
6186 * symtab.c (symbol_set_names): Add prefix when storing Java names
6187 in hash table. Fix for PR java/1039.
6189 2003-04-14 David Carlton <carlton@math.stanford.edu>
6191 * symtab.c (symbol_set_names): Rename 'name' arg to
6192 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6193 * symtab.h: Change 'name' argument in declaration of
6194 symbol_set_names to 'linkage_name'.
6195 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6197 2003-04-14 Andrew Cagney <cagney@redhat.com>
6199 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6200 return the fully sign-extended register value.
6201 (get_frame_pointer): Ditto.
6202 (mips_pop_frame): Initialize "proc_desc" after checking for a
6205 2003-04-14 Andrew Cagney <cagney@redhat.com>
6207 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6208 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6209 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6210 (mips_push_register): Delete function.
6211 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6214 2003-04-14 Jim Blandy <jimb@redhat.com>
6216 * symmisc.c: #include "gdb_regex.h".
6217 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6219 * maint.c (maintenance_list_command): New function.
6220 (_initialize_maint_cmds): Register the above as commands.
6221 * symtab.h (maintenance_list_symtabs,
6222 maintenance_list_psymtabs): New declarations.
6223 * cli/cli-cmds.c (maintenancelistlist): New variable.
6224 (init_cmd_lists): Initialize it.
6225 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6226 * gdbcmd.h (maintenancelistlist): New declaration.
6227 * Makefile.in (symmisc.o): Update dependencies.
6229 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6231 * s390-nat.c: Include asm/types.h for addr_t.
6233 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6235 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6236 actually incoming type.
6238 2003-04-13 Andrew Cagney <cagney@redhat.com>
6240 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6241 get_next_frame and get_frame_saved_regs.
6243 2003-04-13 Andrew Cagney <cagney@redhat.com>
6245 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6246 of gdbarch_num_regs.
6248 2003-04-13 Andrew Cagney <cagney@redhat.com>
6250 * frame.h: Mention what replaced what in "struct frame_info".
6251 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6252 deprecated_update_frame_base_hack and
6253 deprecated_update_frame_pc_hack.
6254 * hppa-tdep.c: Ditto.
6256 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6258 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6259 to read_reg and update its comment. Remove regnum member.
6260 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6261 Don't call read_reg when setting in_reg. Call read_reg to get
6262 the frame base if it's in a register. Return the register number
6263 on the stack instead of in the context. Remove extra arguments
6265 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6266 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6267 the register number on the expression stack.
6268 (needs_frame_read_reg): Remove extra arguments.
6270 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6272 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6274 (execute_stack_op): All callers updated.
6275 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6276 * dwarf2loc.c (find_location_expression): New function.
6277 (dwarf_expr_frame_base): Call it.
6278 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6279 (dwarf2_tracepoint_var_ref): New function, broken out from
6280 locexpr_tracepoint_var_ref.
6281 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6283 (loclist_read_variable, loclist_read_needs_frame): New functions.
6284 (loclist_describe_location, loclist_tracepoint_var_ref): New
6286 (dwarf2_loclist_funcs): New struct location_funcs.
6287 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6288 (struct dwarf2_locexpr_baton): Add comments.
6289 (dwarf2_loclist_funcs): New extern.
6290 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6291 base_address and base_known.
6292 (dwarf_loc_buffer): New variable.
6293 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6294 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6295 (dwarf2_has_info): Initialize dwarf_loc_offset.
6296 (dwarf2_build_psymtabs): Read in .debug_loc.
6297 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6299 (psymtab_to_symtab_1): Likewise. Move base address calculation
6301 (dwarf2_get_pc_bounds): ... here. Use the base address from
6303 (dwarf2_symbol_mark_computed): Handle location lists.
6305 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6307 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6308 if the linkage name demangled successfully.
6310 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6312 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6313 disassmbly_flavour): Removed.
6315 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6317 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6319 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6321 2003-04-12 Andrew Cagney <cagney@redhat.com>
6323 * frame.h (struct frame_info): Move definition from here ...
6324 * frame.c (struct frame_info): ... to here.
6326 2003-04-12 Andrew Cagney <cagney@redhat.com>
6328 * gdbthread.h (save_infrun_state): Delete parameter
6330 (struct thread_info): Delete field "prev_func_start".
6331 (load_infrun_state): Ditto.
6332 * thread.c (load_infrun_state, save_infrun_state): Update.
6333 * infrun.c (prev_func_start): Delete variable.
6334 (context_switch, init_wait_for_inferior): Update.
6335 (stop_stepping, keep_going): Update.
6337 2003-04-12 Andrew Cagney <cagney@redhat.com>
6339 * gdbarch.sh: Add missing opaque declarations.
6340 * gdbarch.h: Regnerate.
6341 * symtab.h: Add missing opaque declarations.
6342 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6343 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6344 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6345 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6346 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6347 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6348 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6349 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6350 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6351 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6352 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6353 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6354 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6356 2003-04-11 Andrew Cagney <cagney@redhat.com>
6358 * frame.c (get_frame_id): Return this frame's "id".
6359 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6361 (legacy_saved_regs_this_id): Replace function body with
6363 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6364 FRAME_OBSTACK_ZALLOC.
6365 (create_new_frame): Mark the frame ID as valid.
6367 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6369 * Makefile.in (libbfd_h): Added missing setting.
6370 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6371 according to the selected ABI.
6373 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6375 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6377 2003-04-11 Andrew Cagney <cagney@redhat.com>
6379 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6380 SAVED_PC_AFTER_CALL.
6381 * gdbarch.h, gdbarch.c: Regenerate.
6382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6383 * x86-64-tdep.c (x86_64_init_abi): Update.
6384 * vax-tdep.c (vax_gdbarch_init): Update.
6385 * v850-tdep.c (v850_gdbarch_init): Update.
6386 * sparc-tdep.c (sparc_gdbarch_init): Update.
6387 * sh-tdep.c (sh_gdbarch_init): Update.
6388 * s390-tdep.c (s390_gdbarch_init): Update.
6389 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6390 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6391 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6392 * mips-tdep.c (mips_gdbarch_init): Update.
6393 * mcore-tdep.c (mcore_gdbarch_init): Update.
6394 * m68k-tdep.c (m68k_gdbarch_init): Update.
6395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6396 * ia64-tdep.c (ia64_gdbarch_init): Update.
6397 (ia64_saved_pc_after_call): Update declaration.
6398 * i386ly-tdep.c (i386lynx_init_abi): Update.
6399 * i386-tdep.c (i386_gdbarch_init): Update.
6400 * hppa-tdep.c (hppa_gdbarch_init): Update.
6401 * h8300-tdep.c (h8300_gdbarch_init): Update.
6402 * frv-tdep.c (frv_gdbarch_init): Update.
6403 * cris-tdep.c (cris_gdbarch_init): Update.
6404 * avr-tdep.c (avr_gdbarch_init): Update.
6405 * arm-tdep.c (arm_gdbarch_init): Update.
6406 * alpha-tdep.c (alpha_gdbarch_init): Update.
6407 * ns32knbsd-nat.c (frame_num_args): Update.
6408 * ns32k-tdep.c (umax_frame_num_args): Update.
6409 * mips-tdep.c (mips_init_frame_pc_first): Update.
6410 * infrun.c (step_over_function): Update.
6411 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6412 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6413 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6414 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6415 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6416 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6417 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6418 * arch-utils.c (init_frame_pc_default): Update.
6419 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6420 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6423 2003-04-11 Andrew Cagney <cagney@redhat.com>
6425 * i387-tdep.c: Update copyright.
6426 (i387_to_double): Delete function.
6427 (double_to_i387): Delete function.
6429 2003-04-10 Andrew Cagney <cagney@redhat.com>
6431 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6432 frame's function's address. Simplify.
6433 (d10v_frame_unwind_cache): Check that the frame's function is
6436 2003-04-10 Jim Blandy <jimb@redhat.com>
6438 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6439 call to set_gdbarch_deprecated_push_arguments.
6441 2003-04-10 Andrew Cagney <cagney@redhat.com>
6443 * frame.c (fprint_frame_id): New function.
6444 (fprint_frame_type, fprint_frame): New function.
6445 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6446 (create_sentinel_frame, get_frame_id): Ditto.
6447 (frame_id_p, frame_id_eq): Ditto.
6448 (frame_id_inner, create_new_frame): Ditto.
6449 (legacy_get_prev_frame, get_prev_frame): Ditto.
6450 (deprecated_update_frame_pc_hack): Ditto.
6451 (frame_register_unwind): Ditto.
6452 (deprecated_update_frame_base_hack): Ditto.
6454 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6456 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6457 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6458 frame_chain function.
6459 * Makefile.in: Add dependencies due to above change.
6461 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6463 * blockframe.c (legacy_frame_chain_valid): Move call to
6464 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6467 2003-04-09 Andrew Cagney <cagney@redhat.com>
6469 * frame.h (struct frame_id): Replace "pc" and "base" with
6470 "stack_addr" and "code_addr". Update comments.
6471 (frame_id_build): Update parameter names and comment.
6472 (struct frame_info): Replace "id_p" and "id" with "this_id".
6473 * dummy-frame.c (dummy_frame_this_id): Update.
6474 * breakpoint.c (print_one_breakpoint): Update.
6475 * frame.c (get_frame_id): Update.
6476 (get_frame_base, frame_id_build): Update.
6477 (create_sentinel_frame, legacy_get_prev_frame): Update.
6478 (deprecated_update_frame_base_hack): Update.
6479 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6480 (frame_id_inner): Ditto.
6482 2003-04-09 Andrew Cagney <cagney@redhat.com>
6484 * defs.h (gdb_print_host_address): Make "addr" parameter a
6486 * utils.c (gdb_print_host_address): Update.
6488 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6490 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6491 register number for R0 is 0.
6493 2003-04-09 J. Brobecker <brobecker@gnat.com>
6495 * frame.h (struct gdbarch): Add opaque structure definition
6496 to avoid a compilation warning on LynxOS 4.0.
6498 2003-04-09 Andrew Cagney <cagney@redhat.com>
6500 * frame.h (struct frame_info): Delete field "pc". Replace
6501 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6503 * frame.c (frame_pc_unwind): Update.
6504 (create_sentinel_frame): Do not set "pc".
6505 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6506 (get_frame_pc): Call frame_pc_unwind.
6507 (deprecated_update_frame_pc_hack): Update.
6508 (create_new_frame): Use "pc" not "->pc".
6510 2003-04-09 Andrew Cagney <cagney@redhat.com>
6512 * frame.c (get_frame_id): Eliminate code updating "frame".
6513 (legacy_get_prev_frame): Ditto.
6514 (get_frame_base): Return id.base directly.
6515 (deprecated_update_frame_base_hack): Update "id.base".
6516 * frame.h (struct frame_info): Delete field "frame".
6518 2003-04-09 Andrew Cagney <cagney@redhat.com>
6520 * NEWS: Mention that the "Sequent family" is obsolete.
6521 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6522 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6523 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6524 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6525 * config/i386/tm-ptx4.h: Obsolete file.
6526 * config/i386/tm-ptx.h: Obsolete file.
6527 * symm-tdep.c: Obsolete file.
6528 * config/i386/symmetry.mt: Obsolete file.
6529 * config/i386/tm-symmetry.h: Obsolete file.
6530 * symm-nat.c: Obsolete file.
6531 * config/i386/nm-symmetry.h: Obsolete file.
6532 * config/i386/xm-symmetry.h: Obsolete file.
6533 * config/i386/symmetry.mh: Obsolete file.
6534 * config/i386/nm-ptx4.h: Obsolete file.
6535 * config/i386/ptx4.mh: Obsolete file.
6536 * config/i386/ptx.mt: Obsolete file.
6537 * config/i386/ptx.mh: Obsolete file.
6538 * config/i386/xm-ptx4.h: Obsolete file.
6539 * config/i386/xm-ptx.h: Obsolete file.
6541 2003-04-09 Andrew Cagney <cagney@redhat.com>
6543 Obsolete mips*-*-mach3*.
6544 * NEWS: Mention that mips*-*-mach3* is obsolete.
6545 * m3-nat.c: Obsolete file.
6546 * config/nm-m3.h: Obsolete file.
6547 * config/mips/tm-mipsm3.h: Obsolete file.
6548 * config/mips/mipsm3.mt: Obsolete file.
6549 * config/mips/mipsm3.mh: Obsolete file.
6550 * config/mips/xm-mipsm3.h: Obsolete file.
6551 * mipsm3-nat.c: Obsolete file.
6552 * configure.host: Obsolete mips-dec-mach3*.
6553 * configure.tgt: Obsolete mips*-*-mach3*.
6555 2003-04-09 Andrew Cagney <cagney@redhat.com>
6557 * doublest.h: Update copyright.
6558 (deprecated_store_floating, deprecated_extract_floating): Rename
6559 store_floating and extract_floating. Update comments.
6560 * doublest.c: Update copyright.
6561 (extract_floating_by_length): Replace extract_floating.
6562 (store_floating_by_length): Replace store_floating.
6563 (deprecated_extract_floating): New function.
6564 (deprecated_store_floating): New function.
6565 (extract_typed_floating): Call extract_floating_by_length.
6566 (store_typed_floating): Call store_floating_by_length.
6567 * x86-64-tdep.c (x86_64_store_return_value): Update.
6568 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6569 (sh64_extract_return_value): Update.
6570 (sh_sh4_register_convert_to_virtual): Update.
6571 (sh_sh64_register_convert_to_virtual): Update.
6572 (sh_sh4_register_convert_to_raw): Update.
6573 (sh_sh64_register_convert_to_raw): Update.
6574 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6575 (rs6000_register_convert_to_raw): Update.
6576 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6577 (ia64_register_convert_to_raw): Update.
6578 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6579 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6580 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6581 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6582 (alpha_register_convert_to_raw): Update.
6584 2003-04-08 Andrew Cagney <cagney@redhat.com>
6586 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6587 * gdbarch.h, gdbarch.c: Re-generate.
6588 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6589 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6590 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6591 conditionally, use frame_pc_unwind as an alternative. Add
6593 * arch-utils.c (init_frame_pc_default): Only call
6594 SAVED_PC_AFTER_CALL when available.
6596 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6598 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6599 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6600 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6601 (start_remote): Ditto.
6602 (handle_inferior_event): Ditto.
6603 (save_inferior_status): Ditto.
6604 (restore_inferior_status): Ditto.
6605 * infcmd.c (attach_command): Ditto.
6606 * fork-child.c (startup_inferior): Ditto.
6607 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6608 * alpha-tdep.c (heuristic_proc_start): Ditto.
6609 * mips-tdep.c (heuristic_proc_start): Ditto.
6610 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6611 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6612 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6613 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6614 * remote-vx.c (vx_create_inferior): Ditto.
6616 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6618 * infrun.c (stop_soon_quietly): Make it an enum, to better
6619 override the default behavior of handle_inferior_event.
6620 (clear_proceed_status): Update uses of stop_soon_quietly to
6621 reflect that it is now an enum.
6622 (start_remote): Ditto.
6623 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6624 is set to handle the new GNU/Linux kernel behavior for
6625 attach/sigstop. Update uses of stop_soon_quietly.
6626 * inferior.h (enum stop_kind): New enum.
6627 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6628 Reset normal handle_inferior_event behavior, afterwards.
6629 * fork-child.c (startup_inferior): Update.
6630 * alpha-tdep.c (heuristic_proc_start): Update.
6631 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6632 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6633 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6634 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6635 * remote-vx.c (vx_create_inferior): Update.
6636 * mips-tdep.c (heuristic_proc_start): Update.
6638 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6640 * disasm.c (dump_insns): Move variables inside loop, or they will
6641 be freed more than once, causing wild memory corruptions.
6642 (gdb_disassembly): Look for the substring "-thread",
6643 instead of "-threads" in the target name, to make sure to find
6644 the 'multi-thread' target. Also, make sure we do the right thing
6645 with the "core" target.
6647 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6649 * mips-tdep.c (mips_print_fp_register): New function, created from
6650 do_fp_register_row(). Registers are now (also) printed as hex.
6651 Only one register is printed per row.
6652 (mips_print_register, do_fp_register_row): Print floating point
6653 registers with mips_print_fp_register().
6655 2003-04-06 Andrew Cagney <cagney@redhat.com>
6657 * valprint.h (inspect_it): Add extern declaration.
6658 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6659 (selectors_info, classes_info): Ditto.
6660 (find_objc_msgcall): Fix indentation.
6661 (objc_printstr): Delete extern declarations.
6663 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6665 2003-04-06 Andrew Cagney <cagney@redhat.com>
6667 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6669 * frame.c (legacy_saved_regs_this_id): Update.
6670 (legacy_get_prev_frame): Update.
6671 * xstormy16-tdep.c: Update comment.
6672 * sparc-tdep.c (sparc_frame_chain): Update comment.
6673 * blockframe.c (legacy_frame_chain_valid): Update.
6675 2003-04-06 Andrew Cagney <cagney@redhat.com>
6677 * valprint.c (val_print_type_code_int): Delete #ifdef
6678 PRINT_TYPELESS_INTEGER code.
6680 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6681 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6682 multi-arch definition.
6683 * gdbarch.h: Re-generate.
6685 2003-04-05 Andrew Cagney <cagney@redhat.com>
6687 Eliminate FRAME_FIND_SAVED_REGS.
6688 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6689 Change FSR parameter to a pointer.
6690 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6691 Assume FSR parameter is a pointer.
6692 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6694 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6695 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6696 saved_regs a pointer.
6697 (hppa_frame_saved_pc): Ditto.
6698 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6699 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6701 (restore_pc_queue): Make fsr a pointer.
6702 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6703 (hppa_frame_chain): Make saved_regs a pointer, call
6704 hppa_frame_init_saved_regs.
6705 * sparc-tdep.c: Include "gdb_assert.h".
6706 (sparc_frame_find_saved_regs): Replace internal_error with
6708 * remote-vxsparc.c (vx_read_register): Delete reference to
6709 FRAME_FIND_SAVED_REGS.
6710 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6711 * gdbarch.h: Regenerate.
6712 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6713 (deprecated_get_frame_saved_regs): Delete declaration.
6714 (struct frame_saved_regs): Delete definition.
6715 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6716 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6717 (hppa_frame_find_saved_regs): Delete declaration.
6718 (FRAME_FIND_SAVED_REGS): Delete macro.
6719 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6720 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6721 FRAME_FIND_SAVED_REGS in comment.
6723 2003-04-05 Andrew Cagney <cagney@redhat.com>
6725 * frame.c (frame_func_unwind, get_frame_func): New functions.
6726 * frame.h (get_frame_func, frame_func_unwind): Declare.
6727 (struct frame_info): Add field "prev_func" for caching the
6728 previous frame's function address.
6729 * arm-tdep.c (arm_frameless_function_invocation): Combine
6730 get_pc_function_start and get_frame_pc into get_frame_func.
6731 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6732 (sh64_nofp_frame_init_saved_regs): Ditto.
6733 * s390-tdep.c (s390_function_start): Ditto.
6734 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6735 (rs6000_frameless_function_invocation): Ditto.
6736 (rs6000_frame_saved_pc): Ditto.
6737 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6738 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6739 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6740 (i386_frame_init_saved_regs): Ditto.
6741 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6742 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6743 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6744 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6745 * blockframe.c (frameless_look_for_prologue): Ditto.
6747 2003-04-05 Andrew Cagney <cagney@redhat.com>
6749 * frame.c (legacy_get_prev_frame): Link prev to next at the
6750 function start. Update comments.
6752 2003-04-05 Andrew Cagney <cagney@redhat.com>
6754 * frame.c (get_frame_id): Update comment.
6755 (legacy_get_prev_frame): Update comment.
6756 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6757 * gdbarch.h: Regenerate.
6758 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6759 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6761 2003-04-05 Andrew Cagney <cagney@redhat.com>
6763 * stack.c (print_frame_info): Use get_frame_pc.
6765 2003-04-04 Andrew Cagney <cagney@redhat.com>
6767 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6768 the frame's type from the unwinder.
6769 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6770 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6771 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6772 (get_frame_base_address): Use get_frame_type.
6773 (get_frame_locals_address, get_frame_args_address): Ditto.
6774 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6775 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6776 (struct frame_info): Add comment explaining why the frame contains
6778 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6779 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6780 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6782 * frame-unwind.h: Include "frame.h".
6783 (struct frame_unwind): Add "type" field.
6784 * Makefile.in (frame_unwind_h): Add $(frame_h).
6786 2003-04-04 Andrew Cagney <cagney@redhat.com>
6788 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6789 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6790 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6792 (d10v_unwind_dummy_id): Use frame_id_build.
6793 * frame.c (find_frame_sal): Use get_frame_pc.
6794 (create_new_frame): Use deprecated_update_frame_pc_hack and
6795 deprecated_update_frame_base_hack.
6796 (create_sentinel_frame): Add comment about ->pc going away.
6797 (get_prev_frame): Add comment about ->pc going away.
6798 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6799 frame_id_build, deprecated_update_frame_pc_hack and
6800 deprecated_update_frame_base_hack.
6801 (select_frame): Use get_frame_pc.
6802 (legacy_saved_regs_this_id): Use frame_id_build.
6804 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6806 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6807 signed integer case.
6808 (classify_argument): Handle enumerations and references.
6810 2003-04-04 Andrew Cagney <cagney@redhat.com>
6812 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6815 2003-04-01 Adam Fedor <fedor@gnu.org>
6817 * gdb/objc-lang.c (selectors_info): Replace calls to
6818 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6819 SYMBOL_NATURAL_NAME.
6820 (classes_info, find_methods): Likewise.
6822 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6824 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6825 ``mach'' to the value determined by bfd_default_set_arch_mach().
6827 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6829 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6830 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6831 (mi-cmd-file.o): Update dependencies.
6833 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6835 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6836 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6838 2003-04-01 Adam Fedor <fedor@gnu.org>
6840 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6841 * language.h (struct language_defn): Add la_demangle.
6842 (language_demangle): Declare.
6843 * language.c (language_demangle): New function.
6844 (unk_lang_demangle): Likewise.
6845 (unknown_language_defn, auto_language_defn, local_language_defn):
6846 Add ukn_lang_demangle.
6847 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6848 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6849 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6850 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6851 * jv-lang.c (java_demangle): New function
6852 (java_language_defn): Use it for la_demangle element.
6853 * objc-lang.c (objc_demangle): Add options argument
6854 (objc_language_defn): Use objc_demangle for la_demangle element.
6855 * maint.c (maintenance_demangle): Replace switch with
6856 call to language_demangle.
6857 * utils.c (fprintf_symbol_filtered): Likewise.
6859 2003-04-01 Andrew Cagney <cagney@redhat.com>
6861 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6862 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6863 PRINT_TYPELESS_INTEGER.
6864 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6865 PUSH_RETURN_ADDRESS.
6867 2003-04-01 Andrew Cagney <cagney@redhat.com>
6869 * Makefile.in (d10v-tdep.o): Update dependencies.
6870 * d10v-tdep.c: Include "frame-base.h".
6871 (d10v_frame_unwind): Make constant.
6872 (d10v_frame_base_address): New function.
6873 (d10v_frame_base): New variable.
6874 (d10v_gdbarch_init): Set frame_base default.
6875 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6877 (d10v_frame_unwind_cache): Set and use "prev_sp".
6878 (d10v_frame_this_id): Use the previous frame's inner most stack
6879 address and this frame's func address for the frame ID. Use
6880 frame_id_build. Don't analyze beyond the current instruction.
6882 2003-04-01 Andrew Cagney <cagney@redhat.com>
6884 * frame.h (get_frame_locals_address, get_frame_args_address):
6885 Refer to the base address, instead of the address of the first
6888 2003-04-01 Andrew Cagney <cagney@redhat.com>
6890 Add frame debug info addresses:
6891 * frame-base.c: New file.
6892 * frame-base.h: New file.
6893 * frame.h (struct frame_base): Add opaque declaration.
6894 (get_frame_base): Update comment.
6895 (get_frame_base_address): Declare.
6896 (get_frame_locals_address): Declare.
6897 (get_frame_args_address): Declare.
6898 (struct frame_info): Add "base" and "base_cache". Update
6899 comments on the unwinder.
6900 * frame.c: Include "frame-base.h".
6901 (get_frame_locals_address): New function.
6902 (get_frame_base_address): New function.
6903 (get_frame_args_address): New function.
6904 * findvar.c (read_var_value): Use get_frame_locals_address and
6905 get_frame_args_address.
6906 * stack.c (frame_info): Use get_frame_locals_address and
6907 get_frame_args_address.
6908 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6909 moved to "frame-base.c".
6910 * printcmd.c (print_frame_nameless_args): Ditto.
6911 * symtab.h (address_class): Update comments.
6912 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6913 get_frame_base_address.
6914 * dwarf2expr.c (execute_stack_op): Ditto.
6915 * Makefile.in (frame_base_h): Define.
6916 (frame.o): Update dependencies.
6917 (frame-base.o): Add dependencies.
6918 (SFILES): Add frame-base.c.
6919 (COMMON_OBS): Add frame-base.o.
6921 2003-04-01 Andrew Cagney <cagney@redhat.com>
6923 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6924 CALL_DUMMY_LENGTH): Ditto.
6925 * gdbarch.c: Re-generate.
6926 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6927 (CALL_DUMMY_LENGTH): Delete macro.
6928 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6929 * arm-tdep.c (arm_gdbarch_init): Ditto.
6930 * avr-tdep.c (avr_gdbarch_init): Ditto.
6931 * cris-tdep.c (cris_gdbarch_init): Ditto.
6932 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6933 * frv-tdep.c (frv_gdbarch_init): Ditto.
6934 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6935 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6936 * i386-tdep.c (i386_gdbarch_init): Ditto.
6937 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6938 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6939 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6940 * mips-tdep.c (mips_gdbarch_init): Ditto.
6941 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6942 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6943 * s390-tdep.c (s390_gdbarch_init): Ditto.
6944 * sh-tdep.c (sh_gdbarch_init): Ditto.
6945 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6946 * v850-tdep.c (v850_gdbarch_init): Ditto.
6947 * vax-tdep.c (vax_gdbarch_init): Ditto.
6948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6950 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6952 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6954 2003-04-01 Andrew Cagney <cagney@redhat.com>
6956 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6957 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6958 * gdbarch.h, gdbarch.c: Re-generate.
6959 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6960 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6961 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6962 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6963 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6964 * infcmd.c (run_stack_dummy): Simplify assuming
6965 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6966 * infrun.c (handle_inferior_event): Ditto.
6967 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6968 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6969 * arm-tdep.c (arm_gdbarch_init): Ditto.
6970 * avr-tdep.c (avr_gdbarch_init): Ditto.
6971 * cris-tdep.c (cris_gdbarch_init): Ditto.
6972 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6973 * frv-tdep.c (frv_gdbarch_init): Ditto.
6974 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6975 * i386-tdep.c (i386_gdbarch_init): Ditto.
6976 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6978 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6979 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6980 * mips-tdep.c (mips_gdbarch_init): Ditto.
6981 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6982 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6983 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6984 * s390-tdep.c (s390_gdbarch_init): Ditto.
6985 * sh-tdep.c (sh_gdbarch_init): Ditto.
6986 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6987 * v850-tdep.c (v850_gdbarch_init): Ditto.
6988 * vax-tdep.c (vax_gdbarch_init): Ditto.
6989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6991 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6993 * symfile.c (symfile_relocate_debug_section): Update call to
6994 bfd_simple_get_relocated_section_contents.
6996 2003-03-31 Andrew Cagney <cagney@redhat.com>
6998 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6999 * gdbarch.h, gdbarch.c: Regenerate.
7000 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7001 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7003 * frame.h (generic_fix_call_dummy): Delete declaration.
7004 * dummy-frame.h: Update comment.
7005 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7008 * sh-tdep.c (sh_gdbarch_init): Ditto.
7009 * s390-tdep.c (s390_gdbarch_init): Ditto.
7010 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7011 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7012 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7013 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7014 * i386-tdep.c (i386_gdbarch_init): Ditto.
7015 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7016 * frv-tdep.c (frv_gdbarch_init): Ditto.
7017 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7018 * cris-tdep.c (cris_gdbarch_init): Ditto.
7019 * avr-tdep.c (avr_gdbarch_init): Ditto.
7020 * arm-tdep.c (arm_gdbarch_init): Ditto.
7022 2003-03-31 J. Brobecker <brobecker@gnat.com>
7024 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7025 (INIT_FRAME_AP): Likewise.
7026 (EXTRA_FRAME_INFO): Likewise.
7028 2003-03-31 Andrew Cagney <cagney@redhat.com>
7030 * gdbarch.sh: Include "symfile.h".
7031 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7032 * gdbarch.h, gdbarch.c: Re-generate.
7033 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7035 call_dummy_address, the default is at entry_point_address.
7036 * v850-tdep.c (v850_gdbarch_init): Ditto.
7037 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7038 * sh-tdep.c (sh_gdbarch_init): Ditto.
7039 * s390-tdep.c (s390_gdbarch_init): Ditto.
7040 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7041 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7042 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7043 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7044 * i386-tdep.c (i386_gdbarch_init): Ditto.
7045 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7046 * frv-tdep.c (frv_gdbarch_init): Ditto.
7047 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7048 * cris-tdep.c (cris_gdbarch_init): Ditto.
7049 * arm-tdep.c (arm_gdbarch_init): Ditto.
7051 2003-03-31 Andrew Cagney <cagney@redhat.com>
7053 * gdbarch.sh (CALL_DUMMY_P): Delete.
7054 * gdbarch.h, gdbarch.c: Re-generate.
7055 * inferior.h (CALL_DUMMY_P): Delete macro.
7056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7057 * vax-tdep.c (vax_gdbarch_init): Update.
7058 * v850-tdep.c (v850_gdbarch_init): Update.
7059 * sparc-tdep.c (sparc_gdbarch_init): Update.
7060 * sh-tdep.c (sh_gdbarch_init): Update.
7061 * s390-tdep.c (s390_gdbarch_init): Update.
7062 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7063 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7064 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7065 * mips-tdep.c (mips_gdbarch_init): Update.
7066 * mcore-tdep.c (mcore_gdbarch_init): Update.
7067 * m68k-tdep.c (m68k_gdbarch_init): Update.
7068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7069 * ia64-tdep.c (ia64_gdbarch_init): Update.
7070 * i386-tdep.c (i386_gdbarch_init): Update.
7071 * h8300-tdep.c (h8300_gdbarch_init): Update.
7072 * frv-tdep.c (frv_gdbarch_init): Update.
7073 * d10v-tdep.c (d10v_gdbarch_init): Update.
7074 * cris-tdep.c (cris_gdbarch_init): Update.
7075 * breakpoint.c (deprecated_frame_in_dummy): Update.
7076 * avr-tdep.c (avr_gdbarch_init): Update.
7077 * alpha-tdep.c (alpha_gdbarch_init): Update.
7078 * arm-tdep.c (arm_gdbarch_init): Update.
7079 * dummy-frame.c (dummy_frame_this_id): Update comments.
7080 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7081 * frame.c (legacy_get_prev_frame): Ditto.
7082 * valops.c (call_function_by_hand): Delete function.
7083 (hand_function_call): Rename to call_function_by_hand
7085 2003-03-30 Andrew Cagney <cagney@redhat.com>
7087 2002-11-10 Klee Dienes <kdienes@apple.com>
7088 * value.h (struct value): Update comment.
7090 2003-03-30 Andrew Cagney <cagney@redhat.com>
7092 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7094 (d10v_gdbarch_init): Do not set fp_regnum.
7096 * frame.c (get_frame_base): Force ID initialization.
7097 (get_prev_frame): Move computation of the frame ID from here ...
7098 (get_frame_id): ... to here.
7099 (legacy_get_prev_frame): Mark the frame ID as valid.
7100 * frame.h (struct frame_info): Add field "id_p".
7102 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7104 * i386-tdep.c (i386_store_struct_return): Removed.
7105 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7107 2003-03-30 Andrew Cagney <cagney@redhat.com>
7109 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7110 * gdbarch.h, gdbarch.c: Regenerate.
7111 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7113 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7114 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7115 * i386-tdep.c (i386_gdbarch_init): Ditto.
7116 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7117 * cris-tdep.c (cris_gdbarch_init): Ditto.
7118 * vax-tdep.c (vax_gdbarch_init): Ditto.
7119 * s390-tdep.c (s390_gdbarch_init): Ditto.
7120 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7121 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7122 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7123 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7124 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7125 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7126 * sparc-tdep.c (sparc_gdbarch_init): Update.
7127 * sh-tdep.c (sh_gdbarch_init): Update.
7128 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7129 * mips-tdep.c (mips_gdbarch_init): Update.
7130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7131 * ia64-tdep.c (ia64_gdbarch_init): Update.
7132 * frv-tdep.c (frv_gdbarch_init): Update.
7133 * avr-tdep.c (avr_gdbarch_init): Update.
7134 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7135 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7136 instead of when push_dummy_call is not available.
7138 2003-03-30 Andrew Cagney <cagney@redhat.com>
7140 * infttrace.c: Include "gdbthread.h".
7141 (parent_attach_all): Fix function signature.
7142 (call_ptrace): Update call.
7143 * Makefile.in (infttrace.o): Update dependencies.
7145 2003-03-30 Andrew Cagney <cagney@redhat.com>
7147 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7148 PUSH_RETURN_ADDRESS.
7149 * gdbarch.h, gdbarch.c: Regenerate.
7150 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7151 * x86-64-tdep.c (x86_64_init_abi): Update.
7152 * v850-tdep.c (v850_gdbarch_init): Update.
7153 * sparc-tdep.c (sparc_gdbarch_init): Update.
7154 * sh-tdep.c (sh_gdbarch_init): Update.
7155 * s390-tdep.c (s390_gdbarch_init): Update.
7156 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7157 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7158 * mips-tdep.c (mips_gdbarch_init): Update.
7159 * mcore-tdep.c (mcore_gdbarch_init): Update.
7160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7161 * ia64-tdep.c (ia64_gdbarch_init): Update.
7162 * i386-tdep.c (i386_gdbarch_init): Update.
7163 * h8300-tdep.c (h8300_gdbarch_init): Update.
7164 * frv-tdep.c (frv_gdbarch_init): Update.
7165 * cris-tdep.c (cris_gdbarch_init): Update.
7166 * avr-tdep.c (avr_gdbarch_init): Update.
7167 * arm-tdep.c (arm_gdbarch_init): Update.
7168 * valops.c (hand_function_call): Update.
7170 2003-03-29 Andrew Cagney <cagney@redhat.com>
7172 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7173 sizeof_call_dummy_words.
7174 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7176 * gdbarch.h: Regenerate.
7178 2003-03-29 Andrew Cagney <cagney@redhat.com>
7180 * infttrace.h: New file.
7181 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7182 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7183 (hpread_read_doc_function_type): Detect an initialized type1.
7184 (hpread_quick_traverse): Initialize mod_name_string.
7185 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7186 (som_solib_get_solib_by_pc): Declare.
7187 (so_lib_thread_start_addr): Declare.
7188 (no_shared_libraries): Declare.
7189 * somread.c (init_import_symbols): Make static. Add forward
7191 * config/pa/nm-hppah.h: Include "infttrace.h" for
7193 (hppa_insert_hw_watchpoint): Declare.
7194 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7195 * hppah-nat.c: Include "gdb_string.h".
7196 (parent_attach_all): Delete extern declaration, moved to
7198 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7200 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7201 * Makefile.in (infttrace_h): Define.
7202 (hpread.o): Update dependencies.
7203 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7204 * hppa-hpux-tdep.c: Include "gdb_string.h".
7205 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7206 * infrun.c (handle_inferior_event): Always initialize
7207 stepped_after_stopped_by_watchpoint. Add default and remove
7208 fallthrough in switch statement.
7209 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7211 (hppa_remove_hw_watchpoint): Ditto.
7213 2003-03-29 Andrew Cagney <cagney@redhat.com>
7215 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7218 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7220 * arm-tdep.c (arm_push_arguments): Delete.
7221 (struct stack_item): New type.
7222 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7223 (arm_store_struct_return): Delte.
7224 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7225 arm_push_arguments or arm_store_struct_return.
7227 2003-03-28 Andrew Cagney <cagney@redhat.com>
7229 * Makefile.in (d10v-tdep.o): Update dependencies.
7230 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7231 * d10v-tdep.c: Include "remote.h".
7232 (target_resume_hook): Delete extern declaration.
7233 (target_wait_loop_hook): Ditto.
7234 (tdisassemble_command): Eliminate assignment in "if" conditional.
7235 (d10v_ts2_register_sim_regno): Eliminate call to
7236 legacy_register_sim_regno.
7237 (d10v_ts3_register_sim_regno): Ditto.
7239 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7241 * thread.c: Reindented.
7243 * linux-proc.c: Ditto.
7245 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7247 * MAINTAINERS (write after approval): Add myself.
7249 2003-03-27 Theodore A. Roth <troth@openavr.org>
7251 * objc-exp.y: Add missing semi-colons.
7253 2003-03-27 Andrew Cagney <cagney@redhat.com>
7255 * regcache.c (write_sp): Delete function and references.
7256 * inferior.h (write_sp): Delete declaration.
7257 * valops.c (hand_function_call): Replace write_sp with
7259 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7260 (sparc_pop_frame): Ditto.
7262 2003-03-27 Andrew Cagney <cagney@redhat.com>
7264 * NEWS: Mention removal of support for hppa*-*-bsd* and
7265 hppa*-*-osf* natives, and hppa*-*-pro* target.
7266 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7267 * config/pa/xm-pa.h: Obsolete file.
7268 * config/pa/xm-hppab.h: Obsolete file.
7269 * config/pa/nm-hppab.h: Obsolete file.
7270 * config/pa/tm-hppab.h: Obsolete file.
7271 * config/pa/tm-hppao.h: Obsolete file.
7272 * config/pa/nm-hppao.h: Obsolete file.
7273 * config/pa/tm-pro.h: Obsolete file.
7274 * config/pa/hppaosf.mt: Obsolete file.
7275 * config/pa/hppaosf.mh: Obsolete file.
7276 * config/pa/hppapro.mt: Obsolete file.
7277 * config/pa/hppabsd.mt: Obsolete file.
7278 * config/pa/hppabsd.mh: Obsolete file.
7279 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7280 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7283 2003-03-27 Andrew Cagney <cagney@redhat.com>
7285 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7286 push_arguments. Don't set push_return_address or write_sp.
7287 (d10v_push_dummy_call): Replace d10v_push_arguments.
7288 (d10v_push_return_address, d10v_write_sp): Delete function,
7289 handled by push_dummy_call.
7291 2003-03-26 Andrew Cagney <cagney@redhat.com>
7293 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7294 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7295 regcache and dummy_addr parameters.
7296 * gdbarch.h, gdbarch.c: Re-generate.
7297 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7298 available; assume it will handle stack alignment and return
7299 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7300 legacy_push_arguments.
7301 (legacy_push_arguments): Rename default_push_arguments.
7302 * value.h (legacy_push_arguments): Rename default_push_arguments.
7303 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7304 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7305 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7306 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7307 * config/i386/tm-symmetry.h: Update.
7308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7309 * x86-64-tdep.c (x86_64_init_abi): Update.
7310 * v850-tdep.c (v850_gdbarch_init): Update.
7311 * sparc-tdep.c (sparc_gdbarch_init): Update.
7312 * sh-tdep.c (sh_gdbarch_init): Update.
7313 * s390-tdep.c (s390_gdbarch_init): Update.
7314 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7315 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7316 * mips-tdep.c (mips_gdbarch_init): Update.
7317 * mcore-tdep.c (mcore_gdbarch_init): Update.
7318 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7319 * ia64-tdep.c (ia64_gdbarch_init): Update.
7320 * i386-tdep.c (i386_gdbarch_init): Update.
7321 * hppa-tdep.c (hppa_gdbarch_init): Update.
7322 * h8300-tdep.c (h8300_gdbarch_init): Update.
7323 * frv-tdep.c (frv_gdbarch_init): Update.
7324 * d10v-tdep.c (d10v_gdbarch_init): Update.
7325 * cris-tdep.c (cris_gdbarch_init): Update.
7326 * avr-tdep.c (avr_gdbarch_init): Update.
7327 * arm-tdep.c (arm_gdbarch_init): Update.
7328 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7329 * alpha-tdep.c (alpha_gdbarch_init): Update.
7331 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7333 * signals/signals.c (do_target_signal_to_host): Correct realtime
7336 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7338 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7339 (struct sal_chain, map_catch_names): Remove.
7340 (catch_exception_command_1): Don't call
7341 handle_gnu_4_16_catch_command.
7343 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7345 From Mark Dettinger <dettinge@de.ibm.com>:
7346 * dwarf2cfi.c (read_2u): Increment pointer by two.
7348 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7350 * signals/signals.c: Fix typos in last change.
7352 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7354 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7355 not already defined. Use __SIGRTMIN if available.
7356 (target_signal_from_host): Remove SIGRTMIN block.
7357 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7358 the signal is within the realtime range.
7360 2003-03-25 Adam Fedor <fedor@gnu.org>
7362 * Makefile.in (infrun.o): Add $(language_h)
7363 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7364 for language specific trampolines.
7365 * language.h (struct language_defn): Add skip_trampoline.
7366 (skip_language_trampoline): Declare.
7367 * language.c (unk_lang_trampoline, skip_language_trampoline):
7369 (unknown_language_defn, auto_language_defn, local_language_defn):
7370 Add ukn_lang_trampoline.
7371 * ada-lang.c (ada_language_defn): Add NULL for language
7372 specific skip_trampoline.
7373 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7374 scm-lang.c: Likewise.
7375 * objc-lang.c (objc_skip_trampoline): New function.
7376 (objc_language_defn): Add objc_skip_trampoline.
7378 2003-03-25 Andrew Cagney <cagney@redhat.com>
7380 * frame.c (get_prev_frame): Delay validating a frame's ID -
7381 non-NULL, didn't go backwards - until an attempt to unwind it to
7384 2003-03-25 Andrew Cagney <cagney@redhat.com>
7386 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7387 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7388 * gdbarch.h, gdbarch.c: Re-generate.
7389 * config/sparc/tm-sparc.h
7390 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7391 * sparc-tdep.c (sparc_gdbarch_init): Set
7392 deprecated_extra_stack_alignment_needed.
7393 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7394 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7395 extra_stack_alignment_needed.
7396 * v850-tdep.c (v850_gdbarch_init): Ditto.
7397 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7398 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7399 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7400 * cris-tdep.c (cris_gdbarch_init): Ditto.
7401 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7404 2003-03-25 Andrew Cagney <cagney@redhat.com>
7406 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7407 STORE_STRUCT_RETURN.
7408 * gdbarch.h, gdbarch.c: Regenerate.
7409 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7410 (d10v_push_arguments): Set the struct return register.
7411 (d10v_gdbarch_init): Update.
7412 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7413 * x86-64-tdep.c (x86_64_init_abi): Update.
7414 * vax-tdep.c (vax_gdbarch_init): Update.
7415 * v850-tdep.c (v850_gdbarch_init): Update.
7416 * sparc-tdep.c (sparc_gdbarch_init): Update.
7417 * sh-tdep.c (sh_gdbarch_init): Update.
7418 * s390-tdep.c (s390_gdbarch_init): Update.
7419 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7420 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7421 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7422 * mips-tdep.c (mips_gdbarch_init): Update.
7423 * mcore-tdep.c (mcore_gdbarch_init): Update.
7424 * m68k-tdep.c (m68k_gdbarch_init): Update.
7425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7426 * ia64-tdep.c (ia64_gdbarch_init): Update.
7427 * i386-tdep.c (i386_gdbarch_init): Update.
7428 * hppa-tdep.c (hppa_gdbarch_init): Update.
7429 * h8300-tdep.c (h8300_gdbarch_init): Update.
7430 * frv-tdep.c (frv_gdbarch_init): Update.
7431 * cris-tdep.c (cris_gdbarch_init): Update.
7432 * avr-tdep.c (avr_gdbarch_init): Update.
7433 * arm-tdep.c (arm_gdbarch_init): Update.
7434 * alpha-tdep.c (alpha_gdbarch_init): Update.
7436 2003-03-25 Andrew Cagney <cagney@redhat.com>
7438 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7439 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7440 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7441 * gdbarch.h, gdbarch.c: Regenerate.
7442 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7443 call_dummy_stack_adjust_p.
7444 * vax-tdep.c (vax_gdbarch_init): Ditto.
7445 * v850-tdep.c (v850_gdbarch_init): Ditto.
7446 * sh-tdep.c (sh_gdbarch_init): Ditto.
7447 * s390-tdep.c (s390_gdbarch_init): Ditto.
7448 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7449 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7450 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7451 * mips-tdep.c (mips_gdbarch_init): Ditto.
7452 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7453 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7454 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7455 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7456 * i386-tdep.c (i386_gdbarch_init): Ditto.
7457 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7458 * frv-tdep.c (frv_gdbarch_init): Ditto.
7459 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7460 * cris-tdep.c (cris_gdbarch_init): Ditto.
7461 * avr-tdep.c (avr_gdbarch_init): Ditto.
7462 * arm-tdep.c (arm_gdbarch_init): Ditto.
7463 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7464 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7465 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7466 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7467 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7468 call_dummy_stack_adjust_p.
7469 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7470 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7471 * sparc-tdep.c (sparc32_push_arguments): Update.
7472 * valops.c (hand_function_call): Update.
7474 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7477 set_gdbarch_char_signed.
7479 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7482 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7484 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7486 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7487 (_initialize_arm_tdep): Don't set tm_print_insn.
7489 2003-03-24 Adam Fedor <fedor@gnu.org>
7491 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7492 * objc-lang.h: Add multiple inclusion protection.
7493 (start_msglist, add_msglist, end_msglist): Additional declarations.
7495 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7497 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7498 value was renamed to ARM_FLOAT_SOFT_FPA.
7500 2003-03-23 Andrew Cagney <cagney@redhat.com>
7502 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7503 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7504 * gdbarch.h, gdbarch.c: Regenerate.
7505 * valops.c (hand_function_call): Update.
7506 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7507 * frame.c (legacy_saved_regs_this_id): Update.
7508 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7509 * dummy-frame.h: Update.
7510 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7511 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7512 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7513 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7514 * config/m68k/tm-sun3.h: Update.
7515 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7516 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7517 * x86-64-tdep.c (x86_64_init_abi): Update.
7518 * vax-tdep.c (vax_gdbarch_init): Update.
7519 * v850-tdep.c (v850_gdbarch_init): Update.
7520 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7521 * sh-tdep.c (sh_gdbarch_init): Update.
7522 * s390-tdep.c (s390_gdbarch_init): Update.
7523 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7524 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7525 (frame_get_saved_regs): Update.
7526 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7527 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7528 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7529 * mips-tdep.c (mips_gdbarch_init): Update.
7530 * mcore-tdep.c (mcore_gdbarch_init): Update.
7531 * m68k-tdep.c (m68k_gdbarch_init): Update.
7532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7533 * ia64-tdep.c (ia64_gdbarch_init): Update.
7534 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7535 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7536 (i386_interix_back_one_frame): Update.
7537 * hppa-tdep.c (hppa_gdbarch_init): Update.
7538 (hppa_init_extra_frame_info): Update.
7539 * h8300-tdep.c (h8300_gdbarch_init): Update.
7540 * frv-tdep.c (frv_gdbarch_init): Update.
7541 * cris-tdep.c (cris_gdbarch_init): Update.
7542 * avr-tdep.c (avr_gdbarch_init): Update.
7543 * arm-tdep.c (arm_gdbarch_init): Update.
7544 * alpha-tdep.c (alpha_gdbarch_init): Update.
7546 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7548 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7549 (arm_get_fp_model): Declare.
7550 * arm-tdep.c (fp_model_strings): New string array.
7551 (arm_fp_model, current_fp_model): New variables.
7552 (arm_get_fp_model): New function.
7553 (arm_set_fp): New function.
7554 (set_fp_model_sfunc): New function.
7555 (show_fp_model): New function.
7556 (_initialize_arm_tdep): Add new command to set/show the FPU.
7557 (arm_extract_return_value): Use arm_get_fp_model.
7558 (arm_store_return_value): Likewise.
7559 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7560 to initialize the floating-point data types.
7561 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7564 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7566 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7567 the current setting of each value.
7568 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7569 new_set and new_show. Use add_setshow_cmd_full and
7570 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7571 commands and add new version as subcommands of "set/show arm".
7573 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7575 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7576 (set_arm_command, show_arm_command): New functions.
7577 (_initialize_arm_tdep): Add them.
7578 (num_disassembly_options): Renamed from num_flavor_options.
7579 (valid_disassembly_styles): Renamed from valid_flavors.
7580 (disassembly_style): Renamed from disassembly_flavor.
7581 (set_disassembly_style_sfunc): Renamed from
7582 set_disassembly_flavor_sfunc.
7583 (set_disassembly_style): Renamed from set_disassembly_flavor.
7584 (arm_othernames): Updated.
7585 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7586 command. Add "set/show arm disassembly" commands. Deprecate
7587 "othernames" command.
7589 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7591 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7592 (arm-tdep.o): Depend on elf_arm_h.
7594 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7596 * Makefile.in (coff_internal_h): Define.
7597 (arm-tdep.o): Update dependencies.
7599 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7601 * arm-tdep.c (prologue_cache): Delete.
7602 (check_prologue_cache, save_prologue_cache): Delete.
7603 (arm_scan_prologue): Don't check or update the prologue_cache.
7604 (arm_gdb_arch_init): Don't initialize it.
7605 (_initialize_arm_tdep): Likewise.
7607 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7609 * MAINTAINERS (tui): Maintainer of tui code.
7611 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7613 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7614 (i386-cygwin-tdep.o): Add dependencies.
7615 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7616 * i386-cygwin-tdep.c: New file.
7617 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7618 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7620 2003-03-20 Andrew Cagney <cagney@redhat.com>
7622 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7623 (handle_inferior_event): Remove code calling
7624 DYNAMIC_TRAMPOLINE_NEXTPC.
7626 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7627 already has a full path.
7629 * main.c (gdb_main): Return 1.
7630 (captured_main): Call error to report an invalid interpreter.
7632 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7633 * alpha-osf1-tdep.c: Include "gdb_string.h".
7635 2003-03-19 J. Brobecker <brobecker@gnat.com>
7637 Continuing work to convert the hppa targets to multiarch partial.
7639 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7640 method, now that hppa_push_dummy_frame has a conformant prototype.
7641 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7642 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7643 for the switch to multiarch partial.
7645 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7647 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7648 when iss is issNull.
7650 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7652 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7653 NUM_REGS bounds check.
7655 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7657 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7658 * mips-tdep.c (gdb_assert.h): Include.
7659 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7660 (mips_register_name): Handle integer registers explicitly. Add
7662 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7663 (mips_lsi33k_reg_names): Don't list integer registers; they're
7664 handled by mips_register_name() now.
7665 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7666 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7667 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7668 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7669 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7671 2003-03-18 Andrew Cagney <cagney@redhat.com>
7673 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7675 * gdbtypes.h (print_scalar_formatted): Update declaration.
7676 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7678 2003-03-18 J. Brobecker <brobecker@gnat.com>
7680 * infrun.c (observer.h): Add #include.
7681 (normal_stop): Add call to observer_notify_normal_stop.
7682 * Makefile.in (infrun.o): Add dependency on observer.h.
7684 2003-03-18 J. Brobecker <brobecker@gnat.com>
7686 Continuing work to convert the hppa targets to multiarch partial.
7687 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7688 parameter. Reformat comment.
7689 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7690 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7691 to match new profile.
7693 2003-03-18 J. Brobecker <brobecker@gnat.com>
7695 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7696 appear to be working in any case.
7698 2003-03-18 J. Brobecker <brobecker@gnat.com>
7700 * observer.c (observer_test_first_observer): New static variable.
7701 (observer_test_second_observer): Likewise.
7702 (observer_test_third_observer): Likewise.
7703 (observer_test_first_notification_function): New static function.
7704 (observer_test_second_notification_function): Likewise.
7705 (observer_test_third_notification_function): Likewise.
7707 2003-03-17 J. Brobecker <brobecker@gnat.com>
7709 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7710 * somsolib.c (gdb_assert.h): Likewise.
7711 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7712 (somsolib.o): Likewise.
7714 2003-03-17 Andrew Cagney <cagney@redhat.com>
7716 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7717 BFD. Simplify setting of di.endian.
7719 2003-03-17 Andrew Cagney <cagney@redhat.com>
7721 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7722 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7724 From Elena Zannoni <ezannoni@redhat.com>
7725 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7726 vector and floating-point parameters.
7727 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7729 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7731 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7733 * MAINTAINERS: Remove my name from several maintainership roles.
7735 2003-03-17 Andrew Cagney <cagney@redhat.com>
7737 Fix frame off-by-one bug.
7738 * frame-unwind.h (frame_this_id_ftype): Replace
7739 frame_unwind_id_ftype.
7740 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7741 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7742 with "prev_register".
7743 * frame-unwind.c (frame_unwind_find_by_pc): Return
7744 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7746 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7747 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7748 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7749 (dummy_frame_unwind): Update.
7750 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7751 sentinel_frame_register_unwind.
7752 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7753 (sentinel_frame_unwinder): Update.
7754 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7755 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7756 * frame.c (create_sentinel_frame): Update. Initialize
7757 "prologue_cache" instead of "unwind_cache".
7758 (frame_register_unwind): Call this frame's prev_register with the
7759 next frame and this frame's prologue cache.
7760 (get_prev_frame): Simplify. Always call prev frame's this_id with
7761 this frame and prev frame's prologue cache. Document that this
7762 call is shifted one to the left when compared to the
7763 frame_register_unwind call.
7764 (legacy_saved_regs_prev_register): Replace
7765 frame_saved_regs_register_unwind.
7766 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7767 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7768 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7769 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7770 (d10v_frame_unwind): Update.
7771 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7772 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7773 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7774 "saved_regs" with "this_saved_regs".
7776 2003-03-16 Andrew Cagney <cagney@redhat.com>
7778 * frame.c (frame_pop): Don't call target_store_registers. Fix
7779 problem reported by Mark Kettenis.
7781 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7783 * i386-tdep.c (i386_register_type): Renamed from
7784 i386_register_virtual_type. Adjust function signature.
7785 (i386_gdbarch_init): Set register_type instead of
7786 deprecated_max_register_raw_size,
7787 deprecated_max_register_virtual_size and register_virtual_type.
7789 2003-03-14 Andrew Cagney <cagney@redhat.com>
7791 * frame.c (get_prev_frame): When a legacy frame, always call
7792 legacy_get_prev_frame. Simplify unwind code using assumption that
7793 the unwinder is new.
7794 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7795 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7796 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7798 2003-03-14 Andrew Cagney <cagney@redhat.com>
7800 * frame.c (get_saved_register): Delete function.
7801 * frame.h (get_saved_register): Delete declaration.
7802 * xstormy16-tdep.c: Update comment.
7803 * regcache.h: Update comments.
7804 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7805 get_saved_register and extract_address, use
7806 frame_read_unsigned_register.
7807 (sparc_frame_saved_pc): Ditto.
7808 (sparc_get_saved_register): Instead of get_saved_register, use
7810 (sparc_pop_frame): Ditto.
7811 * findvar.c: Update comments.
7812 (value_of_register): Call frame_register instead of
7814 (value_from_register): Ditto.
7815 * config/sparc/tm-sparc.h: Update comment.
7816 * breakpoint.c: Update comment.
7818 2003-03-14 Andrew Cagney <cagney@redhat.com>
7820 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7822 * gdbarch.h, gdbarch.c: Re-generate.
7823 * frame.h: Update comments.
7824 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7825 * x86-64-tdep.c (x86_64_init_abi): Update.
7826 * sparc-tdep.c (sparc_gdbarch_init): Update.
7827 * sh-tdep.c (sh_gdbarch_init): Update.
7828 * mips-tdep.c (mips_gdbarch_init): Update.
7829 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7830 * cris-tdep.c (cris_gdbarch_init): Update.
7831 * ia64-tdep.c (ia64_gdbarch_init): Update.
7832 * frame.c (frame_register): Update.
7833 (get_saved_register): Update.
7834 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7836 2003-03-13 Andrew Cagney <cagney@redhat.com>
7838 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7839 * gdbarch.h, gdbarch.c: Regenerate.
7840 * valops.c (hand_function_call): Update comment.
7841 * stack.c (return_command): Update comment.
7842 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7843 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7845 * x86-64-tdep.c (x86_64_init_abi): Update.
7846 * vax-tdep.c (vax_gdbarch_init): Update.
7847 * v850-tdep.c (v850_gdbarch_init): Update.
7848 * sparc-tdep.c (sparc_gdbarch_init): Update.
7849 * sh-tdep.c (sh_gdbarch_init): Update.
7850 * s390-tdep.c (s390_gdbarch_init): Update.
7851 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7852 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7853 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7854 * mips-tdep.c (mips_gdbarch_init): Update.
7855 * mcore-tdep.c (mcore_gdbarch_init): Update.
7856 * m68k-tdep.c (m68k_gdbarch_init): Update.
7857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7858 * ia64-tdep.c (ia64_gdbarch_init): Update.
7859 * i386-tdep.c (i386_gdbarch_init): Update.
7860 * hppa-tdep.c (hppa_gdbarch_init): Update.
7861 * h8300-tdep.c (h8300_gdbarch_init): Update.
7862 * frv-tdep.c (frv_gdbarch_init): Update.
7863 * cris-tdep.c (cris_gdbarch_init): Update.
7864 * avr-tdep.c (avr_gdbarch_init): Update.
7865 * arm-tdep.c (arm_gdbarch_init): Update.
7866 * alpha-tdep.c (alpha_gdbarch_init): Update.
7868 2003-03-13 Andrew Cagney <cagney@redhat.com>
7870 * frame.c (legacy_frame_p): New function.
7871 (get_prev_frame): Use legacy_frame_p.
7872 * frame.h (legacy_frame_p): Declare.
7874 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7876 * MAINTAINERS (write after approval): Alphabetically
7879 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7881 * MAINTAINERS (write after approval): Add myself.
7883 2003-03-12 Andrew Cagney <cagney@redhat.com>
7885 * frame.c (get_prev_frame): Rename the frame parameter to
7887 (get_next_frame, legacy_get_prev_frame): Ditto.
7889 2003-03-12 Andrew Cagney <cagney@redhat.com>
7891 * frame.c (get_current_frame): Check target_has_registers before
7892 checking target_has_stack.
7893 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7894 instead of deprecated_selected_frame.
7895 * findvar.c (value_of_register): Pass "frame", not
7896 deprecated_selected_frame, to value_of_builtin_reg.
7898 2003-03-12 Andrew Cagney <cagney@redhat.com>
7900 * regcache.c (regcache_cooked_write_signed): New function.
7901 (regcache_cooked_write_unsigned): New function.
7902 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7903 (regcache_cooked_read_signed): Fix regnum in range assertion.
7904 * regcache.h (regcache_cooked_write_signed): Declare.
7905 (regcache_cooked_write_unsigned): Declare.
7907 2003-03-12 Andrew Cagney <cagney@redhat.com>
7909 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7910 * gdbarch.h, gdbarch.c: Re-generate.
7911 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7912 * x86-64-tdep.h: Update.
7913 * x86-64-tdep.c (x86_64_init_abi): Update.
7914 * v850-tdep.c (v850_gdbarch_init): Update.
7915 * sparc-tdep.c (sparc_gdbarch_init): Update.
7916 * sh-tdep.c (sh_gdbarch_init): Update.
7917 * s390-tdep.c (s390_gdbarch_init): Update.
7918 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7919 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7920 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7921 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7922 * mips-tdep.c (mips_gdbarch_init): Update.
7923 * mcore-tdep.c (mcore_gdbarch_init): Update.
7924 * m68k-tdep.c (m68k_gdbarch_init): Update.
7925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7926 * ia64-tdep.c (ia64_gdbarch_init): Update.
7927 * i386-tdep.c (i386_gdbarch_init): Update.
7928 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7929 * hppa-tdep.c (hppa_gdbarch_init): Update.
7930 * h8300-tdep.c (h8300_gdbarch_init): Update.
7931 * frv-tdep.c (frv_gdbarch_init): Update.
7932 * cris-tdep.c (cris_gdbarch_init): Update.
7933 * avr-tdep.c (avr_gdbarch_init): Update.
7934 * arm-tdep.c (arm_gdbarch_init): Update.
7935 * alpha-tdep.c (alpha_gdbarch_init): Update.
7936 * sh-tdep.c (sh_init_extra_frame_info): Update.
7937 (sh64_init_extra_frame_info): Update.
7938 * ns32knbsd-nat.c (frame_num_args): Update.
7939 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7940 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7941 (xstormy16_frame_chain_valid): Update.
7942 * vax-tdep.c (vax_saved_pc_after_call): Update.
7943 * v850-tdep.c (v850_frame_chain): Update.
7944 (v850_pop_frame): Update.
7945 (v850_init_extra_frame_info): Update.
7946 * sparc-tdep.c (setup_arbitrary_frame): Update.
7947 * ns32k-tdep.c (umax_frame_num_args): Update.
7948 * s390-tdep.c (s390_pop_frame_regular): Update.
7949 * mn10300-tdep.c (mn10300_frame_chain): Update.
7950 (mn10300_pop_frame_regular): Update.
7951 (mn10300_init_extra_frame_info): Update.
7952 * mips-tdep.c (mips_init_frame_pc_first): Update.
7953 (mips_frame_chain): Update.
7954 (mips_pop_frame): Update.
7955 * mcore-tdep.c (mcore_frame_chain): Update.
7956 (mcore_pop_frame): Update.
7957 (mcore_init_extra_frame_info): Update.
7958 * arch-utils.c (init_frame_pc_default): Update.
7959 * m68k-tdep.c (isi_frame_num_args): Update.
7960 (delta68_frame_num_args): Update.
7961 (news_frame_num_args): Update.
7962 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7963 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7964 (alpha_frame_chain): Update.
7965 (alpha_pop_frame): Update.
7966 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7967 (hppa_init_extra_frame_info): Update.
7968 (hppa_frame_chain): Update.
7969 (hppa_frame_chain_valid): Update.
7970 * cris-tdep.c (cris_init_extra_frame_info): Update.
7971 * avr-tdep.c (avr_init_extra_frame_info): Update.
7972 * arm-tdep.c (arm_frame_chain_valid): Update.
7973 (arm_init_extra_frame_info): Update.
7974 (arm_pop_frame): Update.
7975 * frame.c (frame_pc_unwind): Update.
7976 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7977 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7978 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7979 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7980 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7981 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7983 2003-03-12 Andrew Cagney <cagney@redhat.com>
7985 Eliminate the need for POP_FRAME.
7986 * frame.c (do_frame_unwind_register): New function.
7987 (frame_pop): When no POP_FRAME, pop the frame using register
7988 unwind and a scratch regcache.
7989 (frame_saved_regs_pop): Delete function.
7990 (trad_frame_unwinder): Update.
7991 * d10v-tdep.c (d10v_frame_pop): Delete function.
7992 (d10v_frame_unwind): Update.
7993 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7994 (sentinel_frame_unwinder): Update.
7995 * dummy-frame.c (dummy_frame_pop): Delete function.
7996 (dummy_frame_unwind): Update.
7997 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7998 (struct frame_unwind): Update.
8000 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8002 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8003 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8004 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8005 Do range checks on register number obtained from debugging info.
8006 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8007 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8008 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8010 (do_fp_register_row): Fix typo which caused double type to be
8011 used when attempting to unpack a float.
8013 2003-03-11 J. Brobecker <brobecker@gnat.com>
8015 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8017 2003-03-11 Andrew Cagney <cagney@redhat.com>
8019 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8020 frame. Problem found by Corinna Vinschen.
8022 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8024 * doublest.c (floatformat_from_length): Accept also
8025 the real size of 'long double' type.
8027 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8029 From Klee Dienes <kdienes@apple.com>:
8030 * breakpoint.c (bpstat_copy): Copy the command lines as well
8031 as the old value, to match what is freed in bpstat_clear.
8033 2003-03-10 David Carlton <carlton@math.stanford.edu>
8035 * minsyms.c (add_minsym_to_hash_table): Replace
8036 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8037 (compare_minimal_symbols, compact_minimal_symbols)
8038 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8039 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8040 of DEPRECATED_SYMBOL_MATCHES_NAME.
8041 (lookup_minimal_symbol_solib_trampoline): Ditto.
8043 2003-03-10 Andrew Cagney <cagney@redhat.com>
8045 * regcache.h (regcache_cooked_read_ftype): Define.
8046 (regcache_save, regcache_restore): Add a cooked_read parameter.
8047 * regcache.c (regcache_save, regcache_restore): Update.
8048 (do_cooked_read): New function.
8049 (regcache_cpy): Pass do_cooked_read to regcache_save and
8052 2003-03-10 Andrew Cagney <cagney@redhat.com>
8054 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8055 * gdbarch.h, gdbarch.c: Re-generate.
8056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8057 * x86-64-tdep.h: Update.
8058 * x86-64-tdep.c (x86_64_init_abi): Update.
8059 * v850-tdep.c (v850_gdbarch_init): Update.
8060 * sparc-tdep.c (sparc_gdbarch_init): Update.
8061 * sh-tdep.c (sh_gdbarch_init): Update.
8062 * s390-tdep.c (s390_gdbarch_init): Update.
8063 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8064 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8065 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8066 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8067 * mips-tdep.c (mips_gdbarch_init): Update.
8068 * mcore-tdep.c (mcore_gdbarch_init): Update.
8069 * m68k-tdep.c (m68k_gdbarch_init): Update.
8070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8071 * ia64-tdep.c (ia64_gdbarch_init): Update.
8072 * i386-tdep.c (i386_gdbarch_init): Update.
8073 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8074 * hppa-tdep.c (hppa_gdbarch_init): Update.
8075 * h8300-tdep.c (h8300_gdbarch_init): Update.
8076 * frv-tdep.c (frv_gdbarch_init): Update.
8077 * cris-tdep.c (cris_gdbarch_init): Update.
8078 * avr-tdep.c (avr_gdbarch_init): Update.
8079 * arm-tdep.c (arm_gdbarch_init): Update.
8080 * alpha-tdep.c (alpha_gdbarch_init): Update.
8081 * sh-tdep.c (sh_init_extra_frame_info): Update.
8082 (sh64_init_extra_frame_info): Update.
8083 * ns32knbsd-nat.c (frame_num_args): Update.
8084 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8085 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8086 (xstormy16_frame_chain_valid): Update.
8087 * vax-tdep.c (vax_saved_pc_after_call): Update.
8088 * v850-tdep.c (v850_frame_chain): Update.
8089 (v850_pop_frame): Update.
8090 (v850_init_extra_frame_info): Update.
8091 * sparc-tdep.c (setup_arbitrary_frame): Update.
8092 * ns32k-tdep.c (umax_frame_num_args): Update.
8093 * s390-tdep.c (s390_pop_frame_regular): Update.
8094 * mn10300-tdep.c (mn10300_frame_chain): Update.
8095 (mn10300_pop_frame_regular): Update.
8096 (mn10300_init_extra_frame_info): Update.
8097 * mips-tdep.c (mips_init_frame_pc_first): Update.
8098 (mips_frame_chain): Update.
8099 (mips_pop_frame): Update.
8100 * mcore-tdep.c (mcore_frame_chain): Update.
8101 (mcore_pop_frame): Update.
8102 (mcore_init_extra_frame_info): Update.
8103 * arch-utils.c (init_frame_pc_default): Update.
8104 * m68k-tdep.c (isi_frame_num_args): Update.
8105 (delta68_frame_num_args): Update.
8106 (news_frame_num_args): Update.
8107 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8108 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8109 (alpha_frame_chain): Update.
8110 (alpha_pop_frame): Update.
8111 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8112 (hppa_init_extra_frame_info): Update.
8113 (hppa_frame_chain): Update.
8114 (hppa_frame_chain_valid): Update.
8115 * cris-tdep.c (cris_init_extra_frame_info): Update.
8116 * avr-tdep.c (avr_init_extra_frame_info): Update.
8117 * arm-tdep.c (arm_frame_chain_valid): Update.
8118 (arm_init_extra_frame_info): Update.
8119 (arm_pop_frame): Update.
8120 * frame.c (frame_pc_unwind): Update.
8121 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8122 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8123 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8124 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8125 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8126 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8128 2003-03-10 Andrew Cagney <cagney@redhat.com>
8130 * gdbarch.sh (gdbarch_unwind_pc): New method.
8131 * gdbarch.h, gdbarch.c: Regenerate.
8132 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8133 but use read_pc and FRAME_SAVED_PC as fall backs.
8134 (frame_saved_regs_pc_unwind): Delete function.
8135 (trad_frame_unwinder): Update.
8136 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8137 (struct frame_unwind): Update.
8138 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8139 (dummy_frame_unwind): Update.
8140 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8141 (sentinel_frame_unwinder): Update.
8142 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8143 (d10v_frame_unwind): Update.
8144 (d10v_unwind_pc): New function.
8145 (d10v_gdbarch_init): Set unwind_pc.
8147 2003-03-10 Andrew Cagney <cagney@redhat.com>
8149 * gdbarch.h: Re-generate.
8151 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8153 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8156 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8158 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8160 2003-03-08 Andrew Cagney <cagney@redhat.com>
8162 * cli-out.c: Update copyright.
8163 (cli_out_data): Define typedef. Use instead of ui_out_data.
8165 2003-03-08 Andrew Cagney <cagney@redhat.com>
8167 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8170 2003-03-07 Andrew Cagney <cagney@redhat.com>
8172 * gdbarch.sh: Don't generate two macro definitions when an
8173 undefined macro taking no arguments.
8174 * gdbarch.h: Regenerate.
8176 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8178 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8179 (x86_64_unwind_dummy_id): New functions.
8180 (x86_64_init_abi): Register these two new functions.
8182 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8184 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8185 (x86_64_skip_prologue): Move prologue detection to
8187 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8189 2003-03-05 Andrew Cagney <cagney@redhat.com>
8191 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8192 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8193 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8194 to use unwind_dummy_id when a dummy frame.
8195 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8197 * gdbarch.h, gdbarch.c: Regneerate.
8199 2003-03-05 Andrew Cagney <cagney@redhat.com>
8201 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8202 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8203 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8206 2003-03-05 Andrew Cagney <cagney@redhat.com>
8208 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8209 (struct d10v_unwind_cache): Delete field "frameless". Replace
8210 "next_addr" with "sp_offset". Add "r11_offset".
8211 (d10v_frame_unwind_cache): Update.
8212 (prologue_find_regs): Update. When "mv r11, sp", save the
8213 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8214 RN was saved in r11_offset.
8216 2003-03-05 Andrew Cagney <cagney@redhat.com>
8218 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8219 cached PC value in the next frame.
8221 2003-03-05 Andrew Cagney <cagney@redhat.com>
8223 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8224 "id_unwind_cache" with "id".
8225 (frame_id_unwind): Delete declaration.
8226 * frame.c (frame_id_unwind): Delete function.
8227 (get_prev_frame): Call the frame id unwind method directly. Store
8228 the returned next frame's ID value in NEXT_FRAME. Note that there
8229 is a problem with the wrong unwind ID being called with the wrong
8232 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8234 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8236 2003-03-05 James Ingham <jingham@apple.com>
8237 Daniel Jacobowitz <drow@mvista.com>
8239 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8240 (auto_cp_abi): New variable.
8241 (current_cp_abi, num_cp_abis): Make static.
8242 (CP_ABI_MAX): Define.
8243 (cp_abis): Turn into an array.
8244 (value_virtual_fn_field): Fix formatting.
8245 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8247 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8248 (list_cp_abis, _initialize_cp_abi): New functions.
8249 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8250 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8251 switch_to_cp_abi. Update prototype for register_cp_abi.
8252 * Makefile.in (cp-abi.o): Update dependencies.
8253 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8254 instead of switch_to_cp_abi.
8255 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8257 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8259 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8261 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8263 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8264 * dwarf2loc.c: Include "regcache.h".
8265 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8267 * Makefile.in (dwarf2loc.o): Update dependencies.
8269 2003-03-04 Theodore A. Roth <troth@openavr.org>
8271 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8272 number of io registers reported by remote target is not a multiple of
8275 2003-03-04 David Carlton <carlton@math.stanford.edu>
8277 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8278 (lookup_symbol_aux_psymtabs): Update call to
8279 lookup_partial_symbol.
8280 (lookup_transparent_type, find_main_psymtab)
8281 (make_symbol_overload_list): Ditto.
8283 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8285 * MAINTAINERS (Write after approval): Update my email address.
8287 2003-03-03 Andrew Cagney <cagney@redhat.com>
8289 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8290 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8291 predicate. Replace MAX_REGISTER_RAW_SIZE.
8292 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8293 MAX_REGISTER_VIRTUAL_SIZE.
8294 * regcache.c (legacy_max_register_raw_size): New function.
8295 (legacy_max_register_virtual_size): New function.
8296 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8297 (MAX_REGISTER_RAW_SIZE): Define.
8298 (legacy_max_register_raw_size): Declare.
8299 (legacy_max_register_virtual_size): Declare.
8300 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8301 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8302 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8303 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8304 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8305 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8306 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8307 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8308 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8309 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8310 * vax-tdep.c (vax_gdbarch_init): Update.
8311 * v850-tdep.c (v850_gdbarch_init): Update.
8312 * sparc-tdep.c (sparc_gdbarch_init): Update.
8313 * sh-tdep.c (sh_gdbarch_init): Update.
8314 * s390-tdep.c (s390_gdbarch_init): Update.
8315 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8316 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8317 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8318 * mips-tdep.c (mips_gdbarch_init): Update.
8319 * mcore-tdep.c (mcore_gdbarch_init): Update.
8320 * m68k-tdep.c (m68k_gdbarch_init): Update.
8321 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8322 * ia64-tdep.c (ia64_gdbarch_init): Update.
8323 * i386-tdep.c (i386_gdbarch_init): Update.
8324 * hppa-tdep.c (hppa_gdbarch_init): Update.
8325 * h8300-tdep.c (h8300_gdbarch_init): Update.
8326 * frv-tdep.c (frv_gdbarch_init): Update.
8327 * cris-tdep.c (cris_gdbarch_init): Update.
8328 * avr-tdep.c (avr_gdbarch_init): Update.
8329 * arm-tdep.c (arm_gdbarch_init): Update.
8330 * alpha-tdep.c (alpha_gdbarch_init): Update.
8331 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8332 max_register_raw_size or max_register_virtual_size.
8334 2003-03-03 David Carlton <carlton@math.stanford.edu>
8336 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8337 SYMBOL_MATCHES_NAME, add comment.
8338 (SYMBOL_MATCHES_NATURAL_NAME): New.
8339 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8340 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8341 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8342 * symtab.c (lookup_partial_symbol): Use
8343 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8345 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8346 SYMBOL_MATCHES_NAME.
8349 2003-03-03 David Carlton <carlton@math.stanford.edu>
8351 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8352 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8353 by regexp matching against SYMBOL_NATURAL_NAME.
8355 2003-03-03 David Carlton <carlton@math.stanford.edu>
8357 * linespec.c (find_method): Extract code into collect_methods.
8358 (collect_methods): New.
8360 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8362 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8365 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8366 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8368 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8370 * arch-utils.c (generic_register_byte): Fix to use the loop index
8371 and not regnum when summing the size of all registers up to regnum.
8373 2003-03-01 Andrew Cagney <cagney@redhat.com>
8375 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8376 FRAME_INIT_SAVED_REGS.
8377 * gdbarch.h, gdbarch.c: Regenerate.
8378 * stack.c (frame_info): Update.
8379 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8380 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8381 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8382 * ns32k-tdep.c (ns32k_pop_frame): Update.
8383 * mips-tdep.c (mips_pop_frame): Update.
8384 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8385 * ia64-tdep.c (ia64_frame_chain): Update.
8386 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8387 (ia64_frameless_function_invocation): Update.
8388 (ia64_init_extra_frame_info): Update.
8389 (ia64_pop_frame_regular): Update.
8390 * frame.h (struct frame_info): Update comment.
8391 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8392 * frame.c (frame_saved_regs_register_unwind): Update.
8393 (frame_saved_regs_register_unwind): Update.
8394 (deprecated_generic_get_saved_register): Update.
8395 * cris-tdep.c: Update comment.
8396 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8399 * x86-64-tdep.c (x86_64_init_abi): Update.
8400 * vax-tdep.c (vax_gdbarch_init): Update.
8401 * v850-tdep.c (v850_gdbarch_init): Update.
8402 * sparc-tdep.c (sparc_gdbarch_init): Update.
8403 * sh-tdep.c (sh_gdbarch_init): Update.
8404 * s390-tdep.c (s390_gdbarch_init): Update.
8405 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8406 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8407 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8408 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8409 * mips-tdep.c (mips_gdbarch_init): Update.
8410 * mcore-tdep.c (mcore_gdbarch_init): Update.
8411 * m68k-tdep.c (m68k_gdbarch_init): Update.
8412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8413 * ia64-tdep.c (ia64_gdbarch_init): Update.
8414 * i386-tdep.c (i386_gdbarch_init): Update.
8415 * frv-tdep.c (frv_gdbarch_init): Update.
8416 * avr-tdep.c (avr_gdbarch_init): Update.
8417 * arm-tdep.c (arm_gdbarch_init): Update.
8418 * alpha-tdep.c (alpha_gdbarch_init): Update.
8420 2003-03-01 Andrew Cagney <cagney@redhat.com>
8422 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8423 option enum and switch. When no windows, set the interpreter to
8426 2003-03-01 Andrew Cagney <cagney@redhat.com>
8428 * main.c (captured_main): Replace magic option characters with an
8431 2003-03-01 Andrew Cagney <cagney@redhat.com>
8433 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8434 INIT_EXTRA_FRAME_INFO.
8435 * gdbarch.h, gdbarch.c: Regenerate.
8436 * arm-tdep.c: Update comments.
8437 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8438 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8439 * frame.h, avr-tdep.c: Ditto.
8440 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8441 (create_new_frame, legacy_get_prev_frame): Ditto.
8442 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8443 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8445 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8446 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8447 * v850-tdep.c (v850_gdbarch_init): Ditto.
8448 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8449 * sh-tdep.c (sh_gdbarch_init): Ditto.
8450 * s390-tdep.c (s390_gdbarch_init): Ditto.
8451 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8452 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8453 * mips-tdep.c (mips_gdbarch_init): Ditto.
8454 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8456 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8457 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8458 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8459 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8460 * frv-tdep.c (frv_gdbarch_init): Ditto.
8461 * cris-tdep.c (cris_gdbarch_init): Ditto.
8462 * avr-tdep.c (avr_gdbarch_init): Ditto.
8463 * arm-tdep.c (arm_gdbarch_init): Ditto.
8464 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8465 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8467 2003-03-01 Andrew Cagney <cagney@redhat.com>
8469 * gdbarch.sh (register_type): New function with predicate.
8470 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8471 * gdbarch.h, gdbarch.c: Re-generate.
8472 * arch-utils.c (generic_register_byte): Use generic_register_size.
8473 (generic_register_size): When available, use
8474 gdbarch_register_type.
8475 * regcache.c (init_regcache_descr): When available, initialize the
8476 register type array using gdbarch_register_type. If the
8477 architecture supplies gdbarch_register_type, do not use the legacy
8479 * d10v-tdep.c (d10v_register_type): Replace
8480 d10v_register_virtual_type.
8481 (d10v_gdbarch_init): Set register_type instead of
8482 register_virtual_type.
8484 2003-03-01 Andrew Cagney <cagney@redhat.com>
8486 * Makefile.in (ax-gdb.o): Update dependencies.
8487 * ax-gdb.c: Include "regcache.h".
8488 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8489 * findvar.c (value_of_register): Ditto.
8490 * infcmd.c (default_print_registers_info): Ditto.
8492 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8494 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8495 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8497 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8499 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8502 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8504 * Makefile.in (dwarf2loc.o): Update dependencies.
8505 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8506 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8507 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8508 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8509 (locexpr_tracepoint_var_ref): New function.
8510 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8512 2003-02-28 Andrew Cagney <cagney@redhat.com>
8514 * regcache.c (register_size): New function.
8515 * regcache.h (register_size): Declare
8516 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8517 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8519 2003-02-28 David Carlton <carlton@math.stanford.edu>
8521 * linespec.c (decode_compound): Extract code into find_method.
8524 2003-02-28 J. Brobecker <brobecker@gnat.com>
8526 * Makefile.in: Add rules to build and link in observer.o.
8528 2003-02-27 J. Brobecker <brobecker@gnat.com>
8530 * observer.c: Minor comments edits.
8532 2003-02-27 J. Brobecker <brobecker@gnat.com>
8534 * observer.h, observer.c: New file.
8536 2003-02-27 Andrew Cagney <cagney@redhat.com>
8538 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8540 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8542 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8543 (M6812_OP_STS_EXT): Likewise.
8544 (m6811_prologue): Use the above to recognize prologue.
8545 (m6812_prologue): Likewise.
8547 2003-02-27 David Carlton <carlton@math.stanford.edu>
8549 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8551 (compare_psymbols): Ditto.
8552 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8554 2003-02-27 Michael Snyder <msnyder@redhat.com>
8556 * f-lang.c (build_fortran_types): New function.
8557 (_initialize_f_language): Gdbarch-register built-in fortran types.
8558 * doublest.c (extract_floating): Fix warning text.
8560 2003-02-27 Andrew Cagney <cagney@redhat.com>
8562 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8563 predicate. Replaces PUSH_DUMMY_FRAME.
8564 * gdbarch.h, gdbarch.c: Regnerate.
8565 * valops.c (hand_function_call): Update. Call
8566 generic_push_dummy_frame directly.
8567 * vax-tdep.c (vax_gdbarch_init): Update.
8568 * sparc-tdep.c (sparc_gdbarch_init): Update.
8569 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8570 * m68k-tdep.c (m68k_gdbarch_init): Update.
8571 * hppa-tdep.c (hppa_gdbarch_init): Update.
8572 * alpha-tdep.c (alpha_gdbarch_init): Update.
8573 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8574 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8575 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8576 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8577 push_dummy_frame to generic_push_dummy_frame.
8578 * v850-tdep.c (v850_gdbarch_init): Ditto.
8579 * sh-tdep.c (sh_gdbarch_init): Ditto.
8580 * s390-tdep.c (s390_gdbarch_init): Ditto.
8581 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8582 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8583 * mips-tdep.c (mips_gdbarch_init): Ditto.
8584 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8586 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8587 * i386-tdep.c (i386_gdbarch_init): Ditto.
8588 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8589 * frv-tdep.c (frv_gdbarch_init): Ditto.
8590 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8591 * cris-tdep.c (cris_gdbarch_init): Ditto.
8592 * avr-tdep.c (avr_gdbarch_init): Ditto.
8593 * arm-tdep.c (arm_gdbarch_init): Ditto.
8595 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8597 * mips-tdep.c (show_mips_abi): New function.
8598 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8599 command ``show mips abi''.
8601 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8603 From Elena Zannoni <ezannoni@redhat.com>
8604 * dbxread.c (process_one_symbol): Only record line 0 if one or
8605 more sline entries have been seen for the function.
8607 2003-02-26 Michael Chastain <mec@shout.net>
8609 * configure: Regenerate with autoconf 000227.
8611 2003-02-26 Michael Chastain <mec@shout.net>
8614 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8615 for old libc5/glibc.
8616 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8618 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8620 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8621 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8623 2003-02-26 Michael Chastain <mec@shout.net>
8625 * configure.in: New variable HAVE_UINTPTR_T.
8626 * configure, config.in: Regenerated.
8628 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8631 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8633 2003-02-25 Andrew Cagney <cagney@redhat.com>
8635 * frame.c (get_prev_frame): Add comment on check for
8636 inside_entry_func. Only check for inside_entry_file when not a
8637 dummy and not a sentinel. Check that the new frame is not inner
8640 2003-02-25 Andrew Cagney <cagney@redhat.com>
8642 * frame.c (frame_debug): New variable.
8643 (_initialize_frame): Add "set/show debug frame" command.
8644 (get_prev_frame): When frame_debug, print reason why unwind
8647 2003-02-25 Michael Chastain <mec@shout.net>
8649 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8650 to avoid uintptr_t definition problems.
8652 2003-02-25 David Carlton <carlton@math.stanford.edu>
8654 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8655 (SYMBOL_LINKAGE_NAME): Ditto.
8656 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8657 SYMBOL_LINKAGE_NAME.
8658 (struct general_symbol_info): Expand comment.
8659 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8660 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8661 (SYMBOL_MATCHES_REGEXP): Ditto.
8662 * symtab.c (symbol_natural_name): New function.
8663 * objfiles.h: Replace all uses of SYMBOL_NAME by
8664 DEPRECATED_SYMBOL_NAME.
8665 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8666 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8667 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8668 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8669 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8670 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8671 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8672 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8673 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8674 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8676 * ada-exp.y: Update copyright.
8677 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8678 * cp-valprint.c: Ditto.
8680 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8682 * infptrace.c (detach): Do not flag error if ptrace detach fails
8683 and errno is set to ESRCH.
8685 2003-02-24 Andrew Cagney <cagney@redhat.com>
8687 * infptrace.c (udot_info): Change type of udot_off to long. Use
8688 paddr when printing udot_off's value.
8690 2003-02-24 David Carlton <carlton@math.stanford.edu>
8692 * symtab.c (make_symbol_overload_list): Only read in partial
8693 symtabs containing a matching partial symbol.
8695 2003-02-24 David Carlton <carlton@math.stanford.edu>
8697 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8698 do the comparison, not strcmp.
8699 * symfile.c (compare_psymbols): Ditto.
8700 * defs.h: Declare strcmp_iw_ordered.
8701 * utils.c (strcmp_iw_ordered): New function.
8703 2003-02-24 Jim Blandy <jimb@redhat.com>
8705 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8706 support, shared libs): Remove my name from here, to better reflect
8709 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8711 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8712 (target_ops): Add to_have_continuable_watchpoint.
8713 * target.c (update_current_target): Add INHERIT line for
8714 to_have_continuable_watchpoint.
8715 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8716 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8717 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8718 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8720 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8722 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8725 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8727 * solib.c (solib_open): Call target defined search function after
8728 failing with solib-search-path.
8729 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8730 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8732 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8734 * MAINTAINERS: Add myself to Write After section.
8736 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8738 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8740 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8742 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8743 (m68hc11_add_reggroups): New function.
8744 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8745 (m68hc11_gdbarch_init): Install the reggroups.
8746 (_initialize_m68hc11_tdep): Initialize them.
8748 2003-02-21 James E Wilson <wilson@tuliptree.org>
8750 * MAINTAINERS: Update my email address.
8752 2003-02-21 David Carlton <carlton@math.stanford.edu>
8754 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8756 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8758 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8759 * symtab.h: Add opaque declarations of struct axs_value and
8761 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8762 (struct location_funcs): New type.
8763 (struct symbol): Add "loc" to aux_value.
8764 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8765 * dwarf2read.c: Include "dwarf2expr.h".
8766 (dwarf2_symbol_mark_computed): New function.
8767 (read_func_scope): Use it.
8768 (var_decode_location): New function.
8769 (new_symbol): Use it.
8770 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8772 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8773 (dwarf2expr_h, dwarf2loc_h): New variables.
8774 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8775 (dwarf2expr.o, dwarf2loc.o): New rules.
8776 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8777 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8779 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8780 * m2-exp.y (yylex): Likewise.
8781 * printcmd.c (address_info, print_frame_args): Likewise.
8782 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8783 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8784 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8785 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8786 * symtab.c (lookup_block_symbol): Likewise.
8788 2003-02-20 Adam Fedor <fedor@gnu.org>
8790 * symtab.h: Remove objc_specific struct
8791 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8792 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8793 Have language_objc use cplus_specific struct.
8795 2003-02-20 Tom Tromey <tromey@redhat.com>
8797 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8798 TYPE_NAME, when printing a String value. PR java/1075.
8800 2003-02-20 Adam Fedor <fedor@gnu.org>
8802 * objc-lang.h (find_methods): Remove declaration.
8803 * objc-lang.c (find_methods): Make static.
8805 2003-02-20 Christopher Faylor <cgf@redhat.com>
8807 * win32-nat.c (get_image_name): Check return value from
8809 (child_xfer_memory): Ditto.
8811 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8813 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8814 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8815 '${exec_prefix}' (in addition to the expansion thereof) as
8817 * configure: Rebuilt.
8819 2003-02-20 David Carlton <carlton@math.stanford.edu>
8821 * symtab.c (search_symbols): Revert the search_symbols part of my
8822 2002-12-23 patch. Add comment.
8824 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8826 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8827 * dbxread.c (elfstab_build_psymtabs): Don't call
8828 install_minimal_symbols.
8829 (stabsect_build_psymtabs): Likewise.
8830 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8832 * somread.c (som_symfile_read): Call install_minimal_symbols
8833 and do_cleanups earlier.
8834 * nlmread.c (nlm_symfile_read): Likewise.
8835 * mdebugread.c (elfmdebug_build_psymtabs): Call
8836 install_minimal_symbols and make appropriate cleanups.
8838 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8840 * solib.c (reload_shared_libraries): New function.
8841 (_initialize_solib): Add callbacks for ``set solib-search-path''
8842 and ``set solib-absolute-prefix''.
8844 2003-02-20 David Carlton <carlton@math.stanford.edu>
8846 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8848 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8849 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8850 * ada-typeprint.c (ada_typedef_print): Ditto.
8851 * ax-gdb.c (gen_var_ref): Ditto.
8852 * breakpoint.c (print_one_breakpoint): Ditto.
8853 * buildsym.c (finish_block): Ditto.
8854 * c-valprint.c (c_val_print): Ditto.
8855 * expprint.c (print_subexp): Ditto.
8856 * findvar.c (locate_var_value): Ditto.
8857 * infcmd.c (jump_command): Ditto.
8858 * linespec.c (decode_line_2, decode_compound): Ditto.
8859 * maint.c (maintenance_translate_address): Ditto.
8860 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8861 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8863 * p-valprint.c (pascal_val_print): Ditto.
8864 * stabsread.c (define_symbol): Ditto.
8865 * stack.c (print_frame, frame_info, print_block_frame_locals)
8866 (print_frame_arg_vars, return_command): Ditto.
8867 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8868 * symmisc.c (print_symbol): Ditto.
8869 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8870 (compare_search_syms, print_symbol_info, print_msymbol_info)
8871 (rbreak_command): Ditto.
8872 * tracepoint.c (tracepoints_info): Ditto.
8873 * typeprint.c (typedef_print): Ditto.
8874 * valops.c (value_of_variable, hand_function_call): Ditto.
8875 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8876 * ada-typeprint.c: Update Copyright.
8877 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8878 * tracepoint.c, cli/cli-cmds.c: Ditto.
8880 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8882 * frame.c (generic_unwind_get_saved_register): Make non-static.
8883 * frame.h (generic_unwind_get_saved_register): Declare.
8884 * mips-tdep.c (read_next_frame_reg): Fetch register from
8885 current regcache when frame is NULL.
8886 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8888 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8889 instead of frame_register_unwind().
8891 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8893 * remote-sim.c (gdbsim_insert_breakpoint)
8894 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8897 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8899 * remote.c (_initialize_remote): Add commands "set/show remote
8900 hardware-watchpoint-limit" and "set/show remote
8901 hardware-breakpoint-limit".
8902 (remote_hw_watchpoint_limit): Initialize to -1.
8903 (remote_hw_breakpoint_limit): Ditto.
8904 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8906 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8908 * coff-pe-read.c: New file - support reading of minimal symbols from a
8909 portable executable using the export table.
8910 * coff-pe-read.h: New file.
8911 * coffread.c: Include coff-pe-read.h.
8912 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8913 debugging symbols found.
8914 * Makefile.in (SFILES): Add coff-pe-read.o.
8915 (coff_pe_read_h): Define.
8916 (COMMON_OBS): Add coff-pe-read.o.
8917 (coffread.o): Add coff_pe_read_h dependency.
8918 (coff-pe-read.o): New target.
8920 2003-02-19 David Carlton <carlton@math.stanford.edu>
8922 * Makefile.in (SFILES): Add block.c.
8924 (COMMON_OBS): Add block.o.
8926 (x86-64-tdep.o): Add $(block_h).
8927 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8928 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8929 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8930 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8931 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8932 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8933 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8934 * value.h: Add opaque declaration for struct block.
8935 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8936 * ada-lang.h: Ditto.
8937 * x86-64-tdep.c: #include "block.h"
8938 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8939 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8940 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8941 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8942 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8943 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8944 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8945 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8946 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8947 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8948 * symtab.c (block_function): Ditto.
8949 (contained_in): Ditto.
8950 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8951 block.h. Add opaque declaration for struct block.
8952 * symtab.h: Move block_function and contained_in declarations to
8953 block.h. Add opaque declarations for struct block, struct
8955 (struct block): Move to block.h.
8956 (struct blockvector): Ditto.
8957 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8958 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8959 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8960 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8961 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8963 * block.c: New file.
8964 * block.h: New file.
8966 2003-02-19 Theodore A. Roth <troth@openavr.org>
8968 * avr-tdep.c (avr_extract_return_value): Remove function.
8969 (avr_store_return_value): Remove function.
8970 (avr_extract_struct_value_address): Remove function.
8971 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8973 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8975 * rs6000-tdep.c: Include "gdb_assert.h".
8976 (registers_e500): Add "acc" and "spefscr".
8977 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8978 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8979 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8981 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8983 2003-02-18 Keith Seitz <keiths@redhat.com>
8985 * Makefile.in: Add gdbtk-interps.c.
8987 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8989 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8990 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8992 2003-02-18 Andrew Cagney <cagney@redhat.com>
8994 * symtab.h (struct objfile): Add opaque declaration.
8996 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8998 From Jim Ingham <jingham@apple.com>:
8999 * dbxread.c (process_one_symbol): Use last_function_start rather
9000 than function_start_offset to find the real beginning of the
9001 current function. The latter is just the text section offset on
9002 some systems, the former is always the real function start.
9004 2003-02-17 Andrew Cagney <cagney@redhat.com>
9006 * configure.in: Revert ${target} != ${host}.
9008 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9010 * configure.in (Makefile): Use the test ${target} != ${host},
9011 instead of the absence of the "nm.h" file, to determine of the
9012 configuration non-native.
9013 * configure: Regenerate.
9015 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9017 From Brian Ford <ford@vss.fsi.com>
9019 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9020 conditionalize tui_active test.
9021 (lookup_cmd_1): Ditto.
9023 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9025 * configure.in: Add check for _etext.
9026 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9028 * config.in, configure: regenerated.
9030 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9032 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9034 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9036 * main.c (tui_version): Delete variable.
9037 (captured_main): When --tui, set interpreter_p to "tui" instead of
9038 enabling tui_version.
9039 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9041 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9042 * cli/cli-cmds.c (disassemble_command): Ditto.
9043 * defs.h (tui_version): Delete declaration.
9044 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9045 (tui-interp.o): Add rules.
9046 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9048 2003-02-14 Christopher Faylor <cgf@redhat.com>
9050 * win32-nat.c (register_loaded_dll): Correctly set address range for
9053 2003-02-12 Jason Molenda (jmolenda@apple.com)
9055 * symmisc.c (print_objfile_statistics): Include information about
9056 the number of psymtabs and symtabs in each object file.
9058 2003-02-13 Keith R Seitz <keiths@redhat.com>
9060 * main.h (struct captured_main_args): Add interpreter_p.
9061 * main.c (captured_main): Initialize interpreter_p from context.
9062 * gdb.c (main): Set interpreter_p argument.
9063 * Makefile.in (gdb.o): Add dependency for interps.h.
9065 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9067 * event-top.c (cli_command_loop): Delete declaration.
9068 (_initialize_event_loop): Delete function setting event_loop_hook.
9069 * event-top.h (cli_command_loop): Declare. Update copyright.
9070 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9071 * interps.c (current_interp_command_loop): When event_loop_p, call
9074 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9076 * interps.h (interp_command_loop_ftype): Change return type to
9079 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9081 * x86-64-tdep.c (x86_64_extract_return_value)
9082 (x86_64_store_return_value): Use regcache instead of regbuf.
9083 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9084 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9086 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9088 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9089 * aclocal.m4: Regenerate.
9090 * configure: Regenerate.
9092 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9093 TCL_LD_SEARCH_FLAGS.
9095 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9097 * dwarf2cfi.c: Reindented.
9099 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9101 * interps.c (clear_interpreter_hooks): Convert function definition
9104 2003-02-07 David Carlton <carlton@math.stanford.edu>
9106 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9108 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9110 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9111 (struct type): ...to here.
9112 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9114 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9115 (replace_type): Set length on all type variants for a given type.
9117 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9119 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9121 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9123 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9125 * Makefile.in (symm-nat.o): Update dependencies.
9126 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9127 (lynx-nat.o, ia64-linux-nat.): Ditto.
9128 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9129 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9130 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9132 * Makefile.in (inflow_h): Define.
9133 (procfs.o, inflow.o, procfs.o): Update dependencies.
9134 * inftarg.c (child_stop): Delete extern declaration of
9135 inferior_process_group. Include "inflow.h".
9136 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9137 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9138 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9139 (our_process_group, inferior_process_group): Extern declarations.
9141 * procfs.c: Include "gdb_assert.h".
9143 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9144 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9145 * jv-typeprint.c (java_type_print_base): Ditto.
9146 * typeprint.c (typedef_print): Eliminate STREQ.
9147 * cli/cli-script.c (define_command, define_command): Ditto.
9148 * main.c (captured_main): Ditto.
9149 * values.c (lookup_internalvar): Ditto.
9150 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9151 within `if' conditional.
9152 * linespec.c (decode_line_2): Ditto.
9153 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9154 (bfd_openw_with_cleanup): Ditto.
9156 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9158 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9159 legacy_extract_return_value and store_return_value to
9160 legacy_return_value.
9162 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9164 * win32-nat.c (get_relocated_section_addrs): New function. Find
9165 section load addresses for symbol handling in relocated DLLs.
9166 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9168 2003-02-05 Fred Fish <fnf@intrinsity.com>
9170 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9172 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9174 (angel_RDI_info): Ditto.
9175 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9177 (threads_continue_all_with_signals): Ditto.
9179 2003-02-05 Jim Ingham <jingham@apple.com>
9180 Keith Seitz <keiths@redhat.com>
9181 Elena Zannoni <ezannoni@redhat.com>
9182 Andrew Cagney <ac131313@redhat.com>
9184 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9185 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9186 (SUBDIR_MI_OBS): Add "mi-interp.o".
9187 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9188 (SFILES): Add "interps.c".
9189 (COMMON_OBS): Add "interps.o".
9190 (interps_h, mi_main_h): Define.
9191 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9192 (mi-main.o, main.o, event-top.o): Update dependencies.
9193 * cli/cli-interp.c: New file.
9194 * interps.h, interps.c: New files.
9195 * top.c: (gdb_init): Don't install the default interpreter, handed
9197 * main.c: Include "interps.h".
9198 (interpreter_p): Note that it should malloc'ed.
9199 (captured_command_loop): Call current_interp_command_loop.
9200 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9201 xfree and xstrdup when updating interpreter_p. Install the
9202 default interpreter. Add hack to stop mi1's copyright notice
9204 * event-top.h (gdb_setup_readline): Declare.
9205 (gdb_disable_readline): Declare.
9206 * event-top.c: Include "interps.h".
9207 (display_gdb_prompt): Call current_interp_display_prompt_p.
9208 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9209 gdb_stdlog, and gdb_stdtarg.
9210 (_initialize_event_loop): Don't call gdb_setup_readline.
9211 * cli-out.c (cli_out_set_stream): New function.
9212 * cli-out.h (cli_out_set_stream): Declare.
9214 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9216 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9217 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9218 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9219 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9220 config/i386/i386v42mp.mt: Removed.
9222 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9224 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9227 2003-02-05 Michael Chastain <mec@shout.net>
9229 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9230 2.12.1 and earlier versions.
9232 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9234 Remove orphaned hosts, targets and files.
9235 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9236 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9237 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9238 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9239 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9240 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9241 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9242 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9243 * config/sparc/tm-sp64sim.h: Delete.
9244 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9246 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9247 mips*-dec-mach3* targets.
9249 2003-02-04 Michael Chastain <mec@shout.net>
9251 * NEWS: Fix typo: sepcifying -> specifying.
9253 2003-02-04 Michael Chastain <mec@shout.net>
9255 * dwarfread.c: Add documentation on the state of dwarf-1,
9256 looking towards obsoletion.
9258 2003-02-03 Michael Chastain <mec@shout.net>
9260 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9261 gdb/testsuite/gdb.c++/pr-1023.exp.
9263 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9265 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9266 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9268 * utils.c (init_page_info): Delete reference to MPW in comments.
9269 * main.c (captured_main): Delete #ifdef MPW.
9271 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9273 * NEWS: Note that the m32r-*-elf* is obsolete.
9274 * monitor.c (monitor_expect): Obsolete reference to m32r.
9275 * configure.tgt: Mark m32r-*-elf* as obsolete.
9276 * MAINTAINERS: Mark m32k as obsolete.
9277 * m32r-rom.c: Obsolete file.
9278 * config/m32r/m32r.mt: Obsolete file.
9279 * config/m32r/tm-m32r.h: Obsolete file.
9280 * m32r-stub.c: Obsolete file.
9281 * m32r-tdep.c: Obsolete file.
9283 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9285 * NEWS: Mention that the z8k-zilog-none is obsolete.
9286 * MAINTAINERS: Mark z8k as obsolete.
9287 * configure.tgt: Obsolete the z8k-*-coff* target.
9288 * config/z8k/z8k.mt: Obsolete file.
9289 * config/z8k/tm-z8k.h: Obsolete file.
9290 * z8k-tdep.c: Obsolete file.
9292 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9294 * NEWS: Mention that the mn10200-elf is obsolete.
9295 * configure.tgt: Obsolete mn10200-*-* target.
9296 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9297 mention that the mn10200 is obsolete.
9298 * breakpoint.h: Ditto.
9299 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9300 * config/mn10200/mn10200.mt: Obsolete file.
9301 * config/mn10200/tm-mn10200.h: Obsolete file.
9302 * mn10200-tdep.c: Obsolete file.
9304 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9306 * MAINTAINERS: Mark h8500 as obsolete.
9307 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9308 * findvar.c (value_from_register): Ditto.
9309 * h8500-tdep.c: Mark file as obsolete.
9310 * config/h8500/h8500.mt: Ditto.
9311 * config/h8500/tm-h8500.h: Ditto.
9312 * NEWS: Mention that h8500 is obsolete.
9314 2003-02-04 David Carlton <carlton@math.stanford.edu>
9316 * objfiles.c (allocate_objfile): Always set name. Add comment at
9318 * jv-lang.c (get_dynamics_objfile): Add comment.
9320 2003-02-04 David Carlton <carlton@math.stanford.edu>
9322 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9323 * printcmd.c (build_address_symbolic): Replace uses of
9324 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9325 SYMBOL_NAME, and asm_demangle.
9328 2003-02-04 David Carlton <carlton@math.stanford.edu>
9330 * linespec.c (decode_compound): Extract code into
9332 (lookup_prefix_sym): New function.
9334 2003-02-04 David Carlton <carlton@math.stanford.edu>
9336 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9337 FLOAT_COERCION_BADNESS.
9338 * gdbtypes.c (rank_one_type): Replace all uses of
9339 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9341 2003-02-04 Jim Blandy <jimb@redhat.com>
9343 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9344 section, let dwarf_macinfo_section point to it, not
9347 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9349 Pointed out by Anton Blanchard <anton@samba.org>.
9350 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9351 (ppc_linux_at_sigtramp_return_path): Use it.
9353 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9355 * defs.h (streq): Add prototype.
9356 * utils.c (streq): New function.
9358 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9359 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9360 * mdebugread.c (new_symbol): Likewise.
9361 * stabsread.c (define_symbol): Likewise.
9362 * coffread.c (process_coff_symbol): Likewise.
9363 * dwarfread.c (new_symbol): Likewise.
9365 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9366 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9368 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9369 SYMBOL_INIT_DEMANGLED_NAME.
9370 * objfiles.c: Include "hashtab.h".
9371 (allocate_objfile): Call htab_set_functions_ex for the
9372 demangled_names_hash.
9373 (free_objfile): Call htab_delete for the demangled_names_hash.
9374 * objfiles.h (struct htab): Add declaration.
9375 (struct objfile): Add demangled_names_hash.
9376 * symfile.c: Include "hashtab.h".
9377 (reread_symbols): Call htab_delete for the demangled_names_hash.
9378 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9379 SYMBOL_NAME in the bcache.
9380 * symtab.c: Include "hashtab.h". Update comments.
9381 (create_demangled_names_hash, symbol_set_names): New functions.
9382 (symbol_find_demangled_name): New function, broken out from
9383 symbol_init_demangled_names.
9384 (symbol_init_demangled_names): Use it.
9385 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9386 (SYMBOL_SET_NAMES): New macro.
9387 (symbol_set_names): Add prototype.
9389 2003-02-03 Jim Blandy <jimb@redhat.com>
9391 Use a single, consistent representation for an empty minimal
9392 symbol table in an objfile.
9393 * objfiles.c (terminate_minimal_symbol_table): New function.
9394 (allocate_objfile): Call it.
9395 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9396 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9398 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9399 objfile has minimal symbols, compare minimal_symbol_count to zero,
9400 instead of comparing msymbols with NULL.
9401 * objfiles.c (have_minimal_symbols): Same.
9402 * solib-sunos.c (solib_add_common_symbols): Call
9403 terminate_minimal_symbol_table.
9404 * symfile.c (reread_symbols): Same.
9406 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9408 * s390-tdep.c (s390_address_class_type_flags)
9409 (s390_address_class_type_flags_to_name)
9410 (s390_address_class_name_to_type_flags): New functions.
9411 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9412 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9414 2003-02-03 Michael Snyder <msnyder@redhat.com>
9416 * arm-tdep.c: Fix spell-o in comment.
9418 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9420 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9421 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9422 error messages to contain BFD filename.
9424 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9426 Fix PR gdb/742 gdb/743 gdb/877
9427 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9428 (do_mixed_source_and_assembly): Use
9429 make_cleanup_ui_out_tuple_begin_end and
9430 make_cleanup_ui_out_tuple_begin_end.
9431 (do_mixed_source_and_assembly): Ditto.
9432 * thread.c (do_captured_list_thread_ids): Ditto.
9433 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9434 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9435 ui_out_tuple_end): Delete prototypes.
9436 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9437 ui_out_list_end, ui_out_tuple_end): Delete.
9439 From Kevin Buettner <kevinb@redhat.com>:
9440 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9441 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9442 (do_cleanup_table_end): New functions.
9443 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9444 Use cleanups to invoke_ui_out_tuple_end().
9445 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9446 * cli/cli-setshow.c (cmd_show_list): Use
9447 make_cleanup_ui_out_tuple_begin_end.
9449 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9451 * frame.c (frame_unwind_register): New function.
9452 (frame_unwind_unsigned_register): Use.
9453 (frame_unwind_signed_register): Use.
9454 (frame_read_register): New function.
9455 * frame.h (frame_unwind_register): Declare.
9456 (frame_read_register): Declare.
9458 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9459 and frame_unwind_register instead of read_memory, write_register
9460 and deprecated_write_register_bytes.
9462 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9464 * frame.h: Note that namelen can be negative.
9465 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9468 * NEWS: Mention that the d10v's `regs' command is deprecated.
9469 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9470 (d10v_print_registers_info): New function.
9471 (show_regs): Call d10v_print_registers_info.
9472 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9474 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9476 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9477 lost in the previous patch.
9479 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9481 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9482 * stack.c (print_frame_info_base): Output complete FRAME tuple
9483 for synthesized frames.
9485 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9487 * mips-nat.c (zerobuf): Delete.
9488 (fetch_inferior_registers): Alloc local zerobuf.
9489 (fetch_core_registers): Alloc local zerobuf.
9490 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9491 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9492 * thread-db.c (thread_db_store_registers): Ditto.
9493 * sh-tdep.c (sh_do_register): Ditto.
9494 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9495 * remote-sim.c (gdbsim_store_register): Ditto.
9496 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9497 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9498 * monitor.c (monitor_supply_register): Ditto.
9499 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9500 * mips-nat.c (fetch_inferior_registers): Ditto.
9501 * m68klinux-nat.c (fetch_register): Ditto.
9502 * lynx-nat.c (fetch_inferior_registers): Ditto.
9503 (fetch_inferior_registers): Ditto.
9504 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9505 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9506 (hpux_thread_store_registers): Ditto.
9507 * hppah-nat.c (fetch_register): Ditto.
9508 * hppab-nat.c (fetch_register): Ditto.
9509 * hppa-tdep.c (pa_register_look_aside): Ditto.
9510 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9511 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9513 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9515 * gdbarch.sh: Explictly specify all method levels. When a
9516 variable with an empty level, provide a non-multi-arch default.
9517 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9518 * gdbarch.h: Re-generate.
9519 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9520 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9522 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9524 * defs.h (host_pointer_to_address): Delete declaration.
9525 (address_to_host_pointer): Delete declaration.
9526 * utils.c (host_pointer_to_address): Delete function.
9527 (address_to_host_pointer): Delete function.
9528 * procfs.c (procfs_address_to_host_pointer): New function.
9529 * procfs.c (proc_set_watchpoint): Use.
9530 (procfs_can_use_hw_breakpoint): Update comments.
9531 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9532 (som_solib_add): Use.
9533 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9534 * hppa-tdep.c (unwind_command): Use.
9536 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9538 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9541 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9542 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9543 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9544 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9545 (define_symbol): Update.
9546 * symfile.c (generic_load): Remove references to nindy.
9547 * symtab.c: Remove references to nindy.
9549 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9551 * infcmd.c (print_float_info): Delete code conditional on
9553 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9554 * config/m68k/nm-apollo68b.h: Ditto.
9555 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9556 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9557 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9559 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9561 * config/i386/tm-i386os9k.h: Removed.
9563 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9564 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9565 they're identical to i[3456]86-*-sysv* now.
9566 * config/i386/i386v32.mh: Removed.
9567 * config/i386/xm-i386v32.h: Removed.
9568 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9570 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9572 * config/i386/i386dgux.mh: Removed.
9573 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9575 * configure.in: Fix typo.
9576 * configure: Regenerated.
9578 2003-01-31 David Carlton <carlton@math.stanford.edu>
9580 * dwarf2read.c (dwarf2_locate_sections): Set
9581 dwarf_ranges_section.
9583 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9585 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9586 * utils.c: Update comments documenting legitimate uses of PTR.
9588 * utils.c: Re-indent.
9590 * config/djgpp/fnchange.lst: Delete nindy files.
9591 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9592 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9593 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9594 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9595 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9596 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9597 * Makefile.in (init.c): Remove nindy references.
9598 (saber_gdb): Delete rule.
9599 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9600 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9602 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9603 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9604 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9605 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9607 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9608 * saber.suppress: Delete file.
9610 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9612 * dbxread.c (stabs_data): New static variable.
9613 (fill_symbuf): Support an in-memory buffer for stabs data.
9614 (stabs_seek): New function.
9615 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9616 (read_ofile_symtab): Use stabs_seek.
9617 (elfstab_build_psymtabs): Take an asection* instead of
9618 an offset and size. Relocate the stabs data if necessary.
9619 Save the section* for dbx_psymtab_to_symtab.
9620 * dwarf2read.c: Add section variables for each debug section.
9621 (dwarf2_locate_sections): Fill them in.
9622 (dwarf2_read_section): Take an asection* argument.
9623 Relocate the section contents if necessary.
9624 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9625 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9626 it to dwarf2_read_section.
9627 (dwarf2_build_frame_info): Update callers.
9628 * elfread.c (elf_symfile_read): Update call to
9629 elfstab_build_psymtabs.
9630 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9631 (DBX_STAB_SECTION): New macro.
9632 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9633 * symfile.c (symfile_dummy_outputs): New function.
9634 (symfile_relocate_debug_section): New function.
9635 * symfile.h (symfile_relocate_debug_section): Add prototype.
9637 2003-01-31 Richard Henderson <rth@redhat.com>
9639 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9640 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9641 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9642 * alpha-tdep.c (alpha_register_name): Add "unique".
9643 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9644 (ALPHA_UNIQUE_REGNUM): New.
9645 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9647 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9649 * README: Remove reference to Ericsson 1800 monitor.
9650 * Makefile.in (remote-es.o): Delete rule.
9651 (ALLDEPFILES): Delete remote-es.c.
9652 * remote-es.c: Delete file.
9653 * config/m68k/es1800.mt: Delete file.
9654 * config/djgpp/fnchange.lst: Update.
9655 * configure.tgt: Delete m68*-ericsson-* target.
9657 2003-01-31 Adam Fedor <fedor@gnu.org>
9659 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9660 Remove duplicate/shadowing variable of same name.
9662 2003-01-30 Jim Blandy <jimb@redhat.com>
9664 * symfile.c (find_separate_debug_file): Assert that the objfile's
9665 directory name we compute ends with a slash, and then assume that
9666 that's so everywhere we use it.
9668 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9670 * valops.c (value_assign): Flush frame cache after stores to memory
9673 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9675 * Makefile.in (mon960-rom.o): Delete rule.
9676 * mon960-rom.c: Delete file.
9678 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9680 * d10v-tdep.c: Include "frame-unwind.h".
9681 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9683 (next_addr, uses_frame): Delete.
9684 (struct d10v_unwind_cache): Define.
9685 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9686 Use info instead of next_addr and uses_frame globals.
9687 (d10v_frame_init_saved_regs): Delete function.
9688 (d10v_init_extra_frame_info): Delete function.
9689 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9690 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9691 init_frame_pc or frame_saved_pc.
9692 (d10v_pop_frame): Delete function.
9693 (do_d10v_pop_frame): Delete function.
9694 (d10v_frame_chain): Delete function.
9695 (d10v_frame_chain_valid): Delete function.
9696 (d10v_frame_pc_unwind): New function.
9697 (d10v_frame_id_unwind): New function.
9698 (saved_regs_unwinder): New function.
9699 (d10v_frame_register_unwind): New function.
9700 (d10v_frame_pop): New function.
9701 (d10v_frame_unwind): New variable.
9702 (d10v_frame_p): New function.
9703 (d10v_frame_saved_pc): Delete function.
9704 * Makefile.in (d10v-tdep.o): Update dependencies.
9706 2003-01-30 J. Brobecker <brobecker@gnat.com>
9708 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9709 causing some regressions due to a change in the default value
9712 2003-01-29 Richard Henderson <rth@redhat.com>
9713 Elena Zannoni <ezannoni@redhat.com>
9714 Daniel Jacobowitz <drow@mvista.com>
9717 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9719 (RANGES_SECTION): New.
9720 (dwarf_ranges_buffer): New variable.
9721 (struct comp_unit_head): Add member "die".
9722 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9723 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9724 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9725 (dwarf2_locate_sections): Likewise.
9726 (dwarf2_build_psymtabs): Read .debug_ranges.
9727 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9728 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9729 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9730 Look for DW_AT_ranges and return the bounding box.
9732 2003-01-29 Brian Ford <ford@vss.fsi.com>
9734 * win32-nat.c (cygwin_pid): Removed as unused.
9735 (child_attach): Try fall back to Cygwin pid.
9737 2003-01-29 Jim Blandy <jimb@redhat.com>
9739 * objfiles.h (struct objfile): Doc fix.
9741 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9743 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9744 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9745 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9746 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9747 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9748 (FRAME_SAVED_PC): Change to a function with predicate.
9749 * gdbarch.h, gdbarch.c: Re-generate.
9751 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9753 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9755 * complaints.c (complain): Delete function.
9756 * complaints.h (struct deprecated_complaint): Delete definition.
9757 (complain): Delete declaration.
9759 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9761 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9764 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9766 * sentinel-frame.h, sentinel-frame.c: New files.
9767 * Makefile.in (frame.o): Update dependencies.
9768 (SFILES): Add sentinel-frame.c.
9769 (sentinel_frame_h): Define.
9770 (COMMON_OBS): Add sentinel-frame.o.
9771 (sentinel-frame.o): Specify dependencies.
9772 * frame.c: Include "sentinel-frame.h".
9773 (frame_register_unwind): Rewrite assuming that there is always a a
9775 (frame_register, generic_unwind_get_saved_register): Ditto.
9776 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9777 (create_sentinel_frame, unwind_to_current_frame): New functions.
9778 (get_current_frame): Rewrite using create_sentinel_frame and
9779 unwind_to_current_frame. When possible, always create a frame.
9780 (create_new_frame): Set next to the sentinel frame.
9781 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9782 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9783 ID cache when necessary.
9784 (frame_saved_regs_id_unwind): Use frame_relative_level.
9785 (deprecated_generic_get_saved_register): Use frame_relative_level,
9786 get_frame_saved_regs, get_frame_pc, get_frame_base and
9788 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9791 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9793 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9795 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9797 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9798 (maintenance_set_profile_cmd): Use error () instead of warning ().
9800 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9802 * configure.in: Check that -pg works if using --enable-profiling.
9803 Check for monstartup and _mcleanup regardless of --enable-profiling.
9804 * maint.c: Check for monstartup and _mcleanup before using them.
9805 * config.in: Regenerated.
9806 * configure: Regenerated.
9808 2003-01-24 Nick Clifton <nickc@redhat.com>
9812 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9814 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9815 (sh2e_show_regs): New.
9816 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9817 * config/sh/tm-sh.h: Added sh2e to comments.
9819 2003-01-23 Jim Blandy <jimb@redhat.com>
9821 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9822 symbols found)" message here; we haven't checked for a separate
9823 debug info file yet, so we don't know yet.
9824 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9825 we've looked everywhere. Also, there's no need to print a special
9826 message when we're loading the separate debug info file: the one
9827 symbol_file_add prints is fine.
9829 2003-01-23 Alexander Larsson <alexl@redhat.com>
9830 Jim Blandy <jimb@redhat.com>
9832 Add support for executables whose debug info has been separated
9833 out into a separate file, leaving only a link behind.
9834 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9835 and separate_debug_objfile_backlink.
9836 (put_objfile_before): New declaration.
9837 * symfile.c: #include "filenames.h".
9838 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9839 debug info in a separate file, read that, too. Save the addrs
9840 argument, so we can use it again to read the separated debug info;
9841 syms_from_objfile modifies the table we pass it.
9842 (reread_symbols): After re-reading an objfile, call
9843 reread_separate_symbols to refresh its separate debug info
9844 objfile, if it has one.
9845 (reread_separate_symbols, find_separate_debug_file,
9846 get_debug_link_info, separate_debug_file_exists): New functions.
9847 (debug_file_directory): New global var.
9848 (_initialize_symfile): Initialize debug_file_directory, and
9849 provide the new `set debug-file-directory' command to let the user
9851 * objfiles.c (free_objfile): If this objfile has its debug info in
9852 a separate objfile, free that one too. If this is itself a
9853 separate debug info objfile, clear our parent's backlink.
9854 (put_objfile_before): New function.
9855 * utils.c (gnu_debuglink_crc32): New function.
9856 * defs.h (gnu_debuglink_crc32): New declaration.
9857 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9858 * configure.in: Handle --with-separate-debug-dir config option.
9859 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9860 * acconfig.h (DEBUGDIR): New macro.
9861 * configure, aclocal.m4, config.in: Regenerated.
9863 2003-01-22 Jim Blandy <jimb@redhat.com>
9865 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9866 like the old symbol_file_add, but taking new arguments: you can
9867 now pass in either a `struct section_addr_info' list to say where
9868 each section is loaded, or a `struct section_offsets' table. Pass
9869 these new arguments through to syms_from_objfile as appropriate.
9870 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9871 with the appropriate quiescent values for the new arguments.
9873 * symfile.c: #include "gdb_assert.h".
9874 (syms_from_objfile): Add the ability to pass in a section offset
9875 table directly, as an alternative to the section_addr_info table.
9876 Document arguments better.
9877 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9878 * symfile.h (syms_from_objfile): Update declaration.
9879 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9881 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9883 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9885 Original patch by Tom Tromey <tromey@cygnus.com> and
9886 Jason Molenda <jmolenda@apple.com>.
9887 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9888 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9889 * NEWS: Mention profiling.
9890 * configure.in (--enable-gdbtk): Fix typo.
9891 (--enable-profiling): New. Set PROFILE_CFLAGS.
9892 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9894 (profiling_state): New variable.
9895 (mcleanup_wrapper): New function.
9896 (_initialize_maint): Remove NOTYET, fix call to
9897 add_setshow_boolean_cmd for "maint set profile".
9898 * configure: Regenerated.
9900 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9902 * Makefile.in (install-gdbtk): Install PNG images too.
9904 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9906 * exec.c (text_start): Delete global variable.
9907 (exec_file_attach): Make text_start local to the function.
9908 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9909 * valops.c (hand_function_call): Delete code that handles
9910 BEFORE_TEXT_END and AFTER_TEXT_END.
9911 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9912 of CALL_DUMMY_LOCATION.
9913 * gdbarch.c: Regenerate.
9914 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9915 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9916 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9917 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9918 (text_end): Delete extern declaration.
9920 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9922 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9923 * blockframe.c (backtrace_below_main): Move to "frame.c".
9924 (frame_chain_valid): Delete check for backtrace_below_main.
9925 (_initialize_blockframe): Delete initialization, move ``set
9926 backtrace-below-main'' command to "frame.c".
9927 (do_flush_frames_sfunc): Delete function.
9928 * frame.c: Include "command.h" and "gdbcmd.h".
9929 (frame_type_from_pc): New function.
9930 (create_new_frame): Use frame_type_from_pc.
9931 (legacy_get_prev_frame): New function.
9932 (get_prev_frame): Rewrite. When an old style frame, call
9933 legacy_get_prev_frame. Otherwize, unwind the PC first.
9934 (_initialize_frame): Add ``set backtrace-below-main'' command.
9935 * Makefile.in (frame.o): Update dependencies.
9937 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9939 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9940 DEPRECATED_REGISTERS_INFO.
9942 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9944 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9945 Maintainers'. Update `Various Maintainers'.
9947 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9949 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9950 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9951 Suppress actual parameters when `-'.
9952 * gdbarch.h, gdbarch.c: Regenerate.
9954 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9956 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9957 code handling dummy frames.
9959 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9961 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9962 (struct frame_unwind): Add field pop.
9963 * frame.h (frame_pop): Declare.
9964 * frame.c (frame_saved_regs_pop): New function.
9965 (trad_frame_unwinder): Add frame_saved_regs_pop.
9966 (frame_pop): New function.
9967 * dummy-frame.c (dummy_frame_pop): New function.
9968 (discard_innermost_dummy): New function.
9969 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9970 (dummy_frame_unwind): Add dummy_frame_pop.
9971 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9972 * valops.c (hand_function_call): Ditto.
9973 * stack.c (return_command): Ditto.
9975 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9977 * cris-tdep.c: Fix function declaration indentation.
9978 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9979 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9980 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9981 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9982 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9983 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9985 2003-01-18 Michael Chastain <mec@shout.net>
9987 * README (Unpacking and Installation -- quick overview):
9988 Warn against ".../gdb-5.3/gdb/configure".
9990 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9992 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9993 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9994 (struct frame_unwind): Declare opaque.
9995 (dummy_frame_p): Declare function.
9996 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9997 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9998 * dummy-frame.c: Include "frame-unwind.h".
9999 (dummy_frame_p): New function.
10000 (dummy_frame_unwind): New variable.
10001 * frame.c: Include "frame-unwind.h".
10002 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10003 to use the new unwind field.
10004 (set_unwind_by_pc): Delete function.
10005 (create_new_frame, get_prev_frame): Set unwind field using
10006 frame_unwind_find_by_pc.
10007 (trad_frame_unwind, trad_frame_unwinder): New variables.
10008 * frame.h (trad_frame_unwind): Declare variable.
10009 (frame_id_unwind_ftype): Delete declaration.
10010 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10011 (struct frame_unwind): Declare opaque.
10012 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10013 register_unwind with a single unwind pointer.
10014 * frame-unwind.h, frame-unwind.c: New files.
10015 * Makefile.in (SFILES): Add frame-unwind.c.
10016 (frame_unwind_h): Define.
10017 (COMMON_OBS): Add frame-unwind.o.
10018 (frame-unwind.o): Specify dependencies.
10019 (frame.o, dummy-frame.o): Update dependencies.
10021 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10023 * ada-valprint.c: Eliminate PTR.
10024 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10025 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10026 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10027 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10028 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10029 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10030 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10032 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10034 * main.c (captured_main): Don't use PTR.
10035 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10036 * gdbtypes.c (lookup_primitive_typename): Ditto.
10037 (lookup_struct_elt_type): Ditto.
10038 * f-valprint.c (info_common_command): Ditto.
10039 (list_all_visible_commons): Ditto.
10040 * jv-typeprint.c (java_type_print_base): Ditto.
10042 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10043 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10044 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10045 i386-interix-nat.c and i386-interix-tdep.c. Rename
10046 m68klinux-nat.c and m68klinux-tdep.c. Rename
10047 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10048 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10049 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10050 * main.c (captured_main): Use xfree, not free.
10052 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10054 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10055 ID back using a parameter.
10056 * frame.c (frame_id_unwind): Update call.
10057 (frame_saved_regs_id_unwind): Update.
10058 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10059 * dummy-frame.h (struct frame_id): Add opaque declaration.
10060 (dummy_frame_id_unwind): Update declaration.
10062 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10064 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10066 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10068 * MAINTAINERS (Stephen P. Smith): Updated email address.
10070 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10073 * breakpoint.c (until_break_command): Add new argument. Use it to
10074 decide whether to stop only at the current frame or not.
10075 * breakpoint.h (until_break_command): Update prototype.
10076 * infcmd.c (until_command): Add new argument to until_break_command
10078 (advance_command): New function.
10079 (_initialize_infcmd): Update help string for 'until' command.
10080 Add new 'advance' command.
10082 2003-01-14 David Carlton <carlton@math.stanford.edu>
10084 * linespec.c (decode_line_1): Normalize comments.
10085 (set_flags): Ditto.
10086 (locate_first_half): Ditto.
10087 (decode_compound): Ditto.
10088 (symtab_from_filename): Ditto.
10089 (decode_all_digits): Ditto.
10090 (decode_dollar): Ditto.
10091 (find_methods): Ditto.
10092 (find_toplevel_char): Ditto.
10094 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10096 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10097 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10098 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10099 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10100 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10101 * language.c, language.h, m32r-tdep.c: Update copyright.
10102 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10103 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10104 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10105 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10106 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10107 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10109 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10111 * stabsread.h (process_later, resolve_cfront_continuation):
10113 Update copyright years.
10114 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10115 Update copyright year.
10116 * dbxread.c(struct cont_elem): Obsolete.
10117 (process_later, process_now): Obsolete functions.
10118 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10119 Update copyright year.
10120 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10121 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10122 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10123 (parse_partial_symbols): Obsolete cfront support.
10125 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10127 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10128 read_cfront_baseclasses, read_cfront_member_functions,
10129 resolve_cfront_continuation,read_cfront_static_fields,
10130 copy_cfront_struct_fields): Obsolete functions.
10131 (define_symbol, read_one_struct_field): Obsolete cfront support.
10132 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10133 Update Copyright year.
10135 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10137 * stack.c (print_frame_info, print_stack_frame_base_stub,
10138 print_stack_frame_base, show_and_print_stack_frame_stub,
10139 show_and_print_stack_frame, print_only_stack_frame_stub,
10140 print_only_stack_frame): Delete functions.
10141 (print_stack_frame_stub): Call print_frame_info instead of
10142 print_frame_info_base.
10143 (print_frame_info_base): Rename to print_frame_info.
10144 (backtrace_command_1): Call print_frame_info, instead of
10145 print_frame_info_base.
10146 (current_frame_command): Call print_stack_frame, instead of
10147 print_only_stack_frame.
10148 (frame_command): Call print_stack_frame, instead of
10149 show_and_print_stack_frame.
10150 (up_command): Ditto.
10151 (down_command): Ditto.
10152 * frame.h (print_only_stack_frame): Delete prototype.
10153 * infrun.c (normal_stop): Call print_stack_frame, instead of
10154 show_and_print_stack_frame.
10155 * thread.c (info_threads_command): Call print_stack_frame, instead
10156 of print_only_stack_frame.
10158 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10160 * README (Graphical interface to GDB): Update URL. Point at
10163 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10166 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10168 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10171 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10173 * thread-db.c (attach_thread): Prototype.
10174 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10175 thread information (ti), and valid flags (th_valid, ti_valid).
10176 (attach_thread): Move target_pid_to_str call to after the thread
10177 is added to GDB's list. Initialize the cache.
10178 (thread_get_info_callback, thread_db_map_id2thr)
10179 (thread_db_get_info): New functions.
10180 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10181 (thread_db_store_registers, thread_db_thread_alive)
10182 (thread_db_get_thread_local_address): Use them.
10183 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10184 of calling error() for threads in unknown state.
10186 (clear_lwpid_callback): New function.
10187 (thread_db_resume): Use it to clear the cache.
10189 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10191 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10192 (resume_callback): Remove dead code.
10194 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10196 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10198 * gdbarch.h, gdbarch.c: Regenerate.
10199 * stack.c (frame_info): Only initialize the saved registers when
10200 FRAME_INIT_SAVED_REGS_P.
10201 * frame.c (frame_saved_regs_register_unwind): Assert
10202 FRAME_INIT_SAVED_REGS_P.
10203 (deprecated_generic_get_saved_register): Ditto.
10205 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10207 * source.c (openp): Squelch warning about "filename".
10209 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10211 * source.c (openp): If the file does not exist don't necessarily
10214 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10217 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10218 (integer_types_same_name_p): New function.
10219 (rank_one_type): Use it.
10220 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10222 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10224 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10226 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10227 * configure.in: Add --with-sysroot.
10228 * configure: Regenerated.
10229 * main.c (gdb_sysroot): New variable.
10230 (captured_main): Initialize gdb_sysroot.
10231 * defs.h (gdb_sysroot): New extern declaration.
10232 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10234 2003-01-12 Michael Chastain <mec@shout.net>
10236 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10238 2003-01-12 Michael Chastain <mec@shout.net>
10240 * top.c (print_gdb_version): Bump copyright year to 2003.
10242 2003-01-12 David Carlton <carlton@bactrian.org>
10244 * linespec.c (symtab_from_filename): Rename variable 's' to
10247 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10249 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10251 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10253 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10255 * d10v-tdep.c: Include "gdb_assert.h".
10256 (d10v_store_return_value): Rewrite to match current interface.
10257 (d10v_extract_struct_value_address): Ditto.
10258 (d10v_extract_return_value): Ditto.
10259 (d10v_gdbarch_init): Set store_restore_value,
10260 extract_struct_value_address and extract_return_value.
10262 2003-01-12 J. Brobecker <brobecker@gnat.com>
10264 * hpread.c (set_namestring): New procedure replacing the
10265 SET_NAMESTRING macro.
10266 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10267 by calls to set_namestring.
10269 2003-01-11 J. Brobecker <brobecker@gnat.com>
10271 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10272 a compilation warning.
10273 (hpread_process_one_debug_symbol): Likewise.
10275 2003-01-10 David Carlton <carlton@math.stanford.edu>
10277 * linespec.c (decode_line_1): Rename variable 's' to
10279 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10280 (decode_dollar): Ditto.
10281 (decode_variable): Ditto.
10282 (symbol_found): Ditto.
10284 2003-01-09 Michael Chastain <mec@shout.net>
10286 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10288 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10290 * win32-nat.c (set_process_privilege): New function.
10291 (child_attach): Call set_process_privilege() to enable the
10292 SE_DEBUG_NAME user privilege if available in process token.
10294 2003-01-10 J. Brobecker <brobecker@gnat.com>
10296 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10297 compilation error in the previous revision.
10299 2003-01-09 David Carlton <carlton@math.stanford.edu>
10301 * linespec.c: Update copyright.
10303 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10305 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10306 than inferior_ptid.
10307 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10309 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10311 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10313 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10314 (frame_saved_regs_zalloc): Update.
10315 (frame_saved_regs_register_unwind): Update.
10316 (create_new_frame): Update.
10317 (get_prev_frame): Update.
10318 (frame_extra_info_zalloc): Update.
10319 (deprecated_get_frame_saved_regs): Update.
10320 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10321 * cris-tdep.c: Update comment.
10323 * somsolib.h: Fix function indentation.
10324 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10325 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10326 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10327 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10328 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10330 * infrun.c (follow_fork): Use ISO C definition.
10331 * expprint.c (print_subexp): Use xfree instead of free.
10332 * charset.c: Include "gdb_string.h" instead of <string.h>.
10333 (register_iconv_charsets): Use ISO C definition.
10334 (host_charset, target_charset): Ditto.
10335 * Makefile.in (charset.o): Update dependencies.
10336 (mi-cmd-env.o): Update dependencies.
10338 2003-01-08 Andrew Cagney <cagney@redhat.com>
10340 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10343 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10345 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10346 build directories. Save edited gdb output in Mbuild.log. If a
10347 build fails, remove any final GDB executable.
10349 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10351 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10352 replacing hex constants with function names and stripping leading
10353 file name directory prefixes.
10355 2003-01-08 Andrew Cagney <cagney@redhat.com>
10357 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10360 2003-01-08 David Carlton <carlton@math.stanford.edu>
10362 * linespec.c (decode_line_1): Move code into decode_variable.
10363 (decode_variable): New function.
10365 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10367 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10369 2003-01-08 Andrew Cagney <cagney@redhat.com>
10371 * cris-tdep.c (cris_frame_init_saved_regs): Use
10372 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10374 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10375 (sh64_nofp_frame_init_saved_regs): Ditto.
10376 (sh_fp_frame_init_saved_regs): Ditto.
10377 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10378 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10379 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10380 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10382 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10384 * minsyms.c (lookup_minimal_symbol): Update comment.
10385 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10386 (lookup_minimal_symbol_solib_trampoline): Likewise.
10388 2003-01-08 Andrew Cagney <cagney@redhat.com>
10390 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10391 frame_relative_level.
10393 * alpha-tdep.c: Use get_frame_extra_info.
10394 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10395 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10396 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10397 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10399 * alpha-tdep.c: Use get_next_frame.
10400 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10401 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10402 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10403 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10404 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10405 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10406 * xstormy16-tdep.c: Ditto.
10408 2003-01-07 Andrew Cagney <cagney@redhat.com>
10410 * alpha-tdep.c: Use get_frame_base.
10411 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10412 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10413 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10414 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10415 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10416 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10417 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10418 * config/sparc/tm-sparc.h: Ditto.
10420 2003-01-07 Andrew Cagney <cagney@redhat.com>
10422 * frame.c (deprecated_get_frame_context): New function.
10423 (deprecated_set_frame_context): New function.
10424 * frame.h (deprecated_get_frame_context): Declare.
10425 (deprecated_set_frame_context): Declare.
10426 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10427 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10429 2003-01-07 Andrew Cagney <cagney@redhat.com>
10431 * frame.c (deprecated_set_frame_next_hack): New function.
10432 (deprecated_set_frame_prev_hack): New function.
10433 * frame.h (deprecated_set_frame_next_hack): Declare.
10434 (deprecated_set_frame_prev_hack): Declare.
10435 * mcore-tdep.c (analyze_dummy_frame): Use
10436 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10437 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10439 2003-01-07 David Carlton <carlton@math.stanford.edu>
10441 * linespec.c (decode_line_1): Move code into decode_dollar.
10442 (decode_dollar): New function.
10444 2003-01-07 Andrew Cagney <cagney@redhat.com>
10446 * arm-tdep.c (arm_init_extra_frame_info): Use
10447 deprecated_update_frame_base_hack.
10448 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10449 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10450 (fix_frame_pointer): Ditto.
10451 (mn10300_analyze_prologue): Ditto.
10453 2003-01-07 Andrew Cagney <cagney@redhat.com>
10455 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10456 extra_info using frame_extra_info_zalloc.
10457 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10458 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10459 (sh64_init_extra_frame_info): Ditto.
10460 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10461 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10462 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10463 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10464 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10465 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10466 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10467 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10468 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10469 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10470 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10471 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10473 * mn10300-tdep.c (analyze_dummy_frame): Use
10474 deprecated_set_frame_extra_info_hack.
10475 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10477 2003-01-07 J. Brobecker <brobecker@gnat.com>
10479 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10480 class is not scText. These do not define "real" procedures.
10481 (parse_partial_symbols): Likewise.
10483 2003-01-06 Michael Snyder <msnyder@redhat.com>
10485 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10487 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10489 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10490 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10491 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10492 deprecated_frame_xmalloc_with_cleanup.
10493 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10494 deprecated_frame_xmalloc.
10495 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10496 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10498 2003-01-06 Andrew Cagney <cagney@redhat.com>
10500 * x86-64-linux-tdep.c: Include "osabi.h".
10501 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10503 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10505 2003-01-06 Andrew Cagney <cagney@redhat.com>
10507 * MAINTAINERS (Target Instruction Set Architectures): Update
10508 arm-elf. Can be built with -Werror, has been multiarched.
10510 * value.h (unpack_long): Make buffer parameter constant.
10511 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10512 * scm-lang.h (scm_parse): Ditto.
10513 * defs.h (extract_typed_address, extract_address): Ditto.
10514 (extract_long_unsigned_integer): Ditto.
10515 * inferior.h (unsigned_pointer_to_address): Ditto.
10516 (signed_pointer_to_address): Ditto.
10517 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10518 * gdbarch.h, gdbarch.c: Regenerate.
10519 * findvar.c (extract_long_unsigned_integer): Update.
10520 (extract_address): Update.
10521 (extract_typed_address): Update.
10522 (unsigned_pointer_to_address): Update.
10523 * values.c (unpack_long): Update.
10524 (unpack_double): Update.
10525 (unpack_pointer): Update.
10526 (unpack_field_as_long): Update.
10527 * d10v-tdep.c (d10v_pointer_to_address): Update.
10528 * avr-tdep.c (avr_pointer_to_address): Update.
10529 * scm-lang.c (scm_unpack): Update.
10530 * findvar.c (signed_pointer_to_address): Update.
10532 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10534 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10535 since it is in i386-tdep.c.
10537 2003-01-06 J. Brobecker <brobecker@gnat.com>
10539 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10540 failure introduced in the previous change.
10542 2003-01-05 Michael Chastain <mec@shout.net>
10544 * README: Remove references to deleted remote-*.c files:
10545 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10546 remote-nrom.c, remote-os9k.c, remote-udi.c.
10548 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10550 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10551 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10552 i386_get_longjmp_target.
10554 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10556 * arm-tdep.c (prologue_cache): Change to a pointer.
10557 (_initialize_arm_tdep): Allocate prologue_cache.
10558 (check_prologue_cache): Update.
10559 (save_prologue_cache): Update.
10560 (arm_gdbarch_init): Update.
10562 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10564 * stabsread.c (update_method_name_from_physname): Call complaint()
10567 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10569 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10570 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10571 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10573 * blockframe.c: Include "gdbcmd.h" and "command.h".
10574 (backtrace_below_main): New variable.
10575 (file_frame_chain_valid, func_frame_chain_valid)
10576 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10577 (generic_func_frame_chain_valid): Remove functions.
10578 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10579 (_initialize_blockframe): New function.
10580 * Makefile.in (blockframe.o): Update dependencies.
10581 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10582 comment. Call frame_chain_valid ().
10583 * frame.h: Remove old prototypes. Add prototype for
10584 frame_chain_valid and update comments to match.
10585 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10586 Remove old comment.
10587 * gdbarch.h: Regenerated.
10588 * gdbarch.c: Regenerated.
10590 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10591 set_gdbarch_frame_chain_valid.
10592 * avr-tdep.c (avr_gdbarch_init): Likewise.
10593 * cris-tdep.c (cris_gdbarch_init): Likewise.
10594 * frv-tdep.c (frv_gdbarch_init): Likewise.
10595 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10596 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10597 (i386_nw_init_abi): Likewise.
10598 (i386_gdbarch_init): Likewise.
10599 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10601 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10602 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10603 * mips-tdep.c (mips_gdbarch_init): Likewise.
10604 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10605 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10606 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10607 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10608 * s390-tdep.c (s390_gdbarch_init): Likewise.
10609 * sh-tdep.c (sh_gdbarch_init): Likewise.
10610 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10611 * v850-tdep.c (v850_gdbarch_init): Likewise.
10612 * vax-tdep.c (vax_gdbarch_init): Likewise.
10613 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10615 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10616 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10617 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10618 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10619 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10620 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10621 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10622 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10624 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10626 * Makefile.in (acconfig_h): Remove incorrect macro.
10627 (config_h): Define.
10628 (osabi.o): Update dependencies.
10629 * configure.tgt: Set gdb_osabi based on target triplet.
10630 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10631 * configure: Regenerated.
10632 * config.in: Regenerated.
10633 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10634 (GDB_OSABI_DEFAULT): Define if not already defined.
10635 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10636 (set_osabi_string): New variables.
10637 (gdbarch_register_osabi): Add new OS ABI to
10638 gdb_osabi_available_names.
10639 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10640 (set_osabi, show_osabi): New functions.
10641 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10643 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10645 * arch-utils.c (gdbarch_info_init): Set osabi to
10646 GDB_OSABI_UNINITIALIZED.
10647 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10648 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10649 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10650 * gdbarch.c: Regenerated.
10651 * gdbarch.h: Regenerated.
10652 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10654 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10655 * osabi.h (enum gdb_osabi): Move to defs.h.
10656 (gdbarch_init_osabi): Update prototype.
10657 * defs.h (enum gdb_osabi): Moved here.
10658 * Makefile.in: Update dependencies.
10660 * alpha-tdep.h: Don't include "osabi.h".
10661 (struct gdbarch_tdep): Remove osabi member.
10662 * alpha-tdep.c: Include "osabi.h".
10663 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10664 iterate over arches. Update call to gdbarch_init_osabi.
10665 (alpha_dump_tdep): Don't dump osabi.
10666 * alpha-linux-tdep.c: Include "osabi.h".
10667 * alpha-osf1-tdep.c: Include "osabi.h".
10668 * alphafbsd-tdep.c: Include "osabi.h".
10669 * alphanbsd-tdep.c: Include "osabi.h".
10671 * arm-tdep.h: Don't include "osabi.h".
10672 (struct gdbarch_tdep): Remove osabi member.
10673 * arm-tdep.c: Include "osabi.h".
10674 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10675 iterate over arches. Update call to gdbarch_init_osabi.
10676 (arm_dump_tdep): Don't dump osabi.
10677 * arm-linux-tdep.c: Include "osabi.h".
10678 * armnbsd-tdep.c: Include "osabi.h".
10680 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10681 Update call to gdbarch_init_osabi.
10683 * i386-tdep.h: Don't include "osabi.h".
10684 (struct gdbarch_tdep): Remove osabi member.
10685 * i386-tdep.c: Include "osabi.h".
10686 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10687 iterate over arches. Update call to gdbarch_init_osabi.
10688 (i386_dump_tdep): Don't dump osabi.
10689 * i386-linux-tdep.c: Include "osabi.h".
10690 * i386-sol2-tdep.c: Include "osabi.h".
10691 * i386bsd-tdep.c: Include "osabi.h".
10692 * i386gnu-tdep.c: Include "osabi.h".
10693 * i386ly-tdep.c: Include "osabi.h".
10694 * i386nbsd-tdep.c: Include "osabi.h".
10695 * i386obsd-tdep.c: Include "osabi.h".
10697 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10698 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10699 check osabi when iterating over arches. Update call to
10700 gdbarch_init_osabi.
10701 (mips_dump_tdep): Don't dump osabi.
10703 * ns32k-tdep.h: Don't include "osabi.h".
10704 (struct gdbarch_tdep): Remove.
10705 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10706 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10707 allocate tdep. Update call to gdbarch_init_osabi.
10708 (ns32k_dump_tdep): Remove.
10709 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10710 * ns32knbsd-tdep.c: Include "osabi.h".
10712 * ppc-tdep.h: Don't include "osabi.h".
10713 (struct gdbarch_tdep): Remove osabi member.
10714 * rs6000-tdep.c: Include "osabi.h".
10715 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10716 osabi when iterating over arches. Update call to
10717 gdbarch_init_osabi.
10718 (rs6000_dump_tdep): Don't dump osabi.
10719 * ppc-linux-tdep.c: Include "osabi.h".
10720 * ppcnbsd-tdep.c: Include "osabi.h".
10722 * sh-tdep.h: Don't include "osabi.h".
10723 (struct gdbarch_tdep): Remove osabi member.
10724 * sh-tdep.c: Include "osabi.h".
10725 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10726 iterate over arches. Update call to gdbarch_init_osabi.
10727 (sh_dump_tdep): Don't dump osabi.
10728 * shnbsd-tdep.c: Include "osabi.h".
10730 * sparc-tdep.c: Include "osabi.h".
10731 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10732 iterate over arches. Update call to gdbarch_init_osabi.
10733 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10736 * vax-tdep.h: Don't include "osabi.h".
10737 (struct gdbarch_tdep): Remove.
10738 * vax-tdep.c: Include "osabi.h".
10739 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10740 iterate over arches. Don't allocate tdep. Update call
10741 to gdbarch_init_osabi.
10742 (vax_dump_tdep): Remove.
10743 (_initialize_vax_tdep): Update call to gdbarch_register.
10745 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10747 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10749 (breakpoint_re_set_one): Don't fetch the value for a disabled
10752 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10754 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10755 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10756 (COERCE_FLOAT_TO_DOUBLE): Remove.
10757 * gdbarch.c: Regenerate.
10758 * gdbarch.h: Regenerate.
10759 * Makefile.in: Remove value_h from gdbarch_h.
10760 * valops.c (coerce_float_to_double): New variable.
10761 (default_coerce_float_to_double): Remove.
10762 (standard_coerce_float_to_double): Remove.
10763 (value_arg_coerce): Use coerce_float_to_double.
10764 (_initialize_valops): Add "set coerce-float-to-double".
10765 * value.h (default_coerce_float_to_double): Remove prototype.
10766 (standard_coerce_float_to_double): Remove prototype.
10768 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10770 * mdebugread.c (parse_symbol): Likewise.
10771 * stabsread.c (define_symbol): Mark all functions as prototyped.
10773 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10774 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10775 set_gdbarch_coerce_float_to_double.
10776 * arm-tdep.c (arm_gdbarch_init): Likewise.
10777 * frv-tdep.c (frv_gdbarch_init): Likewise.
10778 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10779 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10780 * mips-tdep.c (mips_gdbarch_init): Likewise.
10781 (mips_coerce_float_to_double): Remove.
10782 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10783 (rs6000_coerce_float_to_double): Remove.
10784 * s390-tdep.c (s390_gdbarch_init): Likewise.
10785 * sh-tdep.c (sh_gdbarch_init): Likewise.
10786 (sh_coerce_float_to_double): Remove.
10787 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10788 (sparc_coerce_float_to_double): Remove.
10789 * v850-tdep.c (v850_gdbarch_init): Likewise.
10790 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10791 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10792 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10793 (hppa_coerce_float_to_double): Remove prototype.
10794 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10796 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10798 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10800 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10802 Suggested by Stewart Brown <sb24@avaya.com>:
10803 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10804 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10805 (c_type_print_varspec_suffix): Likewise.
10807 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10809 * configure.in: Don't set and AC_SUBST SUBDIRS.
10810 * configure: Regenerated.
10812 * configure.in: Remove code dealing with shared libraries.
10813 * Makefile.in: Remove HLDFLAGS and HLDENV.
10814 * configure: Regenerated.
10816 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10818 * frame.c (deprecated_frame_xmalloc): New function.
10819 (deprecated_set_frame_saved_regs_hack): New function.
10820 (deprecated_set_frame_extra_info_hack): New function.
10821 * frame.h (deprecated_frame_xmalloc): Declare.
10822 (deprecated_set_frame_saved_regs_hack): Declare.
10823 (deprecated_set_frame_extra_info_hack): Declare.
10825 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10827 * configure.in: Move code that provides the --enable-gdbtk option
10828 right after the code that handles the --enable-tui option, and
10829 polish it somewhat.
10830 * configure: Regenerated.
10832 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10833 AC_CHECK_FUNCS and remove the old check for pread64.
10834 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10835 * acconfig.h (_GNU_SOURCE): Add.
10836 (HAVE_PREAD64): Remove.
10837 * configure, aclocal.m4, config.in: Regenerated.
10839 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10841 * alpha-tdep.c: Use get_frame_saved_regs.
10842 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10843 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10844 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10845 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10846 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10848 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10850 * configure.in: Remove all use of the SUBDIRS variable; add
10851 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10852 code providing the --enable-multi-ice option, and move it right in
10853 front of the code that checks whether gdbserver is supported.
10855 * configure: Regenerated.
10856 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10859 2003-01-03 Andrew Cagney <cagney@redhat.com>
10861 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10862 * avr-tdep.c, cris-tdep.c: Ditto.
10863 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10864 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10866 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10868 * configure.in: Remove --enable-netrom option.
10869 * configure: Regenerated.
10871 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10873 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10874 declaration for `struct re_pattern_buffer' instead.
10875 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10877 2003-01-03 J. Brobecker <brobecker@gnat.com>
10879 * mdebugread.c (parse_symbol): Count until the stEnd matching
10880 the structure name.
10882 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10884 * configure.in: Remove --with-cpu option.
10885 subscripts. Remove evil changequotes here.
10886 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10887 * config.in, configure: Regenerated.
10889 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10890 * configure.in: Cleanup section that sources GDB and BFD configure
10891 subscripts. Remove evil changequotes here.
10892 * config.in, configure: Regenerated.
10894 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10896 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10897 frame accessor methods.
10898 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10899 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10900 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10901 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10902 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10903 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10904 * z8k-tdep.c: Ditto.
10906 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10908 * configure.in: Remove UI_OUT configuration code.
10909 * ada-lang.c: Update assuming UI_OUT is always true.
10910 * Makefile.in (UIOUT_CFLAGS): Remove.
10911 * configure: Regenerated.
10912 * TODO: Remove blurb about elimination of -DUI_OUT.
10914 * configure.in: Move code that provides the --enable-gdbcli,
10915 --enable-gdbmi options right before the code that handles the
10916 --enable-tui option. Polish a bit.
10917 * configure: Regenerated.
10919 * configure.in: Rewrite check for GNU regex and the
10920 --without-included regex option, and move it into the "Checks for
10921 library functions" section. This makes us use the system regex
10922 again by default on systems with version 2 of the GNU C library.
10923 This was apparently broken.
10924 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10925 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10926 * config.in, configure: Regenerated.
10928 * configure.in: Move code that provides the --enable-tui option
10929 before the "Checks for libraries" section. Polish the code
10930 somewhat and set need_curses to yes if we build the TUI. Rewrite
10931 code that looks for a library providing termcap functionality to
10932 match more closely what's done in the Readline library, and move
10933 it into to the "Checks for libraries" section.
10934 * configure: Regenerated.
10935 * Makefile.in (TERMCAP): Remove variable.
10936 * config/i386/go32.mh (TERMCAP): Remove variable.
10938 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10940 * MAINTAINERS: Mention gdb_mbuild.sh.
10941 * gdb_mbuild.sh: Rewrite.
10943 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10945 * configure.in: Fix typo in last change.
10946 * config.in, configure: Regenerated.
10948 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10950 * valarith.c (value_binop): Delete obsolete code and comments.
10951 * configure.host: Ditto.
10952 * buildsym.h (make_blockvector): Ditto.
10953 * buildsym.c (make_blockvector): Ditto.
10954 * defs.h (enum language): Ditto.
10955 (chill_demangle): Ditto.
10956 * elfread.c (elf_symtab_read): Ditto.
10957 * dwarfread.c (CHILL_PRODUCER): Ditto.
10958 (set_cu_language): Ditto.
10959 (handle_producer): Ditto.
10960 * expprint.c (print_subexp): Ditto.
10961 * gdbtypes.c (chill_varying_type): Ditto.
10962 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10963 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10964 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10965 (chill_varying_type): Ditto.
10966 * language.h (_LANG_chill): Ditto.
10967 * language.c (binop_result_type, integral_type): Ditto.
10968 (character_type, string_type, structured_type): Ditto.
10969 (lang_bool_type, binop_type_check): Ditto.
10970 * stabsread.h (os9k_stabs): Ditto.
10971 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10972 (define_symbol, read_type, read_struct_fields): Ditto.
10973 (read_array_type, read_enum_type, read_huge_number): Ditto.
10974 (read_range_type, start_stabs): Ditto.
10975 * symfile.c (init_filename_language_table): Ditto.
10976 (add_psymbol_with_dem_name_to_list): Ditto.
10977 * symtab.c (symbol_init_language_specific): Ditto.
10978 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10979 * symtab.h (struct general_symbol_info): Ditto.
10980 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10981 * typeprint.c (typedef_print): Ditto.
10982 * utils.c (fprintf_symbol_filtered): Ditto.
10983 * valops.c (value_cast, search_struct_field, value_slice): Delete
10985 (varying_to_slice): Delete function.
10986 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10987 (varying_to_slice): Delete declaration.
10988 * MAINTAINERS: Update.
10990 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10992 * configure.in: Reorganize "Checks for library functions section"
10993 a bit. Remove check for `btowc' and `isascii' functions.
10994 * configure: Regenerated.
10996 * acconfig.h (_MSE_INT_H): Remove.
10997 * configure.in: Create "Checks for header files" section, and move
10998 appropriate tests there. Don't check for objlist.h, wchar.h,
10999 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11000 misdetection fix. Also add "Checks for types", "Checks for
11001 compiler characteristics" and "Checks for library functions"
11003 * config.in, configure: Regenerated.
11005 * configure.in: Create "Checks for programs" section, and move
11006 appropriate tests there.
11008 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11010 * configure.in: Create "Checks for libraries" section, and move
11011 appropriate tests there. Cleanup check for wctype in libw. Use
11012 AC_SEARCH_LIBS to see whether we need libsocket.
11013 * configure: Regenerated.
11015 For older changes see ChangeLog-2002
11021 version-control: never