1 2003-08-26 Jason Merrill <jason@redhat.com>
3 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4 case out of #ifdef MIPS block.
6 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
9 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
10 available before calling SECT_OFF_TEXT.
11 * PROBLEMS: Remove description of java/1322.
13 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
15 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
16 bof, and nat0-nat127 as pseudo-registers.
17 (ia64_frame_cache): New struct used to cache frame info.
18 (ia64_register_reggroup_p): New routine used to override default
19 register grouping so registers without names are still saved and
21 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
23 (ia64_pseudo_register_read): New routine to read pseudo-registers.
24 (ia64_pseudo_register_write): New routine to write pseudo-registers.
25 (ia64_alloc_frame_cache): New routine to create a new
27 (examine_prologue): Change prototype to add next_frame pointer.
28 Assume frameless until otherwise proven. Verify that the cfm for
29 current frame matches the cfm that should occur for the prologues
30 alloc insn and if equal, mark as not frameless. At end of routine,
31 if not frameless, calculate registers for the previous frame and store
32 in the cache, if a cache is provided.
33 (ia64_skip_prologue): Use new prototype when calling examine_prologue
34 and pass 0 for next_frame.
35 (ia64_store_return_value): Change to use convert_typed_floating()
36 instead of calling ia64_convert_to_raw().
37 (ia64_extract_return_value): Change to use convert_typed_floating()
38 instead of calling ia64_convert_to_virtual().
39 (ia64_frame_cache): New routine to support new frame model.
40 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
41 (ia64_frame_sniffer): Ditto.
42 (ia64_sigtramp_frame_init_saved_regs): Ditto.
43 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
44 (ia64_sigtramp_frame_prev_register): Ditto.
45 (ia64_sigtramp_frame_sniffer): Ditto.
46 (ia64_frame_base_address): Ditto.
47 (ia64_extract_struct_value_address): Change to issue error message.
48 (ia64_frame_align): New routine to align sp.
49 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
50 (ia64_push_arguments): Removed. Logic moved to
51 ia64_push_dummy_call().
52 (ia64_push_return_address): Ditto.
53 (ia64_unwind_dummy_id): New function.
54 (ia64_unwind_pc): Ditto.
55 (ia64_convert_register_p): Ditto.
56 (ia64_register_to_value): Ditto.
57 (ia64_value_to_register): Ditto.
58 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
59 (ia64_register_byte, ia64_register_raw_size): Ditto.
60 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
61 (ia64_saved_pc_after_call): Ditto.
62 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
63 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
64 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
65 (ia64_register_convert_to_raw): Ditto.
66 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
67 (ia64_init_extra_frame_info): Ditto.
68 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
69 (ia64_gdbarch_init): Remove registering of deprecated functions that
70 are no longer used. Add registration of new gdbarch functions.
71 Remove registering deprecated_write_sp. Replace
72 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
73 Delete set_gdbarch_deprecated_register_convertible(),
74 set_gdbarch_deprecated_register_convert_to_virtual(), and
75 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
76 set_gdbarch_deprecated_register_size(),
77 set_gdbarch_deprecated_register_bytes(),
78 set_gdbarch_pcregnum(),
79 set_gdbarch_deprecated_register_byte(),
80 set_gdbarch_deprecated_register_raw_size(),
81 set_gdbarch_deprecated_max_register_raw_size(),
82 set_gdbarch_deprecated_register_virtual_size(),
83 and set_gdbarch_deprecated_max_register_virtual_size() calls.
84 Replace set_gdbarch_deprecated_extract_return_value() with
85 set_gdbarch_extract_return_value(). Remove calls to:
86 set_gdbarch_deprecated_saved_pc_after_call();
87 set_gdbarch_deprecated_frame_chain(),
88 set_gdbarch_deprecated_frame_saved_pc(),
89 set_gdbarch_deprecated_frame_init_saved_regs(),
90 set_gdbarch_deprecated_get_saved_register(),
91 set_gdbarch_deprecated_call_dummy_words(),
92 set_gdbarch_deprecated_sizeof_call_dummy_words(),
93 set_gdbarch_deprecated_init_extra_frame_info(),
94 set_gdbarch_deprecated_frame_args_address(),
95 set_gdbarch_deprecated_frame_locals_address(),
96 and set_gdbarch_deprecated_dummy_write_sp().
97 Add set_gdbarch_convert_register_p(),
98 set_gdbarch_register_to_value(),
99 set_gdbarch_value_to_register(),
100 set_gdbarch_push_dummy_call(),
101 set_gdbarch_frame_align(),
102 set_gdbarch_unwind_dummy_id(),
103 set_gdbarch_unwind_pc(),
104 frame_unwind_append_sniffer(),
105 frame_unwind_append_sniffer(),
106 and frame_base_set_default().
108 2003-08-25 Chris Demetriou <cgd@broadcom.com>
110 * configure.tgt: Document need for special "mipsisa64" handling.
111 (mipsisa64*-*-linux64): Handle as target linux64.
112 (mipsisa64*-*-*): Handle as target embed64.
114 2003-08-18 Michael Chastain <mec@shout.net>
116 * PROBLEMS: Document pr gdb/1322, the Java anonymous
119 2003-08-24 Mark Kettenis <kettenis@gnu.org>
121 * i387-tdep.h: Update copyright date.
122 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
124 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
125 CFLAGS games to reflect reality.
127 2003-08-24 Andrew Cagney <cagney@redhat.com>
129 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
130 GDB_MULTI_ARCH is always non-zero.
131 * osabi.c (_initialize_gdb_osabi): Ditto.
132 (gdbarch_init_osabi): Ditto.
133 * sparc-tdep.c: Ditto for #if code.
135 2003-08-23 Mark Kettenis <kettenis@gnu.org>
137 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
139 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
141 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
142 x86_64_supply_fxsave.
143 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
144 x86_64_supply_fxsave.
145 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
146 x86_64_supply_fxsave.
148 2003-08-23 Andreas Jaeger <aj@suse.de>
150 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
153 2003-08-23 Mark Kettenis <kettenis@gnu.org>
155 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
156 i387_supply_register.
157 (go32_fetch_registers): Adjust call to i387_supply_fsave.
158 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
160 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
162 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
164 * i386bsd-nat.c (supply_fpregset): Adjust call to
166 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
167 call to i387_supply_fxsave. Call i387_supply_fsave instead of
169 (store_inferior_registers): Remove extraneous whitespace. Call
170 i387_fill_fsave instead of fill_fpregset.
171 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
172 (supply_fpregset): Likewise.
173 * i386v4-nat.c (supply_fpregset): Adjust call to
175 * i386-interix-nat.c (supply_fpregset): Adjust call to
177 * i386-linux-nat.c (supply_fpregset): Adjust call to
179 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
180 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
181 i387supply_fsave and i387_supply_fxsave.
182 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
183 Incorporate code from `i387_supply_register.
184 (i387_supply_register): Remove.
185 (i387_supply_fxsave): Add `regnum' argument.
187 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
189 (i387_supply_register): remove prototype.
192 2003-08-22 Michael Chastain <mec@shout.net>
194 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
195 Add lines for files in gdb/testsuite/gdb.cp/* that are
196 still not 8.3 unique.
198 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
200 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
201 TYPE_VPTR_FIELDNO is valid.
203 2003-08-19 Mark Kettenis <kettenis@gnu.org>
205 * utils.c (set_width_command): Remove prototypes.
206 (set_screen_size): New prototype.
207 (init_page_info): Simplify by fetching the screen size from
208 Readline. Call set_screen_size.
209 (set_screen_size): New function.
210 (set_width): Add missing whitespace in comment.
211 (set_width_command): Call set_screen_size.
212 (set_height_command): New function.
213 (initialize_utils): Fix formatting. Make "set height" command
214 call set_height_command. Remove redundant code that turns off
215 pagination if output isn't a terminal. Remove redundant call to
218 2003-08-22 Mark Kettenis <kettenis@gnu.org>
220 * sparc64-tdep.h (sparc64_regnum): Fix comment.
221 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
222 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
223 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
225 (sparc64_register_info): Give the reister with number
226 SPARC64_STATE_REGNUM a name.
227 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
229 (sparc64_push_dummy_call): Take BIAS into account when checking
231 (sparc_software_single_step): Remove assertions that check whether
232 NPC and NNPC were zero.
233 (sparc_supply_rwindow): Make public. Merge functionality with
234 sparc64_supply_rwindow.
235 (sparc_fill_rwindow): Make public. Merge functionality with
236 sparc64_fill_rwindow.
237 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
238 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
239 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
240 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
241 sparc_supply_rwindow instead of sparc64_supply_rwindow.
243 * reggroups.c: Add whitespace after declarations of local
244 variables in functions.
246 2003-08-21 Michael Chastain <mec@shout.net>
248 * gdbtypes.h: Change array bound type from an int to enum.
250 2003-08-21 Andrew Cagney <cagney@redhat.com>
252 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
253 * config/sparc/tm-sparc.h: Ditto.
254 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
256 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
258 2003-07-13 Mark Kettenis <kettenis@gnu.org>
260 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
261 (register_objfile_data, set_objfile_data, objfile_data): New
263 * objfiles.c (objfile_alloc_data, objfile_free_data): New
265 (allocate_objfile): Call objfile_alloc_data.
266 (free_objfile): Call objfile_free_data.
267 (struct objfile_data): New.
268 (struct objfile_data_registration): New.
269 (struct objfile_data_registry): New.
270 (objfile_data_registry): New variable.
271 (register_objfile_data): New function.
272 (objfile_alloc_data, objfile_free_data): New functions.
273 (set_objfile_data, objfile_data): New functions.
274 * dwarf2-frame.c (dwarf2_frame_data): New variable.
275 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
276 (_initialize_dwarf2_frame): New function and prototype.
278 2003-08-21 Andrew Cagney <cagney@redhat.com>
280 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
281 a specific architecture.
282 * arch-utils.h (set_architecture_from_arch_mach): Delete
284 (target_architecture_hook): Delete declaration.
285 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
286 (default_float_format): Assume GDB_MULTI_ARCH.
287 (default_double_format): Assume GDB_MULTI_ARCH.
288 (set_endian_from_file): Delete function.
289 (arch_ok): Delete function.
290 (set_arch): Delete function.
291 (set_architecture_from_arch_mach): Delete function.
292 (set_architecture_from_file): Delete function.
293 (set_architecture): Assume GDB_MULTI_ARCH.
294 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
296 2003-08-21 Mark Kettenis <kettenis@gnu.org>
298 Rewrite FreeBSD/sparc64 native configuration.
299 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
300 * sparc64fbsd-nat.c: New file.
301 * sparc64fbsd-tdep.c: New file.
302 * sparc64-tdep.c sparc64-tdep.h: New files.
303 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
304 sparc64fbsd-tdep.o): New dependencies.
305 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
306 and sparc64fbsd-tdep.c.
307 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
308 * config/sparc/fbsd.mh: Remove copyright notice.
309 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
311 * config/sparc/fbsd.mt: Remove copyright notice.
312 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
313 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
314 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
315 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
316 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
317 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
318 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
319 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
321 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
322 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
324 2003-08-21 Michael Chastain <mec@shout.net>
326 * symtab.h: Add doco on the space critical structures and
327 some measurements of space usage.
329 2003-08-21 Michael Snyder <msnyder@redhat.com>
331 * tracepoint.c (trace_dump_command): Trace break address
332 is subject to DECR_PC_AFTER_BREAK.
333 (set_traceframe_context): Make "trace_line" an int.
334 Fixes suggested by Mark Newman <mark.newman@lmco.com>
336 2003-08-20 Michael Snyder <msnyder@redhat.com>
338 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
339 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
340 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
342 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
343 functions, replace sh_push_dummy_call.
344 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
346 2003-08-20 Michael Chastain <mec@shout.net>
348 * gdbtypes.h (struct main_type): Rearrange to save space.
350 2003-08-20 Michael Snyder <msnyder@redhat.com>
352 * trad-frame.c: Comment typo fix.
354 2003-08-20 Michael Snyder <msnyder@redhat.com>
355 Kevin Buettner <kevinb@redhat.com>
357 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
358 (frv_frame_init_saved_regs): Add declaration.
359 (frame_extra_info): Add new field ``saved_regs''.
360 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
361 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
362 Update frame related code.
363 (frv_extract_struct_value_address): Adjust formatting.
364 * Makefile.in (frv-tdep.o): Update dependencies.
365 * config/frv/tm-frv.h (target_insert_watchpoint)
366 (target_remove_watchpoint, target_insert_hw_breakpoint)
367 (target_remove_hw_breakpoint): Delete these macros.
368 (remote_insert_watchpoint, remote_remove_watchpoint)
369 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
372 2003-08-20 Michael Chastain <mec@shout.net>
374 * defs.h (ENUM_BITFIELD): New macro.
375 * symtab.h (ENUM_BITFIELD): Use it.
376 (BYTE_BITFIELD): Remove old macro, which was already disabled.
378 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
380 * MAINTAINERS (write after approval): Add myself.
382 2003-08-18 Andrew Cagney <cagney@redhat.com>
384 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
385 * gdbarch.h, gdbarch.c: Re-generate.
386 * infcall.c (call_function_by_hand): Adjust the SP by
387 frame_red_zone_size before allocating any stack space.
388 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
389 * x86-64-tdep.c (x86_64_frame_align): New function.
390 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
392 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
393 Remove code adjusting SP so that it skips over the Red Zone.
395 2003-08-18 Mark Kettenis <kettenis@gnu.org>
397 * NEWS (New native configurations): Mention FreeBSD/amd64.
399 2003-08-18 Andrew Cagney <cagney@redhat.com>
401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
402 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
404 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
406 2003-08-18 Mark Kettenis <kettenis@gnu.org>
408 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
410 2003-08-18 Michal Ludvig <mludvig@suse.cz>
412 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
414 * i386-linux-nat.c: Include "linux-nat.h".
415 (child_post_startup_inferior): New function.
417 2003-08-18 Mark Kettenis <kettenis@gnu.org>
419 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
420 at the start of a frameless function. This probably fixes PR
423 2003-08-17 Michael Chastain <mec@shout.net>
425 * symfile.c (find_sym_fns): Remove special case for apollo target.
427 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
429 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
430 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
431 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
432 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
433 (linux_supports_tracevforkdone): New function.
434 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
436 (child_follow_fork): Handle vfork.
437 (linux_handle_extended_wait): Likewise. Also handle exec.
438 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
439 * NEWS: Mention fork tracing.
441 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
443 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
445 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
447 * Makefile.in (i386-linux-nat.o): Update dependencies.
448 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
449 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
450 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
451 * i386-linux-nat.c: Include "linux-nat.h".
452 (child_post_startup_inferior): New function.
453 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
454 * infptrace.c (kill_inferior): Wrap in #ifdef.
455 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
456 attaching to each LWP.
457 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
458 (init_lin_lwp_ops): Fill in some more operations.
459 * linux-nat.h (linux_enable_event_reporting)
460 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
462 * linux-nat.c (linux_enable_event_reporting): New function.
463 (child_post_attach, linux_child_post_startup_inferior)
464 (child_post_startup_inferior, child_follow_fork)
465 (linux_handle_extended_wait, kill_inferior): New functions.
467 2003-08-16 Andrew Cagney <cagney@redhat.com>
469 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
470 * gdbarch.h, gdbarch.c: Re-generate.
472 2003-08-16 Mark Kettenis <kettenis@gnu.org>
474 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
476 2003-08-16 Andrew Cagney <cagney@redhat.com>
478 * NEWS: Mention that "set prompt-escape-char" was deleted.
479 * top.c (get_prompt_1): Delete function.
481 (init_main): Do not clear "gdb_prompt_escape". Delete "set
482 prompt-escape-char" command.
483 (MAX_PROMPT_SIZE): Delete macro.
484 (get_prompt): Simplify, do not call get_prompt_1.
486 2003-08-16 Andrew Cagney <cagney@redhat.com>
488 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
489 -Werror. -Wformat-nonliteral problems.
491 2003-08-15 J. Brobecker <brobecker@gnat.com>
493 Further multiarching work mostly for hppa64-*-hpux11:
494 * hppa-tdep.h: New file.
495 * hppa-tdep.c: #include hppa-tdep.c.
496 (hppa32_num_regs): Renamed from hppa_num_regs.
497 (hppa64_num_regs): New constant.
498 (hppa64_call_dummy_breakpoint_offset): New constant.
499 (hppa32_call_dummy_length): New constant.
500 (hppa64_call_dummy_length): New constant.
501 (hppa32_stack_align): Make name 32bit explicit.
502 (hppa32_register_virtual_type): Likewise.
503 (hppa32_extract_return_value): Likewise.
504 (hppa32_use_struct_convention): Likewise.
505 (hppa32_store_return_value): Likewise.
506 (hppa64_register_virtual_type): New function.
507 (hppa64_extract_return_value): New function.
508 (hppa64_use_struct_convention): New function.
509 (hppa64_store_return_value): New function.
510 (hppa_frame_locals_address): Remove declaration, function does
512 (hppa_register_byte): Add support for PA64 ABI.
513 (hppa_gdbarch_init): Add support for PA64 ABI.
514 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
515 Make name 32bit explicit.
516 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
517 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
518 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
519 (hppa64_hpux_frame_base_before_sigtramp): New function.
520 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
521 * config/pa/tm-hppa64.h: Remove macros that are no longer
522 necessary now that the gdbarch vector is properly setup.
523 Transform some macros into function calls. Some minor cleanup.
524 * config/pa/tm-hppah.h: Update function calls in macros
525 following the function renaming in hppa-hpux-tdep.c.
526 * Makefile.in (hppa_tdep_h): New variable.
527 (hppa-tdep.o): Add dependency over hppa_tdep_h.
529 2003-08-14 Michael Snyder <msnyder@redhat.com>
531 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
533 2003-08-13 J. Brobecker <brobecker@gnat.com>
535 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
536 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
539 2003-08-13 Michael Snyder <msnyder@redhat.com>
541 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
542 (frv_saved_pc_after_call): Use deprecated ftype.
543 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
544 (frv_remote_translate_xfer_address): Remove.
545 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
547 2003-08-13 J. Brobecker <brobecker@gnat.com>
549 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
550 initialization after the common gdbarch initialization, not before.
552 2003-08-13 J. Brobecker <brobecker@gnat.com>
554 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
555 (ADDR_BITS_REMOVE): Remove, redundant.
557 2003-08-13 J. Brobecker <brobecker@gnat.com>
559 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
560 gdbarch method to clear the 2 low bits of text addresses.
562 2003-08-12 Andrew Cagney <cagney@redhat.com>
564 * Makefile.in (dsrec.o): Update dependencies.
565 * dsrec.c: Include "gdb_assert.h".
566 (make_srec): Use snprintf instead of sprintf, use a literal format
569 2003-08-12 Andrew Cagney <cagney@redhat.com>
571 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
572 FRAME_OBSTACK_ZALLOC.
574 2003-08-12 Kevin Buettner <kevinb@redhat.com>
576 * i386-tdep.c (i386_gdbarch_init): Enable default support for
579 2003-08-10 Mark Kettenis <kettenis@gnu.org>
581 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
582 amd64fbsd_sc_reg_offset): Add extern declarations.
583 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
586 2003-08-11 Ben Elliston <bje@wasabisystems.com>
588 * MAINTAINERS (write after approval): Update my mail address.
590 2003-08-10 Andrew Cagney <cagney@redhat.com>
592 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
594 2003-08-10 Mark Kettenis <kettenis@gnu.org>
596 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
597 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
598 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
599 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
600 i386bsd_sc_reg_offset): Add extern declarations.
601 * i386obsd-nat.c: Include "i386-tdep.h"
602 (_initialize_i386obsd_nat): Remove extern declarations.
603 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
605 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
608 * i386-tdep.c (i386_register_to_value): Use get_frame_register
609 instead of frame_read_register.
610 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
611 instead of frame_read_register. Use I386_ESP_REGNUM instead of
613 (i386_frame_prev_register): Use frame_unwind_register_unsigned
614 instead of frame_unwind_unsigned_register. Use
615 I386_EFLAGS_REGISTER instead of PS_REGNUM.
616 (i386_get_longjmp_target): Use regcache_read_unsigned_register
617 instead of read_register. Use builtin_type_void_data_ptr instead
618 of builtin_type_void_func_ptr when extracting the address of the
620 (i386_extract_return_value, i386_store_return_value,
621 i386_pseudo_register_read, i386_pseudo_register_write): Use
622 register_size instead REGISTER_RAW_SIZE.
624 2003-08-10 Andrew Cagney <cagney@redhat.com>
626 * infcall.c (call_function_by_hand): Use xstrprintf instead of
627 sprintf. Make "name" constant.
629 2003-08-10 Mark Kettenis <kettenis@gnu.org>
631 * i387-tdep.c (i387_register_to_value): Use get_frame_register
632 instead of frame_read_register.
633 (i387_print_float_info): Use get_frame_register and
634 get_frame_register_unsigned instead of frame_register_read.
636 * i386fbsd-nat.c: Include "i386-tdep.h".
637 (child_resume): Make `eflags' an ULONGEST. Use
638 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
639 instead of register_read and register_write.
641 * i386bsd-nat.c (fetch_inferior_registers,
642 store_inferior_registers): Don't use && at the end of a line.
643 (_initialize_i386bsd_nat): Fix typo.
645 * frame.c (_initialize_frame): Add missing backslash.
647 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
648 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
649 and supply_register instead of manipulating the register buffer
652 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
653 * config/i386/nm-i386sol2.h
654 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
656 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
657 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
658 instructions that GCC likes to mingle into the prologue. Fixes
659 gdb/1253 and gdb/1255.
661 2003-08-09 Andrew Cagney <cagney@redhat.com>
664 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
665 * command.h (add_setshow_uinteger_cmd): Declare.
666 * frame.c (set_backtrace_cmd): New function.
667 (show_backtrace_cmd): New function.
668 * frame.c (_initialize_frame): Replace "set/show
669 backtrace-below-main" with "set/show backtrace past-main". Add
670 command "set/show backtrace limit".
671 (backtrace_past_main): Rename "backtrace_below_main".
672 (backtrace_limit): New variable.
673 (get_prev_frame): Update. Check the backtrace_limit.
675 2003-08-09 Andrew Cagney <cagney@redhat.com>
677 * defs.h (xstrprintf): Declare.
678 * utils.c (xstrprintf): New function.
679 * breakpoint.c (insert_breakpoints): Replace sprintf and
680 non-literal format strings, with xstrprintf and cleanups.
681 (delete_breakpoint,breakpoint_re_set): Ditto.
682 (commands_command, insert_breakpoints): Ditto.
683 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
684 (break_at_finish_command_1): Ditto.
686 2003-08-09 Andrew Cagney <cagney@redhat.com>
688 * MAINTAINERS (language support): List Adam Fedor as Objective C
691 2003-08-08 J. Brobecker <brobecker@gnat.com>
693 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
696 2003-08-08 J. Brobecker <brobecker@gnat.com>
698 * config/pa/tm-hppa64.h: Remove lots of macros that are no
699 longer necessary now that hppa64 is partially multiarch'ed.
701 2003-08-08 Andrew Cagney <cagney@redhat.com>
703 * interps.c (interp_set): Check for a NULL "old_interp".
705 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
707 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
708 (install-only): Support DESTDIR.
709 (uninstall): Likewise.
710 (install-gdbtk): Likewise.
712 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
714 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
715 contains something meaningful at all times.
717 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
719 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
721 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
723 * MAINTAINERS (write after approval): Added self.
725 2003-08-07 Andrew Cagney <cagney@redhat.com>
727 * inferior.h (AT_SYMBOL): Define.
728 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
729 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
730 * mips-tdep.c (mips_call_dummy_address): Delete function.
731 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
732 set call_dummy_address.
734 2003-08-07 Andrew Cagney <cagney@redhat.com>
736 * language.c (op_error): Delete function.
737 (binop_type_check): Delete function.
738 * language.h (type_op_error, range_op_error): Delete macros.
739 (op_error): Delete declaration.
741 2003-08-07 Andrew Cagney <cagney@redhat.com>
743 * interps.h (INTERP_MI2, INTERP_MI3): Define.
745 2003-08-07 Michal Ludvig <mludvig@suse.cz>
747 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
748 (x86_64_push_arguments): Skip the red zone.
750 2003-08-05 Andrew Cagney <cagney@redhat.com>
752 * reggroups.c (reggroup_next): Check for the final entry.
754 2003-08-04 Andrew Cagney <cagney@redhat.com>
756 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
757 * cli/cli-script.c (define_command): Call query directly, instead
758 of passing it a buffer.
759 * ocd.c (ocd_error): Pass error a constant format string.
760 * remote-mips.c (mips_error): Use fputs_filtered.
762 * solib-svr4.c (_initialize_svr4_solib): Update
763 register_gdbarch_data call.
764 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
766 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
767 (register_gdbarch_data): Delete "free" parameter. Update
769 * gdbarch.h, gdbarch.c: Re-generate.
770 * reggroups.c (_initialize_reggroup): Update.
771 * gnu-v3-abi.c (init_gnuv3_ops): Update.
772 * frame-base.c (_initialize_frame_base): Update.
773 * frame-unwind.c (_initialize_frame_unwind): Update.
774 * user-regs.c (_initialize_user_regs): Update.
775 * remote.c (_initialize_remote): Update.
776 * regcache.c (_initialize_regcache): Update.
778 * regcache.c (xfree_regcache_descr): Delete function.
779 (_initialize_regcache): Update call to register_gdbarch_data.
780 (init_regcache_descr, init_legacy_regcache_descr): Use
781 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
783 * remote.c (free_remote_state): Delete function.
784 (_initialize_remote): Update register_gdbarch_data.
785 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
786 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
788 2003-08-04 Andrew Cagney <cagney@redhat.com>
790 * reggroups.c (struct reggroup_el): Define.
791 (struct reggroups): Delete field "nr_group". Replace array
792 "group" with a "first" to "last" linked list.
793 (reggroups_init): Update. Allocate using gdbarch's obstack.
794 (reggroups_free): Delete function.
795 (add_group): Update. Add "el" parameter.
796 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
797 (default_groups): Update.
798 (reggroup_next): Replace reggroups.
799 (reggroups_dump): Update.
800 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
801 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
802 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
804 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
806 * Makefile.in (tui-interp.o): Update dependencies.
808 2003-08-04 David Carlton <carlton@kealia.com>
810 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
811 to internal_error call.
812 * source.c (forward_search_command): Add "%s" format argument.
813 (reverse_search_command): Ditto.
814 * top.c (quit_confirm): Ditto.
815 * cli/cli-setshow.c (do_setshow_command): Ditto.
816 * cp-valprint.c (cp_print_class_method): Replace
817 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
818 (cp_print_class_member): Ditto.
819 * event-top.c (command_line_handler): Ditto.
820 * linux-proc.c (linux_info_proc_cmd): Ditto.
821 * p-typeprint.c (pascal_type_print_base): Ditto.
822 * p-valprint.c (pascal_object_print_class_method): Ditto.
823 (pascal_object_print_class_member): Ditto.
824 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
825 * remote.c (remote_cisco_section_offsets): Ditto.
826 * top.c (command_line_input): Ditto.
827 * utils.c (vwarning,error_stream,quit): Ditto.
828 * valprint.c (print_floating,print_binary_chars)
829 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
831 2003-08-04 Andrew Cagney <cagney@redhat.com>
833 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
835 2003-08-02 Andrew Cagney <cagney@redhat.com>
837 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
838 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
841 2003-08-02 Andrew Cagney <cagney@redhat.com>
843 * Makefile.in: Update all dependencies and definitions.
845 2003-08-02 Adam Fedor <fedor@gnu.org>
847 * linespec.c (is_objc_method_format): New function
848 (decode_line_1, locate_first_half): Use it.
851 2003-08-01 Andrew Cagney <cagney@redhat.com>
853 * NEWS: Mention that m32r is multi-arch.
854 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
855 * configure.tgt: Recognize m32r-*-*.
856 * config/m32r/tm-m32r.h: Delete file.
857 * config/m32r/m32r.mt: New file.
858 * m32r-rom.c (m32r_upload_command): Use hostent only when
859 gethostname succeeds, in order to avoid a compilation
861 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
864 2003-08-01 Michael Snyder <msnyder@redhat.com>
866 * sh-tdep.c (sh_frame_align): New gdbarch method.
867 (sh_gdbarch_init): Set up frame_align method.
869 2003-07-31 Michael Snyder <msnyder@redhat.com>
871 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
872 which is already covered by the new frames infrastructure.
874 2003-07-31 Andrew Cagney <cagney@redhat.com>
876 * user-regs.c (struct user_reg): Add "next" link.
877 (struct user_regs): Replace "user" with "first" and "last" links.
878 (append_user_reg): Add pre-allocated "reg" parameter.
879 (builtin_user_regs): Provide initial value for "last".
880 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
881 (user_regs_init): Allocate memory from the gdbarch obstack.
882 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
883 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
885 (usernum_to_user_reg): New function.
886 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
887 (value_of_user_reg): Use usernum_to_user_reg.
888 (user_regs_free): Delete function.
889 (_initialize_user_regs): Update register_gdbarch_data call.
891 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
893 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
895 2003-07-30 Michael Snyder <msnyder@redhat.com>
897 * value.h (value_being_returned): Add a struct_addr argument.
898 * infcall.c (call_function_by_hand): Pass struct_addr to
899 value_being_returned.
900 * infcmd.c (print_return_value): Pass zero as struct_addr.
901 * values.c (value_being_returned): If struct_addr is passed,
902 use it instead of trying to recover it from the inferior.
904 2003-07-30 Kevin Buettner <kevinb@redhat.com>
906 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
907 the prologue analyzer won't need to attempt to extract the pc
908 value from the woefully incomplete dummy frame.
909 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
910 possible. Disable code which modifies the frame.
912 2003-07-28 Andrew Cagney <cagney@redhat.com>
914 * annotate.c (annotate_breakpoints_headers): Restrict annotation
916 (annotate_breakpoints_table, annotate_record): Ditto.
917 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
918 (annotate_field_name_end, annotate_field_value): Ditto.
919 (annotate_field_end, annotate_frame_source_begin): Ditto.
920 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
921 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
922 (annotate_frame_begin, annotate_frame_function_name): Ditto.
923 (annotate_frame_address_end, annotate_frame_address): Ditto.
924 (annotate_frame_args, annotate_frame_end): Ditto.
925 (annotate_frame_where, annotate_arg_begin): Ditto.
926 (annotate_arg_name_end, annotate_arg_value): Ditto.
927 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
928 (annotate_function_call, annotate_signal_name): Ditto.
929 (annotate_signal_string, annotate_signal_name_end): Ditto.
930 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
931 (annotate_value_begin, annotate_value_history_value): Ditto.
932 (annotate_value_history_end, annotate_value_end): Ditto.
933 (annotate_display_begin, annotate_display_number_end): Ditto.
934 (annotate_display_format, annotate_display_expression): Ditto.
935 (annotate_display_expression_end, annotate_display_value): Ditto.
936 (annotate_display_end, annotate_array_section_begin): Ditto.
937 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
938 (annotate_elt, annotate_array_section_end): Ditto.
940 2003-07-28 Andrew Cagney <cagney@redhat.com>
942 * regcache.c (struct regcache_descr): Update comments on
944 (init_legacy_regcache_descr): Don't set nr_raw_registers or
945 sizeof_raw_register_valid_p.
946 (init_regcache_descr): Set nr_raw_registers and
947 sizeof_raw_register_valid_p before calling
948 init_legacy_regcache_descr.
950 2003-07-28 Andrew Cagney <cagney@redhat.com>
952 * mips-tdep.c (print_gp_register_row): Print the GPR's register
955 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
957 * thread.c (info_threads_command): Use get_selected_frame ().
958 Check that there is at least one non-sentinel frame.
960 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
962 * m68hc11-tdep.c (struct frame_extra_info): Remove.
963 (m68hc11_pop_frame): Remove.
964 (m68hc11_frame_saved_pc): Remove.
965 (m68hc11_frame_chain): Remove.
966 (m68hc11_frame_init_saved_regs): Remove.
967 (m68hc11_init_extra_frame_info): Remove.
968 (m68hc11_store_struct_return): Remove.
969 (m68hc11_saved_pc_after_call): Remove.
971 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
973 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
974 frame unwind information.
975 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
976 and adapted for frame unwinding.
977 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
978 (m68hc11_unwind_pc): New function.
979 (m68hc11_frame_unwind_cache): New function to analyze frames.
980 (m68hc11_frame_this_id): New function to create new frame struct.
981 (m68hc11_frame_prev_register): New function to unwind a register from
983 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
984 (m68hc11_frame_p): New function for the above.
985 (m68hc11_frame_base_address): New function to return fp of frame.
986 (m68hc11_frame_args_address): Update for frame.
987 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
988 (m68hc11_unwind_sp): New function.
989 (m68hc11_unwind_dummy_id): New function.
990 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
993 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
995 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
996 (m68hc11_guess_from_prologue): Advance the pc and frame size only
997 when we are beyond the current pc.
999 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1001 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1002 from m68hc11_push_arguments.
1003 (m68hc11_push_arguments): Remove.
1004 (m68hc11_push_return_address): Remove.
1005 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1006 handlers; remove deprecated_extra_stack_alignment_needed.
1008 2003-07-27 Andrew Cagney <cagney@redhat.com>
1010 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1011 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1012 REAL_PC and not the pointer.
1013 * hppa-hpux-tdep.c: Include frame.h
1015 2003-07-27 Andrew Cagney <cagney@redhat.com>
1017 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1018 GDB_MULTI_ACH_PARTIAL.
1020 2003-07-27 Andrew Cagney <cagney@redhat.com>
1022 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1023 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1024 operator at start and not end of line.
1025 (decode_prologue): Ditto.
1026 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1027 frame_unwind_register_unsigned instead of
1028 frame_unwind_unsigned_register.
1029 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1031 (m32r_push_dummy_call): Use register_size instead of
1033 (m32r_frame_sniffer): Replace m32r_frame_p.
1034 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1035 * m32r-rom.c (report_transfer_performance): Delete extern
1037 (m32r_load, m32r_upload_command): Use print_transfer_performance
1038 instead of report_transfer_performance.
1039 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1040 / add_show_from_set.
1042 2003-07-26 Andrew Cagney <cagney@redhat.com>
1044 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1045 store_return_value and extract_struct_value_address.
1047 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1050 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1051 NULL, default to the section containing PC.
1053 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1055 * NEWS: Mention "regs" deprecated for m68hc11 too.
1057 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1058 (m68hc11_print_register): New function to print out one register.
1059 (m68hc11_print_registers_info): New function to print registers.
1060 (show_regs): Deprecate and use the above.
1061 (m68hc11_gdbarch_init): Install the print_registers_info.
1063 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1065 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1066 that we have a SIGTRAP before returning non-zero.
1068 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1069 Elena Zannoni <ezannoni@redhat.com>
1071 * linespec.c (decode_line_2): Avoid crash if
1072 find_function_start_sal() returns empty record.
1074 2003-07-23 Andreas Schwab <schwab@suse.de>
1076 * ia64-tdep.c (ia64_print_insn): New function.
1077 (ia64_gdbarch_init): Set print_insn to it.
1078 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1079 deprecated_tm_print_insn_info.
1081 2003-07-22 Michael Snyder <msnyder@redhat.com>
1083 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1084 handle 8-bit returns (long long).
1085 (h8300h_extract_return_value): Ditto.
1086 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1088 2003-07-22 Andrew Cagney <cagney@redhat.com>
1090 * gdbarch.c Include "gdb_obstack.h".
1091 (struct gdbarch): Add an "obstack".
1092 (alloc_gdbarch_data): Allocate the gdbarch data using
1093 GDBARCH_OBSTACK_CALLOC.
1094 (free_gdbarch_data): Delete function.
1095 (gdbarch_obstack_zalloc): New function.
1096 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1097 Assert that the architecture is not initialized.
1098 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1099 vector from the obstack.
1100 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1101 architecture obstack.
1102 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1103 (set_gdbarch_data): Assert that the data is not initialized.
1104 (struct gdbarch_data): Delete member "free".
1105 (register_gdbarch_data): Do not initialize "free".
1106 * gdbarch.h, gdbarch.c: Re-generate.
1108 2003-07-22 Andrew Cagney <cagney@redhat.com>
1110 * configure.in (build_warnings): Add -Wformat-nonliteral.
1111 * configure: Re-generate.
1113 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1115 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1117 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1119 * findvar.c (read_var_value): Remove case for thread local storage
1120 variables. It is now entirely handled by the dwarf2 location
1122 * printcmd.c (address_info): Ditto.
1123 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1125 (struct symbol): Remove objfile field, which was used by
1126 LOC_THREAD_LOCAL_STATIC only.
1127 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1128 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1129 usage of objfile pointer.
1130 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1131 thread local variables.
1132 Add include of objfiles.h.
1133 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1135 * Makefile.in (dwarf2loc.o): Update dependencies.
1137 2003-07-22 Andrew Cagney <cagney@redhat.com>
1139 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1141 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1142 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1143 (struct value): Add opaque declaration.
1144 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1146 2003-07-21 Andrew Cagney <cagney@redhat.com>
1148 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1149 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1151 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1153 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1154 regcache_cooked_read_unsigned instead of read_register.
1155 (m68hc11_saved_pc_after_call): Likewise.
1156 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1157 instead of write_register.
1158 (m68hc11_register_type): New function.
1159 (m68hc11_register_virtual_type): Remove.
1160 (m68hc11_store_return_value): Convert to use the regcache.
1161 (m68hc11_extract_struct_value_address): Likewise.
1162 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1163 m68hc11_register_type; undeprecate store_return_value and
1164 extract_struct_value_address.
1166 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1168 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1169 and translate to use regcache.
1170 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1172 2003-07-18 Andrew Cagney <cagney@redhat.com>
1174 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1175 * gdbarch.h, gdbarch.c: Re-generate.
1176 * i386-tdep.c (i386_gdbarch_init): Do not set
1177 DWARF2_BUILD_FRAME_INFO.
1178 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1180 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1181 DWARF2_BUILD_FRAME_INFO.
1183 2003-07-18 Andrew Cagney <cagney@redhat.com>
1185 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1186 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1188 2003-07-18 Andrew Cagney <cagney@redhat.com>
1190 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1191 frame_unwind_address_in_block, instead of frame_pc_unwind.
1192 (dwarf2_frame_cache): Ditto.
1194 2003-07-18 Andrew Cagney <cagney@redhat.com>
1196 * user-regs.h (struct gdbarch): Declare opaque.
1197 * ui-out.h (struct ui_file): Declare opaque.
1198 * dwarf2-frame.h (struct frame_info): Declare opaque.
1200 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1202 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1204 (procfs_meminfo): Change strerror to safe_strerror.
1205 (procfs_can_run): Remove K&R badness.
1207 2003-07-17 Michael Snyder <msnyder@redhat.com>
1209 * remote-sim.c: Comment typo fix.
1211 2003-07-17 Andrew Cagney <cagney@redhat.com>
1213 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1215 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1216 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1217 GDB_MULTI_ARCH_PARTIAL.
1219 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1221 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1222 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1223 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1225 2003-07-16 Theodore A. Roth <troth@openavr.org>
1227 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1229 (avr_frame_unwind_cache): Don't unwind FP for main.
1231 Save the computed prev_sp.
1232 (avr_saved_regs_unwinder): Remove function.
1233 (avr_frame_prev_register): Use PC unwind logic from
1234 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1236 2003-07-16 Andrew Cagney <cagney@redhat.com>
1238 * frame-base.h (frame_base_p_ftype): Delete definition.
1239 (frame_base_append_predicate): Delete declaration.
1240 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1241 (frame_unwind_append_predicate): Delete declaration.
1242 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1243 (append_predicate): Delete parameter "p".
1244 (frame_unwind_append_predicate): Delete function.
1245 (frame_unwind_append_sniffer): Update call to append_predicate.
1246 (frame_unwind_free): Delete function.
1247 (_initialize_frame_unwind): Pass NULL as "free" to
1248 register_gdbarch_data.
1249 (frame_unwind_init): Append the dummy_frame_sniffer.
1250 (frame_unwind_find_by_frame): Simplify.
1251 * frame-base.c (struct frame_base_table): Delete field "p".
1252 (append_predicate): Delete parameter "p".
1253 (frame_base_append_predicate): Delete function.
1254 (frame_base_append_sniffer): Update call to append_predicate.
1255 (frame_base_free): Delete function.
1256 (frame_base_find_by_frame): Simplify.
1257 (_initialize_frame_base): Pass NULL as "free" to
1258 register_gdbarch_data.
1259 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1260 (x86_64_sigtramp_frame_sniffer): Replace
1261 "x86_64_sigtramp_frame_p".
1262 (x86_64_init_abi): Set the frame unwind sniffers.
1263 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1264 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1265 (m68k_gdbarch_init): Set the frame unwind sniffers.
1266 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1267 "i386_sigtramp_frame_p".
1268 (i386_frame_sniffer): Replace "i386_frame_p".
1269 (i386_gdbarch_init): Set the frame unwind sniffers.
1270 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1271 (avr_gdbarch_init): Set the frame unwind sniffers.
1272 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1273 "alpha_sigtramp_frame_p"
1274 (alpha_heuristic_frame_sniffer): Replace
1275 "alpha_heuristic_frame_p".
1276 (alpha_gdbarch_init): Set the frame unwind sniffers.
1277 (alpha_dwarf2_init_abi): Ditto.
1278 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1279 "alpha_debug_frame_p".
1280 (alpha_mdebug_frame_base_sniffer): Replace
1281 "alpha_mdebug_frame_base_p".
1282 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1283 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1284 (d10v_gdbarch_init): Set the frame unwind sniffer.
1285 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1286 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1287 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1288 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1289 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1290 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1292 2003-07-16 Michael Snyder <msnyder@redhat.com>
1294 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1295 should go thru sh_dsp_register_sim_regno, else the dsp regs
1296 will not get the right values.
1298 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1300 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1301 deprecated_store_floating by call to store_typed_floating.
1302 (sh_sh4_register_convert_to_raw): Substitute call to
1303 deprecated_extract_floating by call to extract_typed_floating.
1305 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1307 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1309 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1311 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1312 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1313 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1315 (do_pseudo_register): Remove.
1316 (sh_push_dummy_code): New function.
1317 (sh64_store_struct_return): Rename from sh_store_struct_return.
1318 Only called for sh64 now.
1319 (sh_extract_struct_value_address): Regcache'ify.
1320 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1321 and accomodate new tasks.
1322 (sh64_push_return_address): Rename from sh_push_return_address.
1323 Only called for sh64 now.
1324 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1326 (sh3e_sh4_extract_return_value): Regcache'ify.
1327 (sh_default_store_return_value): Ditto.
1328 (sh3e_sh4_store_return_value): Ditto.
1329 (sh_default_register_byte): Remove.
1330 (sh_sh4_register_byte): Remove.
1331 (sh_default_register_raw_size): Remove.
1332 (sh_sh4_register_raw_size): Remove.
1333 (sh_register_virtual_size): Remove.
1334 (sh_sh3e_register_virtual_type): Remove.
1335 (sh_sh3e_register_type): New function.
1336 (sh_sh4_register_virtual_type): Remove.
1337 (sh_sh4_register_type): New function.
1338 (sh_default_register_virtual_type): Remove.
1339 (sh_default_register_type): New function.
1340 (do_fv_register_info): Add parameters to accomodate call from
1341 sh_print_registers_info.
1342 (do_dr_register_info): Ditto.
1343 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1344 Add parameters to accomodate call from sh_print_registers_info.
1345 (sh_do_fp_register): Ditto.
1346 (sh64_do_pseudo_register): Call do_dr_register_info,
1347 do_fv_register_info and sh_do_fp_register with default parameters.
1348 (sh_do_register): Add parameters to accomodate call from
1349 sh_print_registers_info.
1350 (sh_print_register): Ditto.
1351 (sh_print_registers_info): Rename from sh_do_registers_info.
1352 Add parameters to be used as gdbarch_print_registers_info
1353 implementation. Accomodate removed do_pseudo_register function
1355 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1356 function pointer. Call sh_print_register with default parameters.
1357 (sh64_do_registers_info): Call sh_print_registers_info instead of
1358 sh_do_registers_info.
1359 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1360 detection of deprecated vs. non-deprecated functionality.
1361 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1362 function pointer assignments by direct function calls.
1364 2003-07-15 Andrew Cagney <cagney@redhat.com>
1366 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1367 (frame_register_unwind, create_new_frame): Ditto.
1368 (legacy_get_prev_frame, get_frame_type): Ditto.
1369 (get_frame_base_address): Use frame_base_find_by_frame.
1370 (get_frame_locals_address): Use frame_base_find_by_frame.
1371 (get_frame_args_address): Use frame_base_find_by_frame.
1372 * frame-base.h (frame_base_sniffer_ftype): Declare.
1373 (frame_base_append_sniffer): Declare.
1374 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1375 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1376 (frame_base_append_sniffer): New function.
1377 (frame_base_append_predicate): Add a NULL sniffer.
1378 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1379 (struct frame_base_table): Add "sniffer".
1380 (frame_base_free): Free the "sniffer" table.
1381 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1382 (frame_unwind_append_sniffer): Declare.
1383 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1384 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1385 (struct frame_unwind_table): Add "sniffer", delete "middle".
1386 (append_predicate): Add "sniffer" parameter, append the sniffer.
1387 (frame_unwind_init): Update append_predicate call.
1388 (frame_unwind_append_sniffer): New function.
1389 (frame_unwind_append_predicate): Update append_predicate call.
1390 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1392 2003-07-15 Andrew Cagney <cagney@redhat.com>
1394 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1395 before code inhibiting repeated unwind attempts. Add to
1396 commentary on that test's problems.
1397 * blockframe.c (inside_main_func): Look for "main" in the minimal
1399 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1402 2003-07-15 Andrew Cagney <cagney@redhat.com>
1404 * complaints.c (struct explanation): Define.
1405 (struct complaints): Change type of "explanation" to "struct
1407 (symfile_explanations): Convert to a "struct explanation" table.
1408 (vcomplaint): Update.
1410 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1412 * x86-64-linux-nat.c (regmap): Removed.
1413 (supply_gregset, fill_gregset): Call
1414 x86_64_linux_(fill,supply)_gregset functions.
1415 * x86-64-linux-tdep.c (USER_*): New defines.
1416 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1417 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1419 (fetch_core_registers): Ditto.
1420 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1421 * x86-64-linux-tdep.h: New file.
1422 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1424 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1426 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1428 * x86-64-tdep.c (x86_64_store_return_value): Use
1429 regcache_cooked_write_part instead of regcache_cooked_write.
1431 * configure.host: Add x86_64-*-freebsd*.
1432 * configure.tgt: Add x86_64-*-freebsd*.
1433 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1434 * amd64fbsd-nat.c: New file.
1435 * amd64fbsd-tdep.c: New file.
1436 * config/i386/nm-fbsd64.h: New file.
1437 * config/i386/fbsd64.mh: New file.
1438 * config/i386/fbsd64.mt: New file.
1440 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1442 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1443 `sc_regs_offset' and `sc_fpregs_offset'.
1444 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1445 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1446 (alpha_sigtramp_register_address): Rewrite to use new members of
1447 `struct gdbarch_tdep'.
1448 (alpha_gdbarch_init): Initialize new members of struct
1450 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1451 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1452 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1453 (alphafbsd_pc_in_sigtramp): Implement.
1454 (alphafbsd_sigtramp_offset): New function.
1455 (alphafbsd_sigcontext_addr): New function.
1456 (alphafbsd_init_abi): Initialize signal trampoline related members
1457 of `struct gdbarch_tdep'.
1458 (_initialize_alphafbsd_tdep): Add prototype.
1460 2003-07-11 Theodore A. Roth <troth@openavr.org>
1462 * Makefile.in (install-only): Quote sed expression when generating
1465 2003-07-11 Richard Henderson <rth@redhat.com>
1467 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1468 * dwarf2-frame.c: Include complaints.h.
1469 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1470 variable initialization; return NULL on error.
1471 (decode_frame_entry): New.
1473 2003-07-11 Andrew Cagney <cagney@redhat.com>
1475 * frame.h (frame_address_in_block): Delete declaration.
1476 * blockframe.c (frame_address_in_block): Delete function.
1477 (get_frame_block): Use get_frame_address_in_block.
1478 (block_innermost_frame): Ditto.
1479 * stack.c (print_frame, backtrace_command_1): Ditto.
1481 * frame.h (get_frame_address_in_block): Declare.
1482 (frame_unwind_address_in_block): Declare.
1483 * frame.c (frame_unwind_address_in_block): New function.
1484 (get_frame_address_in_block): New function.
1486 2003-07-10 Andrew Cagney <cagney@redhat.com>
1488 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1489 pre-default. Note: re-generate has no effect.
1491 2003-07-10 Andrew Cagney <cagney@redhat.com>
1493 * gdbarch.sh: When a variable, but not a function, compare against
1494 0. Fix problem in previous patch.
1495 * gdbarch.c: Re-generate.
1497 2003-07-10 Andrew Cagney <cagney@redhat.com>
1499 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1500 functions against NULL, not 0.
1501 * gdbarch.c: Re-generate.
1503 2003-07-10 Fred Fish <fnf@ninemoons.com>
1505 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1506 null string instead of a null pointer.
1507 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1509 2003-07-09 Michael Snyder <msnyder@redhat.com>
1511 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1513 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1515 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1516 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1517 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1518 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1519 * x86-64-tdep.c: ... from here.
1521 2003-07-09 Andreas Schwab <schwab@suse.de>
1523 * m68k-tdep.h (enum struct_return): Define.
1524 (struct gdbarch_tdep): Add struct_return.
1525 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1526 bytes are padded to the right, not to the left. Pass struct value
1527 address in register %a1, not on stack.
1528 (m68k_use_struct_convention): New function.
1529 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1530 struct_return in tdep to pcc_struct_return.
1531 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1534 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1536 * somread.c (som_symfile_offsets): Fix compilation error.
1538 2003-07-09 Andrew Cagney <cagney@redhat.com>
1540 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1541 Add comments about the checks.
1543 2003-07-08 Andrew Cagney <cagney@redhat.com>
1545 * Makefile.in: Make dependency section headers consistent.
1546 (config_h): Move to $BUILD headers section.
1547 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1548 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1549 (ada-exp.tab.c): Move to YACC/LEX section.
1550 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1551 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1553 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1555 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1556 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1557 of strerror with safe_strerror, use ISO C function definitions,
1558 and replace instances of sprintf with snprintf.
1560 2003-07-07 Andrew Cagney <cagney@redhat.com>
1562 * frame.c (get_prev_frame): Enable check for identical frames.
1563 Update comments. Update error messages.
1565 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1567 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1569 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1571 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1572 sort_symtab_syms, no longer necessary.
1574 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1576 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1578 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1580 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1581 (mips_register_byte): Likewise.
1583 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1585 * Makefile.in (sparc_tdep_h): New.
1586 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1587 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1588 * sparc-linux-nat.c: Include "sparc-tdep.h".
1589 * sparc-nat.c: Likewise.
1590 * sparc-tdep.c: Likewise.
1591 * sparc64nbsd-nat.c: Likewise.
1592 * sparcnbsd-nat.c: Likewise.
1593 * sparcnbsd-tdep.c: Likewise.
1594 * sparc-tdep.h: New file.
1595 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1596 and sparc_npc_regnum.
1598 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1600 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1601 (mips_linux_cannot_store_register): List supported instead of
1602 unsupported registers.
1604 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1606 * disasm.c (dump_insns): Separate instructions from addresses.
1608 2003-07-07 Andreas Schwab <schwab@suse.de>
1610 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1612 * m68k-tdep.c (NUM_FREGS): Delete.
1613 (SIG_PC_FP_OFFSET): Delete.
1614 (TARGET_M68K): Delete.
1615 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1616 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1617 P_MOVEL_SP, P_MOVEML_SP): Define.
1618 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1620 (m68k_register_raw_size): Delete.
1621 (m68k_register_virtual_size): Delete.
1622 (m68k_register_type): Renamed from m68k_register_virtual_type and
1623 add gdbarch argument.
1624 (m68k_store_struct_return): Delete.
1625 (m68k_deprecated_extract_return_value): Delete.
1626 (m68k_deprecated_extract_struct_value_address): Delete.
1627 (m68k_frame_chain): Delete.
1628 (m68k_frame_saved_pc): Delete.
1629 (m68k_fix_call_dummy): Delete.
1630 (m68k_push_dummy_frame): Delete.
1631 (m68k_pop_frame): Delete.
1632 (m68k_extract_return_value): New function.
1633 (m68k_store_return_value): Rewrite using regcache.
1634 (m68k_extract_struct_value_address): Rewrite using regcache.
1635 (m68k_push_dummy_call): New function.
1636 (struct m68k_frame_cache): Define.
1637 (m68k_alloc_frame_cache): New function.
1638 (m68k_analyze_frame_setup): New function.
1639 (m68k_analyze_register_saves): New function.
1640 (m68k_analyze_prologue): New function.
1641 (m68k_skip_prologue): Rewrite using above functions.
1642 (m68k_unwind_pc): New function.
1643 (m68k_frame_cache): New function.
1644 (m68k_frame_this_id): New function.
1645 (m68k_frame_prev_register): New function.
1646 (m68k_frame_unwind): New variable.
1647 (m68k_frame_p): New function.
1648 (m68k_sigtramp_frame_cache): New function.
1649 (m68k_sigtramp_frame_this_id): New function.
1650 (m68k_sigtramp_frame_prev_register): New function.
1651 (m68k_sigtramp_frame_unwind): New variable.
1652 (m68k_sigtramp_frame_p): New function.
1653 (m68k_frame_base_address): New function.
1654 (m68k_frame_base): New function.
1655 (m68k_unwind_dummy_id): New function.
1656 (fill_gregset): Use regcache_collect.
1657 (fill_fpregset): Likewise.
1658 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1660 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1661 deprecated_init_frame_pc, deprecated_store_struct_return,
1662 deprecated_extract_return_value, deprecated_store_return_value,
1663 deprecated_frame_chain, deprecated_frame_saved_pc,
1664 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1665 deprecated_register_virtual_size,
1666 deprecated_max_register_raw_size,
1667 deprecated_max_register_virtual_size,
1668 deprecated_register_virtual_type, deprecated_register_size,
1669 deprecated_register_byte, deprecated_register_bytes,
1670 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1671 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1672 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1673 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1674 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1675 deprecated_push_dummy_frame, deprecated_pop_frame,
1676 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1677 only if SYSCALL_TRAP is defined. Set extract_return_value,
1678 store_return_value, extract_struct_value_address, register_type,
1679 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1681 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1682 M68K_MAX_REGISTER_SIZE): Define.
1683 (struct m68k_sigtramp_info): Define.
1684 (struct gdbarch_tdep): Add get_sigtramp_info.
1685 * m68klinux-nat.c (fetch_register): Use register_size instead of
1686 REGISTER_RAW_SIZE. Don't put assignment in if.
1687 (store_register): Likewise.
1688 (fetch_inferior_registers): Likewise.
1689 (store_inferior_registers): Likewise.
1690 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1691 (m68k_linux_frame_saved_pc): Delete.
1692 (m68k_linux_sigcontext_reg_offset,
1693 m68k_linux_ucontext_reg_offset): Define.
1694 (m68k_linux_get_sigtramp_info): New function.
1695 (m68k_linux_extract_return_value): Rewrite using regcache.
1696 (m68k_linux_store_return_value): Likewise.
1697 (m68k_linux_extract_struct_value_address): Likewise.
1698 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1699 Don't set deprecated_frame_saved_pc,
1700 deprecated_extract_return_value, deprecated_store_return_value,
1701 deprecated_extract_struct_value_address. Set
1702 extract_return_value, store_return_value,
1703 extract_struct_value_address.
1705 2003-07-07 Andrew Cagney <cagney@redhat.com>
1707 * expprint.c: Include "user-regs.h" instead of "frame.h".
1708 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1709 frame_map_regnum_to_name.
1710 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1711 (frame_map_name_to_regnum): Simplify, call
1712 user_reg_map_name_to_regnum.
1713 (frame_map_regnum_to_name): Simplify, call
1714 user_reg_map_regnum_to_name.
1715 (frame_register_unwind): Update.
1716 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1717 (_initialize_frame_reg): Call user_reg_add_builtin.
1718 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1719 (value_of_register): Use value_of_user_reg.
1720 * eval.c (evaluate_subexp_standard): Update.
1721 * parse.c (write_dollar_variable): Update.
1722 * d10v-tdep.c (d10v_print_registers_info): Update.
1723 * infcmd.c (registers_info): Update.
1724 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1725 (builtin_regs_h): Delete macro.
1726 (user_regs_h): Define.
1727 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1728 (builtin-regs.o): Delete target.
1729 (user-regs.o): Specify dependencies.
1730 (expprint.o): Update dependencies.
1731 (findvar.o): Update dependencies.
1732 (frame.o): Update dependencies.
1733 (std-regs.o): Update dependencies.
1735 2003-07-06 Christopher Faylor <cgf@redhat.com>
1737 * win32-nat.c (solib_symbols_add): Use one variable for all section
1738 address stuff. Pass variable rather than address of variable to
1739 safe_symbol_file_add.
1741 2003-07-06 Andreas Schwab <schwab@suse.de>
1743 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1745 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1747 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1749 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1751 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1753 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1755 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1756 * config/i386/nto.mh: New file.
1757 * config/i386/nm-nto.h: New file.
1758 * configure.host: Add i[3456]86-*-nto*.
1760 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1762 * remote-vx.c (vx_add_symbols): Fix compilation error.
1764 2003-07-03 Andrew Cagney <cagney@redhat.com>
1766 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1767 * gdbarch.h, gdbarch.c: Re-generate.
1768 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1769 (legacy_register_name): Declare.
1770 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1771 (REGISTER_NAME): Define.
1772 * sparc-tdep.c (legacy_register_name): New function.
1773 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1774 (REGISTER_NAME): Define.
1775 (hppa64_register_name): Declare.
1776 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1777 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1778 (hppa64_register_name): New function.
1779 (hppa_register_name): New function.
1780 * arch-utils.c (legacy_register_name): Delete.
1781 * arch-utils.h (legacy_register_name): Delete.
1783 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1785 * cli/cli-interp.c (cli_interpreter_resume): Update the
1786 cli_uiout's stream to gdb_stdout.
1788 2003-07-03 Andrew Cagney <cagney@redhat.com>
1790 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1792 * gdbarch.h, gdbarch.c: Re-generate.
1793 * regcache.c (init_regcache_descr): Use legacy code when either
1794 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1796 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1798 * NEWS: Move "set logging" entry into GDB 6.0 section.
1800 2003-07-02 Jim Blandy <jimb@redhat.com>
1802 * s390-tdep.c (struct frame_extra_info): new member:
1803 'stack_bought_valid'.
1804 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1805 initialize fextra_info->stack_bought.
1806 (s390_frameless_function_invocation): Don't trust the value of
1807 fextra_info_ptr->stack_bought unless
1808 fextra_info->stack_bought_valid is set.
1810 New S390 prologue analyzer.
1811 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1812 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1813 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1814 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1815 compute_x_addr, s390_on_stack, s390_store,
1816 s390_get_signal_frame_info): New functions.
1817 (S390_NUM_SPILL_SLOTS): New macro.
1818 (s390_get_frame_info): Rewritten.
1819 (is_arg_reg): Deleted.
1821 Break out the decoding of S/390 instructions into separate
1822 functions, to make it more legible, and easier to check
1824 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1825 is_rx, is_rxe): New functions.
1826 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1827 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1828 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1829 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1830 enums for opcode values. (Is this an improvement?)
1832 2003-07-02 Andrew Cagney <cagney@redhat.com>
1834 * i386-tdep.c: Revert change committed as part of trad-frame code
1837 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1839 * breakpoint.c (insert_catchpoint): Make static.
1841 2003-07-02 Andreas Schwab <schwab@suse.de>
1843 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1844 former ia64_push_arguments and ia64_push_return_address, and use
1845 regcache functions instead of read/write_register.
1846 (ia64_gdbarch_init): Set push_dummy_call instead of
1847 deprecated_push_arguments and deprecated_push_return_address.
1849 2003-07-01 Andreas Jaeger <aj@suse.de>
1851 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1853 Set %rax only to number of SSE registers used.
1855 2003-07-01 Andrew Cagney <cagney@redhat.com>
1857 * trad-frame.h: Update comments, a -1 .addr is reserved.
1858 (trad_frame_value_p, trad_frame_addr_p): Declare.
1859 (trad_frame_reg_p): Declare.
1860 (trad_frame_set_value): Rename trad_frame_register_value.
1861 (trad_frame_set_unknown): Declare.
1862 * trad-frame.c (trad_frame_realreg_p): New function.
1863 (trad_frame_addr_p, trad_frame_value_p): New function.
1864 (trad_frame_set_unknown): New function.
1865 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1866 (trad_frame_prev_register): Use trad_frame_realreg_p,
1867 trad_frame_addr_p and trad_frame_value_p.
1868 (trad_frame_set_value): Rename trad_frame_register_value.
1869 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1870 and trad_frame_set_value.
1872 2003-06-30 Jim Blandy <jimb@redhat.com>
1874 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1875 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1876 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1877 for 16 registers, and then 32 more bytes.
1878 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1880 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1881 Move up in the file, since it's now used by is_simple_arg.
1882 (is_simple_arg): Don't assume registers are four bytes long.
1883 Exclude all double arguments. Extended floats are not simple
1885 (is_power_of_two): New function.
1886 (pass_by_copy_ref): Call is_power_of_two, and check that the
1887 length fits in a register, rather than listing all the acceptable
1888 sizes. Extended floats are not passed by reference.
1889 (s390_push_arguments): Don't assume registers are four bytes long.
1890 Reserve an argument register to point to the buffer for structures
1891 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1892 S390_STACK_FRAME_OVERHEAD.
1894 2003-06-30 Andreas Schwab <schwab@suse.de>
1896 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1897 format error message.
1899 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1901 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1903 2003-06-30 David Carlton <carlton@kealia.com>
1905 Band-aid for PR c++/1245.
1906 * Makefile.in (cp-support.o): Depend on complaints_h.
1907 * cp-support.c: Include complaints.h. Add declaration for
1908 find_last_component.
1909 (cp_find_first_component): Separate code into
1910 cp_find_first_component_aux.
1911 (cp_find_first_component_aux): Call demangled_name_complaint.
1912 (demangled_name_complaint): New.
1914 2003-06-30 Andrew Cagney <cagney@redhat.com>
1916 * remote.c (remote_write_bytes): Explicitly compute and then use
1917 the payload size. Update comments to reflect. Fixes problem of
1918 GDB not sending small packets as found by Fred Fish.
1920 2003-06-30 Andrew Cagney <cagney@redhat.com>
1922 * remote.c (remote_async_wait): Fix -Wformat problem.
1924 2003-06-29 Andrew Cagney <cagney@redhat.com>
1926 * remote.c (remote_wait): Call error, and not warning, when the
1928 (remote_async_wait): Ditto.
1930 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1932 * sparc-tdep.c (sparc_y_regnum): Make external again.
1934 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1936 * cli/cli-logging.c (pop_output_files): Add void to function
1939 2003-06-29 Andrew Cagney <cagney@redhat.com>
1941 * frame.c (frame_register_unwind): Use unsigned char when dumping
1942 the buffer contents.
1944 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1946 * cli/cli-logging.c: New file.
1947 * cli-out.c (struct ui_out_data): Add original_stream.
1948 (cli_redirect): New function.
1949 (cli_ui_out_impl): Add cli_redirect.
1950 (cli_out_new): Initialize original_stream.
1951 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1952 (uo_redirect, ui_out_redirect): New.
1953 * ui-out.h (struct ui_out_impl): Add redirect member.
1954 (redirect_ftype): New.
1955 (ui_out_redirect): Add prototype.
1956 * Makefile.in: Add rules for cli-logging.c.
1957 * NEWS: Mention "set logging".
1959 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1961 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1963 2003-06-27 Andrew Cagney <cagney@redhat.com>
1965 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1966 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1967 * avr-tdep.c (avr_call_dummy_address): Delete function.
1968 (avr_gdbarch_init): Do not set call_dummy_address.
1970 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1972 * symfile.c (syms_from_objfile): Move variables to inner block.
1973 Move the checks for the non-mainline case a bit earlier to avoid
1974 doing some useless computations.
1976 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1978 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1980 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1982 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1985 2003-06-26 Michael Chastain <mec@shout.net>
1987 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1988 gdb/testsuite/gdb.c++/pr-1210.exp.
1990 2003-06-26 Andrew Cagney <cagney@redhat.com>
1992 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1993 altivec_expression.h and altivec_registers.h.
1995 2003-06-26 Andrew Cagney <cagney@redhat.com>
1997 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1998 info->mach when MIPS16. Patch suggested by Fred Fish.
2000 2003-06-26 Andrew Cagney <cagney@redhat.com>
2002 * utils.c (internal_vproblem): Print the problem to a reason
2003 buffer and then pass to query. Make the msg variable more local.
2005 2003-06-26 Andrew Cagney <cagney@redhat.com>
2007 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2008 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2009 * gdbarch.h, gdbarch.c: Re-generate.
2010 * frame-base.c (default_frame_args_address): Update. Use
2011 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2013 (default_frame_locals_address): Ditto for
2014 DEPRECATED_FRAME_LOCALS_ADDRESS.
2015 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2016 (vax_frame_num_args): Update.
2017 (vax_gdbarch_init): Update.
2018 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2019 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2020 * mcore-tdep.c (mcore_gdbarch_init): Update.
2021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2022 * ia64-tdep.c (ia64_gdbarch_init): Update.
2023 * symtab.h (address_class): Update comments.
2024 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2025 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2026 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2027 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2028 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2029 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2030 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2031 * alpha-mdebug-tdep.c: Update.
2032 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2034 2003-06-26 Andreas Jaeger <aj@suse.de>
2036 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2037 of SSE registers so that varargs functions work. Rework handling
2038 of passing arguments on the stack.
2039 (x86_64_store_return_value): Return double and float values in SSE
2042 2003-06-24 Michael Chastain <mec@shout.net>
2044 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2045 the "constructor breakpoints ignored" bug.
2047 2003-06-25 David Carlton <carlton@kealia.com>
2049 * MAINTAINERS: Update e-mail address.
2051 2003-06-24 Jim Blandy <jimb@redhat.com>
2053 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2055 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2057 (ppc_linux_init_abi): Register it as the
2058 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2060 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2061 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2064 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2065 (ppc64_standard_linkage_target): Use it.
2067 2003-06-23 Andrew Cagney <cagney@redhat.com>
2069 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2070 for 0 "int0" and 4 "int32" sized registers.
2071 * gdbtypes.c (builtin_type_int0): Define.
2072 (build_gdbtypes): Initialize builtin_type_int0.
2073 * gdbtypes.h (builtin_type_int0): Declare.
2075 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2078 as characters are unsigned.
2080 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2083 * dwarfread.c (struct_type): Skip static fields without crashing.
2085 2003-06-22 Andrew Cagney <cagney@redhat.com>
2087 GDB 6.0 branch created.
2089 * PROBLEMS: Update. Empty.
2092 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2094 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2095 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2097 2003-06-22 Andrew Cagney <cagney@redhat.com>
2099 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2100 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2103 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2105 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2108 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2110 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2111 argument of val_print.
2112 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2113 to the address argument of baseclass_offset or target_read_memory.
2114 Do add it to the argument of cp_print_value_fields.
2116 2003-06-21 Andrew Cagney <cagney@redhat.com>
2118 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2119 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2120 instead of 0..NUM_REGS.
2121 (mips_register_reggroup_p): New function.
2122 (mips_pseudo_register_write): New function.
2123 (mips_pseudo_register_read): New function.
2124 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2125 based on the register's type.
2126 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2128 (mips_get_saved_register): Simplify. Assert that REGNO is a
2130 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2131 (mips_register_type): Replace mips_register_virtual_type. Map
2132 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2134 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2135 that the register is cooked / virtual.
2136 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2137 Only get the extra info when needed.
2138 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2139 (mips32_heuristic_proc_desc): Fetch the cooked register.
2140 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2141 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2142 (mips_print_register): Use gdbarch_register_type, instead of
2143 REGISTER_VIRTUAL_TYPE.
2144 (print_gp_register_row): Use gdbarch_register_type, instead of
2145 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2146 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2147 Print the pseudo / cooked registers.
2148 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2149 Print the pseudo / cooked registers.
2150 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2151 REG_NUM is pseudo / cooked.
2152 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2153 (mips_n32n64_xfer_return_value): Ditto.
2154 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2155 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2156 (mips_register_sim_regno): New function.
2157 (mips_gdbarch_init): Set deprecated_register_byte,
2158 register_group_p, pseudo_register_write, pseudo_register_read,
2159 register_sim_regno, and num_pseudo_regs. Set register_type,
2160 instead of register_virtual_type.
2161 * Makefile.in (mips-tdep.o): Update dependencies.
2162 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2163 REGISTER_VIRTUAL_TYPE.
2164 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2165 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2166 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2167 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2168 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2170 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2172 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2173 * cli/cli-cmds.c: Include "gdb_vfork.h".
2174 (shell_escape): Use vfork.
2176 2003-06-21 Andrew Cagney <cagney@redhat.com>
2178 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2179 32 bit floating-point register saves.
2181 * frame.h (deprecated_unwind_get_saved_register): Delete.
2182 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2183 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2184 and deprecated_get_next_frame_hack instead of
2185 deprecated_unwind_get_saved_register.
2187 * mips-tdep.c (mips_dump_tdep): Do not print
2188 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2190 * frame.c (get_frame_register): New function.
2191 (frame_unwind_register_signed): New function.
2192 (get_frame_register_signed): New function.
2193 (frame_unwind_register_unsigned): New function.
2194 (get_frame_register_unsigned): New function.
2195 * frame.h: Add comments on naming schema.
2196 (get_frame_register, frame_unwind_register_signed): Declare.
2197 (get_frame_register_signed, get_frame_register_signed): Declare.
2198 (frame_unwind_register_unsigned): Declare.
2199 (get_frame_register_unsigned): Declare.
2201 2003-06-20 Theodore A. Roth <troth@openavr.org>
2203 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2205 2003-06-20 Theodore A. Roth <troth@openavr.org>
2207 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2208 (avr_read_sp): Ditto.
2210 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2212 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2213 * config/arm/nm-linux.h: Likewise.
2214 * config/arm/tm-linux.h: Likewise.
2215 * config/ia64/nm-linux.h: Likewise.
2216 * config/ia64/tm-ia64.h: Likewise.
2217 * config/s390/tm-linux.h: Likewise.
2218 * config/s390/tm-s390.h: Likewise.
2219 * s390-nat.c: Likewise.
2220 * s390-tdep.c: Likewise.
2222 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2223 * config/ia64/linux.mt: Likewise.
2224 * config/m68k/linux.mh: Likewise.
2225 * config/mips/linux.mt: Likewise.
2226 * config/powerpc/linux.mh: Likewise.
2227 * config/sh/linux.mt: Likewise.
2229 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2231 * solib.c (solib_open): Change tests for whether to search
2232 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2235 2003-06-19 Theodore A. Roth <troth@openavr.org>
2237 * avr-tdep.c (avr_frame_address): Delete function.
2238 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2239 set_gdbarch_frame_args_address.
2241 2003-06-19 Andrew Cagney <cagney@redhat.com>
2243 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2244 (REGISTER_CONVERT_FROM_TYPE): Delete.
2245 (mips_register_convert_to_type): Delete declaration.
2246 (mips_register_convert_from_type): Delete declaration.
2247 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2250 2003-06-19 Michael Snyder <msnyder@redhat.com>
2252 * linux-nat.h: New file.
2253 * linux-nat.c: Include linux-nat.h.
2254 * lin-lwp.c: Include linux-nat.h.
2255 Move struct lwp_info def to linux-nat.h.
2256 * linux-proc.c: Include linux-nat.h.
2257 (linux_make_note_section): Iterate over lwps instead of threads.
2258 (linux_do_thread_registers): Use lwp instead of merged pid.
2259 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2260 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2261 Add dependency on linux_nat_h.
2263 2003-06-19 Theodore A. Roth <troth@openavr.org>
2265 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2267 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2269 * varobj.c (get_type, get_target_type): Use check_typedef.
2271 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2273 * breakpoint.c (insert_catchpoint): Call internal_error.
2275 2003-06-19 Theodore A. Roth <troth@openavr.org>
2277 * avr-tdep.c (avr_push_dummy_code): Delete function.
2278 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2280 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2282 * arch-utils.c (default_prepare_to_proceed): Remove.
2283 (generic_prepare_to_proceed): Remove.
2284 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2285 (generic_prepare_to_proceed): Remove prototype.
2286 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2287 * gdbarch.c: Regenerate.
2288 * gdbarch.h: Regenerate.
2289 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2290 * hppah-nat.c (hppa_switched_threads): Remove.
2291 * infrun.c (prepare_to_proceed): New static function, copied from
2292 generic_prepare_to_proceed. Remove select_it argument.
2293 (proceed): Call prepare_to_proceed.
2294 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2296 (ptrace_wait): Don't set the removed variables.
2297 (hppa_switched_threads): Remove.
2298 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2299 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2300 (lin_lwp_prepare_to_proceed): Remove prototype.
2301 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2302 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2304 2003-06-18 Theodore A. Roth <troth@openavr.org>
2306 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2308 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2309 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2310 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2311 (AVR_PROLOGUE_*): Enumerate prologue types.
2312 (struct frame_extra_info): Remove.
2313 (struct avr_unwind_cache): Define.
2314 (avr_write_sp): Delete function.
2315 (avr_read_fp): Ditto.
2316 (avr_init_extra_frame_info): Ditto.
2317 (avr_pop_frame): Ditto.
2318 (avr_frame_saved_pc): Ditto.
2319 (avr_saved_pc_after_call): Ditto.
2320 (avr_push_return_address): Ditto.
2321 (avr_frame_chain): Ditto.
2322 (avr_store_struct_return): Ditto.
2323 (avr_push_arguments): Ditto.
2324 (avr_scan_prologue): Update comments. Changed to set up the info for
2325 cache unwinding. Now returns end of prologue PC.
2326 (avr_skip_prologue): Better handling of functions lacking a prologue
2327 by using avr_scan_prologue.
2328 (avr_scan_arg_moves): New function.
2329 (avr_saved_regs_unwinder): Ditto.
2330 (avr_frame_unwind_cache): Ditto.
2331 (avr_unwind_pc): Ditto.
2332 (avr_frame_this_id): Ditto.
2333 (avr_frame_prev_register): Ditto.
2334 (avr_frame_p): Ditto.
2335 (avr_frame_base_address ): Ditto.
2336 (avr_unwind_dummy_id): Ditto.
2337 (avr_push_dummy_code): Ditto.
2338 (push_stack_item): Ditto.
2339 (pop_stack_item): Ditto.
2340 (avr_push_dummy_call): Ditto.
2341 (struct stack_item): Define.
2342 (avr_frame_unwind): Declare structure.
2343 (avr_frame_base): Ditto.
2344 (avr_gdbarch_init): Remove calls to
2345 set_gdbarch_deprecated_init_frame_pc,
2346 set_gdbarch_deprecated_target_read_fp,
2347 set_gdbarch_deprecated_dummy_write_sp,
2348 set_gdbarch_deprecated_fp_regnum,
2349 set_gdbarch_deprecated_push_arguments,
2350 set_gdbarch_deprecated_push_return_address,
2351 set_gdbarch_deprecated_pop_frame,
2352 set_gdbarch_deprecated_store_struct_return,
2353 set_gdbarch_deprecated_frame_init_saved_regs,
2354 set_gdbarch_deprecated_init_extra_frame_info,
2355 set_gdbarch_deprecated_frame_chain,
2356 set_gdbarch_deprecated_frame_saved_pc,
2357 set_gdbarch_deprecated_saved_pc_after_call.
2358 Add calls to set_gdbarch_push_dummy_call,
2359 set_gdbarch_push_dummy_code,
2360 frame_unwind_append_predicate,
2361 frame_base_set_default,
2362 set_gdbarch_unwind_dummy_id,
2363 set_gdbarch_unwind_pc.
2366 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2368 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2369 registers for H8/300S.
2370 (h8300_print_registers_info): Ditto.
2371 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2373 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2375 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2376 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2377 (lin_lwp_wait): Likewise. Update comments.
2378 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2379 (pull_pid_from_list, linux_record_stopped_pid): New.
2381 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2383 * ada-lang.c (scan_discrim_bound): Name first argument.
2384 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2385 declared by ALL_BLOCK_SYMBOLS.
2387 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2389 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2390 ("regcache.h"): Include it.
2391 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2393 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2395 * NEWS: Mention gdbserver detach change and "disconnect" command.
2396 * infcmd.c (disconnect_command): New function.
2397 (_initialize_infcmd): Add ``disconnect'' command.
2398 * remote.c (remote_async_detach): Delete.
2399 (remote_detach): Merge remote_async_detach.
2400 (remote_disconnect): New.
2401 (init_remote_ops): Set to_disconnect.
2402 (init_remote_cisco_ops): Likewise.
2403 (init_remote_async_ops): Likewise. Use remote_detach.
2404 * target.c (cleanup_target): Default to_disconnect.
2405 (update_current_target): Inherit to_disconnect.
2406 (target_disconnect, debug_to_disconnect): New functions.
2407 (setup_target_debug): Set to_disconnect.
2408 * target.h (struct target_ops): Add to_disconnect.
2409 (target_disconnect): Add prototype.
2411 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2413 * breakpoint.c (insert_catchpoint): New function.
2414 (insert_breakpoints): Use catch_exceptions to call
2415 insert_catchpoint. Disable catchpoints if they fail to insert.
2417 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2419 * symfile.c (reread_symbols): Clear sym_private.
2421 2003-06-17 Andrew Cagney <cagney@redhat.com>
2423 * trad-frame.h (struct frame_info): Add opaque declaration.
2424 * remote-fileio.h (struct cmd_list_element): Add opaque
2426 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2429 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2431 * remote.c (remote_prepare_to_store): Replace call to
2432 deprecated_read_register_bytes with multiple regcache_raw_read
2435 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2437 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2438 (nto_find_and_open_solib): Likewise.
2439 (nto_init_solib_absolute_prefix): Likewise.
2440 (_initialize_nto_tdep): Fix indentation.
2442 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2444 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2446 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2448 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2450 2003-06-17 Jim Blandy <jimb@redhat.com>
2452 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2454 2003-06-16 Theodore A. Roth <troth@openavr.org>
2456 * avr-tdep.c (avr_extract_return_value): New function.
2457 (avr_gdbarch_init): Set extract_return_value method.
2459 2003-06-16 Andrew Cagney <cagney@redhat.com>
2461 * frame.h (deprecated_get_next_frame_hack): Declare.
2462 * frame.c (legacy_saved_regs_prev_register): Only require
2463 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2464 there are always saved regs.
2465 (deprecated_generic_get_saved_register): Do not require
2466 DEPRECATED_FRAME_INIT_SAVED_REGS.
2467 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2468 use frame ID unwind instead.
2469 (deprecated_get_next_frame_hack): New function.
2471 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2473 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2474 (h8300_push_dummy_call): ...this function. Some minor optimization.
2475 (h8300_push_return_address): Remove.
2476 (h8300_gdbarch_init): Remove calls to
2477 set_gdbarch_deprecated_dummy_write_sp,
2478 set_gdbarch_deprecated_push_arguments and
2479 set_gdbarch_deprecated_push_return_address.
2480 Add call to set_gdbarch_push_dummy_call.
2482 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2484 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2485 (E_PSEUDO_EXR_REGNUM): Ditto.
2486 (h8300_is_argument_spill): Check for instructions moving argument
2487 registers into safe registers.
2488 (h8300_skip_prologue): Check for stm instruction to push registers
2489 used for register variables onto stack.
2490 (gdb_print_insn_h8300): Remove.
2491 (h8300_examine_prologue): Add a comment.
2492 (h8300_register_name): Take pseudo registers into account.
2493 (h8300s_register_name): Ditto.
2494 (h8300sx_register_name): Ditto.
2495 (h8300_print_register): Ditto.
2496 (h8300_print_registers_info): Define "nice" printing order.
2497 (h8300_saved_pc_after_call): Take pseudo registers into account.
2498 (h8300_register_type): Ditto. Return type used for remote connection
2499 when requesting real CCR or EXR register, return actual type when
2500 requesting pseudo CCR or EXR.
2501 (h8300_pseudo_register_read): New function.
2502 (h8300_pseudo_register_write): Ditto.
2503 (h8300_dbg_reg_to_regnum): Ditto.
2504 (h8300s_dbg_reg_to_regnum): Ditto.
2505 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2506 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2507 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2508 set_gdbarch_print_insn architecture dependent.
2509 Call set_gdbarch_pseudo_register_read and
2510 set_gdbarch_pseudo_register_write.
2511 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2513 2003-06-16 Andrew Cagney <cagney@redhat.com>
2515 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2516 * gdbarch.h, gdbarch.c: Re-generate.
2517 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2518 * s390-tdep.c (s390_gdbarch_init): Update.
2519 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2520 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2521 * mips-tdep.c (mips_gdbarch_init): Update.
2522 * mcore-tdep.c (mcore_gdbarch_init): Update.
2523 * cris-tdep.c (cris_gdbarch_init): Update.
2524 * infcall.c (call_function_by_hand): Update.
2525 * ia64-tdep.c (ia64_push_arguments): Update comment.
2526 * frame.c (legacy_get_prev_frame): Do not assume
2527 SAVE_DUMMY_FRAME_TOS_P.
2528 * dummy-frame.c (find_dummy_frame): Update comment.
2530 2003-06-16 Andrew Cagney <cagney@redhat.com>
2532 * regcache.c (do_cooked_read): Do not use register_valid_p.
2534 2003-06-15 Theodore A. Roth <troth@openavr.org>
2536 * avr-tdep.c (avr_register_type): Remove a blank line.
2537 (avr_scan_prologue): Correct some comments.
2539 2003-06-15 Theodore A. Roth <troth@openavr.org>
2541 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2543 Properly scan prologues generated by gcc with the -mcall-prologues
2545 Add code to scan -mcall-prologues for mega devices.
2547 2003-06-15 Theodore A. Roth <troth@openavr.org>
2549 * avr-tdep.c (avr_register_byte): Delete function.
2550 (avr_register_raw_size): Delete function.
2551 (avr_register_virtual_size): Delete function.
2552 (avr_register_virtual_type): Delete function.
2553 (avr_register_type): New function.
2554 (avr_address_to_pointer): Remove unused code.
2555 (avr_read_fp): Need to read FP as two separate bytes due to change to
2556 avr_register_type() usage.
2557 (avr_gdbarch_init): Don't set deprecated_register_size.
2558 Don't set deprecated_register_bytes.
2559 Don't set deprecated_register_byte.
2560 Don't set deprecated_register_raw_size.
2561 Don't set deprecated_max_register_raw_size.
2562 Don't set deprecated_register_virtual_size.
2563 Don't set deprecated_max_register_virtual_size.
2564 Don't set deprecated_register_virtual_type.
2565 Set register_type method.
2567 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2569 * Makefile.in (linux-nat.o): Add rule.
2570 * linux-nat.c: New file.
2571 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2572 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2573 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2574 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2575 * config/arm/linux.mh (NATDEPFILES): Likewise.
2576 * config/i386/linux.mh (NATDEPFILES): Likewise.
2577 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2578 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2579 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2580 * config/mips/linux.mh (NATDEPFILES): Likewise.
2581 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2582 * config/s390/s390.mh (NATDEPFILES): Likewise.
2583 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2585 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2587 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2588 replace out-of-date comment.
2590 2003-06-15 Andrew Cagney <cagney@redhat.com>
2592 * rdi-share/host.h (Fail): Change to a varargs function.
2593 * remote-rdi.c (Fail): Update.
2595 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2597 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2598 (i386_convert_register_p, i386_register_to_value,
2599 i386_register_from_value): Handle types longer than 8 bytes.
2601 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2603 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2604 Move floating-point code to new function in i387-tdep.c.
2605 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2606 New functions containing code moved here from i386-tdep.c.
2607 * i387-tdep.h: Add opaque declaration for `struct type'.
2608 (i387_register_to_value, i387_value_to_register): New prototypes.
2609 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2610 (x86_64_init_abi): Set convert_register_p, register_to_value and
2611 value_to_register here.
2613 2003-06-14 Andrew Cagney <cagney@redhat.com>
2615 * mips-tdep.c (mips_register_to_value): Make static.
2616 (mips_value_to_register): Make static.
2617 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2618 * ia64-tdep.c (ia64_register_raw_size): Make static.
2619 (ia64_register_virtual_size): Make static.
2620 (ia64_register_byte): Make static.
2621 * i387-tdep.c: Include "i387-tdep.h".
2622 (print_387_control_word): Delete function.
2623 (print_387_status_word): Delete function.
2624 (print_387_status_bits): Delete function.
2625 (print_387_control_bits): Delete function.
2626 * Makefile.in (i387-tdep.o): Update dependencies.
2627 * rdi-share/host.h (Fail): Declare.
2628 * remote-rdi.c (Fail): Update to match declaration.
2630 2003-06-14 Andrew Cagney <cagney@redhat.com>
2632 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2633 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2634 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2635 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2636 * README: Delete reference to remote-array.
2637 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2638 (remote-array.o): Delete target.
2639 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2640 * remote-array.c: Delete file.
2642 2003-06-14 Andrew Cagney <cagney@redhat.com>
2643 Mark Kettenis <kettenis@gnu.org>
2645 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2646 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2647 parameter with "frame".
2648 * gdbarch.h, gdbarch.c: Re-generate.
2649 * frame.h (put_frame_register): Declare.
2650 * frame.c (put_frame_register): New function.
2651 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2652 (legacy_register_to_value): Rewrite, use "frame" to get the
2654 (legacy_value_to_register): Rewrite, use "frame" to find the
2655 register's location before storing.
2656 * arch-utils.h (legacy_convert_register_p): Update.
2657 (legacy_register_to_value, legacy_value_to_register): Update.
2658 * findvar.c (value_from_register): Rewrite, eliminate use of
2659 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2660 "frame" to REGISTER_TO_VALUE.
2661 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2662 lval_reg_frame_relative + lval_register branch of the switch. Do
2663 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2664 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2665 I386_EDI_REGNUM): New defines.
2666 (i386_next_regnum, i386_convert_register_p,
2667 i386_register_to_value, i386_value_to_register): New functions.
2668 (i386_register_convertible, i386_register_convert_to_virtual,
2669 i386_convert_to_raw): Remove functions.
2670 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2671 value_to_register instead of register_convertible,
2672 register_convert_to_virtual and register_convert_to_raw.
2673 * mips-tdep.c (mips_convert_register_p): New function.
2674 (mips_value_to_register): Replace mips_register_convert_from_type.
2675 (mips_register_to_value): Replace mips_register_convert_to_type.
2676 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2678 * alpha-tdep.c (alpha_convert_register_p): Update.
2679 (alpha_value_to_register): Update, store the register.
2680 (alpha_register_to_value): Update, fetch the register.
2682 2003-06-14 Theodore A. Roth <troth@openavr.org>
2684 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2685 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2686 Don't set deprecated_call_dummy_words.
2687 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2688 Don't set remote_translate_xfer_address.
2689 (avr_io_reg_read_command): Remove commented out debug printf.
2692 2003-06-14 Theodore A. Roth <troth@openavr.org>
2694 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2695 causes gdb to seg fault.
2697 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2699 * sparc-nat.c (fetch_inferior_registers): Correct
2700 a reference to "registers".
2702 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2704 * Makefile.in (exc_request_U_h): Define
2705 (exc_request_S_h): Likewise.
2706 (msg_reply_S_h): Likewise.
2707 (msg_U_h): Likewise.
2708 (notify_S_h): Likewise.
2709 (process_reply_S_h): Likewise.
2710 (gnu-nat.o): Depend on gdb_obstack_h
2711 * gnu-nat.c: Include "gdb_obstack.h".
2713 2003-06-13 Andrew Cagney <cagney@redhat.com>
2715 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2716 * gdbarch.h, gdbarch.c: Re-generate.
2718 2003-06-13 Andrew Cagney <cagney@redhat.com>
2720 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2721 when deprecated REGISTER macros can be deleted.
2722 * gdbarch.h, gdbarch.c: Re-generate.
2724 2003-06-13 Jim Blandy <jimb@redhat.com>
2726 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2727 Linux entry point symbols for _dl_debug_state, too.
2729 2003-06-13 Andrew Cagney <cagney@redhat.com>
2731 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2732 available, do not use the FP register, and always save the TOS.
2733 * dummy-frame.c (dummy_frame_this_id): Do not assert
2734 SAVE_DUMMY_FRAME_TOS.
2735 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2736 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2737 (i386_push_dummy_call): Add 8 to the returned SP.
2738 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2739 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2740 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2741 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2742 (x86_64_push_dummy_call): Return "sp + 16".
2743 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2744 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2745 save_dummy_frame_tos.
2747 2003-06-13 Jim Blandy <jimb@redhat.com>
2749 * frv-tdep.c (frv_use_struct_convention): Delete static
2750 declaration for function deleted in my change of 2003-06-12.
2752 2003-06-13 Theodore A. Roth <troth@openavr.org>
2754 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2755 (avr_pointer_to_address): Shift code addrs left 1 bit.
2756 (avr_convert_from_func_ptr_addr): Delete function since operation is
2757 better handled by avr_address_to_pointer and avr_pointer_to_address.
2758 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2760 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2762 From Kelley Cook <kelleycook@wideopenwest.com>:
2763 * configure.host: Accept i[34567]86 variants.
2764 * configure.tgt: Likewise.
2765 * nlm/configure.in: Likewise.
2766 * nlm/configure: Regenerated.
2768 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2770 * arm-tdep.c (solib-svr4.h): Dont' include it.
2771 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2772 * arm-linux-tdep.c: ... here. Make static.
2773 (arm_linux_init_abi): Register it.
2774 (solib-svr4.h): Include it.
2775 * Makefile.in: Update dependencies.
2776 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2777 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2779 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2781 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2782 indicate registers used for return values.
2783 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2784 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2786 (h8300_init_extra_frame_info): Ditto.
2787 (h8300_frame_locals_address): Removed.
2788 (h8300_frame_args_address): Removed.
2789 (h8300_extract_return_value): Use new regcache structure. Only care
2791 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2792 (h8300_store_return_value): Use new regcache structure. Only care
2794 (h8300h_store_return_value): Same function for 32 bit CPUs.
2795 (h8300_store_struct_return): Removed.
2796 (h8300_extract_struct_value_address): Use new regcache structure.
2797 (h8300h_extract_struct_value_address): Removed.
2798 (h8300_push_dummy_code): New function.
2799 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2800 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2801 set_gdbarch_store_return_value architecture dependent.
2802 Call set_gdbarch_push_dummy_code and
2803 set_gdbarch_extract_struct_value_address.
2804 Remove calls to set_gdbarch_frame_args_address,
2805 set_gdbarch_frame_locals_address,
2806 set_gdbarch_deprecated_store_struct_return,
2807 set_gdbarch_deprecated_extract_return_value,
2808 set_gdbarch_deprecated_extract_struct_value_address,
2809 set_gdbarch_deprecated_call_dummy_words and
2810 set_gdbarch_deprecated_sizeof_call_dummy_words.
2812 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2814 * h8300-tdep.c (h8300_register_byte): Remove.
2815 (h8300h_register_byte): Remove.
2816 (h8300_register_virtual_type): Remove. Substitute by...
2817 (h8300_register_type): New function.
2818 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2819 (h8300h_extract_struct_value_address): Ditto.
2820 (h8300_gdbarch_init): Drop calls to
2821 set_gdbarch_deprecated_register_byte and
2822 set_gdbarch_deprecated_register_virtual_type.
2823 Add call to set_gdbarch_register_type.
2825 2003-06-13 Andrew Cagney <cagney@redhat.com>
2827 * gdbarch.sh: Update comments on registers.
2828 (deprecated_register_byte): Rename register_byte.
2829 (deprecated_register_raw_size): Rename register_raw_size.
2830 (deprecated_register_virtual_size): Rename register_virtual_size.
2831 (deprecated_register_virtual_type): Rename register_virtual_type.
2832 * gdbarch.h, gdbarch.c: Re-generate.
2833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2834 * vax-tdep.c (vax_gdbarch_init): Update.
2835 * v850-tdep.c (v850_gdbarch_init): Update.
2836 * sparc-tdep.c (sparc_gdbarch_init): Update.
2837 * sh-tdep.c (sh_gdbarch_init): Update.
2838 * s390-tdep.c (s390_gdbarch_init): Update.
2839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2840 * ns32k-tdep.c: Update.
2841 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2842 * mips-tdep.c (mips_gdbarch_init): Update.
2843 * mcore-tdep.c (mcore_gdbarch_init): Update.
2844 * m68k-tdep.c (m68k_gdbarch_init): Update.
2845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2846 * ia64-tdep.c (ia64_gdbarch_init): Update.
2847 * hppa-tdep.c (hppa_gdbarch_init): Update.
2848 * h8300-tdep.c (h8300_gdbarch_init): Update.
2849 * frv-tdep.c (frv_gdbarch_init): Update.
2850 * cris-tdep.c (cris_gdbarch_init): Update.
2851 * avr-tdep.c (avr_gdbarch_init): Update.
2852 * alpha-tdep.c (alpha_gdbarch_init): Update.
2853 * arm-tdep.c (arm_gdbarch_init): Update.
2855 2003-06-13 Andrew Cagney <cagney@redhat.com>
2857 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2858 mips_o32_use_struct_convention with always_use_struct_convention.
2860 2003-06-12 David Carlton <carlton@kealia.com>
2862 * cp-namespace.c (cp_set_block_scope): Comment out
2863 processing_has_namespace_info branch.
2865 2003-06-12 Jim Blandy <jimb@redhat.com>
2867 Recognize and skip 64-bit PowerPC Linux linkage functions.
2868 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2869 insn_pattern, insns_match_pattern, d_field, ds_field): New
2870 functions, macros, and types for working with PPC instructions.
2871 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2872 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2873 ppc64_skip_trampoline_code): New functions, variables, and macros
2874 for recognizing and skipping linkage functions.
2875 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2876 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2878 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2879 register offsets for both the 32- and 64-bit interfaces.
2881 Actually finish the job started by my change of 2003-05-29.
2882 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2883 other #definition of this.
2884 (ppc_linux_skip_trampoline_code): Remove declaration.
2885 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2887 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2890 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2891 'long' on ppc64-*-linux*.
2893 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2894 isn't #defined, assume the register doesn't exist: act as if
2895 tdep->ppc_mq_regnum were -1.
2897 * configure.host, configure.tgt: Add entries for
2898 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2900 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2903 * arch-utils.c (always_use_struct_convention): New function.
2904 * arch-utils.h (always_use_struct_convention): New prototype.
2905 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2906 (alpha_gdbarch_init): Register always_use_struct_convention,
2907 instead of alpha_use_struct_convention.
2908 * cris-tdep.c (cris_use_struct_convention): Delete.
2909 (cris_gdbarch_init): Register always_use_struct_convention,
2910 instead of cris_use_struct_convention.
2911 * frv-tdep.c (frv_use_struct_convention): Delete.
2912 (frv_gdbarch_init): Register always_use_struct_convention,
2913 instead of frv_use_struct_convention.
2914 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2915 (h8300_gdbarch_init): Register always_use_struct_convention,
2916 instead of h8300_use_struct_convention.
2917 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2918 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2919 instead of mips_o32_use_struct_convention.
2921 2003-06-12 Andrew Cagney <cagney@redhat.com>
2923 * wince.c: Include "mips-tdep.h".
2924 * mips-tdep.h (mips_next_pc): Declare.
2925 * mcore-tdep.c: Make more local functions static.
2926 * Makefile.in (wince.o): Update dependencies.
2928 2003-06-12 David Carlton <carlton@kealia.com>
2930 * symtab.c (lookup_symbol_aux_minsyms): Replace
2931 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2932 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2933 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2934 SYMBOL_NATURAL_NAME.
2936 2003-06-12 Andreas Schwab <schwab@suse.de>
2938 * Makefile.in (tuiDisassem.o): Update dependencies.
2940 2003-06-12 David Carlton <carlton@bactrian.org>
2942 * symtab.h: Delete declaration of make_symbol_overload_list.
2943 Add declaration of lookup_partial_symbol.
2944 * symtab.c (remove_params): Move to cp-support.c.
2945 (overload_list_add_symbol, make_symbol_overload_list)
2946 (sym_return_val_size, sym_return_val_index): Ditto.
2947 (lookup_partial_symbol): Make extern.
2948 * cp-support.h: Add declaration of make_symbol_overload_list.
2949 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2950 symtab.h, and block.h.
2951 (remove_params): Move here from symtab.c.
2952 (overload_list_add_symbol, make_symbol_overload_list)
2953 (sym_return_val_size, sym_return_val_index): Ditto.
2954 * valops.c: Include cp-support.h.
2955 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2956 frame_h, and block_h.
2957 (valops.o): Depend on cp_support_h.
2959 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2961 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2962 substitute by NUM_REGS throughout.
2963 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2964 (h8300s_register_name): New function for H8S registers.
2965 (h8300sx_register_name): Ditto for H8SX registers.
2966 (h8300_print_register): Revise register printing, avoid depending
2968 (h8300_register_byte): Only care for H8/300 registers.
2969 (h8300h_register_byte): New function for any other architecture.
2970 (h8300_register_raw_size): Remove.
2971 (h8300_register_virtual_type): Revise to return actually useful
2973 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2974 (h8300h_extract_struct_value_address): New function for any other
2976 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2977 set_gdbarch_register_name, set_gdbarch_register_byte,
2978 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2979 Remove calls to set_gdbarch_deprecated_register_size,
2980 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2981 set_gdbarch_deprecated_max_register_raw_size,
2982 set_gdbarch_register_virtual_size and
2983 set_gdbarch_deprecated_max_register_virtual_size entirely.
2984 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2985 set_gdbarch_long_double_bit.
2987 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2989 * doublest.c (convert_doublest_to_floatformat): When dealing
2990 with the implied integer bit, only alter mant_bits if we are
2991 processing a full 32 bits of mantissa.
2993 2003-06-11 David Carlton <carlton@bactrian.org>
2995 * dictionary.h: New.
2996 * dictionary.c: New.
2997 * block.h: Add opaque declaration for struct dictionary.
2998 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3000 (BLOCK_DICT): New macro.
3001 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3002 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3004 (ALL_BLOCK_SYMBOLS): Update definition.
3005 * Makefile.in (SFILES): Add dictionary.c.
3006 (dictionary_h): New.
3007 (COMMON_OBS): Add dictionary.o.
3008 (dictionary.o): New.
3009 (ada-lang.o): Depend on dictionary_h.
3010 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3011 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3012 (mi-cmd-stack.o): Ditto.
3013 (gdbtk-cmds.o): Update dependencies.
3014 (gdbtk-stack.o): Ditto.
3015 * ada-lang.c: Include dictionary.h.
3016 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3017 (fill_in_ada_prototype, debug_print_block): Ditto.
3018 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3019 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3021 * mdebugread.c: Include dictionary.h.
3022 (struct parse_stack): Delete 'maxsyms' member.
3023 (parse_symbol): Update calls to new_block. Delete calls to
3024 shrink_block. Use dictionary methods.
3025 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3026 Update calls to new_symtab. Don't maintain maxsyms data.
3027 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3028 (add_symbol): Just call dict_add_symbol.
3029 (new_symtab): Delete 'maxsyms' argument.
3030 (new_symtab): Update calls to new_block.
3031 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3032 (shrink_block): Delete function.
3033 (fixup_sigtramp): Update call to new_block. Add symbol via
3035 * jv-lang.c: Include dictionary.h.
3036 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3037 appropriately. Set class_symtab->free_func. Make sure the
3038 blockvector is big enough to hold two blocks.
3039 (add_class_symtab_symbol): Use dictionary methods.
3040 (free_class_block): New function.
3041 (type_from_class): Replace explicit iteration by
3043 * symtab.h (struct symtab): Replace 'free_ptr' method by
3045 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3047 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3049 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3050 Include dictionary.h.
3051 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3052 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3054 * objfiles.c: Include dictionary.h.
3055 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3056 * buildsym.c: Include dictionary.h.
3057 (finish_block): Use dictionary methods.
3058 (end_symtab): Set free_func to NULL, not free_ptr.
3059 * tracepoint.c: Include dictionary.h.
3060 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3061 (scope_info): Ditto.
3062 * stack.c: Include dictionary.h.
3063 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3064 (print_block_frame_labels, print_frame_arg_vars)
3065 (print_frame_args): Ditto.
3066 * symmisc.c (free_symtab_block): Use dictionary methods.
3067 (dump_symtab): Ditto.
3068 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3069 Include dictionary.h.
3070 * symfile.h: Delete declarations of sort_block_syms,
3072 * symfile.c (sort_block_syms): Delete.
3073 (sort_symtab_syms): Delete.
3074 * symtab.c: Include dictionary.h.
3075 (lookup_block_symbol): Use dictionary iterators.
3076 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3077 (search_symbols, make_symbol_completion_list): Ditto.
3078 (make_symbol_overload_list): Ditto.
3079 * valops.c (value_of_local): Use dict_empty.
3080 Include dictionary.h.
3082 2003-06-11 J. Brobecker <brobecker@gnat.com>
3084 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3086 2003-06-11 David Carlton <carlton@bactrian.org>
3088 * block.h (BLOCK_SHOULD_SORT): Delete.
3089 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3091 * ada-lang.c (ada_add_block_symbols): Ditto.
3092 * symfile.c (sort_block_syms): Delete.
3093 (sort_symtab_syms): Ditto.
3094 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3096 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3097 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3098 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3099 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3100 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3101 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3102 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3104 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3106 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3109 2003-06-11 Andrew Cagney <cagney@redhat.com>
3111 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3112 REGISTER_CONVERTIBLE.
3113 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3114 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3115 * gdbarch.h, gdbarch.c: Re-generate.
3116 * arch-utils.h (deprecated_register_convertible_not): Rename
3117 generic_register_convertible_not.
3118 * arch-utils.c (deprecated_register_convertible_not): Rename
3119 generic_register_convertible.
3120 (legacy_convert_register_p, legacy_register_to_value): Update.
3121 * sh-tdep.c (sh64_push_arguments): Update.
3122 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3123 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3124 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3125 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3126 * arch-utils.c (legacy_value_to_register): Update.
3127 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3128 (rs6000_register_convert_to_raw): Make parameter "from" const.
3129 * mips-tdep.c (mips_gdbarch_init): Update.
3130 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3131 * infcmd.c (default_print_registers_info): Update.
3132 * ia64-tdep.c (ia64_gdbarch_init): Update.
3133 (ia64_register_convert_to_raw): Make parameter "from" const.
3134 * i386-tdep.c (i386_gdbarch_init): Update.
3135 (i386_register_convert_to_raw): Update.
3137 2003-06-11 Andrew Cagney <cagney@redhat.com>
3139 * remote-fileio.c: Include "remote-fileio.h".
3140 * Makefile.in (remote-fileio.o): Update dependencies.
3141 (remote_fileio_h): Fix typo.
3143 2003-06-11 Andrew Cagney <cagney@redhat.com>
3145 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3146 (xstormy16_save_dummy_frame_tos): Make static.
3147 (_initialize_xstormy16_tdep): Add declaration.
3148 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3149 * v850-tdep.c: Make local functions static.
3150 (_initialize_v850_tdep): Add declaration.
3151 * sparc-tdep.c: Make local functions static.
3152 (_initialize_sparc_tdep): Add declaration.
3153 * sh-tdep.c: Make local functions static.
3154 (_initialize_sh_tdep): Add declaration.
3155 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3156 * s390-tdep.c: Make local functions static.
3157 (_initialize_s390_tdep): Add declaration.
3158 * dbxread.c (find_stab_function_addr): Make static.
3159 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3160 * ocd.c (_initialize_remote_ocd): Add declaration.
3161 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3162 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3163 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3164 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3165 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3166 * remote-array.c (_initialize_array): Add declaration.
3167 (_initialize_remote_monitors): Add declaration.
3168 * remote-mips.c: Make local functions static.
3169 (_initialize_remote_mips): Add declaration.
3170 * mcore-tdep.c: Make all local functions static.
3171 (_initialize_mcore_tdep): Add declaration.
3172 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3173 * abug-rom.c (_initialize_abug_rom): Add declaration.
3174 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3175 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3176 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3177 * remote-est.c (_initialize_est): Add declaration.
3178 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3179 (m68hc11_call_dummy_address): Make static.
3180 * ia64-tdep.c: Make local functions static.
3181 (_initialize_ia64_tdep): Add declaration.
3182 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3183 * monitor.c (monitor_wait_filter): Make static.
3184 (_initialize_remote_monitors): Add declaration.
3185 * remote-hms.c (_initialize_remote_hms): Add declaration.
3186 * remote-e7000.c (fetch_regs_from_dump): Make static.
3187 (expect_n): Make static.
3188 (_initialize_remote_e7000): Add declaration.
3189 * ser-e7kpc.c: Always include "defs.h".
3190 (_initialize_ser_e7000pc): Add declaration.
3191 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3192 * cris-tdep.c: Make all but one function static.
3193 (_initialize_cris_tdep): Add declaration.
3194 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3195 * solib.c (update_solib_list): Make static.
3196 (_initialize_solib): Add declaration.
3197 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3198 (_initialize_avr_tdep): Add declaration.
3199 * remote-rdi.c (voiddummy): Make static.
3200 (_initialize_remote_rdi): Add declaration.
3201 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3202 * remote-rdp.c (send_rdp): Make static.
3203 (_initialize_remote_rdp): Add declaration.
3204 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3206 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3208 * remote-fileio.c: Make ari happy.
3210 2003-06-10 J. Brobecker <brobecker@gnat.com>
3212 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3213 fetching the trailing bytes of the buffer we are about to write.
3215 2003-06-10 Andrew Cagney <cagney@redhat.com>
3217 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3218 * Makefile.in (remote-fileio.o): Update dependencies.
3219 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3220 include <setjmp.h>, or <sys/types.h> conditional on USG.
3221 (remote_fio_jmp_buf): Delete global variable.
3223 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3224 Martin M. Hunt <hunt@redhat.com>
3226 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3227 (SFILES): Add remote-fileio.c.
3228 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3229 dependencies for building remote.o.
3230 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3231 * remote-fileio.h: New header file defining remote File-I/O interface.
3232 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3233 static storage class.
3234 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3236 (_initialize_remote): Call initialize_remote_fileio().
3237 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3238 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3239 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3240 (captured_main): Initialize new ui_files.
3241 * ui-file.c: Add read and fgets input functions.
3242 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3243 (null_file_read): New function.
3244 (ui_file_read): New function.
3245 (set_ui_file_read): New function.
3246 (stdio_file_read): New function.
3247 * ui-file.h: New type ui_file_read_ftype.
3248 (set_ui_file_read): Declare.
3249 (ui_file_read): Declare.
3251 2003-06-09 Andrew Cagney <cagney@redhat.com>
3253 * frame.h (deprecated_unwind_get_saved_register): Rename
3254 generic_unwind_get_saved_register, update comments.
3255 * mips-tdep.c (mips_get_saved_register): Update.
3256 * frame.c (deprecated_unwind_get_saved_register): Update.
3258 2003-06-09 Andrew Cagney <cagney@redhat.com>
3260 * vax-tdep.c (vax_frame_locals_address): Delete function.
3261 (vax_gdbarch_init): Do not set frame_locals_address.
3262 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3263 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3264 * s390-tdep.c (s390_frame_args_address): Delete function.
3265 (s390_gdbarch_init): Do not set frame_args_address or
3266 frame_locals_address.
3267 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3268 (ns32k_gdbarch_init): Do not set frame_locals_address.
3269 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3270 (hppa_frame_locals_address): Delete function.
3271 (hppa_gdbarch_init): Do not set frame_args_address, or
3272 frame_locals_address.
3273 * arm-tdep.c (arm_frame_args_address): Delete.
3274 (arm_frame_locals_address): Delete.
3275 (arm_gdbarch_init): Do not set frame_args_address, or
3276 frame_locals_address.
3278 2003-06-09 Andrew Cagney <cagney@redhat.com>
3280 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3281 * gdbarch.h, gdbarch.c: Re-generate.
3282 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3283 * arch-utils.c (frame_num_args_unknown): Delete function.
3284 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3285 (frame_info): Use FRAME_NUM_ARGS_P.
3286 * arm-tdep.c (arm_frame_num_args): Delete function.
3287 (arm_gdbarch_init): Do not set frame_num_args.
3288 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3289 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3290 (hppa_gdbarch_init): Do not set frame_num_args.
3291 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3292 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3293 frame_num_args to default frame_num_args_unknown.
3294 * v850-tdep.c (v850_gdbarch_init): Ditto.
3295 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3296 * sh-tdep.c (sh_gdbarch_init): Ditto.
3297 * s390-tdep.c (s390_gdbarch_init): Ditto.
3298 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3299 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3300 * mips-tdep.c (mips_gdbarch_init): Ditto.
3301 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3302 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3303 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3304 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3305 * i386-tdep.c (i386_gdbarch_init): Ditto.
3306 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3307 * frv-tdep.c (frv_gdbarch_init): Ditto.
3308 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3309 * cris-tdep.c (cris_gdbarch_init): Ditto.
3310 * avr-tdep.c (avr_gdbarch_init): Ditto.
3311 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3313 2003-06-09 Andrew Cagney <cagney@redhat.com>
3315 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3316 (print_frame_args): Moved to "stack.c".
3317 * stack.c: Include "gdb_assert.h".
3318 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3319 (print_frame_args): Moved from "printcmd.c".
3320 * frame.h (print_frame_args): Delete declaration.
3321 * Makefile.in (stack.o): Update dependencies.
3323 2003-06-08 Andrew Cagney <cagney@redhat.com>
3325 * frame.c (get_prev_frame): Remove reference to
3326 frame_args_address_correct in comments.
3327 * frame-base.c (default_frame_args_address): Delete code
3328 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3329 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3330 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3331 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3332 (vax_frame_args_address_correct): Delete declaration.
3334 2003-06-08 Andrew Cagney <cagney@redhat.com>
3336 * gdbarch.sh (UNWIND_SP): Add.
3337 * gdbarch.h, gdbarch.c: Re-generate.
3338 * frame.c (frame_sp_unwind): New function.
3339 (get_frame_sp): New function.
3340 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3341 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3342 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3344 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3345 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3347 2003-06-08 Andrew Cagney <cagney@redhat.com>
3349 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3352 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3353 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3354 * config/m68k/tm-sun3.h: Update.
3355 * config/m68k/tm-m68klynx.h: Update.
3356 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3358 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3359 trad_frame". Update comments.
3360 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3361 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3362 (trad_frame_register_value, trad_frame_prev_register): Update.
3364 2003-06-08 Andrew Cagney <cagney@redhat.com>
3366 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3367 from GCC's acinclude.m4.
3368 * configure.in: Check for getopt's delcaration.
3369 * aclocal.m4, config.in, configure: Re-generate.
3370 * main.c (error_init): Delete declaration.
3371 * defs.h (error_init): Declare.
3372 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3373 (rs6000_convert_from_func_ptr_addr): Make static.
3374 (_initialize_rs6000_tdep): Add declaration.
3375 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3376 (show_commands, set_verbose, show_history): Delete declaration.
3377 * top.h (set_verbose): Add declaration.
3378 (show_history, set_history, show_commands): Add declaration.
3379 (do_restore_instream_cleanup): Add declaration.
3380 * objc-lang.c (specialcmp): Make static.
3381 (print_object_command): Make static.
3382 (find_objc_msgsend): Make static.
3383 (find_objc_msgcall_submethod_helper): Make static.
3384 (find_objc_msgcall_submethod): Make static.
3385 (_initialize_objc_language): Add declaration.
3386 (find_implementation_from_class): Make static.
3387 (find_implementation): Make static.
3388 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3389 * objc-lang.h (lookup_struct_typedef): Add declaration.
3390 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3391 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3392 (do_restore_user_call_depth): Make static.
3393 (do_restore_instream_cleanup): Delete declaration.
3394 (dont_repeat): Delete declaration.
3395 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3396 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3397 * reggroups.c (_initialize_reggroup): Add declaration.
3398 * cp-support.c (_initialize_cp_support): Add declaration.
3399 * cp-abi.c (_initialize_cp_abi): Add declaration.
3400 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3401 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3402 (_initialize_gnu_v3_abi): Add declaration.
3403 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3404 (_initialize_gnu_v2_abi): Add declaration.
3405 * frame-base.c (_initialize_frame_base): Add declaration.
3406 * doublest.c (floatformat_from_length): Make static.
3407 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3408 * frame.c (create_sentinel_frame): Make static.
3409 (_initialize_frame): Add declaration.
3410 * top.c (do_catch_errors): Make static.
3411 (gdb_rl_operate_and_get_next_completion): Make static.
3412 * typeprint.c: Include "typeprint.h".
3413 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3414 (sentinel_frame_this_id): Make static.
3415 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3416 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3417 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3418 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3419 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3420 * maint.c (maintenance_print_architecture): Make static.
3421 * signals/signals.c (_initialize_signals): Add declaration.
3422 * std-regs.c (_initialize_frame_reg): Add declaration.
3423 * jv-exp.y (push_variable): ISO C definition.
3424 (push_qualified_expression_name): Ditto.
3425 * memattr.c (_initialize_mem): Add declaration.
3426 * remote.c (remote_check_watch_resources): Make static.
3427 (remote_stopped_by_watchpoint): Make static.
3428 (remote_stopped_data_address): Make static.
3429 * d10v-tdep.c (nr_dmap_regs): Make static.
3430 (a0_regnum): Make static.
3431 (d10v_frame_unwind_cache): Make static.
3432 (d10v_frame_p): Make static.
3433 * osabi.c (show_osabi): Make static.
3434 (_initialize_gdb_osabi): Add extern declaration.
3435 * gdbtypes.c (make_qualified_type): Make static.
3436 (safe_parse_type): Make static.
3437 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3438 * macrotab.c (macro_bcache_free): Make static.
3439 * interps.c (interp_set_quiet): Make static.
3440 (interpreter_exec_cmd): Make static.
3441 * stack.h (select_frame_command): New file.
3442 * stack.c: Include "stack.h".
3443 (select_frame_command_wrapper): Delete function.
3444 (select_frame_command): Make global.
3445 * infcall.c: Include "infcall.h".
3446 * linespec.c: Include "linespec.h".
3447 * symfile.c (sections_overlap): Make static.
3448 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3449 * charset.c (_initialize_charset): Add missing prototype.
3450 * regcache.c (init_legacy_regcache_descr): Make static.
3451 (do_regcache_xfree): Make static.
3452 (regcache_xfer_part): Make static.
3453 (_initialize_regcache): Add missing prototype.
3454 * breakpoint.c (parse_breakpoint_sals): Make static.
3455 (breakpoint_sals_to_pc): Make static.
3456 * interps.h (clear_interpreter_hooks): ISO C declaration.
3457 * Makefile.in (stack_h): Define.
3458 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3459 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3461 2003-06-08 Andrew Cagney <cagney@redhat.com>
3463 * Makefile.in (d10v-tdep.o): Update dependencies.
3464 (SFILES): Add trad-frame.c.
3465 (trad_frame_h): Define.
3466 (COMMON_OBS): Add trad-frame.o.
3467 (trad-frame.o): Specify dependencies.
3468 * d10v-tdep.c: Include "trad-frame.h".
3469 (saved_regs_unwinder): Delete function.
3470 (d10v_frame_prev_register): Use trad_frame_prev_register.
3471 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3472 trad_frame", delete "regs" and "prev_sp".
3473 (prologue_find_regs): Use trad-frame.
3474 * trad-frame.h, trad-frame.c: New files.
3476 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3478 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3480 2003-06-07 Adam Fedor <fedor@gnu.org>
3482 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3483 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3484 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3485 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3486 resolve_msgsend_super, resolve_msgsend_super_stret):
3489 2003-06-07 Andrew Cagney <cagney@redhat.com>
3491 * symfile.h: Re-indent, clean up comments.
3493 2003-06-07 Andrew Cagney <cagney@redhat.com>
3495 * inferior.h (deprecated_write_sp): Replace
3496 generic_target_write_sp.
3497 * regcache.c (deprecated_write_sp): Replace
3498 generic_target_write_sp.
3499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3500 * vax-tdep.c (vax_gdbarch_init): Update.
3501 * v850-tdep.c (v850_gdbarch_init): Update.
3502 * sparc-tdep.c (sparc_gdbarch_init): Update.
3503 * sh-tdep.c (sh_gdbarch_init): Update.
3504 * s390-tdep.c (s390_gdbarch_init): Update.
3505 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3506 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3507 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3508 * mcore-tdep.c (mcore_gdbarch_init): Update.
3509 * m68k-tdep.c (m68k_gdbarch_init): Update.
3510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3511 * ia64-tdep.c (ia64_gdbarch_init): Update.
3512 * h8300-tdep.c (h8300_gdbarch_init): Update.
3513 * frv-tdep.c (frv_gdbarch_init): Update.
3514 * cris-tdep.c (cris_gdbarch_init): Update.
3515 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3517 2003-06-07 Andrew Cagney <cagney@redhat.com>
3519 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3520 Assert that PC_REGNUM is valid.
3521 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3523 2003-06-07 Andrew Cagney <cagney@redhat.com>
3525 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3526 * gdbarch.h, gdbarch.c: Regenerate.
3527 * mn10300-tdep.c: Include "gdb_assert.h".
3528 (mn10300_read_fp): New function.
3529 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3530 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3531 * ia64-tdep.c: Include "gdb_assert.h".
3532 (ia64_read_fp): New function.
3533 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3534 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3535 * regcache.c (generic_target_read_sp): Delete function.
3536 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3537 * inferior.h (generic_target_read_sp): Delete declaration.
3538 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3539 generic_target_read_sp.
3540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3541 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3542 * sh-tdep.c (sh_gdbarch_init): Ditto.
3543 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3544 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3546 2003-06-07 Andrew Cagney <cagney@redhat.com>
3548 * gdbarch.sh: Comment each field of startup_gdbarch.
3549 * gdbarch.h, gdbarch.c: Re-generate.
3551 2003-06-07 Andrew Cagney <cagney@redhat.com>
3553 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3554 * gdbarch.h, gdbarch.c: Re-generate.
3555 * regcache.c: Update comments on read_pc et.al.
3556 (generic_target_read_pc): Delete function.
3557 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3558 * inferior.h (generic_target_read_pc): Delete declaration.
3559 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3560 generic_target_read_pc.
3561 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3562 * sh-tdep.c (sh_gdbarch_init): Ditto.
3563 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3566 2003-06-07 Andrew Cagney <cagney@redhat.com>
3568 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3569 "index" with "special_local_sect". Use strcmp instead of STREQ.
3570 Append period to coments.
3572 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3574 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3575 (elfstab_offset_sections): Likewise.
3576 * gdb-stabs.h (stab_section_info): Likewise.
3577 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3578 * objfiles.c (objfile_relocate): Likewise.
3579 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3580 * remote.c (get_offsets): Likewise.
3581 (remote_cisco_objfile_relocate): Likewise.
3582 * somread.c (som_symfile_offsets): Likewise.
3583 * symfile.c (alloc_section_addr_info): New function.
3584 (build_section_addr_info_from_section_tab): Use it.
3585 (free_section_addr_info): Adjust.
3586 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3587 (syms_from_objfile): Allocate local_addr dynamically.
3588 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3590 (add_symbol_file_command): Allocate sect_opts dynamically.
3591 (reread_symbols): Avoid use of SECT_OFF_MAX.
3592 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3593 (alloc_section_addr_info): Declare it.
3594 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3595 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3597 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3599 2003-06-06 Andrew Cagney <cagney@redhat.com>
3601 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3602 (d10v_frame_unwind_cache): Do not set "return_pc".
3604 2003-06-06 Michael Snyder <msnyder@redhat.com>
3606 * h8300-tdep.c: Make tidy (long lines).
3608 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3610 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3611 to regcache_collect().
3613 2003-06-05 J. Brobecker <brobecker@gnat.com>
3615 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3616 pc_in_sigtramp multiarch method.
3617 (hppa_hpux_som_init_abi): Use it.
3618 (hppa_hpux_elf_init_abi): Likewise.
3619 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3620 macro has been multiarched.
3621 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3622 macro here, as hppa64 isn't multiarched yet.
3624 2003-06-05 Andrew Cagney <cagney@redhat.com>
3626 * Makefile.in (value_h): Add $(frame_h).
3627 * value.h: Include "frame.h".
3628 (struct value): Replace "frame_addr" with "frame_id".
3629 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3630 * values.c (allocate_value): Use VALUE_FRAME_ID.
3631 (value_copy): Use VALUE_FRAME_ID.
3632 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3633 * valops.c (value_assign): Update. Use frame_find_by_id.
3635 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3637 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3640 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3642 * thread-db.c (check_event): For create/death event breakpoints,
3643 loop through all messages to ensure that we read the message
3644 corresponding to the breakpoint we are at.
3646 2003-06-04 Michael Snyder <msnyder@redhat.com>
3648 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3650 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3652 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3653 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3654 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3655 when handling .eh_frame sections.
3657 2003-06-04 J. Brobecker <brobecker@gnat.com>
3659 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3660 prepare_to_proceed procedure instead of the hppa-specific one.
3661 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3663 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3665 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3666 * config.in: Regenerated.
3667 * configure.in: Add test for syscall function and check for
3668 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3669 * configure: Regenerated.
3670 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3672 (kill_lwp): New function that uses tkill syscall or
3673 uses kill, depending on whether threading model is nptl or not.
3674 All callers of kill() changed to use kill_lwp().
3675 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3676 see if all threads have already exited in the nptl model.
3677 (stop_and_resume_callback): New callback function used by the
3678 lin_lwp_wait thread exit handling code.
3679 (stop_wait_callback): Check for threads already having exited and
3680 delete such threads fromt the lwp list when discovered.
3681 (stop_callback): Don't assert retcode of kill call.
3683 Roland McGrath <roland@redhat.com>
3684 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3687 2003-06-03 Richard Henderson <rth@redhat.com>
3689 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3690 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3691 (alpha_sigtramp_frame_prev_register): Likewise.
3692 (alpha_heuristic_frame_prev_register): Likewise.
3693 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3695 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3696 alpha-specific register id names.
3697 (alpha_mdebug_frame_unwind_cache): Likewise.
3698 (alpha_mdebug_frame_prev_register): Likewise.
3700 2003-06-03 Richard Henderson <rth@redhat.com>
3702 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3703 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3704 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3705 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3707 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3708 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3709 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3711 * alpha-linux-tdep.c: Remove unnecessary includes.
3712 * Makefile.in (alpha-linux-tdep.o): Update.
3714 2003-06-03 Richard Henderson <rth@redhat.com>
3716 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3717 (alphabsd_fill_fpreg): Likewise.
3719 2003-06-03 J. Brobecker <brobecker@gnat.com>
3721 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3722 references to struct frame_info fields by calls to the equivalent
3723 accessors. Necessary now that frame_info is opaque.
3725 2003-06-03 J. Brobecker <brobecker@gnat.com>
3727 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3728 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3729 structure, field no longer exists.
3731 2003-06-03 J. Brobecker <brobecker@gnat.com>
3733 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3734 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3736 2003-06-03 J. Brobecker <brobecker@gnat.com>
3738 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3739 references to struct frame_info fields by calls to the equivalent
3740 accessors. Necessary now that frame_info is opaque.
3742 2003-06-03 J. Brobecker <brobecker@gnat.com>
3744 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3745 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3746 structure, field no longer exists.
3748 2003-06-03 Theodore A. Roth <troth@openavr.org>
3750 * remote.c (init_remote_state): Compute sizeof_g_packet by
3751 accumulation of the size of all registers instead of blindly using
3752 DEPRECATED_REGISTER_BYTES.
3754 2003-06-03 Michael Snyder <msnyder@redhat.com>
3756 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3757 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3760 2003-06-03 J. Brobecker <brobecker@gnat.com>
3762 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3763 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3765 2003-06-03 Andrew Cagney <cagney@redhat.com>
3767 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3768 (sparc_convert_to_raw): Delete function.
3769 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3770 register_convert_to_virtual.
3772 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3774 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3775 layer if not dealing with a statically-linked threaded program.
3777 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3779 * solib.c (solib_open): Update comment to reflect actual search order.
3781 2003-06-03 Andrew Cagney <cagney@redhat.com>
3783 * frame.c (get_frame_memory_signed): New function.
3784 (get_frame_memory, get_frame_memory_unsigned): New function.
3785 (get_frame_arch): New function.
3786 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3787 (get_frame_memory, get_frame_unsigned_memory): Declare.
3788 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3789 get_frame_memory_unsigned and get_frame_arch.
3790 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3792 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3794 * MAINTAINERS (write after approval): Add myself.
3796 2003-06-03 Jim Blandy <jimb@redhat.com>
3798 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3799 elements of gregset_t are 64 bits each, but access registers
3800 are still 32 bits, so they're packed two per gregset_t
3801 element. Unpack/pack them properly.
3803 2003-06-02 David Carlton <carlton@bactrian.org>
3805 * linespec.c (find_methods): Break out code into
3806 add_matching_methods and add_constructors.
3807 (add_matching_methods): New.
3808 (add_constructors): Ditto.
3810 2003-06-02 Andrew Cagney <cagney@redhat.com>
3812 * sparc-tdep.c (sparc_print_registers): Delete call to
3813 REGISTER_CONVERTIBLE.
3814 (sparc_gdbarch_init): Do not set register_convertible.
3815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3816 * frv-tdep.c (frv_gdbarch_init): Ditto.
3817 * cris-tdep.c (cris_gdbarch_init): Ditto.
3819 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3821 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3822 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3823 (syms_from_objfile): Ditto.
3825 2003-06-03 Andreas Schwab <schwab@suse.de>
3827 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3828 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3830 2003-06-02 Richard Henderson <rth@redhat.com>
3832 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3833 a member of all_reggroup.
3835 2003-06-02 Richard Henderson <rth@redhat.com>
3837 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3838 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3839 (alpha_lds, alpha_sts): New.
3840 (alpha_convert_register_p): Change from _register_convertible.
3841 (alpha_register_to_value): Change from _convert_to_virtual;
3842 restructure and fail for type sizes other than 4 or 8.
3843 (alpha_value_to_register): Similarly.
3844 (alpha_extract_return_value): Use alpha_sts.
3845 (alpha_store_return_value): Use alpha_lds.
3846 (alpha_gdbarch_init): Update hooks.
3848 2003-06-02 Richard Henderson <rth@redhat.com>
3850 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3852 (alpha_sigtramp_register_address): Likewise.
3854 2003-06-02 Richard Henderson <rth@redhat.com>
3856 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3857 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3858 * alpha-tdep.h: Declare them.
3860 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3861 Remove zerobuf. Don't error on UNIQUE.
3862 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3863 (ALPHA_REGSET_UNIQUE): Provide default.
3864 (supply_gregset): Use alpha_supply_int_regs.
3865 (fill_gregset): Use alpha_fill_int_regs.
3866 (supply_fpregset): Use alpha_supply_fp_regs.
3867 (fill_fpregset): Use alpha_fill_fp_regs.
3868 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3869 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3870 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3871 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3872 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3873 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3875 2003-06-02 Richard Henderson <rth@redhat.com>
3877 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3879 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3880 (alpha_store_return_value): Likewise.
3882 2003-06-02 David Carlton <carlton@math.stanford.edu>
3884 * block.c (contained_in): Add 'const' to arguments.
3885 (block_function): Ditto.
3886 * block.h: Update declarations for block_function and
3889 2003-06-02 David Carlton <carlton@math.stanford.edu>
3891 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3892 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3893 * p-valprint.c (pascal_val_print): Ditto.
3894 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3896 2003-06-02 Richard Henderson <rth@redhat.com>
3898 * alpha-tdep.c (alpha_push_dummy_call): Use
3899 builtin_type_ieee_double_little instead of builtin_type_double.
3901 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3902 sign-extension of 32-bit values.
3903 (alpha_store_return_value): Similarly.
3905 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3906 (alpha_extract_return_value): Likewise.
3907 (alpha_store_return_value): Likewise.
3909 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3910 (alpha_store_return_value): Error on IEEE Quad floats.
3912 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3913 (alpha_extract_struct_value_address): Likewise.
3914 (alpha_store_return_value): Likewise.
3915 (alpha_store_struct_return): Remove.
3916 (alpha_gdbarch_init): Update hook registration to match.
3918 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3919 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3920 macros where appropriate.
3921 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3922 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3924 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3925 for SP, GP; void_func_ptr for PC; non-language-specific types
3927 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3929 2003-06-02 Richard Henderson <rth@redhat.com>
3931 * top.h (lim_at_start): Declare.
3932 * main.c (captured_main): Set it.
3933 * top.c (lim_at_start): Define.
3934 (command_loop): Use it instead of &environ.
3935 * event-top.c (command_handler): Likewise.
3937 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3939 * mipsnbsd-tdep.c: Update copyright years.
3940 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3942 2003-06-01 Richard Henderson <rth@redhat.com>
3944 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3945 (alpha-linux-tdep.o): Update dependencies.
3946 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3947 * alpha-mdebug-tdep.c: Remove unneeded includes.
3949 2003-06-01 Richard Henderson <rth@redhat.com>
3951 * alpha-tdep.c (alpha_register_reggroup_p): New.
3952 (alpha_gdbarch_init): Register it.
3954 2003-06-02 Andrew Cagney <cagney@redhat.com>
3956 * dwarfread.c: Eliminate "register"
3957 (decode_die_type): Eliminate assignment within "if".
3958 (struct_type, decode_array_element_type): Ditto.
3959 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3960 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3961 (decode_modified_type, completedieinfo): Ditto.
3962 * block.c: Eliminate "register".
3963 (blockvector_for_pc_sect): Eliminate assignment within "if".
3964 * cp-support.h (struct symbol): Opaque declaration.
3965 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3967 2003-06-01 Richard Henderson <rth@redhat.com>
3969 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3970 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3972 2003-06-01 Adam Fedor <fedor@gnu.org>
3974 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3975 * gdbarch.[ch]: Regenerate.
3976 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3977 (hppa_gdbarch_init): Set it in the gdbarch vector.
3978 * i386-tdep.c (i386_fetch_pointer_argument): New
3979 (i386_gdbarch_init): Set it into gdbarch.
3980 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3981 (rs6000_gdbarch_init): Set it in gdbarch.
3982 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3983 (sparc_gdbarch_init): Set it in gdbarch.
3985 2003-06-01 Andrew Cagney <cagney@redhat.com>
3987 * defs.h (extract_address): Delete declaration.
3988 * findvar.c (extract_address): Delete function.
3989 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3990 extract_address with the inline equivalent,
3991 extract_unsigned_integer.
3992 (xstormy16_extract_struct_value_address): Ditto.
3993 (xstormy16_pointer_to_address): Ditto.
3994 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3995 * v850-tdep.c (v850_push_arguments): Ditto.
3996 (v850_extract_return_value): Ditto.
3997 (v850_extract_struct_value_address): Ditto.
3998 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3999 (sparcnbsd_get_longjmp_target_64): Ditto.
4000 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4001 (get_longjmp_target): Ditto.
4002 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4003 (sh64_extract_struct_value_address): Ditto.
4004 (sh_push_arguments): Ditto.
4005 (sh64_push_arguments): Ditto.
4006 * remote-vxsparc.c (vx_read_register): Ditto.
4007 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4008 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4009 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4010 * mipsv4-nat.c (get_longjmp_target): Ditto.
4011 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4012 * mips-nat.c (get_longjmp_target): Ditto.
4013 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4014 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4015 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4016 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4017 * irix5-nat.c (get_longjmp_target): Ditto.
4018 * irix4-nat.c (get_longjmp_target): Ditto.
4019 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4020 (ia64_push_arguments): Ditto.
4021 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4022 * h8300-tdep.c (h8300_push_arguments): Ditto.
4023 (h8300_store_return_value): Ditto.
4024 (h8300_extract_struct_value_address): Ditto.
4025 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4026 (frv_push_arguments): Ditto.
4027 * avr-tdep.c (avr_pointer_to_address): Ditto.
4028 (avr_push_arguments): Ditto.
4029 * arm-tdep.c (arm_push_dummy_call): Ditto.
4030 (arm_get_longjmp_target): Ditto.
4031 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4032 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4033 (alpha_get_longjmp_target): Ditto.
4035 * solib-irix.c (extract_mips_address): Inline extract_address,
4036 replacing it with extract_signed_integer.
4037 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4038 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4039 (first_link_map_member, open_symbol_file_object): Ditto.
4040 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4041 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4042 (LM_NEXT, LM_NAME): Ditto.
4044 2003-06-01 Richard Henderson <rth@redhat.com>
4046 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4047 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4048 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4049 (alpha_cannot_store_register): Likewise.
4050 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4051 * alpha-nat.c (supply_gregset): Likewise.
4052 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4054 2003-06-01 Andrew Cagney <cagney@redhat.com>
4056 * infcall.c (call_function_by_hand): Update comment on
4057 DEPRECATED_DUMMY_WRITE_SP.
4059 * mips-tdep.c (mips_gdbarch_init): Do not set
4060 deprecated_dummy_write_sp.
4061 (mips_eabi_push_dummy_call): Set the SP register.
4062 (mips_o64_push_dummy_call): Set the SP register.
4063 (mips_o32_push_dummy_call): Set the SP register.
4064 (mips_n32n64_push_dummy_call): Set the SP register.
4066 2003-06-01 Richard Henderson <rth@redhat.com>
4068 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4069 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4070 (supply_gregset): Likewise.
4071 * alpha-tdep.c (alpha_store_return_value): Likewise.
4072 (alpha_get_longjmp_target): Likewise.
4073 (alpha_register_name): Constify array.
4074 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4075 deprecated_register_size, deprecated_register_bytes,
4076 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4077 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4078 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4080 2003-06-01 Richard Henderson <rth@redhat.com>
4082 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4083 from arg_reg_buffer to regcache to avoid double conversion.
4085 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4087 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4089 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4090 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4092 2003-06-01 Richard Henderson <rth@redhat.com>
4094 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4095 (decode_frame_entry): Set it. Skip FDE augmentation.
4097 2003-06-01 Richard Henderson <rth@redhat.com>
4099 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4100 not overlapping PC_REGNUM.
4102 2003-06-01 Richard Henderson <rth@redhat.com>
4104 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4105 alpha_push_arguments. Don't dump argument register data to
4106 the target stack. Fix float and 128-bit long double semantics.
4107 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4108 (alpha_fix_call_dummy): Remove.
4109 (alpha_call_dummy_words): Remove.
4110 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4112 2003-06-01 Richard Henderson <rth@redhat.com>
4114 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4116 2003-06-01 Andrew Cagney <cagney@redhat.com>
4118 * mips-tdep.c (is_mips16_addr): New function.
4119 (make_mips16_addr, unmake_mips16_addr): New functions.
4120 (pc_is_mips16, mips_fetch_instruction): Use.
4121 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4122 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4123 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4124 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4126 * config/mips/tm-mips.h: Update copyright.
4127 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4128 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4129 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4130 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4131 (TM_PRINT_INSN_MACH): Delete.
4132 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4134 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4135 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4136 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4137 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4138 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4139 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4140 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4141 mips*-*-riscos* and mips*-*-sysv* onto mips.
4142 * config/mips/mips64.mt: New file.
4143 * config/mips/mips.mt: New file.
4144 * config/mips/littlemips.mt: Delete file.
4145 * config/mips/decstation.mt: Delete file.
4146 * config/mips/vr4300el.mt: Delete file.
4147 * config/mips/vr5000el.mt: Delete file.
4148 * config/mips/vr5000.mt: Delete file.
4149 * config/mips/vr4100.mt: Delete file.
4150 * config/mips/vr4xxxel.mt: Delete file.
4151 * config/mips/vr4300.mt: Delete file.
4152 * config/mips/vr4xxx.mt: Delete file.
4153 * config/mips/bigmips.mt: Delete file.
4154 * config/mips/bigmips64.mt: Delete file.
4155 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4156 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4157 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4158 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4159 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4161 * config/mips/tm-irix3.h: Ditto.
4162 * config/mips/tm-mipsv4.h: Ditto.
4163 * config/mips/tm-embed.h: Ditto.
4164 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4166 * config/mips/tm-vr5000el.h: Delete file.
4167 * config/mips/tm-tx39l.h: Delete file.
4168 * config/mips/tm-vr4300el.h: Delete file.
4169 * config/mips/tm-vr4xxxel.h: Delete file.
4170 * config/mips/tm-vr4300.h: Delete file.
4171 * config/mips/tm-vr4100.h: Delete file.
4172 * config/mips/tm-vr4xxx.h: Delete file.
4173 * config/mips/tm-vr5000.h: Delete file.
4174 * config/mips/tm-embedl64.h: Delete file.
4175 * config/mips/tm-embedl.h: Delete file.
4176 * config/mips/tm-embed64.h: Delete file.
4177 * config/mips/tm-bigmips64.h: Delete file.
4178 * config/mips/tm-bigmips.h: Delete file.
4180 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4183 * shnbsd-nat.c: Include "sh-tdep.h".
4185 From Richard Henderson <rth@redhat.com>:
4186 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4188 2003-05-31 Andrew Cagney <cagney@redhat.com>
4190 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4191 forward declaration.
4192 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4193 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4194 (mips_find_saved_regs): Use set_reg_offset.
4195 (mips_frame_init_saved_regs): Delete function.
4196 (mips_pop_frame): Call mips_find_saved_regs instead of
4197 DEPRECATED_FRAME_INIT_SAVED_REGS.
4199 2003-05-31 Andrew Cagney <cagney@redhat.com>
4201 * mips-tdep.c (mips_gdbarch_init): Do not set
4202 deprecated_max_register_raw_size, register_virtual_size, and
4203 deprecated_max_register_virtual_size.
4205 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4207 * i386-tdep.c: Include "dwarf2-frame.h".
4208 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4209 * Makefile.in (i386-tdep.o): Update dependencies.
4211 * dwarf2-frame.c, dwarf2-frame.h: New files.
4212 * Makefile.in (SFILES): Add dwarf2-frame.c.
4213 (dwarf2_frame_h): Define.
4214 (COMMON_OBS): Add dwarf2-frame.o.
4215 (dwarf2-frame.o): Add dependencies.
4217 2003-05-31 Andreas Jaeger <aj@suse.de>
4219 * x86-64-linux-nat.c: Fix comment.
4221 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4223 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4226 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4227 have a sigcontext_addr handler.
4228 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4229 sigcontext_addr handler.
4231 2003-05-31 Andrew Cagney <cagney@redhat.com>
4233 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4234 (print_fp_register_row): Replace do_fp_register_row.
4235 (mips_print_fp_register): Add "file" and "frame" parameters.
4236 (mips_print_register): Add "file" and "frame" parameters.
4237 (mips_print_registers_info): Replace mips_do_registers_info.
4238 (mips_gdbarch_init): Set print_registers_info instead of
4239 deprecated_do_registers_info.
4240 (mips_read_fp_register_single): Add "frame" parameter.
4241 (mips_read_fp_register_double): Add "frame" parameter.
4243 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4245 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4246 Fixes a bug where GDB would print the wrong register names for
4247 targets without SSE.
4249 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4250 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4253 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4254 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4255 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4258 From Michal Ludvig <mludvig@suse.cz>:
4259 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4261 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4262 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4263 I386_ST0_REGNUM): Move here from...
4264 * i386-tdep.c: ... here.
4265 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4266 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4267 registers if possible.
4268 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4269 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4271 (i386bsd_sc_reg_offset): New variable.
4272 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4273 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4275 (i386fbsd_sc_reg_offset): New variable.
4276 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4278 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4280 (i386fbsd4_sc_reg_offset): New variable.
4281 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4282 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4284 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4285 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4286 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4288 (i386nbsd_sc_reg_offset): New variable.
4289 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4290 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4292 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4294 (i386obsd_sc_reg_offset): New variable.
4295 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4296 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4298 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4299 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4300 for frame pointer offset in `struct sigcontext'.
4302 2003-05-31 Andrew Cagney <cagney@redhat.com>
4304 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4305 architecture methods call_dummy_words, sizeof_call_dummy_words,
4306 push_return_address, store_struct_return, and fix_call_dummy. Set
4307 push_dummy_call instead of deprecated_push_arguments.
4308 (mips_store_struct_return): Delete function.
4309 (mips_fix_call_dummy): Delete function.
4310 (mips_push_return_address): Delete function.
4311 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4312 RA_REGNUM and T9_REGNUM.
4313 (mips_n32n64_push_dummy_call): Ditto for
4314 mips_n32n64_push_arguments.
4315 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4316 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4318 2003-05-31 Andrew Cagney <cagney@redhat.com>
4320 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4321 "dummy_addr" to "bp_addr".
4322 * infcall.c (call_function_by_hand): Pass "funaddr" to
4323 gdbarch_push_dummy_call.
4324 * gdbarch.h, gdbarch.c: Re-generate.
4325 * i386-tdep.c (i386_push_dummy_call): Update.
4326 * arm-tdep.c (arm_push_dummy_call): Update.
4327 * d10v-tdep.c (d10v_push_dummy_call): Update.
4329 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4331 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4332 variable declarations.
4333 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4334 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4335 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4336 x86_64_init_frame_pc, x86_64_init_frame_pc,
4337 x86_64_function_has_prologue): Remove prototypes.
4338 (X86_64_NUM_GREGS): New define.
4339 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4340 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4341 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4342 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4343 XMM1_REGNUM): Remove defines.
4344 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4345 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4346 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4347 X86_64_XMM1_REGNUM): New defines.
4348 (struct x86_64_register_info): Renamed from `struct
4349 register_info'. Remove `size' member.
4350 (x86_64_register_info_table): Remove variable.
4351 (x86_64_register_info): New variable.
4352 (X86_64_NUM_REGS): New define.
4353 (X86_64_NUM_GREGS): Remove define.
4354 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4355 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4357 (x86_54_dwarf2_reg_to_regnum): Remove function.
4358 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4359 (x86_64_dwarf_reg_to_regnum): New function.
4360 (x86_64_register_name): Rewrite.
4361 (x86_64_register_raw_size): Remove function.
4362 (x86_64_register_byte_table): Remove variable.
4363 (x86_64_register_byte): Remove function.
4364 (x86_64_register_virtual_type): Remove function.
4365 (x86_64_register_type): New function.
4366 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4367 x86_64_register_convert_to_raw): Remove functions.
4368 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4369 (x86_64_use_struct_convention): Make static. Adjust for renamed
4371 (x86_64_frame_init_saved_regs): Remove function.
4372 (x86_64_push_arguments): Make static. Change to accept a regcache
4374 (x86_64_store_return_value, x86_64_extract_return_value): Make
4375 static. Rewrite based on i386 counterparts.
4376 (x86_64_push_dummy_call): New function.
4377 (X86_64_NUM_SAVED_REGS): New define.
4378 (x86_64_register_number): Remove function.
4379 (x86_64_store_struct_return): Remove function.
4380 (x86_64_frameless_function_invocation,
4381 x86_64_function_has_prologue): Remove functions.
4382 (PROLOG_BUFSIZE): Remove define.
4383 (struct x86_64_frame_cache): New structure.
4384 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4385 x86_64_frame_cache, x86_64_frame_this_id,
4386 x86_64_frame_prev_register, x86_64_frame_p,
4387 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4388 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4390 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4392 (x86_64_skip_prologue): Rewrite in terms of
4393 x86_64_analyze_prologue.
4394 (x86_64_frame_base_address): New function.
4395 (x86_64_frame_base): New variable.
4396 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4397 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4398 set deprecated_fp_regnum, deprecated_register_size,
4399 deprecated_register_bytes, register_raw_size, register_byte,
4400 register_virtual_type, register_convertiable,
4401 register_convert_to_virtual, convert_to_raw,
4402 deprecated_get_saved_register, deprecated_target_read_fp,
4403 deprecated_push_arguments, deprecated_push_return_address,
4404 deprecated_pop_frame, deprecated_store_struct_return,
4405 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4406 frameless_function_invocation, deprecated_frame_saved_pc,
4407 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4408 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4409 deprecated_init_frame_pc and virtual_frame_pointer. Call
4410 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4411 and x86_64_frame_p. Call frame_base_set_default to register
4413 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4414 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4415 (_initialize_x86_64_tdep): Remove function.
4416 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4417 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4418 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4420 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4421 (x86_64_linux_sigcontext_addr): Rewrite.
4422 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4423 x86_64_linux_frame_saved_pc): Remove functions.
4424 (x86_64_linux_pc_in_sigtramp): Renamed from
4425 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4427 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4429 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4430 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4431 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4432 (x86_64_regmap): Rename to regmap.
4433 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4435 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4437 (x86_64_fxsave_offset): Remove function.
4438 (supply_fpregset): Simply call x86_64_supply_fxsave.
4439 (fill_fpregset): Simply call x86_64_fill_fxsave.
4440 (fetch_inferior_registers, store_inferior_registers): Avoid
4441 asignment in if-statement.
4442 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4443 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4444 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4445 (fetch_core_registers): Remove function.
4446 (linux_elf_core_fns): Remove.
4447 (offsetoff): Don't define.
4448 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4449 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4450 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4452 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4453 protection against multiple includes instead of NM_X86_64_h. Add
4454 various comments. Include "config/nm-linux.h". Don't include
4456 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4457 GET_THREAD_SIGNALS): Remove defines.
4458 (x86_64_register_u_addr, kernel_u_size,
4459 lin_thread_get_thread_signals): Remove prototypes.
4460 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4461 [HAVE_LINK_H]: Don't include "solib.h".
4462 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4463 * config/i386/tm-x86-64linux.h: Fix comments.
4464 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4465 x86-64-tdep.o): Update dependencies.
4467 2003-05-30 Andrew Cagney <cagney@redhat.com>
4469 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4470 Change parameter type to a "struct regcache *".
4472 * gdbarch.sh: Regardless of the multi-arch level, always define
4473 the macro when not already defined.
4474 * gdbarch.h, gdbarch.c: Re-generate.
4476 2003-05-30 Richard Henderson <rth@redhat.com>
4478 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4479 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4480 (alpha_mdebug_frame_this_id): Likewise.
4481 (alpha_mdebug_frame_prev_register): Likewise.
4482 (alpha_mdebug_frame_base_address): Likewise.
4483 (alpha_mdebug_frame_locals_address): Likewise.
4484 (alpha_mdebug_frame_args_address): Likewise.
4485 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4486 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4487 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4489 (alpha_heuristic_frame_this_id): Make static.
4490 (alpha_heuristic_frame_prev_register): Likewise.
4491 (alpha_heuristic_frame_base_address): Likewise.
4492 * alpha-tdep.h: Update.
4494 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4496 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4497 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4499 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4500 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4501 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4502 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4503 I386_ST0_REGNUM): New defines.
4504 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4505 codestream_get): Remove define.
4506 (codestream_next_addr, condestream_addr, condestream_buf,
4507 codestream_off, codestream_cnt): Remove variables.
4508 (codestream_fill, codestream_seek, codestream_read): Remove
4510 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4512 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4513 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4514 i386_frame_saved_pc, i386_saved_pc_after_call,
4515 i386_frame_num_args, i386_frame_init_saved_regs,
4516 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4517 i386_push_arguments): Remove functions.
4518 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4519 functionality. Use i386_analyze_prologue instead of
4520 i386_get_frame_setup.
4521 (I386_NUM_SAVED_REGS): New define.
4522 (struct i386_frame_cache): New structure.
4523 (i386_alloc_frame_cache, i386_analyze_struct_return,
4524 i386_skip_probe, i386_analyze_frame_setup,
4525 i386_analyze_register_saves, i386_analyze_prologue,
4526 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4527 i386_frame_prev_register, i386_sigtramp_frame_cache,
4528 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4529 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4530 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4532 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4534 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4535 I386_EAX_REGNUM and I386_EDX_REGNUM.
4536 (i386_extract_return_value, i386_store_return_value): Use
4537 I386_ST0_REGNUM where appropriate.
4538 (i386_extract_struct_value_address): Rewrite to use extract_address.
4539 (i386_svr4_pc_in_sigtramp): Add comment.
4540 (i386_svr4_sigcontext_addr): Rewrite.
4541 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4543 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4544 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4545 of new defines. Set push_dummy_call, don't set
4546 deprecated_push_arguments, deprecated_push_return_address,
4547 deprecated_pop_frame. Don't set parm_boundary. Don't set
4548 deprecated_frame_chain, deprecated_frame_saved_pc,
4549 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4550 save_dummy_frame_tos, unwind_pc. Call
4551 frame_unwind_append_predicate and frame_base_set_default. Don't
4552 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4553 Don't set frameless_function_invocation. Don't set
4554 deprecated_register_bytes, deprecated_register_size,
4555 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4556 * i386-linux-tdep.c: Fix formatting in some comments.
4557 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4558 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4559 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4560 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4561 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4562 redundant parentheses.
4563 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4564 (i386_linux_sigcontext_addr): Use it. Rewrite.
4565 (find_minsym_and_objfile): Change name of second argument.
4566 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4567 changed. Use frame_pc_unwind instead of
4568 DEPRECATED_SAVED_PC_AFTER_CALL.
4569 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4570 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4571 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4573 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4575 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4576 (_initialize_i386_cygwin_tdep): New prototype.
4577 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4578 deprecated_frame_chain_valid.
4579 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4580 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4581 Rely on the SVR4 defaults.
4582 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4583 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4585 2003-05-30 Andrew Cagney <cagney@redhat.com>
4587 * infcall.c (call_function_by_hand): Always call
4588 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4590 2003-05-30 Richard Henderson <rth@redhat.com>
4592 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4595 2003-05-29 Jim Blandy <jimb@redhat.com>
4597 Use gdbarch methods for solib stuff on PowerPC Linux.
4598 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4599 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4601 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4602 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4603 giving the same effect as the #definitions above.
4605 2003-05-29 Adam Fedor <fedor@gnu.org>
4607 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4608 (find_implementation_from_class): Replace it with the standard
4609 case i.e. do nothing.
4611 2003-05-29 Richard Henderson <rth@redhat.com>
4613 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4614 (alpha_linux_sigtramp_offset): Use it. Make static.
4615 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4616 update for new frame model.
4617 * alpha-mdebug-tdep.c: New file.
4618 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4619 (alpha_osf1_init_abi): Install it.
4620 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4621 (linked_proc_desc_table): Remove.
4622 (alpha_frame_past_sigtramp_frame): Remove.
4623 (alpha_dynamic_sigtramp_offset): Remove.
4624 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4625 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4626 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4627 (push_sigtramp_desc): Remove.
4628 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4629 (alpha_cannot_store_register): Likewise.
4630 (alpha_sigcontext_addr): Remove.
4631 (alpha_find_saved_regs): Remove.
4632 (alpha_frame_init_saved_regs): Remove.
4633 (alpha_init_frame_pc_first): Remove.
4634 (read_next_frame_reg): Remove.
4635 (alpha_frame_saved_pc): Remove.
4636 (alpha_saved_pc_after_call): Remove.
4637 (temp_proc_desc, temp_saved_regs): Remove.
4638 (alpha_about_to_return): Remove.
4639 (cached_proc_desc): Remove.
4640 (alpha_frame_chain): Remove.
4641 (alpha_print_extra_frame_info): Remove.
4642 (alpha_init_extra_frame_info): Remove.
4643 (alpha_frame_locals_address): Remove.
4644 (alpha_frame_args_address): Remove.
4645 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4646 (alpha_push_dummy_frame): Remove.
4647 (alpha_pop_frame): Remove.
4648 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4649 (alpha_read_insn): New.
4650 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4651 for different insn encodings.
4652 (alpha_in_lenient_prologue): Remove.
4653 (struct alpha_sigtramp_unwind_cache): New.
4654 (alpha_sigtramp_frame_unwind_cache): New.
4655 (alpha_sigtramp_register_address): New.
4656 (alpha_sigtramp_frame_this_id): New.
4657 (alpha_sigtramp_frame_prev_register): New.
4658 (alpha_sigtramp_frame_unwind): New.
4659 (alpha_sigtramp_frame_p): New.
4660 (struct alpha_heuristic_unwind_cache): New.
4661 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4662 don't count nop insns that occur between functions.
4663 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4664 heuristic_proc_desc, but without the mdebug wrapping.
4665 (alpha_heuristic_frame_this_id): New.
4666 (alpha_heuristic_frame_prev_register): New.
4667 (alpha_heuristic_frame_unwind): New.
4668 (alpha_heuristic_frame_p): New.
4669 (alpha_heuristic_frame_base_address): New.
4670 (alpha_heuristic_frame_base): New.
4671 (alpha_unwind_dummy_id): New.
4672 (alpha_unwind_pc): New.
4673 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4674 frame related deprecated initializations; install replacements.
4675 (alpha_dump_tdep): Remove.
4676 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4677 (alpha_read_insn, alpha_after_prologue,
4678 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4679 alpha_heuristic_frame_prev_register,
4680 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4681 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4682 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4683 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4685 2003-05-29 Andrew Cagney <cagney@redhat.com>
4687 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4688 dependant on the availability of ASSERT_FUNCTION.
4689 (ASSERT_FUNCTION): Do not define when there is no function name.
4691 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4693 From Jimi X <jimix@watson.ibm.com>:
4694 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4696 2003-05-28 Jim Blandy <jimb@redhat.com>
4698 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4699 argument to ptrace to int; the system headers should give it the
4700 right type, and pointers don't fit in ints on powerpc64-*-*.
4702 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4704 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4707 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4709 * stabsread.c (dbx_lookup_type): Make static.
4711 (add_undefined_type): Ditto.
4712 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4715 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4717 * hpread.c (hpread_has_name): Make static.
4718 (hpread_psymtab_to_symtab): Ditto.
4719 (file_exists): Ditto.
4720 (hpread_call_pxdb): Ditto.
4721 (hpread_pxdb_needed): Ditto.
4722 (hpread_quick_traverse): Ditto.
4723 (hpread_get_header): Ditto.
4724 (hpread_get_lntt): Ditto.
4725 (hpread_get_slt): Ditto.
4728 2003-05-25 Andreas Schwab <schwab@suse.de>
4730 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4731 stack_align and deprecated_extra_stack_alignment_needed.
4732 (m68k_stack_align): Delete.
4734 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4735 (m68k_register_virtual_size): Likewise.
4736 (altos_skip_prologue): Remove obsolete function.
4737 (isi_frame_num_args): Likewise.
4738 (news_frame_num_args): Likewise.
4739 (m68k_fix_call_dummy): Make static.
4740 (m68k_push_dummy_frame): Likewise.
4741 (m68k_pop_frame): Likewise.
4742 (m68k_skip_prologue): Likewise.
4743 (m68k_frame_init_saved_regs): Likewise.
4744 (m68k_saved_pc_after_call): Likewise.
4745 (m68k_get_longjmp_target): Make multi-arch.
4746 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4747 structure. Register m68k_get_longjmp_target if enabled.
4748 * m68k-tdep.h (struct gdbarch_tdep): Define.
4749 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4751 * Makefile.in (config.status): Also depend on configure.tgt
4753 (m68klinux-tdep.o): Update dependencies.
4754 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4755 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4756 (M68K_LINUX_JB_PC): Define.
4757 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4758 and take additional parameter.
4759 (m68k_linux_sigtramp_saved_pc): Update.
4760 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4761 m68k_linux_pc_in_sigtramp, in_plt_section,
4762 find_solib_trampoline_target.
4763 * config/m68k/tm-linux.h: Don't include any tm headers.
4764 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4765 (JB_ELEMENT_SIZE): Likewise.
4767 (GET_LONGJMP_TARGET): Likewise.
4768 (IN_SIGTRAMP): Likewise.
4769 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4771 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4773 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4774 (sparc32_push_arguments): Re-implement by calling
4775 sparc32_do_push_arguments.
4777 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4779 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4780 SPARC_O1_REGNUM): New defines.
4781 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4782 (sparc32_store_return_value): New function.
4783 (sparc_extract_struct_value_address): Rewrite to operate on a
4785 (sparc_gdbarch_init): Don't set
4786 deprecated_extract_struct_value_address. Set
4787 extract_struct_value_address instead. Don't set
4788 deprecated_extract_return_value and deprecated_store_return_value
4789 for 32-bit targets. Set extract_return_value and
4790 store_return_value instead.
4791 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4792 DEPRECTAED_EXTRACT_RETURN_VALUE,
4793 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4794 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4795 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4796 (sparc_store_return_value): Remove prototype.
4797 (sparc32_store_return_value): New prototype.
4798 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4801 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4803 * sparcnbsd-tdep.c: Include "gdb_string.h".
4805 2003-05-23 Andrew Cagney <cagney@redhat.com>
4807 * p-valprint.c (pascal_val_print): Replace extract_address with
4808 the inline equivalent extract_unsigned_integer.
4809 * jv-valprint.c (java_value_print): Ditto.
4810 * ada-valprint.c (ada_val_print_1): Ditto.
4811 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4813 2003-05-23 Theodore A. Roth <troth@openavr.org>
4815 * blockframe.c (frameless_look_for_prologue): Remove unused
4816 after_prologue variable.
4818 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4820 * blockframe.c (get_pc_function_start): Rewrite to avoid
4821 asignments in if-statements.
4823 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4825 Committed by Elena Zannoni <ezannoni@redhat.com>.
4826 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4827 files, don't relocate absolute symbols (and do use mst_abs).
4829 2003-05-23 Andrew Cagney <cagney@redhat.com>
4831 * objc-lang.c: Include "gdb_assert.h".
4832 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4833 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4834 (gdb_check, gdb_check_fatal): Delete functions.
4835 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4837 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4838 * Makefile.in (objc-lang.o): Update dependencies.
4840 2003-05-22 Ian Lance Taylor <ian@airs.com>
4842 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4843 with fprintf_filtered, not fprintf_unfiltered.
4845 2003-05-22 Andrew Cagney <cagney@redhat.com>
4847 * stack.c (frame_info): Inline extract_address, replacing it with
4848 extract_unsigned_integer.
4849 * findvar.c (unsigned_pointer_to_address): Ditto.
4850 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4851 * dwarf2expr.c (dwarf2_read_address): Ditto.
4852 * frame.c (frame_pc_unwind): Update comment.
4853 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4855 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4857 * infptrace.c (detach): Call print_sys_errmsg rather than
4858 perror_with_name to issue warning message when errno is non-zero
4859 after calling ptrace detach.
4861 2003-05-21 J. Brobecker <brobecker@gnat.com>
4863 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4864 macro definitions from here...
4865 * hppa-tdep.c: ...to there.
4867 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4869 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4870 register_ptrace_addr(). Fix all callers.
4872 2003-05-21 Andreas Schwab <schwab@suse.de>
4874 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4876 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4878 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4879 (_initialize_m68k_linux_tdep): New function.
4880 (m68k_linux_frame_saved_pc): Make static.
4881 (m68k_linux_extract_return_value): Likewise.
4882 (m68k_linux_store_return_value): Likewise.
4883 (m68k_linux_extract_struct_value_address): Likewise.
4884 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4886 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4887 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4888 (DEPRECATED_FRAME_SAVED_PC): Remove.
4890 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4892 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4893 regset numbering rather than our own.
4895 2003-05-19 David Carlton <carlton@bactrian.org>
4897 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4899 2003-05-19 David Carlton <carlton@bactrian.org>
4901 Partial fix for PR c++/827.
4902 * cp-support.h: Include symtab.h.
4903 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4904 * cp-namespace.c: Update contributors.
4905 (cp_lookup_symbol_nonlocal): New.
4906 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4907 (lookup_symbol_file): Ditto.
4908 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4909 * block.h: Declare block_scope, block_using, block_global_block.
4910 * block.c (block_scope): New.
4911 (block_using, block_global_block): Ditto.
4912 * Makefile.in (cp_support_h): Depend on symtab_h.
4913 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4915 2003-05-19 David Carlton <carlton@bactrian.org>
4917 * language.h (struct language_defn): Add 'la_value_of_this'
4918 and 'la_lookup_symbol_nonlocal' members.
4919 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4920 lookup_symbol_static, lookup_symbol_global,
4921 lookup_symbol_aux_block.
4922 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4923 if we should search fields of this and how to do static/global
4925 (lookup_symbol_aux_block): Make extern.
4926 (basic_lookup_symbol_nonlocal): New.
4927 (lookup_symbol_static, lookup_symbol_global): Ditto.
4928 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4929 'la_lookup_symbol_nonlocal' members.
4930 * c-lang.c (c_language_defn, cplus_language_defn)
4931 (asm_language_defn, minimal_language_defn): Ditto.
4932 * jv-lang.c (java_language_defn): Ditto.
4933 * language.c (unknown_language_defn, auto_language_defn)
4934 (local_language_defn): Ditto.
4935 * m2-lang.c (m2_language_defn): Ditto.
4936 * objc-lang.c (objc_language_defn): Ditto.
4937 * scm-lang.c (scm_language_defn): Ditto.
4938 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4939 * p-lang.c (pascal_language_defn): Ditto for both.
4940 * Makefile.in (f-lang.o): Depend on value_h.
4943 2003-05-19 David Carlton <carlton@bactrian.org>
4945 * block.h: Declare block_static_block.
4946 * block.c (block_static_block): New.
4947 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4948 lookup_symbol_aux_local, calling block_static_block instead.
4949 (lookup_symbol_aux_local): Delete 'static_block' argument.
4951 2003-05-19 David Carlton <carlton@bactrian.org>
4953 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4955 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4957 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4958 register numbers mapping.
4960 2003-05-18 Adam Fedor <fedor@gnu.org>
4962 * symtab.c (completion_list_objc_symbol): New function.
4963 (make_symbol_completion_list): Use it to add ObjC symbols
4964 when looking though the list.
4965 (language_search_unquoted_string): New function.
4966 (make_file_symbol_completion_list): Use it.
4968 2003-05-18 Andreas Schwab <schwab@suse.de>
4970 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4972 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4973 as m68k_linux_extract_return_value.
4974 (DEPRECATED_STORE_RETURN_VALUE): Define as
4975 m68k_linux_store_return_value.
4976 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4977 m68k_linux_extract_struct_value_address.
4978 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4979 get_next_frame, get_frame_base, get_frame_pc.
4980 (m68k_linux_frame_saved_pc): Use get_frame_base.
4981 (m68k_linux_extract_return_value): New function.
4982 (m68k_linux_store_return_value): New function.
4983 (m68k_linux_extract_struct_value_address): New function.
4984 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4986 * c-exp.y (typebase): Remove duplicate occurence of
4987 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4988 of lookup_signed_typename.
4990 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4992 * dwarf2loc.c (find_location_expression): Change type of second
4993 argument to `size_t *'.
4994 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4997 2003-05-18 David Carlton <carlton@bactrian.org>
4999 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5000 'linkage_name'. Add comment.
5001 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5003 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5004 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5005 (lookup_block_symbol): Ditto.
5007 2003-05-16 Andrew Cagney <cagney@redhat.com>
5009 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5010 * gdbarch.h, gdbarch.c: Re-generate.
5011 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5012 * TODO (REGISTER_BYTES): Delete reference.
5013 * alpha-tdep.c (alpha_gdbarch_init): Update.
5014 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5015 * x86-64-tdep.c (x86_64_init_abi): Update.
5016 * vax-tdep.c (vax_gdbarch_init): Update.
5017 * v850-tdep.c (v850_gdbarch_init): Update.
5018 * sparc-tdep.c (sparc_gdbarch_init): Update.
5019 * sh-tdep.c (sh_gdbarch_init): Update.
5020 * s390-tdep.c (s390_gdbarch_init): Update.
5021 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5022 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5023 (ns32k_gdbarch_init_32382): Update.
5024 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5025 * mcore-tdep.c (mcore_gdbarch_init): Update.
5026 * m68k-tdep.c (m68k_gdbarch_init): Update.
5027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5028 * ia64-tdep.c (ia64_gdbarch_init): Update.
5029 * i386-tdep.c (i386_gdbarch_init): Update.
5030 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5031 * hppa-tdep.c (hppa_gdbarch_init): Update.
5032 * h8300-tdep.c (h8300_gdbarch_init): Update.
5033 * frv-tdep.c (frv_gdbarch_init): Update.
5034 * cris-tdep.c (cris_gdbarch_init): Update.
5035 * avr-tdep.c (avr_gdbarch_init): Update.
5036 * arm-tdep.c (arm_gdbarch_init): Update.
5037 * sparc-tdep.c (sparc_pop_frame): Update.
5038 * rs6000-tdep.c (rs6000_pop_frame): Update.
5039 * remote.c (init_remote_state): Update.
5040 (remote_prepare_to_store): Update.
5041 * remote-vx.c (vx_prepare_to_store): Update.
5042 * remote-sds.c (sds_fetch_registers): Update.
5043 (sds_prepare_to_store): Update.
5044 * remote-array.c: Update.
5045 * regcache.c (init_legacy_regcache_descr): Update.
5046 (init_regcache_descr): Update.
5047 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5048 (mips_o64_extract_return_value): Update.
5049 * irix5-nat.c (fetch_core_registers): Update.
5050 * irix4-nat.c (fetch_core_registers): Update.
5051 * i386-tdep.h: Update.
5052 * hppa-tdep.c (pa_do_registers_info): Update.
5053 (pa_do_strcat_registers_info): Update.
5054 * cris-tdep.c (cris_register_bytes_ok): Update.
5055 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5056 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5057 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5058 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5059 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5060 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5061 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5062 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5063 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5064 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5065 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5066 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5067 (REGISTER_BYTES_OK): Update.
5068 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5069 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5071 2003-05-16 Ian Lance Taylor <ian@airs.com>
5073 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5074 (vax_print_insn, print_insn_arg): Remove static functions.
5075 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5076 print_insn_vax from opcodes library.
5077 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5079 2003-05-15 Andrew Cagney <cagney@redhat.com>
5081 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5082 * target.h (memory_breakpoint_from_pc): Delete declaration.
5083 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5084 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5085 * monitor.c (monitor_insert_breakpoint): Use
5086 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5087 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5088 * gdbarch.h, gdbarch.c: Re-generate.
5089 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5090 (sparc_gdbarch_init): Set breakpoint_from_pc to
5091 sparc_breakpoint_from_pc.
5092 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5093 (BREAKPOINT_FROM_PC): Define.
5094 (sparc_breakpoint_from_pc): Declare.
5095 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5096 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5097 (BREAKPOINT_FROM_PC): Define.
5098 (BREAKPOINT): Delete macro.
5099 * target.h: Update comment.
5100 * s390-tdep.c (s390_gdbarch_init): Update comments.
5101 * remote.c: Update comments.
5102 * remote-mips.c: Update comments.
5103 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5104 * mem-break.c: Update comment.
5105 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5106 (ia64_memory_insert_breakpoint): Update.
5107 * config/sparc/tm-sparc.h: Update comment.
5108 * config/pa/tm-hppa64.h: Update comment.
5109 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5110 (rs6000_breakpoint_from_pc): Update.
5111 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5112 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5113 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5114 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5115 (mips_breakpoint_from_pc): Update.
5116 (mips_dump_tdep): Update.
5118 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5119 * minsyms.c (lookup_minimal_symbol): Inline
5120 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5122 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5123 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5124 * p-lang.c (pascal_printstr): Ditto.
5125 * objc-lang.c (objc_printstr): Ditto.
5126 * m2-lang.c (m2_printstr): Ditto.
5127 * jv-valprint.c (java_print_value_fields): Ditto.
5128 * f-lang.c (f_printstr): Ditto.
5129 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5130 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5131 for repeat_count_threshold.
5132 * Makefile.in (cp-valprint.o): Update dependencies.
5134 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5136 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5137 (examine_prologue): Support looking through leaf functions, knowing
5138 they start with mov r2,r12. Support skipping over indirect stores
5139 of the input registers. Upon hitting a non-nop branch instruction
5140 or predicated instruction, bail out by setting lim_pc to the current
5141 pc value in the loop. At the end, if the lim_pc value is still
5142 beyond our calculated value and we have trust_limit set,
5143 use the lim_pc value.
5145 2003-05-15 Andrew Cagney <cagney@redhat.com>
5147 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5148 generic_find_dummy_frame.
5149 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5150 (deprecated_generic_find_dummy_frame): Update.
5151 (deprecated_read_register_dummy): Update.
5152 * frame.c (deprecated_generic_get_saved_register): Update.
5154 2003-05-15 Theodore A. Roth <troth@openavr.org>
5156 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5157 (avr_gdbarch_init): Set breakpoint_from_pc method.
5159 2003-05-15 Andrew Cagney <cagney@redhat.com>
5161 * regcache.c (build_regcache): Set deprecated_register_valid
5163 (deprecated_grub_regcache_for_register_valid): Delete function.
5164 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5167 2003-05-15 David Carlton <carlton@bactrian.org>
5169 Committed by Elena Zannoni <ezannoni@redhat.com>
5170 * symtab.c (lookup_symbol_aux): Delete calls to
5171 lookup_symbol_aux_minsyms.
5172 (lookup_symbol_aux_minsyms): Comment out function and
5173 prototype. Delete lookup by mangled name.
5175 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5177 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5178 correctly indicate an empty stack and ``stack_allocated'' to the
5179 indicate the number of elements initially allocated.
5180 (dwarf_expr_grow_stack): Simplify method for computing new
5181 stack size. Don't loop infinitely if ``stack_len'' is zero.
5182 (execute_stack_op): Move ``ctx->in_reg'' initialization
5183 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5184 be used in conjuction with DW_OP_piece. Revise error message
5187 2003-05-14 Theodore A. Roth <troth@openavr.org>
5189 * MAINTAINERS: Update my email address.
5190 * avr-tdep.c: Ditto.
5192 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5194 * symtab.h (enum domain_enum): Rename from namespace_enum.
5195 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5196 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5197 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5198 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5199 TYPES_NAMESPACE, METHODS_NAMESPACE.
5200 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5201 (struct symbol, struct partial_symbol): Rename field
5202 'namespace_enum namespace' to 'domain_enum domain'.
5203 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5204 Delete old define kludge for namespace.
5206 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5207 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5208 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5209 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5210 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5211 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5212 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5213 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5214 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5215 occurrences of the above.
5217 2003-05-14 Ian Lance Taylor <ian@airs.com>
5219 * Makefile.in (install-only): Use $(SHELL) when running
5222 2003-05-13 Ian Lance Taylor <ian@airs.com>
5224 * MAINTAINERS (write after approval): Add myself.
5226 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5227 second and third arguments.
5228 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5229 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5231 2003-05-13 Andrew Cagney <cagney@redhat.com>
5233 * defs.h (store_address): Delete declaration.
5234 findvar.c (store_address): Delete function.
5235 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5236 store_unsigned_integer.
5237 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5238 * v850-tdep.c (v850_push_arguments): Ditto.
5239 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5240 * sh-tdep.c (sh64_get_saved_register): Ditto.
5241 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5242 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5243 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5244 (mips_get_saved_register): Ditto.
5245 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5246 (find_func_descr, ia64_push_arguments): Ditto.
5247 * i386-tdep.c (i386_push_arguments): Ditto.
5248 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5249 * frv-tdep.c (frv_push_arguments): Ditto.
5250 * frame.c (legacy_saved_regs_prev_register): Ditto.
5251 (deprecated_generic_get_saved_register): Ditto.
5252 * findvar.c (unsigned_address_to_pointer): Ditto.
5253 * dwarf2read.c (dwarf2_const_value): Ditto.
5254 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5255 * alpha-tdep.c (alpha_push_arguments): Ditto.
5257 2003-05-12 J. Brobecker <brobecker@gnat.com>
5259 * NEWS: Mention that the hppa-hpux port has been partially
5260 multiarched (32bit ABIT only, so far).
5262 2003-05-11 Andrew Cagney <cagney@redhat.com>
5264 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5265 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5266 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5267 sim/testsuite/sim/arm/misaligned2.ms, and
5268 sim/testsuite/sim/arm/misaligned3.ms.
5269 * disasm.h (struct ui_file): Add opaque struct declaration.
5270 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5271 * frame.h (struct ui_file): Ditto.
5273 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5275 * value.h: Pretty print.
5277 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5279 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5281 2003-05-08 Andrew Cagney <cagney@redhat.com>
5283 * regcache.h (max_register_size): Delete declaration.
5284 * regcache.c (max_register_size): Delete function.
5285 (struct regcache_descr): Delete field "max_register_size".
5286 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5287 registers fit in MAX_REGISTER_SIZE.
5288 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5289 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5290 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5291 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5292 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5293 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5294 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5295 * dve3900-rom.c, hppa-tdep.c: Ditto.
5297 2003-05-08 David Carlton <carlton@math.stanford.edu>
5299 * valops.c (push_word): Fix typo.
5301 2003-05-08 Andrew Cagney <cagney@redhat.com>
5303 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5304 * gdbarch.h: Re-generate.
5305 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5306 (legacy_max_register_raw_size): Delete declaration.
5307 * regcache.c (legacy_max_register_raw_size): Delete function.
5308 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5309 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5310 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5311 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5312 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5313 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5314 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5315 * findvar.c, dwarf2cfi.c: Ditto.
5317 2003-05-08 Andrew Cagney <cagney@redhat.com>
5319 * mips-tdep.c (read_signed_register): New function, moved to here
5321 (read_signed_register_pid): Ditto.
5322 * regcache.c (read_signed_register_pid): Delete function, moved to
5324 (read_signed_register): Ditto.
5325 * regcache.h (read_signed_register): Delete declaration.
5326 (read_signed_register_pid): Delete declaration.
5328 2003-05-08 Andrew Cagney <cagney@redhat.com>
5330 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5331 * gdbarch.h: Re-generate.
5332 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5333 (legacy_max_register_virtual_size): Delete declaration.
5334 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5335 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5336 * tracepoint.c (memrange_sortmerge): Ditto.
5337 * sparc-tdep.c (sparc_print_registers): Ditto.
5338 * regcache.c (legacy_max_register_virtual_size): Delete function.
5340 2002-05-08 J. Brobecker <brobecker@gnat.com>
5342 * fork-child.c (escape_bang_in_quoted_argument): New function.
5343 (fork_inferior): Escape '!' characters in quoted arguments
5346 2003-05-08 J. Brobecker <brobecker@gnat.com>
5348 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5349 the language of the CU is not currently supported by GDB.
5351 2003-05-08 J. Brobecker <brobecker@gnat.com>
5353 * defs.h (language): Add language_minimal enum value.
5354 * c-lang.c (minimal_language_defn): New language definition.
5355 (_initialize_c_language): Add the new minimal language to the list
5356 of languages known to GDB.
5358 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5360 * frame.c (get_frame_type): Don't attempt to lazily initialize
5361 frame's unwinder for legacy frames.
5363 2003-05-07 Andrew Cagney <cagney@redhat.com>
5365 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5366 and "regcache" parameters.
5367 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5369 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5371 * dwarf2read.c (dwarf_decode_lines): Only use output of
5372 check_cu_functions() when calling record_line(). Do not update
5373 the current address.
5375 2003-05-07 Andrew Cagney <cagney@redhat.com>
5377 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5380 2003-05-07 Jim Blandy <jimb@redhat.com>
5382 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5383 'maint info symtabs' and 'maint info psymtabs'.
5384 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5385 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5386 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5387 Declarations updated.
5388 * maint.c (maintenance_list_command): Delete.
5389 (_initialize_maint_cmds): Update calls to add_cmd.
5390 * gdbcmd.h (maintenancelistlist): Delete declaration.
5391 * cli/cli-cmds.c (maintenancelistlist): Delete.
5392 (init_cmd_lists): Don't initialize it.
5393 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5395 2003-05-07 Andrew Cagney <cagney@redhat.com>
5397 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5399 (d10v_print_registers_info): Update.
5400 (d10v_dmap_register, d10v_imap_register): Delete functions.
5401 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5402 and "imap_register".
5403 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5404 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5405 * arch-utils.c (generic_remote_translate_xfer_address): Add
5406 "regcache" and "gdbarch" parameters.
5407 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5408 parameter. Change class to multi-arch.
5409 * gdbarch.h, gdbarch.c: Re-generate.
5410 * remote.c (remote_xfer_memory): Use
5411 gdbarch_remote_translate_xfer_address.
5413 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5415 * infrun.c (prev_pc): Move declaration ahead of proceed().
5416 (proceed): Refresh prev_pc value before resuming.
5417 (stop_stepping): Remove code to refresh prev_pc.
5419 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5421 * nto-tdep.c: Removed stray comment.
5423 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5425 * i386-nto-tdep.c: Fix old K&R function definitions.
5426 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5427 Also change add_show_from_set() call to add_setshow_cmd().
5428 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5430 2003-05-05 Andrew Cagney <cagney@redhat.com>
5432 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5433 (fprint_dummy_frames): New function.
5434 (maintenance_print_dummy_frames): New function.
5435 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5436 * frame.c (fprint_frame_id): Make global.
5437 * frame.h (fprint_frame_id): Declare.
5438 * Makefile.in (dummy-frame.o): Update dependencies.
5440 2003-05-05 Andrew Cagney <cagney@redhat.com>
5442 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5443 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5444 SIZEOF_CALL_DUMMY_WORDS.
5445 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5446 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5447 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5448 CALL_DUMMY_BREAKPOINT_OFFSET.
5449 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5450 CALL_DUMMY_START_OFFSET.
5451 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5452 * gdbarch.h, gdbarch.c: Re-generate.
5453 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5454 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5455 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5456 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5457 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5458 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5459 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5460 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5461 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5462 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5463 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5464 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5465 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5466 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5467 * config/sparc/tm-sparc.h: Update.
5469 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5471 * configure.tgt: Add i[3456]86-*-nto*.
5472 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5473 * nto-tdep.c: New file. Neutrino target support routines.
5474 * nto-tdep.h: New file. Neutrino target header.
5475 * config/tm-qnxnto.h: New file.
5476 * config/i386/i386nto.mt: New file.
5477 * config/i386/tm-i386nto.h: New file.
5479 2003-05-04 Andrew Cagney <cagney@redhat.com>
5481 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5482 (load_infrun_state): Ditto.
5483 (struct thread_info): Drop "prev_func_name" field.
5484 * thread.c (load_infrun_state): Update.
5485 (save_infrun_state): Update.
5486 * infrun.c (prev_func_name): Delete variable.
5487 (init_wait_for_inferior): Do not clear prev_func_name.
5488 (stop_stepping, keep_going, context_switch): Do not swap
5490 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5491 instead of PC_IN_SIGTRAMP.
5493 2003-05-04 Andrew Cagney <cagney@redhat.com>
5495 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5496 REGISTER_BYTE with register_offset_hack.
5497 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5498 that REGISTER_BYTE is consistent with the regcache.
5499 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5500 * gdbarch.h, gdbarch.c: Regenerate.
5502 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5504 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5505 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5507 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5509 2003-05-03 J. Brobecker <brobecker@gnat.com>
5511 From Thierry Schneider <tpschneider1@yahoo.com>
5512 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5513 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5514 (mi-cmd-symbol.o): Add rule.
5516 2003-05-03 Andrew Cagney <cagney@redhat.com>
5518 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5519 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5520 * gdbarch.h, gdbarch.c: Re-generate.
5521 * d10v-tdep.c (d10v_push_dummy_code): New function.
5522 (d10v_gdbarch_init): Set push_dummy_code.
5523 * infcall.c (legacy_push_dummy_code): New function.
5524 (generic_push_dummy_code): New function.
5525 (push_dummy_code): New function.
5526 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5527 instead of dummy_addr, to push_dummy_call. Move call to
5528 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5530 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5532 2003-05-03 Andrew Cagney <cagney@redhat.com>
5534 * disasm.h (print_insn): Declare.
5535 * disasm.c (init_gdb_disassemble_info): New function.
5536 (gdb_disassembly): Call init_gdb_disassemble_info.
5537 (gdb_print_insn): New function.
5538 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5539 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5540 * mcore-tdep.c: Include "disasm.h"
5541 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5542 * d10v-tdep.c: Include "disasm.h".
5543 (display_trace): Call gdb_print_insn, instead of print_insn.
5544 (print_insn): Delete function.
5545 * printcmd.c: Include "disasm.h".
5546 (print_insn): Delete function.
5547 (print_formatted): Call gdb_print_insn, instead of print_insn.
5548 * Makefile.in (printcmd.o): Update dependencies.
5549 (mcore-tdep.o, d10v-tdep.o): Ditto.
5551 2003-05-02 Andrew Cagney <cagney@redhat.com>
5553 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5554 PC_REGNUM, re-indent.
5555 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5556 PC_REGNUM isn't set.
5558 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5559 * gdbarch.h, gdbarch.c: Re-generate.
5560 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5561 register_virtual_size, pc_regnum, or register_bytes.
5562 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5563 (d10v_register_type): Use D10V_PC_REGNUM.
5564 (d10v_print_registers_info, d10v_read_pc): Ditto.
5565 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5566 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5568 2003-05-02 David Carlton <carlton@bactrian.org>
5570 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5571 the name with mstrsave.
5573 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5575 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5576 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5577 (host_charset_name, target_charset_name): New vars for use by
5579 (host_charset_enum, target_charset_enum): New enums for set/show
5581 (set_charset_sfunc, set_host_charset_sfunc,
5582 set_target_charset_sfunc): New functions.
5583 (set_host_charset, set_target_charset): Make static.
5584 (list_charsets, set_host_charset_command,
5585 set_target_charset_command): Delete functions.
5586 (show_charset_command): Rewrite as....
5587 (show_charset): Hook this up with the set/show command mechanism.
5588 (_initialize_charset): Change names of charsets to match the
5589 set/show enums. Use host_charset_name and target_charset_name.
5590 Use set/show mechanism for charset, host-charset, target-charset
5591 commands. Do not make 'show host-charset' and 'show
5592 target-charset' be aliases of 'show charset'.
5594 * charset.h (set_host_charset, set_target_charset): Don't export,
5595 they are not used outside the file.
5597 2003-05-01 Andrew Cagney <cagney@redhat.com>
5599 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5600 (gdb_disassembly): Make "di" non static, always initialize and
5601 cleanup. Always use dis_asm_read_memory.
5602 (gdb_dis_asm_read_memory): Delete function.
5604 2003-05-01 Andrew Cagney <cagney@redhat.com>
5606 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5607 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5609 2003-04-30 Andrew Cagney <cagney@redhat.com>
5611 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5612 "tm_print_insn_info".
5613 (TARGET_PRINT_INSN_INFO): Delete macro.
5614 (dis_asm_read_memory): Delete function declaration.
5615 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5616 (tm_print_insn_info): Delete variable definition.
5617 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5618 * gdbarch.h, gdbarch.c: Re-generate.
5619 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5620 "deprecated_tm_print_insn_info".
5621 * mcore-tdep.c (mcore_dump_insn): Ditto.
5622 * mips-tdep.c (mips_gdbarch_init): Ditto.
5623 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5624 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5625 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5626 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5627 instead of TARGET_PRINT_INSN_INFO, add comment.
5628 * s390-tdep.c (s390_get_frame_info): Instead of
5629 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5630 (s390_check_function_end, s390_is_sigreturn): Ditto.
5631 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5632 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5633 * disasm.c: Include "gdbcore.h".
5634 (_initialize_disasm): New function, initialize
5635 "deprecated_tm_print_insn_info".
5636 (deprecated_tm_print_insn_info): New variable.
5637 (dis_asm_read_memory): Moved from "corefile.c", made static.
5638 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5639 * Makefile.in (disasm.o): Update dependencies.
5641 2003-04-30 Andrew Cagney <cagney@redhat.com>
5643 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5645 2003-04-29 Adam Fedor <fedor@gnu.org>
5647 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5648 * infcall.c (find_function_addr): Make non-static.
5649 * infcall.h (find_function_addr): Declare.
5650 * Makefile.in (eval.o): Update dependencies.
5652 2003-04-28 Adam Fedor <fedor@gnu.org>
5654 * symtab.c (symbol_find_demangled_name): Check for and demangle
5656 (symbol_init_demangled_name): Init for language_objc as well.
5658 2003-04-28 Andrew Cagney <cagney@redhat.com>
5660 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5661 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5662 * gdbarch.h, gdbarch.c: Re-generate.
5663 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5664 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5665 * inferior.h (deprecated_read_fp): Rename read_fp.
5666 (generic_target_read_fp): Delete declaration.
5667 * regcache.c (generic_target_read_fp): Delete function.
5668 (deprecated_read_fp): Replace read_fp, use
5669 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5670 * d10v-tdep.c (d10v_read_fp): Delete function.
5671 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5673 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5674 deprecated_target_read_fp to generic_target_read_fp.
5675 * sh-tdep.c (sh_gdbarch_init): Ditto.
5676 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5678 * frv-tdep.c (frv_gdbarch_init): Ditto.
5680 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5681 deprecated_fp_regnum.
5682 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5683 * vax-tdep.c (vax_gdbarch_init): Ditto.
5684 * v850-tdep.c (v850_gdbarch_init): Ditto.
5685 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5686 * sh-tdep.c (sh_gdbarch_init): Ditto.
5687 * s390-tdep.c (s390_gdbarch_init): Ditto.
5688 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5689 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5690 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5691 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5692 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5693 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5694 * i386-tdep.c (i386_gdbarch_init): Ditto.
5695 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5696 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5697 * frv-tdep.c (frv_gdbarch_init): Ditto.
5698 * cris-tdep.c (cris_gdbarch_init): Ditto.
5699 * avr-tdep.c (avr_gdbarch_init): Ditto.
5700 * arm-tdep.c (arm_gdbarch_init): Ditto.
5701 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5703 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5704 * v850-tdep.c (v850_gdbarch_init): Ditto.
5705 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5706 * sh-tdep.c (sh_gdbarch_init): Ditto.
5707 * s390-tdep.c (s390_gdbarch_init): Ditto.
5708 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5709 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5710 * mips-tdep.c (mips_gdbarch_init): Ditto.
5711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5712 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5713 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5714 * frv-tdep.c (frv_gdbarch_init): Ditto.
5715 * avr-tdep.c (avr_gdbarch_init): Ditto.
5716 * arm-tdep.c (arm_gdbarch_init): Ditto.
5718 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5719 DEPRECATED_FP_REGNUM.
5720 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5721 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5722 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5723 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5724 (sparc32_register_virtual_type): Ditto.
5725 * sh-tdep.c (sh64_frame_chain): Ditto.
5726 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5727 (sh_nofp_frame_init_saved_regs): Ditto.
5728 (sh64_nofp_frame_init_saved_regs): Ditto.
5729 (sh_fp_frame_init_saved_regs): Ditto.
5730 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5731 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5732 * procfs.c (procfs_fetch_registers): Ditto.
5733 (procfs_store_registers): Ditto.
5734 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5735 (store_inferior_registers, fetch_core_registers): Ditto.
5736 (fetch_kcore_registers, clear_regs): Ditto.
5737 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5738 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5739 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5740 * nlm/i386.c (do_status): Ditto.
5741 * mipsv4-nat.c (supply_gregset): Ditto.
5742 * mips-tdep.c: Ditto for comments.
5743 * mips-nat.c (fetch_inferior_registers): Ditto.
5744 (store_inferior_registers, fetch_core_registers): Ditto.
5745 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5746 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5747 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5748 (i386_do_pop_frame, i386_register_type): Ditto.
5749 * hppa-tdep.c (hppa_frame_chain): Ditto.
5750 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5751 (hppa_pop_frame, hppa_read_fp): Ditto.
5752 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5753 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5754 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5755 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5756 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5757 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5758 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5759 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5760 * blockframe.c: Ditto for comments.
5761 * arch-utils.h: Ditto for comments.
5762 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5763 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5764 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5765 * alpha-tdep.h: Ditto for comments.
5766 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5767 (alpha_cannot_store_register): Ditto.
5768 (alpha_push_dummy_frame): Ditto.
5769 * alpha-nat.c (supply_gregset): Ditto.
5771 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5772 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5773 * config/sparc/tm-sparc.h: Update comment.
5775 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5776 deprecated_read_fp instead of TARGET_READ_FP.
5777 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5778 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5779 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5780 deprecated_read_fp instead of read_fp.
5781 * s390-tdep.c (s390_push_arguments): Ditto.
5782 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5783 * frame.h: Ditto in comments.
5784 * frame.c (legacy_get_prev_frame): Ditto.
5785 * dummy-frame.c (dummy_frame_this_id): Ditto.
5786 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5788 2003-04-28 Andrew Cagney <cagney@redhat.com>
5790 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5791 * gdbarch.h, gdbarch.c: Re-generate.
5792 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5793 * vax-tdep.c (_initialize_vax_tdep): Update.
5794 * v850-tdep.c (_initialize_v850_tdep): Update.
5795 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5796 * s390-tdep.c (_initialize_s390_tdep): Update.
5797 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5798 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5799 * mips-tdep.c (_initialize_mips_tdep): Update.
5800 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5801 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5802 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5803 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5804 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5805 * frv-tdep.c (_initialize_frv_tdep): Update.
5806 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5807 (_initialize_cris_tdep): Update.
5808 * arch-utils.c (legacy_print_insn): Update.
5809 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5811 2003-04-26 Adam Fedor <fedor@gnu.org>
5813 * linespec.c (decode_objc): New function to decode ObjC calls
5814 (decode_line_1): Check for ObjC calls (using decode_objc)
5815 * Makefile (linespec.o): Update dependencies.
5817 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5819 * breakpoint.h (struct breakpoint_ops): New.
5820 (struct breakpoint): Add ops member.
5822 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5823 (mention): Use new breakpoint ops member.
5824 (set_raw_breakpoint): Initialize ops field to NULL.
5825 (print_exception_catchpoint, print_one_exception_catchpoint)
5826 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5827 (gnu_v3_exception_catchpoint_ops): New.
5828 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5830 2003-04-25 Adam Fedor <fedor@gnu.org>
5832 * Makefile.in (COMMON_OBS): Add objc-lang.o
5834 2003-04-25 Andrew Cagney <cagney@redhat.com>
5836 * d10v-tdep.c (print_insn): Delete function.
5837 (display_trace): Use TARGET_PRINT_INSN.
5838 (_initialize_d10v_tdep): Do not set tm_print_insn.
5839 (d10v_gdbarch_init): Set print_insn.
5841 2003-04-25 Andrew Cagney <cagney@redhat.com>
5843 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5844 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5845 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5846 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5847 (nr_dmap_regs, a0_regnum): ... new functions.
5848 (d10v_print_registers_info): Use a0_regnum, use register_size.
5849 (d10v_register_byte): Delete function.
5850 (d10v_register_raw_size): Delete function.
5851 (d10v_register_type): Use a0_regnum.
5852 (d10v_print_registers_info): Use a0_regnum.
5853 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5854 (d10v_gdbarch_init): Do not set register_byte or
5855 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5856 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5858 (trace_command): Use XCALLOC.
5859 (print_insn): Delete reference to tm_print_insn.
5860 (saved_regs_unwinder): Use store_unsigned_integer instead of
5862 * frame.h (FRAME_OBSTACK_CALLOC): Define
5864 2003-04-25 David Carlton <carlton@bactrian.org>
5866 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5868 2003-04-24 Adam Fedor <fedor@gnu.org>
5870 * objc-lang.c: Include "valprint.h"
5871 * Makefile.in (objc-lang.o): Update dependencies.
5873 2003-04-24 Adam Fedor <fedor@gnu.org>
5875 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5876 architecture dependant compilation and mark as unimplemented
5877 (until they get put in the gdbarch vector).
5879 2003-04-23 David Carlton <carlton@bactrian.org>
5881 * cp-support.c (cp_find_first_component): Accept 'operator' in
5884 2003-04-23 Andrew Cagney <cagney@redhat.com>
5886 * infcall.c (call_function_by_hand): Eliminate redundant
5887 indentation. Move "saved_async" and "old_cleanups" to where they
5890 2003-04-23 Andrew Cagney <cagney@redhat.com>
5892 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5893 and "buffer". Move the "name" code to where it is needed.
5895 2003-04-23 Andrew Cagney <cagney@redhat.com>
5897 * infcall.c (call_function_by_hand): Move variables "start_sp",
5898 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5899 code to ON_STACK switch branch.
5901 2003-04-23 Andrew Cagney <cagney@redhat.com>
5903 * infcall.c (call_function_by_hand): Make declaration of "i",
5904 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5907 2003-04-23 Andrew Cagney <cagney@redhat.com>
5909 * infcall.c (call_function_by_hand): Delete variable
5910 "n_method_args". Localize "param_type"'s declaration to the loop
5911 that it is used. Reinstate code assigning to said variable -
5912 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5913 Rationalize code using "param_type".
5915 2003-04-22 Andrew Cagney <cagney@redhat.com>
5917 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5918 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5919 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5920 to DEPRECATED_PUSH_RETURN_ADDRESS.
5922 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5924 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5925 on the DWARF2 register number prior to fetching a register.
5927 2003-04-22 J. Brobecker <brobecker@gnat.com>
5929 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5930 Update all the tests using SOFT_FLOAT considering the fact that
5931 this macro was always set to 0.
5932 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5933 considering the fact that this macro was always set to 0.
5934 * hppa-tdep.h (hppa_store_return_value): Likewise.
5935 (hppa_extract_return_value): Likewise.
5937 2003-04-22 J. Brobecker <brobecker@gnat.com>
5939 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5940 the hppa-pro target only.
5942 2003-04-21 J. Brobecker <brobecker@gnat.com>
5944 Ongoing multi-arch conversion effort for HP/UX:
5945 * config/pa/tm-hppa.h: Move all macro that are no longer
5946 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5947 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5949 2003-04-21 J. Brobecker <brobecker@gnat.com>
5951 * config/pa/tm-hppa.h: Obsolete a section that was only used
5954 2003-04-21 J. Brobecker <brobecker@gnat.com>
5956 Ongoing multi-arch conversion for HP/UX.
5957 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5958 if already defined (allows hppa64 to stay non-multiarched for now).
5959 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5961 2003-04-21 Andrew Cagney <cagney@redhat.com>
5963 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5965 2003-04-21 Andrew Cagney <cagney@redhat.com>
5967 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5968 "i386_num_mmx_regs".
5970 2003-04-21 Andrew Cagney <cagney@redhat.com>
5972 * infcall.c: New file.
5973 * infcall.h: New file.
5974 * valarith.c: Include "infcall.h".
5975 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5976 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5977 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5978 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5979 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5980 (SFILES): Add "infcall.c"
5981 (COMMON_OBS): Add "infcall.o".
5982 (infcall.o): Specify dependencies.
5983 * value.h (call_function_by_hand): Delete declaration.
5984 * inferior.h (run_stack_dummy): Delete declaration.
5985 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5986 (run_stack_dummy): Move to "infcall.c", merged into
5987 call_function_by_hand.
5988 * valops.c (call_function_by_hand): Moved to "infcall.c".
5989 (find_function_addr, value_arg_coerce): Ditto.
5990 (unwindonsignal_p, coerce_float_to_double): Ditto.
5991 (_initialize_valops): Move "set/show coerce-float-to-double", and
5992 "set/show unwindonsignal" commands to "infcall.c".
5993 * v850-tdep.c, target.h: Update comments.
5994 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5995 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5996 (sh64_init_extra_frame_info): Update comments.
5997 * mn10300-tdep.c: Update comments.
5998 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5999 * config/sparc/tm-sparc.h: Update comments.
6000 * breakpoint.h: Update comments.
6001 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6002 * arm-tdep.c: Update comment.
6004 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6006 * i386-tdep.c (i386_num_register_names): New variable.
6007 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6008 (MM0_REGNUM): Remove redundant parentheses in define.
6009 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6010 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6011 i386_mxcsr_regnum_p): Remove redundant parentheses.
6012 (i386_register_name): Use i386_num_register_names.
6014 * i386-tdep.c (i386_extract_return_value,
6015 i386_store_return_value): Correct check for availability of
6016 floating-point registers.
6018 * i386-tdep.c (i386_frame_num_args): Remove function.
6019 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6021 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6022 mmx_regnum_to_fp_regnum. Adjust all callers.
6024 * i386-tdep.c (i386_get_longjmp_target): Use
6025 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6026 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6029 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6031 * core-regset.c: Update comments to reflect reality. Re-order
6033 (fetch_core_registers): Use switch instead of if. Remove
6034 redundant prototype.
6036 2003-04-18 Jim Blandy <jimb@redhat.com>
6038 * s390-tdep.c (s390_frame_align): New function.
6039 (s390_gdbarch_init): Register it with the gdbarch object.
6041 2003-04-17 Richard Henderson <rth@redhat.com>
6043 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6045 2003-04-17 Michael Snyder <msnyder@redhat.com>
6046 Karen Bennet <bennet@redhat.com>
6048 Committed by Elena Zannoni <ezannoni@redhat.com>
6049 * gdb_gcore.sh: New script to create a core dump of a process.
6051 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6053 * values.c (value_being_returned): Don't fetch the return
6054 value if the return type is void.
6056 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6058 * thread-db.c: Reindented.
6060 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6062 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6063 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6090 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6092 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6093 the size of ``long double'' to 16, instead of 8.
6095 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6097 * i386-linux-nat.c: Add some whitespace to make things more
6099 (fetch_register, store_register, fetch_inferior_registers,
6100 store_inferior_registers): Get rid of assignment in if-statement.
6101 (store_register): Fix typo in error message.
6103 2003-04-16 Andrew Cagney <cagney@redhat.com>
6105 * utils.c (xmmalloc): Always allocate something, matches
6106 libiberty/xmalloc's semantics.
6107 (xmrealloc, xmcalloc): Ditto.
6109 2003-04-16 Andrew Cagney <cagney@redhat.com>
6111 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6113 (get_frame_type): Initialize unwind and type when needed.
6114 (get_frame_id, frame_register_unwind): Ditto.
6116 2003-04-16 Andrew Cagney <cagney@redhat.com>
6118 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6120 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6121 * sparcl-stub.c: Obsolete file.
6122 * config/sparc/tm-sparclet.h: Obsolete file.
6123 * sparclet-stub.c: Obsolete file.
6124 * sparclet-rom.c: Obsolete file.
6125 * sparcl-tdep.c: Obsolete file.
6126 * config/sparc/tm-sparclite.h: Obsolete file.
6127 * config/sparc/sparclite.mt: Obsolete file.
6128 * config/sparc/sparclet.mt: Obsolete file.
6129 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6130 sparc86x-*-* obsolete.
6132 2003-04-15 David Carlton <carlton@math.stanford.edu>
6134 * Makefile.in (SFILES): Add cp-namespace.c.
6135 (COMMON_OBS): Add cp-namespace.o.
6136 (block.o): Depend on gdb_obstack_h and cp_support_h.
6137 (buildsym.o): Depend on cp_support_h.
6138 (cp-namespace.o): New.
6139 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6140 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6141 (dwarf2read.o): Depend on cp_support_h.
6142 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6143 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6144 processing_current_namespace.
6145 (read_namespace): Update processing_current_namespace; check for
6146 anonymous namespaces.
6147 (dwarf2_name): New function.
6148 (dwarf2_extension): Ditto.
6149 * cp-support.h: Update copyright, contributors.
6150 Add inclusion guards.
6151 Add opaque declaration for structs obstack, block, symbol.
6152 (struct using_direct): New struct.
6153 Add declarations for cp_find_first_component,
6154 cp_entire_prefix_len, processing_has_namespace_info,
6155 processing_current_namespace, cp_is_anonymous,
6156 cp_add_using_directive, cp_initialize_namespace,
6157 cp_finalize_namespace, cp_set_block_scope,
6158 cp_scan_for_anonymous_namespaces.
6159 * cp-namespace.c: New file.
6160 * cp-support.c: Update copyright.
6161 Include ctype.h, gdb_assert.h, gdbcmd.h.
6162 New variable maint_cplus_cmd_list.
6163 (cp_find_first_component): New function.
6164 (cp_entire_prefix_len, maint_cplus_command)
6165 (first_component_command, _initialize_cp_support): Ditto.
6166 * buildsym.c: Include cp-support.h.
6167 New variable using_list.
6168 (add_symbol_to_list): Check for anonymous namespaces.
6169 (finish_block): Set block's scope.
6170 (start_symtab): Initialize C++ namespace support.
6171 (end_symtab): Finalize C++ namespace support.
6172 * block.h: Add opaque declarations for structs
6173 block_namespace_info, using_direct, and obstack.
6174 Add declarations for block_set_scope and block_set_using.
6175 (struct block): Add 'language_specific' member.
6176 (BLOCK_NAMESPACE): New macro.
6177 * block.c: Include gdb_obstack.h and cp-support.h.
6178 (struct block_namespace_info): New struct.
6179 (block_set_scope): New function.
6180 (block_set_using, block_initialize_namespace): Ditto.
6182 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6184 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6185 (locate_base): Return early if there aren't any link map offsets.
6186 (svr4_solib_create_inferior_hook): Warn if shared library support
6189 2003-04-14 David Carlton <carlton@math.stanford.edu>
6191 * symtab.c (symbol_set_names): Add prefix when storing Java names
6192 in hash table. Fix for PR java/1039.
6194 2003-04-14 David Carlton <carlton@math.stanford.edu>
6196 * symtab.c (symbol_set_names): Rename 'name' arg to
6197 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6198 * symtab.h: Change 'name' argument in declaration of
6199 symbol_set_names to 'linkage_name'.
6200 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6202 2003-04-14 Andrew Cagney <cagney@redhat.com>
6204 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6205 return the fully sign-extended register value.
6206 (get_frame_pointer): Ditto.
6207 (mips_pop_frame): Initialize "proc_desc" after checking for a
6210 2003-04-14 Andrew Cagney <cagney@redhat.com>
6212 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6213 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6214 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6215 (mips_push_register): Delete function.
6216 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6219 2003-04-14 Jim Blandy <jimb@redhat.com>
6221 * symmisc.c: #include "gdb_regex.h".
6222 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6224 * maint.c (maintenance_list_command): New function.
6225 (_initialize_maint_cmds): Register the above as commands.
6226 * symtab.h (maintenance_list_symtabs,
6227 maintenance_list_psymtabs): New declarations.
6228 * cli/cli-cmds.c (maintenancelistlist): New variable.
6229 (init_cmd_lists): Initialize it.
6230 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6231 * gdbcmd.h (maintenancelistlist): New declaration.
6232 * Makefile.in (symmisc.o): Update dependencies.
6234 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6236 * s390-nat.c: Include asm/types.h for addr_t.
6238 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6240 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6241 actually incoming type.
6243 2003-04-13 Andrew Cagney <cagney@redhat.com>
6245 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6246 get_next_frame and get_frame_saved_regs.
6248 2003-04-13 Andrew Cagney <cagney@redhat.com>
6250 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6251 of gdbarch_num_regs.
6253 2003-04-13 Andrew Cagney <cagney@redhat.com>
6255 * frame.h: Mention what replaced what in "struct frame_info".
6256 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6257 deprecated_update_frame_base_hack and
6258 deprecated_update_frame_pc_hack.
6259 * hppa-tdep.c: Ditto.
6261 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6263 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6264 to read_reg and update its comment. Remove regnum member.
6265 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6266 Don't call read_reg when setting in_reg. Call read_reg to get
6267 the frame base if it's in a register. Return the register number
6268 on the stack instead of in the context. Remove extra arguments
6270 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6271 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6272 the register number on the expression stack.
6273 (needs_frame_read_reg): Remove extra arguments.
6275 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6277 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6279 (execute_stack_op): All callers updated.
6280 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6281 * dwarf2loc.c (find_location_expression): New function.
6282 (dwarf_expr_frame_base): Call it.
6283 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6284 (dwarf2_tracepoint_var_ref): New function, broken out from
6285 locexpr_tracepoint_var_ref.
6286 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6288 (loclist_read_variable, loclist_read_needs_frame): New functions.
6289 (loclist_describe_location, loclist_tracepoint_var_ref): New
6291 (dwarf2_loclist_funcs): New struct location_funcs.
6292 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6293 (struct dwarf2_locexpr_baton): Add comments.
6294 (dwarf2_loclist_funcs): New extern.
6295 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6296 base_address and base_known.
6297 (dwarf_loc_buffer): New variable.
6298 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6299 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6300 (dwarf2_has_info): Initialize dwarf_loc_offset.
6301 (dwarf2_build_psymtabs): Read in .debug_loc.
6302 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6304 (psymtab_to_symtab_1): Likewise. Move base address calculation
6306 (dwarf2_get_pc_bounds): ... here. Use the base address from
6308 (dwarf2_symbol_mark_computed): Handle location lists.
6310 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6312 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6313 if the linkage name demangled successfully.
6315 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6317 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6318 disassmbly_flavour): Removed.
6320 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6322 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6324 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6326 2003-04-12 Andrew Cagney <cagney@redhat.com>
6328 * frame.h (struct frame_info): Move definition from here ...
6329 * frame.c (struct frame_info): ... to here.
6331 2003-04-12 Andrew Cagney <cagney@redhat.com>
6333 * gdbthread.h (save_infrun_state): Delete parameter
6335 (struct thread_info): Delete field "prev_func_start".
6336 (load_infrun_state): Ditto.
6337 * thread.c (load_infrun_state, save_infrun_state): Update.
6338 * infrun.c (prev_func_start): Delete variable.
6339 (context_switch, init_wait_for_inferior): Update.
6340 (stop_stepping, keep_going): Update.
6342 2003-04-12 Andrew Cagney <cagney@redhat.com>
6344 * gdbarch.sh: Add missing opaque declarations.
6345 * gdbarch.h: Regnerate.
6346 * symtab.h: Add missing opaque declarations.
6347 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6348 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6349 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6350 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6351 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6352 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6353 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6354 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6355 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6356 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6357 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6358 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6359 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6361 2003-04-11 Andrew Cagney <cagney@redhat.com>
6363 * frame.c (get_frame_id): Return this frame's "id".
6364 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6366 (legacy_saved_regs_this_id): Replace function body with
6368 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6369 FRAME_OBSTACK_ZALLOC.
6370 (create_new_frame): Mark the frame ID as valid.
6372 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6374 * Makefile.in (libbfd_h): Added missing setting.
6375 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6376 according to the selected ABI.
6378 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6380 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6382 2003-04-11 Andrew Cagney <cagney@redhat.com>
6384 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6385 SAVED_PC_AFTER_CALL.
6386 * gdbarch.h, gdbarch.c: Regenerate.
6387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6388 * x86-64-tdep.c (x86_64_init_abi): Update.
6389 * vax-tdep.c (vax_gdbarch_init): Update.
6390 * v850-tdep.c (v850_gdbarch_init): Update.
6391 * sparc-tdep.c (sparc_gdbarch_init): Update.
6392 * sh-tdep.c (sh_gdbarch_init): Update.
6393 * s390-tdep.c (s390_gdbarch_init): Update.
6394 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6395 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6396 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6397 * mips-tdep.c (mips_gdbarch_init): Update.
6398 * mcore-tdep.c (mcore_gdbarch_init): Update.
6399 * m68k-tdep.c (m68k_gdbarch_init): Update.
6400 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6401 * ia64-tdep.c (ia64_gdbarch_init): Update.
6402 (ia64_saved_pc_after_call): Update declaration.
6403 * i386ly-tdep.c (i386lynx_init_abi): Update.
6404 * i386-tdep.c (i386_gdbarch_init): Update.
6405 * hppa-tdep.c (hppa_gdbarch_init): Update.
6406 * h8300-tdep.c (h8300_gdbarch_init): Update.
6407 * frv-tdep.c (frv_gdbarch_init): Update.
6408 * cris-tdep.c (cris_gdbarch_init): Update.
6409 * avr-tdep.c (avr_gdbarch_init): Update.
6410 * arm-tdep.c (arm_gdbarch_init): Update.
6411 * alpha-tdep.c (alpha_gdbarch_init): Update.
6412 * ns32knbsd-nat.c (frame_num_args): Update.
6413 * ns32k-tdep.c (umax_frame_num_args): Update.
6414 * mips-tdep.c (mips_init_frame_pc_first): Update.
6415 * infrun.c (step_over_function): Update.
6416 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6417 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6418 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6419 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6420 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6421 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6422 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6423 * arch-utils.c (init_frame_pc_default): Update.
6424 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6425 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6428 2003-04-11 Andrew Cagney <cagney@redhat.com>
6430 * i387-tdep.c: Update copyright.
6431 (i387_to_double): Delete function.
6432 (double_to_i387): Delete function.
6434 2003-04-10 Andrew Cagney <cagney@redhat.com>
6436 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6437 frame's function's address. Simplify.
6438 (d10v_frame_unwind_cache): Check that the frame's function is
6441 2003-04-10 Jim Blandy <jimb@redhat.com>
6443 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6444 call to set_gdbarch_deprecated_push_arguments.
6446 2003-04-10 Andrew Cagney <cagney@redhat.com>
6448 * frame.c (fprint_frame_id): New function.
6449 (fprint_frame_type, fprint_frame): New function.
6450 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6451 (create_sentinel_frame, get_frame_id): Ditto.
6452 (frame_id_p, frame_id_eq): Ditto.
6453 (frame_id_inner, create_new_frame): Ditto.
6454 (legacy_get_prev_frame, get_prev_frame): Ditto.
6455 (deprecated_update_frame_pc_hack): Ditto.
6456 (frame_register_unwind): Ditto.
6457 (deprecated_update_frame_base_hack): Ditto.
6459 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6461 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6462 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6463 frame_chain function.
6464 * Makefile.in: Add dependencies due to above change.
6466 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6468 * blockframe.c (legacy_frame_chain_valid): Move call to
6469 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6472 2003-04-09 Andrew Cagney <cagney@redhat.com>
6474 * frame.h (struct frame_id): Replace "pc" and "base" with
6475 "stack_addr" and "code_addr". Update comments.
6476 (frame_id_build): Update parameter names and comment.
6477 (struct frame_info): Replace "id_p" and "id" with "this_id".
6478 * dummy-frame.c (dummy_frame_this_id): Update.
6479 * breakpoint.c (print_one_breakpoint): Update.
6480 * frame.c (get_frame_id): Update.
6481 (get_frame_base, frame_id_build): Update.
6482 (create_sentinel_frame, legacy_get_prev_frame): Update.
6483 (deprecated_update_frame_base_hack): Update.
6484 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6485 (frame_id_inner): Ditto.
6487 2003-04-09 Andrew Cagney <cagney@redhat.com>
6489 * defs.h (gdb_print_host_address): Make "addr" parameter a
6491 * utils.c (gdb_print_host_address): Update.
6493 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6495 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6496 register number for R0 is 0.
6498 2003-04-09 J. Brobecker <brobecker@gnat.com>
6500 * frame.h (struct gdbarch): Add opaque structure definition
6501 to avoid a compilation warning on LynxOS 4.0.
6503 2003-04-09 Andrew Cagney <cagney@redhat.com>
6505 * frame.h (struct frame_info): Delete field "pc". Replace
6506 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6508 * frame.c (frame_pc_unwind): Update.
6509 (create_sentinel_frame): Do not set "pc".
6510 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6511 (get_frame_pc): Call frame_pc_unwind.
6512 (deprecated_update_frame_pc_hack): Update.
6513 (create_new_frame): Use "pc" not "->pc".
6515 2003-04-09 Andrew Cagney <cagney@redhat.com>
6517 * frame.c (get_frame_id): Eliminate code updating "frame".
6518 (legacy_get_prev_frame): Ditto.
6519 (get_frame_base): Return id.base directly.
6520 (deprecated_update_frame_base_hack): Update "id.base".
6521 * frame.h (struct frame_info): Delete field "frame".
6523 2003-04-09 Andrew Cagney <cagney@redhat.com>
6525 * NEWS: Mention that the "Sequent family" is obsolete.
6526 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6527 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6528 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6529 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6530 * config/i386/tm-ptx4.h: Obsolete file.
6531 * config/i386/tm-ptx.h: Obsolete file.
6532 * symm-tdep.c: Obsolete file.
6533 * config/i386/symmetry.mt: Obsolete file.
6534 * config/i386/tm-symmetry.h: Obsolete file.
6535 * symm-nat.c: Obsolete file.
6536 * config/i386/nm-symmetry.h: Obsolete file.
6537 * config/i386/xm-symmetry.h: Obsolete file.
6538 * config/i386/symmetry.mh: Obsolete file.
6539 * config/i386/nm-ptx4.h: Obsolete file.
6540 * config/i386/ptx4.mh: Obsolete file.
6541 * config/i386/ptx.mt: Obsolete file.
6542 * config/i386/ptx.mh: Obsolete file.
6543 * config/i386/xm-ptx4.h: Obsolete file.
6544 * config/i386/xm-ptx.h: Obsolete file.
6546 2003-04-09 Andrew Cagney <cagney@redhat.com>
6548 Obsolete mips*-*-mach3*.
6549 * NEWS: Mention that mips*-*-mach3* is obsolete.
6550 * m3-nat.c: Obsolete file.
6551 * config/nm-m3.h: Obsolete file.
6552 * config/mips/tm-mipsm3.h: Obsolete file.
6553 * config/mips/mipsm3.mt: Obsolete file.
6554 * config/mips/mipsm3.mh: Obsolete file.
6555 * config/mips/xm-mipsm3.h: Obsolete file.
6556 * mipsm3-nat.c: Obsolete file.
6557 * configure.host: Obsolete mips-dec-mach3*.
6558 * configure.tgt: Obsolete mips*-*-mach3*.
6560 2003-04-09 Andrew Cagney <cagney@redhat.com>
6562 * doublest.h: Update copyright.
6563 (deprecated_store_floating, deprecated_extract_floating): Rename
6564 store_floating and extract_floating. Update comments.
6565 * doublest.c: Update copyright.
6566 (extract_floating_by_length): Replace extract_floating.
6567 (store_floating_by_length): Replace store_floating.
6568 (deprecated_extract_floating): New function.
6569 (deprecated_store_floating): New function.
6570 (extract_typed_floating): Call extract_floating_by_length.
6571 (store_typed_floating): Call store_floating_by_length.
6572 * x86-64-tdep.c (x86_64_store_return_value): Update.
6573 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6574 (sh64_extract_return_value): Update.
6575 (sh_sh4_register_convert_to_virtual): Update.
6576 (sh_sh64_register_convert_to_virtual): Update.
6577 (sh_sh4_register_convert_to_raw): Update.
6578 (sh_sh64_register_convert_to_raw): Update.
6579 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6580 (rs6000_register_convert_to_raw): Update.
6581 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6582 (ia64_register_convert_to_raw): Update.
6583 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6584 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6585 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6586 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6587 (alpha_register_convert_to_raw): Update.
6589 2003-04-08 Andrew Cagney <cagney@redhat.com>
6591 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6592 * gdbarch.h, gdbarch.c: Re-generate.
6593 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6594 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6595 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6596 conditionally, use frame_pc_unwind as an alternative. Add
6598 * arch-utils.c (init_frame_pc_default): Only call
6599 SAVED_PC_AFTER_CALL when available.
6601 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6603 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6604 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6605 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6606 (start_remote): Ditto.
6607 (handle_inferior_event): Ditto.
6608 (save_inferior_status): Ditto.
6609 (restore_inferior_status): Ditto.
6610 * infcmd.c (attach_command): Ditto.
6611 * fork-child.c (startup_inferior): Ditto.
6612 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6613 * alpha-tdep.c (heuristic_proc_start): Ditto.
6614 * mips-tdep.c (heuristic_proc_start): Ditto.
6615 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6616 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6617 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6618 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6619 * remote-vx.c (vx_create_inferior): Ditto.
6621 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6623 * infrun.c (stop_soon_quietly): Make it an enum, to better
6624 override the default behavior of handle_inferior_event.
6625 (clear_proceed_status): Update uses of stop_soon_quietly to
6626 reflect that it is now an enum.
6627 (start_remote): Ditto.
6628 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6629 is set to handle the new GNU/Linux kernel behavior for
6630 attach/sigstop. Update uses of stop_soon_quietly.
6631 * inferior.h (enum stop_kind): New enum.
6632 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6633 Reset normal handle_inferior_event behavior, afterwards.
6634 * fork-child.c (startup_inferior): Update.
6635 * alpha-tdep.c (heuristic_proc_start): Update.
6636 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6637 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6638 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6639 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6640 * remote-vx.c (vx_create_inferior): Update.
6641 * mips-tdep.c (heuristic_proc_start): Update.
6643 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6645 * disasm.c (dump_insns): Move variables inside loop, or they will
6646 be freed more than once, causing wild memory corruptions.
6647 (gdb_disassembly): Look for the substring "-thread",
6648 instead of "-threads" in the target name, to make sure to find
6649 the 'multi-thread' target. Also, make sure we do the right thing
6650 with the "core" target.
6652 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6654 * mips-tdep.c (mips_print_fp_register): New function, created from
6655 do_fp_register_row(). Registers are now (also) printed as hex.
6656 Only one register is printed per row.
6657 (mips_print_register, do_fp_register_row): Print floating point
6658 registers with mips_print_fp_register().
6660 2003-04-06 Andrew Cagney <cagney@redhat.com>
6662 * valprint.h (inspect_it): Add extern declaration.
6663 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6664 (selectors_info, classes_info): Ditto.
6665 (find_objc_msgcall): Fix indentation.
6666 (objc_printstr): Delete extern declarations.
6668 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6670 2003-04-06 Andrew Cagney <cagney@redhat.com>
6672 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6674 * frame.c (legacy_saved_regs_this_id): Update.
6675 (legacy_get_prev_frame): Update.
6676 * xstormy16-tdep.c: Update comment.
6677 * sparc-tdep.c (sparc_frame_chain): Update comment.
6678 * blockframe.c (legacy_frame_chain_valid): Update.
6680 2003-04-06 Andrew Cagney <cagney@redhat.com>
6682 * valprint.c (val_print_type_code_int): Delete #ifdef
6683 PRINT_TYPELESS_INTEGER code.
6685 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6686 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6687 multi-arch definition.
6688 * gdbarch.h: Re-generate.
6690 2003-04-05 Andrew Cagney <cagney@redhat.com>
6692 Eliminate FRAME_FIND_SAVED_REGS.
6693 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6694 Change FSR parameter to a pointer.
6695 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6696 Assume FSR parameter is a pointer.
6697 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6699 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6700 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6701 saved_regs a pointer.
6702 (hppa_frame_saved_pc): Ditto.
6703 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6704 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6706 (restore_pc_queue): Make fsr a pointer.
6707 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6708 (hppa_frame_chain): Make saved_regs a pointer, call
6709 hppa_frame_init_saved_regs.
6710 * sparc-tdep.c: Include "gdb_assert.h".
6711 (sparc_frame_find_saved_regs): Replace internal_error with
6713 * remote-vxsparc.c (vx_read_register): Delete reference to
6714 FRAME_FIND_SAVED_REGS.
6715 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6716 * gdbarch.h: Regenerate.
6717 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6718 (deprecated_get_frame_saved_regs): Delete declaration.
6719 (struct frame_saved_regs): Delete definition.
6720 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6721 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6722 (hppa_frame_find_saved_regs): Delete declaration.
6723 (FRAME_FIND_SAVED_REGS): Delete macro.
6724 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6725 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6726 FRAME_FIND_SAVED_REGS in comment.
6728 2003-04-05 Andrew Cagney <cagney@redhat.com>
6730 * frame.c (frame_func_unwind, get_frame_func): New functions.
6731 * frame.h (get_frame_func, frame_func_unwind): Declare.
6732 (struct frame_info): Add field "prev_func" for caching the
6733 previous frame's function address.
6734 * arm-tdep.c (arm_frameless_function_invocation): Combine
6735 get_pc_function_start and get_frame_pc into get_frame_func.
6736 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6737 (sh64_nofp_frame_init_saved_regs): Ditto.
6738 * s390-tdep.c (s390_function_start): Ditto.
6739 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6740 (rs6000_frameless_function_invocation): Ditto.
6741 (rs6000_frame_saved_pc): Ditto.
6742 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6743 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6744 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6745 (i386_frame_init_saved_regs): Ditto.
6746 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6747 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6748 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6749 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6750 * blockframe.c (frameless_look_for_prologue): Ditto.
6752 2003-04-05 Andrew Cagney <cagney@redhat.com>
6754 * frame.c (legacy_get_prev_frame): Link prev to next at the
6755 function start. Update comments.
6757 2003-04-05 Andrew Cagney <cagney@redhat.com>
6759 * frame.c (get_frame_id): Update comment.
6760 (legacy_get_prev_frame): Update comment.
6761 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6762 * gdbarch.h: Regenerate.
6763 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6764 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6766 2003-04-05 Andrew Cagney <cagney@redhat.com>
6768 * stack.c (print_frame_info): Use get_frame_pc.
6770 2003-04-04 Andrew Cagney <cagney@redhat.com>
6772 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6773 the frame's type from the unwinder.
6774 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6775 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6776 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6777 (get_frame_base_address): Use get_frame_type.
6778 (get_frame_locals_address, get_frame_args_address): Ditto.
6779 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6780 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6781 (struct frame_info): Add comment explaining why the frame contains
6783 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6784 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6785 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6787 * frame-unwind.h: Include "frame.h".
6788 (struct frame_unwind): Add "type" field.
6789 * Makefile.in (frame_unwind_h): Add $(frame_h).
6791 2003-04-04 Andrew Cagney <cagney@redhat.com>
6793 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6794 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6795 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6797 (d10v_unwind_dummy_id): Use frame_id_build.
6798 * frame.c (find_frame_sal): Use get_frame_pc.
6799 (create_new_frame): Use deprecated_update_frame_pc_hack and
6800 deprecated_update_frame_base_hack.
6801 (create_sentinel_frame): Add comment about ->pc going away.
6802 (get_prev_frame): Add comment about ->pc going away.
6803 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6804 frame_id_build, deprecated_update_frame_pc_hack and
6805 deprecated_update_frame_base_hack.
6806 (select_frame): Use get_frame_pc.
6807 (legacy_saved_regs_this_id): Use frame_id_build.
6809 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6811 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6812 signed integer case.
6813 (classify_argument): Handle enumerations and references.
6815 2003-04-04 Andrew Cagney <cagney@redhat.com>
6817 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6820 2003-04-01 Adam Fedor <fedor@gnu.org>
6822 * gdb/objc-lang.c (selectors_info): Replace calls to
6823 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6824 SYMBOL_NATURAL_NAME.
6825 (classes_info, find_methods): Likewise.
6827 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6829 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6830 ``mach'' to the value determined by bfd_default_set_arch_mach().
6832 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6834 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6835 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6836 (mi-cmd-file.o): Update dependencies.
6838 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6840 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6841 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6843 2003-04-01 Adam Fedor <fedor@gnu.org>
6845 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6846 * language.h (struct language_defn): Add la_demangle.
6847 (language_demangle): Declare.
6848 * language.c (language_demangle): New function.
6849 (unk_lang_demangle): Likewise.
6850 (unknown_language_defn, auto_language_defn, local_language_defn):
6851 Add ukn_lang_demangle.
6852 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6853 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6854 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6855 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6856 * jv-lang.c (java_demangle): New function
6857 (java_language_defn): Use it for la_demangle element.
6858 * objc-lang.c (objc_demangle): Add options argument
6859 (objc_language_defn): Use objc_demangle for la_demangle element.
6860 * maint.c (maintenance_demangle): Replace switch with
6861 call to language_demangle.
6862 * utils.c (fprintf_symbol_filtered): Likewise.
6864 2003-04-01 Andrew Cagney <cagney@redhat.com>
6866 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6867 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6868 PRINT_TYPELESS_INTEGER.
6869 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6870 PUSH_RETURN_ADDRESS.
6872 2003-04-01 Andrew Cagney <cagney@redhat.com>
6874 * Makefile.in (d10v-tdep.o): Update dependencies.
6875 * d10v-tdep.c: Include "frame-base.h".
6876 (d10v_frame_unwind): Make constant.
6877 (d10v_frame_base_address): New function.
6878 (d10v_frame_base): New variable.
6879 (d10v_gdbarch_init): Set frame_base default.
6880 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6882 (d10v_frame_unwind_cache): Set and use "prev_sp".
6883 (d10v_frame_this_id): Use the previous frame's inner most stack
6884 address and this frame's func address for the frame ID. Use
6885 frame_id_build. Don't analyze beyond the current instruction.
6887 2003-04-01 Andrew Cagney <cagney@redhat.com>
6889 * frame.h (get_frame_locals_address, get_frame_args_address):
6890 Refer to the base address, instead of the address of the first
6893 2003-04-01 Andrew Cagney <cagney@redhat.com>
6895 Add frame debug info addresses:
6896 * frame-base.c: New file.
6897 * frame-base.h: New file.
6898 * frame.h (struct frame_base): Add opaque declaration.
6899 (get_frame_base): Update comment.
6900 (get_frame_base_address): Declare.
6901 (get_frame_locals_address): Declare.
6902 (get_frame_args_address): Declare.
6903 (struct frame_info): Add "base" and "base_cache". Update
6904 comments on the unwinder.
6905 * frame.c: Include "frame-base.h".
6906 (get_frame_locals_address): New function.
6907 (get_frame_base_address): New function.
6908 (get_frame_args_address): New function.
6909 * findvar.c (read_var_value): Use get_frame_locals_address and
6910 get_frame_args_address.
6911 * stack.c (frame_info): Use get_frame_locals_address and
6912 get_frame_args_address.
6913 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6914 moved to "frame-base.c".
6915 * printcmd.c (print_frame_nameless_args): Ditto.
6916 * symtab.h (address_class): Update comments.
6917 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6918 get_frame_base_address.
6919 * dwarf2expr.c (execute_stack_op): Ditto.
6920 * Makefile.in (frame_base_h): Define.
6921 (frame.o): Update dependencies.
6922 (frame-base.o): Add dependencies.
6923 (SFILES): Add frame-base.c.
6924 (COMMON_OBS): Add frame-base.o.
6926 2003-04-01 Andrew Cagney <cagney@redhat.com>
6928 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6929 CALL_DUMMY_LENGTH): Ditto.
6930 * gdbarch.c: Re-generate.
6931 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6932 (CALL_DUMMY_LENGTH): Delete macro.
6933 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6934 * arm-tdep.c (arm_gdbarch_init): Ditto.
6935 * avr-tdep.c (avr_gdbarch_init): Ditto.
6936 * cris-tdep.c (cris_gdbarch_init): Ditto.
6937 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6938 * frv-tdep.c (frv_gdbarch_init): Ditto.
6939 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6940 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6941 * i386-tdep.c (i386_gdbarch_init): Ditto.
6942 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6943 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6944 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6945 * mips-tdep.c (mips_gdbarch_init): Ditto.
6946 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6947 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6948 * s390-tdep.c (s390_gdbarch_init): Ditto.
6949 * sh-tdep.c (sh_gdbarch_init): Ditto.
6950 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6951 * v850-tdep.c (v850_gdbarch_init): Ditto.
6952 * vax-tdep.c (vax_gdbarch_init): Ditto.
6953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6955 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6957 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6959 2003-04-01 Andrew Cagney <cagney@redhat.com>
6961 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6962 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6963 * gdbarch.h, gdbarch.c: Re-generate.
6964 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6965 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6966 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6967 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6968 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6969 * infcmd.c (run_stack_dummy): Simplify assuming
6970 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6971 * infrun.c (handle_inferior_event): Ditto.
6972 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6973 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6974 * arm-tdep.c (arm_gdbarch_init): Ditto.
6975 * avr-tdep.c (avr_gdbarch_init): Ditto.
6976 * cris-tdep.c (cris_gdbarch_init): Ditto.
6977 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6978 * frv-tdep.c (frv_gdbarch_init): Ditto.
6979 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6980 * i386-tdep.c (i386_gdbarch_init): Ditto.
6981 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6983 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6984 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6985 * mips-tdep.c (mips_gdbarch_init): Ditto.
6986 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6987 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6988 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6989 * s390-tdep.c (s390_gdbarch_init): Ditto.
6990 * sh-tdep.c (sh_gdbarch_init): Ditto.
6991 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6992 * v850-tdep.c (v850_gdbarch_init): Ditto.
6993 * vax-tdep.c (vax_gdbarch_init): Ditto.
6994 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6996 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6998 * symfile.c (symfile_relocate_debug_section): Update call to
6999 bfd_simple_get_relocated_section_contents.
7001 2003-03-31 Andrew Cagney <cagney@redhat.com>
7003 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7004 * gdbarch.h, gdbarch.c: Regenerate.
7005 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7006 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7008 * frame.h (generic_fix_call_dummy): Delete declaration.
7009 * dummy-frame.h: Update comment.
7010 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7013 * sh-tdep.c (sh_gdbarch_init): Ditto.
7014 * s390-tdep.c (s390_gdbarch_init): Ditto.
7015 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7016 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7018 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7019 * i386-tdep.c (i386_gdbarch_init): Ditto.
7020 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7021 * frv-tdep.c (frv_gdbarch_init): Ditto.
7022 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7023 * cris-tdep.c (cris_gdbarch_init): Ditto.
7024 * avr-tdep.c (avr_gdbarch_init): Ditto.
7025 * arm-tdep.c (arm_gdbarch_init): Ditto.
7027 2003-03-31 J. Brobecker <brobecker@gnat.com>
7029 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7030 (INIT_FRAME_AP): Likewise.
7031 (EXTRA_FRAME_INFO): Likewise.
7033 2003-03-31 Andrew Cagney <cagney@redhat.com>
7035 * gdbarch.sh: Include "symfile.h".
7036 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7037 * gdbarch.h, gdbarch.c: Re-generate.
7038 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7039 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7040 call_dummy_address, the default is at entry_point_address.
7041 * v850-tdep.c (v850_gdbarch_init): Ditto.
7042 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7043 * sh-tdep.c (sh_gdbarch_init): Ditto.
7044 * s390-tdep.c (s390_gdbarch_init): Ditto.
7045 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7046 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7047 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7048 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7049 * i386-tdep.c (i386_gdbarch_init): Ditto.
7050 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7051 * frv-tdep.c (frv_gdbarch_init): Ditto.
7052 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7053 * cris-tdep.c (cris_gdbarch_init): Ditto.
7054 * arm-tdep.c (arm_gdbarch_init): Ditto.
7056 2003-03-31 Andrew Cagney <cagney@redhat.com>
7058 * gdbarch.sh (CALL_DUMMY_P): Delete.
7059 * gdbarch.h, gdbarch.c: Re-generate.
7060 * inferior.h (CALL_DUMMY_P): Delete macro.
7061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7062 * vax-tdep.c (vax_gdbarch_init): Update.
7063 * v850-tdep.c (v850_gdbarch_init): Update.
7064 * sparc-tdep.c (sparc_gdbarch_init): Update.
7065 * sh-tdep.c (sh_gdbarch_init): Update.
7066 * s390-tdep.c (s390_gdbarch_init): Update.
7067 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7068 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7069 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7070 * mips-tdep.c (mips_gdbarch_init): Update.
7071 * mcore-tdep.c (mcore_gdbarch_init): Update.
7072 * m68k-tdep.c (m68k_gdbarch_init): Update.
7073 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7074 * ia64-tdep.c (ia64_gdbarch_init): Update.
7075 * i386-tdep.c (i386_gdbarch_init): Update.
7076 * h8300-tdep.c (h8300_gdbarch_init): Update.
7077 * frv-tdep.c (frv_gdbarch_init): Update.
7078 * d10v-tdep.c (d10v_gdbarch_init): Update.
7079 * cris-tdep.c (cris_gdbarch_init): Update.
7080 * breakpoint.c (deprecated_frame_in_dummy): Update.
7081 * avr-tdep.c (avr_gdbarch_init): Update.
7082 * alpha-tdep.c (alpha_gdbarch_init): Update.
7083 * arm-tdep.c (arm_gdbarch_init): Update.
7084 * dummy-frame.c (dummy_frame_this_id): Update comments.
7085 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7086 * frame.c (legacy_get_prev_frame): Ditto.
7087 * valops.c (call_function_by_hand): Delete function.
7088 (hand_function_call): Rename to call_function_by_hand
7090 2003-03-30 Andrew Cagney <cagney@redhat.com>
7092 2002-11-10 Klee Dienes <kdienes@apple.com>
7093 * value.h (struct value): Update comment.
7095 2003-03-30 Andrew Cagney <cagney@redhat.com>
7097 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7099 (d10v_gdbarch_init): Do not set fp_regnum.
7101 * frame.c (get_frame_base): Force ID initialization.
7102 (get_prev_frame): Move computation of the frame ID from here ...
7103 (get_frame_id): ... to here.
7104 (legacy_get_prev_frame): Mark the frame ID as valid.
7105 * frame.h (struct frame_info): Add field "id_p".
7107 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7109 * i386-tdep.c (i386_store_struct_return): Removed.
7110 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7112 2003-03-30 Andrew Cagney <cagney@redhat.com>
7114 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7115 * gdbarch.h, gdbarch.c: Regenerate.
7116 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7118 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7119 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7120 * i386-tdep.c (i386_gdbarch_init): Ditto.
7121 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7122 * cris-tdep.c (cris_gdbarch_init): Ditto.
7123 * vax-tdep.c (vax_gdbarch_init): Ditto.
7124 * s390-tdep.c (s390_gdbarch_init): Ditto.
7125 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7126 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7127 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7128 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7129 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7130 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7131 * sparc-tdep.c (sparc_gdbarch_init): Update.
7132 * sh-tdep.c (sh_gdbarch_init): Update.
7133 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7134 * mips-tdep.c (mips_gdbarch_init): Update.
7135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7136 * ia64-tdep.c (ia64_gdbarch_init): Update.
7137 * frv-tdep.c (frv_gdbarch_init): Update.
7138 * avr-tdep.c (avr_gdbarch_init): Update.
7139 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7140 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7141 instead of when push_dummy_call is not available.
7143 2003-03-30 Andrew Cagney <cagney@redhat.com>
7145 * infttrace.c: Include "gdbthread.h".
7146 (parent_attach_all): Fix function signature.
7147 (call_ptrace): Update call.
7148 * Makefile.in (infttrace.o): Update dependencies.
7150 2003-03-30 Andrew Cagney <cagney@redhat.com>
7152 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7153 PUSH_RETURN_ADDRESS.
7154 * gdbarch.h, gdbarch.c: Regenerate.
7155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7156 * x86-64-tdep.c (x86_64_init_abi): Update.
7157 * v850-tdep.c (v850_gdbarch_init): Update.
7158 * sparc-tdep.c (sparc_gdbarch_init): Update.
7159 * sh-tdep.c (sh_gdbarch_init): Update.
7160 * s390-tdep.c (s390_gdbarch_init): Update.
7161 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7162 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7163 * mips-tdep.c (mips_gdbarch_init): Update.
7164 * mcore-tdep.c (mcore_gdbarch_init): Update.
7165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7166 * ia64-tdep.c (ia64_gdbarch_init): Update.
7167 * i386-tdep.c (i386_gdbarch_init): Update.
7168 * h8300-tdep.c (h8300_gdbarch_init): Update.
7169 * frv-tdep.c (frv_gdbarch_init): Update.
7170 * cris-tdep.c (cris_gdbarch_init): Update.
7171 * avr-tdep.c (avr_gdbarch_init): Update.
7172 * arm-tdep.c (arm_gdbarch_init): Update.
7173 * valops.c (hand_function_call): Update.
7175 2003-03-29 Andrew Cagney <cagney@redhat.com>
7177 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7178 sizeof_call_dummy_words.
7179 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7181 * gdbarch.h: Regenerate.
7183 2003-03-29 Andrew Cagney <cagney@redhat.com>
7185 * infttrace.h: New file.
7186 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7187 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7188 (hpread_read_doc_function_type): Detect an initialized type1.
7189 (hpread_quick_traverse): Initialize mod_name_string.
7190 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7191 (som_solib_get_solib_by_pc): Declare.
7192 (so_lib_thread_start_addr): Declare.
7193 (no_shared_libraries): Declare.
7194 * somread.c (init_import_symbols): Make static. Add forward
7196 * config/pa/nm-hppah.h: Include "infttrace.h" for
7198 (hppa_insert_hw_watchpoint): Declare.
7199 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7200 * hppah-nat.c: Include "gdb_string.h".
7201 (parent_attach_all): Delete extern declaration, moved to
7203 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7205 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7206 * Makefile.in (infttrace_h): Define.
7207 (hpread.o): Update dependencies.
7208 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7209 * hppa-hpux-tdep.c: Include "gdb_string.h".
7210 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7211 * infrun.c (handle_inferior_event): Always initialize
7212 stepped_after_stopped_by_watchpoint. Add default and remove
7213 fallthrough in switch statement.
7214 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7216 (hppa_remove_hw_watchpoint): Ditto.
7218 2003-03-29 Andrew Cagney <cagney@redhat.com>
7220 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7223 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7225 * arm-tdep.c (arm_push_arguments): Delete.
7226 (struct stack_item): New type.
7227 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7228 (arm_store_struct_return): Delte.
7229 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7230 arm_push_arguments or arm_store_struct_return.
7232 2003-03-28 Andrew Cagney <cagney@redhat.com>
7234 * Makefile.in (d10v-tdep.o): Update dependencies.
7235 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7236 * d10v-tdep.c: Include "remote.h".
7237 (target_resume_hook): Delete extern declaration.
7238 (target_wait_loop_hook): Ditto.
7239 (tdisassemble_command): Eliminate assignment in "if" conditional.
7240 (d10v_ts2_register_sim_regno): Eliminate call to
7241 legacy_register_sim_regno.
7242 (d10v_ts3_register_sim_regno): Ditto.
7244 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7246 * thread.c: Reindented.
7248 * linux-proc.c: Ditto.
7250 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7252 * MAINTAINERS (write after approval): Add myself.
7254 2003-03-27 Theodore A. Roth <troth@openavr.org>
7256 * objc-exp.y: Add missing semi-colons.
7258 2003-03-27 Andrew Cagney <cagney@redhat.com>
7260 * regcache.c (write_sp): Delete function and references.
7261 * inferior.h (write_sp): Delete declaration.
7262 * valops.c (hand_function_call): Replace write_sp with
7264 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7265 (sparc_pop_frame): Ditto.
7267 2003-03-27 Andrew Cagney <cagney@redhat.com>
7269 * NEWS: Mention removal of support for hppa*-*-bsd* and
7270 hppa*-*-osf* natives, and hppa*-*-pro* target.
7271 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7272 * config/pa/xm-pa.h: Obsolete file.
7273 * config/pa/xm-hppab.h: Obsolete file.
7274 * config/pa/nm-hppab.h: Obsolete file.
7275 * config/pa/tm-hppab.h: Obsolete file.
7276 * config/pa/tm-hppao.h: Obsolete file.
7277 * config/pa/nm-hppao.h: Obsolete file.
7278 * config/pa/tm-pro.h: Obsolete file.
7279 * config/pa/hppaosf.mt: Obsolete file.
7280 * config/pa/hppaosf.mh: Obsolete file.
7281 * config/pa/hppapro.mt: Obsolete file.
7282 * config/pa/hppabsd.mt: Obsolete file.
7283 * config/pa/hppabsd.mh: Obsolete file.
7284 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7285 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7288 2003-03-27 Andrew Cagney <cagney@redhat.com>
7290 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7291 push_arguments. Don't set push_return_address or write_sp.
7292 (d10v_push_dummy_call): Replace d10v_push_arguments.
7293 (d10v_push_return_address, d10v_write_sp): Delete function,
7294 handled by push_dummy_call.
7296 2003-03-26 Andrew Cagney <cagney@redhat.com>
7298 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7299 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7300 regcache and dummy_addr parameters.
7301 * gdbarch.h, gdbarch.c: Re-generate.
7302 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7303 available; assume it will handle stack alignment and return
7304 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7305 legacy_push_arguments.
7306 (legacy_push_arguments): Rename default_push_arguments.
7307 * value.h (legacy_push_arguments): Rename default_push_arguments.
7308 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7309 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7310 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7311 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7312 * config/i386/tm-symmetry.h: Update.
7313 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7314 * x86-64-tdep.c (x86_64_init_abi): Update.
7315 * v850-tdep.c (v850_gdbarch_init): Update.
7316 * sparc-tdep.c (sparc_gdbarch_init): Update.
7317 * sh-tdep.c (sh_gdbarch_init): Update.
7318 * s390-tdep.c (s390_gdbarch_init): Update.
7319 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7320 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7321 * mips-tdep.c (mips_gdbarch_init): Update.
7322 * mcore-tdep.c (mcore_gdbarch_init): Update.
7323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7324 * ia64-tdep.c (ia64_gdbarch_init): Update.
7325 * i386-tdep.c (i386_gdbarch_init): Update.
7326 * hppa-tdep.c (hppa_gdbarch_init): Update.
7327 * h8300-tdep.c (h8300_gdbarch_init): Update.
7328 * frv-tdep.c (frv_gdbarch_init): Update.
7329 * d10v-tdep.c (d10v_gdbarch_init): Update.
7330 * cris-tdep.c (cris_gdbarch_init): Update.
7331 * avr-tdep.c (avr_gdbarch_init): Update.
7332 * arm-tdep.c (arm_gdbarch_init): Update.
7333 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7334 * alpha-tdep.c (alpha_gdbarch_init): Update.
7336 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7338 * signals/signals.c (do_target_signal_to_host): Correct realtime
7341 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7343 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7344 (struct sal_chain, map_catch_names): Remove.
7345 (catch_exception_command_1): Don't call
7346 handle_gnu_4_16_catch_command.
7348 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7350 From Mark Dettinger <dettinge@de.ibm.com>:
7351 * dwarf2cfi.c (read_2u): Increment pointer by two.
7353 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7355 * signals/signals.c: Fix typos in last change.
7357 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7359 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7360 not already defined. Use __SIGRTMIN if available.
7361 (target_signal_from_host): Remove SIGRTMIN block.
7362 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7363 the signal is within the realtime range.
7365 2003-03-25 Adam Fedor <fedor@gnu.org>
7367 * Makefile.in (infrun.o): Add $(language_h)
7368 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7369 for language specific trampolines.
7370 * language.h (struct language_defn): Add skip_trampoline.
7371 (skip_language_trampoline): Declare.
7372 * language.c (unk_lang_trampoline, skip_language_trampoline):
7374 (unknown_language_defn, auto_language_defn, local_language_defn):
7375 Add ukn_lang_trampoline.
7376 * ada-lang.c (ada_language_defn): Add NULL for language
7377 specific skip_trampoline.
7378 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7379 scm-lang.c: Likewise.
7380 * objc-lang.c (objc_skip_trampoline): New function.
7381 (objc_language_defn): Add objc_skip_trampoline.
7383 2003-03-25 Andrew Cagney <cagney@redhat.com>
7385 * frame.c (get_prev_frame): Delay validating a frame's ID -
7386 non-NULL, didn't go backwards - until an attempt to unwind it to
7389 2003-03-25 Andrew Cagney <cagney@redhat.com>
7391 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7392 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7393 * gdbarch.h, gdbarch.c: Re-generate.
7394 * config/sparc/tm-sparc.h
7395 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7396 * sparc-tdep.c (sparc_gdbarch_init): Set
7397 deprecated_extra_stack_alignment_needed.
7398 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7400 extra_stack_alignment_needed.
7401 * v850-tdep.c (v850_gdbarch_init): Ditto.
7402 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7403 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7404 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7405 * cris-tdep.c (cris_gdbarch_init): Ditto.
7406 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7407 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7409 2003-03-25 Andrew Cagney <cagney@redhat.com>
7411 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7412 STORE_STRUCT_RETURN.
7413 * gdbarch.h, gdbarch.c: Regenerate.
7414 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7415 (d10v_push_arguments): Set the struct return register.
7416 (d10v_gdbarch_init): Update.
7417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7418 * x86-64-tdep.c (x86_64_init_abi): Update.
7419 * vax-tdep.c (vax_gdbarch_init): Update.
7420 * v850-tdep.c (v850_gdbarch_init): Update.
7421 * sparc-tdep.c (sparc_gdbarch_init): Update.
7422 * sh-tdep.c (sh_gdbarch_init): Update.
7423 * s390-tdep.c (s390_gdbarch_init): Update.
7424 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7425 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7426 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7427 * mips-tdep.c (mips_gdbarch_init): Update.
7428 * mcore-tdep.c (mcore_gdbarch_init): Update.
7429 * m68k-tdep.c (m68k_gdbarch_init): Update.
7430 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7431 * ia64-tdep.c (ia64_gdbarch_init): Update.
7432 * i386-tdep.c (i386_gdbarch_init): Update.
7433 * hppa-tdep.c (hppa_gdbarch_init): Update.
7434 * h8300-tdep.c (h8300_gdbarch_init): Update.
7435 * frv-tdep.c (frv_gdbarch_init): Update.
7436 * cris-tdep.c (cris_gdbarch_init): Update.
7437 * avr-tdep.c (avr_gdbarch_init): Update.
7438 * arm-tdep.c (arm_gdbarch_init): Update.
7439 * alpha-tdep.c (alpha_gdbarch_init): Update.
7441 2003-03-25 Andrew Cagney <cagney@redhat.com>
7443 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7444 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7445 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7446 * gdbarch.h, gdbarch.c: Regenerate.
7447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7448 call_dummy_stack_adjust_p.
7449 * vax-tdep.c (vax_gdbarch_init): Ditto.
7450 * v850-tdep.c (v850_gdbarch_init): Ditto.
7451 * sh-tdep.c (sh_gdbarch_init): Ditto.
7452 * s390-tdep.c (s390_gdbarch_init): Ditto.
7453 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7454 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7455 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7456 * mips-tdep.c (mips_gdbarch_init): Ditto.
7457 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7458 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7460 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7461 * i386-tdep.c (i386_gdbarch_init): Ditto.
7462 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7463 * frv-tdep.c (frv_gdbarch_init): Ditto.
7464 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7465 * cris-tdep.c (cris_gdbarch_init): Ditto.
7466 * avr-tdep.c (avr_gdbarch_init): Ditto.
7467 * arm-tdep.c (arm_gdbarch_init): Ditto.
7468 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7469 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7470 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7471 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7472 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7473 call_dummy_stack_adjust_p.
7474 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7475 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7476 * sparc-tdep.c (sparc32_push_arguments): Update.
7477 * valops.c (hand_function_call): Update.
7479 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7482 set_gdbarch_char_signed.
7484 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7487 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7489 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7491 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7492 (_initialize_arm_tdep): Don't set tm_print_insn.
7494 2003-03-24 Adam Fedor <fedor@gnu.org>
7496 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7497 * objc-lang.h: Add multiple inclusion protection.
7498 (start_msglist, add_msglist, end_msglist): Additional declarations.
7500 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7502 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7503 value was renamed to ARM_FLOAT_SOFT_FPA.
7505 2003-03-23 Andrew Cagney <cagney@redhat.com>
7507 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7508 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7509 * gdbarch.h, gdbarch.c: Regenerate.
7510 * valops.c (hand_function_call): Update.
7511 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7512 * frame.c (legacy_saved_regs_this_id): Update.
7513 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7514 * dummy-frame.h: Update.
7515 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7516 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7517 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7518 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7519 * config/m68k/tm-sun3.h: Update.
7520 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7522 * x86-64-tdep.c (x86_64_init_abi): Update.
7523 * vax-tdep.c (vax_gdbarch_init): Update.
7524 * v850-tdep.c (v850_gdbarch_init): Update.
7525 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7526 * sh-tdep.c (sh_gdbarch_init): Update.
7527 * s390-tdep.c (s390_gdbarch_init): Update.
7528 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7529 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7530 (frame_get_saved_regs): Update.
7531 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7532 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7533 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7534 * mips-tdep.c (mips_gdbarch_init): Update.
7535 * mcore-tdep.c (mcore_gdbarch_init): Update.
7536 * m68k-tdep.c (m68k_gdbarch_init): Update.
7537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7538 * ia64-tdep.c (ia64_gdbarch_init): Update.
7539 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7540 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7541 (i386_interix_back_one_frame): Update.
7542 * hppa-tdep.c (hppa_gdbarch_init): Update.
7543 (hppa_init_extra_frame_info): Update.
7544 * h8300-tdep.c (h8300_gdbarch_init): Update.
7545 * frv-tdep.c (frv_gdbarch_init): Update.
7546 * cris-tdep.c (cris_gdbarch_init): Update.
7547 * avr-tdep.c (avr_gdbarch_init): Update.
7548 * arm-tdep.c (arm_gdbarch_init): Update.
7549 * alpha-tdep.c (alpha_gdbarch_init): Update.
7551 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7553 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7554 (arm_get_fp_model): Declare.
7555 * arm-tdep.c (fp_model_strings): New string array.
7556 (arm_fp_model, current_fp_model): New variables.
7557 (arm_get_fp_model): New function.
7558 (arm_set_fp): New function.
7559 (set_fp_model_sfunc): New function.
7560 (show_fp_model): New function.
7561 (_initialize_arm_tdep): Add new command to set/show the FPU.
7562 (arm_extract_return_value): Use arm_get_fp_model.
7563 (arm_store_return_value): Likewise.
7564 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7565 to initialize the floating-point data types.
7566 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7569 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7571 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7572 the current setting of each value.
7573 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7574 new_set and new_show. Use add_setshow_cmd_full and
7575 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7576 commands and add new version as subcommands of "set/show arm".
7578 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7580 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7581 (set_arm_command, show_arm_command): New functions.
7582 (_initialize_arm_tdep): Add them.
7583 (num_disassembly_options): Renamed from num_flavor_options.
7584 (valid_disassembly_styles): Renamed from valid_flavors.
7585 (disassembly_style): Renamed from disassembly_flavor.
7586 (set_disassembly_style_sfunc): Renamed from
7587 set_disassembly_flavor_sfunc.
7588 (set_disassembly_style): Renamed from set_disassembly_flavor.
7589 (arm_othernames): Updated.
7590 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7591 command. Add "set/show arm disassembly" commands. Deprecate
7592 "othernames" command.
7594 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7596 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7597 (arm-tdep.o): Depend on elf_arm_h.
7599 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7601 * Makefile.in (coff_internal_h): Define.
7602 (arm-tdep.o): Update dependencies.
7604 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7606 * arm-tdep.c (prologue_cache): Delete.
7607 (check_prologue_cache, save_prologue_cache): Delete.
7608 (arm_scan_prologue): Don't check or update the prologue_cache.
7609 (arm_gdb_arch_init): Don't initialize it.
7610 (_initialize_arm_tdep): Likewise.
7612 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7614 * MAINTAINERS (tui): Maintainer of tui code.
7616 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7618 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7619 (i386-cygwin-tdep.o): Add dependencies.
7620 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7621 * i386-cygwin-tdep.c: New file.
7622 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7623 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7625 2003-03-20 Andrew Cagney <cagney@redhat.com>
7627 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7628 (handle_inferior_event): Remove code calling
7629 DYNAMIC_TRAMPOLINE_NEXTPC.
7631 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7632 already has a full path.
7634 * main.c (gdb_main): Return 1.
7635 (captured_main): Call error to report an invalid interpreter.
7637 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7638 * alpha-osf1-tdep.c: Include "gdb_string.h".
7640 2003-03-19 J. Brobecker <brobecker@gnat.com>
7642 Continuing work to convert the hppa targets to multiarch partial.
7644 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7645 method, now that hppa_push_dummy_frame has a conformant prototype.
7646 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7647 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7648 for the switch to multiarch partial.
7650 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7652 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7653 when iss is issNull.
7655 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7657 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7658 NUM_REGS bounds check.
7660 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7662 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7663 * mips-tdep.c (gdb_assert.h): Include.
7664 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7665 (mips_register_name): Handle integer registers explicitly. Add
7667 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7668 (mips_lsi33k_reg_names): Don't list integer registers; they're
7669 handled by mips_register_name() now.
7670 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7671 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7672 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7673 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7674 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7676 2003-03-18 Andrew Cagney <cagney@redhat.com>
7678 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7680 * gdbtypes.h (print_scalar_formatted): Update declaration.
7681 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7683 2003-03-18 J. Brobecker <brobecker@gnat.com>
7685 * infrun.c (observer.h): Add #include.
7686 (normal_stop): Add call to observer_notify_normal_stop.
7687 * Makefile.in (infrun.o): Add dependency on observer.h.
7689 2003-03-18 J. Brobecker <brobecker@gnat.com>
7691 Continuing work to convert the hppa targets to multiarch partial.
7692 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7693 parameter. Reformat comment.
7694 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7695 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7696 to match new profile.
7698 2003-03-18 J. Brobecker <brobecker@gnat.com>
7700 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7701 appear to be working in any case.
7703 2003-03-18 J. Brobecker <brobecker@gnat.com>
7705 * observer.c (observer_test_first_observer): New static variable.
7706 (observer_test_second_observer): Likewise.
7707 (observer_test_third_observer): Likewise.
7708 (observer_test_first_notification_function): New static function.
7709 (observer_test_second_notification_function): Likewise.
7710 (observer_test_third_notification_function): Likewise.
7712 2003-03-17 J. Brobecker <brobecker@gnat.com>
7714 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7715 * somsolib.c (gdb_assert.h): Likewise.
7716 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7717 (somsolib.o): Likewise.
7719 2003-03-17 Andrew Cagney <cagney@redhat.com>
7721 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7722 BFD. Simplify setting of di.endian.
7724 2003-03-17 Andrew Cagney <cagney@redhat.com>
7726 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7727 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7729 From Elena Zannoni <ezannoni@redhat.com>
7730 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7731 vector and floating-point parameters.
7732 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7734 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7736 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7738 * MAINTAINERS: Remove my name from several maintainership roles.
7740 2003-03-17 Andrew Cagney <cagney@redhat.com>
7742 Fix frame off-by-one bug.
7743 * frame-unwind.h (frame_this_id_ftype): Replace
7744 frame_unwind_id_ftype.
7745 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7746 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7747 with "prev_register".
7748 * frame-unwind.c (frame_unwind_find_by_pc): Return
7749 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7751 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7752 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7753 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7754 (dummy_frame_unwind): Update.
7755 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7756 sentinel_frame_register_unwind.
7757 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7758 (sentinel_frame_unwinder): Update.
7759 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7760 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7761 * frame.c (create_sentinel_frame): Update. Initialize
7762 "prologue_cache" instead of "unwind_cache".
7763 (frame_register_unwind): Call this frame's prev_register with the
7764 next frame and this frame's prologue cache.
7765 (get_prev_frame): Simplify. Always call prev frame's this_id with
7766 this frame and prev frame's prologue cache. Document that this
7767 call is shifted one to the left when compared to the
7768 frame_register_unwind call.
7769 (legacy_saved_regs_prev_register): Replace
7770 frame_saved_regs_register_unwind.
7771 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7772 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7773 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7774 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7775 (d10v_frame_unwind): Update.
7776 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7777 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7778 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7779 "saved_regs" with "this_saved_regs".
7781 2003-03-16 Andrew Cagney <cagney@redhat.com>
7783 * frame.c (frame_pop): Don't call target_store_registers. Fix
7784 problem reported by Mark Kettenis.
7786 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7788 * i386-tdep.c (i386_register_type): Renamed from
7789 i386_register_virtual_type. Adjust function signature.
7790 (i386_gdbarch_init): Set register_type instead of
7791 deprecated_max_register_raw_size,
7792 deprecated_max_register_virtual_size and register_virtual_type.
7794 2003-03-14 Andrew Cagney <cagney@redhat.com>
7796 * frame.c (get_prev_frame): When a legacy frame, always call
7797 legacy_get_prev_frame. Simplify unwind code using assumption that
7798 the unwinder is new.
7799 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7800 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7801 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7803 2003-03-14 Andrew Cagney <cagney@redhat.com>
7805 * frame.c (get_saved_register): Delete function.
7806 * frame.h (get_saved_register): Delete declaration.
7807 * xstormy16-tdep.c: Update comment.
7808 * regcache.h: Update comments.
7809 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7810 get_saved_register and extract_address, use
7811 frame_read_unsigned_register.
7812 (sparc_frame_saved_pc): Ditto.
7813 (sparc_get_saved_register): Instead of get_saved_register, use
7815 (sparc_pop_frame): Ditto.
7816 * findvar.c: Update comments.
7817 (value_of_register): Call frame_register instead of
7819 (value_from_register): Ditto.
7820 * config/sparc/tm-sparc.h: Update comment.
7821 * breakpoint.c: Update comment.
7823 2003-03-14 Andrew Cagney <cagney@redhat.com>
7825 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7827 * gdbarch.h, gdbarch.c: Re-generate.
7828 * frame.h: Update comments.
7829 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7830 * x86-64-tdep.c (x86_64_init_abi): Update.
7831 * sparc-tdep.c (sparc_gdbarch_init): Update.
7832 * sh-tdep.c (sh_gdbarch_init): Update.
7833 * mips-tdep.c (mips_gdbarch_init): Update.
7834 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7835 * cris-tdep.c (cris_gdbarch_init): Update.
7836 * ia64-tdep.c (ia64_gdbarch_init): Update.
7837 * frame.c (frame_register): Update.
7838 (get_saved_register): Update.
7839 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7841 2003-03-13 Andrew Cagney <cagney@redhat.com>
7843 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7844 * gdbarch.h, gdbarch.c: Regenerate.
7845 * valops.c (hand_function_call): Update comment.
7846 * stack.c (return_command): Update comment.
7847 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7848 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7850 * x86-64-tdep.c (x86_64_init_abi): Update.
7851 * vax-tdep.c (vax_gdbarch_init): Update.
7852 * v850-tdep.c (v850_gdbarch_init): Update.
7853 * sparc-tdep.c (sparc_gdbarch_init): Update.
7854 * sh-tdep.c (sh_gdbarch_init): Update.
7855 * s390-tdep.c (s390_gdbarch_init): Update.
7856 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7857 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7858 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7859 * mips-tdep.c (mips_gdbarch_init): Update.
7860 * mcore-tdep.c (mcore_gdbarch_init): Update.
7861 * m68k-tdep.c (m68k_gdbarch_init): Update.
7862 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7863 * ia64-tdep.c (ia64_gdbarch_init): Update.
7864 * i386-tdep.c (i386_gdbarch_init): Update.
7865 * hppa-tdep.c (hppa_gdbarch_init): Update.
7866 * h8300-tdep.c (h8300_gdbarch_init): Update.
7867 * frv-tdep.c (frv_gdbarch_init): Update.
7868 * cris-tdep.c (cris_gdbarch_init): Update.
7869 * avr-tdep.c (avr_gdbarch_init): Update.
7870 * arm-tdep.c (arm_gdbarch_init): Update.
7871 * alpha-tdep.c (alpha_gdbarch_init): Update.
7873 2003-03-13 Andrew Cagney <cagney@redhat.com>
7875 * frame.c (legacy_frame_p): New function.
7876 (get_prev_frame): Use legacy_frame_p.
7877 * frame.h (legacy_frame_p): Declare.
7879 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7881 * MAINTAINERS (write after approval): Alphabetically
7884 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7886 * MAINTAINERS (write after approval): Add myself.
7888 2003-03-12 Andrew Cagney <cagney@redhat.com>
7890 * frame.c (get_prev_frame): Rename the frame parameter to
7892 (get_next_frame, legacy_get_prev_frame): Ditto.
7894 2003-03-12 Andrew Cagney <cagney@redhat.com>
7896 * frame.c (get_current_frame): Check target_has_registers before
7897 checking target_has_stack.
7898 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7899 instead of deprecated_selected_frame.
7900 * findvar.c (value_of_register): Pass "frame", not
7901 deprecated_selected_frame, to value_of_builtin_reg.
7903 2003-03-12 Andrew Cagney <cagney@redhat.com>
7905 * regcache.c (regcache_cooked_write_signed): New function.
7906 (regcache_cooked_write_unsigned): New function.
7907 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7908 (regcache_cooked_read_signed): Fix regnum in range assertion.
7909 * regcache.h (regcache_cooked_write_signed): Declare.
7910 (regcache_cooked_write_unsigned): Declare.
7912 2003-03-12 Andrew Cagney <cagney@redhat.com>
7914 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7915 * gdbarch.h, gdbarch.c: Re-generate.
7916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7917 * x86-64-tdep.h: Update.
7918 * x86-64-tdep.c (x86_64_init_abi): Update.
7919 * v850-tdep.c (v850_gdbarch_init): Update.
7920 * sparc-tdep.c (sparc_gdbarch_init): Update.
7921 * sh-tdep.c (sh_gdbarch_init): Update.
7922 * s390-tdep.c (s390_gdbarch_init): Update.
7923 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7924 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7925 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7926 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7927 * mips-tdep.c (mips_gdbarch_init): Update.
7928 * mcore-tdep.c (mcore_gdbarch_init): Update.
7929 * m68k-tdep.c (m68k_gdbarch_init): Update.
7930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7931 * ia64-tdep.c (ia64_gdbarch_init): Update.
7932 * i386-tdep.c (i386_gdbarch_init): Update.
7933 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7934 * hppa-tdep.c (hppa_gdbarch_init): Update.
7935 * h8300-tdep.c (h8300_gdbarch_init): Update.
7936 * frv-tdep.c (frv_gdbarch_init): Update.
7937 * cris-tdep.c (cris_gdbarch_init): Update.
7938 * avr-tdep.c (avr_gdbarch_init): Update.
7939 * arm-tdep.c (arm_gdbarch_init): Update.
7940 * alpha-tdep.c (alpha_gdbarch_init): Update.
7941 * sh-tdep.c (sh_init_extra_frame_info): Update.
7942 (sh64_init_extra_frame_info): Update.
7943 * ns32knbsd-nat.c (frame_num_args): Update.
7944 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7945 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7946 (xstormy16_frame_chain_valid): Update.
7947 * vax-tdep.c (vax_saved_pc_after_call): Update.
7948 * v850-tdep.c (v850_frame_chain): Update.
7949 (v850_pop_frame): Update.
7950 (v850_init_extra_frame_info): Update.
7951 * sparc-tdep.c (setup_arbitrary_frame): Update.
7952 * ns32k-tdep.c (umax_frame_num_args): Update.
7953 * s390-tdep.c (s390_pop_frame_regular): Update.
7954 * mn10300-tdep.c (mn10300_frame_chain): Update.
7955 (mn10300_pop_frame_regular): Update.
7956 (mn10300_init_extra_frame_info): Update.
7957 * mips-tdep.c (mips_init_frame_pc_first): Update.
7958 (mips_frame_chain): Update.
7959 (mips_pop_frame): Update.
7960 * mcore-tdep.c (mcore_frame_chain): Update.
7961 (mcore_pop_frame): Update.
7962 (mcore_init_extra_frame_info): Update.
7963 * arch-utils.c (init_frame_pc_default): Update.
7964 * m68k-tdep.c (isi_frame_num_args): Update.
7965 (delta68_frame_num_args): Update.
7966 (news_frame_num_args): Update.
7967 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7968 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7969 (alpha_frame_chain): Update.
7970 (alpha_pop_frame): Update.
7971 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7972 (hppa_init_extra_frame_info): Update.
7973 (hppa_frame_chain): Update.
7974 (hppa_frame_chain_valid): Update.
7975 * cris-tdep.c (cris_init_extra_frame_info): Update.
7976 * avr-tdep.c (avr_init_extra_frame_info): Update.
7977 * arm-tdep.c (arm_frame_chain_valid): Update.
7978 (arm_init_extra_frame_info): Update.
7979 (arm_pop_frame): Update.
7980 * frame.c (frame_pc_unwind): Update.
7981 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7982 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7983 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7984 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7985 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7986 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7988 2003-03-12 Andrew Cagney <cagney@redhat.com>
7990 Eliminate the need for POP_FRAME.
7991 * frame.c (do_frame_unwind_register): New function.
7992 (frame_pop): When no POP_FRAME, pop the frame using register
7993 unwind and a scratch regcache.
7994 (frame_saved_regs_pop): Delete function.
7995 (trad_frame_unwinder): Update.
7996 * d10v-tdep.c (d10v_frame_pop): Delete function.
7997 (d10v_frame_unwind): Update.
7998 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7999 (sentinel_frame_unwinder): Update.
8000 * dummy-frame.c (dummy_frame_pop): Delete function.
8001 (dummy_frame_unwind): Update.
8002 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8003 (struct frame_unwind): Update.
8005 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8007 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8008 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8009 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8010 Do range checks on register number obtained from debugging info.
8011 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8012 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8013 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8015 (do_fp_register_row): Fix typo which caused double type to be
8016 used when attempting to unpack a float.
8018 2003-03-11 J. Brobecker <brobecker@gnat.com>
8020 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8022 2003-03-11 Andrew Cagney <cagney@redhat.com>
8024 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8025 frame. Problem found by Corinna Vinschen.
8027 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8029 * doublest.c (floatformat_from_length): Accept also
8030 the real size of 'long double' type.
8032 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8034 From Klee Dienes <kdienes@apple.com>:
8035 * breakpoint.c (bpstat_copy): Copy the command lines as well
8036 as the old value, to match what is freed in bpstat_clear.
8038 2003-03-10 David Carlton <carlton@math.stanford.edu>
8040 * minsyms.c (add_minsym_to_hash_table): Replace
8041 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8042 (compare_minimal_symbols, compact_minimal_symbols)
8043 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8044 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8045 of DEPRECATED_SYMBOL_MATCHES_NAME.
8046 (lookup_minimal_symbol_solib_trampoline): Ditto.
8048 2003-03-10 Andrew Cagney <cagney@redhat.com>
8050 * regcache.h (regcache_cooked_read_ftype): Define.
8051 (regcache_save, regcache_restore): Add a cooked_read parameter.
8052 * regcache.c (regcache_save, regcache_restore): Update.
8053 (do_cooked_read): New function.
8054 (regcache_cpy): Pass do_cooked_read to regcache_save and
8057 2003-03-10 Andrew Cagney <cagney@redhat.com>
8059 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8060 * gdbarch.h, gdbarch.c: Re-generate.
8061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8062 * x86-64-tdep.h: Update.
8063 * x86-64-tdep.c (x86_64_init_abi): Update.
8064 * v850-tdep.c (v850_gdbarch_init): Update.
8065 * sparc-tdep.c (sparc_gdbarch_init): Update.
8066 * sh-tdep.c (sh_gdbarch_init): Update.
8067 * s390-tdep.c (s390_gdbarch_init): Update.
8068 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8069 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8070 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8071 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8072 * mips-tdep.c (mips_gdbarch_init): Update.
8073 * mcore-tdep.c (mcore_gdbarch_init): Update.
8074 * m68k-tdep.c (m68k_gdbarch_init): Update.
8075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8076 * ia64-tdep.c (ia64_gdbarch_init): Update.
8077 * i386-tdep.c (i386_gdbarch_init): Update.
8078 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8079 * hppa-tdep.c (hppa_gdbarch_init): Update.
8080 * h8300-tdep.c (h8300_gdbarch_init): Update.
8081 * frv-tdep.c (frv_gdbarch_init): Update.
8082 * cris-tdep.c (cris_gdbarch_init): Update.
8083 * avr-tdep.c (avr_gdbarch_init): Update.
8084 * arm-tdep.c (arm_gdbarch_init): Update.
8085 * alpha-tdep.c (alpha_gdbarch_init): Update.
8086 * sh-tdep.c (sh_init_extra_frame_info): Update.
8087 (sh64_init_extra_frame_info): Update.
8088 * ns32knbsd-nat.c (frame_num_args): Update.
8089 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8090 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8091 (xstormy16_frame_chain_valid): Update.
8092 * vax-tdep.c (vax_saved_pc_after_call): Update.
8093 * v850-tdep.c (v850_frame_chain): Update.
8094 (v850_pop_frame): Update.
8095 (v850_init_extra_frame_info): Update.
8096 * sparc-tdep.c (setup_arbitrary_frame): Update.
8097 * ns32k-tdep.c (umax_frame_num_args): Update.
8098 * s390-tdep.c (s390_pop_frame_regular): Update.
8099 * mn10300-tdep.c (mn10300_frame_chain): Update.
8100 (mn10300_pop_frame_regular): Update.
8101 (mn10300_init_extra_frame_info): Update.
8102 * mips-tdep.c (mips_init_frame_pc_first): Update.
8103 (mips_frame_chain): Update.
8104 (mips_pop_frame): Update.
8105 * mcore-tdep.c (mcore_frame_chain): Update.
8106 (mcore_pop_frame): Update.
8107 (mcore_init_extra_frame_info): Update.
8108 * arch-utils.c (init_frame_pc_default): Update.
8109 * m68k-tdep.c (isi_frame_num_args): Update.
8110 (delta68_frame_num_args): Update.
8111 (news_frame_num_args): Update.
8112 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8113 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8114 (alpha_frame_chain): Update.
8115 (alpha_pop_frame): Update.
8116 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8117 (hppa_init_extra_frame_info): Update.
8118 (hppa_frame_chain): Update.
8119 (hppa_frame_chain_valid): Update.
8120 * cris-tdep.c (cris_init_extra_frame_info): Update.
8121 * avr-tdep.c (avr_init_extra_frame_info): Update.
8122 * arm-tdep.c (arm_frame_chain_valid): Update.
8123 (arm_init_extra_frame_info): Update.
8124 (arm_pop_frame): Update.
8125 * frame.c (frame_pc_unwind): Update.
8126 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8127 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8128 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8129 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8130 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8131 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8133 2003-03-10 Andrew Cagney <cagney@redhat.com>
8135 * gdbarch.sh (gdbarch_unwind_pc): New method.
8136 * gdbarch.h, gdbarch.c: Regenerate.
8137 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8138 but use read_pc and FRAME_SAVED_PC as fall backs.
8139 (frame_saved_regs_pc_unwind): Delete function.
8140 (trad_frame_unwinder): Update.
8141 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8142 (struct frame_unwind): Update.
8143 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8144 (dummy_frame_unwind): Update.
8145 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8146 (sentinel_frame_unwinder): Update.
8147 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8148 (d10v_frame_unwind): Update.
8149 (d10v_unwind_pc): New function.
8150 (d10v_gdbarch_init): Set unwind_pc.
8152 2003-03-10 Andrew Cagney <cagney@redhat.com>
8154 * gdbarch.h: Re-generate.
8156 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8158 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8161 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8163 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8165 2003-03-08 Andrew Cagney <cagney@redhat.com>
8167 * cli-out.c: Update copyright.
8168 (cli_out_data): Define typedef. Use instead of ui_out_data.
8170 2003-03-08 Andrew Cagney <cagney@redhat.com>
8172 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8175 2003-03-07 Andrew Cagney <cagney@redhat.com>
8177 * gdbarch.sh: Don't generate two macro definitions when an
8178 undefined macro taking no arguments.
8179 * gdbarch.h: Regenerate.
8181 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8183 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8184 (x86_64_unwind_dummy_id): New functions.
8185 (x86_64_init_abi): Register these two new functions.
8187 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8189 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8190 (x86_64_skip_prologue): Move prologue detection to
8192 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8194 2003-03-05 Andrew Cagney <cagney@redhat.com>
8196 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8197 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8198 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8199 to use unwind_dummy_id when a dummy frame.
8200 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8202 * gdbarch.h, gdbarch.c: Regneerate.
8204 2003-03-05 Andrew Cagney <cagney@redhat.com>
8206 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8207 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8208 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8211 2003-03-05 Andrew Cagney <cagney@redhat.com>
8213 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8214 (struct d10v_unwind_cache): Delete field "frameless". Replace
8215 "next_addr" with "sp_offset". Add "r11_offset".
8216 (d10v_frame_unwind_cache): Update.
8217 (prologue_find_regs): Update. When "mv r11, sp", save the
8218 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8219 RN was saved in r11_offset.
8221 2003-03-05 Andrew Cagney <cagney@redhat.com>
8223 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8224 cached PC value in the next frame.
8226 2003-03-05 Andrew Cagney <cagney@redhat.com>
8228 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8229 "id_unwind_cache" with "id".
8230 (frame_id_unwind): Delete declaration.
8231 * frame.c (frame_id_unwind): Delete function.
8232 (get_prev_frame): Call the frame id unwind method directly. Store
8233 the returned next frame's ID value in NEXT_FRAME. Note that there
8234 is a problem with the wrong unwind ID being called with the wrong
8237 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8239 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8241 2003-03-05 James Ingham <jingham@apple.com>
8242 Daniel Jacobowitz <drow@mvista.com>
8244 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8245 (auto_cp_abi): New variable.
8246 (current_cp_abi, num_cp_abis): Make static.
8247 (CP_ABI_MAX): Define.
8248 (cp_abis): Turn into an array.
8249 (value_virtual_fn_field): Fix formatting.
8250 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8252 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8253 (list_cp_abis, _initialize_cp_abi): New functions.
8254 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8255 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8256 switch_to_cp_abi. Update prototype for register_cp_abi.
8257 * Makefile.in (cp-abi.o): Update dependencies.
8258 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8259 instead of switch_to_cp_abi.
8260 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8262 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8264 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8266 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8268 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8269 * dwarf2loc.c: Include "regcache.h".
8270 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8272 * Makefile.in (dwarf2loc.o): Update dependencies.
8274 2003-03-04 Theodore A. Roth <troth@openavr.org>
8276 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8277 number of io registers reported by remote target is not a multiple of
8280 2003-03-04 David Carlton <carlton@math.stanford.edu>
8282 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8283 (lookup_symbol_aux_psymtabs): Update call to
8284 lookup_partial_symbol.
8285 (lookup_transparent_type, find_main_psymtab)
8286 (make_symbol_overload_list): Ditto.
8288 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8290 * MAINTAINERS (Write after approval): Update my email address.
8292 2003-03-03 Andrew Cagney <cagney@redhat.com>
8294 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8295 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8296 predicate. Replace MAX_REGISTER_RAW_SIZE.
8297 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8298 MAX_REGISTER_VIRTUAL_SIZE.
8299 * regcache.c (legacy_max_register_raw_size): New function.
8300 (legacy_max_register_virtual_size): New function.
8301 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8302 (MAX_REGISTER_RAW_SIZE): Define.
8303 (legacy_max_register_raw_size): Declare.
8304 (legacy_max_register_virtual_size): Declare.
8305 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8306 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8307 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8308 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8309 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8310 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8311 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8312 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8313 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8314 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8315 * vax-tdep.c (vax_gdbarch_init): Update.
8316 * v850-tdep.c (v850_gdbarch_init): Update.
8317 * sparc-tdep.c (sparc_gdbarch_init): Update.
8318 * sh-tdep.c (sh_gdbarch_init): Update.
8319 * s390-tdep.c (s390_gdbarch_init): Update.
8320 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8321 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8322 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8323 * mips-tdep.c (mips_gdbarch_init): Update.
8324 * mcore-tdep.c (mcore_gdbarch_init): Update.
8325 * m68k-tdep.c (m68k_gdbarch_init): Update.
8326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8327 * ia64-tdep.c (ia64_gdbarch_init): Update.
8328 * i386-tdep.c (i386_gdbarch_init): Update.
8329 * hppa-tdep.c (hppa_gdbarch_init): Update.
8330 * h8300-tdep.c (h8300_gdbarch_init): Update.
8331 * frv-tdep.c (frv_gdbarch_init): Update.
8332 * cris-tdep.c (cris_gdbarch_init): Update.
8333 * avr-tdep.c (avr_gdbarch_init): Update.
8334 * arm-tdep.c (arm_gdbarch_init): Update.
8335 * alpha-tdep.c (alpha_gdbarch_init): Update.
8336 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8337 max_register_raw_size or max_register_virtual_size.
8339 2003-03-03 David Carlton <carlton@math.stanford.edu>
8341 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8342 SYMBOL_MATCHES_NAME, add comment.
8343 (SYMBOL_MATCHES_NATURAL_NAME): New.
8344 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8345 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8346 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8347 * symtab.c (lookup_partial_symbol): Use
8348 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8350 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8351 SYMBOL_MATCHES_NAME.
8354 2003-03-03 David Carlton <carlton@math.stanford.edu>
8356 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8357 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8358 by regexp matching against SYMBOL_NATURAL_NAME.
8360 2003-03-03 David Carlton <carlton@math.stanford.edu>
8362 * linespec.c (find_method): Extract code into collect_methods.
8363 (collect_methods): New.
8365 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8367 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8370 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8371 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8373 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8375 * arch-utils.c (generic_register_byte): Fix to use the loop index
8376 and not regnum when summing the size of all registers up to regnum.
8378 2003-03-01 Andrew Cagney <cagney@redhat.com>
8380 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8381 FRAME_INIT_SAVED_REGS.
8382 * gdbarch.h, gdbarch.c: Regenerate.
8383 * stack.c (frame_info): Update.
8384 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8385 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8386 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8387 * ns32k-tdep.c (ns32k_pop_frame): Update.
8388 * mips-tdep.c (mips_pop_frame): Update.
8389 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8390 * ia64-tdep.c (ia64_frame_chain): Update.
8391 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8392 (ia64_frameless_function_invocation): Update.
8393 (ia64_init_extra_frame_info): Update.
8394 (ia64_pop_frame_regular): Update.
8395 * frame.h (struct frame_info): Update comment.
8396 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8397 * frame.c (frame_saved_regs_register_unwind): Update.
8398 (frame_saved_regs_register_unwind): Update.
8399 (deprecated_generic_get_saved_register): Update.
8400 * cris-tdep.c: Update comment.
8401 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8403 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8404 * x86-64-tdep.c (x86_64_init_abi): Update.
8405 * vax-tdep.c (vax_gdbarch_init): Update.
8406 * v850-tdep.c (v850_gdbarch_init): Update.
8407 * sparc-tdep.c (sparc_gdbarch_init): Update.
8408 * sh-tdep.c (sh_gdbarch_init): Update.
8409 * s390-tdep.c (s390_gdbarch_init): Update.
8410 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8411 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8412 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8413 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8414 * mips-tdep.c (mips_gdbarch_init): Update.
8415 * mcore-tdep.c (mcore_gdbarch_init): Update.
8416 * m68k-tdep.c (m68k_gdbarch_init): Update.
8417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8418 * ia64-tdep.c (ia64_gdbarch_init): Update.
8419 * i386-tdep.c (i386_gdbarch_init): Update.
8420 * frv-tdep.c (frv_gdbarch_init): Update.
8421 * avr-tdep.c (avr_gdbarch_init): Update.
8422 * arm-tdep.c (arm_gdbarch_init): Update.
8423 * alpha-tdep.c (alpha_gdbarch_init): Update.
8425 2003-03-01 Andrew Cagney <cagney@redhat.com>
8427 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8428 option enum and switch. When no windows, set the interpreter to
8431 2003-03-01 Andrew Cagney <cagney@redhat.com>
8433 * main.c (captured_main): Replace magic option characters with an
8436 2003-03-01 Andrew Cagney <cagney@redhat.com>
8438 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8439 INIT_EXTRA_FRAME_INFO.
8440 * gdbarch.h, gdbarch.c: Regenerate.
8441 * arm-tdep.c: Update comments.
8442 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8443 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8444 * frame.h, avr-tdep.c: Ditto.
8445 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8446 (create_new_frame, legacy_get_prev_frame): Ditto.
8447 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8448 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8450 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8451 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8452 * v850-tdep.c (v850_gdbarch_init): Ditto.
8453 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8454 * sh-tdep.c (sh_gdbarch_init): Ditto.
8455 * s390-tdep.c (s390_gdbarch_init): Ditto.
8456 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8457 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8458 * mips-tdep.c (mips_gdbarch_init): Ditto.
8459 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8461 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8462 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8463 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8464 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8465 * frv-tdep.c (frv_gdbarch_init): Ditto.
8466 * cris-tdep.c (cris_gdbarch_init): Ditto.
8467 * avr-tdep.c (avr_gdbarch_init): Ditto.
8468 * arm-tdep.c (arm_gdbarch_init): Ditto.
8469 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8470 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8472 2003-03-01 Andrew Cagney <cagney@redhat.com>
8474 * gdbarch.sh (register_type): New function with predicate.
8475 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8476 * gdbarch.h, gdbarch.c: Re-generate.
8477 * arch-utils.c (generic_register_byte): Use generic_register_size.
8478 (generic_register_size): When available, use
8479 gdbarch_register_type.
8480 * regcache.c (init_regcache_descr): When available, initialize the
8481 register type array using gdbarch_register_type. If the
8482 architecture supplies gdbarch_register_type, do not use the legacy
8484 * d10v-tdep.c (d10v_register_type): Replace
8485 d10v_register_virtual_type.
8486 (d10v_gdbarch_init): Set register_type instead of
8487 register_virtual_type.
8489 2003-03-01 Andrew Cagney <cagney@redhat.com>
8491 * Makefile.in (ax-gdb.o): Update dependencies.
8492 * ax-gdb.c: Include "regcache.h".
8493 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8494 * findvar.c (value_of_register): Ditto.
8495 * infcmd.c (default_print_registers_info): Ditto.
8497 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8499 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8500 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8502 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8504 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8507 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8509 * Makefile.in (dwarf2loc.o): Update dependencies.
8510 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8511 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8512 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8513 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8514 (locexpr_tracepoint_var_ref): New function.
8515 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8517 2003-02-28 Andrew Cagney <cagney@redhat.com>
8519 * regcache.c (register_size): New function.
8520 * regcache.h (register_size): Declare
8521 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8522 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8524 2003-02-28 David Carlton <carlton@math.stanford.edu>
8526 * linespec.c (decode_compound): Extract code into find_method.
8529 2003-02-28 J. Brobecker <brobecker@gnat.com>
8531 * Makefile.in: Add rules to build and link in observer.o.
8533 2003-02-27 J. Brobecker <brobecker@gnat.com>
8535 * observer.c: Minor comments edits.
8537 2003-02-27 J. Brobecker <brobecker@gnat.com>
8539 * observer.h, observer.c: New file.
8541 2003-02-27 Andrew Cagney <cagney@redhat.com>
8543 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8545 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8547 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8548 (M6812_OP_STS_EXT): Likewise.
8549 (m6811_prologue): Use the above to recognize prologue.
8550 (m6812_prologue): Likewise.
8552 2003-02-27 David Carlton <carlton@math.stanford.edu>
8554 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8556 (compare_psymbols): Ditto.
8557 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8559 2003-02-27 Michael Snyder <msnyder@redhat.com>
8561 * f-lang.c (build_fortran_types): New function.
8562 (_initialize_f_language): Gdbarch-register built-in fortran types.
8563 * doublest.c (extract_floating): Fix warning text.
8565 2003-02-27 Andrew Cagney <cagney@redhat.com>
8567 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8568 predicate. Replaces PUSH_DUMMY_FRAME.
8569 * gdbarch.h, gdbarch.c: Regnerate.
8570 * valops.c (hand_function_call): Update. Call
8571 generic_push_dummy_frame directly.
8572 * vax-tdep.c (vax_gdbarch_init): Update.
8573 * sparc-tdep.c (sparc_gdbarch_init): Update.
8574 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8575 * m68k-tdep.c (m68k_gdbarch_init): Update.
8576 * hppa-tdep.c (hppa_gdbarch_init): Update.
8577 * alpha-tdep.c (alpha_gdbarch_init): Update.
8578 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8579 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8580 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8581 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8582 push_dummy_frame to generic_push_dummy_frame.
8583 * v850-tdep.c (v850_gdbarch_init): Ditto.
8584 * sh-tdep.c (sh_gdbarch_init): Ditto.
8585 * s390-tdep.c (s390_gdbarch_init): Ditto.
8586 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8587 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8588 * mips-tdep.c (mips_gdbarch_init): Ditto.
8589 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8590 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8591 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8592 * i386-tdep.c (i386_gdbarch_init): Ditto.
8593 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8594 * frv-tdep.c (frv_gdbarch_init): Ditto.
8595 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8596 * cris-tdep.c (cris_gdbarch_init): Ditto.
8597 * avr-tdep.c (avr_gdbarch_init): Ditto.
8598 * arm-tdep.c (arm_gdbarch_init): Ditto.
8600 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8602 * mips-tdep.c (show_mips_abi): New function.
8603 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8604 command ``show mips abi''.
8606 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8608 From Elena Zannoni <ezannoni@redhat.com>
8609 * dbxread.c (process_one_symbol): Only record line 0 if one or
8610 more sline entries have been seen for the function.
8612 2003-02-26 Michael Chastain <mec@shout.net>
8614 * configure: Regenerate with autoconf 000227.
8616 2003-02-26 Michael Chastain <mec@shout.net>
8619 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8620 for old libc5/glibc.
8621 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8623 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8625 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8626 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8628 2003-02-26 Michael Chastain <mec@shout.net>
8630 * configure.in: New variable HAVE_UINTPTR_T.
8631 * configure, config.in: Regenerated.
8633 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8636 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8638 2003-02-25 Andrew Cagney <cagney@redhat.com>
8640 * frame.c (get_prev_frame): Add comment on check for
8641 inside_entry_func. Only check for inside_entry_file when not a
8642 dummy and not a sentinel. Check that the new frame is not inner
8645 2003-02-25 Andrew Cagney <cagney@redhat.com>
8647 * frame.c (frame_debug): New variable.
8648 (_initialize_frame): Add "set/show debug frame" command.
8649 (get_prev_frame): When frame_debug, print reason why unwind
8652 2003-02-25 Michael Chastain <mec@shout.net>
8654 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8655 to avoid uintptr_t definition problems.
8657 2003-02-25 David Carlton <carlton@math.stanford.edu>
8659 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8660 (SYMBOL_LINKAGE_NAME): Ditto.
8661 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8662 SYMBOL_LINKAGE_NAME.
8663 (struct general_symbol_info): Expand comment.
8664 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8665 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8666 (SYMBOL_MATCHES_REGEXP): Ditto.
8667 * symtab.c (symbol_natural_name): New function.
8668 * objfiles.h: Replace all uses of SYMBOL_NAME by
8669 DEPRECATED_SYMBOL_NAME.
8670 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8671 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8672 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8673 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8674 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8675 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8676 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8677 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8678 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8679 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8681 * ada-exp.y: Update copyright.
8682 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8683 * cp-valprint.c: Ditto.
8685 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8687 * infptrace.c (detach): Do not flag error if ptrace detach fails
8688 and errno is set to ESRCH.
8690 2003-02-24 Andrew Cagney <cagney@redhat.com>
8692 * infptrace.c (udot_info): Change type of udot_off to long. Use
8693 paddr when printing udot_off's value.
8695 2003-02-24 David Carlton <carlton@math.stanford.edu>
8697 * symtab.c (make_symbol_overload_list): Only read in partial
8698 symtabs containing a matching partial symbol.
8700 2003-02-24 David Carlton <carlton@math.stanford.edu>
8702 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8703 do the comparison, not strcmp.
8704 * symfile.c (compare_psymbols): Ditto.
8705 * defs.h: Declare strcmp_iw_ordered.
8706 * utils.c (strcmp_iw_ordered): New function.
8708 2003-02-24 Jim Blandy <jimb@redhat.com>
8710 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8711 support, shared libs): Remove my name from here, to better reflect
8714 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8716 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8717 (target_ops): Add to_have_continuable_watchpoint.
8718 * target.c (update_current_target): Add INHERIT line for
8719 to_have_continuable_watchpoint.
8720 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8721 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8722 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8723 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8725 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8727 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8730 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8732 * solib.c (solib_open): Call target defined search function after
8733 failing with solib-search-path.
8734 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8735 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8737 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8739 * MAINTAINERS: Add myself to Write After section.
8741 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8743 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8745 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8747 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8748 (m68hc11_add_reggroups): New function.
8749 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8750 (m68hc11_gdbarch_init): Install the reggroups.
8751 (_initialize_m68hc11_tdep): Initialize them.
8753 2003-02-21 James E Wilson <wilson@tuliptree.org>
8755 * MAINTAINERS: Update my email address.
8757 2003-02-21 David Carlton <carlton@math.stanford.edu>
8759 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8761 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8763 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8764 * symtab.h: Add opaque declarations of struct axs_value and
8766 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8767 (struct location_funcs): New type.
8768 (struct symbol): Add "loc" to aux_value.
8769 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8770 * dwarf2read.c: Include "dwarf2expr.h".
8771 (dwarf2_symbol_mark_computed): New function.
8772 (read_func_scope): Use it.
8773 (var_decode_location): New function.
8774 (new_symbol): Use it.
8775 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8777 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8778 (dwarf2expr_h, dwarf2loc_h): New variables.
8779 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8780 (dwarf2expr.o, dwarf2loc.o): New rules.
8781 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8782 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8784 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8785 * m2-exp.y (yylex): Likewise.
8786 * printcmd.c (address_info, print_frame_args): Likewise.
8787 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8788 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8789 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8790 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8791 * symtab.c (lookup_block_symbol): Likewise.
8793 2003-02-20 Adam Fedor <fedor@gnu.org>
8795 * symtab.h: Remove objc_specific struct
8796 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8797 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8798 Have language_objc use cplus_specific struct.
8800 2003-02-20 Tom Tromey <tromey@redhat.com>
8802 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8803 TYPE_NAME, when printing a String value. PR java/1075.
8805 2003-02-20 Adam Fedor <fedor@gnu.org>
8807 * objc-lang.h (find_methods): Remove declaration.
8808 * objc-lang.c (find_methods): Make static.
8810 2003-02-20 Christopher Faylor <cgf@redhat.com>
8812 * win32-nat.c (get_image_name): Check return value from
8814 (child_xfer_memory): Ditto.
8816 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8818 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8819 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8820 '${exec_prefix}' (in addition to the expansion thereof) as
8822 * configure: Rebuilt.
8824 2003-02-20 David Carlton <carlton@math.stanford.edu>
8826 * symtab.c (search_symbols): Revert the search_symbols part of my
8827 2002-12-23 patch. Add comment.
8829 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8831 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8832 * dbxread.c (elfstab_build_psymtabs): Don't call
8833 install_minimal_symbols.
8834 (stabsect_build_psymtabs): Likewise.
8835 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8837 * somread.c (som_symfile_read): Call install_minimal_symbols
8838 and do_cleanups earlier.
8839 * nlmread.c (nlm_symfile_read): Likewise.
8840 * mdebugread.c (elfmdebug_build_psymtabs): Call
8841 install_minimal_symbols and make appropriate cleanups.
8843 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8845 * solib.c (reload_shared_libraries): New function.
8846 (_initialize_solib): Add callbacks for ``set solib-search-path''
8847 and ``set solib-absolute-prefix''.
8849 2003-02-20 David Carlton <carlton@math.stanford.edu>
8851 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8853 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8854 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8855 * ada-typeprint.c (ada_typedef_print): Ditto.
8856 * ax-gdb.c (gen_var_ref): Ditto.
8857 * breakpoint.c (print_one_breakpoint): Ditto.
8858 * buildsym.c (finish_block): Ditto.
8859 * c-valprint.c (c_val_print): Ditto.
8860 * expprint.c (print_subexp): Ditto.
8861 * findvar.c (locate_var_value): Ditto.
8862 * infcmd.c (jump_command): Ditto.
8863 * linespec.c (decode_line_2, decode_compound): Ditto.
8864 * maint.c (maintenance_translate_address): Ditto.
8865 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8866 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8868 * p-valprint.c (pascal_val_print): Ditto.
8869 * stabsread.c (define_symbol): Ditto.
8870 * stack.c (print_frame, frame_info, print_block_frame_locals)
8871 (print_frame_arg_vars, return_command): Ditto.
8872 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8873 * symmisc.c (print_symbol): Ditto.
8874 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8875 (compare_search_syms, print_symbol_info, print_msymbol_info)
8876 (rbreak_command): Ditto.
8877 * tracepoint.c (tracepoints_info): Ditto.
8878 * typeprint.c (typedef_print): Ditto.
8879 * valops.c (value_of_variable, hand_function_call): Ditto.
8880 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8881 * ada-typeprint.c: Update Copyright.
8882 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8883 * tracepoint.c, cli/cli-cmds.c: Ditto.
8885 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8887 * frame.c (generic_unwind_get_saved_register): Make non-static.
8888 * frame.h (generic_unwind_get_saved_register): Declare.
8889 * mips-tdep.c (read_next_frame_reg): Fetch register from
8890 current regcache when frame is NULL.
8891 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8893 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8894 instead of frame_register_unwind().
8896 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8898 * remote-sim.c (gdbsim_insert_breakpoint)
8899 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8902 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8904 * remote.c (_initialize_remote): Add commands "set/show remote
8905 hardware-watchpoint-limit" and "set/show remote
8906 hardware-breakpoint-limit".
8907 (remote_hw_watchpoint_limit): Initialize to -1.
8908 (remote_hw_breakpoint_limit): Ditto.
8909 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8911 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8913 * coff-pe-read.c: New file - support reading of minimal symbols from a
8914 portable executable using the export table.
8915 * coff-pe-read.h: New file.
8916 * coffread.c: Include coff-pe-read.h.
8917 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8918 debugging symbols found.
8919 * Makefile.in (SFILES): Add coff-pe-read.o.
8920 (coff_pe_read_h): Define.
8921 (COMMON_OBS): Add coff-pe-read.o.
8922 (coffread.o): Add coff_pe_read_h dependency.
8923 (coff-pe-read.o): New target.
8925 2003-02-19 David Carlton <carlton@math.stanford.edu>
8927 * Makefile.in (SFILES): Add block.c.
8929 (COMMON_OBS): Add block.o.
8931 (x86-64-tdep.o): Add $(block_h).
8932 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8933 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8934 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8935 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8936 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8937 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8938 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8939 * value.h: Add opaque declaration for struct block.
8940 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8941 * ada-lang.h: Ditto.
8942 * x86-64-tdep.c: #include "block.h"
8943 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8944 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8945 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8946 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8947 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8948 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8949 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8950 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8951 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8952 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8953 * symtab.c (block_function): Ditto.
8954 (contained_in): Ditto.
8955 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8956 block.h. Add opaque declaration for struct block.
8957 * symtab.h: Move block_function and contained_in declarations to
8958 block.h. Add opaque declarations for struct block, struct
8960 (struct block): Move to block.h.
8961 (struct blockvector): Ditto.
8962 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8963 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8964 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8965 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8966 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8968 * block.c: New file.
8969 * block.h: New file.
8971 2003-02-19 Theodore A. Roth <troth@openavr.org>
8973 * avr-tdep.c (avr_extract_return_value): Remove function.
8974 (avr_store_return_value): Remove function.
8975 (avr_extract_struct_value_address): Remove function.
8976 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8978 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8980 * rs6000-tdep.c: Include "gdb_assert.h".
8981 (registers_e500): Add "acc" and "spefscr".
8982 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8983 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8984 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8986 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8988 2003-02-18 Keith Seitz <keiths@redhat.com>
8990 * Makefile.in: Add gdbtk-interps.c.
8992 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8994 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8995 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8997 2003-02-18 Andrew Cagney <cagney@redhat.com>
8999 * symtab.h (struct objfile): Add opaque declaration.
9001 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9003 From Jim Ingham <jingham@apple.com>:
9004 * dbxread.c (process_one_symbol): Use last_function_start rather
9005 than function_start_offset to find the real beginning of the
9006 current function. The latter is just the text section offset on
9007 some systems, the former is always the real function start.
9009 2003-02-17 Andrew Cagney <cagney@redhat.com>
9011 * configure.in: Revert ${target} != ${host}.
9013 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9015 * configure.in (Makefile): Use the test ${target} != ${host},
9016 instead of the absence of the "nm.h" file, to determine of the
9017 configuration non-native.
9018 * configure: Regenerate.
9020 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9022 From Brian Ford <ford@vss.fsi.com>
9024 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9025 conditionalize tui_active test.
9026 (lookup_cmd_1): Ditto.
9028 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9030 * configure.in: Add check for _etext.
9031 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9033 * config.in, configure: regenerated.
9035 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9037 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9039 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9041 * main.c (tui_version): Delete variable.
9042 (captured_main): When --tui, set interpreter_p to "tui" instead of
9043 enabling tui_version.
9044 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9046 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9047 * cli/cli-cmds.c (disassemble_command): Ditto.
9048 * defs.h (tui_version): Delete declaration.
9049 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9050 (tui-interp.o): Add rules.
9051 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9053 2003-02-14 Christopher Faylor <cgf@redhat.com>
9055 * win32-nat.c (register_loaded_dll): Correctly set address range for
9058 2003-02-12 Jason Molenda (jmolenda@apple.com)
9060 * symmisc.c (print_objfile_statistics): Include information about
9061 the number of psymtabs and symtabs in each object file.
9063 2003-02-13 Keith R Seitz <keiths@redhat.com>
9065 * main.h (struct captured_main_args): Add interpreter_p.
9066 * main.c (captured_main): Initialize interpreter_p from context.
9067 * gdb.c (main): Set interpreter_p argument.
9068 * Makefile.in (gdb.o): Add dependency for interps.h.
9070 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9072 * event-top.c (cli_command_loop): Delete declaration.
9073 (_initialize_event_loop): Delete function setting event_loop_hook.
9074 * event-top.h (cli_command_loop): Declare. Update copyright.
9075 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9076 * interps.c (current_interp_command_loop): When event_loop_p, call
9079 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9081 * interps.h (interp_command_loop_ftype): Change return type to
9084 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9086 * x86-64-tdep.c (x86_64_extract_return_value)
9087 (x86_64_store_return_value): Use regcache instead of regbuf.
9088 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9089 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9091 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9093 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9094 * aclocal.m4: Regenerate.
9095 * configure: Regenerate.
9097 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9098 TCL_LD_SEARCH_FLAGS.
9100 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9102 * dwarf2cfi.c: Reindented.
9104 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9106 * interps.c (clear_interpreter_hooks): Convert function definition
9109 2003-02-07 David Carlton <carlton@math.stanford.edu>
9111 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9113 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9115 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9116 (struct type): ...to here.
9117 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9119 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9120 (replace_type): Set length on all type variants for a given type.
9122 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9124 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9126 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9128 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9130 * Makefile.in (symm-nat.o): Update dependencies.
9131 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9132 (lynx-nat.o, ia64-linux-nat.): Ditto.
9133 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9134 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9135 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9137 * Makefile.in (inflow_h): Define.
9138 (procfs.o, inflow.o, procfs.o): Update dependencies.
9139 * inftarg.c (child_stop): Delete extern declaration of
9140 inferior_process_group. Include "inflow.h".
9141 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9142 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9143 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9144 (our_process_group, inferior_process_group): Extern declarations.
9146 * procfs.c: Include "gdb_assert.h".
9148 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9149 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9150 * jv-typeprint.c (java_type_print_base): Ditto.
9151 * typeprint.c (typedef_print): Eliminate STREQ.
9152 * cli/cli-script.c (define_command, define_command): Ditto.
9153 * main.c (captured_main): Ditto.
9154 * values.c (lookup_internalvar): Ditto.
9155 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9156 within `if' conditional.
9157 * linespec.c (decode_line_2): Ditto.
9158 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9159 (bfd_openw_with_cleanup): Ditto.
9161 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9163 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9164 legacy_extract_return_value and store_return_value to
9165 legacy_return_value.
9167 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9169 * win32-nat.c (get_relocated_section_addrs): New function. Find
9170 section load addresses for symbol handling in relocated DLLs.
9171 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9173 2003-02-05 Fred Fish <fnf@intrinsity.com>
9175 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9177 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9179 (angel_RDI_info): Ditto.
9180 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9182 (threads_continue_all_with_signals): Ditto.
9184 2003-02-05 Jim Ingham <jingham@apple.com>
9185 Keith Seitz <keiths@redhat.com>
9186 Elena Zannoni <ezannoni@redhat.com>
9187 Andrew Cagney <ac131313@redhat.com>
9189 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9190 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9191 (SUBDIR_MI_OBS): Add "mi-interp.o".
9192 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9193 (SFILES): Add "interps.c".
9194 (COMMON_OBS): Add "interps.o".
9195 (interps_h, mi_main_h): Define.
9196 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9197 (mi-main.o, main.o, event-top.o): Update dependencies.
9198 * cli/cli-interp.c: New file.
9199 * interps.h, interps.c: New files.
9200 * top.c: (gdb_init): Don't install the default interpreter, handed
9202 * main.c: Include "interps.h".
9203 (interpreter_p): Note that it should malloc'ed.
9204 (captured_command_loop): Call current_interp_command_loop.
9205 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9206 xfree and xstrdup when updating interpreter_p. Install the
9207 default interpreter. Add hack to stop mi1's copyright notice
9209 * event-top.h (gdb_setup_readline): Declare.
9210 (gdb_disable_readline): Declare.
9211 * event-top.c: Include "interps.h".
9212 (display_gdb_prompt): Call current_interp_display_prompt_p.
9213 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9214 gdb_stdlog, and gdb_stdtarg.
9215 (_initialize_event_loop): Don't call gdb_setup_readline.
9216 * cli-out.c (cli_out_set_stream): New function.
9217 * cli-out.h (cli_out_set_stream): Declare.
9219 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9221 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9222 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9223 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9224 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9225 config/i386/i386v42mp.mt: Removed.
9227 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9229 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9232 2003-02-05 Michael Chastain <mec@shout.net>
9234 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9235 2.12.1 and earlier versions.
9237 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9239 Remove orphaned hosts, targets and files.
9240 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9241 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9242 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9243 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9244 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9245 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9246 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9247 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9248 * config/sparc/tm-sp64sim.h: Delete.
9249 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9251 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9252 mips*-dec-mach3* targets.
9254 2003-02-04 Michael Chastain <mec@shout.net>
9256 * NEWS: Fix typo: sepcifying -> specifying.
9258 2003-02-04 Michael Chastain <mec@shout.net>
9260 * dwarfread.c: Add documentation on the state of dwarf-1,
9261 looking towards obsoletion.
9263 2003-02-03 Michael Chastain <mec@shout.net>
9265 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9266 gdb/testsuite/gdb.c++/pr-1023.exp.
9268 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9270 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9271 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9273 * utils.c (init_page_info): Delete reference to MPW in comments.
9274 * main.c (captured_main): Delete #ifdef MPW.
9276 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9278 * NEWS: Note that the m32r-*-elf* is obsolete.
9279 * monitor.c (monitor_expect): Obsolete reference to m32r.
9280 * configure.tgt: Mark m32r-*-elf* as obsolete.
9281 * MAINTAINERS: Mark m32k as obsolete.
9282 * m32r-rom.c: Obsolete file.
9283 * config/m32r/m32r.mt: Obsolete file.
9284 * config/m32r/tm-m32r.h: Obsolete file.
9285 * m32r-stub.c: Obsolete file.
9286 * m32r-tdep.c: Obsolete file.
9288 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9290 * NEWS: Mention that the z8k-zilog-none is obsolete.
9291 * MAINTAINERS: Mark z8k as obsolete.
9292 * configure.tgt: Obsolete the z8k-*-coff* target.
9293 * config/z8k/z8k.mt: Obsolete file.
9294 * config/z8k/tm-z8k.h: Obsolete file.
9295 * z8k-tdep.c: Obsolete file.
9297 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9299 * NEWS: Mention that the mn10200-elf is obsolete.
9300 * configure.tgt: Obsolete mn10200-*-* target.
9301 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9302 mention that the mn10200 is obsolete.
9303 * breakpoint.h: Ditto.
9304 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9305 * config/mn10200/mn10200.mt: Obsolete file.
9306 * config/mn10200/tm-mn10200.h: Obsolete file.
9307 * mn10200-tdep.c: Obsolete file.
9309 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9311 * MAINTAINERS: Mark h8500 as obsolete.
9312 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9313 * findvar.c (value_from_register): Ditto.
9314 * h8500-tdep.c: Mark file as obsolete.
9315 * config/h8500/h8500.mt: Ditto.
9316 * config/h8500/tm-h8500.h: Ditto.
9317 * NEWS: Mention that h8500 is obsolete.
9319 2003-02-04 David Carlton <carlton@math.stanford.edu>
9321 * objfiles.c (allocate_objfile): Always set name. Add comment at
9323 * jv-lang.c (get_dynamics_objfile): Add comment.
9325 2003-02-04 David Carlton <carlton@math.stanford.edu>
9327 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9328 * printcmd.c (build_address_symbolic): Replace uses of
9329 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9330 SYMBOL_NAME, and asm_demangle.
9333 2003-02-04 David Carlton <carlton@math.stanford.edu>
9335 * linespec.c (decode_compound): Extract code into
9337 (lookup_prefix_sym): New function.
9339 2003-02-04 David Carlton <carlton@math.stanford.edu>
9341 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9342 FLOAT_COERCION_BADNESS.
9343 * gdbtypes.c (rank_one_type): Replace all uses of
9344 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9346 2003-02-04 Jim Blandy <jimb@redhat.com>
9348 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9349 section, let dwarf_macinfo_section point to it, not
9352 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9354 Pointed out by Anton Blanchard <anton@samba.org>.
9355 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9356 (ppc_linux_at_sigtramp_return_path): Use it.
9358 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9360 * defs.h (streq): Add prototype.
9361 * utils.c (streq): New function.
9363 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9364 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9365 * mdebugread.c (new_symbol): Likewise.
9366 * stabsread.c (define_symbol): Likewise.
9367 * coffread.c (process_coff_symbol): Likewise.
9368 * dwarfread.c (new_symbol): Likewise.
9370 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9371 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9373 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9374 SYMBOL_INIT_DEMANGLED_NAME.
9375 * objfiles.c: Include "hashtab.h".
9376 (allocate_objfile): Call htab_set_functions_ex for the
9377 demangled_names_hash.
9378 (free_objfile): Call htab_delete for the demangled_names_hash.
9379 * objfiles.h (struct htab): Add declaration.
9380 (struct objfile): Add demangled_names_hash.
9381 * symfile.c: Include "hashtab.h".
9382 (reread_symbols): Call htab_delete for the demangled_names_hash.
9383 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9384 SYMBOL_NAME in the bcache.
9385 * symtab.c: Include "hashtab.h". Update comments.
9386 (create_demangled_names_hash, symbol_set_names): New functions.
9387 (symbol_find_demangled_name): New function, broken out from
9388 symbol_init_demangled_names.
9389 (symbol_init_demangled_names): Use it.
9390 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9391 (SYMBOL_SET_NAMES): New macro.
9392 (symbol_set_names): Add prototype.
9394 2003-02-03 Jim Blandy <jimb@redhat.com>
9396 Use a single, consistent representation for an empty minimal
9397 symbol table in an objfile.
9398 * objfiles.c (terminate_minimal_symbol_table): New function.
9399 (allocate_objfile): Call it.
9400 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9401 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9403 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9404 objfile has minimal symbols, compare minimal_symbol_count to zero,
9405 instead of comparing msymbols with NULL.
9406 * objfiles.c (have_minimal_symbols): Same.
9407 * solib-sunos.c (solib_add_common_symbols): Call
9408 terminate_minimal_symbol_table.
9409 * symfile.c (reread_symbols): Same.
9411 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9413 * s390-tdep.c (s390_address_class_type_flags)
9414 (s390_address_class_type_flags_to_name)
9415 (s390_address_class_name_to_type_flags): New functions.
9416 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9417 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9419 2003-02-03 Michael Snyder <msnyder@redhat.com>
9421 * arm-tdep.c: Fix spell-o in comment.
9423 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9425 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9426 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9427 error messages to contain BFD filename.
9429 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9431 Fix PR gdb/742 gdb/743 gdb/877
9432 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9433 (do_mixed_source_and_assembly): Use
9434 make_cleanup_ui_out_tuple_begin_end and
9435 make_cleanup_ui_out_tuple_begin_end.
9436 (do_mixed_source_and_assembly): Ditto.
9437 * thread.c (do_captured_list_thread_ids): Ditto.
9438 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9439 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9440 ui_out_tuple_end): Delete prototypes.
9441 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9442 ui_out_list_end, ui_out_tuple_end): Delete.
9444 From Kevin Buettner <kevinb@redhat.com>:
9445 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9446 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9447 (do_cleanup_table_end): New functions.
9448 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9449 Use cleanups to invoke_ui_out_tuple_end().
9450 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9451 * cli/cli-setshow.c (cmd_show_list): Use
9452 make_cleanup_ui_out_tuple_begin_end.
9454 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9456 * frame.c (frame_unwind_register): New function.
9457 (frame_unwind_unsigned_register): Use.
9458 (frame_unwind_signed_register): Use.
9459 (frame_read_register): New function.
9460 * frame.h (frame_unwind_register): Declare.
9461 (frame_read_register): Declare.
9463 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9464 and frame_unwind_register instead of read_memory, write_register
9465 and deprecated_write_register_bytes.
9467 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9469 * frame.h: Note that namelen can be negative.
9470 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9473 * NEWS: Mention that the d10v's `regs' command is deprecated.
9474 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9475 (d10v_print_registers_info): New function.
9476 (show_regs): Call d10v_print_registers_info.
9477 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9479 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9481 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9482 lost in the previous patch.
9484 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9486 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9487 * stack.c (print_frame_info_base): Output complete FRAME tuple
9488 for synthesized frames.
9490 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9492 * mips-nat.c (zerobuf): Delete.
9493 (fetch_inferior_registers): Alloc local zerobuf.
9494 (fetch_core_registers): Alloc local zerobuf.
9495 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9496 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9497 * thread-db.c (thread_db_store_registers): Ditto.
9498 * sh-tdep.c (sh_do_register): Ditto.
9499 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9500 * remote-sim.c (gdbsim_store_register): Ditto.
9501 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9502 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9503 * monitor.c (monitor_supply_register): Ditto.
9504 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9505 * mips-nat.c (fetch_inferior_registers): Ditto.
9506 * m68klinux-nat.c (fetch_register): Ditto.
9507 * lynx-nat.c (fetch_inferior_registers): Ditto.
9508 (fetch_inferior_registers): Ditto.
9509 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9510 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9511 (hpux_thread_store_registers): Ditto.
9512 * hppah-nat.c (fetch_register): Ditto.
9513 * hppab-nat.c (fetch_register): Ditto.
9514 * hppa-tdep.c (pa_register_look_aside): Ditto.
9515 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9516 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9518 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9520 * gdbarch.sh: Explictly specify all method levels. When a
9521 variable with an empty level, provide a non-multi-arch default.
9522 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9523 * gdbarch.h: Re-generate.
9524 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9525 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9527 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9529 * defs.h (host_pointer_to_address): Delete declaration.
9530 (address_to_host_pointer): Delete declaration.
9531 * utils.c (host_pointer_to_address): Delete function.
9532 (address_to_host_pointer): Delete function.
9533 * procfs.c (procfs_address_to_host_pointer): New function.
9534 * procfs.c (proc_set_watchpoint): Use.
9535 (procfs_can_use_hw_breakpoint): Update comments.
9536 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9537 (som_solib_add): Use.
9538 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9539 * hppa-tdep.c (unwind_command): Use.
9541 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9543 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9546 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9547 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9548 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9549 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9550 (define_symbol): Update.
9551 * symfile.c (generic_load): Remove references to nindy.
9552 * symtab.c: Remove references to nindy.
9554 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9556 * infcmd.c (print_float_info): Delete code conditional on
9558 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9559 * config/m68k/nm-apollo68b.h: Ditto.
9560 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9561 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9562 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9564 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9566 * config/i386/tm-i386os9k.h: Removed.
9568 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9569 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9570 they're identical to i[3456]86-*-sysv* now.
9571 * config/i386/i386v32.mh: Removed.
9572 * config/i386/xm-i386v32.h: Removed.
9573 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9575 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9577 * config/i386/i386dgux.mh: Removed.
9578 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9580 * configure.in: Fix typo.
9581 * configure: Regenerated.
9583 2003-01-31 David Carlton <carlton@math.stanford.edu>
9585 * dwarf2read.c (dwarf2_locate_sections): Set
9586 dwarf_ranges_section.
9588 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9590 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9591 * utils.c: Update comments documenting legitimate uses of PTR.
9593 * utils.c: Re-indent.
9595 * config/djgpp/fnchange.lst: Delete nindy files.
9596 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9597 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9598 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9599 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9600 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9601 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9602 * Makefile.in (init.c): Remove nindy references.
9603 (saber_gdb): Delete rule.
9604 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9605 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9607 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9608 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9609 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9610 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9612 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9613 * saber.suppress: Delete file.
9615 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9617 * dbxread.c (stabs_data): New static variable.
9618 (fill_symbuf): Support an in-memory buffer for stabs data.
9619 (stabs_seek): New function.
9620 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9621 (read_ofile_symtab): Use stabs_seek.
9622 (elfstab_build_psymtabs): Take an asection* instead of
9623 an offset and size. Relocate the stabs data if necessary.
9624 Save the section* for dbx_psymtab_to_symtab.
9625 * dwarf2read.c: Add section variables for each debug section.
9626 (dwarf2_locate_sections): Fill them in.
9627 (dwarf2_read_section): Take an asection* argument.
9628 Relocate the section contents if necessary.
9629 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9630 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9631 it to dwarf2_read_section.
9632 (dwarf2_build_frame_info): Update callers.
9633 * elfread.c (elf_symfile_read): Update call to
9634 elfstab_build_psymtabs.
9635 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9636 (DBX_STAB_SECTION): New macro.
9637 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9638 * symfile.c (symfile_dummy_outputs): New function.
9639 (symfile_relocate_debug_section): New function.
9640 * symfile.h (symfile_relocate_debug_section): Add prototype.
9642 2003-01-31 Richard Henderson <rth@redhat.com>
9644 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9645 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9646 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9647 * alpha-tdep.c (alpha_register_name): Add "unique".
9648 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9649 (ALPHA_UNIQUE_REGNUM): New.
9650 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9652 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9654 * README: Remove reference to Ericsson 1800 monitor.
9655 * Makefile.in (remote-es.o): Delete rule.
9656 (ALLDEPFILES): Delete remote-es.c.
9657 * remote-es.c: Delete file.
9658 * config/m68k/es1800.mt: Delete file.
9659 * config/djgpp/fnchange.lst: Update.
9660 * configure.tgt: Delete m68*-ericsson-* target.
9662 2003-01-31 Adam Fedor <fedor@gnu.org>
9664 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9665 Remove duplicate/shadowing variable of same name.
9667 2003-01-30 Jim Blandy <jimb@redhat.com>
9669 * symfile.c (find_separate_debug_file): Assert that the objfile's
9670 directory name we compute ends with a slash, and then assume that
9671 that's so everywhere we use it.
9673 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9675 * valops.c (value_assign): Flush frame cache after stores to memory
9678 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9680 * Makefile.in (mon960-rom.o): Delete rule.
9681 * mon960-rom.c: Delete file.
9683 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9685 * d10v-tdep.c: Include "frame-unwind.h".
9686 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9688 (next_addr, uses_frame): Delete.
9689 (struct d10v_unwind_cache): Define.
9690 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9691 Use info instead of next_addr and uses_frame globals.
9692 (d10v_frame_init_saved_regs): Delete function.
9693 (d10v_init_extra_frame_info): Delete function.
9694 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9695 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9696 init_frame_pc or frame_saved_pc.
9697 (d10v_pop_frame): Delete function.
9698 (do_d10v_pop_frame): Delete function.
9699 (d10v_frame_chain): Delete function.
9700 (d10v_frame_chain_valid): Delete function.
9701 (d10v_frame_pc_unwind): New function.
9702 (d10v_frame_id_unwind): New function.
9703 (saved_regs_unwinder): New function.
9704 (d10v_frame_register_unwind): New function.
9705 (d10v_frame_pop): New function.
9706 (d10v_frame_unwind): New variable.
9707 (d10v_frame_p): New function.
9708 (d10v_frame_saved_pc): Delete function.
9709 * Makefile.in (d10v-tdep.o): Update dependencies.
9711 2003-01-30 J. Brobecker <brobecker@gnat.com>
9713 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9714 causing some regressions due to a change in the default value
9717 2003-01-29 Richard Henderson <rth@redhat.com>
9718 Elena Zannoni <ezannoni@redhat.com>
9719 Daniel Jacobowitz <drow@mvista.com>
9722 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9724 (RANGES_SECTION): New.
9725 (dwarf_ranges_buffer): New variable.
9726 (struct comp_unit_head): Add member "die".
9727 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9728 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9729 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9730 (dwarf2_locate_sections): Likewise.
9731 (dwarf2_build_psymtabs): Read .debug_ranges.
9732 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9733 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9734 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9735 Look for DW_AT_ranges and return the bounding box.
9737 2003-01-29 Brian Ford <ford@vss.fsi.com>
9739 * win32-nat.c (cygwin_pid): Removed as unused.
9740 (child_attach): Try fall back to Cygwin pid.
9742 2003-01-29 Jim Blandy <jimb@redhat.com>
9744 * objfiles.h (struct objfile): Doc fix.
9746 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9748 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9749 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9750 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9751 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9752 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9753 (FRAME_SAVED_PC): Change to a function with predicate.
9754 * gdbarch.h, gdbarch.c: Re-generate.
9756 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9758 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9760 * complaints.c (complain): Delete function.
9761 * complaints.h (struct deprecated_complaint): Delete definition.
9762 (complain): Delete declaration.
9764 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9766 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9769 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9771 * sentinel-frame.h, sentinel-frame.c: New files.
9772 * Makefile.in (frame.o): Update dependencies.
9773 (SFILES): Add sentinel-frame.c.
9774 (sentinel_frame_h): Define.
9775 (COMMON_OBS): Add sentinel-frame.o.
9776 (sentinel-frame.o): Specify dependencies.
9777 * frame.c: Include "sentinel-frame.h".
9778 (frame_register_unwind): Rewrite assuming that there is always a a
9780 (frame_register, generic_unwind_get_saved_register): Ditto.
9781 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9782 (create_sentinel_frame, unwind_to_current_frame): New functions.
9783 (get_current_frame): Rewrite using create_sentinel_frame and
9784 unwind_to_current_frame. When possible, always create a frame.
9785 (create_new_frame): Set next to the sentinel frame.
9786 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9787 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9788 ID cache when necessary.
9789 (frame_saved_regs_id_unwind): Use frame_relative_level.
9790 (deprecated_generic_get_saved_register): Use frame_relative_level,
9791 get_frame_saved_regs, get_frame_pc, get_frame_base and
9793 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9796 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9798 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9800 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9802 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9803 (maintenance_set_profile_cmd): Use error () instead of warning ().
9805 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9807 * configure.in: Check that -pg works if using --enable-profiling.
9808 Check for monstartup and _mcleanup regardless of --enable-profiling.
9809 * maint.c: Check for monstartup and _mcleanup before using them.
9810 * config.in: Regenerated.
9811 * configure: Regenerated.
9813 2003-01-24 Nick Clifton <nickc@redhat.com>
9817 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9819 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9820 (sh2e_show_regs): New.
9821 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9822 * config/sh/tm-sh.h: Added sh2e to comments.
9824 2003-01-23 Jim Blandy <jimb@redhat.com>
9826 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9827 symbols found)" message here; we haven't checked for a separate
9828 debug info file yet, so we don't know yet.
9829 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9830 we've looked everywhere. Also, there's no need to print a special
9831 message when we're loading the separate debug info file: the one
9832 symbol_file_add prints is fine.
9834 2003-01-23 Alexander Larsson <alexl@redhat.com>
9835 Jim Blandy <jimb@redhat.com>
9837 Add support for executables whose debug info has been separated
9838 out into a separate file, leaving only a link behind.
9839 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9840 and separate_debug_objfile_backlink.
9841 (put_objfile_before): New declaration.
9842 * symfile.c: #include "filenames.h".
9843 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9844 debug info in a separate file, read that, too. Save the addrs
9845 argument, so we can use it again to read the separated debug info;
9846 syms_from_objfile modifies the table we pass it.
9847 (reread_symbols): After re-reading an objfile, call
9848 reread_separate_symbols to refresh its separate debug info
9849 objfile, if it has one.
9850 (reread_separate_symbols, find_separate_debug_file,
9851 get_debug_link_info, separate_debug_file_exists): New functions.
9852 (debug_file_directory): New global var.
9853 (_initialize_symfile): Initialize debug_file_directory, and
9854 provide the new `set debug-file-directory' command to let the user
9856 * objfiles.c (free_objfile): If this objfile has its debug info in
9857 a separate objfile, free that one too. If this is itself a
9858 separate debug info objfile, clear our parent's backlink.
9859 (put_objfile_before): New function.
9860 * utils.c (gnu_debuglink_crc32): New function.
9861 * defs.h (gnu_debuglink_crc32): New declaration.
9862 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9863 * configure.in: Handle --with-separate-debug-dir config option.
9864 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9865 * acconfig.h (DEBUGDIR): New macro.
9866 * configure, aclocal.m4, config.in: Regenerated.
9868 2003-01-22 Jim Blandy <jimb@redhat.com>
9870 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9871 like the old symbol_file_add, but taking new arguments: you can
9872 now pass in either a `struct section_addr_info' list to say where
9873 each section is loaded, or a `struct section_offsets' table. Pass
9874 these new arguments through to syms_from_objfile as appropriate.
9875 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9876 with the appropriate quiescent values for the new arguments.
9878 * symfile.c: #include "gdb_assert.h".
9879 (syms_from_objfile): Add the ability to pass in a section offset
9880 table directly, as an alternative to the section_addr_info table.
9881 Document arguments better.
9882 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9883 * symfile.h (syms_from_objfile): Update declaration.
9884 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9886 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9888 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9890 Original patch by Tom Tromey <tromey@cygnus.com> and
9891 Jason Molenda <jmolenda@apple.com>.
9892 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9893 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9894 * NEWS: Mention profiling.
9895 * configure.in (--enable-gdbtk): Fix typo.
9896 (--enable-profiling): New. Set PROFILE_CFLAGS.
9897 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9899 (profiling_state): New variable.
9900 (mcleanup_wrapper): New function.
9901 (_initialize_maint): Remove NOTYET, fix call to
9902 add_setshow_boolean_cmd for "maint set profile".
9903 * configure: Regenerated.
9905 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9907 * Makefile.in (install-gdbtk): Install PNG images too.
9909 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9911 * exec.c (text_start): Delete global variable.
9912 (exec_file_attach): Make text_start local to the function.
9913 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9914 * valops.c (hand_function_call): Delete code that handles
9915 BEFORE_TEXT_END and AFTER_TEXT_END.
9916 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9917 of CALL_DUMMY_LOCATION.
9918 * gdbarch.c: Regenerate.
9919 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9920 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9921 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9922 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9923 (text_end): Delete extern declaration.
9925 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9927 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9928 * blockframe.c (backtrace_below_main): Move to "frame.c".
9929 (frame_chain_valid): Delete check for backtrace_below_main.
9930 (_initialize_blockframe): Delete initialization, move ``set
9931 backtrace-below-main'' command to "frame.c".
9932 (do_flush_frames_sfunc): Delete function.
9933 * frame.c: Include "command.h" and "gdbcmd.h".
9934 (frame_type_from_pc): New function.
9935 (create_new_frame): Use frame_type_from_pc.
9936 (legacy_get_prev_frame): New function.
9937 (get_prev_frame): Rewrite. When an old style frame, call
9938 legacy_get_prev_frame. Otherwize, unwind the PC first.
9939 (_initialize_frame): Add ``set backtrace-below-main'' command.
9940 * Makefile.in (frame.o): Update dependencies.
9942 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9944 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9945 DEPRECATED_REGISTERS_INFO.
9947 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9949 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9950 Maintainers'. Update `Various Maintainers'.
9952 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9954 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9955 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9956 Suppress actual parameters when `-'.
9957 * gdbarch.h, gdbarch.c: Regenerate.
9959 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9961 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9962 code handling dummy frames.
9964 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9966 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9967 (struct frame_unwind): Add field pop.
9968 * frame.h (frame_pop): Declare.
9969 * frame.c (frame_saved_regs_pop): New function.
9970 (trad_frame_unwinder): Add frame_saved_regs_pop.
9971 (frame_pop): New function.
9972 * dummy-frame.c (dummy_frame_pop): New function.
9973 (discard_innermost_dummy): New function.
9974 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9975 (dummy_frame_unwind): Add dummy_frame_pop.
9976 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9977 * valops.c (hand_function_call): Ditto.
9978 * stack.c (return_command): Ditto.
9980 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9982 * cris-tdep.c: Fix function declaration indentation.
9983 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9984 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9985 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9986 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9987 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9988 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9990 2003-01-18 Michael Chastain <mec@shout.net>
9992 * README (Unpacking and Installation -- quick overview):
9993 Warn against ".../gdb-5.3/gdb/configure".
9995 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9997 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9998 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9999 (struct frame_unwind): Declare opaque.
10000 (dummy_frame_p): Declare function.
10001 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10002 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10003 * dummy-frame.c: Include "frame-unwind.h".
10004 (dummy_frame_p): New function.
10005 (dummy_frame_unwind): New variable.
10006 * frame.c: Include "frame-unwind.h".
10007 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10008 to use the new unwind field.
10009 (set_unwind_by_pc): Delete function.
10010 (create_new_frame, get_prev_frame): Set unwind field using
10011 frame_unwind_find_by_pc.
10012 (trad_frame_unwind, trad_frame_unwinder): New variables.
10013 * frame.h (trad_frame_unwind): Declare variable.
10014 (frame_id_unwind_ftype): Delete declaration.
10015 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10016 (struct frame_unwind): Declare opaque.
10017 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10018 register_unwind with a single unwind pointer.
10019 * frame-unwind.h, frame-unwind.c: New files.
10020 * Makefile.in (SFILES): Add frame-unwind.c.
10021 (frame_unwind_h): Define.
10022 (COMMON_OBS): Add frame-unwind.o.
10023 (frame-unwind.o): Specify dependencies.
10024 (frame.o, dummy-frame.o): Update dependencies.
10026 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10028 * ada-valprint.c: Eliminate PTR.
10029 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10030 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10031 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10032 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10033 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10034 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10035 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10037 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10039 * main.c (captured_main): Don't use PTR.
10040 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10041 * gdbtypes.c (lookup_primitive_typename): Ditto.
10042 (lookup_struct_elt_type): Ditto.
10043 * f-valprint.c (info_common_command): Ditto.
10044 (list_all_visible_commons): Ditto.
10045 * jv-typeprint.c (java_type_print_base): Ditto.
10047 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10048 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10049 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10050 i386-interix-nat.c and i386-interix-tdep.c. Rename
10051 m68klinux-nat.c and m68klinux-tdep.c. Rename
10052 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10053 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10054 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10055 * main.c (captured_main): Use xfree, not free.
10057 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10059 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10060 ID back using a parameter.
10061 * frame.c (frame_id_unwind): Update call.
10062 (frame_saved_regs_id_unwind): Update.
10063 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10064 * dummy-frame.h (struct frame_id): Add opaque declaration.
10065 (dummy_frame_id_unwind): Update declaration.
10067 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10069 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10071 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10073 * MAINTAINERS (Stephen P. Smith): Updated email address.
10075 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10078 * breakpoint.c (until_break_command): Add new argument. Use it to
10079 decide whether to stop only at the current frame or not.
10080 * breakpoint.h (until_break_command): Update prototype.
10081 * infcmd.c (until_command): Add new argument to until_break_command
10083 (advance_command): New function.
10084 (_initialize_infcmd): Update help string for 'until' command.
10085 Add new 'advance' command.
10087 2003-01-14 David Carlton <carlton@math.stanford.edu>
10089 * linespec.c (decode_line_1): Normalize comments.
10090 (set_flags): Ditto.
10091 (locate_first_half): Ditto.
10092 (decode_compound): Ditto.
10093 (symtab_from_filename): Ditto.
10094 (decode_all_digits): Ditto.
10095 (decode_dollar): Ditto.
10096 (find_methods): Ditto.
10097 (find_toplevel_char): Ditto.
10099 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10101 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10102 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10103 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10104 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10105 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10106 * language.c, language.h, m32r-tdep.c: Update copyright.
10107 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10108 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10109 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10110 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10111 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10112 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10114 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10116 * stabsread.h (process_later, resolve_cfront_continuation):
10118 Update copyright years.
10119 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10120 Update copyright year.
10121 * dbxread.c(struct cont_elem): Obsolete.
10122 (process_later, process_now): Obsolete functions.
10123 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10124 Update copyright year.
10125 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10126 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10127 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10128 (parse_partial_symbols): Obsolete cfront support.
10130 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10132 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10133 read_cfront_baseclasses, read_cfront_member_functions,
10134 resolve_cfront_continuation,read_cfront_static_fields,
10135 copy_cfront_struct_fields): Obsolete functions.
10136 (define_symbol, read_one_struct_field): Obsolete cfront support.
10137 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10138 Update Copyright year.
10140 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10142 * stack.c (print_frame_info, print_stack_frame_base_stub,
10143 print_stack_frame_base, show_and_print_stack_frame_stub,
10144 show_and_print_stack_frame, print_only_stack_frame_stub,
10145 print_only_stack_frame): Delete functions.
10146 (print_stack_frame_stub): Call print_frame_info instead of
10147 print_frame_info_base.
10148 (print_frame_info_base): Rename to print_frame_info.
10149 (backtrace_command_1): Call print_frame_info, instead of
10150 print_frame_info_base.
10151 (current_frame_command): Call print_stack_frame, instead of
10152 print_only_stack_frame.
10153 (frame_command): Call print_stack_frame, instead of
10154 show_and_print_stack_frame.
10155 (up_command): Ditto.
10156 (down_command): Ditto.
10157 * frame.h (print_only_stack_frame): Delete prototype.
10158 * infrun.c (normal_stop): Call print_stack_frame, instead of
10159 show_and_print_stack_frame.
10160 * thread.c (info_threads_command): Call print_stack_frame, instead
10161 of print_only_stack_frame.
10163 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10165 * README (Graphical interface to GDB): Update URL. Point at
10168 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10171 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10173 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10176 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10178 * thread-db.c (attach_thread): Prototype.
10179 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10180 thread information (ti), and valid flags (th_valid, ti_valid).
10181 (attach_thread): Move target_pid_to_str call to after the thread
10182 is added to GDB's list. Initialize the cache.
10183 (thread_get_info_callback, thread_db_map_id2thr)
10184 (thread_db_get_info): New functions.
10185 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10186 (thread_db_store_registers, thread_db_thread_alive)
10187 (thread_db_get_thread_local_address): Use them.
10188 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10189 of calling error() for threads in unknown state.
10191 (clear_lwpid_callback): New function.
10192 (thread_db_resume): Use it to clear the cache.
10194 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10196 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10197 (resume_callback): Remove dead code.
10199 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10201 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10203 * gdbarch.h, gdbarch.c: Regenerate.
10204 * stack.c (frame_info): Only initialize the saved registers when
10205 FRAME_INIT_SAVED_REGS_P.
10206 * frame.c (frame_saved_regs_register_unwind): Assert
10207 FRAME_INIT_SAVED_REGS_P.
10208 (deprecated_generic_get_saved_register): Ditto.
10210 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10212 * source.c (openp): Squelch warning about "filename".
10214 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10216 * source.c (openp): If the file does not exist don't necessarily
10219 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10222 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10223 (integer_types_same_name_p): New function.
10224 (rank_one_type): Use it.
10225 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10227 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10229 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10231 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10232 * configure.in: Add --with-sysroot.
10233 * configure: Regenerated.
10234 * main.c (gdb_sysroot): New variable.
10235 (captured_main): Initialize gdb_sysroot.
10236 * defs.h (gdb_sysroot): New extern declaration.
10237 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10239 2003-01-12 Michael Chastain <mec@shout.net>
10241 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10243 2003-01-12 Michael Chastain <mec@shout.net>
10245 * top.c (print_gdb_version): Bump copyright year to 2003.
10247 2003-01-12 David Carlton <carlton@bactrian.org>
10249 * linespec.c (symtab_from_filename): Rename variable 's' to
10252 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10254 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10256 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10258 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10260 * d10v-tdep.c: Include "gdb_assert.h".
10261 (d10v_store_return_value): Rewrite to match current interface.
10262 (d10v_extract_struct_value_address): Ditto.
10263 (d10v_extract_return_value): Ditto.
10264 (d10v_gdbarch_init): Set store_restore_value,
10265 extract_struct_value_address and extract_return_value.
10267 2003-01-12 J. Brobecker <brobecker@gnat.com>
10269 * hpread.c (set_namestring): New procedure replacing the
10270 SET_NAMESTRING macro.
10271 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10272 by calls to set_namestring.
10274 2003-01-11 J. Brobecker <brobecker@gnat.com>
10276 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10277 a compilation warning.
10278 (hpread_process_one_debug_symbol): Likewise.
10280 2003-01-10 David Carlton <carlton@math.stanford.edu>
10282 * linespec.c (decode_line_1): Rename variable 's' to
10284 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10285 (decode_dollar): Ditto.
10286 (decode_variable): Ditto.
10287 (symbol_found): Ditto.
10289 2003-01-09 Michael Chastain <mec@shout.net>
10291 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10293 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10295 * win32-nat.c (set_process_privilege): New function.
10296 (child_attach): Call set_process_privilege() to enable the
10297 SE_DEBUG_NAME user privilege if available in process token.
10299 2003-01-10 J. Brobecker <brobecker@gnat.com>
10301 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10302 compilation error in the previous revision.
10304 2003-01-09 David Carlton <carlton@math.stanford.edu>
10306 * linespec.c: Update copyright.
10308 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10310 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10311 than inferior_ptid.
10312 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10314 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10316 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10318 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10319 (frame_saved_regs_zalloc): Update.
10320 (frame_saved_regs_register_unwind): Update.
10321 (create_new_frame): Update.
10322 (get_prev_frame): Update.
10323 (frame_extra_info_zalloc): Update.
10324 (deprecated_get_frame_saved_regs): Update.
10325 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10326 * cris-tdep.c: Update comment.
10328 * somsolib.h: Fix function indentation.
10329 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10330 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10331 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10332 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10333 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10335 * infrun.c (follow_fork): Use ISO C definition.
10336 * expprint.c (print_subexp): Use xfree instead of free.
10337 * charset.c: Include "gdb_string.h" instead of <string.h>.
10338 (register_iconv_charsets): Use ISO C definition.
10339 (host_charset, target_charset): Ditto.
10340 * Makefile.in (charset.o): Update dependencies.
10341 (mi-cmd-env.o): Update dependencies.
10343 2003-01-08 Andrew Cagney <cagney@redhat.com>
10345 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10348 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10350 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10351 build directories. Save edited gdb output in Mbuild.log. If a
10352 build fails, remove any final GDB executable.
10354 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10356 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10357 replacing hex constants with function names and stripping leading
10358 file name directory prefixes.
10360 2003-01-08 Andrew Cagney <cagney@redhat.com>
10362 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10365 2003-01-08 David Carlton <carlton@math.stanford.edu>
10367 * linespec.c (decode_line_1): Move code into decode_variable.
10368 (decode_variable): New function.
10370 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10372 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10374 2003-01-08 Andrew Cagney <cagney@redhat.com>
10376 * cris-tdep.c (cris_frame_init_saved_regs): Use
10377 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10379 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10380 (sh64_nofp_frame_init_saved_regs): Ditto.
10381 (sh_fp_frame_init_saved_regs): Ditto.
10382 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10383 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10384 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10385 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10387 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10389 * minsyms.c (lookup_minimal_symbol): Update comment.
10390 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10391 (lookup_minimal_symbol_solib_trampoline): Likewise.
10393 2003-01-08 Andrew Cagney <cagney@redhat.com>
10395 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10396 frame_relative_level.
10398 * alpha-tdep.c: Use get_frame_extra_info.
10399 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10400 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10401 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10402 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10404 * alpha-tdep.c: Use get_next_frame.
10405 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10406 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10407 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10408 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10409 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10410 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10411 * xstormy16-tdep.c: Ditto.
10413 2003-01-07 Andrew Cagney <cagney@redhat.com>
10415 * alpha-tdep.c: Use get_frame_base.
10416 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10417 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10418 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10419 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10420 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10421 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10422 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10423 * config/sparc/tm-sparc.h: Ditto.
10425 2003-01-07 Andrew Cagney <cagney@redhat.com>
10427 * frame.c (deprecated_get_frame_context): New function.
10428 (deprecated_set_frame_context): New function.
10429 * frame.h (deprecated_get_frame_context): Declare.
10430 (deprecated_set_frame_context): Declare.
10431 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10432 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10434 2003-01-07 Andrew Cagney <cagney@redhat.com>
10436 * frame.c (deprecated_set_frame_next_hack): New function.
10437 (deprecated_set_frame_prev_hack): New function.
10438 * frame.h (deprecated_set_frame_next_hack): Declare.
10439 (deprecated_set_frame_prev_hack): Declare.
10440 * mcore-tdep.c (analyze_dummy_frame): Use
10441 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10442 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10444 2003-01-07 David Carlton <carlton@math.stanford.edu>
10446 * linespec.c (decode_line_1): Move code into decode_dollar.
10447 (decode_dollar): New function.
10449 2003-01-07 Andrew Cagney <cagney@redhat.com>
10451 * arm-tdep.c (arm_init_extra_frame_info): Use
10452 deprecated_update_frame_base_hack.
10453 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10454 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10455 (fix_frame_pointer): Ditto.
10456 (mn10300_analyze_prologue): Ditto.
10458 2003-01-07 Andrew Cagney <cagney@redhat.com>
10460 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10461 extra_info using frame_extra_info_zalloc.
10462 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10463 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10464 (sh64_init_extra_frame_info): Ditto.
10465 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10466 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10467 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10468 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10469 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10470 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10471 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10472 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10473 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10474 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10475 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10476 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10478 * mn10300-tdep.c (analyze_dummy_frame): Use
10479 deprecated_set_frame_extra_info_hack.
10480 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10482 2003-01-07 J. Brobecker <brobecker@gnat.com>
10484 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10485 class is not scText. These do not define "real" procedures.
10486 (parse_partial_symbols): Likewise.
10488 2003-01-06 Michael Snyder <msnyder@redhat.com>
10490 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10492 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10494 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10495 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10496 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10497 deprecated_frame_xmalloc_with_cleanup.
10498 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10499 deprecated_frame_xmalloc.
10500 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10501 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10503 2003-01-06 Andrew Cagney <cagney@redhat.com>
10505 * x86-64-linux-tdep.c: Include "osabi.h".
10506 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10508 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10510 2003-01-06 Andrew Cagney <cagney@redhat.com>
10512 * MAINTAINERS (Target Instruction Set Architectures): Update
10513 arm-elf. Can be built with -Werror, has been multiarched.
10515 * value.h (unpack_long): Make buffer parameter constant.
10516 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10517 * scm-lang.h (scm_parse): Ditto.
10518 * defs.h (extract_typed_address, extract_address): Ditto.
10519 (extract_long_unsigned_integer): Ditto.
10520 * inferior.h (unsigned_pointer_to_address): Ditto.
10521 (signed_pointer_to_address): Ditto.
10522 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10523 * gdbarch.h, gdbarch.c: Regenerate.
10524 * findvar.c (extract_long_unsigned_integer): Update.
10525 (extract_address): Update.
10526 (extract_typed_address): Update.
10527 (unsigned_pointer_to_address): Update.
10528 * values.c (unpack_long): Update.
10529 (unpack_double): Update.
10530 (unpack_pointer): Update.
10531 (unpack_field_as_long): Update.
10532 * d10v-tdep.c (d10v_pointer_to_address): Update.
10533 * avr-tdep.c (avr_pointer_to_address): Update.
10534 * scm-lang.c (scm_unpack): Update.
10535 * findvar.c (signed_pointer_to_address): Update.
10537 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10539 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10540 since it is in i386-tdep.c.
10542 2003-01-06 J. Brobecker <brobecker@gnat.com>
10544 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10545 failure introduced in the previous change.
10547 2003-01-05 Michael Chastain <mec@shout.net>
10549 * README: Remove references to deleted remote-*.c files:
10550 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10551 remote-nrom.c, remote-os9k.c, remote-udi.c.
10553 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10555 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10556 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10557 i386_get_longjmp_target.
10559 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10561 * arm-tdep.c (prologue_cache): Change to a pointer.
10562 (_initialize_arm_tdep): Allocate prologue_cache.
10563 (check_prologue_cache): Update.
10564 (save_prologue_cache): Update.
10565 (arm_gdbarch_init): Update.
10567 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10569 * stabsread.c (update_method_name_from_physname): Call complaint()
10572 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10574 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10575 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10576 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10578 * blockframe.c: Include "gdbcmd.h" and "command.h".
10579 (backtrace_below_main): New variable.
10580 (file_frame_chain_valid, func_frame_chain_valid)
10581 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10582 (generic_func_frame_chain_valid): Remove functions.
10583 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10584 (_initialize_blockframe): New function.
10585 * Makefile.in (blockframe.o): Update dependencies.
10586 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10587 comment. Call frame_chain_valid ().
10588 * frame.h: Remove old prototypes. Add prototype for
10589 frame_chain_valid and update comments to match.
10590 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10591 Remove old comment.
10592 * gdbarch.h: Regenerated.
10593 * gdbarch.c: Regenerated.
10595 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10596 set_gdbarch_frame_chain_valid.
10597 * avr-tdep.c (avr_gdbarch_init): Likewise.
10598 * cris-tdep.c (cris_gdbarch_init): Likewise.
10599 * frv-tdep.c (frv_gdbarch_init): Likewise.
10600 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10601 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10602 (i386_nw_init_abi): Likewise.
10603 (i386_gdbarch_init): Likewise.
10604 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10606 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10607 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10608 * mips-tdep.c (mips_gdbarch_init): Likewise.
10609 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10610 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10611 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10612 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10613 * s390-tdep.c (s390_gdbarch_init): Likewise.
10614 * sh-tdep.c (sh_gdbarch_init): Likewise.
10615 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10616 * v850-tdep.c (v850_gdbarch_init): Likewise.
10617 * vax-tdep.c (vax_gdbarch_init): Likewise.
10618 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10620 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10621 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10622 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10623 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10624 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10625 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10626 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10627 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10629 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10631 * Makefile.in (acconfig_h): Remove incorrect macro.
10632 (config_h): Define.
10633 (osabi.o): Update dependencies.
10634 * configure.tgt: Set gdb_osabi based on target triplet.
10635 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10636 * configure: Regenerated.
10637 * config.in: Regenerated.
10638 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10639 (GDB_OSABI_DEFAULT): Define if not already defined.
10640 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10641 (set_osabi_string): New variables.
10642 (gdbarch_register_osabi): Add new OS ABI to
10643 gdb_osabi_available_names.
10644 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10645 (set_osabi, show_osabi): New functions.
10646 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10648 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10650 * arch-utils.c (gdbarch_info_init): Set osabi to
10651 GDB_OSABI_UNINITIALIZED.
10652 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10653 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10654 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10655 * gdbarch.c: Regenerated.
10656 * gdbarch.h: Regenerated.
10657 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10659 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10660 * osabi.h (enum gdb_osabi): Move to defs.h.
10661 (gdbarch_init_osabi): Update prototype.
10662 * defs.h (enum gdb_osabi): Moved here.
10663 * Makefile.in: Update dependencies.
10665 * alpha-tdep.h: Don't include "osabi.h".
10666 (struct gdbarch_tdep): Remove osabi member.
10667 * alpha-tdep.c: Include "osabi.h".
10668 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10669 iterate over arches. Update call to gdbarch_init_osabi.
10670 (alpha_dump_tdep): Don't dump osabi.
10671 * alpha-linux-tdep.c: Include "osabi.h".
10672 * alpha-osf1-tdep.c: Include "osabi.h".
10673 * alphafbsd-tdep.c: Include "osabi.h".
10674 * alphanbsd-tdep.c: Include "osabi.h".
10676 * arm-tdep.h: Don't include "osabi.h".
10677 (struct gdbarch_tdep): Remove osabi member.
10678 * arm-tdep.c: Include "osabi.h".
10679 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10680 iterate over arches. Update call to gdbarch_init_osabi.
10681 (arm_dump_tdep): Don't dump osabi.
10682 * arm-linux-tdep.c: Include "osabi.h".
10683 * armnbsd-tdep.c: Include "osabi.h".
10685 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10686 Update call to gdbarch_init_osabi.
10688 * i386-tdep.h: Don't include "osabi.h".
10689 (struct gdbarch_tdep): Remove osabi member.
10690 * i386-tdep.c: Include "osabi.h".
10691 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10692 iterate over arches. Update call to gdbarch_init_osabi.
10693 (i386_dump_tdep): Don't dump osabi.
10694 * i386-linux-tdep.c: Include "osabi.h".
10695 * i386-sol2-tdep.c: Include "osabi.h".
10696 * i386bsd-tdep.c: Include "osabi.h".
10697 * i386gnu-tdep.c: Include "osabi.h".
10698 * i386ly-tdep.c: Include "osabi.h".
10699 * i386nbsd-tdep.c: Include "osabi.h".
10700 * i386obsd-tdep.c: Include "osabi.h".
10702 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10703 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10704 check osabi when iterating over arches. Update call to
10705 gdbarch_init_osabi.
10706 (mips_dump_tdep): Don't dump osabi.
10708 * ns32k-tdep.h: Don't include "osabi.h".
10709 (struct gdbarch_tdep): Remove.
10710 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10711 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10712 allocate tdep. Update call to gdbarch_init_osabi.
10713 (ns32k_dump_tdep): Remove.
10714 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10715 * ns32knbsd-tdep.c: Include "osabi.h".
10717 * ppc-tdep.h: Don't include "osabi.h".
10718 (struct gdbarch_tdep): Remove osabi member.
10719 * rs6000-tdep.c: Include "osabi.h".
10720 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10721 osabi when iterating over arches. Update call to
10722 gdbarch_init_osabi.
10723 (rs6000_dump_tdep): Don't dump osabi.
10724 * ppc-linux-tdep.c: Include "osabi.h".
10725 * ppcnbsd-tdep.c: Include "osabi.h".
10727 * sh-tdep.h: Don't include "osabi.h".
10728 (struct gdbarch_tdep): Remove osabi member.
10729 * sh-tdep.c: Include "osabi.h".
10730 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10731 iterate over arches. Update call to gdbarch_init_osabi.
10732 (sh_dump_tdep): Don't dump osabi.
10733 * shnbsd-tdep.c: Include "osabi.h".
10735 * sparc-tdep.c: Include "osabi.h".
10736 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10737 iterate over arches. Update call to gdbarch_init_osabi.
10738 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10741 * vax-tdep.h: Don't include "osabi.h".
10742 (struct gdbarch_tdep): Remove.
10743 * vax-tdep.c: Include "osabi.h".
10744 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10745 iterate over arches. Don't allocate tdep. Update call
10746 to gdbarch_init_osabi.
10747 (vax_dump_tdep): Remove.
10748 (_initialize_vax_tdep): Update call to gdbarch_register.
10750 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10752 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10754 (breakpoint_re_set_one): Don't fetch the value for a disabled
10757 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10759 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10760 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10761 (COERCE_FLOAT_TO_DOUBLE): Remove.
10762 * gdbarch.c: Regenerate.
10763 * gdbarch.h: Regenerate.
10764 * Makefile.in: Remove value_h from gdbarch_h.
10765 * valops.c (coerce_float_to_double): New variable.
10766 (default_coerce_float_to_double): Remove.
10767 (standard_coerce_float_to_double): Remove.
10768 (value_arg_coerce): Use coerce_float_to_double.
10769 (_initialize_valops): Add "set coerce-float-to-double".
10770 * value.h (default_coerce_float_to_double): Remove prototype.
10771 (standard_coerce_float_to_double): Remove prototype.
10773 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10775 * mdebugread.c (parse_symbol): Likewise.
10776 * stabsread.c (define_symbol): Mark all functions as prototyped.
10778 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10779 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10780 set_gdbarch_coerce_float_to_double.
10781 * arm-tdep.c (arm_gdbarch_init): Likewise.
10782 * frv-tdep.c (frv_gdbarch_init): Likewise.
10783 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10784 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10785 * mips-tdep.c (mips_gdbarch_init): Likewise.
10786 (mips_coerce_float_to_double): Remove.
10787 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10788 (rs6000_coerce_float_to_double): Remove.
10789 * s390-tdep.c (s390_gdbarch_init): Likewise.
10790 * sh-tdep.c (sh_gdbarch_init): Likewise.
10791 (sh_coerce_float_to_double): Remove.
10792 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10793 (sparc_coerce_float_to_double): Remove.
10794 * v850-tdep.c (v850_gdbarch_init): Likewise.
10795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10796 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10797 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10798 (hppa_coerce_float_to_double): Remove prototype.
10799 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10801 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10803 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10805 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10807 Suggested by Stewart Brown <sb24@avaya.com>:
10808 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10809 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10810 (c_type_print_varspec_suffix): Likewise.
10812 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10814 * configure.in: Don't set and AC_SUBST SUBDIRS.
10815 * configure: Regenerated.
10817 * configure.in: Remove code dealing with shared libraries.
10818 * Makefile.in: Remove HLDFLAGS and HLDENV.
10819 * configure: Regenerated.
10821 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10823 * frame.c (deprecated_frame_xmalloc): New function.
10824 (deprecated_set_frame_saved_regs_hack): New function.
10825 (deprecated_set_frame_extra_info_hack): New function.
10826 * frame.h (deprecated_frame_xmalloc): Declare.
10827 (deprecated_set_frame_saved_regs_hack): Declare.
10828 (deprecated_set_frame_extra_info_hack): Declare.
10830 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10832 * configure.in: Move code that provides the --enable-gdbtk option
10833 right after the code that handles the --enable-tui option, and
10834 polish it somewhat.
10835 * configure: Regenerated.
10837 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10838 AC_CHECK_FUNCS and remove the old check for pread64.
10839 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10840 * acconfig.h (_GNU_SOURCE): Add.
10841 (HAVE_PREAD64): Remove.
10842 * configure, aclocal.m4, config.in: Regenerated.
10844 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10846 * alpha-tdep.c: Use get_frame_saved_regs.
10847 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10848 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10849 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10850 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10851 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10853 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10855 * configure.in: Remove all use of the SUBDIRS variable; add
10856 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10857 code providing the --enable-multi-ice option, and move it right in
10858 front of the code that checks whether gdbserver is supported.
10860 * configure: Regenerated.
10861 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10864 2003-01-03 Andrew Cagney <cagney@redhat.com>
10866 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10867 * avr-tdep.c, cris-tdep.c: Ditto.
10868 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10869 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10871 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10873 * configure.in: Remove --enable-netrom option.
10874 * configure: Regenerated.
10876 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10878 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10879 declaration for `struct re_pattern_buffer' instead.
10880 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10882 2003-01-03 J. Brobecker <brobecker@gnat.com>
10884 * mdebugread.c (parse_symbol): Count until the stEnd matching
10885 the structure name.
10887 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10889 * configure.in: Remove --with-cpu option.
10890 subscripts. Remove evil changequotes here.
10891 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10892 * config.in, configure: Regenerated.
10894 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10895 * configure.in: Cleanup section that sources GDB and BFD configure
10896 subscripts. Remove evil changequotes here.
10897 * config.in, configure: Regenerated.
10899 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10901 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10902 frame accessor methods.
10903 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10904 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10905 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10906 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10907 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10908 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10909 * z8k-tdep.c: Ditto.
10911 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10913 * configure.in: Remove UI_OUT configuration code.
10914 * ada-lang.c: Update assuming UI_OUT is always true.
10915 * Makefile.in (UIOUT_CFLAGS): Remove.
10916 * configure: Regenerated.
10917 * TODO: Remove blurb about elimination of -DUI_OUT.
10919 * configure.in: Move code that provides the --enable-gdbcli,
10920 --enable-gdbmi options right before the code that handles the
10921 --enable-tui option. Polish a bit.
10922 * configure: Regenerated.
10924 * configure.in: Rewrite check for GNU regex and the
10925 --without-included regex option, and move it into the "Checks for
10926 library functions" section. This makes us use the system regex
10927 again by default on systems with version 2 of the GNU C library.
10928 This was apparently broken.
10929 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10930 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10931 * config.in, configure: Regenerated.
10933 * configure.in: Move code that provides the --enable-tui option
10934 before the "Checks for libraries" section. Polish the code
10935 somewhat and set need_curses to yes if we build the TUI. Rewrite
10936 code that looks for a library providing termcap functionality to
10937 match more closely what's done in the Readline library, and move
10938 it into to the "Checks for libraries" section.
10939 * configure: Regenerated.
10940 * Makefile.in (TERMCAP): Remove variable.
10941 * config/i386/go32.mh (TERMCAP): Remove variable.
10943 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10945 * MAINTAINERS: Mention gdb_mbuild.sh.
10946 * gdb_mbuild.sh: Rewrite.
10948 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10950 * configure.in: Fix typo in last change.
10951 * config.in, configure: Regenerated.
10953 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10955 * valarith.c (value_binop): Delete obsolete code and comments.
10956 * configure.host: Ditto.
10957 * buildsym.h (make_blockvector): Ditto.
10958 * buildsym.c (make_blockvector): Ditto.
10959 * defs.h (enum language): Ditto.
10960 (chill_demangle): Ditto.
10961 * elfread.c (elf_symtab_read): Ditto.
10962 * dwarfread.c (CHILL_PRODUCER): Ditto.
10963 (set_cu_language): Ditto.
10964 (handle_producer): Ditto.
10965 * expprint.c (print_subexp): Ditto.
10966 * gdbtypes.c (chill_varying_type): Ditto.
10967 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10968 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10969 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10970 (chill_varying_type): Ditto.
10971 * language.h (_LANG_chill): Ditto.
10972 * language.c (binop_result_type, integral_type): Ditto.
10973 (character_type, string_type, structured_type): Ditto.
10974 (lang_bool_type, binop_type_check): Ditto.
10975 * stabsread.h (os9k_stabs): Ditto.
10976 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10977 (define_symbol, read_type, read_struct_fields): Ditto.
10978 (read_array_type, read_enum_type, read_huge_number): Ditto.
10979 (read_range_type, start_stabs): Ditto.
10980 * symfile.c (init_filename_language_table): Ditto.
10981 (add_psymbol_with_dem_name_to_list): Ditto.
10982 * symtab.c (symbol_init_language_specific): Ditto.
10983 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10984 * symtab.h (struct general_symbol_info): Ditto.
10985 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10986 * typeprint.c (typedef_print): Ditto.
10987 * utils.c (fprintf_symbol_filtered): Ditto.
10988 * valops.c (value_cast, search_struct_field, value_slice): Delete
10990 (varying_to_slice): Delete function.
10991 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10992 (varying_to_slice): Delete declaration.
10993 * MAINTAINERS: Update.
10995 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10997 * configure.in: Reorganize "Checks for library functions section"
10998 a bit. Remove check for `btowc' and `isascii' functions.
10999 * configure: Regenerated.
11001 * acconfig.h (_MSE_INT_H): Remove.
11002 * configure.in: Create "Checks for header files" section, and move
11003 appropriate tests there. Don't check for objlist.h, wchar.h,
11004 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11005 misdetection fix. Also add "Checks for types", "Checks for
11006 compiler characteristics" and "Checks for library functions"
11008 * config.in, configure: Regenerated.
11010 * configure.in: Create "Checks for programs" section, and move
11011 appropriate tests there.
11013 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11015 * configure.in: Create "Checks for libraries" section, and move
11016 appropriate tests there. Cleanup check for wctype in libw. Use
11017 AC_SEARCH_LIBS to see whether we need libsocket.
11018 * configure: Regenerated.
11020 For older changes see ChangeLog-2002
11026 version-control: never