1 2003-08-27 David Carlton <carlton@kealia.com>
3 From Randolph Chung <tausq@debian.org>:
4 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
5 compiles with -Wformat-nonliteral -Werror.
7 2003-08-26 Jim Blandy <jimb@redhat.com>
9 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
10 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
11 bfd_lookup_symbol, since we only want symbols in code sections.
12 (look_for_base): Pass zero as the SECT_FLAGS argument to
13 bfd_lookup_symbol, since we're not concerned about which section
16 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
18 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
19 we are frameless or the return address register is already known.
21 2003-08-26 Andrew Cagney <cagney@redhat.com>
23 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
24 in size. Add comments.
26 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
28 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
29 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
31 2003-08-26 Jason Merrill <jason@redhat.com>
33 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
34 case out of #ifdef MIPS block.
36 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
39 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
40 available before calling SECT_OFF_TEXT.
41 * PROBLEMS: Remove description of java/1322.
43 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
45 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
46 bof, and nat0-nat127 as pseudo-registers.
47 (ia64_frame_cache): New struct used to cache frame info.
48 (ia64_register_reggroup_p): New routine used to override default
49 register grouping so registers without names are still saved and
51 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
53 (ia64_pseudo_register_read): New routine to read pseudo-registers.
54 (ia64_pseudo_register_write): New routine to write pseudo-registers.
55 (ia64_alloc_frame_cache): New routine to create a new
57 (examine_prologue): Change prototype to add next_frame pointer.
58 Assume frameless until otherwise proven. Verify that the cfm for
59 current frame matches the cfm that should occur for the prologues
60 alloc insn and if equal, mark as not frameless. At end of routine,
61 if not frameless, calculate registers for the previous frame and store
62 in the cache, if a cache is provided.
63 (ia64_skip_prologue): Use new prototype when calling examine_prologue
64 and pass 0 for next_frame.
65 (ia64_store_return_value): Change to use convert_typed_floating()
66 instead of calling ia64_convert_to_raw().
67 (ia64_extract_return_value): Change to use convert_typed_floating()
68 instead of calling ia64_convert_to_virtual().
69 (ia64_frame_cache): New routine to support new frame model.
70 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
71 (ia64_frame_sniffer): Ditto.
72 (ia64_sigtramp_frame_init_saved_regs): Ditto.
73 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
74 (ia64_sigtramp_frame_prev_register): Ditto.
75 (ia64_sigtramp_frame_sniffer): Ditto.
76 (ia64_frame_base_address): Ditto.
77 (ia64_extract_struct_value_address): Change to issue error message.
78 (ia64_frame_align): New routine to align sp.
79 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
80 (ia64_push_arguments): Removed. Logic moved to
81 ia64_push_dummy_call().
82 (ia64_push_return_address): Ditto.
83 (ia64_unwind_dummy_id): New function.
84 (ia64_unwind_pc): Ditto.
85 (ia64_convert_register_p): Ditto.
86 (ia64_register_to_value): Ditto.
87 (ia64_value_to_register): Ditto.
88 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
89 (ia64_register_byte, ia64_register_raw_size): Ditto.
90 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
91 (ia64_saved_pc_after_call): Ditto.
92 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
93 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
94 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
95 (ia64_register_convert_to_raw): Ditto.
96 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
97 (ia64_init_extra_frame_info): Ditto.
98 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
99 (ia64_gdbarch_init): Remove registering of deprecated functions that
100 are no longer used. Add registration of new gdbarch functions.
101 Remove registering deprecated_write_sp. Replace
102 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
103 Delete set_gdbarch_deprecated_register_convertible(),
104 set_gdbarch_deprecated_register_convert_to_virtual(), and
105 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
106 set_gdbarch_deprecated_register_size(),
107 set_gdbarch_deprecated_register_bytes(),
108 set_gdbarch_pcregnum(),
109 set_gdbarch_deprecated_register_byte(),
110 set_gdbarch_deprecated_register_raw_size(),
111 set_gdbarch_deprecated_max_register_raw_size(),
112 set_gdbarch_deprecated_register_virtual_size(),
113 and set_gdbarch_deprecated_max_register_virtual_size() calls.
114 Replace set_gdbarch_deprecated_extract_return_value() with
115 set_gdbarch_extract_return_value(). Remove calls to:
116 set_gdbarch_deprecated_saved_pc_after_call();
117 set_gdbarch_deprecated_frame_chain(),
118 set_gdbarch_deprecated_frame_saved_pc(),
119 set_gdbarch_deprecated_frame_init_saved_regs(),
120 set_gdbarch_deprecated_get_saved_register(),
121 set_gdbarch_deprecated_call_dummy_words(),
122 set_gdbarch_deprecated_sizeof_call_dummy_words(),
123 set_gdbarch_deprecated_init_extra_frame_info(),
124 set_gdbarch_deprecated_frame_args_address(),
125 set_gdbarch_deprecated_frame_locals_address(),
126 and set_gdbarch_deprecated_dummy_write_sp().
127 Add set_gdbarch_convert_register_p(),
128 set_gdbarch_register_to_value(),
129 set_gdbarch_value_to_register(),
130 set_gdbarch_push_dummy_call(),
131 set_gdbarch_frame_align(),
132 set_gdbarch_unwind_dummy_id(),
133 set_gdbarch_unwind_pc(),
134 frame_unwind_append_sniffer(),
135 frame_unwind_append_sniffer(),
136 and frame_base_set_default().
138 2003-08-25 Chris Demetriou <cgd@broadcom.com>
140 * configure.tgt: Document need for special "mipsisa64" handling.
141 (mipsisa64*-*-linux64): Handle as target linux64.
142 (mipsisa64*-*-*): Handle as target embed64.
144 2003-08-18 Michael Chastain <mec@shout.net>
146 * PROBLEMS: Document pr gdb/1322, the Java anonymous
149 2003-08-24 Mark Kettenis <kettenis@gnu.org>
151 * i387-tdep.h: Update copyright date.
152 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
154 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
155 CFLAGS games to reflect reality.
157 2003-08-24 Andrew Cagney <cagney@redhat.com>
159 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
160 GDB_MULTI_ARCH is always non-zero.
161 * osabi.c (_initialize_gdb_osabi): Ditto.
162 (gdbarch_init_osabi): Ditto.
163 * sparc-tdep.c: Ditto for #if code.
165 2003-08-23 Mark Kettenis <kettenis@gnu.org>
167 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
169 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
171 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
172 x86_64_supply_fxsave.
173 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
174 x86_64_supply_fxsave.
175 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
176 x86_64_supply_fxsave.
178 2003-08-23 Andreas Jaeger <aj@suse.de>
180 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
183 2003-08-23 Mark Kettenis <kettenis@gnu.org>
185 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
186 i387_supply_register.
187 (go32_fetch_registers): Adjust call to i387_supply_fsave.
188 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
190 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
192 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
194 * i386bsd-nat.c (supply_fpregset): Adjust call to
196 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
197 call to i387_supply_fxsave. Call i387_supply_fsave instead of
199 (store_inferior_registers): Remove extraneous whitespace. Call
200 i387_fill_fsave instead of fill_fpregset.
201 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
202 (supply_fpregset): Likewise.
203 * i386v4-nat.c (supply_fpregset): Adjust call to
205 * i386-interix-nat.c (supply_fpregset): Adjust call to
207 * i386-linux-nat.c (supply_fpregset): Adjust call to
209 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
210 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
211 i387supply_fsave and i387_supply_fxsave.
212 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
213 Incorporate code from `i387_supply_register.
214 (i387_supply_register): Remove.
215 (i387_supply_fxsave): Add `regnum' argument.
217 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
219 (i387_supply_register): remove prototype.
222 2003-08-22 Michael Chastain <mec@shout.net>
224 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
225 Add lines for files in gdb/testsuite/gdb.cp/* that are
226 still not 8.3 unique.
228 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
230 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
231 TYPE_VPTR_FIELDNO is valid.
233 2003-08-19 Mark Kettenis <kettenis@gnu.org>
235 * utils.c (set_width_command): Remove prototypes.
236 (set_screen_size): New prototype.
237 (init_page_info): Simplify by fetching the screen size from
238 Readline. Call set_screen_size.
239 (set_screen_size): New function.
240 (set_width): Add missing whitespace in comment.
241 (set_width_command): Call set_screen_size.
242 (set_height_command): New function.
243 (initialize_utils): Fix formatting. Make "set height" command
244 call set_height_command. Remove redundant code that turns off
245 pagination if output isn't a terminal. Remove redundant call to
248 2003-08-22 Mark Kettenis <kettenis@gnu.org>
250 * sparc64-tdep.h (sparc64_regnum): Fix comment.
251 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
252 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
253 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
255 (sparc64_register_info): Give the reister with number
256 SPARC64_STATE_REGNUM a name.
257 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
259 (sparc64_push_dummy_call): Take BIAS into account when checking
261 (sparc_software_single_step): Remove assertions that check whether
262 NPC and NNPC were zero.
263 (sparc_supply_rwindow): Make public. Merge functionality with
264 sparc64_supply_rwindow.
265 (sparc_fill_rwindow): Make public. Merge functionality with
266 sparc64_fill_rwindow.
267 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
268 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
269 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
270 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
271 sparc_supply_rwindow instead of sparc64_supply_rwindow.
273 * reggroups.c: Add whitespace after declarations of local
274 variables in functions.
276 2003-08-21 Michael Chastain <mec@shout.net>
278 * gdbtypes.h: Change array bound type from an int to enum.
280 2003-08-21 Andrew Cagney <cagney@redhat.com>
282 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
283 * config/sparc/tm-sparc.h: Ditto.
284 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
286 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
288 2003-07-13 Mark Kettenis <kettenis@gnu.org>
290 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
291 (register_objfile_data, set_objfile_data, objfile_data): New
293 * objfiles.c (objfile_alloc_data, objfile_free_data): New
295 (allocate_objfile): Call objfile_alloc_data.
296 (free_objfile): Call objfile_free_data.
297 (struct objfile_data): New.
298 (struct objfile_data_registration): New.
299 (struct objfile_data_registry): New.
300 (objfile_data_registry): New variable.
301 (register_objfile_data): New function.
302 (objfile_alloc_data, objfile_free_data): New functions.
303 (set_objfile_data, objfile_data): New functions.
304 * dwarf2-frame.c (dwarf2_frame_data): New variable.
305 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
306 (_initialize_dwarf2_frame): New function and prototype.
308 2003-08-21 Andrew Cagney <cagney@redhat.com>
310 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
311 a specific architecture.
312 * arch-utils.h (set_architecture_from_arch_mach): Delete
314 (target_architecture_hook): Delete declaration.
315 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
316 (default_float_format): Assume GDB_MULTI_ARCH.
317 (default_double_format): Assume GDB_MULTI_ARCH.
318 (set_endian_from_file): Delete function.
319 (arch_ok): Delete function.
320 (set_arch): Delete function.
321 (set_architecture_from_arch_mach): Delete function.
322 (set_architecture_from_file): Delete function.
323 (set_architecture): Assume GDB_MULTI_ARCH.
324 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
326 2003-08-21 Mark Kettenis <kettenis@gnu.org>
328 Rewrite FreeBSD/sparc64 native configuration.
329 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
330 * sparc64fbsd-nat.c: New file.
331 * sparc64fbsd-tdep.c: New file.
332 * sparc64-tdep.c sparc64-tdep.h: New files.
333 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
334 sparc64fbsd-tdep.o): New dependencies.
335 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
336 and sparc64fbsd-tdep.c.
337 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
338 * config/sparc/fbsd.mh: Remove copyright notice.
339 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
341 * config/sparc/fbsd.mt: Remove copyright notice.
342 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
343 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
344 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
345 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
346 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
347 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
348 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
349 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
351 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
352 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
354 2003-08-21 Michael Chastain <mec@shout.net>
356 * symtab.h: Add doco on the space critical structures and
357 some measurements of space usage.
359 2003-08-21 Michael Snyder <msnyder@redhat.com>
361 * tracepoint.c (trace_dump_command): Trace break address
362 is subject to DECR_PC_AFTER_BREAK.
363 (set_traceframe_context): Make "trace_line" an int.
364 Fixes suggested by Mark Newman <mark.newman@lmco.com>
366 2003-08-20 Michael Snyder <msnyder@redhat.com>
368 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
369 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
370 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
372 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
373 functions, replace sh_push_dummy_call.
374 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
376 2003-08-20 Michael Chastain <mec@shout.net>
378 * gdbtypes.h (struct main_type): Rearrange to save space.
380 2003-08-20 Michael Snyder <msnyder@redhat.com>
382 * trad-frame.c: Comment typo fix.
384 2003-08-20 Michael Snyder <msnyder@redhat.com>
385 Kevin Buettner <kevinb@redhat.com>
387 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
388 (frv_frame_init_saved_regs): Add declaration.
389 (frame_extra_info): Add new field ``saved_regs''.
390 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
391 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
392 Update frame related code.
393 (frv_extract_struct_value_address): Adjust formatting.
394 * Makefile.in (frv-tdep.o): Update dependencies.
395 * config/frv/tm-frv.h (target_insert_watchpoint)
396 (target_remove_watchpoint, target_insert_hw_breakpoint)
397 (target_remove_hw_breakpoint): Delete these macros.
398 (remote_insert_watchpoint, remote_remove_watchpoint)
399 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
402 2003-08-20 Michael Chastain <mec@shout.net>
404 * defs.h (ENUM_BITFIELD): New macro.
405 * symtab.h (ENUM_BITFIELD): Use it.
406 (BYTE_BITFIELD): Remove old macro, which was already disabled.
408 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
410 * MAINTAINERS (write after approval): Add myself.
412 2003-08-18 Andrew Cagney <cagney@redhat.com>
414 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
415 * gdbarch.h, gdbarch.c: Re-generate.
416 * infcall.c (call_function_by_hand): Adjust the SP by
417 frame_red_zone_size before allocating any stack space.
418 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
419 * x86-64-tdep.c (x86_64_frame_align): New function.
420 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
422 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
423 Remove code adjusting SP so that it skips over the Red Zone.
425 2003-08-18 Mark Kettenis <kettenis@gnu.org>
427 * NEWS (New native configurations): Mention FreeBSD/amd64.
429 2003-08-18 Andrew Cagney <cagney@redhat.com>
431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
432 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
434 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
436 2003-08-18 Mark Kettenis <kettenis@gnu.org>
438 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
440 2003-08-18 Michal Ludvig <mludvig@suse.cz>
442 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
444 * i386-linux-nat.c: Include "linux-nat.h".
445 (child_post_startup_inferior): New function.
447 2003-08-18 Mark Kettenis <kettenis@gnu.org>
449 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
450 at the start of a frameless function. This probably fixes PR
453 2003-08-17 Michael Chastain <mec@shout.net>
455 * symfile.c (find_sym_fns): Remove special case for apollo target.
457 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
459 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
460 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
461 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
462 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
463 (linux_supports_tracevforkdone): New function.
464 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
466 (child_follow_fork): Handle vfork.
467 (linux_handle_extended_wait): Likewise. Also handle exec.
468 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
469 * NEWS: Mention fork tracing.
471 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
473 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
475 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
477 * Makefile.in (i386-linux-nat.o): Update dependencies.
478 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
479 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
480 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
481 * i386-linux-nat.c: Include "linux-nat.h".
482 (child_post_startup_inferior): New function.
483 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
484 * infptrace.c (kill_inferior): Wrap in #ifdef.
485 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
486 attaching to each LWP.
487 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
488 (init_lin_lwp_ops): Fill in some more operations.
489 * linux-nat.h (linux_enable_event_reporting)
490 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
492 * linux-nat.c (linux_enable_event_reporting): New function.
493 (child_post_attach, linux_child_post_startup_inferior)
494 (child_post_startup_inferior, child_follow_fork)
495 (linux_handle_extended_wait, kill_inferior): New functions.
497 2003-08-16 Andrew Cagney <cagney@redhat.com>
499 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
500 * gdbarch.h, gdbarch.c: Re-generate.
502 2003-08-16 Mark Kettenis <kettenis@gnu.org>
504 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
506 2003-08-16 Andrew Cagney <cagney@redhat.com>
508 * NEWS: Mention that "set prompt-escape-char" was deleted.
509 * top.c (get_prompt_1): Delete function.
511 (init_main): Do not clear "gdb_prompt_escape". Delete "set
512 prompt-escape-char" command.
513 (MAX_PROMPT_SIZE): Delete macro.
514 (get_prompt): Simplify, do not call get_prompt_1.
516 2003-08-16 Andrew Cagney <cagney@redhat.com>
518 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
519 -Werror. -Wformat-nonliteral problems.
521 2003-08-15 J. Brobecker <brobecker@gnat.com>
523 Further multiarching work mostly for hppa64-*-hpux11:
524 * hppa-tdep.h: New file.
525 * hppa-tdep.c: #include hppa-tdep.c.
526 (hppa32_num_regs): Renamed from hppa_num_regs.
527 (hppa64_num_regs): New constant.
528 (hppa64_call_dummy_breakpoint_offset): New constant.
529 (hppa32_call_dummy_length): New constant.
530 (hppa64_call_dummy_length): New constant.
531 (hppa32_stack_align): Make name 32bit explicit.
532 (hppa32_register_virtual_type): Likewise.
533 (hppa32_extract_return_value): Likewise.
534 (hppa32_use_struct_convention): Likewise.
535 (hppa32_store_return_value): Likewise.
536 (hppa64_register_virtual_type): New function.
537 (hppa64_extract_return_value): New function.
538 (hppa64_use_struct_convention): New function.
539 (hppa64_store_return_value): New function.
540 (hppa_frame_locals_address): Remove declaration, function does
542 (hppa_register_byte): Add support for PA64 ABI.
543 (hppa_gdbarch_init): Add support for PA64 ABI.
544 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
545 Make name 32bit explicit.
546 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
547 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
548 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
549 (hppa64_hpux_frame_base_before_sigtramp): New function.
550 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
551 * config/pa/tm-hppa64.h: Remove macros that are no longer
552 necessary now that the gdbarch vector is properly setup.
553 Transform some macros into function calls. Some minor cleanup.
554 * config/pa/tm-hppah.h: Update function calls in macros
555 following the function renaming in hppa-hpux-tdep.c.
556 * Makefile.in (hppa_tdep_h): New variable.
557 (hppa-tdep.o): Add dependency over hppa_tdep_h.
559 2003-08-14 Michael Snyder <msnyder@redhat.com>
561 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
563 2003-08-13 J. Brobecker <brobecker@gnat.com>
565 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
566 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
569 2003-08-13 Michael Snyder <msnyder@redhat.com>
571 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
572 (frv_saved_pc_after_call): Use deprecated ftype.
573 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
574 (frv_remote_translate_xfer_address): Remove.
575 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
577 2003-08-13 J. Brobecker <brobecker@gnat.com>
579 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
580 initialization after the common gdbarch initialization, not before.
582 2003-08-13 J. Brobecker <brobecker@gnat.com>
584 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
585 (ADDR_BITS_REMOVE): Remove, redundant.
587 2003-08-13 J. Brobecker <brobecker@gnat.com>
589 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
590 gdbarch method to clear the 2 low bits of text addresses.
592 2003-08-12 Andrew Cagney <cagney@redhat.com>
594 * Makefile.in (dsrec.o): Update dependencies.
595 * dsrec.c: Include "gdb_assert.h".
596 (make_srec): Use snprintf instead of sprintf, use a literal format
599 2003-08-12 Andrew Cagney <cagney@redhat.com>
601 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
602 FRAME_OBSTACK_ZALLOC.
604 2003-08-12 Kevin Buettner <kevinb@redhat.com>
606 * i386-tdep.c (i386_gdbarch_init): Enable default support for
609 2003-08-10 Mark Kettenis <kettenis@gnu.org>
611 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
612 amd64fbsd_sc_reg_offset): Add extern declarations.
613 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
616 2003-08-11 Ben Elliston <bje@wasabisystems.com>
618 * MAINTAINERS (write after approval): Update my mail address.
620 2003-08-10 Andrew Cagney <cagney@redhat.com>
622 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
624 2003-08-10 Mark Kettenis <kettenis@gnu.org>
626 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
627 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
628 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
629 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
630 i386bsd_sc_reg_offset): Add extern declarations.
631 * i386obsd-nat.c: Include "i386-tdep.h"
632 (_initialize_i386obsd_nat): Remove extern declarations.
633 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
635 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
638 * i386-tdep.c (i386_register_to_value): Use get_frame_register
639 instead of frame_read_register.
640 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
641 instead of frame_read_register. Use I386_ESP_REGNUM instead of
643 (i386_frame_prev_register): Use frame_unwind_register_unsigned
644 instead of frame_unwind_unsigned_register. Use
645 I386_EFLAGS_REGISTER instead of PS_REGNUM.
646 (i386_get_longjmp_target): Use regcache_read_unsigned_register
647 instead of read_register. Use builtin_type_void_data_ptr instead
648 of builtin_type_void_func_ptr when extracting the address of the
650 (i386_extract_return_value, i386_store_return_value,
651 i386_pseudo_register_read, i386_pseudo_register_write): Use
652 register_size instead REGISTER_RAW_SIZE.
654 2003-08-10 Andrew Cagney <cagney@redhat.com>
656 * infcall.c (call_function_by_hand): Use xstrprintf instead of
657 sprintf. Make "name" constant.
659 2003-08-10 Mark Kettenis <kettenis@gnu.org>
661 * i387-tdep.c (i387_register_to_value): Use get_frame_register
662 instead of frame_read_register.
663 (i387_print_float_info): Use get_frame_register and
664 get_frame_register_unsigned instead of frame_register_read.
666 * i386fbsd-nat.c: Include "i386-tdep.h".
667 (child_resume): Make `eflags' an ULONGEST. Use
668 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
669 instead of register_read and register_write.
671 * i386bsd-nat.c (fetch_inferior_registers,
672 store_inferior_registers): Don't use && at the end of a line.
673 (_initialize_i386bsd_nat): Fix typo.
675 * frame.c (_initialize_frame): Add missing backslash.
677 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
678 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
679 and supply_register instead of manipulating the register buffer
682 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
683 * config/i386/nm-i386sol2.h
684 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
686 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
687 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
688 instructions that GCC likes to mingle into the prologue. Fixes
689 gdb/1253 and gdb/1255.
691 2003-08-09 Andrew Cagney <cagney@redhat.com>
694 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
695 * command.h (add_setshow_uinteger_cmd): Declare.
696 * frame.c (set_backtrace_cmd): New function.
697 (show_backtrace_cmd): New function.
698 * frame.c (_initialize_frame): Replace "set/show
699 backtrace-below-main" with "set/show backtrace past-main". Add
700 command "set/show backtrace limit".
701 (backtrace_past_main): Rename "backtrace_below_main".
702 (backtrace_limit): New variable.
703 (get_prev_frame): Update. Check the backtrace_limit.
705 2003-08-09 Andrew Cagney <cagney@redhat.com>
707 * defs.h (xstrprintf): Declare.
708 * utils.c (xstrprintf): New function.
709 * breakpoint.c (insert_breakpoints): Replace sprintf and
710 non-literal format strings, with xstrprintf and cleanups.
711 (delete_breakpoint,breakpoint_re_set): Ditto.
712 (commands_command, insert_breakpoints): Ditto.
713 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
714 (break_at_finish_command_1): Ditto.
716 2003-08-09 Andrew Cagney <cagney@redhat.com>
718 * MAINTAINERS (language support): List Adam Fedor as Objective C
721 2003-08-08 J. Brobecker <brobecker@gnat.com>
723 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
726 2003-08-08 J. Brobecker <brobecker@gnat.com>
728 * config/pa/tm-hppa64.h: Remove lots of macros that are no
729 longer necessary now that hppa64 is partially multiarch'ed.
731 2003-08-08 Andrew Cagney <cagney@redhat.com>
733 * interps.c (interp_set): Check for a NULL "old_interp".
735 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
737 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
738 (install-only): Support DESTDIR.
739 (uninstall): Likewise.
740 (install-gdbtk): Likewise.
742 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
744 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
745 contains something meaningful at all times.
747 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
749 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
751 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
753 * MAINTAINERS (write after approval): Added self.
755 2003-08-07 Andrew Cagney <cagney@redhat.com>
757 * inferior.h (AT_SYMBOL): Define.
758 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
759 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
760 * mips-tdep.c (mips_call_dummy_address): Delete function.
761 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
762 set call_dummy_address.
764 2003-08-07 Andrew Cagney <cagney@redhat.com>
766 * language.c (op_error): Delete function.
767 (binop_type_check): Delete function.
768 * language.h (type_op_error, range_op_error): Delete macros.
769 (op_error): Delete declaration.
771 2003-08-07 Andrew Cagney <cagney@redhat.com>
773 * interps.h (INTERP_MI2, INTERP_MI3): Define.
775 2003-08-07 Michal Ludvig <mludvig@suse.cz>
777 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
778 (x86_64_push_arguments): Skip the red zone.
780 2003-08-05 Andrew Cagney <cagney@redhat.com>
782 * reggroups.c (reggroup_next): Check for the final entry.
784 2003-08-04 Andrew Cagney <cagney@redhat.com>
786 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
787 * cli/cli-script.c (define_command): Call query directly, instead
788 of passing it a buffer.
789 * ocd.c (ocd_error): Pass error a constant format string.
790 * remote-mips.c (mips_error): Use fputs_filtered.
792 * solib-svr4.c (_initialize_svr4_solib): Update
793 register_gdbarch_data call.
794 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
796 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
797 (register_gdbarch_data): Delete "free" parameter. Update
799 * gdbarch.h, gdbarch.c: Re-generate.
800 * reggroups.c (_initialize_reggroup): Update.
801 * gnu-v3-abi.c (init_gnuv3_ops): Update.
802 * frame-base.c (_initialize_frame_base): Update.
803 * frame-unwind.c (_initialize_frame_unwind): Update.
804 * user-regs.c (_initialize_user_regs): Update.
805 * remote.c (_initialize_remote): Update.
806 * regcache.c (_initialize_regcache): Update.
808 * regcache.c (xfree_regcache_descr): Delete function.
809 (_initialize_regcache): Update call to register_gdbarch_data.
810 (init_regcache_descr, init_legacy_regcache_descr): Use
811 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
813 * remote.c (free_remote_state): Delete function.
814 (_initialize_remote): Update register_gdbarch_data.
815 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
816 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
818 2003-08-04 Andrew Cagney <cagney@redhat.com>
820 * reggroups.c (struct reggroup_el): Define.
821 (struct reggroups): Delete field "nr_group". Replace array
822 "group" with a "first" to "last" linked list.
823 (reggroups_init): Update. Allocate using gdbarch's obstack.
824 (reggroups_free): Delete function.
825 (add_group): Update. Add "el" parameter.
826 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
827 (default_groups): Update.
828 (reggroup_next): Replace reggroups.
829 (reggroups_dump): Update.
830 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
831 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
832 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
834 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
836 * Makefile.in (tui-interp.o): Update dependencies.
838 2003-08-04 David Carlton <carlton@kealia.com>
840 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
841 to internal_error call.
842 * source.c (forward_search_command): Add "%s" format argument.
843 (reverse_search_command): Ditto.
844 * top.c (quit_confirm): Ditto.
845 * cli/cli-setshow.c (do_setshow_command): Ditto.
846 * cp-valprint.c (cp_print_class_method): Replace
847 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
848 (cp_print_class_member): Ditto.
849 * event-top.c (command_line_handler): Ditto.
850 * linux-proc.c (linux_info_proc_cmd): Ditto.
851 * p-typeprint.c (pascal_type_print_base): Ditto.
852 * p-valprint.c (pascal_object_print_class_method): Ditto.
853 (pascal_object_print_class_member): Ditto.
854 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
855 * remote.c (remote_cisco_section_offsets): Ditto.
856 * top.c (command_line_input): Ditto.
857 * utils.c (vwarning,error_stream,quit): Ditto.
858 * valprint.c (print_floating,print_binary_chars)
859 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
861 2003-08-04 Andrew Cagney <cagney@redhat.com>
863 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
865 2003-08-02 Andrew Cagney <cagney@redhat.com>
867 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
868 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
871 2003-08-02 Andrew Cagney <cagney@redhat.com>
873 * Makefile.in: Update all dependencies and definitions.
875 2003-08-02 Adam Fedor <fedor@gnu.org>
877 * linespec.c (is_objc_method_format): New function
878 (decode_line_1, locate_first_half): Use it.
881 2003-08-01 Andrew Cagney <cagney@redhat.com>
883 * NEWS: Mention that m32r is multi-arch.
884 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
885 * configure.tgt: Recognize m32r-*-*.
886 * config/m32r/tm-m32r.h: Delete file.
887 * config/m32r/m32r.mt: New file.
888 * m32r-rom.c (m32r_upload_command): Use hostent only when
889 gethostname succeeds, in order to avoid a compilation
891 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
894 2003-08-01 Michael Snyder <msnyder@redhat.com>
896 * sh-tdep.c (sh_frame_align): New gdbarch method.
897 (sh_gdbarch_init): Set up frame_align method.
899 2003-07-31 Michael Snyder <msnyder@redhat.com>
901 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
902 which is already covered by the new frames infrastructure.
904 2003-07-31 Andrew Cagney <cagney@redhat.com>
906 * user-regs.c (struct user_reg): Add "next" link.
907 (struct user_regs): Replace "user" with "first" and "last" links.
908 (append_user_reg): Add pre-allocated "reg" parameter.
909 (builtin_user_regs): Provide initial value for "last".
910 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
911 (user_regs_init): Allocate memory from the gdbarch obstack.
912 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
913 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
915 (usernum_to_user_reg): New function.
916 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
917 (value_of_user_reg): Use usernum_to_user_reg.
918 (user_regs_free): Delete function.
919 (_initialize_user_regs): Update register_gdbarch_data call.
921 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
923 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
925 2003-07-30 Michael Snyder <msnyder@redhat.com>
927 * value.h (value_being_returned): Add a struct_addr argument.
928 * infcall.c (call_function_by_hand): Pass struct_addr to
929 value_being_returned.
930 * infcmd.c (print_return_value): Pass zero as struct_addr.
931 * values.c (value_being_returned): If struct_addr is passed,
932 use it instead of trying to recover it from the inferior.
934 2003-07-30 Kevin Buettner <kevinb@redhat.com>
936 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
937 the prologue analyzer won't need to attempt to extract the pc
938 value from the woefully incomplete dummy frame.
939 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
940 possible. Disable code which modifies the frame.
942 2003-07-28 Andrew Cagney <cagney@redhat.com>
944 * annotate.c (annotate_breakpoints_headers): Restrict annotation
946 (annotate_breakpoints_table, annotate_record): Ditto.
947 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
948 (annotate_field_name_end, annotate_field_value): Ditto.
949 (annotate_field_end, annotate_frame_source_begin): Ditto.
950 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
951 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
952 (annotate_frame_begin, annotate_frame_function_name): Ditto.
953 (annotate_frame_address_end, annotate_frame_address): Ditto.
954 (annotate_frame_args, annotate_frame_end): Ditto.
955 (annotate_frame_where, annotate_arg_begin): Ditto.
956 (annotate_arg_name_end, annotate_arg_value): Ditto.
957 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
958 (annotate_function_call, annotate_signal_name): Ditto.
959 (annotate_signal_string, annotate_signal_name_end): Ditto.
960 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
961 (annotate_value_begin, annotate_value_history_value): Ditto.
962 (annotate_value_history_end, annotate_value_end): Ditto.
963 (annotate_display_begin, annotate_display_number_end): Ditto.
964 (annotate_display_format, annotate_display_expression): Ditto.
965 (annotate_display_expression_end, annotate_display_value): Ditto.
966 (annotate_display_end, annotate_array_section_begin): Ditto.
967 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
968 (annotate_elt, annotate_array_section_end): Ditto.
970 2003-07-28 Andrew Cagney <cagney@redhat.com>
972 * regcache.c (struct regcache_descr): Update comments on
974 (init_legacy_regcache_descr): Don't set nr_raw_registers or
975 sizeof_raw_register_valid_p.
976 (init_regcache_descr): Set nr_raw_registers and
977 sizeof_raw_register_valid_p before calling
978 init_legacy_regcache_descr.
980 2003-07-28 Andrew Cagney <cagney@redhat.com>
982 * mips-tdep.c (print_gp_register_row): Print the GPR's register
985 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
987 * thread.c (info_threads_command): Use get_selected_frame ().
988 Check that there is at least one non-sentinel frame.
990 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
992 * m68hc11-tdep.c (struct frame_extra_info): Remove.
993 (m68hc11_pop_frame): Remove.
994 (m68hc11_frame_saved_pc): Remove.
995 (m68hc11_frame_chain): Remove.
996 (m68hc11_frame_init_saved_regs): Remove.
997 (m68hc11_init_extra_frame_info): Remove.
998 (m68hc11_store_struct_return): Remove.
999 (m68hc11_saved_pc_after_call): Remove.
1001 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1003 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1004 frame unwind information.
1005 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1006 and adapted for frame unwinding.
1007 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1008 (m68hc11_unwind_pc): New function.
1009 (m68hc11_frame_unwind_cache): New function to analyze frames.
1010 (m68hc11_frame_this_id): New function to create new frame struct.
1011 (m68hc11_frame_prev_register): New function to unwind a register from
1013 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1014 (m68hc11_frame_p): New function for the above.
1015 (m68hc11_frame_base_address): New function to return fp of frame.
1016 (m68hc11_frame_args_address): Update for frame.
1017 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1018 (m68hc11_unwind_sp): New function.
1019 (m68hc11_unwind_dummy_id): New function.
1020 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1023 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1025 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1026 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1027 when we are beyond the current pc.
1029 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1031 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1032 from m68hc11_push_arguments.
1033 (m68hc11_push_arguments): Remove.
1034 (m68hc11_push_return_address): Remove.
1035 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1036 handlers; remove deprecated_extra_stack_alignment_needed.
1038 2003-07-27 Andrew Cagney <cagney@redhat.com>
1040 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1041 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1042 REAL_PC and not the pointer.
1043 * hppa-hpux-tdep.c: Include frame.h
1045 2003-07-27 Andrew Cagney <cagney@redhat.com>
1047 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1048 GDB_MULTI_ACH_PARTIAL.
1050 2003-07-27 Andrew Cagney <cagney@redhat.com>
1052 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1053 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1054 operator at start and not end of line.
1055 (decode_prologue): Ditto.
1056 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1057 frame_unwind_register_unsigned instead of
1058 frame_unwind_unsigned_register.
1059 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1061 (m32r_push_dummy_call): Use register_size instead of
1063 (m32r_frame_sniffer): Replace m32r_frame_p.
1064 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1065 * m32r-rom.c (report_transfer_performance): Delete extern
1067 (m32r_load, m32r_upload_command): Use print_transfer_performance
1068 instead of report_transfer_performance.
1069 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1070 / add_show_from_set.
1072 2003-07-26 Andrew Cagney <cagney@redhat.com>
1074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1075 store_return_value and extract_struct_value_address.
1077 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1080 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1081 NULL, default to the section containing PC.
1083 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1085 * NEWS: Mention "regs" deprecated for m68hc11 too.
1087 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1088 (m68hc11_print_register): New function to print out one register.
1089 (m68hc11_print_registers_info): New function to print registers.
1090 (show_regs): Deprecate and use the above.
1091 (m68hc11_gdbarch_init): Install the print_registers_info.
1093 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1095 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1096 that we have a SIGTRAP before returning non-zero.
1098 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1099 Elena Zannoni <ezannoni@redhat.com>
1101 * linespec.c (decode_line_2): Avoid crash if
1102 find_function_start_sal() returns empty record.
1104 2003-07-23 Andreas Schwab <schwab@suse.de>
1106 * ia64-tdep.c (ia64_print_insn): New function.
1107 (ia64_gdbarch_init): Set print_insn to it.
1108 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1109 deprecated_tm_print_insn_info.
1111 2003-07-22 Michael Snyder <msnyder@redhat.com>
1113 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1114 handle 8-bit returns (long long).
1115 (h8300h_extract_return_value): Ditto.
1116 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1118 2003-07-22 Andrew Cagney <cagney@redhat.com>
1120 * gdbarch.c Include "gdb_obstack.h".
1121 (struct gdbarch): Add an "obstack".
1122 (alloc_gdbarch_data): Allocate the gdbarch data using
1123 GDBARCH_OBSTACK_CALLOC.
1124 (free_gdbarch_data): Delete function.
1125 (gdbarch_obstack_zalloc): New function.
1126 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1127 Assert that the architecture is not initialized.
1128 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1129 vector from the obstack.
1130 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1131 architecture obstack.
1132 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1133 (set_gdbarch_data): Assert that the data is not initialized.
1134 (struct gdbarch_data): Delete member "free".
1135 (register_gdbarch_data): Do not initialize "free".
1136 * gdbarch.h, gdbarch.c: Re-generate.
1138 2003-07-22 Andrew Cagney <cagney@redhat.com>
1140 * configure.in (build_warnings): Add -Wformat-nonliteral.
1141 * configure: Re-generate.
1143 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1145 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1147 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1149 * findvar.c (read_var_value): Remove case for thread local storage
1150 variables. It is now entirely handled by the dwarf2 location
1152 * printcmd.c (address_info): Ditto.
1153 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1155 (struct symbol): Remove objfile field, which was used by
1156 LOC_THREAD_LOCAL_STATIC only.
1157 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1158 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1159 usage of objfile pointer.
1160 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1161 thread local variables.
1162 Add include of objfiles.h.
1163 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1165 * Makefile.in (dwarf2loc.o): Update dependencies.
1167 2003-07-22 Andrew Cagney <cagney@redhat.com>
1169 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1171 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1172 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1173 (struct value): Add opaque declaration.
1174 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1176 2003-07-21 Andrew Cagney <cagney@redhat.com>
1178 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1179 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1181 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1183 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1184 regcache_cooked_read_unsigned instead of read_register.
1185 (m68hc11_saved_pc_after_call): Likewise.
1186 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1187 instead of write_register.
1188 (m68hc11_register_type): New function.
1189 (m68hc11_register_virtual_type): Remove.
1190 (m68hc11_store_return_value): Convert to use the regcache.
1191 (m68hc11_extract_struct_value_address): Likewise.
1192 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1193 m68hc11_register_type; undeprecate store_return_value and
1194 extract_struct_value_address.
1196 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1198 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1199 and translate to use regcache.
1200 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1202 2003-07-18 Andrew Cagney <cagney@redhat.com>
1204 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1205 * gdbarch.h, gdbarch.c: Re-generate.
1206 * i386-tdep.c (i386_gdbarch_init): Do not set
1207 DWARF2_BUILD_FRAME_INFO.
1208 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1210 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1211 DWARF2_BUILD_FRAME_INFO.
1213 2003-07-18 Andrew Cagney <cagney@redhat.com>
1215 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1216 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1218 2003-07-18 Andrew Cagney <cagney@redhat.com>
1220 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1221 frame_unwind_address_in_block, instead of frame_pc_unwind.
1222 (dwarf2_frame_cache): Ditto.
1224 2003-07-18 Andrew Cagney <cagney@redhat.com>
1226 * user-regs.h (struct gdbarch): Declare opaque.
1227 * ui-out.h (struct ui_file): Declare opaque.
1228 * dwarf2-frame.h (struct frame_info): Declare opaque.
1230 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1232 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1234 (procfs_meminfo): Change strerror to safe_strerror.
1235 (procfs_can_run): Remove K&R badness.
1237 2003-07-17 Michael Snyder <msnyder@redhat.com>
1239 * remote-sim.c: Comment typo fix.
1241 2003-07-17 Andrew Cagney <cagney@redhat.com>
1243 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1245 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1246 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1247 GDB_MULTI_ARCH_PARTIAL.
1249 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1251 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1252 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1253 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1255 2003-07-16 Theodore A. Roth <troth@openavr.org>
1257 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1259 (avr_frame_unwind_cache): Don't unwind FP for main.
1261 Save the computed prev_sp.
1262 (avr_saved_regs_unwinder): Remove function.
1263 (avr_frame_prev_register): Use PC unwind logic from
1264 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1266 2003-07-16 Andrew Cagney <cagney@redhat.com>
1268 * frame-base.h (frame_base_p_ftype): Delete definition.
1269 (frame_base_append_predicate): Delete declaration.
1270 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1271 (frame_unwind_append_predicate): Delete declaration.
1272 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1273 (append_predicate): Delete parameter "p".
1274 (frame_unwind_append_predicate): Delete function.
1275 (frame_unwind_append_sniffer): Update call to append_predicate.
1276 (frame_unwind_free): Delete function.
1277 (_initialize_frame_unwind): Pass NULL as "free" to
1278 register_gdbarch_data.
1279 (frame_unwind_init): Append the dummy_frame_sniffer.
1280 (frame_unwind_find_by_frame): Simplify.
1281 * frame-base.c (struct frame_base_table): Delete field "p".
1282 (append_predicate): Delete parameter "p".
1283 (frame_base_append_predicate): Delete function.
1284 (frame_base_append_sniffer): Update call to append_predicate.
1285 (frame_base_free): Delete function.
1286 (frame_base_find_by_frame): Simplify.
1287 (_initialize_frame_base): Pass NULL as "free" to
1288 register_gdbarch_data.
1289 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1290 (x86_64_sigtramp_frame_sniffer): Replace
1291 "x86_64_sigtramp_frame_p".
1292 (x86_64_init_abi): Set the frame unwind sniffers.
1293 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1294 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1295 (m68k_gdbarch_init): Set the frame unwind sniffers.
1296 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1297 "i386_sigtramp_frame_p".
1298 (i386_frame_sniffer): Replace "i386_frame_p".
1299 (i386_gdbarch_init): Set the frame unwind sniffers.
1300 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1301 (avr_gdbarch_init): Set the frame unwind sniffers.
1302 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1303 "alpha_sigtramp_frame_p"
1304 (alpha_heuristic_frame_sniffer): Replace
1305 "alpha_heuristic_frame_p".
1306 (alpha_gdbarch_init): Set the frame unwind sniffers.
1307 (alpha_dwarf2_init_abi): Ditto.
1308 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1309 "alpha_debug_frame_p".
1310 (alpha_mdebug_frame_base_sniffer): Replace
1311 "alpha_mdebug_frame_base_p".
1312 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1313 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1314 (d10v_gdbarch_init): Set the frame unwind sniffer.
1315 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1316 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1317 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1318 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1319 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1320 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1322 2003-07-16 Michael Snyder <msnyder@redhat.com>
1324 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1325 should go thru sh_dsp_register_sim_regno, else the dsp regs
1326 will not get the right values.
1328 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1330 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1331 deprecated_store_floating by call to store_typed_floating.
1332 (sh_sh4_register_convert_to_raw): Substitute call to
1333 deprecated_extract_floating by call to extract_typed_floating.
1335 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1337 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1339 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1341 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1342 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1343 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1345 (do_pseudo_register): Remove.
1346 (sh_push_dummy_code): New function.
1347 (sh64_store_struct_return): Rename from sh_store_struct_return.
1348 Only called for sh64 now.
1349 (sh_extract_struct_value_address): Regcache'ify.
1350 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1351 and accomodate new tasks.
1352 (sh64_push_return_address): Rename from sh_push_return_address.
1353 Only called for sh64 now.
1354 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1356 (sh3e_sh4_extract_return_value): Regcache'ify.
1357 (sh_default_store_return_value): Ditto.
1358 (sh3e_sh4_store_return_value): Ditto.
1359 (sh_default_register_byte): Remove.
1360 (sh_sh4_register_byte): Remove.
1361 (sh_default_register_raw_size): Remove.
1362 (sh_sh4_register_raw_size): Remove.
1363 (sh_register_virtual_size): Remove.
1364 (sh_sh3e_register_virtual_type): Remove.
1365 (sh_sh3e_register_type): New function.
1366 (sh_sh4_register_virtual_type): Remove.
1367 (sh_sh4_register_type): New function.
1368 (sh_default_register_virtual_type): Remove.
1369 (sh_default_register_type): New function.
1370 (do_fv_register_info): Add parameters to accomodate call from
1371 sh_print_registers_info.
1372 (do_dr_register_info): Ditto.
1373 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1374 Add parameters to accomodate call from sh_print_registers_info.
1375 (sh_do_fp_register): Ditto.
1376 (sh64_do_pseudo_register): Call do_dr_register_info,
1377 do_fv_register_info and sh_do_fp_register with default parameters.
1378 (sh_do_register): Add parameters to accomodate call from
1379 sh_print_registers_info.
1380 (sh_print_register): Ditto.
1381 (sh_print_registers_info): Rename from sh_do_registers_info.
1382 Add parameters to be used as gdbarch_print_registers_info
1383 implementation. Accomodate removed do_pseudo_register function
1385 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1386 function pointer. Call sh_print_register with default parameters.
1387 (sh64_do_registers_info): Call sh_print_registers_info instead of
1388 sh_do_registers_info.
1389 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1390 detection of deprecated vs. non-deprecated functionality.
1391 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1392 function pointer assignments by direct function calls.
1394 2003-07-15 Andrew Cagney <cagney@redhat.com>
1396 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1397 (frame_register_unwind, create_new_frame): Ditto.
1398 (legacy_get_prev_frame, get_frame_type): Ditto.
1399 (get_frame_base_address): Use frame_base_find_by_frame.
1400 (get_frame_locals_address): Use frame_base_find_by_frame.
1401 (get_frame_args_address): Use frame_base_find_by_frame.
1402 * frame-base.h (frame_base_sniffer_ftype): Declare.
1403 (frame_base_append_sniffer): Declare.
1404 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1405 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1406 (frame_base_append_sniffer): New function.
1407 (frame_base_append_predicate): Add a NULL sniffer.
1408 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1409 (struct frame_base_table): Add "sniffer".
1410 (frame_base_free): Free the "sniffer" table.
1411 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1412 (frame_unwind_append_sniffer): Declare.
1413 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1414 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1415 (struct frame_unwind_table): Add "sniffer", delete "middle".
1416 (append_predicate): Add "sniffer" parameter, append the sniffer.
1417 (frame_unwind_init): Update append_predicate call.
1418 (frame_unwind_append_sniffer): New function.
1419 (frame_unwind_append_predicate): Update append_predicate call.
1420 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1422 2003-07-15 Andrew Cagney <cagney@redhat.com>
1424 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1425 before code inhibiting repeated unwind attempts. Add to
1426 commentary on that test's problems.
1427 * blockframe.c (inside_main_func): Look for "main" in the minimal
1429 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1432 2003-07-15 Andrew Cagney <cagney@redhat.com>
1434 * complaints.c (struct explanation): Define.
1435 (struct complaints): Change type of "explanation" to "struct
1437 (symfile_explanations): Convert to a "struct explanation" table.
1438 (vcomplaint): Update.
1440 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1442 * x86-64-linux-nat.c (regmap): Removed.
1443 (supply_gregset, fill_gregset): Call
1444 x86_64_linux_(fill,supply)_gregset functions.
1445 * x86-64-linux-tdep.c (USER_*): New defines.
1446 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1447 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1449 (fetch_core_registers): Ditto.
1450 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1451 * x86-64-linux-tdep.h: New file.
1452 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1454 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1456 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1458 * x86-64-tdep.c (x86_64_store_return_value): Use
1459 regcache_cooked_write_part instead of regcache_cooked_write.
1461 * configure.host: Add x86_64-*-freebsd*.
1462 * configure.tgt: Add x86_64-*-freebsd*.
1463 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1464 * amd64fbsd-nat.c: New file.
1465 * amd64fbsd-tdep.c: New file.
1466 * config/i386/nm-fbsd64.h: New file.
1467 * config/i386/fbsd64.mh: New file.
1468 * config/i386/fbsd64.mt: New file.
1470 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1472 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1473 `sc_regs_offset' and `sc_fpregs_offset'.
1474 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1475 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1476 (alpha_sigtramp_register_address): Rewrite to use new members of
1477 `struct gdbarch_tdep'.
1478 (alpha_gdbarch_init): Initialize new members of struct
1480 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1481 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1482 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1483 (alphafbsd_pc_in_sigtramp): Implement.
1484 (alphafbsd_sigtramp_offset): New function.
1485 (alphafbsd_sigcontext_addr): New function.
1486 (alphafbsd_init_abi): Initialize signal trampoline related members
1487 of `struct gdbarch_tdep'.
1488 (_initialize_alphafbsd_tdep): Add prototype.
1490 2003-07-11 Theodore A. Roth <troth@openavr.org>
1492 * Makefile.in (install-only): Quote sed expression when generating
1495 2003-07-11 Richard Henderson <rth@redhat.com>
1497 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1498 * dwarf2-frame.c: Include complaints.h.
1499 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1500 variable initialization; return NULL on error.
1501 (decode_frame_entry): New.
1503 2003-07-11 Andrew Cagney <cagney@redhat.com>
1505 * frame.h (frame_address_in_block): Delete declaration.
1506 * blockframe.c (frame_address_in_block): Delete function.
1507 (get_frame_block): Use get_frame_address_in_block.
1508 (block_innermost_frame): Ditto.
1509 * stack.c (print_frame, backtrace_command_1): Ditto.
1511 * frame.h (get_frame_address_in_block): Declare.
1512 (frame_unwind_address_in_block): Declare.
1513 * frame.c (frame_unwind_address_in_block): New function.
1514 (get_frame_address_in_block): New function.
1516 2003-07-10 Andrew Cagney <cagney@redhat.com>
1518 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1519 pre-default. Note: re-generate has no effect.
1521 2003-07-10 Andrew Cagney <cagney@redhat.com>
1523 * gdbarch.sh: When a variable, but not a function, compare against
1524 0. Fix problem in previous patch.
1525 * gdbarch.c: Re-generate.
1527 2003-07-10 Andrew Cagney <cagney@redhat.com>
1529 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1530 functions against NULL, not 0.
1531 * gdbarch.c: Re-generate.
1533 2003-07-10 Fred Fish <fnf@ninemoons.com>
1535 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1536 null string instead of a null pointer.
1537 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1539 2003-07-09 Michael Snyder <msnyder@redhat.com>
1541 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1543 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1545 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1546 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1547 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1548 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1549 * x86-64-tdep.c: ... from here.
1551 2003-07-09 Andreas Schwab <schwab@suse.de>
1553 * m68k-tdep.h (enum struct_return): Define.
1554 (struct gdbarch_tdep): Add struct_return.
1555 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1556 bytes are padded to the right, not to the left. Pass struct value
1557 address in register %a1, not on stack.
1558 (m68k_use_struct_convention): New function.
1559 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1560 struct_return in tdep to pcc_struct_return.
1561 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1564 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1566 * somread.c (som_symfile_offsets): Fix compilation error.
1568 2003-07-09 Andrew Cagney <cagney@redhat.com>
1570 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1571 Add comments about the checks.
1573 2003-07-08 Andrew Cagney <cagney@redhat.com>
1575 * Makefile.in: Make dependency section headers consistent.
1576 (config_h): Move to $BUILD headers section.
1577 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1578 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1579 (ada-exp.tab.c): Move to YACC/LEX section.
1580 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1581 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1583 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1585 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1586 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1587 of strerror with safe_strerror, use ISO C function definitions,
1588 and replace instances of sprintf with snprintf.
1590 2003-07-07 Andrew Cagney <cagney@redhat.com>
1592 * frame.c (get_prev_frame): Enable check for identical frames.
1593 Update comments. Update error messages.
1595 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1597 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1599 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1601 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1602 sort_symtab_syms, no longer necessary.
1604 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1606 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1608 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1610 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1611 (mips_register_byte): Likewise.
1613 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1615 * Makefile.in (sparc_tdep_h): New.
1616 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1617 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1618 * sparc-linux-nat.c: Include "sparc-tdep.h".
1619 * sparc-nat.c: Likewise.
1620 * sparc-tdep.c: Likewise.
1621 * sparc64nbsd-nat.c: Likewise.
1622 * sparcnbsd-nat.c: Likewise.
1623 * sparcnbsd-tdep.c: Likewise.
1624 * sparc-tdep.h: New file.
1625 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1626 and sparc_npc_regnum.
1628 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1630 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1631 (mips_linux_cannot_store_register): List supported instead of
1632 unsupported registers.
1634 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1636 * disasm.c (dump_insns): Separate instructions from addresses.
1638 2003-07-07 Andreas Schwab <schwab@suse.de>
1640 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1642 * m68k-tdep.c (NUM_FREGS): Delete.
1643 (SIG_PC_FP_OFFSET): Delete.
1644 (TARGET_M68K): Delete.
1645 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1646 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1647 P_MOVEL_SP, P_MOVEML_SP): Define.
1648 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1650 (m68k_register_raw_size): Delete.
1651 (m68k_register_virtual_size): Delete.
1652 (m68k_register_type): Renamed from m68k_register_virtual_type and
1653 add gdbarch argument.
1654 (m68k_store_struct_return): Delete.
1655 (m68k_deprecated_extract_return_value): Delete.
1656 (m68k_deprecated_extract_struct_value_address): Delete.
1657 (m68k_frame_chain): Delete.
1658 (m68k_frame_saved_pc): Delete.
1659 (m68k_fix_call_dummy): Delete.
1660 (m68k_push_dummy_frame): Delete.
1661 (m68k_pop_frame): Delete.
1662 (m68k_extract_return_value): New function.
1663 (m68k_store_return_value): Rewrite using regcache.
1664 (m68k_extract_struct_value_address): Rewrite using regcache.
1665 (m68k_push_dummy_call): New function.
1666 (struct m68k_frame_cache): Define.
1667 (m68k_alloc_frame_cache): New function.
1668 (m68k_analyze_frame_setup): New function.
1669 (m68k_analyze_register_saves): New function.
1670 (m68k_analyze_prologue): New function.
1671 (m68k_skip_prologue): Rewrite using above functions.
1672 (m68k_unwind_pc): New function.
1673 (m68k_frame_cache): New function.
1674 (m68k_frame_this_id): New function.
1675 (m68k_frame_prev_register): New function.
1676 (m68k_frame_unwind): New variable.
1677 (m68k_frame_p): New function.
1678 (m68k_sigtramp_frame_cache): New function.
1679 (m68k_sigtramp_frame_this_id): New function.
1680 (m68k_sigtramp_frame_prev_register): New function.
1681 (m68k_sigtramp_frame_unwind): New variable.
1682 (m68k_sigtramp_frame_p): New function.
1683 (m68k_frame_base_address): New function.
1684 (m68k_frame_base): New function.
1685 (m68k_unwind_dummy_id): New function.
1686 (fill_gregset): Use regcache_collect.
1687 (fill_fpregset): Likewise.
1688 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1690 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1691 deprecated_init_frame_pc, deprecated_store_struct_return,
1692 deprecated_extract_return_value, deprecated_store_return_value,
1693 deprecated_frame_chain, deprecated_frame_saved_pc,
1694 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1695 deprecated_register_virtual_size,
1696 deprecated_max_register_raw_size,
1697 deprecated_max_register_virtual_size,
1698 deprecated_register_virtual_type, deprecated_register_size,
1699 deprecated_register_byte, deprecated_register_bytes,
1700 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1701 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1702 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1703 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1704 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1705 deprecated_push_dummy_frame, deprecated_pop_frame,
1706 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1707 only if SYSCALL_TRAP is defined. Set extract_return_value,
1708 store_return_value, extract_struct_value_address, register_type,
1709 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1711 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1712 M68K_MAX_REGISTER_SIZE): Define.
1713 (struct m68k_sigtramp_info): Define.
1714 (struct gdbarch_tdep): Add get_sigtramp_info.
1715 * m68klinux-nat.c (fetch_register): Use register_size instead of
1716 REGISTER_RAW_SIZE. Don't put assignment in if.
1717 (store_register): Likewise.
1718 (fetch_inferior_registers): Likewise.
1719 (store_inferior_registers): Likewise.
1720 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1721 (m68k_linux_frame_saved_pc): Delete.
1722 (m68k_linux_sigcontext_reg_offset,
1723 m68k_linux_ucontext_reg_offset): Define.
1724 (m68k_linux_get_sigtramp_info): New function.
1725 (m68k_linux_extract_return_value): Rewrite using regcache.
1726 (m68k_linux_store_return_value): Likewise.
1727 (m68k_linux_extract_struct_value_address): Likewise.
1728 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1729 Don't set deprecated_frame_saved_pc,
1730 deprecated_extract_return_value, deprecated_store_return_value,
1731 deprecated_extract_struct_value_address. Set
1732 extract_return_value, store_return_value,
1733 extract_struct_value_address.
1735 2003-07-07 Andrew Cagney <cagney@redhat.com>
1737 * expprint.c: Include "user-regs.h" instead of "frame.h".
1738 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1739 frame_map_regnum_to_name.
1740 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1741 (frame_map_name_to_regnum): Simplify, call
1742 user_reg_map_name_to_regnum.
1743 (frame_map_regnum_to_name): Simplify, call
1744 user_reg_map_regnum_to_name.
1745 (frame_register_unwind): Update.
1746 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1747 (_initialize_frame_reg): Call user_reg_add_builtin.
1748 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1749 (value_of_register): Use value_of_user_reg.
1750 * eval.c (evaluate_subexp_standard): Update.
1751 * parse.c (write_dollar_variable): Update.
1752 * d10v-tdep.c (d10v_print_registers_info): Update.
1753 * infcmd.c (registers_info): Update.
1754 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1755 (builtin_regs_h): Delete macro.
1756 (user_regs_h): Define.
1757 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1758 (builtin-regs.o): Delete target.
1759 (user-regs.o): Specify dependencies.
1760 (expprint.o): Update dependencies.
1761 (findvar.o): Update dependencies.
1762 (frame.o): Update dependencies.
1763 (std-regs.o): Update dependencies.
1765 2003-07-06 Christopher Faylor <cgf@redhat.com>
1767 * win32-nat.c (solib_symbols_add): Use one variable for all section
1768 address stuff. Pass variable rather than address of variable to
1769 safe_symbol_file_add.
1771 2003-07-06 Andreas Schwab <schwab@suse.de>
1773 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1775 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1777 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1779 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1781 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1783 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1785 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1786 * config/i386/nto.mh: New file.
1787 * config/i386/nm-nto.h: New file.
1788 * configure.host: Add i[3456]86-*-nto*.
1790 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1792 * remote-vx.c (vx_add_symbols): Fix compilation error.
1794 2003-07-03 Andrew Cagney <cagney@redhat.com>
1796 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1797 * gdbarch.h, gdbarch.c: Re-generate.
1798 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1799 (legacy_register_name): Declare.
1800 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1801 (REGISTER_NAME): Define.
1802 * sparc-tdep.c (legacy_register_name): New function.
1803 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1804 (REGISTER_NAME): Define.
1805 (hppa64_register_name): Declare.
1806 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1807 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1808 (hppa64_register_name): New function.
1809 (hppa_register_name): New function.
1810 * arch-utils.c (legacy_register_name): Delete.
1811 * arch-utils.h (legacy_register_name): Delete.
1813 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1815 * cli/cli-interp.c (cli_interpreter_resume): Update the
1816 cli_uiout's stream to gdb_stdout.
1818 2003-07-03 Andrew Cagney <cagney@redhat.com>
1820 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1822 * gdbarch.h, gdbarch.c: Re-generate.
1823 * regcache.c (init_regcache_descr): Use legacy code when either
1824 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1826 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1828 * NEWS: Move "set logging" entry into GDB 6.0 section.
1830 2003-07-02 Jim Blandy <jimb@redhat.com>
1832 * s390-tdep.c (struct frame_extra_info): new member:
1833 'stack_bought_valid'.
1834 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1835 initialize fextra_info->stack_bought.
1836 (s390_frameless_function_invocation): Don't trust the value of
1837 fextra_info_ptr->stack_bought unless
1838 fextra_info->stack_bought_valid is set.
1840 New S390 prologue analyzer.
1841 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1842 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1843 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1844 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1845 compute_x_addr, s390_on_stack, s390_store,
1846 s390_get_signal_frame_info): New functions.
1847 (S390_NUM_SPILL_SLOTS): New macro.
1848 (s390_get_frame_info): Rewritten.
1849 (is_arg_reg): Deleted.
1851 Break out the decoding of S/390 instructions into separate
1852 functions, to make it more legible, and easier to check
1854 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1855 is_rx, is_rxe): New functions.
1856 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1857 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1858 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1859 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1860 enums for opcode values. (Is this an improvement?)
1862 2003-07-02 Andrew Cagney <cagney@redhat.com>
1864 * i386-tdep.c: Revert change committed as part of trad-frame code
1867 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1869 * breakpoint.c (insert_catchpoint): Make static.
1871 2003-07-02 Andreas Schwab <schwab@suse.de>
1873 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1874 former ia64_push_arguments and ia64_push_return_address, and use
1875 regcache functions instead of read/write_register.
1876 (ia64_gdbarch_init): Set push_dummy_call instead of
1877 deprecated_push_arguments and deprecated_push_return_address.
1879 2003-07-01 Andreas Jaeger <aj@suse.de>
1881 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1883 Set %rax only to number of SSE registers used.
1885 2003-07-01 Andrew Cagney <cagney@redhat.com>
1887 * trad-frame.h: Update comments, a -1 .addr is reserved.
1888 (trad_frame_value_p, trad_frame_addr_p): Declare.
1889 (trad_frame_reg_p): Declare.
1890 (trad_frame_set_value): Rename trad_frame_register_value.
1891 (trad_frame_set_unknown): Declare.
1892 * trad-frame.c (trad_frame_realreg_p): New function.
1893 (trad_frame_addr_p, trad_frame_value_p): New function.
1894 (trad_frame_set_unknown): New function.
1895 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1896 (trad_frame_prev_register): Use trad_frame_realreg_p,
1897 trad_frame_addr_p and trad_frame_value_p.
1898 (trad_frame_set_value): Rename trad_frame_register_value.
1899 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1900 and trad_frame_set_value.
1902 2003-06-30 Jim Blandy <jimb@redhat.com>
1904 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1905 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1906 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1907 for 16 registers, and then 32 more bytes.
1908 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1910 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1911 Move up in the file, since it's now used by is_simple_arg.
1912 (is_simple_arg): Don't assume registers are four bytes long.
1913 Exclude all double arguments. Extended floats are not simple
1915 (is_power_of_two): New function.
1916 (pass_by_copy_ref): Call is_power_of_two, and check that the
1917 length fits in a register, rather than listing all the acceptable
1918 sizes. Extended floats are not passed by reference.
1919 (s390_push_arguments): Don't assume registers are four bytes long.
1920 Reserve an argument register to point to the buffer for structures
1921 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1922 S390_STACK_FRAME_OVERHEAD.
1924 2003-06-30 Andreas Schwab <schwab@suse.de>
1926 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1927 format error message.
1929 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1931 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1933 2003-06-30 David Carlton <carlton@kealia.com>
1935 Band-aid for PR c++/1245.
1936 * Makefile.in (cp-support.o): Depend on complaints_h.
1937 * cp-support.c: Include complaints.h. Add declaration for
1938 find_last_component.
1939 (cp_find_first_component): Separate code into
1940 cp_find_first_component_aux.
1941 (cp_find_first_component_aux): Call demangled_name_complaint.
1942 (demangled_name_complaint): New.
1944 2003-06-30 Andrew Cagney <cagney@redhat.com>
1946 * remote.c (remote_write_bytes): Explicitly compute and then use
1947 the payload size. Update comments to reflect. Fixes problem of
1948 GDB not sending small packets as found by Fred Fish.
1950 2003-06-30 Andrew Cagney <cagney@redhat.com>
1952 * remote.c (remote_async_wait): Fix -Wformat problem.
1954 2003-06-29 Andrew Cagney <cagney@redhat.com>
1956 * remote.c (remote_wait): Call error, and not warning, when the
1958 (remote_async_wait): Ditto.
1960 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1962 * sparc-tdep.c (sparc_y_regnum): Make external again.
1964 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1966 * cli/cli-logging.c (pop_output_files): Add void to function
1969 2003-06-29 Andrew Cagney <cagney@redhat.com>
1971 * frame.c (frame_register_unwind): Use unsigned char when dumping
1972 the buffer contents.
1974 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1976 * cli/cli-logging.c: New file.
1977 * cli-out.c (struct ui_out_data): Add original_stream.
1978 (cli_redirect): New function.
1979 (cli_ui_out_impl): Add cli_redirect.
1980 (cli_out_new): Initialize original_stream.
1981 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1982 (uo_redirect, ui_out_redirect): New.
1983 * ui-out.h (struct ui_out_impl): Add redirect member.
1984 (redirect_ftype): New.
1985 (ui_out_redirect): Add prototype.
1986 * Makefile.in: Add rules for cli-logging.c.
1987 * NEWS: Mention "set logging".
1989 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1991 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1993 2003-06-27 Andrew Cagney <cagney@redhat.com>
1995 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1996 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1997 * avr-tdep.c (avr_call_dummy_address): Delete function.
1998 (avr_gdbarch_init): Do not set call_dummy_address.
2000 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2002 * symfile.c (syms_from_objfile): Move variables to inner block.
2003 Move the checks for the non-mainline case a bit earlier to avoid
2004 doing some useless computations.
2006 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2008 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2010 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2012 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2015 2003-06-26 Michael Chastain <mec@shout.net>
2017 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2018 gdb/testsuite/gdb.c++/pr-1210.exp.
2020 2003-06-26 Andrew Cagney <cagney@redhat.com>
2022 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2023 altivec_expression.h and altivec_registers.h.
2025 2003-06-26 Andrew Cagney <cagney@redhat.com>
2027 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2028 info->mach when MIPS16. Patch suggested by Fred Fish.
2030 2003-06-26 Andrew Cagney <cagney@redhat.com>
2032 * utils.c (internal_vproblem): Print the problem to a reason
2033 buffer and then pass to query. Make the msg variable more local.
2035 2003-06-26 Andrew Cagney <cagney@redhat.com>
2037 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2038 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2039 * gdbarch.h, gdbarch.c: Re-generate.
2040 * frame-base.c (default_frame_args_address): Update. Use
2041 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2043 (default_frame_locals_address): Ditto for
2044 DEPRECATED_FRAME_LOCALS_ADDRESS.
2045 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2046 (vax_frame_num_args): Update.
2047 (vax_gdbarch_init): Update.
2048 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2049 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2050 * mcore-tdep.c (mcore_gdbarch_init): Update.
2051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2052 * ia64-tdep.c (ia64_gdbarch_init): Update.
2053 * symtab.h (address_class): Update comments.
2054 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2055 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2056 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2057 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2058 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2059 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2060 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2061 * alpha-mdebug-tdep.c: Update.
2062 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2064 2003-06-26 Andreas Jaeger <aj@suse.de>
2066 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2067 of SSE registers so that varargs functions work. Rework handling
2068 of passing arguments on the stack.
2069 (x86_64_store_return_value): Return double and float values in SSE
2072 2003-06-24 Michael Chastain <mec@shout.net>
2074 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2075 the "constructor breakpoints ignored" bug.
2077 2003-06-25 David Carlton <carlton@kealia.com>
2079 * MAINTAINERS: Update e-mail address.
2081 2003-06-24 Jim Blandy <jimb@redhat.com>
2083 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2085 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2087 (ppc_linux_init_abi): Register it as the
2088 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2090 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2091 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2094 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2095 (ppc64_standard_linkage_target): Use it.
2097 2003-06-23 Andrew Cagney <cagney@redhat.com>
2099 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2100 for 0 "int0" and 4 "int32" sized registers.
2101 * gdbtypes.c (builtin_type_int0): Define.
2102 (build_gdbtypes): Initialize builtin_type_int0.
2103 * gdbtypes.h (builtin_type_int0): Declare.
2105 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2107 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2108 as characters are unsigned.
2110 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2113 * dwarfread.c (struct_type): Skip static fields without crashing.
2115 2003-06-22 Andrew Cagney <cagney@redhat.com>
2117 GDB 6.0 branch created.
2119 * PROBLEMS: Update. Empty.
2122 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2124 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2125 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2127 2003-06-22 Andrew Cagney <cagney@redhat.com>
2129 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2130 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2133 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2135 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2138 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2140 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2141 argument of val_print.
2142 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2143 to the address argument of baseclass_offset or target_read_memory.
2144 Do add it to the argument of cp_print_value_fields.
2146 2003-06-21 Andrew Cagney <cagney@redhat.com>
2148 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2149 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2150 instead of 0..NUM_REGS.
2151 (mips_register_reggroup_p): New function.
2152 (mips_pseudo_register_write): New function.
2153 (mips_pseudo_register_read): New function.
2154 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2155 based on the register's type.
2156 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2158 (mips_get_saved_register): Simplify. Assert that REGNO is a
2160 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2161 (mips_register_type): Replace mips_register_virtual_type. Map
2162 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2164 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2165 that the register is cooked / virtual.
2166 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2167 Only get the extra info when needed.
2168 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2169 (mips32_heuristic_proc_desc): Fetch the cooked register.
2170 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2171 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2172 (mips_print_register): Use gdbarch_register_type, instead of
2173 REGISTER_VIRTUAL_TYPE.
2174 (print_gp_register_row): Use gdbarch_register_type, instead of
2175 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2176 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2177 Print the pseudo / cooked registers.
2178 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2179 Print the pseudo / cooked registers.
2180 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2181 REG_NUM is pseudo / cooked.
2182 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2183 (mips_n32n64_xfer_return_value): Ditto.
2184 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2185 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2186 (mips_register_sim_regno): New function.
2187 (mips_gdbarch_init): Set deprecated_register_byte,
2188 register_group_p, pseudo_register_write, pseudo_register_read,
2189 register_sim_regno, and num_pseudo_regs. Set register_type,
2190 instead of register_virtual_type.
2191 * Makefile.in (mips-tdep.o): Update dependencies.
2192 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2193 REGISTER_VIRTUAL_TYPE.
2194 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2195 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2196 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2197 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2198 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2200 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2202 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2203 * cli/cli-cmds.c: Include "gdb_vfork.h".
2204 (shell_escape): Use vfork.
2206 2003-06-21 Andrew Cagney <cagney@redhat.com>
2208 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2209 32 bit floating-point register saves.
2211 * frame.h (deprecated_unwind_get_saved_register): Delete.
2212 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2213 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2214 and deprecated_get_next_frame_hack instead of
2215 deprecated_unwind_get_saved_register.
2217 * mips-tdep.c (mips_dump_tdep): Do not print
2218 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2220 * frame.c (get_frame_register): New function.
2221 (frame_unwind_register_signed): New function.
2222 (get_frame_register_signed): New function.
2223 (frame_unwind_register_unsigned): New function.
2224 (get_frame_register_unsigned): New function.
2225 * frame.h: Add comments on naming schema.
2226 (get_frame_register, frame_unwind_register_signed): Declare.
2227 (get_frame_register_signed, get_frame_register_signed): Declare.
2228 (frame_unwind_register_unsigned): Declare.
2229 (get_frame_register_unsigned): Declare.
2231 2003-06-20 Theodore A. Roth <troth@openavr.org>
2233 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2235 2003-06-20 Theodore A. Roth <troth@openavr.org>
2237 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2238 (avr_read_sp): Ditto.
2240 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2242 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2243 * config/arm/nm-linux.h: Likewise.
2244 * config/arm/tm-linux.h: Likewise.
2245 * config/ia64/nm-linux.h: Likewise.
2246 * config/ia64/tm-ia64.h: Likewise.
2247 * config/s390/tm-linux.h: Likewise.
2248 * config/s390/tm-s390.h: Likewise.
2249 * s390-nat.c: Likewise.
2250 * s390-tdep.c: Likewise.
2252 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2253 * config/ia64/linux.mt: Likewise.
2254 * config/m68k/linux.mh: Likewise.
2255 * config/mips/linux.mt: Likewise.
2256 * config/powerpc/linux.mh: Likewise.
2257 * config/sh/linux.mt: Likewise.
2259 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2261 * solib.c (solib_open): Change tests for whether to search
2262 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2265 2003-06-19 Theodore A. Roth <troth@openavr.org>
2267 * avr-tdep.c (avr_frame_address): Delete function.
2268 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2269 set_gdbarch_frame_args_address.
2271 2003-06-19 Andrew Cagney <cagney@redhat.com>
2273 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2274 (REGISTER_CONVERT_FROM_TYPE): Delete.
2275 (mips_register_convert_to_type): Delete declaration.
2276 (mips_register_convert_from_type): Delete declaration.
2277 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2280 2003-06-19 Michael Snyder <msnyder@redhat.com>
2282 * linux-nat.h: New file.
2283 * linux-nat.c: Include linux-nat.h.
2284 * lin-lwp.c: Include linux-nat.h.
2285 Move struct lwp_info def to linux-nat.h.
2286 * linux-proc.c: Include linux-nat.h.
2287 (linux_make_note_section): Iterate over lwps instead of threads.
2288 (linux_do_thread_registers): Use lwp instead of merged pid.
2289 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2290 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2291 Add dependency on linux_nat_h.
2293 2003-06-19 Theodore A. Roth <troth@openavr.org>
2295 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2297 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2299 * varobj.c (get_type, get_target_type): Use check_typedef.
2301 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2303 * breakpoint.c (insert_catchpoint): Call internal_error.
2305 2003-06-19 Theodore A. Roth <troth@openavr.org>
2307 * avr-tdep.c (avr_push_dummy_code): Delete function.
2308 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2310 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2312 * arch-utils.c (default_prepare_to_proceed): Remove.
2313 (generic_prepare_to_proceed): Remove.
2314 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2315 (generic_prepare_to_proceed): Remove prototype.
2316 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2317 * gdbarch.c: Regenerate.
2318 * gdbarch.h: Regenerate.
2319 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2320 * hppah-nat.c (hppa_switched_threads): Remove.
2321 * infrun.c (prepare_to_proceed): New static function, copied from
2322 generic_prepare_to_proceed. Remove select_it argument.
2323 (proceed): Call prepare_to_proceed.
2324 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2326 (ptrace_wait): Don't set the removed variables.
2327 (hppa_switched_threads): Remove.
2328 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2329 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2330 (lin_lwp_prepare_to_proceed): Remove prototype.
2331 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2332 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2334 2003-06-18 Theodore A. Roth <troth@openavr.org>
2336 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2338 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2339 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2340 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2341 (AVR_PROLOGUE_*): Enumerate prologue types.
2342 (struct frame_extra_info): Remove.
2343 (struct avr_unwind_cache): Define.
2344 (avr_write_sp): Delete function.
2345 (avr_read_fp): Ditto.
2346 (avr_init_extra_frame_info): Ditto.
2347 (avr_pop_frame): Ditto.
2348 (avr_frame_saved_pc): Ditto.
2349 (avr_saved_pc_after_call): Ditto.
2350 (avr_push_return_address): Ditto.
2351 (avr_frame_chain): Ditto.
2352 (avr_store_struct_return): Ditto.
2353 (avr_push_arguments): Ditto.
2354 (avr_scan_prologue): Update comments. Changed to set up the info for
2355 cache unwinding. Now returns end of prologue PC.
2356 (avr_skip_prologue): Better handling of functions lacking a prologue
2357 by using avr_scan_prologue.
2358 (avr_scan_arg_moves): New function.
2359 (avr_saved_regs_unwinder): Ditto.
2360 (avr_frame_unwind_cache): Ditto.
2361 (avr_unwind_pc): Ditto.
2362 (avr_frame_this_id): Ditto.
2363 (avr_frame_prev_register): Ditto.
2364 (avr_frame_p): Ditto.
2365 (avr_frame_base_address ): Ditto.
2366 (avr_unwind_dummy_id): Ditto.
2367 (avr_push_dummy_code): Ditto.
2368 (push_stack_item): Ditto.
2369 (pop_stack_item): Ditto.
2370 (avr_push_dummy_call): Ditto.
2371 (struct stack_item): Define.
2372 (avr_frame_unwind): Declare structure.
2373 (avr_frame_base): Ditto.
2374 (avr_gdbarch_init): Remove calls to
2375 set_gdbarch_deprecated_init_frame_pc,
2376 set_gdbarch_deprecated_target_read_fp,
2377 set_gdbarch_deprecated_dummy_write_sp,
2378 set_gdbarch_deprecated_fp_regnum,
2379 set_gdbarch_deprecated_push_arguments,
2380 set_gdbarch_deprecated_push_return_address,
2381 set_gdbarch_deprecated_pop_frame,
2382 set_gdbarch_deprecated_store_struct_return,
2383 set_gdbarch_deprecated_frame_init_saved_regs,
2384 set_gdbarch_deprecated_init_extra_frame_info,
2385 set_gdbarch_deprecated_frame_chain,
2386 set_gdbarch_deprecated_frame_saved_pc,
2387 set_gdbarch_deprecated_saved_pc_after_call.
2388 Add calls to set_gdbarch_push_dummy_call,
2389 set_gdbarch_push_dummy_code,
2390 frame_unwind_append_predicate,
2391 frame_base_set_default,
2392 set_gdbarch_unwind_dummy_id,
2393 set_gdbarch_unwind_pc.
2396 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2398 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2399 registers for H8/300S.
2400 (h8300_print_registers_info): Ditto.
2401 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2403 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2405 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2406 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2407 (lin_lwp_wait): Likewise. Update comments.
2408 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2409 (pull_pid_from_list, linux_record_stopped_pid): New.
2411 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2413 * ada-lang.c (scan_discrim_bound): Name first argument.
2414 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2415 declared by ALL_BLOCK_SYMBOLS.
2417 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2419 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2420 ("regcache.h"): Include it.
2421 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2423 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2425 * NEWS: Mention gdbserver detach change and "disconnect" command.
2426 * infcmd.c (disconnect_command): New function.
2427 (_initialize_infcmd): Add ``disconnect'' command.
2428 * remote.c (remote_async_detach): Delete.
2429 (remote_detach): Merge remote_async_detach.
2430 (remote_disconnect): New.
2431 (init_remote_ops): Set to_disconnect.
2432 (init_remote_cisco_ops): Likewise.
2433 (init_remote_async_ops): Likewise. Use remote_detach.
2434 * target.c (cleanup_target): Default to_disconnect.
2435 (update_current_target): Inherit to_disconnect.
2436 (target_disconnect, debug_to_disconnect): New functions.
2437 (setup_target_debug): Set to_disconnect.
2438 * target.h (struct target_ops): Add to_disconnect.
2439 (target_disconnect): Add prototype.
2441 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2443 * breakpoint.c (insert_catchpoint): New function.
2444 (insert_breakpoints): Use catch_exceptions to call
2445 insert_catchpoint. Disable catchpoints if they fail to insert.
2447 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2449 * symfile.c (reread_symbols): Clear sym_private.
2451 2003-06-17 Andrew Cagney <cagney@redhat.com>
2453 * trad-frame.h (struct frame_info): Add opaque declaration.
2454 * remote-fileio.h (struct cmd_list_element): Add opaque
2456 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2459 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2461 * remote.c (remote_prepare_to_store): Replace call to
2462 deprecated_read_register_bytes with multiple regcache_raw_read
2465 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2467 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2468 (nto_find_and_open_solib): Likewise.
2469 (nto_init_solib_absolute_prefix): Likewise.
2470 (_initialize_nto_tdep): Fix indentation.
2472 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2474 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2476 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2478 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2480 2003-06-17 Jim Blandy <jimb@redhat.com>
2482 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2484 2003-06-16 Theodore A. Roth <troth@openavr.org>
2486 * avr-tdep.c (avr_extract_return_value): New function.
2487 (avr_gdbarch_init): Set extract_return_value method.
2489 2003-06-16 Andrew Cagney <cagney@redhat.com>
2491 * frame.h (deprecated_get_next_frame_hack): Declare.
2492 * frame.c (legacy_saved_regs_prev_register): Only require
2493 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2494 there are always saved regs.
2495 (deprecated_generic_get_saved_register): Do not require
2496 DEPRECATED_FRAME_INIT_SAVED_REGS.
2497 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2498 use frame ID unwind instead.
2499 (deprecated_get_next_frame_hack): New function.
2501 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2503 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2504 (h8300_push_dummy_call): ...this function. Some minor optimization.
2505 (h8300_push_return_address): Remove.
2506 (h8300_gdbarch_init): Remove calls to
2507 set_gdbarch_deprecated_dummy_write_sp,
2508 set_gdbarch_deprecated_push_arguments and
2509 set_gdbarch_deprecated_push_return_address.
2510 Add call to set_gdbarch_push_dummy_call.
2512 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2514 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2515 (E_PSEUDO_EXR_REGNUM): Ditto.
2516 (h8300_is_argument_spill): Check for instructions moving argument
2517 registers into safe registers.
2518 (h8300_skip_prologue): Check for stm instruction to push registers
2519 used for register variables onto stack.
2520 (gdb_print_insn_h8300): Remove.
2521 (h8300_examine_prologue): Add a comment.
2522 (h8300_register_name): Take pseudo registers into account.
2523 (h8300s_register_name): Ditto.
2524 (h8300sx_register_name): Ditto.
2525 (h8300_print_register): Ditto.
2526 (h8300_print_registers_info): Define "nice" printing order.
2527 (h8300_saved_pc_after_call): Take pseudo registers into account.
2528 (h8300_register_type): Ditto. Return type used for remote connection
2529 when requesting real CCR or EXR register, return actual type when
2530 requesting pseudo CCR or EXR.
2531 (h8300_pseudo_register_read): New function.
2532 (h8300_pseudo_register_write): Ditto.
2533 (h8300_dbg_reg_to_regnum): Ditto.
2534 (h8300s_dbg_reg_to_regnum): Ditto.
2535 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2536 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2537 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2538 set_gdbarch_print_insn architecture dependent.
2539 Call set_gdbarch_pseudo_register_read and
2540 set_gdbarch_pseudo_register_write.
2541 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2543 2003-06-16 Andrew Cagney <cagney@redhat.com>
2545 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2546 * gdbarch.h, gdbarch.c: Re-generate.
2547 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2548 * s390-tdep.c (s390_gdbarch_init): Update.
2549 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2550 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2551 * mips-tdep.c (mips_gdbarch_init): Update.
2552 * mcore-tdep.c (mcore_gdbarch_init): Update.
2553 * cris-tdep.c (cris_gdbarch_init): Update.
2554 * infcall.c (call_function_by_hand): Update.
2555 * ia64-tdep.c (ia64_push_arguments): Update comment.
2556 * frame.c (legacy_get_prev_frame): Do not assume
2557 SAVE_DUMMY_FRAME_TOS_P.
2558 * dummy-frame.c (find_dummy_frame): Update comment.
2560 2003-06-16 Andrew Cagney <cagney@redhat.com>
2562 * regcache.c (do_cooked_read): Do not use register_valid_p.
2564 2003-06-15 Theodore A. Roth <troth@openavr.org>
2566 * avr-tdep.c (avr_register_type): Remove a blank line.
2567 (avr_scan_prologue): Correct some comments.
2569 2003-06-15 Theodore A. Roth <troth@openavr.org>
2571 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2573 Properly scan prologues generated by gcc with the -mcall-prologues
2575 Add code to scan -mcall-prologues for mega devices.
2577 2003-06-15 Theodore A. Roth <troth@openavr.org>
2579 * avr-tdep.c (avr_register_byte): Delete function.
2580 (avr_register_raw_size): Delete function.
2581 (avr_register_virtual_size): Delete function.
2582 (avr_register_virtual_type): Delete function.
2583 (avr_register_type): New function.
2584 (avr_address_to_pointer): Remove unused code.
2585 (avr_read_fp): Need to read FP as two separate bytes due to change to
2586 avr_register_type() usage.
2587 (avr_gdbarch_init): Don't set deprecated_register_size.
2588 Don't set deprecated_register_bytes.
2589 Don't set deprecated_register_byte.
2590 Don't set deprecated_register_raw_size.
2591 Don't set deprecated_max_register_raw_size.
2592 Don't set deprecated_register_virtual_size.
2593 Don't set deprecated_max_register_virtual_size.
2594 Don't set deprecated_register_virtual_type.
2595 Set register_type method.
2597 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2599 * Makefile.in (linux-nat.o): Add rule.
2600 * linux-nat.c: New file.
2601 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2602 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2603 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2604 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2605 * config/arm/linux.mh (NATDEPFILES): Likewise.
2606 * config/i386/linux.mh (NATDEPFILES): Likewise.
2607 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2608 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2609 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2610 * config/mips/linux.mh (NATDEPFILES): Likewise.
2611 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2612 * config/s390/s390.mh (NATDEPFILES): Likewise.
2613 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2615 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2617 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2618 replace out-of-date comment.
2620 2003-06-15 Andrew Cagney <cagney@redhat.com>
2622 * rdi-share/host.h (Fail): Change to a varargs function.
2623 * remote-rdi.c (Fail): Update.
2625 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2627 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2628 (i386_convert_register_p, i386_register_to_value,
2629 i386_register_from_value): Handle types longer than 8 bytes.
2631 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2633 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2634 Move floating-point code to new function in i387-tdep.c.
2635 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2636 New functions containing code moved here from i386-tdep.c.
2637 * i387-tdep.h: Add opaque declaration for `struct type'.
2638 (i387_register_to_value, i387_value_to_register): New prototypes.
2639 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2640 (x86_64_init_abi): Set convert_register_p, register_to_value and
2641 value_to_register here.
2643 2003-06-14 Andrew Cagney <cagney@redhat.com>
2645 * mips-tdep.c (mips_register_to_value): Make static.
2646 (mips_value_to_register): Make static.
2647 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2648 * ia64-tdep.c (ia64_register_raw_size): Make static.
2649 (ia64_register_virtual_size): Make static.
2650 (ia64_register_byte): Make static.
2651 * i387-tdep.c: Include "i387-tdep.h".
2652 (print_387_control_word): Delete function.
2653 (print_387_status_word): Delete function.
2654 (print_387_status_bits): Delete function.
2655 (print_387_control_bits): Delete function.
2656 * Makefile.in (i387-tdep.o): Update dependencies.
2657 * rdi-share/host.h (Fail): Declare.
2658 * remote-rdi.c (Fail): Update to match declaration.
2660 2003-06-14 Andrew Cagney <cagney@redhat.com>
2662 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2663 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2664 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2665 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2666 * README: Delete reference to remote-array.
2667 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2668 (remote-array.o): Delete target.
2669 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2670 * remote-array.c: Delete file.
2672 2003-06-14 Andrew Cagney <cagney@redhat.com>
2673 Mark Kettenis <kettenis@gnu.org>
2675 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2676 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2677 parameter with "frame".
2678 * gdbarch.h, gdbarch.c: Re-generate.
2679 * frame.h (put_frame_register): Declare.
2680 * frame.c (put_frame_register): New function.
2681 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2682 (legacy_register_to_value): Rewrite, use "frame" to get the
2684 (legacy_value_to_register): Rewrite, use "frame" to find the
2685 register's location before storing.
2686 * arch-utils.h (legacy_convert_register_p): Update.
2687 (legacy_register_to_value, legacy_value_to_register): Update.
2688 * findvar.c (value_from_register): Rewrite, eliminate use of
2689 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2690 "frame" to REGISTER_TO_VALUE.
2691 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2692 lval_reg_frame_relative + lval_register branch of the switch. Do
2693 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2694 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2695 I386_EDI_REGNUM): New defines.
2696 (i386_next_regnum, i386_convert_register_p,
2697 i386_register_to_value, i386_value_to_register): New functions.
2698 (i386_register_convertible, i386_register_convert_to_virtual,
2699 i386_convert_to_raw): Remove functions.
2700 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2701 value_to_register instead of register_convertible,
2702 register_convert_to_virtual and register_convert_to_raw.
2703 * mips-tdep.c (mips_convert_register_p): New function.
2704 (mips_value_to_register): Replace mips_register_convert_from_type.
2705 (mips_register_to_value): Replace mips_register_convert_to_type.
2706 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2708 * alpha-tdep.c (alpha_convert_register_p): Update.
2709 (alpha_value_to_register): Update, store the register.
2710 (alpha_register_to_value): Update, fetch the register.
2712 2003-06-14 Theodore A. Roth <troth@openavr.org>
2714 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2715 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2716 Don't set deprecated_call_dummy_words.
2717 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2718 Don't set remote_translate_xfer_address.
2719 (avr_io_reg_read_command): Remove commented out debug printf.
2722 2003-06-14 Theodore A. Roth <troth@openavr.org>
2724 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2725 causes gdb to seg fault.
2727 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2729 * sparc-nat.c (fetch_inferior_registers): Correct
2730 a reference to "registers".
2732 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2734 * Makefile.in (exc_request_U_h): Define
2735 (exc_request_S_h): Likewise.
2736 (msg_reply_S_h): Likewise.
2737 (msg_U_h): Likewise.
2738 (notify_S_h): Likewise.
2739 (process_reply_S_h): Likewise.
2740 (gnu-nat.o): Depend on gdb_obstack_h
2741 * gnu-nat.c: Include "gdb_obstack.h".
2743 2003-06-13 Andrew Cagney <cagney@redhat.com>
2745 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2746 * gdbarch.h, gdbarch.c: Re-generate.
2748 2003-06-13 Andrew Cagney <cagney@redhat.com>
2750 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2751 when deprecated REGISTER macros can be deleted.
2752 * gdbarch.h, gdbarch.c: Re-generate.
2754 2003-06-13 Jim Blandy <jimb@redhat.com>
2756 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2757 Linux entry point symbols for _dl_debug_state, too.
2759 2003-06-13 Andrew Cagney <cagney@redhat.com>
2761 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2762 available, do not use the FP register, and always save the TOS.
2763 * dummy-frame.c (dummy_frame_this_id): Do not assert
2764 SAVE_DUMMY_FRAME_TOS.
2765 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2766 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2767 (i386_push_dummy_call): Add 8 to the returned SP.
2768 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2769 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2770 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2771 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2772 (x86_64_push_dummy_call): Return "sp + 16".
2773 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2774 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2775 save_dummy_frame_tos.
2777 2003-06-13 Jim Blandy <jimb@redhat.com>
2779 * frv-tdep.c (frv_use_struct_convention): Delete static
2780 declaration for function deleted in my change of 2003-06-12.
2782 2003-06-13 Theodore A. Roth <troth@openavr.org>
2784 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2785 (avr_pointer_to_address): Shift code addrs left 1 bit.
2786 (avr_convert_from_func_ptr_addr): Delete function since operation is
2787 better handled by avr_address_to_pointer and avr_pointer_to_address.
2788 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2790 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2792 From Kelley Cook <kelleycook@wideopenwest.com>:
2793 * configure.host: Accept i[34567]86 variants.
2794 * configure.tgt: Likewise.
2795 * nlm/configure.in: Likewise.
2796 * nlm/configure: Regenerated.
2798 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2800 * arm-tdep.c (solib-svr4.h): Dont' include it.
2801 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2802 * arm-linux-tdep.c: ... here. Make static.
2803 (arm_linux_init_abi): Register it.
2804 (solib-svr4.h): Include it.
2805 * Makefile.in: Update dependencies.
2806 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2807 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2809 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2811 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2812 indicate registers used for return values.
2813 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2814 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2816 (h8300_init_extra_frame_info): Ditto.
2817 (h8300_frame_locals_address): Removed.
2818 (h8300_frame_args_address): Removed.
2819 (h8300_extract_return_value): Use new regcache structure. Only care
2821 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2822 (h8300_store_return_value): Use new regcache structure. Only care
2824 (h8300h_store_return_value): Same function for 32 bit CPUs.
2825 (h8300_store_struct_return): Removed.
2826 (h8300_extract_struct_value_address): Use new regcache structure.
2827 (h8300h_extract_struct_value_address): Removed.
2828 (h8300_push_dummy_code): New function.
2829 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2830 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2831 set_gdbarch_store_return_value architecture dependent.
2832 Call set_gdbarch_push_dummy_code and
2833 set_gdbarch_extract_struct_value_address.
2834 Remove calls to set_gdbarch_frame_args_address,
2835 set_gdbarch_frame_locals_address,
2836 set_gdbarch_deprecated_store_struct_return,
2837 set_gdbarch_deprecated_extract_return_value,
2838 set_gdbarch_deprecated_extract_struct_value_address,
2839 set_gdbarch_deprecated_call_dummy_words and
2840 set_gdbarch_deprecated_sizeof_call_dummy_words.
2842 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2844 * h8300-tdep.c (h8300_register_byte): Remove.
2845 (h8300h_register_byte): Remove.
2846 (h8300_register_virtual_type): Remove. Substitute by...
2847 (h8300_register_type): New function.
2848 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2849 (h8300h_extract_struct_value_address): Ditto.
2850 (h8300_gdbarch_init): Drop calls to
2851 set_gdbarch_deprecated_register_byte and
2852 set_gdbarch_deprecated_register_virtual_type.
2853 Add call to set_gdbarch_register_type.
2855 2003-06-13 Andrew Cagney <cagney@redhat.com>
2857 * gdbarch.sh: Update comments on registers.
2858 (deprecated_register_byte): Rename register_byte.
2859 (deprecated_register_raw_size): Rename register_raw_size.
2860 (deprecated_register_virtual_size): Rename register_virtual_size.
2861 (deprecated_register_virtual_type): Rename register_virtual_type.
2862 * gdbarch.h, gdbarch.c: Re-generate.
2863 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2864 * vax-tdep.c (vax_gdbarch_init): Update.
2865 * v850-tdep.c (v850_gdbarch_init): Update.
2866 * sparc-tdep.c (sparc_gdbarch_init): Update.
2867 * sh-tdep.c (sh_gdbarch_init): Update.
2868 * s390-tdep.c (s390_gdbarch_init): Update.
2869 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2870 * ns32k-tdep.c: Update.
2871 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2872 * mips-tdep.c (mips_gdbarch_init): Update.
2873 * mcore-tdep.c (mcore_gdbarch_init): Update.
2874 * m68k-tdep.c (m68k_gdbarch_init): Update.
2875 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2876 * ia64-tdep.c (ia64_gdbarch_init): Update.
2877 * hppa-tdep.c (hppa_gdbarch_init): Update.
2878 * h8300-tdep.c (h8300_gdbarch_init): Update.
2879 * frv-tdep.c (frv_gdbarch_init): Update.
2880 * cris-tdep.c (cris_gdbarch_init): Update.
2881 * avr-tdep.c (avr_gdbarch_init): Update.
2882 * alpha-tdep.c (alpha_gdbarch_init): Update.
2883 * arm-tdep.c (arm_gdbarch_init): Update.
2885 2003-06-13 Andrew Cagney <cagney@redhat.com>
2887 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2888 mips_o32_use_struct_convention with always_use_struct_convention.
2890 2003-06-12 David Carlton <carlton@kealia.com>
2892 * cp-namespace.c (cp_set_block_scope): Comment out
2893 processing_has_namespace_info branch.
2895 2003-06-12 Jim Blandy <jimb@redhat.com>
2897 Recognize and skip 64-bit PowerPC Linux linkage functions.
2898 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2899 insn_pattern, insns_match_pattern, d_field, ds_field): New
2900 functions, macros, and types for working with PPC instructions.
2901 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2902 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2903 ppc64_skip_trampoline_code): New functions, variables, and macros
2904 for recognizing and skipping linkage functions.
2905 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2906 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2908 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2909 register offsets for both the 32- and 64-bit interfaces.
2911 Actually finish the job started by my change of 2003-05-29.
2912 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2913 other #definition of this.
2914 (ppc_linux_skip_trampoline_code): Remove declaration.
2915 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2917 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2920 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2921 'long' on ppc64-*-linux*.
2923 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2924 isn't #defined, assume the register doesn't exist: act as if
2925 tdep->ppc_mq_regnum were -1.
2927 * configure.host, configure.tgt: Add entries for
2928 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2930 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2933 * arch-utils.c (always_use_struct_convention): New function.
2934 * arch-utils.h (always_use_struct_convention): New prototype.
2935 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2936 (alpha_gdbarch_init): Register always_use_struct_convention,
2937 instead of alpha_use_struct_convention.
2938 * cris-tdep.c (cris_use_struct_convention): Delete.
2939 (cris_gdbarch_init): Register always_use_struct_convention,
2940 instead of cris_use_struct_convention.
2941 * frv-tdep.c (frv_use_struct_convention): Delete.
2942 (frv_gdbarch_init): Register always_use_struct_convention,
2943 instead of frv_use_struct_convention.
2944 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2945 (h8300_gdbarch_init): Register always_use_struct_convention,
2946 instead of h8300_use_struct_convention.
2947 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2948 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2949 instead of mips_o32_use_struct_convention.
2951 2003-06-12 Andrew Cagney <cagney@redhat.com>
2953 * wince.c: Include "mips-tdep.h".
2954 * mips-tdep.h (mips_next_pc): Declare.
2955 * mcore-tdep.c: Make more local functions static.
2956 * Makefile.in (wince.o): Update dependencies.
2958 2003-06-12 David Carlton <carlton@kealia.com>
2960 * symtab.c (lookup_symbol_aux_minsyms): Replace
2961 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2962 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2963 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2964 SYMBOL_NATURAL_NAME.
2966 2003-06-12 Andreas Schwab <schwab@suse.de>
2968 * Makefile.in (tuiDisassem.o): Update dependencies.
2970 2003-06-12 David Carlton <carlton@bactrian.org>
2972 * symtab.h: Delete declaration of make_symbol_overload_list.
2973 Add declaration of lookup_partial_symbol.
2974 * symtab.c (remove_params): Move to cp-support.c.
2975 (overload_list_add_symbol, make_symbol_overload_list)
2976 (sym_return_val_size, sym_return_val_index): Ditto.
2977 (lookup_partial_symbol): Make extern.
2978 * cp-support.h: Add declaration of make_symbol_overload_list.
2979 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2980 symtab.h, and block.h.
2981 (remove_params): Move here from symtab.c.
2982 (overload_list_add_symbol, make_symbol_overload_list)
2983 (sym_return_val_size, sym_return_val_index): Ditto.
2984 * valops.c: Include cp-support.h.
2985 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2986 frame_h, and block_h.
2987 (valops.o): Depend on cp_support_h.
2989 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2991 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2992 substitute by NUM_REGS throughout.
2993 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2994 (h8300s_register_name): New function for H8S registers.
2995 (h8300sx_register_name): Ditto for H8SX registers.
2996 (h8300_print_register): Revise register printing, avoid depending
2998 (h8300_register_byte): Only care for H8/300 registers.
2999 (h8300h_register_byte): New function for any other architecture.
3000 (h8300_register_raw_size): Remove.
3001 (h8300_register_virtual_type): Revise to return actually useful
3003 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3004 (h8300h_extract_struct_value_address): New function for any other
3006 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3007 set_gdbarch_register_name, set_gdbarch_register_byte,
3008 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3009 Remove calls to set_gdbarch_deprecated_register_size,
3010 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3011 set_gdbarch_deprecated_max_register_raw_size,
3012 set_gdbarch_register_virtual_size and
3013 set_gdbarch_deprecated_max_register_virtual_size entirely.
3014 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3015 set_gdbarch_long_double_bit.
3017 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3019 * doublest.c (convert_doublest_to_floatformat): When dealing
3020 with the implied integer bit, only alter mant_bits if we are
3021 processing a full 32 bits of mantissa.
3023 2003-06-11 David Carlton <carlton@bactrian.org>
3025 * dictionary.h: New.
3026 * dictionary.c: New.
3027 * block.h: Add opaque declaration for struct dictionary.
3028 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3030 (BLOCK_DICT): New macro.
3031 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3032 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3034 (ALL_BLOCK_SYMBOLS): Update definition.
3035 * Makefile.in (SFILES): Add dictionary.c.
3036 (dictionary_h): New.
3037 (COMMON_OBS): Add dictionary.o.
3038 (dictionary.o): New.
3039 (ada-lang.o): Depend on dictionary_h.
3040 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3041 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3042 (mi-cmd-stack.o): Ditto.
3043 (gdbtk-cmds.o): Update dependencies.
3044 (gdbtk-stack.o): Ditto.
3045 * ada-lang.c: Include dictionary.h.
3046 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3047 (fill_in_ada_prototype, debug_print_block): Ditto.
3048 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3049 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3051 * mdebugread.c: Include dictionary.h.
3052 (struct parse_stack): Delete 'maxsyms' member.
3053 (parse_symbol): Update calls to new_block. Delete calls to
3054 shrink_block. Use dictionary methods.
3055 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3056 Update calls to new_symtab. Don't maintain maxsyms data.
3057 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3058 (add_symbol): Just call dict_add_symbol.
3059 (new_symtab): Delete 'maxsyms' argument.
3060 (new_symtab): Update calls to new_block.
3061 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3062 (shrink_block): Delete function.
3063 (fixup_sigtramp): Update call to new_block. Add symbol via
3065 * jv-lang.c: Include dictionary.h.
3066 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3067 appropriately. Set class_symtab->free_func. Make sure the
3068 blockvector is big enough to hold two blocks.
3069 (add_class_symtab_symbol): Use dictionary methods.
3070 (free_class_block): New function.
3071 (type_from_class): Replace explicit iteration by
3073 * symtab.h (struct symtab): Replace 'free_ptr' method by
3075 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3077 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3079 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3080 Include dictionary.h.
3081 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3082 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3084 * objfiles.c: Include dictionary.h.
3085 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3086 * buildsym.c: Include dictionary.h.
3087 (finish_block): Use dictionary methods.
3088 (end_symtab): Set free_func to NULL, not free_ptr.
3089 * tracepoint.c: Include dictionary.h.
3090 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3091 (scope_info): Ditto.
3092 * stack.c: Include dictionary.h.
3093 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3094 (print_block_frame_labels, print_frame_arg_vars)
3095 (print_frame_args): Ditto.
3096 * symmisc.c (free_symtab_block): Use dictionary methods.
3097 (dump_symtab): Ditto.
3098 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3099 Include dictionary.h.
3100 * symfile.h: Delete declarations of sort_block_syms,
3102 * symfile.c (sort_block_syms): Delete.
3103 (sort_symtab_syms): Delete.
3104 * symtab.c: Include dictionary.h.
3105 (lookup_block_symbol): Use dictionary iterators.
3106 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3107 (search_symbols, make_symbol_completion_list): Ditto.
3108 (make_symbol_overload_list): Ditto.
3109 * valops.c (value_of_local): Use dict_empty.
3110 Include dictionary.h.
3112 2003-06-11 J. Brobecker <brobecker@gnat.com>
3114 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3116 2003-06-11 David Carlton <carlton@bactrian.org>
3118 * block.h (BLOCK_SHOULD_SORT): Delete.
3119 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3121 * ada-lang.c (ada_add_block_symbols): Ditto.
3122 * symfile.c (sort_block_syms): Delete.
3123 (sort_symtab_syms): Ditto.
3124 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3126 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3127 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3128 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3129 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3130 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3131 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3132 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3134 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3136 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3139 2003-06-11 Andrew Cagney <cagney@redhat.com>
3141 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3142 REGISTER_CONVERTIBLE.
3143 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3144 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3145 * gdbarch.h, gdbarch.c: Re-generate.
3146 * arch-utils.h (deprecated_register_convertible_not): Rename
3147 generic_register_convertible_not.
3148 * arch-utils.c (deprecated_register_convertible_not): Rename
3149 generic_register_convertible.
3150 (legacy_convert_register_p, legacy_register_to_value): Update.
3151 * sh-tdep.c (sh64_push_arguments): Update.
3152 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3153 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3154 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3155 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3156 * arch-utils.c (legacy_value_to_register): Update.
3157 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3158 (rs6000_register_convert_to_raw): Make parameter "from" const.
3159 * mips-tdep.c (mips_gdbarch_init): Update.
3160 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3161 * infcmd.c (default_print_registers_info): Update.
3162 * ia64-tdep.c (ia64_gdbarch_init): Update.
3163 (ia64_register_convert_to_raw): Make parameter "from" const.
3164 * i386-tdep.c (i386_gdbarch_init): Update.
3165 (i386_register_convert_to_raw): Update.
3167 2003-06-11 Andrew Cagney <cagney@redhat.com>
3169 * remote-fileio.c: Include "remote-fileio.h".
3170 * Makefile.in (remote-fileio.o): Update dependencies.
3171 (remote_fileio_h): Fix typo.
3173 2003-06-11 Andrew Cagney <cagney@redhat.com>
3175 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3176 (xstormy16_save_dummy_frame_tos): Make static.
3177 (_initialize_xstormy16_tdep): Add declaration.
3178 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3179 * v850-tdep.c: Make local functions static.
3180 (_initialize_v850_tdep): Add declaration.
3181 * sparc-tdep.c: Make local functions static.
3182 (_initialize_sparc_tdep): Add declaration.
3183 * sh-tdep.c: Make local functions static.
3184 (_initialize_sh_tdep): Add declaration.
3185 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3186 * s390-tdep.c: Make local functions static.
3187 (_initialize_s390_tdep): Add declaration.
3188 * dbxread.c (find_stab_function_addr): Make static.
3189 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3190 * ocd.c (_initialize_remote_ocd): Add declaration.
3191 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3192 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3193 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3194 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3195 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3196 * remote-array.c (_initialize_array): Add declaration.
3197 (_initialize_remote_monitors): Add declaration.
3198 * remote-mips.c: Make local functions static.
3199 (_initialize_remote_mips): Add declaration.
3200 * mcore-tdep.c: Make all local functions static.
3201 (_initialize_mcore_tdep): Add declaration.
3202 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3203 * abug-rom.c (_initialize_abug_rom): Add declaration.
3204 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3205 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3206 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3207 * remote-est.c (_initialize_est): Add declaration.
3208 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3209 (m68hc11_call_dummy_address): Make static.
3210 * ia64-tdep.c: Make local functions static.
3211 (_initialize_ia64_tdep): Add declaration.
3212 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3213 * monitor.c (monitor_wait_filter): Make static.
3214 (_initialize_remote_monitors): Add declaration.
3215 * remote-hms.c (_initialize_remote_hms): Add declaration.
3216 * remote-e7000.c (fetch_regs_from_dump): Make static.
3217 (expect_n): Make static.
3218 (_initialize_remote_e7000): Add declaration.
3219 * ser-e7kpc.c: Always include "defs.h".
3220 (_initialize_ser_e7000pc): Add declaration.
3221 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3222 * cris-tdep.c: Make all but one function static.
3223 (_initialize_cris_tdep): Add declaration.
3224 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3225 * solib.c (update_solib_list): Make static.
3226 (_initialize_solib): Add declaration.
3227 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3228 (_initialize_avr_tdep): Add declaration.
3229 * remote-rdi.c (voiddummy): Make static.
3230 (_initialize_remote_rdi): Add declaration.
3231 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3232 * remote-rdp.c (send_rdp): Make static.
3233 (_initialize_remote_rdp): Add declaration.
3234 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3236 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3238 * remote-fileio.c: Make ari happy.
3240 2003-06-10 J. Brobecker <brobecker@gnat.com>
3242 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3243 fetching the trailing bytes of the buffer we are about to write.
3245 2003-06-10 Andrew Cagney <cagney@redhat.com>
3247 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3248 * Makefile.in (remote-fileio.o): Update dependencies.
3249 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3250 include <setjmp.h>, or <sys/types.h> conditional on USG.
3251 (remote_fio_jmp_buf): Delete global variable.
3253 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3254 Martin M. Hunt <hunt@redhat.com>
3256 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3257 (SFILES): Add remote-fileio.c.
3258 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3259 dependencies for building remote.o.
3260 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3261 * remote-fileio.h: New header file defining remote File-I/O interface.
3262 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3263 static storage class.
3264 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3266 (_initialize_remote): Call initialize_remote_fileio().
3267 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3268 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3269 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3270 (captured_main): Initialize new ui_files.
3271 * ui-file.c: Add read and fgets input functions.
3272 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3273 (null_file_read): New function.
3274 (ui_file_read): New function.
3275 (set_ui_file_read): New function.
3276 (stdio_file_read): New function.
3277 * ui-file.h: New type ui_file_read_ftype.
3278 (set_ui_file_read): Declare.
3279 (ui_file_read): Declare.
3281 2003-06-09 Andrew Cagney <cagney@redhat.com>
3283 * frame.h (deprecated_unwind_get_saved_register): Rename
3284 generic_unwind_get_saved_register, update comments.
3285 * mips-tdep.c (mips_get_saved_register): Update.
3286 * frame.c (deprecated_unwind_get_saved_register): Update.
3288 2003-06-09 Andrew Cagney <cagney@redhat.com>
3290 * vax-tdep.c (vax_frame_locals_address): Delete function.
3291 (vax_gdbarch_init): Do not set frame_locals_address.
3292 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3293 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3294 * s390-tdep.c (s390_frame_args_address): Delete function.
3295 (s390_gdbarch_init): Do not set frame_args_address or
3296 frame_locals_address.
3297 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3298 (ns32k_gdbarch_init): Do not set frame_locals_address.
3299 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3300 (hppa_frame_locals_address): Delete function.
3301 (hppa_gdbarch_init): Do not set frame_args_address, or
3302 frame_locals_address.
3303 * arm-tdep.c (arm_frame_args_address): Delete.
3304 (arm_frame_locals_address): Delete.
3305 (arm_gdbarch_init): Do not set frame_args_address, or
3306 frame_locals_address.
3308 2003-06-09 Andrew Cagney <cagney@redhat.com>
3310 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3311 * gdbarch.h, gdbarch.c: Re-generate.
3312 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3313 * arch-utils.c (frame_num_args_unknown): Delete function.
3314 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3315 (frame_info): Use FRAME_NUM_ARGS_P.
3316 * arm-tdep.c (arm_frame_num_args): Delete function.
3317 (arm_gdbarch_init): Do not set frame_num_args.
3318 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3319 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3320 (hppa_gdbarch_init): Do not set frame_num_args.
3321 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3323 frame_num_args to default frame_num_args_unknown.
3324 * v850-tdep.c (v850_gdbarch_init): Ditto.
3325 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3326 * sh-tdep.c (sh_gdbarch_init): Ditto.
3327 * s390-tdep.c (s390_gdbarch_init): Ditto.
3328 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3330 * mips-tdep.c (mips_gdbarch_init): Ditto.
3331 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3332 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3333 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3334 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3335 * i386-tdep.c (i386_gdbarch_init): Ditto.
3336 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3337 * frv-tdep.c (frv_gdbarch_init): Ditto.
3338 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3339 * cris-tdep.c (cris_gdbarch_init): Ditto.
3340 * avr-tdep.c (avr_gdbarch_init): Ditto.
3341 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3343 2003-06-09 Andrew Cagney <cagney@redhat.com>
3345 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3346 (print_frame_args): Moved to "stack.c".
3347 * stack.c: Include "gdb_assert.h".
3348 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3349 (print_frame_args): Moved from "printcmd.c".
3350 * frame.h (print_frame_args): Delete declaration.
3351 * Makefile.in (stack.o): Update dependencies.
3353 2003-06-08 Andrew Cagney <cagney@redhat.com>
3355 * frame.c (get_prev_frame): Remove reference to
3356 frame_args_address_correct in comments.
3357 * frame-base.c (default_frame_args_address): Delete code
3358 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3359 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3360 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3361 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3362 (vax_frame_args_address_correct): Delete declaration.
3364 2003-06-08 Andrew Cagney <cagney@redhat.com>
3366 * gdbarch.sh (UNWIND_SP): Add.
3367 * gdbarch.h, gdbarch.c: Re-generate.
3368 * frame.c (frame_sp_unwind): New function.
3369 (get_frame_sp): New function.
3370 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3371 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3372 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3374 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3375 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3377 2003-06-08 Andrew Cagney <cagney@redhat.com>
3379 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3382 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3383 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3384 * config/m68k/tm-sun3.h: Update.
3385 * config/m68k/tm-m68klynx.h: Update.
3386 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3388 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3389 trad_frame". Update comments.
3390 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3391 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3392 (trad_frame_register_value, trad_frame_prev_register): Update.
3394 2003-06-08 Andrew Cagney <cagney@redhat.com>
3396 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3397 from GCC's acinclude.m4.
3398 * configure.in: Check for getopt's delcaration.
3399 * aclocal.m4, config.in, configure: Re-generate.
3400 * main.c (error_init): Delete declaration.
3401 * defs.h (error_init): Declare.
3402 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3403 (rs6000_convert_from_func_ptr_addr): Make static.
3404 (_initialize_rs6000_tdep): Add declaration.
3405 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3406 (show_commands, set_verbose, show_history): Delete declaration.
3407 * top.h (set_verbose): Add declaration.
3408 (show_history, set_history, show_commands): Add declaration.
3409 (do_restore_instream_cleanup): Add declaration.
3410 * objc-lang.c (specialcmp): Make static.
3411 (print_object_command): Make static.
3412 (find_objc_msgsend): Make static.
3413 (find_objc_msgcall_submethod_helper): Make static.
3414 (find_objc_msgcall_submethod): Make static.
3415 (_initialize_objc_language): Add declaration.
3416 (find_implementation_from_class): Make static.
3417 (find_implementation): Make static.
3418 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3419 * objc-lang.h (lookup_struct_typedef): Add declaration.
3420 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3421 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3422 (do_restore_user_call_depth): Make static.
3423 (do_restore_instream_cleanup): Delete declaration.
3424 (dont_repeat): Delete declaration.
3425 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3426 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3427 * reggroups.c (_initialize_reggroup): Add declaration.
3428 * cp-support.c (_initialize_cp_support): Add declaration.
3429 * cp-abi.c (_initialize_cp_abi): Add declaration.
3430 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3431 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3432 (_initialize_gnu_v3_abi): Add declaration.
3433 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3434 (_initialize_gnu_v2_abi): Add declaration.
3435 * frame-base.c (_initialize_frame_base): Add declaration.
3436 * doublest.c (floatformat_from_length): Make static.
3437 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3438 * frame.c (create_sentinel_frame): Make static.
3439 (_initialize_frame): Add declaration.
3440 * top.c (do_catch_errors): Make static.
3441 (gdb_rl_operate_and_get_next_completion): Make static.
3442 * typeprint.c: Include "typeprint.h".
3443 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3444 (sentinel_frame_this_id): Make static.
3445 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3446 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3447 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3448 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3449 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3450 * maint.c (maintenance_print_architecture): Make static.
3451 * signals/signals.c (_initialize_signals): Add declaration.
3452 * std-regs.c (_initialize_frame_reg): Add declaration.
3453 * jv-exp.y (push_variable): ISO C definition.
3454 (push_qualified_expression_name): Ditto.
3455 * memattr.c (_initialize_mem): Add declaration.
3456 * remote.c (remote_check_watch_resources): Make static.
3457 (remote_stopped_by_watchpoint): Make static.
3458 (remote_stopped_data_address): Make static.
3459 * d10v-tdep.c (nr_dmap_regs): Make static.
3460 (a0_regnum): Make static.
3461 (d10v_frame_unwind_cache): Make static.
3462 (d10v_frame_p): Make static.
3463 * osabi.c (show_osabi): Make static.
3464 (_initialize_gdb_osabi): Add extern declaration.
3465 * gdbtypes.c (make_qualified_type): Make static.
3466 (safe_parse_type): Make static.
3467 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3468 * macrotab.c (macro_bcache_free): Make static.
3469 * interps.c (interp_set_quiet): Make static.
3470 (interpreter_exec_cmd): Make static.
3471 * stack.h (select_frame_command): New file.
3472 * stack.c: Include "stack.h".
3473 (select_frame_command_wrapper): Delete function.
3474 (select_frame_command): Make global.
3475 * infcall.c: Include "infcall.h".
3476 * linespec.c: Include "linespec.h".
3477 * symfile.c (sections_overlap): Make static.
3478 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3479 * charset.c (_initialize_charset): Add missing prototype.
3480 * regcache.c (init_legacy_regcache_descr): Make static.
3481 (do_regcache_xfree): Make static.
3482 (regcache_xfer_part): Make static.
3483 (_initialize_regcache): Add missing prototype.
3484 * breakpoint.c (parse_breakpoint_sals): Make static.
3485 (breakpoint_sals_to_pc): Make static.
3486 * interps.h (clear_interpreter_hooks): ISO C declaration.
3487 * Makefile.in (stack_h): Define.
3488 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3489 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3491 2003-06-08 Andrew Cagney <cagney@redhat.com>
3493 * Makefile.in (d10v-tdep.o): Update dependencies.
3494 (SFILES): Add trad-frame.c.
3495 (trad_frame_h): Define.
3496 (COMMON_OBS): Add trad-frame.o.
3497 (trad-frame.o): Specify dependencies.
3498 * d10v-tdep.c: Include "trad-frame.h".
3499 (saved_regs_unwinder): Delete function.
3500 (d10v_frame_prev_register): Use trad_frame_prev_register.
3501 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3502 trad_frame", delete "regs" and "prev_sp".
3503 (prologue_find_regs): Use trad-frame.
3504 * trad-frame.h, trad-frame.c: New files.
3506 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3508 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3510 2003-06-07 Adam Fedor <fedor@gnu.org>
3512 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3513 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3514 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3515 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3516 resolve_msgsend_super, resolve_msgsend_super_stret):
3519 2003-06-07 Andrew Cagney <cagney@redhat.com>
3521 * symfile.h: Re-indent, clean up comments.
3523 2003-06-07 Andrew Cagney <cagney@redhat.com>
3525 * inferior.h (deprecated_write_sp): Replace
3526 generic_target_write_sp.
3527 * regcache.c (deprecated_write_sp): Replace
3528 generic_target_write_sp.
3529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3530 * vax-tdep.c (vax_gdbarch_init): Update.
3531 * v850-tdep.c (v850_gdbarch_init): Update.
3532 * sparc-tdep.c (sparc_gdbarch_init): Update.
3533 * sh-tdep.c (sh_gdbarch_init): Update.
3534 * s390-tdep.c (s390_gdbarch_init): Update.
3535 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3536 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3537 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3538 * mcore-tdep.c (mcore_gdbarch_init): Update.
3539 * m68k-tdep.c (m68k_gdbarch_init): Update.
3540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3541 * ia64-tdep.c (ia64_gdbarch_init): Update.
3542 * h8300-tdep.c (h8300_gdbarch_init): Update.
3543 * frv-tdep.c (frv_gdbarch_init): Update.
3544 * cris-tdep.c (cris_gdbarch_init): Update.
3545 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3547 2003-06-07 Andrew Cagney <cagney@redhat.com>
3549 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3550 Assert that PC_REGNUM is valid.
3551 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3553 2003-06-07 Andrew Cagney <cagney@redhat.com>
3555 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3556 * gdbarch.h, gdbarch.c: Regenerate.
3557 * mn10300-tdep.c: Include "gdb_assert.h".
3558 (mn10300_read_fp): New function.
3559 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3560 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3561 * ia64-tdep.c: Include "gdb_assert.h".
3562 (ia64_read_fp): New function.
3563 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3564 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3565 * regcache.c (generic_target_read_sp): Delete function.
3566 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3567 * inferior.h (generic_target_read_sp): Delete declaration.
3568 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3569 generic_target_read_sp.
3570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3571 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3572 * sh-tdep.c (sh_gdbarch_init): Ditto.
3573 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3574 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3576 2003-06-07 Andrew Cagney <cagney@redhat.com>
3578 * gdbarch.sh: Comment each field of startup_gdbarch.
3579 * gdbarch.h, gdbarch.c: Re-generate.
3581 2003-06-07 Andrew Cagney <cagney@redhat.com>
3583 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3584 * gdbarch.h, gdbarch.c: Re-generate.
3585 * regcache.c: Update comments on read_pc et.al.
3586 (generic_target_read_pc): Delete function.
3587 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3588 * inferior.h (generic_target_read_pc): Delete declaration.
3589 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3590 generic_target_read_pc.
3591 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3592 * sh-tdep.c (sh_gdbarch_init): Ditto.
3593 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3596 2003-06-07 Andrew Cagney <cagney@redhat.com>
3598 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3599 "index" with "special_local_sect". Use strcmp instead of STREQ.
3600 Append period to coments.
3602 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3604 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3605 (elfstab_offset_sections): Likewise.
3606 * gdb-stabs.h (stab_section_info): Likewise.
3607 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3608 * objfiles.c (objfile_relocate): Likewise.
3609 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3610 * remote.c (get_offsets): Likewise.
3611 (remote_cisco_objfile_relocate): Likewise.
3612 * somread.c (som_symfile_offsets): Likewise.
3613 * symfile.c (alloc_section_addr_info): New function.
3614 (build_section_addr_info_from_section_tab): Use it.
3615 (free_section_addr_info): Adjust.
3616 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3617 (syms_from_objfile): Allocate local_addr dynamically.
3618 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3620 (add_symbol_file_command): Allocate sect_opts dynamically.
3621 (reread_symbols): Avoid use of SECT_OFF_MAX.
3622 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3623 (alloc_section_addr_info): Declare it.
3624 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3625 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3627 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3629 2003-06-06 Andrew Cagney <cagney@redhat.com>
3631 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3632 (d10v_frame_unwind_cache): Do not set "return_pc".
3634 2003-06-06 Michael Snyder <msnyder@redhat.com>
3636 * h8300-tdep.c: Make tidy (long lines).
3638 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3640 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3641 to regcache_collect().
3643 2003-06-05 J. Brobecker <brobecker@gnat.com>
3645 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3646 pc_in_sigtramp multiarch method.
3647 (hppa_hpux_som_init_abi): Use it.
3648 (hppa_hpux_elf_init_abi): Likewise.
3649 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3650 macro has been multiarched.
3651 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3652 macro here, as hppa64 isn't multiarched yet.
3654 2003-06-05 Andrew Cagney <cagney@redhat.com>
3656 * Makefile.in (value_h): Add $(frame_h).
3657 * value.h: Include "frame.h".
3658 (struct value): Replace "frame_addr" with "frame_id".
3659 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3660 * values.c (allocate_value): Use VALUE_FRAME_ID.
3661 (value_copy): Use VALUE_FRAME_ID.
3662 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3663 * valops.c (value_assign): Update. Use frame_find_by_id.
3665 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3667 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3670 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3672 * thread-db.c (check_event): For create/death event breakpoints,
3673 loop through all messages to ensure that we read the message
3674 corresponding to the breakpoint we are at.
3676 2003-06-04 Michael Snyder <msnyder@redhat.com>
3678 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3680 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3682 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3683 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3684 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3685 when handling .eh_frame sections.
3687 2003-06-04 J. Brobecker <brobecker@gnat.com>
3689 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3690 prepare_to_proceed procedure instead of the hppa-specific one.
3691 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3693 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3695 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3696 * config.in: Regenerated.
3697 * configure.in: Add test for syscall function and check for
3698 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3699 * configure: Regenerated.
3700 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3702 (kill_lwp): New function that uses tkill syscall or
3703 uses kill, depending on whether threading model is nptl or not.
3704 All callers of kill() changed to use kill_lwp().
3705 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3706 see if all threads have already exited in the nptl model.
3707 (stop_and_resume_callback): New callback function used by the
3708 lin_lwp_wait thread exit handling code.
3709 (stop_wait_callback): Check for threads already having exited and
3710 delete such threads fromt the lwp list when discovered.
3711 (stop_callback): Don't assert retcode of kill call.
3713 Roland McGrath <roland@redhat.com>
3714 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3717 2003-06-03 Richard Henderson <rth@redhat.com>
3719 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3720 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3721 (alpha_sigtramp_frame_prev_register): Likewise.
3722 (alpha_heuristic_frame_prev_register): Likewise.
3723 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3725 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3726 alpha-specific register id names.
3727 (alpha_mdebug_frame_unwind_cache): Likewise.
3728 (alpha_mdebug_frame_prev_register): Likewise.
3730 2003-06-03 Richard Henderson <rth@redhat.com>
3732 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3733 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3734 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3735 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3737 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3738 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3739 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3741 * alpha-linux-tdep.c: Remove unnecessary includes.
3742 * Makefile.in (alpha-linux-tdep.o): Update.
3744 2003-06-03 Richard Henderson <rth@redhat.com>
3746 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3747 (alphabsd_fill_fpreg): Likewise.
3749 2003-06-03 J. Brobecker <brobecker@gnat.com>
3751 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3752 references to struct frame_info fields by calls to the equivalent
3753 accessors. Necessary now that frame_info is opaque.
3755 2003-06-03 J. Brobecker <brobecker@gnat.com>
3757 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3758 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3759 structure, field no longer exists.
3761 2003-06-03 J. Brobecker <brobecker@gnat.com>
3763 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3764 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3766 2003-06-03 J. Brobecker <brobecker@gnat.com>
3768 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3769 references to struct frame_info fields by calls to the equivalent
3770 accessors. Necessary now that frame_info is opaque.
3772 2003-06-03 J. Brobecker <brobecker@gnat.com>
3774 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3775 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3776 structure, field no longer exists.
3778 2003-06-03 Theodore A. Roth <troth@openavr.org>
3780 * remote.c (init_remote_state): Compute sizeof_g_packet by
3781 accumulation of the size of all registers instead of blindly using
3782 DEPRECATED_REGISTER_BYTES.
3784 2003-06-03 Michael Snyder <msnyder@redhat.com>
3786 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3787 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3790 2003-06-03 J. Brobecker <brobecker@gnat.com>
3792 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3793 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3795 2003-06-03 Andrew Cagney <cagney@redhat.com>
3797 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3798 (sparc_convert_to_raw): Delete function.
3799 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3800 register_convert_to_virtual.
3802 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3804 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3805 layer if not dealing with a statically-linked threaded program.
3807 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3809 * solib.c (solib_open): Update comment to reflect actual search order.
3811 2003-06-03 Andrew Cagney <cagney@redhat.com>
3813 * frame.c (get_frame_memory_signed): New function.
3814 (get_frame_memory, get_frame_memory_unsigned): New function.
3815 (get_frame_arch): New function.
3816 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3817 (get_frame_memory, get_frame_unsigned_memory): Declare.
3818 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3819 get_frame_memory_unsigned and get_frame_arch.
3820 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3822 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3824 * MAINTAINERS (write after approval): Add myself.
3826 2003-06-03 Jim Blandy <jimb@redhat.com>
3828 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3829 elements of gregset_t are 64 bits each, but access registers
3830 are still 32 bits, so they're packed two per gregset_t
3831 element. Unpack/pack them properly.
3833 2003-06-02 David Carlton <carlton@bactrian.org>
3835 * linespec.c (find_methods): Break out code into
3836 add_matching_methods and add_constructors.
3837 (add_matching_methods): New.
3838 (add_constructors): Ditto.
3840 2003-06-02 Andrew Cagney <cagney@redhat.com>
3842 * sparc-tdep.c (sparc_print_registers): Delete call to
3843 REGISTER_CONVERTIBLE.
3844 (sparc_gdbarch_init): Do not set register_convertible.
3845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3846 * frv-tdep.c (frv_gdbarch_init): Ditto.
3847 * cris-tdep.c (cris_gdbarch_init): Ditto.
3849 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3851 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3852 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3853 (syms_from_objfile): Ditto.
3855 2003-06-03 Andreas Schwab <schwab@suse.de>
3857 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3858 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3860 2003-06-02 Richard Henderson <rth@redhat.com>
3862 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3863 a member of all_reggroup.
3865 2003-06-02 Richard Henderson <rth@redhat.com>
3867 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3868 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3869 (alpha_lds, alpha_sts): New.
3870 (alpha_convert_register_p): Change from _register_convertible.
3871 (alpha_register_to_value): Change from _convert_to_virtual;
3872 restructure and fail for type sizes other than 4 or 8.
3873 (alpha_value_to_register): Similarly.
3874 (alpha_extract_return_value): Use alpha_sts.
3875 (alpha_store_return_value): Use alpha_lds.
3876 (alpha_gdbarch_init): Update hooks.
3878 2003-06-02 Richard Henderson <rth@redhat.com>
3880 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3882 (alpha_sigtramp_register_address): Likewise.
3884 2003-06-02 Richard Henderson <rth@redhat.com>
3886 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3887 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3888 * alpha-tdep.h: Declare them.
3890 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3891 Remove zerobuf. Don't error on UNIQUE.
3892 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3893 (ALPHA_REGSET_UNIQUE): Provide default.
3894 (supply_gregset): Use alpha_supply_int_regs.
3895 (fill_gregset): Use alpha_fill_int_regs.
3896 (supply_fpregset): Use alpha_supply_fp_regs.
3897 (fill_fpregset): Use alpha_fill_fp_regs.
3898 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3899 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3900 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3901 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3902 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3903 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3905 2003-06-02 Richard Henderson <rth@redhat.com>
3907 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3909 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3910 (alpha_store_return_value): Likewise.
3912 2003-06-02 David Carlton <carlton@math.stanford.edu>
3914 * block.c (contained_in): Add 'const' to arguments.
3915 (block_function): Ditto.
3916 * block.h: Update declarations for block_function and
3919 2003-06-02 David Carlton <carlton@math.stanford.edu>
3921 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3922 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3923 * p-valprint.c (pascal_val_print): Ditto.
3924 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3926 2003-06-02 Richard Henderson <rth@redhat.com>
3928 * alpha-tdep.c (alpha_push_dummy_call): Use
3929 builtin_type_ieee_double_little instead of builtin_type_double.
3931 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3932 sign-extension of 32-bit values.
3933 (alpha_store_return_value): Similarly.
3935 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3936 (alpha_extract_return_value): Likewise.
3937 (alpha_store_return_value): Likewise.
3939 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3940 (alpha_store_return_value): Error on IEEE Quad floats.
3942 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3943 (alpha_extract_struct_value_address): Likewise.
3944 (alpha_store_return_value): Likewise.
3945 (alpha_store_struct_return): Remove.
3946 (alpha_gdbarch_init): Update hook registration to match.
3948 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3949 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3950 macros where appropriate.
3951 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3952 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3954 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3955 for SP, GP; void_func_ptr for PC; non-language-specific types
3957 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3959 2003-06-02 Richard Henderson <rth@redhat.com>
3961 * top.h (lim_at_start): Declare.
3962 * main.c (captured_main): Set it.
3963 * top.c (lim_at_start): Define.
3964 (command_loop): Use it instead of &environ.
3965 * event-top.c (command_handler): Likewise.
3967 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3969 * mipsnbsd-tdep.c: Update copyright years.
3970 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3972 2003-06-01 Richard Henderson <rth@redhat.com>
3974 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3975 (alpha-linux-tdep.o): Update dependencies.
3976 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3977 * alpha-mdebug-tdep.c: Remove unneeded includes.
3979 2003-06-01 Richard Henderson <rth@redhat.com>
3981 * alpha-tdep.c (alpha_register_reggroup_p): New.
3982 (alpha_gdbarch_init): Register it.
3984 2003-06-02 Andrew Cagney <cagney@redhat.com>
3986 * dwarfread.c: Eliminate "register"
3987 (decode_die_type): Eliminate assignment within "if".
3988 (struct_type, decode_array_element_type): Ditto.
3989 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3990 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3991 (decode_modified_type, completedieinfo): Ditto.
3992 * block.c: Eliminate "register".
3993 (blockvector_for_pc_sect): Eliminate assignment within "if".
3994 * cp-support.h (struct symbol): Opaque declaration.
3995 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3997 2003-06-01 Richard Henderson <rth@redhat.com>
3999 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4000 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4002 2003-06-01 Adam Fedor <fedor@gnu.org>
4004 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4005 * gdbarch.[ch]: Regenerate.
4006 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4007 (hppa_gdbarch_init): Set it in the gdbarch vector.
4008 * i386-tdep.c (i386_fetch_pointer_argument): New
4009 (i386_gdbarch_init): Set it into gdbarch.
4010 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4011 (rs6000_gdbarch_init): Set it in gdbarch.
4012 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4013 (sparc_gdbarch_init): Set it in gdbarch.
4015 2003-06-01 Andrew Cagney <cagney@redhat.com>
4017 * defs.h (extract_address): Delete declaration.
4018 * findvar.c (extract_address): Delete function.
4019 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4020 extract_address with the inline equivalent,
4021 extract_unsigned_integer.
4022 (xstormy16_extract_struct_value_address): Ditto.
4023 (xstormy16_pointer_to_address): Ditto.
4024 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4025 * v850-tdep.c (v850_push_arguments): Ditto.
4026 (v850_extract_return_value): Ditto.
4027 (v850_extract_struct_value_address): Ditto.
4028 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4029 (sparcnbsd_get_longjmp_target_64): Ditto.
4030 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4031 (get_longjmp_target): Ditto.
4032 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4033 (sh64_extract_struct_value_address): Ditto.
4034 (sh_push_arguments): Ditto.
4035 (sh64_push_arguments): Ditto.
4036 * remote-vxsparc.c (vx_read_register): Ditto.
4037 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4038 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4039 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4040 * mipsv4-nat.c (get_longjmp_target): Ditto.
4041 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4042 * mips-nat.c (get_longjmp_target): Ditto.
4043 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4044 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4045 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4046 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4047 * irix5-nat.c (get_longjmp_target): Ditto.
4048 * irix4-nat.c (get_longjmp_target): Ditto.
4049 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4050 (ia64_push_arguments): Ditto.
4051 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4052 * h8300-tdep.c (h8300_push_arguments): Ditto.
4053 (h8300_store_return_value): Ditto.
4054 (h8300_extract_struct_value_address): Ditto.
4055 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4056 (frv_push_arguments): Ditto.
4057 * avr-tdep.c (avr_pointer_to_address): Ditto.
4058 (avr_push_arguments): Ditto.
4059 * arm-tdep.c (arm_push_dummy_call): Ditto.
4060 (arm_get_longjmp_target): Ditto.
4061 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4062 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4063 (alpha_get_longjmp_target): Ditto.
4065 * solib-irix.c (extract_mips_address): Inline extract_address,
4066 replacing it with extract_signed_integer.
4067 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4068 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4069 (first_link_map_member, open_symbol_file_object): Ditto.
4070 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4071 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4072 (LM_NEXT, LM_NAME): Ditto.
4074 2003-06-01 Richard Henderson <rth@redhat.com>
4076 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4077 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4078 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4079 (alpha_cannot_store_register): Likewise.
4080 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4081 * alpha-nat.c (supply_gregset): Likewise.
4082 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4084 2003-06-01 Andrew Cagney <cagney@redhat.com>
4086 * infcall.c (call_function_by_hand): Update comment on
4087 DEPRECATED_DUMMY_WRITE_SP.
4089 * mips-tdep.c (mips_gdbarch_init): Do not set
4090 deprecated_dummy_write_sp.
4091 (mips_eabi_push_dummy_call): Set the SP register.
4092 (mips_o64_push_dummy_call): Set the SP register.
4093 (mips_o32_push_dummy_call): Set the SP register.
4094 (mips_n32n64_push_dummy_call): Set the SP register.
4096 2003-06-01 Richard Henderson <rth@redhat.com>
4098 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4099 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4100 (supply_gregset): Likewise.
4101 * alpha-tdep.c (alpha_store_return_value): Likewise.
4102 (alpha_get_longjmp_target): Likewise.
4103 (alpha_register_name): Constify array.
4104 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4105 deprecated_register_size, deprecated_register_bytes,
4106 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4107 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4108 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4110 2003-06-01 Richard Henderson <rth@redhat.com>
4112 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4113 from arg_reg_buffer to regcache to avoid double conversion.
4115 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4117 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4119 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4120 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4122 2003-06-01 Richard Henderson <rth@redhat.com>
4124 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4125 (decode_frame_entry): Set it. Skip FDE augmentation.
4127 2003-06-01 Richard Henderson <rth@redhat.com>
4129 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4130 not overlapping PC_REGNUM.
4132 2003-06-01 Richard Henderson <rth@redhat.com>
4134 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4135 alpha_push_arguments. Don't dump argument register data to
4136 the target stack. Fix float and 128-bit long double semantics.
4137 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4138 (alpha_fix_call_dummy): Remove.
4139 (alpha_call_dummy_words): Remove.
4140 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4142 2003-06-01 Richard Henderson <rth@redhat.com>
4144 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4146 2003-06-01 Andrew Cagney <cagney@redhat.com>
4148 * mips-tdep.c (is_mips16_addr): New function.
4149 (make_mips16_addr, unmake_mips16_addr): New functions.
4150 (pc_is_mips16, mips_fetch_instruction): Use.
4151 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4152 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4153 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4154 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4156 * config/mips/tm-mips.h: Update copyright.
4157 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4158 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4159 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4160 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4161 (TM_PRINT_INSN_MACH): Delete.
4162 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4164 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4165 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4166 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4167 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4168 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4169 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4170 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4171 mips*-*-riscos* and mips*-*-sysv* onto mips.
4172 * config/mips/mips64.mt: New file.
4173 * config/mips/mips.mt: New file.
4174 * config/mips/littlemips.mt: Delete file.
4175 * config/mips/decstation.mt: Delete file.
4176 * config/mips/vr4300el.mt: Delete file.
4177 * config/mips/vr5000el.mt: Delete file.
4178 * config/mips/vr5000.mt: Delete file.
4179 * config/mips/vr4100.mt: Delete file.
4180 * config/mips/vr4xxxel.mt: Delete file.
4181 * config/mips/vr4300.mt: Delete file.
4182 * config/mips/vr4xxx.mt: Delete file.
4183 * config/mips/bigmips.mt: Delete file.
4184 * config/mips/bigmips64.mt: Delete file.
4185 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4186 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4187 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4188 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4189 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4191 * config/mips/tm-irix3.h: Ditto.
4192 * config/mips/tm-mipsv4.h: Ditto.
4193 * config/mips/tm-embed.h: Ditto.
4194 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4196 * config/mips/tm-vr5000el.h: Delete file.
4197 * config/mips/tm-tx39l.h: Delete file.
4198 * config/mips/tm-vr4300el.h: Delete file.
4199 * config/mips/tm-vr4xxxel.h: Delete file.
4200 * config/mips/tm-vr4300.h: Delete file.
4201 * config/mips/tm-vr4100.h: Delete file.
4202 * config/mips/tm-vr4xxx.h: Delete file.
4203 * config/mips/tm-vr5000.h: Delete file.
4204 * config/mips/tm-embedl64.h: Delete file.
4205 * config/mips/tm-embedl.h: Delete file.
4206 * config/mips/tm-embed64.h: Delete file.
4207 * config/mips/tm-bigmips64.h: Delete file.
4208 * config/mips/tm-bigmips.h: Delete file.
4210 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4213 * shnbsd-nat.c: Include "sh-tdep.h".
4215 From Richard Henderson <rth@redhat.com>:
4216 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4218 2003-05-31 Andrew Cagney <cagney@redhat.com>
4220 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4221 forward declaration.
4222 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4223 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4224 (mips_find_saved_regs): Use set_reg_offset.
4225 (mips_frame_init_saved_regs): Delete function.
4226 (mips_pop_frame): Call mips_find_saved_regs instead of
4227 DEPRECATED_FRAME_INIT_SAVED_REGS.
4229 2003-05-31 Andrew Cagney <cagney@redhat.com>
4231 * mips-tdep.c (mips_gdbarch_init): Do not set
4232 deprecated_max_register_raw_size, register_virtual_size, and
4233 deprecated_max_register_virtual_size.
4235 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4237 * i386-tdep.c: Include "dwarf2-frame.h".
4238 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4239 * Makefile.in (i386-tdep.o): Update dependencies.
4241 * dwarf2-frame.c, dwarf2-frame.h: New files.
4242 * Makefile.in (SFILES): Add dwarf2-frame.c.
4243 (dwarf2_frame_h): Define.
4244 (COMMON_OBS): Add dwarf2-frame.o.
4245 (dwarf2-frame.o): Add dependencies.
4247 2003-05-31 Andreas Jaeger <aj@suse.de>
4249 * x86-64-linux-nat.c: Fix comment.
4251 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4253 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4256 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4257 have a sigcontext_addr handler.
4258 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4259 sigcontext_addr handler.
4261 2003-05-31 Andrew Cagney <cagney@redhat.com>
4263 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4264 (print_fp_register_row): Replace do_fp_register_row.
4265 (mips_print_fp_register): Add "file" and "frame" parameters.
4266 (mips_print_register): Add "file" and "frame" parameters.
4267 (mips_print_registers_info): Replace mips_do_registers_info.
4268 (mips_gdbarch_init): Set print_registers_info instead of
4269 deprecated_do_registers_info.
4270 (mips_read_fp_register_single): Add "frame" parameter.
4271 (mips_read_fp_register_double): Add "frame" parameter.
4273 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4275 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4276 Fixes a bug where GDB would print the wrong register names for
4277 targets without SSE.
4279 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4280 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4283 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4284 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4285 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4288 From Michal Ludvig <mludvig@suse.cz>:
4289 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4291 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4292 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4293 I386_ST0_REGNUM): Move here from...
4294 * i386-tdep.c: ... here.
4295 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4296 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4297 registers if possible.
4298 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4299 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4301 (i386bsd_sc_reg_offset): New variable.
4302 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4303 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4305 (i386fbsd_sc_reg_offset): New variable.
4306 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4308 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4310 (i386fbsd4_sc_reg_offset): New variable.
4311 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4312 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4314 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4315 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4316 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4318 (i386nbsd_sc_reg_offset): New variable.
4319 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4320 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4322 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4324 (i386obsd_sc_reg_offset): New variable.
4325 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4326 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4328 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4329 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4330 for frame pointer offset in `struct sigcontext'.
4332 2003-05-31 Andrew Cagney <cagney@redhat.com>
4334 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4335 architecture methods call_dummy_words, sizeof_call_dummy_words,
4336 push_return_address, store_struct_return, and fix_call_dummy. Set
4337 push_dummy_call instead of deprecated_push_arguments.
4338 (mips_store_struct_return): Delete function.
4339 (mips_fix_call_dummy): Delete function.
4340 (mips_push_return_address): Delete function.
4341 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4342 RA_REGNUM and T9_REGNUM.
4343 (mips_n32n64_push_dummy_call): Ditto for
4344 mips_n32n64_push_arguments.
4345 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4346 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4348 2003-05-31 Andrew Cagney <cagney@redhat.com>
4350 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4351 "dummy_addr" to "bp_addr".
4352 * infcall.c (call_function_by_hand): Pass "funaddr" to
4353 gdbarch_push_dummy_call.
4354 * gdbarch.h, gdbarch.c: Re-generate.
4355 * i386-tdep.c (i386_push_dummy_call): Update.
4356 * arm-tdep.c (arm_push_dummy_call): Update.
4357 * d10v-tdep.c (d10v_push_dummy_call): Update.
4359 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4361 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4362 variable declarations.
4363 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4364 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4365 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4366 x86_64_init_frame_pc, x86_64_init_frame_pc,
4367 x86_64_function_has_prologue): Remove prototypes.
4368 (X86_64_NUM_GREGS): New define.
4369 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4370 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4371 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4372 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4373 XMM1_REGNUM): Remove defines.
4374 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4375 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4376 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4377 X86_64_XMM1_REGNUM): New defines.
4378 (struct x86_64_register_info): Renamed from `struct
4379 register_info'. Remove `size' member.
4380 (x86_64_register_info_table): Remove variable.
4381 (x86_64_register_info): New variable.
4382 (X86_64_NUM_REGS): New define.
4383 (X86_64_NUM_GREGS): Remove define.
4384 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4385 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4387 (x86_54_dwarf2_reg_to_regnum): Remove function.
4388 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4389 (x86_64_dwarf_reg_to_regnum): New function.
4390 (x86_64_register_name): Rewrite.
4391 (x86_64_register_raw_size): Remove function.
4392 (x86_64_register_byte_table): Remove variable.
4393 (x86_64_register_byte): Remove function.
4394 (x86_64_register_virtual_type): Remove function.
4395 (x86_64_register_type): New function.
4396 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4397 x86_64_register_convert_to_raw): Remove functions.
4398 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4399 (x86_64_use_struct_convention): Make static. Adjust for renamed
4401 (x86_64_frame_init_saved_regs): Remove function.
4402 (x86_64_push_arguments): Make static. Change to accept a regcache
4404 (x86_64_store_return_value, x86_64_extract_return_value): Make
4405 static. Rewrite based on i386 counterparts.
4406 (x86_64_push_dummy_call): New function.
4407 (X86_64_NUM_SAVED_REGS): New define.
4408 (x86_64_register_number): Remove function.
4409 (x86_64_store_struct_return): Remove function.
4410 (x86_64_frameless_function_invocation,
4411 x86_64_function_has_prologue): Remove functions.
4412 (PROLOG_BUFSIZE): Remove define.
4413 (struct x86_64_frame_cache): New structure.
4414 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4415 x86_64_frame_cache, x86_64_frame_this_id,
4416 x86_64_frame_prev_register, x86_64_frame_p,
4417 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4418 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4420 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4422 (x86_64_skip_prologue): Rewrite in terms of
4423 x86_64_analyze_prologue.
4424 (x86_64_frame_base_address): New function.
4425 (x86_64_frame_base): New variable.
4426 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4427 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4428 set deprecated_fp_regnum, deprecated_register_size,
4429 deprecated_register_bytes, register_raw_size, register_byte,
4430 register_virtual_type, register_convertiable,
4431 register_convert_to_virtual, convert_to_raw,
4432 deprecated_get_saved_register, deprecated_target_read_fp,
4433 deprecated_push_arguments, deprecated_push_return_address,
4434 deprecated_pop_frame, deprecated_store_struct_return,
4435 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4436 frameless_function_invocation, deprecated_frame_saved_pc,
4437 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4438 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4439 deprecated_init_frame_pc and virtual_frame_pointer. Call
4440 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4441 and x86_64_frame_p. Call frame_base_set_default to register
4443 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4444 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4445 (_initialize_x86_64_tdep): Remove function.
4446 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4447 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4448 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4450 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4451 (x86_64_linux_sigcontext_addr): Rewrite.
4452 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4453 x86_64_linux_frame_saved_pc): Remove functions.
4454 (x86_64_linux_pc_in_sigtramp): Renamed from
4455 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4457 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4459 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4460 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4461 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4462 (x86_64_regmap): Rename to regmap.
4463 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4465 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4467 (x86_64_fxsave_offset): Remove function.
4468 (supply_fpregset): Simply call x86_64_supply_fxsave.
4469 (fill_fpregset): Simply call x86_64_fill_fxsave.
4470 (fetch_inferior_registers, store_inferior_registers): Avoid
4471 asignment in if-statement.
4472 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4473 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4474 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4475 (fetch_core_registers): Remove function.
4476 (linux_elf_core_fns): Remove.
4477 (offsetoff): Don't define.
4478 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4479 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4480 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4482 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4483 protection against multiple includes instead of NM_X86_64_h. Add
4484 various comments. Include "config/nm-linux.h". Don't include
4486 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4487 GET_THREAD_SIGNALS): Remove defines.
4488 (x86_64_register_u_addr, kernel_u_size,
4489 lin_thread_get_thread_signals): Remove prototypes.
4490 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4491 [HAVE_LINK_H]: Don't include "solib.h".
4492 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4493 * config/i386/tm-x86-64linux.h: Fix comments.
4494 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4495 x86-64-tdep.o): Update dependencies.
4497 2003-05-30 Andrew Cagney <cagney@redhat.com>
4499 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4500 Change parameter type to a "struct regcache *".
4502 * gdbarch.sh: Regardless of the multi-arch level, always define
4503 the macro when not already defined.
4504 * gdbarch.h, gdbarch.c: Re-generate.
4506 2003-05-30 Richard Henderson <rth@redhat.com>
4508 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4509 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4510 (alpha_mdebug_frame_this_id): Likewise.
4511 (alpha_mdebug_frame_prev_register): Likewise.
4512 (alpha_mdebug_frame_base_address): Likewise.
4513 (alpha_mdebug_frame_locals_address): Likewise.
4514 (alpha_mdebug_frame_args_address): Likewise.
4515 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4516 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4517 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4519 (alpha_heuristic_frame_this_id): Make static.
4520 (alpha_heuristic_frame_prev_register): Likewise.
4521 (alpha_heuristic_frame_base_address): Likewise.
4522 * alpha-tdep.h: Update.
4524 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4526 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4527 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4529 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4530 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4531 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4532 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4533 I386_ST0_REGNUM): New defines.
4534 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4535 codestream_get): Remove define.
4536 (codestream_next_addr, condestream_addr, condestream_buf,
4537 codestream_off, codestream_cnt): Remove variables.
4538 (codestream_fill, codestream_seek, codestream_read): Remove
4540 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4542 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4543 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4544 i386_frame_saved_pc, i386_saved_pc_after_call,
4545 i386_frame_num_args, i386_frame_init_saved_regs,
4546 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4547 i386_push_arguments): Remove functions.
4548 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4549 functionality. Use i386_analyze_prologue instead of
4550 i386_get_frame_setup.
4551 (I386_NUM_SAVED_REGS): New define.
4552 (struct i386_frame_cache): New structure.
4553 (i386_alloc_frame_cache, i386_analyze_struct_return,
4554 i386_skip_probe, i386_analyze_frame_setup,
4555 i386_analyze_register_saves, i386_analyze_prologue,
4556 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4557 i386_frame_prev_register, i386_sigtramp_frame_cache,
4558 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4559 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4560 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4562 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4564 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4565 I386_EAX_REGNUM and I386_EDX_REGNUM.
4566 (i386_extract_return_value, i386_store_return_value): Use
4567 I386_ST0_REGNUM where appropriate.
4568 (i386_extract_struct_value_address): Rewrite to use extract_address.
4569 (i386_svr4_pc_in_sigtramp): Add comment.
4570 (i386_svr4_sigcontext_addr): Rewrite.
4571 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4573 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4574 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4575 of new defines. Set push_dummy_call, don't set
4576 deprecated_push_arguments, deprecated_push_return_address,
4577 deprecated_pop_frame. Don't set parm_boundary. Don't set
4578 deprecated_frame_chain, deprecated_frame_saved_pc,
4579 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4580 save_dummy_frame_tos, unwind_pc. Call
4581 frame_unwind_append_predicate and frame_base_set_default. Don't
4582 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4583 Don't set frameless_function_invocation. Don't set
4584 deprecated_register_bytes, deprecated_register_size,
4585 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4586 * i386-linux-tdep.c: Fix formatting in some comments.
4587 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4588 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4589 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4590 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4591 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4592 redundant parentheses.
4593 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4594 (i386_linux_sigcontext_addr): Use it. Rewrite.
4595 (find_minsym_and_objfile): Change name of second argument.
4596 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4597 changed. Use frame_pc_unwind instead of
4598 DEPRECATED_SAVED_PC_AFTER_CALL.
4599 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4600 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4601 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4603 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4605 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4606 (_initialize_i386_cygwin_tdep): New prototype.
4607 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4608 deprecated_frame_chain_valid.
4609 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4610 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4611 Rely on the SVR4 defaults.
4612 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4613 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4615 2003-05-30 Andrew Cagney <cagney@redhat.com>
4617 * infcall.c (call_function_by_hand): Always call
4618 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4620 2003-05-30 Richard Henderson <rth@redhat.com>
4622 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4625 2003-05-29 Jim Blandy <jimb@redhat.com>
4627 Use gdbarch methods for solib stuff on PowerPC Linux.
4628 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4629 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4631 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4632 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4633 giving the same effect as the #definitions above.
4635 2003-05-29 Adam Fedor <fedor@gnu.org>
4637 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4638 (find_implementation_from_class): Replace it with the standard
4639 case i.e. do nothing.
4641 2003-05-29 Richard Henderson <rth@redhat.com>
4643 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4644 (alpha_linux_sigtramp_offset): Use it. Make static.
4645 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4646 update for new frame model.
4647 * alpha-mdebug-tdep.c: New file.
4648 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4649 (alpha_osf1_init_abi): Install it.
4650 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4651 (linked_proc_desc_table): Remove.
4652 (alpha_frame_past_sigtramp_frame): Remove.
4653 (alpha_dynamic_sigtramp_offset): Remove.
4654 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4655 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4656 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4657 (push_sigtramp_desc): Remove.
4658 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4659 (alpha_cannot_store_register): Likewise.
4660 (alpha_sigcontext_addr): Remove.
4661 (alpha_find_saved_regs): Remove.
4662 (alpha_frame_init_saved_regs): Remove.
4663 (alpha_init_frame_pc_first): Remove.
4664 (read_next_frame_reg): Remove.
4665 (alpha_frame_saved_pc): Remove.
4666 (alpha_saved_pc_after_call): Remove.
4667 (temp_proc_desc, temp_saved_regs): Remove.
4668 (alpha_about_to_return): Remove.
4669 (cached_proc_desc): Remove.
4670 (alpha_frame_chain): Remove.
4671 (alpha_print_extra_frame_info): Remove.
4672 (alpha_init_extra_frame_info): Remove.
4673 (alpha_frame_locals_address): Remove.
4674 (alpha_frame_args_address): Remove.
4675 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4676 (alpha_push_dummy_frame): Remove.
4677 (alpha_pop_frame): Remove.
4678 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4679 (alpha_read_insn): New.
4680 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4681 for different insn encodings.
4682 (alpha_in_lenient_prologue): Remove.
4683 (struct alpha_sigtramp_unwind_cache): New.
4684 (alpha_sigtramp_frame_unwind_cache): New.
4685 (alpha_sigtramp_register_address): New.
4686 (alpha_sigtramp_frame_this_id): New.
4687 (alpha_sigtramp_frame_prev_register): New.
4688 (alpha_sigtramp_frame_unwind): New.
4689 (alpha_sigtramp_frame_p): New.
4690 (struct alpha_heuristic_unwind_cache): New.
4691 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4692 don't count nop insns that occur between functions.
4693 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4694 heuristic_proc_desc, but without the mdebug wrapping.
4695 (alpha_heuristic_frame_this_id): New.
4696 (alpha_heuristic_frame_prev_register): New.
4697 (alpha_heuristic_frame_unwind): New.
4698 (alpha_heuristic_frame_p): New.
4699 (alpha_heuristic_frame_base_address): New.
4700 (alpha_heuristic_frame_base): New.
4701 (alpha_unwind_dummy_id): New.
4702 (alpha_unwind_pc): New.
4703 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4704 frame related deprecated initializations; install replacements.
4705 (alpha_dump_tdep): Remove.
4706 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4707 (alpha_read_insn, alpha_after_prologue,
4708 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4709 alpha_heuristic_frame_prev_register,
4710 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4711 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4712 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4713 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4715 2003-05-29 Andrew Cagney <cagney@redhat.com>
4717 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4718 dependant on the availability of ASSERT_FUNCTION.
4719 (ASSERT_FUNCTION): Do not define when there is no function name.
4721 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4723 From Jimi X <jimix@watson.ibm.com>:
4724 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4726 2003-05-28 Jim Blandy <jimb@redhat.com>
4728 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4729 argument to ptrace to int; the system headers should give it the
4730 right type, and pointers don't fit in ints on powerpc64-*-*.
4732 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4734 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4737 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4739 * stabsread.c (dbx_lookup_type): Make static.
4741 (add_undefined_type): Ditto.
4742 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4745 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4747 * hpread.c (hpread_has_name): Make static.
4748 (hpread_psymtab_to_symtab): Ditto.
4749 (file_exists): Ditto.
4750 (hpread_call_pxdb): Ditto.
4751 (hpread_pxdb_needed): Ditto.
4752 (hpread_quick_traverse): Ditto.
4753 (hpread_get_header): Ditto.
4754 (hpread_get_lntt): Ditto.
4755 (hpread_get_slt): Ditto.
4758 2003-05-25 Andreas Schwab <schwab@suse.de>
4760 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4761 stack_align and deprecated_extra_stack_alignment_needed.
4762 (m68k_stack_align): Delete.
4764 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4765 (m68k_register_virtual_size): Likewise.
4766 (altos_skip_prologue): Remove obsolete function.
4767 (isi_frame_num_args): Likewise.
4768 (news_frame_num_args): Likewise.
4769 (m68k_fix_call_dummy): Make static.
4770 (m68k_push_dummy_frame): Likewise.
4771 (m68k_pop_frame): Likewise.
4772 (m68k_skip_prologue): Likewise.
4773 (m68k_frame_init_saved_regs): Likewise.
4774 (m68k_saved_pc_after_call): Likewise.
4775 (m68k_get_longjmp_target): Make multi-arch.
4776 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4777 structure. Register m68k_get_longjmp_target if enabled.
4778 * m68k-tdep.h (struct gdbarch_tdep): Define.
4779 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4781 * Makefile.in (config.status): Also depend on configure.tgt
4783 (m68klinux-tdep.o): Update dependencies.
4784 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4785 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4786 (M68K_LINUX_JB_PC): Define.
4787 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4788 and take additional parameter.
4789 (m68k_linux_sigtramp_saved_pc): Update.
4790 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4791 m68k_linux_pc_in_sigtramp, in_plt_section,
4792 find_solib_trampoline_target.
4793 * config/m68k/tm-linux.h: Don't include any tm headers.
4794 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4795 (JB_ELEMENT_SIZE): Likewise.
4797 (GET_LONGJMP_TARGET): Likewise.
4798 (IN_SIGTRAMP): Likewise.
4799 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4801 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4803 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4804 (sparc32_push_arguments): Re-implement by calling
4805 sparc32_do_push_arguments.
4807 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4809 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4810 SPARC_O1_REGNUM): New defines.
4811 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4812 (sparc32_store_return_value): New function.
4813 (sparc_extract_struct_value_address): Rewrite to operate on a
4815 (sparc_gdbarch_init): Don't set
4816 deprecated_extract_struct_value_address. Set
4817 extract_struct_value_address instead. Don't set
4818 deprecated_extract_return_value and deprecated_store_return_value
4819 for 32-bit targets. Set extract_return_value and
4820 store_return_value instead.
4821 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4822 DEPRECTAED_EXTRACT_RETURN_VALUE,
4823 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4824 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4825 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4826 (sparc_store_return_value): Remove prototype.
4827 (sparc32_store_return_value): New prototype.
4828 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4831 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4833 * sparcnbsd-tdep.c: Include "gdb_string.h".
4835 2003-05-23 Andrew Cagney <cagney@redhat.com>
4837 * p-valprint.c (pascal_val_print): Replace extract_address with
4838 the inline equivalent extract_unsigned_integer.
4839 * jv-valprint.c (java_value_print): Ditto.
4840 * ada-valprint.c (ada_val_print_1): Ditto.
4841 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4843 2003-05-23 Theodore A. Roth <troth@openavr.org>
4845 * blockframe.c (frameless_look_for_prologue): Remove unused
4846 after_prologue variable.
4848 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4850 * blockframe.c (get_pc_function_start): Rewrite to avoid
4851 asignments in if-statements.
4853 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4855 Committed by Elena Zannoni <ezannoni@redhat.com>.
4856 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4857 files, don't relocate absolute symbols (and do use mst_abs).
4859 2003-05-23 Andrew Cagney <cagney@redhat.com>
4861 * objc-lang.c: Include "gdb_assert.h".
4862 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4863 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4864 (gdb_check, gdb_check_fatal): Delete functions.
4865 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4867 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4868 * Makefile.in (objc-lang.o): Update dependencies.
4870 2003-05-22 Ian Lance Taylor <ian@airs.com>
4872 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4873 with fprintf_filtered, not fprintf_unfiltered.
4875 2003-05-22 Andrew Cagney <cagney@redhat.com>
4877 * stack.c (frame_info): Inline extract_address, replacing it with
4878 extract_unsigned_integer.
4879 * findvar.c (unsigned_pointer_to_address): Ditto.
4880 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4881 * dwarf2expr.c (dwarf2_read_address): Ditto.
4882 * frame.c (frame_pc_unwind): Update comment.
4883 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4885 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4887 * infptrace.c (detach): Call print_sys_errmsg rather than
4888 perror_with_name to issue warning message when errno is non-zero
4889 after calling ptrace detach.
4891 2003-05-21 J. Brobecker <brobecker@gnat.com>
4893 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4894 macro definitions from here...
4895 * hppa-tdep.c: ...to there.
4897 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4899 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4900 register_ptrace_addr(). Fix all callers.
4902 2003-05-21 Andreas Schwab <schwab@suse.de>
4904 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4906 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4908 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4909 (_initialize_m68k_linux_tdep): New function.
4910 (m68k_linux_frame_saved_pc): Make static.
4911 (m68k_linux_extract_return_value): Likewise.
4912 (m68k_linux_store_return_value): Likewise.
4913 (m68k_linux_extract_struct_value_address): Likewise.
4914 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4916 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4917 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4918 (DEPRECATED_FRAME_SAVED_PC): Remove.
4920 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4922 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4923 regset numbering rather than our own.
4925 2003-05-19 David Carlton <carlton@bactrian.org>
4927 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4929 2003-05-19 David Carlton <carlton@bactrian.org>
4931 Partial fix for PR c++/827.
4932 * cp-support.h: Include symtab.h.
4933 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4934 * cp-namespace.c: Update contributors.
4935 (cp_lookup_symbol_nonlocal): New.
4936 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4937 (lookup_symbol_file): Ditto.
4938 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4939 * block.h: Declare block_scope, block_using, block_global_block.
4940 * block.c (block_scope): New.
4941 (block_using, block_global_block): Ditto.
4942 * Makefile.in (cp_support_h): Depend on symtab_h.
4943 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4945 2003-05-19 David Carlton <carlton@bactrian.org>
4947 * language.h (struct language_defn): Add 'la_value_of_this'
4948 and 'la_lookup_symbol_nonlocal' members.
4949 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4950 lookup_symbol_static, lookup_symbol_global,
4951 lookup_symbol_aux_block.
4952 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4953 if we should search fields of this and how to do static/global
4955 (lookup_symbol_aux_block): Make extern.
4956 (basic_lookup_symbol_nonlocal): New.
4957 (lookup_symbol_static, lookup_symbol_global): Ditto.
4958 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4959 'la_lookup_symbol_nonlocal' members.
4960 * c-lang.c (c_language_defn, cplus_language_defn)
4961 (asm_language_defn, minimal_language_defn): Ditto.
4962 * jv-lang.c (java_language_defn): Ditto.
4963 * language.c (unknown_language_defn, auto_language_defn)
4964 (local_language_defn): Ditto.
4965 * m2-lang.c (m2_language_defn): Ditto.
4966 * objc-lang.c (objc_language_defn): Ditto.
4967 * scm-lang.c (scm_language_defn): Ditto.
4968 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4969 * p-lang.c (pascal_language_defn): Ditto for both.
4970 * Makefile.in (f-lang.o): Depend on value_h.
4973 2003-05-19 David Carlton <carlton@bactrian.org>
4975 * block.h: Declare block_static_block.
4976 * block.c (block_static_block): New.
4977 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4978 lookup_symbol_aux_local, calling block_static_block instead.
4979 (lookup_symbol_aux_local): Delete 'static_block' argument.
4981 2003-05-19 David Carlton <carlton@bactrian.org>
4983 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4985 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4987 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4988 register numbers mapping.
4990 2003-05-18 Adam Fedor <fedor@gnu.org>
4992 * symtab.c (completion_list_objc_symbol): New function.
4993 (make_symbol_completion_list): Use it to add ObjC symbols
4994 when looking though the list.
4995 (language_search_unquoted_string): New function.
4996 (make_file_symbol_completion_list): Use it.
4998 2003-05-18 Andreas Schwab <schwab@suse.de>
5000 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5002 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5003 as m68k_linux_extract_return_value.
5004 (DEPRECATED_STORE_RETURN_VALUE): Define as
5005 m68k_linux_store_return_value.
5006 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5007 m68k_linux_extract_struct_value_address.
5008 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5009 get_next_frame, get_frame_base, get_frame_pc.
5010 (m68k_linux_frame_saved_pc): Use get_frame_base.
5011 (m68k_linux_extract_return_value): New function.
5012 (m68k_linux_store_return_value): New function.
5013 (m68k_linux_extract_struct_value_address): New function.
5014 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5016 * c-exp.y (typebase): Remove duplicate occurence of
5017 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5018 of lookup_signed_typename.
5020 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5022 * dwarf2loc.c (find_location_expression): Change type of second
5023 argument to `size_t *'.
5024 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5027 2003-05-18 David Carlton <carlton@bactrian.org>
5029 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5030 'linkage_name'. Add comment.
5031 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5033 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5034 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5035 (lookup_block_symbol): Ditto.
5037 2003-05-16 Andrew Cagney <cagney@redhat.com>
5039 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5040 * gdbarch.h, gdbarch.c: Re-generate.
5041 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5042 * TODO (REGISTER_BYTES): Delete reference.
5043 * alpha-tdep.c (alpha_gdbarch_init): Update.
5044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5045 * x86-64-tdep.c (x86_64_init_abi): Update.
5046 * vax-tdep.c (vax_gdbarch_init): Update.
5047 * v850-tdep.c (v850_gdbarch_init): Update.
5048 * sparc-tdep.c (sparc_gdbarch_init): Update.
5049 * sh-tdep.c (sh_gdbarch_init): Update.
5050 * s390-tdep.c (s390_gdbarch_init): Update.
5051 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5052 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5053 (ns32k_gdbarch_init_32382): Update.
5054 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5055 * mcore-tdep.c (mcore_gdbarch_init): Update.
5056 * m68k-tdep.c (m68k_gdbarch_init): Update.
5057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5058 * ia64-tdep.c (ia64_gdbarch_init): Update.
5059 * i386-tdep.c (i386_gdbarch_init): Update.
5060 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5061 * hppa-tdep.c (hppa_gdbarch_init): Update.
5062 * h8300-tdep.c (h8300_gdbarch_init): Update.
5063 * frv-tdep.c (frv_gdbarch_init): Update.
5064 * cris-tdep.c (cris_gdbarch_init): Update.
5065 * avr-tdep.c (avr_gdbarch_init): Update.
5066 * arm-tdep.c (arm_gdbarch_init): Update.
5067 * sparc-tdep.c (sparc_pop_frame): Update.
5068 * rs6000-tdep.c (rs6000_pop_frame): Update.
5069 * remote.c (init_remote_state): Update.
5070 (remote_prepare_to_store): Update.
5071 * remote-vx.c (vx_prepare_to_store): Update.
5072 * remote-sds.c (sds_fetch_registers): Update.
5073 (sds_prepare_to_store): Update.
5074 * remote-array.c: Update.
5075 * regcache.c (init_legacy_regcache_descr): Update.
5076 (init_regcache_descr): Update.
5077 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5078 (mips_o64_extract_return_value): Update.
5079 * irix5-nat.c (fetch_core_registers): Update.
5080 * irix4-nat.c (fetch_core_registers): Update.
5081 * i386-tdep.h: Update.
5082 * hppa-tdep.c (pa_do_registers_info): Update.
5083 (pa_do_strcat_registers_info): Update.
5084 * cris-tdep.c (cris_register_bytes_ok): Update.
5085 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5086 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5087 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5088 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5089 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5090 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5091 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5092 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5093 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5094 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5095 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5096 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5097 (REGISTER_BYTES_OK): Update.
5098 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5099 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5101 2003-05-16 Ian Lance Taylor <ian@airs.com>
5103 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5104 (vax_print_insn, print_insn_arg): Remove static functions.
5105 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5106 print_insn_vax from opcodes library.
5107 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5109 2003-05-15 Andrew Cagney <cagney@redhat.com>
5111 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5112 * target.h (memory_breakpoint_from_pc): Delete declaration.
5113 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5114 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5115 * monitor.c (monitor_insert_breakpoint): Use
5116 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5117 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5118 * gdbarch.h, gdbarch.c: Re-generate.
5119 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5120 (sparc_gdbarch_init): Set breakpoint_from_pc to
5121 sparc_breakpoint_from_pc.
5122 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5123 (BREAKPOINT_FROM_PC): Define.
5124 (sparc_breakpoint_from_pc): Declare.
5125 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5126 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5127 (BREAKPOINT_FROM_PC): Define.
5128 (BREAKPOINT): Delete macro.
5129 * target.h: Update comment.
5130 * s390-tdep.c (s390_gdbarch_init): Update comments.
5131 * remote.c: Update comments.
5132 * remote-mips.c: Update comments.
5133 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5134 * mem-break.c: Update comment.
5135 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5136 (ia64_memory_insert_breakpoint): Update.
5137 * config/sparc/tm-sparc.h: Update comment.
5138 * config/pa/tm-hppa64.h: Update comment.
5139 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5140 (rs6000_breakpoint_from_pc): Update.
5141 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5142 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5143 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5144 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5145 (mips_breakpoint_from_pc): Update.
5146 (mips_dump_tdep): Update.
5148 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5149 * minsyms.c (lookup_minimal_symbol): Inline
5150 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5152 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5153 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5154 * p-lang.c (pascal_printstr): Ditto.
5155 * objc-lang.c (objc_printstr): Ditto.
5156 * m2-lang.c (m2_printstr): Ditto.
5157 * jv-valprint.c (java_print_value_fields): Ditto.
5158 * f-lang.c (f_printstr): Ditto.
5159 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5160 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5161 for repeat_count_threshold.
5162 * Makefile.in (cp-valprint.o): Update dependencies.
5164 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5166 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5167 (examine_prologue): Support looking through leaf functions, knowing
5168 they start with mov r2,r12. Support skipping over indirect stores
5169 of the input registers. Upon hitting a non-nop branch instruction
5170 or predicated instruction, bail out by setting lim_pc to the current
5171 pc value in the loop. At the end, if the lim_pc value is still
5172 beyond our calculated value and we have trust_limit set,
5173 use the lim_pc value.
5175 2003-05-15 Andrew Cagney <cagney@redhat.com>
5177 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5178 generic_find_dummy_frame.
5179 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5180 (deprecated_generic_find_dummy_frame): Update.
5181 (deprecated_read_register_dummy): Update.
5182 * frame.c (deprecated_generic_get_saved_register): Update.
5184 2003-05-15 Theodore A. Roth <troth@openavr.org>
5186 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5187 (avr_gdbarch_init): Set breakpoint_from_pc method.
5189 2003-05-15 Andrew Cagney <cagney@redhat.com>
5191 * regcache.c (build_regcache): Set deprecated_register_valid
5193 (deprecated_grub_regcache_for_register_valid): Delete function.
5194 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5197 2003-05-15 David Carlton <carlton@bactrian.org>
5199 Committed by Elena Zannoni <ezannoni@redhat.com>
5200 * symtab.c (lookup_symbol_aux): Delete calls to
5201 lookup_symbol_aux_minsyms.
5202 (lookup_symbol_aux_minsyms): Comment out function and
5203 prototype. Delete lookup by mangled name.
5205 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5207 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5208 correctly indicate an empty stack and ``stack_allocated'' to the
5209 indicate the number of elements initially allocated.
5210 (dwarf_expr_grow_stack): Simplify method for computing new
5211 stack size. Don't loop infinitely if ``stack_len'' is zero.
5212 (execute_stack_op): Move ``ctx->in_reg'' initialization
5213 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5214 be used in conjuction with DW_OP_piece. Revise error message
5217 2003-05-14 Theodore A. Roth <troth@openavr.org>
5219 * MAINTAINERS: Update my email address.
5220 * avr-tdep.c: Ditto.
5222 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5224 * symtab.h (enum domain_enum): Rename from namespace_enum.
5225 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5226 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5227 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5228 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5229 TYPES_NAMESPACE, METHODS_NAMESPACE.
5230 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5231 (struct symbol, struct partial_symbol): Rename field
5232 'namespace_enum namespace' to 'domain_enum domain'.
5233 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5234 Delete old define kludge for namespace.
5236 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5237 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5238 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5239 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5240 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5241 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5242 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5243 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5244 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5245 occurrences of the above.
5247 2003-05-14 Ian Lance Taylor <ian@airs.com>
5249 * Makefile.in (install-only): Use $(SHELL) when running
5252 2003-05-13 Ian Lance Taylor <ian@airs.com>
5254 * MAINTAINERS (write after approval): Add myself.
5256 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5257 second and third arguments.
5258 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5259 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5261 2003-05-13 Andrew Cagney <cagney@redhat.com>
5263 * defs.h (store_address): Delete declaration.
5264 findvar.c (store_address): Delete function.
5265 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5266 store_unsigned_integer.
5267 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5268 * v850-tdep.c (v850_push_arguments): Ditto.
5269 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5270 * sh-tdep.c (sh64_get_saved_register): Ditto.
5271 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5272 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5273 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5274 (mips_get_saved_register): Ditto.
5275 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5276 (find_func_descr, ia64_push_arguments): Ditto.
5277 * i386-tdep.c (i386_push_arguments): Ditto.
5278 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5279 * frv-tdep.c (frv_push_arguments): Ditto.
5280 * frame.c (legacy_saved_regs_prev_register): Ditto.
5281 (deprecated_generic_get_saved_register): Ditto.
5282 * findvar.c (unsigned_address_to_pointer): Ditto.
5283 * dwarf2read.c (dwarf2_const_value): Ditto.
5284 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5285 * alpha-tdep.c (alpha_push_arguments): Ditto.
5287 2003-05-12 J. Brobecker <brobecker@gnat.com>
5289 * NEWS: Mention that the hppa-hpux port has been partially
5290 multiarched (32bit ABIT only, so far).
5292 2003-05-11 Andrew Cagney <cagney@redhat.com>
5294 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5295 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5296 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5297 sim/testsuite/sim/arm/misaligned2.ms, and
5298 sim/testsuite/sim/arm/misaligned3.ms.
5299 * disasm.h (struct ui_file): Add opaque struct declaration.
5300 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5301 * frame.h (struct ui_file): Ditto.
5303 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5305 * value.h: Pretty print.
5307 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5309 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5311 2003-05-08 Andrew Cagney <cagney@redhat.com>
5313 * regcache.h (max_register_size): Delete declaration.
5314 * regcache.c (max_register_size): Delete function.
5315 (struct regcache_descr): Delete field "max_register_size".
5316 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5317 registers fit in MAX_REGISTER_SIZE.
5318 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5319 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5320 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5321 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5322 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5323 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5324 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5325 * dve3900-rom.c, hppa-tdep.c: Ditto.
5327 2003-05-08 David Carlton <carlton@math.stanford.edu>
5329 * valops.c (push_word): Fix typo.
5331 2003-05-08 Andrew Cagney <cagney@redhat.com>
5333 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5334 * gdbarch.h: Re-generate.
5335 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5336 (legacy_max_register_raw_size): Delete declaration.
5337 * regcache.c (legacy_max_register_raw_size): Delete function.
5338 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5339 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5340 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5341 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5342 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5343 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5344 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5345 * findvar.c, dwarf2cfi.c: Ditto.
5347 2003-05-08 Andrew Cagney <cagney@redhat.com>
5349 * mips-tdep.c (read_signed_register): New function, moved to here
5351 (read_signed_register_pid): Ditto.
5352 * regcache.c (read_signed_register_pid): Delete function, moved to
5354 (read_signed_register): Ditto.
5355 * regcache.h (read_signed_register): Delete declaration.
5356 (read_signed_register_pid): Delete declaration.
5358 2003-05-08 Andrew Cagney <cagney@redhat.com>
5360 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5361 * gdbarch.h: Re-generate.
5362 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5363 (legacy_max_register_virtual_size): Delete declaration.
5364 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5365 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5366 * tracepoint.c (memrange_sortmerge): Ditto.
5367 * sparc-tdep.c (sparc_print_registers): Ditto.
5368 * regcache.c (legacy_max_register_virtual_size): Delete function.
5370 2002-05-08 J. Brobecker <brobecker@gnat.com>
5372 * fork-child.c (escape_bang_in_quoted_argument): New function.
5373 (fork_inferior): Escape '!' characters in quoted arguments
5376 2003-05-08 J. Brobecker <brobecker@gnat.com>
5378 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5379 the language of the CU is not currently supported by GDB.
5381 2003-05-08 J. Brobecker <brobecker@gnat.com>
5383 * defs.h (language): Add language_minimal enum value.
5384 * c-lang.c (minimal_language_defn): New language definition.
5385 (_initialize_c_language): Add the new minimal language to the list
5386 of languages known to GDB.
5388 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5390 * frame.c (get_frame_type): Don't attempt to lazily initialize
5391 frame's unwinder for legacy frames.
5393 2003-05-07 Andrew Cagney <cagney@redhat.com>
5395 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5396 and "regcache" parameters.
5397 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5399 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5401 * dwarf2read.c (dwarf_decode_lines): Only use output of
5402 check_cu_functions() when calling record_line(). Do not update
5403 the current address.
5405 2003-05-07 Andrew Cagney <cagney@redhat.com>
5407 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5410 2003-05-07 Jim Blandy <jimb@redhat.com>
5412 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5413 'maint info symtabs' and 'maint info psymtabs'.
5414 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5415 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5416 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5417 Declarations updated.
5418 * maint.c (maintenance_list_command): Delete.
5419 (_initialize_maint_cmds): Update calls to add_cmd.
5420 * gdbcmd.h (maintenancelistlist): Delete declaration.
5421 * cli/cli-cmds.c (maintenancelistlist): Delete.
5422 (init_cmd_lists): Don't initialize it.
5423 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5425 2003-05-07 Andrew Cagney <cagney@redhat.com>
5427 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5429 (d10v_print_registers_info): Update.
5430 (d10v_dmap_register, d10v_imap_register): Delete functions.
5431 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5432 and "imap_register".
5433 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5434 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5435 * arch-utils.c (generic_remote_translate_xfer_address): Add
5436 "regcache" and "gdbarch" parameters.
5437 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5438 parameter. Change class to multi-arch.
5439 * gdbarch.h, gdbarch.c: Re-generate.
5440 * remote.c (remote_xfer_memory): Use
5441 gdbarch_remote_translate_xfer_address.
5443 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5445 * infrun.c (prev_pc): Move declaration ahead of proceed().
5446 (proceed): Refresh prev_pc value before resuming.
5447 (stop_stepping): Remove code to refresh prev_pc.
5449 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5451 * nto-tdep.c: Removed stray comment.
5453 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5455 * i386-nto-tdep.c: Fix old K&R function definitions.
5456 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5457 Also change add_show_from_set() call to add_setshow_cmd().
5458 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5460 2003-05-05 Andrew Cagney <cagney@redhat.com>
5462 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5463 (fprint_dummy_frames): New function.
5464 (maintenance_print_dummy_frames): New function.
5465 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5466 * frame.c (fprint_frame_id): Make global.
5467 * frame.h (fprint_frame_id): Declare.
5468 * Makefile.in (dummy-frame.o): Update dependencies.
5470 2003-05-05 Andrew Cagney <cagney@redhat.com>
5472 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5473 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5474 SIZEOF_CALL_DUMMY_WORDS.
5475 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5476 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5477 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5478 CALL_DUMMY_BREAKPOINT_OFFSET.
5479 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5480 CALL_DUMMY_START_OFFSET.
5481 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5482 * gdbarch.h, gdbarch.c: Re-generate.
5483 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5484 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5485 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5486 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5487 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5488 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5489 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5490 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5491 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5492 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5493 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5494 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5495 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5496 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5497 * config/sparc/tm-sparc.h: Update.
5499 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5501 * configure.tgt: Add i[3456]86-*-nto*.
5502 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5503 * nto-tdep.c: New file. Neutrino target support routines.
5504 * nto-tdep.h: New file. Neutrino target header.
5505 * config/tm-qnxnto.h: New file.
5506 * config/i386/i386nto.mt: New file.
5507 * config/i386/tm-i386nto.h: New file.
5509 2003-05-04 Andrew Cagney <cagney@redhat.com>
5511 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5512 (load_infrun_state): Ditto.
5513 (struct thread_info): Drop "prev_func_name" field.
5514 * thread.c (load_infrun_state): Update.
5515 (save_infrun_state): Update.
5516 * infrun.c (prev_func_name): Delete variable.
5517 (init_wait_for_inferior): Do not clear prev_func_name.
5518 (stop_stepping, keep_going, context_switch): Do not swap
5520 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5521 instead of PC_IN_SIGTRAMP.
5523 2003-05-04 Andrew Cagney <cagney@redhat.com>
5525 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5526 REGISTER_BYTE with register_offset_hack.
5527 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5528 that REGISTER_BYTE is consistent with the regcache.
5529 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5530 * gdbarch.h, gdbarch.c: Regenerate.
5532 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5534 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5535 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5537 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5539 2003-05-03 J. Brobecker <brobecker@gnat.com>
5541 From Thierry Schneider <tpschneider1@yahoo.com>
5542 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5543 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5544 (mi-cmd-symbol.o): Add rule.
5546 2003-05-03 Andrew Cagney <cagney@redhat.com>
5548 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5549 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5550 * gdbarch.h, gdbarch.c: Re-generate.
5551 * d10v-tdep.c (d10v_push_dummy_code): New function.
5552 (d10v_gdbarch_init): Set push_dummy_code.
5553 * infcall.c (legacy_push_dummy_code): New function.
5554 (generic_push_dummy_code): New function.
5555 (push_dummy_code): New function.
5556 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5557 instead of dummy_addr, to push_dummy_call. Move call to
5558 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5560 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5562 2003-05-03 Andrew Cagney <cagney@redhat.com>
5564 * disasm.h (print_insn): Declare.
5565 * disasm.c (init_gdb_disassemble_info): New function.
5566 (gdb_disassembly): Call init_gdb_disassemble_info.
5567 (gdb_print_insn): New function.
5568 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5569 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5570 * mcore-tdep.c: Include "disasm.h"
5571 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5572 * d10v-tdep.c: Include "disasm.h".
5573 (display_trace): Call gdb_print_insn, instead of print_insn.
5574 (print_insn): Delete function.
5575 * printcmd.c: Include "disasm.h".
5576 (print_insn): Delete function.
5577 (print_formatted): Call gdb_print_insn, instead of print_insn.
5578 * Makefile.in (printcmd.o): Update dependencies.
5579 (mcore-tdep.o, d10v-tdep.o): Ditto.
5581 2003-05-02 Andrew Cagney <cagney@redhat.com>
5583 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5584 PC_REGNUM, re-indent.
5585 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5586 PC_REGNUM isn't set.
5588 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5589 * gdbarch.h, gdbarch.c: Re-generate.
5590 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5591 register_virtual_size, pc_regnum, or register_bytes.
5592 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5593 (d10v_register_type): Use D10V_PC_REGNUM.
5594 (d10v_print_registers_info, d10v_read_pc): Ditto.
5595 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5596 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5598 2003-05-02 David Carlton <carlton@bactrian.org>
5600 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5601 the name with mstrsave.
5603 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5605 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5606 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5607 (host_charset_name, target_charset_name): New vars for use by
5609 (host_charset_enum, target_charset_enum): New enums for set/show
5611 (set_charset_sfunc, set_host_charset_sfunc,
5612 set_target_charset_sfunc): New functions.
5613 (set_host_charset, set_target_charset): Make static.
5614 (list_charsets, set_host_charset_command,
5615 set_target_charset_command): Delete functions.
5616 (show_charset_command): Rewrite as....
5617 (show_charset): Hook this up with the set/show command mechanism.
5618 (_initialize_charset): Change names of charsets to match the
5619 set/show enums. Use host_charset_name and target_charset_name.
5620 Use set/show mechanism for charset, host-charset, target-charset
5621 commands. Do not make 'show host-charset' and 'show
5622 target-charset' be aliases of 'show charset'.
5624 * charset.h (set_host_charset, set_target_charset): Don't export,
5625 they are not used outside the file.
5627 2003-05-01 Andrew Cagney <cagney@redhat.com>
5629 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5630 (gdb_disassembly): Make "di" non static, always initialize and
5631 cleanup. Always use dis_asm_read_memory.
5632 (gdb_dis_asm_read_memory): Delete function.
5634 2003-05-01 Andrew Cagney <cagney@redhat.com>
5636 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5637 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5639 2003-04-30 Andrew Cagney <cagney@redhat.com>
5641 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5642 "tm_print_insn_info".
5643 (TARGET_PRINT_INSN_INFO): Delete macro.
5644 (dis_asm_read_memory): Delete function declaration.
5645 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5646 (tm_print_insn_info): Delete variable definition.
5647 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5648 * gdbarch.h, gdbarch.c: Re-generate.
5649 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5650 "deprecated_tm_print_insn_info".
5651 * mcore-tdep.c (mcore_dump_insn): Ditto.
5652 * mips-tdep.c (mips_gdbarch_init): Ditto.
5653 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5654 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5655 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5656 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5657 instead of TARGET_PRINT_INSN_INFO, add comment.
5658 * s390-tdep.c (s390_get_frame_info): Instead of
5659 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5660 (s390_check_function_end, s390_is_sigreturn): Ditto.
5661 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5662 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5663 * disasm.c: Include "gdbcore.h".
5664 (_initialize_disasm): New function, initialize
5665 "deprecated_tm_print_insn_info".
5666 (deprecated_tm_print_insn_info): New variable.
5667 (dis_asm_read_memory): Moved from "corefile.c", made static.
5668 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5669 * Makefile.in (disasm.o): Update dependencies.
5671 2003-04-30 Andrew Cagney <cagney@redhat.com>
5673 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5675 2003-04-29 Adam Fedor <fedor@gnu.org>
5677 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5678 * infcall.c (find_function_addr): Make non-static.
5679 * infcall.h (find_function_addr): Declare.
5680 * Makefile.in (eval.o): Update dependencies.
5682 2003-04-28 Adam Fedor <fedor@gnu.org>
5684 * symtab.c (symbol_find_demangled_name): Check for and demangle
5686 (symbol_init_demangled_name): Init for language_objc as well.
5688 2003-04-28 Andrew Cagney <cagney@redhat.com>
5690 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5691 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5692 * gdbarch.h, gdbarch.c: Re-generate.
5693 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5694 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5695 * inferior.h (deprecated_read_fp): Rename read_fp.
5696 (generic_target_read_fp): Delete declaration.
5697 * regcache.c (generic_target_read_fp): Delete function.
5698 (deprecated_read_fp): Replace read_fp, use
5699 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5700 * d10v-tdep.c (d10v_read_fp): Delete function.
5701 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5703 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5704 deprecated_target_read_fp to generic_target_read_fp.
5705 * sh-tdep.c (sh_gdbarch_init): Ditto.
5706 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5708 * frv-tdep.c (frv_gdbarch_init): Ditto.
5710 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5711 deprecated_fp_regnum.
5712 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5713 * vax-tdep.c (vax_gdbarch_init): Ditto.
5714 * v850-tdep.c (v850_gdbarch_init): Ditto.
5715 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5716 * sh-tdep.c (sh_gdbarch_init): Ditto.
5717 * s390-tdep.c (s390_gdbarch_init): Ditto.
5718 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5719 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5720 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5721 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5723 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5724 * i386-tdep.c (i386_gdbarch_init): Ditto.
5725 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5726 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5727 * frv-tdep.c (frv_gdbarch_init): Ditto.
5728 * cris-tdep.c (cris_gdbarch_init): Ditto.
5729 * avr-tdep.c (avr_gdbarch_init): Ditto.
5730 * arm-tdep.c (arm_gdbarch_init): Ditto.
5731 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5733 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5734 * v850-tdep.c (v850_gdbarch_init): Ditto.
5735 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5736 * sh-tdep.c (sh_gdbarch_init): Ditto.
5737 * s390-tdep.c (s390_gdbarch_init): Ditto.
5738 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5739 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5740 * mips-tdep.c (mips_gdbarch_init): Ditto.
5741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5742 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5743 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5744 * frv-tdep.c (frv_gdbarch_init): Ditto.
5745 * avr-tdep.c (avr_gdbarch_init): Ditto.
5746 * arm-tdep.c (arm_gdbarch_init): Ditto.
5748 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5749 DEPRECATED_FP_REGNUM.
5750 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5751 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5752 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5753 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5754 (sparc32_register_virtual_type): Ditto.
5755 * sh-tdep.c (sh64_frame_chain): Ditto.
5756 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5757 (sh_nofp_frame_init_saved_regs): Ditto.
5758 (sh64_nofp_frame_init_saved_regs): Ditto.
5759 (sh_fp_frame_init_saved_regs): Ditto.
5760 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5761 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5762 * procfs.c (procfs_fetch_registers): Ditto.
5763 (procfs_store_registers): Ditto.
5764 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5765 (store_inferior_registers, fetch_core_registers): Ditto.
5766 (fetch_kcore_registers, clear_regs): Ditto.
5767 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5768 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5769 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5770 * nlm/i386.c (do_status): Ditto.
5771 * mipsv4-nat.c (supply_gregset): Ditto.
5772 * mips-tdep.c: Ditto for comments.
5773 * mips-nat.c (fetch_inferior_registers): Ditto.
5774 (store_inferior_registers, fetch_core_registers): Ditto.
5775 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5776 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5777 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5778 (i386_do_pop_frame, i386_register_type): Ditto.
5779 * hppa-tdep.c (hppa_frame_chain): Ditto.
5780 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5781 (hppa_pop_frame, hppa_read_fp): Ditto.
5782 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5783 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5784 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5785 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5786 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5787 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5788 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5789 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5790 * blockframe.c: Ditto for comments.
5791 * arch-utils.h: Ditto for comments.
5792 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5793 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5794 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5795 * alpha-tdep.h: Ditto for comments.
5796 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5797 (alpha_cannot_store_register): Ditto.
5798 (alpha_push_dummy_frame): Ditto.
5799 * alpha-nat.c (supply_gregset): Ditto.
5801 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5802 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5803 * config/sparc/tm-sparc.h: Update comment.
5805 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5806 deprecated_read_fp instead of TARGET_READ_FP.
5807 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5808 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5809 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5810 deprecated_read_fp instead of read_fp.
5811 * s390-tdep.c (s390_push_arguments): Ditto.
5812 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5813 * frame.h: Ditto in comments.
5814 * frame.c (legacy_get_prev_frame): Ditto.
5815 * dummy-frame.c (dummy_frame_this_id): Ditto.
5816 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5818 2003-04-28 Andrew Cagney <cagney@redhat.com>
5820 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5821 * gdbarch.h, gdbarch.c: Re-generate.
5822 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5823 * vax-tdep.c (_initialize_vax_tdep): Update.
5824 * v850-tdep.c (_initialize_v850_tdep): Update.
5825 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5826 * s390-tdep.c (_initialize_s390_tdep): Update.
5827 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5828 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5829 * mips-tdep.c (_initialize_mips_tdep): Update.
5830 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5831 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5832 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5833 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5834 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5835 * frv-tdep.c (_initialize_frv_tdep): Update.
5836 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5837 (_initialize_cris_tdep): Update.
5838 * arch-utils.c (legacy_print_insn): Update.
5839 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5841 2003-04-26 Adam Fedor <fedor@gnu.org>
5843 * linespec.c (decode_objc): New function to decode ObjC calls
5844 (decode_line_1): Check for ObjC calls (using decode_objc)
5845 * Makefile (linespec.o): Update dependencies.
5847 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5849 * breakpoint.h (struct breakpoint_ops): New.
5850 (struct breakpoint): Add ops member.
5852 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5853 (mention): Use new breakpoint ops member.
5854 (set_raw_breakpoint): Initialize ops field to NULL.
5855 (print_exception_catchpoint, print_one_exception_catchpoint)
5856 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5857 (gnu_v3_exception_catchpoint_ops): New.
5858 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5860 2003-04-25 Adam Fedor <fedor@gnu.org>
5862 * Makefile.in (COMMON_OBS): Add objc-lang.o
5864 2003-04-25 Andrew Cagney <cagney@redhat.com>
5866 * d10v-tdep.c (print_insn): Delete function.
5867 (display_trace): Use TARGET_PRINT_INSN.
5868 (_initialize_d10v_tdep): Do not set tm_print_insn.
5869 (d10v_gdbarch_init): Set print_insn.
5871 2003-04-25 Andrew Cagney <cagney@redhat.com>
5873 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5874 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5875 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5876 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5877 (nr_dmap_regs, a0_regnum): ... new functions.
5878 (d10v_print_registers_info): Use a0_regnum, use register_size.
5879 (d10v_register_byte): Delete function.
5880 (d10v_register_raw_size): Delete function.
5881 (d10v_register_type): Use a0_regnum.
5882 (d10v_print_registers_info): Use a0_regnum.
5883 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5884 (d10v_gdbarch_init): Do not set register_byte or
5885 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5886 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5888 (trace_command): Use XCALLOC.
5889 (print_insn): Delete reference to tm_print_insn.
5890 (saved_regs_unwinder): Use store_unsigned_integer instead of
5892 * frame.h (FRAME_OBSTACK_CALLOC): Define
5894 2003-04-25 David Carlton <carlton@bactrian.org>
5896 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5898 2003-04-24 Adam Fedor <fedor@gnu.org>
5900 * objc-lang.c: Include "valprint.h"
5901 * Makefile.in (objc-lang.o): Update dependencies.
5903 2003-04-24 Adam Fedor <fedor@gnu.org>
5905 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5906 architecture dependant compilation and mark as unimplemented
5907 (until they get put in the gdbarch vector).
5909 2003-04-23 David Carlton <carlton@bactrian.org>
5911 * cp-support.c (cp_find_first_component): Accept 'operator' in
5914 2003-04-23 Andrew Cagney <cagney@redhat.com>
5916 * infcall.c (call_function_by_hand): Eliminate redundant
5917 indentation. Move "saved_async" and "old_cleanups" to where they
5920 2003-04-23 Andrew Cagney <cagney@redhat.com>
5922 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5923 and "buffer". Move the "name" code to where it is needed.
5925 2003-04-23 Andrew Cagney <cagney@redhat.com>
5927 * infcall.c (call_function_by_hand): Move variables "start_sp",
5928 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5929 code to ON_STACK switch branch.
5931 2003-04-23 Andrew Cagney <cagney@redhat.com>
5933 * infcall.c (call_function_by_hand): Make declaration of "i",
5934 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5937 2003-04-23 Andrew Cagney <cagney@redhat.com>
5939 * infcall.c (call_function_by_hand): Delete variable
5940 "n_method_args". Localize "param_type"'s declaration to the loop
5941 that it is used. Reinstate code assigning to said variable -
5942 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5943 Rationalize code using "param_type".
5945 2003-04-22 Andrew Cagney <cagney@redhat.com>
5947 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5948 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5949 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5950 to DEPRECATED_PUSH_RETURN_ADDRESS.
5952 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5954 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5955 on the DWARF2 register number prior to fetching a register.
5957 2003-04-22 J. Brobecker <brobecker@gnat.com>
5959 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5960 Update all the tests using SOFT_FLOAT considering the fact that
5961 this macro was always set to 0.
5962 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5963 considering the fact that this macro was always set to 0.
5964 * hppa-tdep.h (hppa_store_return_value): Likewise.
5965 (hppa_extract_return_value): Likewise.
5967 2003-04-22 J. Brobecker <brobecker@gnat.com>
5969 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5970 the hppa-pro target only.
5972 2003-04-21 J. Brobecker <brobecker@gnat.com>
5974 Ongoing multi-arch conversion effort for HP/UX:
5975 * config/pa/tm-hppa.h: Move all macro that are no longer
5976 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5977 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5979 2003-04-21 J. Brobecker <brobecker@gnat.com>
5981 * config/pa/tm-hppa.h: Obsolete a section that was only used
5984 2003-04-21 J. Brobecker <brobecker@gnat.com>
5986 Ongoing multi-arch conversion for HP/UX.
5987 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5988 if already defined (allows hppa64 to stay non-multiarched for now).
5989 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5991 2003-04-21 Andrew Cagney <cagney@redhat.com>
5993 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5995 2003-04-21 Andrew Cagney <cagney@redhat.com>
5997 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5998 "i386_num_mmx_regs".
6000 2003-04-21 Andrew Cagney <cagney@redhat.com>
6002 * infcall.c: New file.
6003 * infcall.h: New file.
6004 * valarith.c: Include "infcall.h".
6005 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6006 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6007 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6008 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6009 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6010 (SFILES): Add "infcall.c"
6011 (COMMON_OBS): Add "infcall.o".
6012 (infcall.o): Specify dependencies.
6013 * value.h (call_function_by_hand): Delete declaration.
6014 * inferior.h (run_stack_dummy): Delete declaration.
6015 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6016 (run_stack_dummy): Move to "infcall.c", merged into
6017 call_function_by_hand.
6018 * valops.c (call_function_by_hand): Moved to "infcall.c".
6019 (find_function_addr, value_arg_coerce): Ditto.
6020 (unwindonsignal_p, coerce_float_to_double): Ditto.
6021 (_initialize_valops): Move "set/show coerce-float-to-double", and
6022 "set/show unwindonsignal" commands to "infcall.c".
6023 * v850-tdep.c, target.h: Update comments.
6024 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6025 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6026 (sh64_init_extra_frame_info): Update comments.
6027 * mn10300-tdep.c: Update comments.
6028 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6029 * config/sparc/tm-sparc.h: Update comments.
6030 * breakpoint.h: Update comments.
6031 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6032 * arm-tdep.c: Update comment.
6034 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6036 * i386-tdep.c (i386_num_register_names): New variable.
6037 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6038 (MM0_REGNUM): Remove redundant parentheses in define.
6039 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6040 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6041 i386_mxcsr_regnum_p): Remove redundant parentheses.
6042 (i386_register_name): Use i386_num_register_names.
6044 * i386-tdep.c (i386_extract_return_value,
6045 i386_store_return_value): Correct check for availability of
6046 floating-point registers.
6048 * i386-tdep.c (i386_frame_num_args): Remove function.
6049 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6051 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6052 mmx_regnum_to_fp_regnum. Adjust all callers.
6054 * i386-tdep.c (i386_get_longjmp_target): Use
6055 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6056 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6059 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6061 * core-regset.c: Update comments to reflect reality. Re-order
6063 (fetch_core_registers): Use switch instead of if. Remove
6064 redundant prototype.
6066 2003-04-18 Jim Blandy <jimb@redhat.com>
6068 * s390-tdep.c (s390_frame_align): New function.
6069 (s390_gdbarch_init): Register it with the gdbarch object.
6071 2003-04-17 Richard Henderson <rth@redhat.com>
6073 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6075 2003-04-17 Michael Snyder <msnyder@redhat.com>
6076 Karen Bennet <bennet@redhat.com>
6078 Committed by Elena Zannoni <ezannoni@redhat.com>
6079 * gdb_gcore.sh: New script to create a core dump of a process.
6081 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6083 * values.c (value_being_returned): Don't fetch the return
6084 value if the return type is void.
6086 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6088 * thread-db.c: Reindented.
6090 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6092 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6093 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6120 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6122 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6123 the size of ``long double'' to 16, instead of 8.
6125 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6127 * i386-linux-nat.c: Add some whitespace to make things more
6129 (fetch_register, store_register, fetch_inferior_registers,
6130 store_inferior_registers): Get rid of assignment in if-statement.
6131 (store_register): Fix typo in error message.
6133 2003-04-16 Andrew Cagney <cagney@redhat.com>
6135 * utils.c (xmmalloc): Always allocate something, matches
6136 libiberty/xmalloc's semantics.
6137 (xmrealloc, xmcalloc): Ditto.
6139 2003-04-16 Andrew Cagney <cagney@redhat.com>
6141 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6143 (get_frame_type): Initialize unwind and type when needed.
6144 (get_frame_id, frame_register_unwind): Ditto.
6146 2003-04-16 Andrew Cagney <cagney@redhat.com>
6148 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6150 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6151 * sparcl-stub.c: Obsolete file.
6152 * config/sparc/tm-sparclet.h: Obsolete file.
6153 * sparclet-stub.c: Obsolete file.
6154 * sparclet-rom.c: Obsolete file.
6155 * sparcl-tdep.c: Obsolete file.
6156 * config/sparc/tm-sparclite.h: Obsolete file.
6157 * config/sparc/sparclite.mt: Obsolete file.
6158 * config/sparc/sparclet.mt: Obsolete file.
6159 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6160 sparc86x-*-* obsolete.
6162 2003-04-15 David Carlton <carlton@math.stanford.edu>
6164 * Makefile.in (SFILES): Add cp-namespace.c.
6165 (COMMON_OBS): Add cp-namespace.o.
6166 (block.o): Depend on gdb_obstack_h and cp_support_h.
6167 (buildsym.o): Depend on cp_support_h.
6168 (cp-namespace.o): New.
6169 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6170 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6171 (dwarf2read.o): Depend on cp_support_h.
6172 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6173 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6174 processing_current_namespace.
6175 (read_namespace): Update processing_current_namespace; check for
6176 anonymous namespaces.
6177 (dwarf2_name): New function.
6178 (dwarf2_extension): Ditto.
6179 * cp-support.h: Update copyright, contributors.
6180 Add inclusion guards.
6181 Add opaque declaration for structs obstack, block, symbol.
6182 (struct using_direct): New struct.
6183 Add declarations for cp_find_first_component,
6184 cp_entire_prefix_len, processing_has_namespace_info,
6185 processing_current_namespace, cp_is_anonymous,
6186 cp_add_using_directive, cp_initialize_namespace,
6187 cp_finalize_namespace, cp_set_block_scope,
6188 cp_scan_for_anonymous_namespaces.
6189 * cp-namespace.c: New file.
6190 * cp-support.c: Update copyright.
6191 Include ctype.h, gdb_assert.h, gdbcmd.h.
6192 New variable maint_cplus_cmd_list.
6193 (cp_find_first_component): New function.
6194 (cp_entire_prefix_len, maint_cplus_command)
6195 (first_component_command, _initialize_cp_support): Ditto.
6196 * buildsym.c: Include cp-support.h.
6197 New variable using_list.
6198 (add_symbol_to_list): Check for anonymous namespaces.
6199 (finish_block): Set block's scope.
6200 (start_symtab): Initialize C++ namespace support.
6201 (end_symtab): Finalize C++ namespace support.
6202 * block.h: Add opaque declarations for structs
6203 block_namespace_info, using_direct, and obstack.
6204 Add declarations for block_set_scope and block_set_using.
6205 (struct block): Add 'language_specific' member.
6206 (BLOCK_NAMESPACE): New macro.
6207 * block.c: Include gdb_obstack.h and cp-support.h.
6208 (struct block_namespace_info): New struct.
6209 (block_set_scope): New function.
6210 (block_set_using, block_initialize_namespace): Ditto.
6212 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6214 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6215 (locate_base): Return early if there aren't any link map offsets.
6216 (svr4_solib_create_inferior_hook): Warn if shared library support
6219 2003-04-14 David Carlton <carlton@math.stanford.edu>
6221 * symtab.c (symbol_set_names): Add prefix when storing Java names
6222 in hash table. Fix for PR java/1039.
6224 2003-04-14 David Carlton <carlton@math.stanford.edu>
6226 * symtab.c (symbol_set_names): Rename 'name' arg to
6227 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6228 * symtab.h: Change 'name' argument in declaration of
6229 symbol_set_names to 'linkage_name'.
6230 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6232 2003-04-14 Andrew Cagney <cagney@redhat.com>
6234 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6235 return the fully sign-extended register value.
6236 (get_frame_pointer): Ditto.
6237 (mips_pop_frame): Initialize "proc_desc" after checking for a
6240 2003-04-14 Andrew Cagney <cagney@redhat.com>
6242 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6243 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6244 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6245 (mips_push_register): Delete function.
6246 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6249 2003-04-14 Jim Blandy <jimb@redhat.com>
6251 * symmisc.c: #include "gdb_regex.h".
6252 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6254 * maint.c (maintenance_list_command): New function.
6255 (_initialize_maint_cmds): Register the above as commands.
6256 * symtab.h (maintenance_list_symtabs,
6257 maintenance_list_psymtabs): New declarations.
6258 * cli/cli-cmds.c (maintenancelistlist): New variable.
6259 (init_cmd_lists): Initialize it.
6260 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6261 * gdbcmd.h (maintenancelistlist): New declaration.
6262 * Makefile.in (symmisc.o): Update dependencies.
6264 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6266 * s390-nat.c: Include asm/types.h for addr_t.
6268 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6270 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6271 actually incoming type.
6273 2003-04-13 Andrew Cagney <cagney@redhat.com>
6275 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6276 get_next_frame and get_frame_saved_regs.
6278 2003-04-13 Andrew Cagney <cagney@redhat.com>
6280 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6281 of gdbarch_num_regs.
6283 2003-04-13 Andrew Cagney <cagney@redhat.com>
6285 * frame.h: Mention what replaced what in "struct frame_info".
6286 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6287 deprecated_update_frame_base_hack and
6288 deprecated_update_frame_pc_hack.
6289 * hppa-tdep.c: Ditto.
6291 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6293 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6294 to read_reg and update its comment. Remove regnum member.
6295 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6296 Don't call read_reg when setting in_reg. Call read_reg to get
6297 the frame base if it's in a register. Return the register number
6298 on the stack instead of in the context. Remove extra arguments
6300 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6301 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6302 the register number on the expression stack.
6303 (needs_frame_read_reg): Remove extra arguments.
6305 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6307 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6309 (execute_stack_op): All callers updated.
6310 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6311 * dwarf2loc.c (find_location_expression): New function.
6312 (dwarf_expr_frame_base): Call it.
6313 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6314 (dwarf2_tracepoint_var_ref): New function, broken out from
6315 locexpr_tracepoint_var_ref.
6316 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6318 (loclist_read_variable, loclist_read_needs_frame): New functions.
6319 (loclist_describe_location, loclist_tracepoint_var_ref): New
6321 (dwarf2_loclist_funcs): New struct location_funcs.
6322 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6323 (struct dwarf2_locexpr_baton): Add comments.
6324 (dwarf2_loclist_funcs): New extern.
6325 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6326 base_address and base_known.
6327 (dwarf_loc_buffer): New variable.
6328 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6329 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6330 (dwarf2_has_info): Initialize dwarf_loc_offset.
6331 (dwarf2_build_psymtabs): Read in .debug_loc.
6332 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6334 (psymtab_to_symtab_1): Likewise. Move base address calculation
6336 (dwarf2_get_pc_bounds): ... here. Use the base address from
6338 (dwarf2_symbol_mark_computed): Handle location lists.
6340 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6342 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6343 if the linkage name demangled successfully.
6345 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6347 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6348 disassmbly_flavour): Removed.
6350 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6352 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6354 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6356 2003-04-12 Andrew Cagney <cagney@redhat.com>
6358 * frame.h (struct frame_info): Move definition from here ...
6359 * frame.c (struct frame_info): ... to here.
6361 2003-04-12 Andrew Cagney <cagney@redhat.com>
6363 * gdbthread.h (save_infrun_state): Delete parameter
6365 (struct thread_info): Delete field "prev_func_start".
6366 (load_infrun_state): Ditto.
6367 * thread.c (load_infrun_state, save_infrun_state): Update.
6368 * infrun.c (prev_func_start): Delete variable.
6369 (context_switch, init_wait_for_inferior): Update.
6370 (stop_stepping, keep_going): Update.
6372 2003-04-12 Andrew Cagney <cagney@redhat.com>
6374 * gdbarch.sh: Add missing opaque declarations.
6375 * gdbarch.h: Regnerate.
6376 * symtab.h: Add missing opaque declarations.
6377 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6378 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6379 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6380 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6381 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6382 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6383 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6384 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6385 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6386 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6387 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6388 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6389 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6391 2003-04-11 Andrew Cagney <cagney@redhat.com>
6393 * frame.c (get_frame_id): Return this frame's "id".
6394 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6396 (legacy_saved_regs_this_id): Replace function body with
6398 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6399 FRAME_OBSTACK_ZALLOC.
6400 (create_new_frame): Mark the frame ID as valid.
6402 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6404 * Makefile.in (libbfd_h): Added missing setting.
6405 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6406 according to the selected ABI.
6408 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6410 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6412 2003-04-11 Andrew Cagney <cagney@redhat.com>
6414 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6415 SAVED_PC_AFTER_CALL.
6416 * gdbarch.h, gdbarch.c: Regenerate.
6417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6418 * x86-64-tdep.c (x86_64_init_abi): Update.
6419 * vax-tdep.c (vax_gdbarch_init): Update.
6420 * v850-tdep.c (v850_gdbarch_init): Update.
6421 * sparc-tdep.c (sparc_gdbarch_init): Update.
6422 * sh-tdep.c (sh_gdbarch_init): Update.
6423 * s390-tdep.c (s390_gdbarch_init): Update.
6424 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6425 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6426 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6427 * mips-tdep.c (mips_gdbarch_init): Update.
6428 * mcore-tdep.c (mcore_gdbarch_init): Update.
6429 * m68k-tdep.c (m68k_gdbarch_init): Update.
6430 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6431 * ia64-tdep.c (ia64_gdbarch_init): Update.
6432 (ia64_saved_pc_after_call): Update declaration.
6433 * i386ly-tdep.c (i386lynx_init_abi): Update.
6434 * i386-tdep.c (i386_gdbarch_init): Update.
6435 * hppa-tdep.c (hppa_gdbarch_init): Update.
6436 * h8300-tdep.c (h8300_gdbarch_init): Update.
6437 * frv-tdep.c (frv_gdbarch_init): Update.
6438 * cris-tdep.c (cris_gdbarch_init): Update.
6439 * avr-tdep.c (avr_gdbarch_init): Update.
6440 * arm-tdep.c (arm_gdbarch_init): Update.
6441 * alpha-tdep.c (alpha_gdbarch_init): Update.
6442 * ns32knbsd-nat.c (frame_num_args): Update.
6443 * ns32k-tdep.c (umax_frame_num_args): Update.
6444 * mips-tdep.c (mips_init_frame_pc_first): Update.
6445 * infrun.c (step_over_function): Update.
6446 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6447 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6448 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6449 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6450 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6451 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6452 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6453 * arch-utils.c (init_frame_pc_default): Update.
6454 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6455 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6458 2003-04-11 Andrew Cagney <cagney@redhat.com>
6460 * i387-tdep.c: Update copyright.
6461 (i387_to_double): Delete function.
6462 (double_to_i387): Delete function.
6464 2003-04-10 Andrew Cagney <cagney@redhat.com>
6466 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6467 frame's function's address. Simplify.
6468 (d10v_frame_unwind_cache): Check that the frame's function is
6471 2003-04-10 Jim Blandy <jimb@redhat.com>
6473 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6474 call to set_gdbarch_deprecated_push_arguments.
6476 2003-04-10 Andrew Cagney <cagney@redhat.com>
6478 * frame.c (fprint_frame_id): New function.
6479 (fprint_frame_type, fprint_frame): New function.
6480 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6481 (create_sentinel_frame, get_frame_id): Ditto.
6482 (frame_id_p, frame_id_eq): Ditto.
6483 (frame_id_inner, create_new_frame): Ditto.
6484 (legacy_get_prev_frame, get_prev_frame): Ditto.
6485 (deprecated_update_frame_pc_hack): Ditto.
6486 (frame_register_unwind): Ditto.
6487 (deprecated_update_frame_base_hack): Ditto.
6489 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6491 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6492 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6493 frame_chain function.
6494 * Makefile.in: Add dependencies due to above change.
6496 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6498 * blockframe.c (legacy_frame_chain_valid): Move call to
6499 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6502 2003-04-09 Andrew Cagney <cagney@redhat.com>
6504 * frame.h (struct frame_id): Replace "pc" and "base" with
6505 "stack_addr" and "code_addr". Update comments.
6506 (frame_id_build): Update parameter names and comment.
6507 (struct frame_info): Replace "id_p" and "id" with "this_id".
6508 * dummy-frame.c (dummy_frame_this_id): Update.
6509 * breakpoint.c (print_one_breakpoint): Update.
6510 * frame.c (get_frame_id): Update.
6511 (get_frame_base, frame_id_build): Update.
6512 (create_sentinel_frame, legacy_get_prev_frame): Update.
6513 (deprecated_update_frame_base_hack): Update.
6514 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6515 (frame_id_inner): Ditto.
6517 2003-04-09 Andrew Cagney <cagney@redhat.com>
6519 * defs.h (gdb_print_host_address): Make "addr" parameter a
6521 * utils.c (gdb_print_host_address): Update.
6523 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6525 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6526 register number for R0 is 0.
6528 2003-04-09 J. Brobecker <brobecker@gnat.com>
6530 * frame.h (struct gdbarch): Add opaque structure definition
6531 to avoid a compilation warning on LynxOS 4.0.
6533 2003-04-09 Andrew Cagney <cagney@redhat.com>
6535 * frame.h (struct frame_info): Delete field "pc". Replace
6536 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6538 * frame.c (frame_pc_unwind): Update.
6539 (create_sentinel_frame): Do not set "pc".
6540 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6541 (get_frame_pc): Call frame_pc_unwind.
6542 (deprecated_update_frame_pc_hack): Update.
6543 (create_new_frame): Use "pc" not "->pc".
6545 2003-04-09 Andrew Cagney <cagney@redhat.com>
6547 * frame.c (get_frame_id): Eliminate code updating "frame".
6548 (legacy_get_prev_frame): Ditto.
6549 (get_frame_base): Return id.base directly.
6550 (deprecated_update_frame_base_hack): Update "id.base".
6551 * frame.h (struct frame_info): Delete field "frame".
6553 2003-04-09 Andrew Cagney <cagney@redhat.com>
6555 * NEWS: Mention that the "Sequent family" is obsolete.
6556 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6557 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6558 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6559 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6560 * config/i386/tm-ptx4.h: Obsolete file.
6561 * config/i386/tm-ptx.h: Obsolete file.
6562 * symm-tdep.c: Obsolete file.
6563 * config/i386/symmetry.mt: Obsolete file.
6564 * config/i386/tm-symmetry.h: Obsolete file.
6565 * symm-nat.c: Obsolete file.
6566 * config/i386/nm-symmetry.h: Obsolete file.
6567 * config/i386/xm-symmetry.h: Obsolete file.
6568 * config/i386/symmetry.mh: Obsolete file.
6569 * config/i386/nm-ptx4.h: Obsolete file.
6570 * config/i386/ptx4.mh: Obsolete file.
6571 * config/i386/ptx.mt: Obsolete file.
6572 * config/i386/ptx.mh: Obsolete file.
6573 * config/i386/xm-ptx4.h: Obsolete file.
6574 * config/i386/xm-ptx.h: Obsolete file.
6576 2003-04-09 Andrew Cagney <cagney@redhat.com>
6578 Obsolete mips*-*-mach3*.
6579 * NEWS: Mention that mips*-*-mach3* is obsolete.
6580 * m3-nat.c: Obsolete file.
6581 * config/nm-m3.h: Obsolete file.
6582 * config/mips/tm-mipsm3.h: Obsolete file.
6583 * config/mips/mipsm3.mt: Obsolete file.
6584 * config/mips/mipsm3.mh: Obsolete file.
6585 * config/mips/xm-mipsm3.h: Obsolete file.
6586 * mipsm3-nat.c: Obsolete file.
6587 * configure.host: Obsolete mips-dec-mach3*.
6588 * configure.tgt: Obsolete mips*-*-mach3*.
6590 2003-04-09 Andrew Cagney <cagney@redhat.com>
6592 * doublest.h: Update copyright.
6593 (deprecated_store_floating, deprecated_extract_floating): Rename
6594 store_floating and extract_floating. Update comments.
6595 * doublest.c: Update copyright.
6596 (extract_floating_by_length): Replace extract_floating.
6597 (store_floating_by_length): Replace store_floating.
6598 (deprecated_extract_floating): New function.
6599 (deprecated_store_floating): New function.
6600 (extract_typed_floating): Call extract_floating_by_length.
6601 (store_typed_floating): Call store_floating_by_length.
6602 * x86-64-tdep.c (x86_64_store_return_value): Update.
6603 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6604 (sh64_extract_return_value): Update.
6605 (sh_sh4_register_convert_to_virtual): Update.
6606 (sh_sh64_register_convert_to_virtual): Update.
6607 (sh_sh4_register_convert_to_raw): Update.
6608 (sh_sh64_register_convert_to_raw): Update.
6609 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6610 (rs6000_register_convert_to_raw): Update.
6611 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6612 (ia64_register_convert_to_raw): Update.
6613 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6614 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6615 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6616 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6617 (alpha_register_convert_to_raw): Update.
6619 2003-04-08 Andrew Cagney <cagney@redhat.com>
6621 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6622 * gdbarch.h, gdbarch.c: Re-generate.
6623 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6624 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6625 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6626 conditionally, use frame_pc_unwind as an alternative. Add
6628 * arch-utils.c (init_frame_pc_default): Only call
6629 SAVED_PC_AFTER_CALL when available.
6631 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6633 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6634 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6635 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6636 (start_remote): Ditto.
6637 (handle_inferior_event): Ditto.
6638 (save_inferior_status): Ditto.
6639 (restore_inferior_status): Ditto.
6640 * infcmd.c (attach_command): Ditto.
6641 * fork-child.c (startup_inferior): Ditto.
6642 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6643 * alpha-tdep.c (heuristic_proc_start): Ditto.
6644 * mips-tdep.c (heuristic_proc_start): Ditto.
6645 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6646 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6647 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6648 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6649 * remote-vx.c (vx_create_inferior): Ditto.
6651 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6653 * infrun.c (stop_soon_quietly): Make it an enum, to better
6654 override the default behavior of handle_inferior_event.
6655 (clear_proceed_status): Update uses of stop_soon_quietly to
6656 reflect that it is now an enum.
6657 (start_remote): Ditto.
6658 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6659 is set to handle the new GNU/Linux kernel behavior for
6660 attach/sigstop. Update uses of stop_soon_quietly.
6661 * inferior.h (enum stop_kind): New enum.
6662 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6663 Reset normal handle_inferior_event behavior, afterwards.
6664 * fork-child.c (startup_inferior): Update.
6665 * alpha-tdep.c (heuristic_proc_start): Update.
6666 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6667 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6668 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6669 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6670 * remote-vx.c (vx_create_inferior): Update.
6671 * mips-tdep.c (heuristic_proc_start): Update.
6673 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6675 * disasm.c (dump_insns): Move variables inside loop, or they will
6676 be freed more than once, causing wild memory corruptions.
6677 (gdb_disassembly): Look for the substring "-thread",
6678 instead of "-threads" in the target name, to make sure to find
6679 the 'multi-thread' target. Also, make sure we do the right thing
6680 with the "core" target.
6682 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6684 * mips-tdep.c (mips_print_fp_register): New function, created from
6685 do_fp_register_row(). Registers are now (also) printed as hex.
6686 Only one register is printed per row.
6687 (mips_print_register, do_fp_register_row): Print floating point
6688 registers with mips_print_fp_register().
6690 2003-04-06 Andrew Cagney <cagney@redhat.com>
6692 * valprint.h (inspect_it): Add extern declaration.
6693 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6694 (selectors_info, classes_info): Ditto.
6695 (find_objc_msgcall): Fix indentation.
6696 (objc_printstr): Delete extern declarations.
6698 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6700 2003-04-06 Andrew Cagney <cagney@redhat.com>
6702 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6704 * frame.c (legacy_saved_regs_this_id): Update.
6705 (legacy_get_prev_frame): Update.
6706 * xstormy16-tdep.c: Update comment.
6707 * sparc-tdep.c (sparc_frame_chain): Update comment.
6708 * blockframe.c (legacy_frame_chain_valid): Update.
6710 2003-04-06 Andrew Cagney <cagney@redhat.com>
6712 * valprint.c (val_print_type_code_int): Delete #ifdef
6713 PRINT_TYPELESS_INTEGER code.
6715 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6716 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6717 multi-arch definition.
6718 * gdbarch.h: Re-generate.
6720 2003-04-05 Andrew Cagney <cagney@redhat.com>
6722 Eliminate FRAME_FIND_SAVED_REGS.
6723 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6724 Change FSR parameter to a pointer.
6725 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6726 Assume FSR parameter is a pointer.
6727 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6729 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6730 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6731 saved_regs a pointer.
6732 (hppa_frame_saved_pc): Ditto.
6733 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6734 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6736 (restore_pc_queue): Make fsr a pointer.
6737 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6738 (hppa_frame_chain): Make saved_regs a pointer, call
6739 hppa_frame_init_saved_regs.
6740 * sparc-tdep.c: Include "gdb_assert.h".
6741 (sparc_frame_find_saved_regs): Replace internal_error with
6743 * remote-vxsparc.c (vx_read_register): Delete reference to
6744 FRAME_FIND_SAVED_REGS.
6745 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6746 * gdbarch.h: Regenerate.
6747 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6748 (deprecated_get_frame_saved_regs): Delete declaration.
6749 (struct frame_saved_regs): Delete definition.
6750 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6751 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6752 (hppa_frame_find_saved_regs): Delete declaration.
6753 (FRAME_FIND_SAVED_REGS): Delete macro.
6754 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6755 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6756 FRAME_FIND_SAVED_REGS in comment.
6758 2003-04-05 Andrew Cagney <cagney@redhat.com>
6760 * frame.c (frame_func_unwind, get_frame_func): New functions.
6761 * frame.h (get_frame_func, frame_func_unwind): Declare.
6762 (struct frame_info): Add field "prev_func" for caching the
6763 previous frame's function address.
6764 * arm-tdep.c (arm_frameless_function_invocation): Combine
6765 get_pc_function_start and get_frame_pc into get_frame_func.
6766 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6767 (sh64_nofp_frame_init_saved_regs): Ditto.
6768 * s390-tdep.c (s390_function_start): Ditto.
6769 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6770 (rs6000_frameless_function_invocation): Ditto.
6771 (rs6000_frame_saved_pc): Ditto.
6772 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6773 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6774 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6775 (i386_frame_init_saved_regs): Ditto.
6776 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6777 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6778 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6779 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6780 * blockframe.c (frameless_look_for_prologue): Ditto.
6782 2003-04-05 Andrew Cagney <cagney@redhat.com>
6784 * frame.c (legacy_get_prev_frame): Link prev to next at the
6785 function start. Update comments.
6787 2003-04-05 Andrew Cagney <cagney@redhat.com>
6789 * frame.c (get_frame_id): Update comment.
6790 (legacy_get_prev_frame): Update comment.
6791 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6792 * gdbarch.h: Regenerate.
6793 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6794 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6796 2003-04-05 Andrew Cagney <cagney@redhat.com>
6798 * stack.c (print_frame_info): Use get_frame_pc.
6800 2003-04-04 Andrew Cagney <cagney@redhat.com>
6802 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6803 the frame's type from the unwinder.
6804 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6805 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6806 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6807 (get_frame_base_address): Use get_frame_type.
6808 (get_frame_locals_address, get_frame_args_address): Ditto.
6809 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6810 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6811 (struct frame_info): Add comment explaining why the frame contains
6813 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6814 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6815 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6817 * frame-unwind.h: Include "frame.h".
6818 (struct frame_unwind): Add "type" field.
6819 * Makefile.in (frame_unwind_h): Add $(frame_h).
6821 2003-04-04 Andrew Cagney <cagney@redhat.com>
6823 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6824 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6825 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6827 (d10v_unwind_dummy_id): Use frame_id_build.
6828 * frame.c (find_frame_sal): Use get_frame_pc.
6829 (create_new_frame): Use deprecated_update_frame_pc_hack and
6830 deprecated_update_frame_base_hack.
6831 (create_sentinel_frame): Add comment about ->pc going away.
6832 (get_prev_frame): Add comment about ->pc going away.
6833 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6834 frame_id_build, deprecated_update_frame_pc_hack and
6835 deprecated_update_frame_base_hack.
6836 (select_frame): Use get_frame_pc.
6837 (legacy_saved_regs_this_id): Use frame_id_build.
6839 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6841 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6842 signed integer case.
6843 (classify_argument): Handle enumerations and references.
6845 2003-04-04 Andrew Cagney <cagney@redhat.com>
6847 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6850 2003-04-01 Adam Fedor <fedor@gnu.org>
6852 * gdb/objc-lang.c (selectors_info): Replace calls to
6853 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6854 SYMBOL_NATURAL_NAME.
6855 (classes_info, find_methods): Likewise.
6857 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6859 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6860 ``mach'' to the value determined by bfd_default_set_arch_mach().
6862 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6864 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6865 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6866 (mi-cmd-file.o): Update dependencies.
6868 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6870 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6871 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6873 2003-04-01 Adam Fedor <fedor@gnu.org>
6875 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6876 * language.h (struct language_defn): Add la_demangle.
6877 (language_demangle): Declare.
6878 * language.c (language_demangle): New function.
6879 (unk_lang_demangle): Likewise.
6880 (unknown_language_defn, auto_language_defn, local_language_defn):
6881 Add ukn_lang_demangle.
6882 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6883 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6884 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6885 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6886 * jv-lang.c (java_demangle): New function
6887 (java_language_defn): Use it for la_demangle element.
6888 * objc-lang.c (objc_demangle): Add options argument
6889 (objc_language_defn): Use objc_demangle for la_demangle element.
6890 * maint.c (maintenance_demangle): Replace switch with
6891 call to language_demangle.
6892 * utils.c (fprintf_symbol_filtered): Likewise.
6894 2003-04-01 Andrew Cagney <cagney@redhat.com>
6896 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6897 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6898 PRINT_TYPELESS_INTEGER.
6899 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6900 PUSH_RETURN_ADDRESS.
6902 2003-04-01 Andrew Cagney <cagney@redhat.com>
6904 * Makefile.in (d10v-tdep.o): Update dependencies.
6905 * d10v-tdep.c: Include "frame-base.h".
6906 (d10v_frame_unwind): Make constant.
6907 (d10v_frame_base_address): New function.
6908 (d10v_frame_base): New variable.
6909 (d10v_gdbarch_init): Set frame_base default.
6910 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6912 (d10v_frame_unwind_cache): Set and use "prev_sp".
6913 (d10v_frame_this_id): Use the previous frame's inner most stack
6914 address and this frame's func address for the frame ID. Use
6915 frame_id_build. Don't analyze beyond the current instruction.
6917 2003-04-01 Andrew Cagney <cagney@redhat.com>
6919 * frame.h (get_frame_locals_address, get_frame_args_address):
6920 Refer to the base address, instead of the address of the first
6923 2003-04-01 Andrew Cagney <cagney@redhat.com>
6925 Add frame debug info addresses:
6926 * frame-base.c: New file.
6927 * frame-base.h: New file.
6928 * frame.h (struct frame_base): Add opaque declaration.
6929 (get_frame_base): Update comment.
6930 (get_frame_base_address): Declare.
6931 (get_frame_locals_address): Declare.
6932 (get_frame_args_address): Declare.
6933 (struct frame_info): Add "base" and "base_cache". Update
6934 comments on the unwinder.
6935 * frame.c: Include "frame-base.h".
6936 (get_frame_locals_address): New function.
6937 (get_frame_base_address): New function.
6938 (get_frame_args_address): New function.
6939 * findvar.c (read_var_value): Use get_frame_locals_address and
6940 get_frame_args_address.
6941 * stack.c (frame_info): Use get_frame_locals_address and
6942 get_frame_args_address.
6943 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6944 moved to "frame-base.c".
6945 * printcmd.c (print_frame_nameless_args): Ditto.
6946 * symtab.h (address_class): Update comments.
6947 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6948 get_frame_base_address.
6949 * dwarf2expr.c (execute_stack_op): Ditto.
6950 * Makefile.in (frame_base_h): Define.
6951 (frame.o): Update dependencies.
6952 (frame-base.o): Add dependencies.
6953 (SFILES): Add frame-base.c.
6954 (COMMON_OBS): Add frame-base.o.
6956 2003-04-01 Andrew Cagney <cagney@redhat.com>
6958 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6959 CALL_DUMMY_LENGTH): Ditto.
6960 * gdbarch.c: Re-generate.
6961 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6962 (CALL_DUMMY_LENGTH): Delete macro.
6963 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6964 * arm-tdep.c (arm_gdbarch_init): Ditto.
6965 * avr-tdep.c (avr_gdbarch_init): Ditto.
6966 * cris-tdep.c (cris_gdbarch_init): Ditto.
6967 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6968 * frv-tdep.c (frv_gdbarch_init): Ditto.
6969 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6970 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6971 * i386-tdep.c (i386_gdbarch_init): Ditto.
6972 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6974 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6975 * mips-tdep.c (mips_gdbarch_init): Ditto.
6976 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6977 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6978 * s390-tdep.c (s390_gdbarch_init): Ditto.
6979 * sh-tdep.c (sh_gdbarch_init): Ditto.
6980 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6981 * v850-tdep.c (v850_gdbarch_init): Ditto.
6982 * vax-tdep.c (vax_gdbarch_init): Ditto.
6983 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6985 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6987 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6989 2003-04-01 Andrew Cagney <cagney@redhat.com>
6991 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6992 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6993 * gdbarch.h, gdbarch.c: Re-generate.
6994 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6995 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6996 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6997 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6998 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6999 * infcmd.c (run_stack_dummy): Simplify assuming
7000 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7001 * infrun.c (handle_inferior_event): Ditto.
7002 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7003 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7004 * arm-tdep.c (arm_gdbarch_init): Ditto.
7005 * avr-tdep.c (avr_gdbarch_init): Ditto.
7006 * cris-tdep.c (cris_gdbarch_init): Ditto.
7007 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7008 * frv-tdep.c (frv_gdbarch_init): Ditto.
7009 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7010 * i386-tdep.c (i386_gdbarch_init): Ditto.
7011 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7012 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7013 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7014 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7015 * mips-tdep.c (mips_gdbarch_init): Ditto.
7016 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7017 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7018 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7019 * s390-tdep.c (s390_gdbarch_init): Ditto.
7020 * sh-tdep.c (sh_gdbarch_init): Ditto.
7021 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7022 * v850-tdep.c (v850_gdbarch_init): Ditto.
7023 * vax-tdep.c (vax_gdbarch_init): Ditto.
7024 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7026 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7028 * symfile.c (symfile_relocate_debug_section): Update call to
7029 bfd_simple_get_relocated_section_contents.
7031 2003-03-31 Andrew Cagney <cagney@redhat.com>
7033 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7034 * gdbarch.h, gdbarch.c: Regenerate.
7035 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7036 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7038 * frame.h (generic_fix_call_dummy): Delete declaration.
7039 * dummy-frame.h: Update comment.
7040 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7041 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7043 * sh-tdep.c (sh_gdbarch_init): Ditto.
7044 * s390-tdep.c (s390_gdbarch_init): Ditto.
7045 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7046 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7047 * m68hc11-tdep.c (m68hc11_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 * avr-tdep.c (avr_gdbarch_init): Ditto.
7055 * arm-tdep.c (arm_gdbarch_init): Ditto.
7057 2003-03-31 J. Brobecker <brobecker@gnat.com>
7059 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7060 (INIT_FRAME_AP): Likewise.
7061 (EXTRA_FRAME_INFO): Likewise.
7063 2003-03-31 Andrew Cagney <cagney@redhat.com>
7065 * gdbarch.sh: Include "symfile.h".
7066 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7067 * gdbarch.h, gdbarch.c: Re-generate.
7068 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7069 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7070 call_dummy_address, the default is at entry_point_address.
7071 * v850-tdep.c (v850_gdbarch_init): Ditto.
7072 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7073 * sh-tdep.c (sh_gdbarch_init): Ditto.
7074 * s390-tdep.c (s390_gdbarch_init): Ditto.
7075 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7076 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7077 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7078 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7079 * i386-tdep.c (i386_gdbarch_init): Ditto.
7080 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7081 * frv-tdep.c (frv_gdbarch_init): Ditto.
7082 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7083 * cris-tdep.c (cris_gdbarch_init): Ditto.
7084 * arm-tdep.c (arm_gdbarch_init): Ditto.
7086 2003-03-31 Andrew Cagney <cagney@redhat.com>
7088 * gdbarch.sh (CALL_DUMMY_P): Delete.
7089 * gdbarch.h, gdbarch.c: Re-generate.
7090 * inferior.h (CALL_DUMMY_P): Delete macro.
7091 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7092 * vax-tdep.c (vax_gdbarch_init): Update.
7093 * v850-tdep.c (v850_gdbarch_init): Update.
7094 * sparc-tdep.c (sparc_gdbarch_init): Update.
7095 * sh-tdep.c (sh_gdbarch_init): Update.
7096 * s390-tdep.c (s390_gdbarch_init): Update.
7097 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7098 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7099 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7100 * mips-tdep.c (mips_gdbarch_init): Update.
7101 * mcore-tdep.c (mcore_gdbarch_init): Update.
7102 * m68k-tdep.c (m68k_gdbarch_init): Update.
7103 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7104 * ia64-tdep.c (ia64_gdbarch_init): Update.
7105 * i386-tdep.c (i386_gdbarch_init): Update.
7106 * h8300-tdep.c (h8300_gdbarch_init): Update.
7107 * frv-tdep.c (frv_gdbarch_init): Update.
7108 * d10v-tdep.c (d10v_gdbarch_init): Update.
7109 * cris-tdep.c (cris_gdbarch_init): Update.
7110 * breakpoint.c (deprecated_frame_in_dummy): Update.
7111 * avr-tdep.c (avr_gdbarch_init): Update.
7112 * alpha-tdep.c (alpha_gdbarch_init): Update.
7113 * arm-tdep.c (arm_gdbarch_init): Update.
7114 * dummy-frame.c (dummy_frame_this_id): Update comments.
7115 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7116 * frame.c (legacy_get_prev_frame): Ditto.
7117 * valops.c (call_function_by_hand): Delete function.
7118 (hand_function_call): Rename to call_function_by_hand
7120 2003-03-30 Andrew Cagney <cagney@redhat.com>
7122 2002-11-10 Klee Dienes <kdienes@apple.com>
7123 * value.h (struct value): Update comment.
7125 2003-03-30 Andrew Cagney <cagney@redhat.com>
7127 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7129 (d10v_gdbarch_init): Do not set fp_regnum.
7131 * frame.c (get_frame_base): Force ID initialization.
7132 (get_prev_frame): Move computation of the frame ID from here ...
7133 (get_frame_id): ... to here.
7134 (legacy_get_prev_frame): Mark the frame ID as valid.
7135 * frame.h (struct frame_info): Add field "id_p".
7137 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7139 * i386-tdep.c (i386_store_struct_return): Removed.
7140 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7142 2003-03-30 Andrew Cagney <cagney@redhat.com>
7144 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7145 * gdbarch.h, gdbarch.c: Regenerate.
7146 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7148 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7149 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7150 * i386-tdep.c (i386_gdbarch_init): Ditto.
7151 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7152 * cris-tdep.c (cris_gdbarch_init): Ditto.
7153 * vax-tdep.c (vax_gdbarch_init): Ditto.
7154 * s390-tdep.c (s390_gdbarch_init): Ditto.
7155 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7156 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7157 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7158 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7159 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7160 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7161 * sparc-tdep.c (sparc_gdbarch_init): Update.
7162 * sh-tdep.c (sh_gdbarch_init): Update.
7163 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7164 * mips-tdep.c (mips_gdbarch_init): Update.
7165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7166 * ia64-tdep.c (ia64_gdbarch_init): Update.
7167 * frv-tdep.c (frv_gdbarch_init): Update.
7168 * avr-tdep.c (avr_gdbarch_init): Update.
7169 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7170 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7171 instead of when push_dummy_call is not available.
7173 2003-03-30 Andrew Cagney <cagney@redhat.com>
7175 * infttrace.c: Include "gdbthread.h".
7176 (parent_attach_all): Fix function signature.
7177 (call_ptrace): Update call.
7178 * Makefile.in (infttrace.o): Update dependencies.
7180 2003-03-30 Andrew Cagney <cagney@redhat.com>
7182 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7183 PUSH_RETURN_ADDRESS.
7184 * gdbarch.h, gdbarch.c: Regenerate.
7185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7186 * x86-64-tdep.c (x86_64_init_abi): Update.
7187 * v850-tdep.c (v850_gdbarch_init): Update.
7188 * sparc-tdep.c (sparc_gdbarch_init): Update.
7189 * sh-tdep.c (sh_gdbarch_init): Update.
7190 * s390-tdep.c (s390_gdbarch_init): Update.
7191 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7192 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7193 * mips-tdep.c (mips_gdbarch_init): Update.
7194 * mcore-tdep.c (mcore_gdbarch_init): Update.
7195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7196 * ia64-tdep.c (ia64_gdbarch_init): Update.
7197 * i386-tdep.c (i386_gdbarch_init): Update.
7198 * h8300-tdep.c (h8300_gdbarch_init): Update.
7199 * frv-tdep.c (frv_gdbarch_init): Update.
7200 * cris-tdep.c (cris_gdbarch_init): Update.
7201 * avr-tdep.c (avr_gdbarch_init): Update.
7202 * arm-tdep.c (arm_gdbarch_init): Update.
7203 * valops.c (hand_function_call): Update.
7205 2003-03-29 Andrew Cagney <cagney@redhat.com>
7207 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7208 sizeof_call_dummy_words.
7209 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7211 * gdbarch.h: Regenerate.
7213 2003-03-29 Andrew Cagney <cagney@redhat.com>
7215 * infttrace.h: New file.
7216 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7217 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7218 (hpread_read_doc_function_type): Detect an initialized type1.
7219 (hpread_quick_traverse): Initialize mod_name_string.
7220 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7221 (som_solib_get_solib_by_pc): Declare.
7222 (so_lib_thread_start_addr): Declare.
7223 (no_shared_libraries): Declare.
7224 * somread.c (init_import_symbols): Make static. Add forward
7226 * config/pa/nm-hppah.h: Include "infttrace.h" for
7228 (hppa_insert_hw_watchpoint): Declare.
7229 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7230 * hppah-nat.c: Include "gdb_string.h".
7231 (parent_attach_all): Delete extern declaration, moved to
7233 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7235 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7236 * Makefile.in (infttrace_h): Define.
7237 (hpread.o): Update dependencies.
7238 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7239 * hppa-hpux-tdep.c: Include "gdb_string.h".
7240 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7241 * infrun.c (handle_inferior_event): Always initialize
7242 stepped_after_stopped_by_watchpoint. Add default and remove
7243 fallthrough in switch statement.
7244 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7246 (hppa_remove_hw_watchpoint): Ditto.
7248 2003-03-29 Andrew Cagney <cagney@redhat.com>
7250 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7253 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7255 * arm-tdep.c (arm_push_arguments): Delete.
7256 (struct stack_item): New type.
7257 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7258 (arm_store_struct_return): Delte.
7259 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7260 arm_push_arguments or arm_store_struct_return.
7262 2003-03-28 Andrew Cagney <cagney@redhat.com>
7264 * Makefile.in (d10v-tdep.o): Update dependencies.
7265 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7266 * d10v-tdep.c: Include "remote.h".
7267 (target_resume_hook): Delete extern declaration.
7268 (target_wait_loop_hook): Ditto.
7269 (tdisassemble_command): Eliminate assignment in "if" conditional.
7270 (d10v_ts2_register_sim_regno): Eliminate call to
7271 legacy_register_sim_regno.
7272 (d10v_ts3_register_sim_regno): Ditto.
7274 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7276 * thread.c: Reindented.
7278 * linux-proc.c: Ditto.
7280 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7282 * MAINTAINERS (write after approval): Add myself.
7284 2003-03-27 Theodore A. Roth <troth@openavr.org>
7286 * objc-exp.y: Add missing semi-colons.
7288 2003-03-27 Andrew Cagney <cagney@redhat.com>
7290 * regcache.c (write_sp): Delete function and references.
7291 * inferior.h (write_sp): Delete declaration.
7292 * valops.c (hand_function_call): Replace write_sp with
7294 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7295 (sparc_pop_frame): Ditto.
7297 2003-03-27 Andrew Cagney <cagney@redhat.com>
7299 * NEWS: Mention removal of support for hppa*-*-bsd* and
7300 hppa*-*-osf* natives, and hppa*-*-pro* target.
7301 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7302 * config/pa/xm-pa.h: Obsolete file.
7303 * config/pa/xm-hppab.h: Obsolete file.
7304 * config/pa/nm-hppab.h: Obsolete file.
7305 * config/pa/tm-hppab.h: Obsolete file.
7306 * config/pa/tm-hppao.h: Obsolete file.
7307 * config/pa/nm-hppao.h: Obsolete file.
7308 * config/pa/tm-pro.h: Obsolete file.
7309 * config/pa/hppaosf.mt: Obsolete file.
7310 * config/pa/hppaosf.mh: Obsolete file.
7311 * config/pa/hppapro.mt: Obsolete file.
7312 * config/pa/hppabsd.mt: Obsolete file.
7313 * config/pa/hppabsd.mh: Obsolete file.
7314 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7315 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7318 2003-03-27 Andrew Cagney <cagney@redhat.com>
7320 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7321 push_arguments. Don't set push_return_address or write_sp.
7322 (d10v_push_dummy_call): Replace d10v_push_arguments.
7323 (d10v_push_return_address, d10v_write_sp): Delete function,
7324 handled by push_dummy_call.
7326 2003-03-26 Andrew Cagney <cagney@redhat.com>
7328 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7329 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7330 regcache and dummy_addr parameters.
7331 * gdbarch.h, gdbarch.c: Re-generate.
7332 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7333 available; assume it will handle stack alignment and return
7334 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7335 legacy_push_arguments.
7336 (legacy_push_arguments): Rename default_push_arguments.
7337 * value.h (legacy_push_arguments): Rename default_push_arguments.
7338 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7339 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7340 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7341 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7342 * config/i386/tm-symmetry.h: Update.
7343 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7344 * x86-64-tdep.c (x86_64_init_abi): Update.
7345 * v850-tdep.c (v850_gdbarch_init): Update.
7346 * sparc-tdep.c (sparc_gdbarch_init): Update.
7347 * sh-tdep.c (sh_gdbarch_init): Update.
7348 * s390-tdep.c (s390_gdbarch_init): Update.
7349 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7350 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7351 * mips-tdep.c (mips_gdbarch_init): Update.
7352 * mcore-tdep.c (mcore_gdbarch_init): Update.
7353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7354 * ia64-tdep.c (ia64_gdbarch_init): Update.
7355 * i386-tdep.c (i386_gdbarch_init): Update.
7356 * hppa-tdep.c (hppa_gdbarch_init): Update.
7357 * h8300-tdep.c (h8300_gdbarch_init): Update.
7358 * frv-tdep.c (frv_gdbarch_init): Update.
7359 * d10v-tdep.c (d10v_gdbarch_init): Update.
7360 * cris-tdep.c (cris_gdbarch_init): Update.
7361 * avr-tdep.c (avr_gdbarch_init): Update.
7362 * arm-tdep.c (arm_gdbarch_init): Update.
7363 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7364 * alpha-tdep.c (alpha_gdbarch_init): Update.
7366 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7368 * signals/signals.c (do_target_signal_to_host): Correct realtime
7371 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7373 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7374 (struct sal_chain, map_catch_names): Remove.
7375 (catch_exception_command_1): Don't call
7376 handle_gnu_4_16_catch_command.
7378 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7380 From Mark Dettinger <dettinge@de.ibm.com>:
7381 * dwarf2cfi.c (read_2u): Increment pointer by two.
7383 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7385 * signals/signals.c: Fix typos in last change.
7387 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7389 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7390 not already defined. Use __SIGRTMIN if available.
7391 (target_signal_from_host): Remove SIGRTMIN block.
7392 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7393 the signal is within the realtime range.
7395 2003-03-25 Adam Fedor <fedor@gnu.org>
7397 * Makefile.in (infrun.o): Add $(language_h)
7398 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7399 for language specific trampolines.
7400 * language.h (struct language_defn): Add skip_trampoline.
7401 (skip_language_trampoline): Declare.
7402 * language.c (unk_lang_trampoline, skip_language_trampoline):
7404 (unknown_language_defn, auto_language_defn, local_language_defn):
7405 Add ukn_lang_trampoline.
7406 * ada-lang.c (ada_language_defn): Add NULL for language
7407 specific skip_trampoline.
7408 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7409 scm-lang.c: Likewise.
7410 * objc-lang.c (objc_skip_trampoline): New function.
7411 (objc_language_defn): Add objc_skip_trampoline.
7413 2003-03-25 Andrew Cagney <cagney@redhat.com>
7415 * frame.c (get_prev_frame): Delay validating a frame's ID -
7416 non-NULL, didn't go backwards - until an attempt to unwind it to
7419 2003-03-25 Andrew Cagney <cagney@redhat.com>
7421 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7422 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7423 * gdbarch.h, gdbarch.c: Re-generate.
7424 * config/sparc/tm-sparc.h
7425 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7426 * sparc-tdep.c (sparc_gdbarch_init): Set
7427 deprecated_extra_stack_alignment_needed.
7428 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7430 extra_stack_alignment_needed.
7431 * v850-tdep.c (v850_gdbarch_init): Ditto.
7432 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7433 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7434 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7435 * cris-tdep.c (cris_gdbarch_init): Ditto.
7436 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7437 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7439 2003-03-25 Andrew Cagney <cagney@redhat.com>
7441 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7442 STORE_STRUCT_RETURN.
7443 * gdbarch.h, gdbarch.c: Regenerate.
7444 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7445 (d10v_push_arguments): Set the struct return register.
7446 (d10v_gdbarch_init): Update.
7447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7448 * x86-64-tdep.c (x86_64_init_abi): Update.
7449 * vax-tdep.c (vax_gdbarch_init): Update.
7450 * v850-tdep.c (v850_gdbarch_init): Update.
7451 * sparc-tdep.c (sparc_gdbarch_init): Update.
7452 * sh-tdep.c (sh_gdbarch_init): Update.
7453 * s390-tdep.c (s390_gdbarch_init): Update.
7454 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7455 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7456 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7457 * mips-tdep.c (mips_gdbarch_init): Update.
7458 * mcore-tdep.c (mcore_gdbarch_init): Update.
7459 * m68k-tdep.c (m68k_gdbarch_init): Update.
7460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7461 * ia64-tdep.c (ia64_gdbarch_init): Update.
7462 * i386-tdep.c (i386_gdbarch_init): Update.
7463 * hppa-tdep.c (hppa_gdbarch_init): Update.
7464 * h8300-tdep.c (h8300_gdbarch_init): Update.
7465 * frv-tdep.c (frv_gdbarch_init): Update.
7466 * cris-tdep.c (cris_gdbarch_init): Update.
7467 * avr-tdep.c (avr_gdbarch_init): Update.
7468 * arm-tdep.c (arm_gdbarch_init): Update.
7469 * alpha-tdep.c (alpha_gdbarch_init): Update.
7471 2003-03-25 Andrew Cagney <cagney@redhat.com>
7473 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7474 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7475 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7476 * gdbarch.h, gdbarch.c: Regenerate.
7477 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7478 call_dummy_stack_adjust_p.
7479 * vax-tdep.c (vax_gdbarch_init): Ditto.
7480 * v850-tdep.c (v850_gdbarch_init): Ditto.
7481 * sh-tdep.c (sh_gdbarch_init): Ditto.
7482 * s390-tdep.c (s390_gdbarch_init): Ditto.
7483 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7484 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7485 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7486 * mips-tdep.c (mips_gdbarch_init): Ditto.
7487 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7488 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7489 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7490 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7491 * i386-tdep.c (i386_gdbarch_init): Ditto.
7492 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7493 * frv-tdep.c (frv_gdbarch_init): Ditto.
7494 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7495 * cris-tdep.c (cris_gdbarch_init): Ditto.
7496 * avr-tdep.c (avr_gdbarch_init): Ditto.
7497 * arm-tdep.c (arm_gdbarch_init): Ditto.
7498 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7499 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7500 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7501 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7502 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7503 call_dummy_stack_adjust_p.
7504 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7505 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7506 * sparc-tdep.c (sparc32_push_arguments): Update.
7507 * valops.c (hand_function_call): Update.
7509 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7511 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7512 set_gdbarch_char_signed.
7514 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7517 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7519 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7521 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7522 (_initialize_arm_tdep): Don't set tm_print_insn.
7524 2003-03-24 Adam Fedor <fedor@gnu.org>
7526 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7527 * objc-lang.h: Add multiple inclusion protection.
7528 (start_msglist, add_msglist, end_msglist): Additional declarations.
7530 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7532 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7533 value was renamed to ARM_FLOAT_SOFT_FPA.
7535 2003-03-23 Andrew Cagney <cagney@redhat.com>
7537 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7538 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7539 * gdbarch.h, gdbarch.c: Regenerate.
7540 * valops.c (hand_function_call): Update.
7541 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7542 * frame.c (legacy_saved_regs_this_id): Update.
7543 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7544 * dummy-frame.h: Update.
7545 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7546 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7547 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7548 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7549 * config/m68k/tm-sun3.h: Update.
7550 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7552 * x86-64-tdep.c (x86_64_init_abi): Update.
7553 * vax-tdep.c (vax_gdbarch_init): Update.
7554 * v850-tdep.c (v850_gdbarch_init): Update.
7555 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7556 * sh-tdep.c (sh_gdbarch_init): Update.
7557 * s390-tdep.c (s390_gdbarch_init): Update.
7558 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7559 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7560 (frame_get_saved_regs): Update.
7561 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7562 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7563 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7564 * mips-tdep.c (mips_gdbarch_init): Update.
7565 * mcore-tdep.c (mcore_gdbarch_init): Update.
7566 * m68k-tdep.c (m68k_gdbarch_init): Update.
7567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7568 * ia64-tdep.c (ia64_gdbarch_init): Update.
7569 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7570 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7571 (i386_interix_back_one_frame): Update.
7572 * hppa-tdep.c (hppa_gdbarch_init): Update.
7573 (hppa_init_extra_frame_info): Update.
7574 * h8300-tdep.c (h8300_gdbarch_init): Update.
7575 * frv-tdep.c (frv_gdbarch_init): Update.
7576 * cris-tdep.c (cris_gdbarch_init): Update.
7577 * avr-tdep.c (avr_gdbarch_init): Update.
7578 * arm-tdep.c (arm_gdbarch_init): Update.
7579 * alpha-tdep.c (alpha_gdbarch_init): Update.
7581 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7583 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7584 (arm_get_fp_model): Declare.
7585 * arm-tdep.c (fp_model_strings): New string array.
7586 (arm_fp_model, current_fp_model): New variables.
7587 (arm_get_fp_model): New function.
7588 (arm_set_fp): New function.
7589 (set_fp_model_sfunc): New function.
7590 (show_fp_model): New function.
7591 (_initialize_arm_tdep): Add new command to set/show the FPU.
7592 (arm_extract_return_value): Use arm_get_fp_model.
7593 (arm_store_return_value): Likewise.
7594 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7595 to initialize the floating-point data types.
7596 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7599 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7601 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7602 the current setting of each value.
7603 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7604 new_set and new_show. Use add_setshow_cmd_full and
7605 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7606 commands and add new version as subcommands of "set/show arm".
7608 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7610 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7611 (set_arm_command, show_arm_command): New functions.
7612 (_initialize_arm_tdep): Add them.
7613 (num_disassembly_options): Renamed from num_flavor_options.
7614 (valid_disassembly_styles): Renamed from valid_flavors.
7615 (disassembly_style): Renamed from disassembly_flavor.
7616 (set_disassembly_style_sfunc): Renamed from
7617 set_disassembly_flavor_sfunc.
7618 (set_disassembly_style): Renamed from set_disassembly_flavor.
7619 (arm_othernames): Updated.
7620 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7621 command. Add "set/show arm disassembly" commands. Deprecate
7622 "othernames" command.
7624 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7626 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7627 (arm-tdep.o): Depend on elf_arm_h.
7629 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7631 * Makefile.in (coff_internal_h): Define.
7632 (arm-tdep.o): Update dependencies.
7634 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7636 * arm-tdep.c (prologue_cache): Delete.
7637 (check_prologue_cache, save_prologue_cache): Delete.
7638 (arm_scan_prologue): Don't check or update the prologue_cache.
7639 (arm_gdb_arch_init): Don't initialize it.
7640 (_initialize_arm_tdep): Likewise.
7642 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7644 * MAINTAINERS (tui): Maintainer of tui code.
7646 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7648 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7649 (i386-cygwin-tdep.o): Add dependencies.
7650 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7651 * i386-cygwin-tdep.c: New file.
7652 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7653 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7655 2003-03-20 Andrew Cagney <cagney@redhat.com>
7657 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7658 (handle_inferior_event): Remove code calling
7659 DYNAMIC_TRAMPOLINE_NEXTPC.
7661 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7662 already has a full path.
7664 * main.c (gdb_main): Return 1.
7665 (captured_main): Call error to report an invalid interpreter.
7667 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7668 * alpha-osf1-tdep.c: Include "gdb_string.h".
7670 2003-03-19 J. Brobecker <brobecker@gnat.com>
7672 Continuing work to convert the hppa targets to multiarch partial.
7674 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7675 method, now that hppa_push_dummy_frame has a conformant prototype.
7676 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7677 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7678 for the switch to multiarch partial.
7680 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7682 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7683 when iss is issNull.
7685 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7687 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7688 NUM_REGS bounds check.
7690 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7692 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7693 * mips-tdep.c (gdb_assert.h): Include.
7694 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7695 (mips_register_name): Handle integer registers explicitly. Add
7697 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7698 (mips_lsi33k_reg_names): Don't list integer registers; they're
7699 handled by mips_register_name() now.
7700 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7701 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7702 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7703 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7704 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7706 2003-03-18 Andrew Cagney <cagney@redhat.com>
7708 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7710 * gdbtypes.h (print_scalar_formatted): Update declaration.
7711 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7713 2003-03-18 J. Brobecker <brobecker@gnat.com>
7715 * infrun.c (observer.h): Add #include.
7716 (normal_stop): Add call to observer_notify_normal_stop.
7717 * Makefile.in (infrun.o): Add dependency on observer.h.
7719 2003-03-18 J. Brobecker <brobecker@gnat.com>
7721 Continuing work to convert the hppa targets to multiarch partial.
7722 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7723 parameter. Reformat comment.
7724 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7725 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7726 to match new profile.
7728 2003-03-18 J. Brobecker <brobecker@gnat.com>
7730 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7731 appear to be working in any case.
7733 2003-03-18 J. Brobecker <brobecker@gnat.com>
7735 * observer.c (observer_test_first_observer): New static variable.
7736 (observer_test_second_observer): Likewise.
7737 (observer_test_third_observer): Likewise.
7738 (observer_test_first_notification_function): New static function.
7739 (observer_test_second_notification_function): Likewise.
7740 (observer_test_third_notification_function): Likewise.
7742 2003-03-17 J. Brobecker <brobecker@gnat.com>
7744 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7745 * somsolib.c (gdb_assert.h): Likewise.
7746 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7747 (somsolib.o): Likewise.
7749 2003-03-17 Andrew Cagney <cagney@redhat.com>
7751 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7752 BFD. Simplify setting of di.endian.
7754 2003-03-17 Andrew Cagney <cagney@redhat.com>
7756 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7757 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7759 From Elena Zannoni <ezannoni@redhat.com>
7760 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7761 vector and floating-point parameters.
7762 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7764 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7766 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7768 * MAINTAINERS: Remove my name from several maintainership roles.
7770 2003-03-17 Andrew Cagney <cagney@redhat.com>
7772 Fix frame off-by-one bug.
7773 * frame-unwind.h (frame_this_id_ftype): Replace
7774 frame_unwind_id_ftype.
7775 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7776 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7777 with "prev_register".
7778 * frame-unwind.c (frame_unwind_find_by_pc): Return
7779 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7781 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7782 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7783 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7784 (dummy_frame_unwind): Update.
7785 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7786 sentinel_frame_register_unwind.
7787 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7788 (sentinel_frame_unwinder): Update.
7789 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7790 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7791 * frame.c (create_sentinel_frame): Update. Initialize
7792 "prologue_cache" instead of "unwind_cache".
7793 (frame_register_unwind): Call this frame's prev_register with the
7794 next frame and this frame's prologue cache.
7795 (get_prev_frame): Simplify. Always call prev frame's this_id with
7796 this frame and prev frame's prologue cache. Document that this
7797 call is shifted one to the left when compared to the
7798 frame_register_unwind call.
7799 (legacy_saved_regs_prev_register): Replace
7800 frame_saved_regs_register_unwind.
7801 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7802 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7803 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7804 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7805 (d10v_frame_unwind): Update.
7806 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7807 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7808 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7809 "saved_regs" with "this_saved_regs".
7811 2003-03-16 Andrew Cagney <cagney@redhat.com>
7813 * frame.c (frame_pop): Don't call target_store_registers. Fix
7814 problem reported by Mark Kettenis.
7816 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7818 * i386-tdep.c (i386_register_type): Renamed from
7819 i386_register_virtual_type. Adjust function signature.
7820 (i386_gdbarch_init): Set register_type instead of
7821 deprecated_max_register_raw_size,
7822 deprecated_max_register_virtual_size and register_virtual_type.
7824 2003-03-14 Andrew Cagney <cagney@redhat.com>
7826 * frame.c (get_prev_frame): When a legacy frame, always call
7827 legacy_get_prev_frame. Simplify unwind code using assumption that
7828 the unwinder is new.
7829 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7830 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7831 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7833 2003-03-14 Andrew Cagney <cagney@redhat.com>
7835 * frame.c (get_saved_register): Delete function.
7836 * frame.h (get_saved_register): Delete declaration.
7837 * xstormy16-tdep.c: Update comment.
7838 * regcache.h: Update comments.
7839 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7840 get_saved_register and extract_address, use
7841 frame_read_unsigned_register.
7842 (sparc_frame_saved_pc): Ditto.
7843 (sparc_get_saved_register): Instead of get_saved_register, use
7845 (sparc_pop_frame): Ditto.
7846 * findvar.c: Update comments.
7847 (value_of_register): Call frame_register instead of
7849 (value_from_register): Ditto.
7850 * config/sparc/tm-sparc.h: Update comment.
7851 * breakpoint.c: Update comment.
7853 2003-03-14 Andrew Cagney <cagney@redhat.com>
7855 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7857 * gdbarch.h, gdbarch.c: Re-generate.
7858 * frame.h: Update comments.
7859 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7860 * x86-64-tdep.c (x86_64_init_abi): Update.
7861 * sparc-tdep.c (sparc_gdbarch_init): Update.
7862 * sh-tdep.c (sh_gdbarch_init): Update.
7863 * mips-tdep.c (mips_gdbarch_init): Update.
7864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7865 * cris-tdep.c (cris_gdbarch_init): Update.
7866 * ia64-tdep.c (ia64_gdbarch_init): Update.
7867 * frame.c (frame_register): Update.
7868 (get_saved_register): Update.
7869 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7871 2003-03-13 Andrew Cagney <cagney@redhat.com>
7873 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7874 * gdbarch.h, gdbarch.c: Regenerate.
7875 * valops.c (hand_function_call): Update comment.
7876 * stack.c (return_command): Update comment.
7877 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7878 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7880 * x86-64-tdep.c (x86_64_init_abi): Update.
7881 * vax-tdep.c (vax_gdbarch_init): Update.
7882 * v850-tdep.c (v850_gdbarch_init): Update.
7883 * sparc-tdep.c (sparc_gdbarch_init): Update.
7884 * sh-tdep.c (sh_gdbarch_init): Update.
7885 * s390-tdep.c (s390_gdbarch_init): Update.
7886 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7887 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7888 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7889 * mips-tdep.c (mips_gdbarch_init): Update.
7890 * mcore-tdep.c (mcore_gdbarch_init): Update.
7891 * m68k-tdep.c (m68k_gdbarch_init): Update.
7892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7893 * ia64-tdep.c (ia64_gdbarch_init): Update.
7894 * i386-tdep.c (i386_gdbarch_init): Update.
7895 * hppa-tdep.c (hppa_gdbarch_init): Update.
7896 * h8300-tdep.c (h8300_gdbarch_init): Update.
7897 * frv-tdep.c (frv_gdbarch_init): Update.
7898 * cris-tdep.c (cris_gdbarch_init): Update.
7899 * avr-tdep.c (avr_gdbarch_init): Update.
7900 * arm-tdep.c (arm_gdbarch_init): Update.
7901 * alpha-tdep.c (alpha_gdbarch_init): Update.
7903 2003-03-13 Andrew Cagney <cagney@redhat.com>
7905 * frame.c (legacy_frame_p): New function.
7906 (get_prev_frame): Use legacy_frame_p.
7907 * frame.h (legacy_frame_p): Declare.
7909 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7911 * MAINTAINERS (write after approval): Alphabetically
7914 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7916 * MAINTAINERS (write after approval): Add myself.
7918 2003-03-12 Andrew Cagney <cagney@redhat.com>
7920 * frame.c (get_prev_frame): Rename the frame parameter to
7922 (get_next_frame, legacy_get_prev_frame): Ditto.
7924 2003-03-12 Andrew Cagney <cagney@redhat.com>
7926 * frame.c (get_current_frame): Check target_has_registers before
7927 checking target_has_stack.
7928 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7929 instead of deprecated_selected_frame.
7930 * findvar.c (value_of_register): Pass "frame", not
7931 deprecated_selected_frame, to value_of_builtin_reg.
7933 2003-03-12 Andrew Cagney <cagney@redhat.com>
7935 * regcache.c (regcache_cooked_write_signed): New function.
7936 (regcache_cooked_write_unsigned): New function.
7937 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7938 (regcache_cooked_read_signed): Fix regnum in range assertion.
7939 * regcache.h (regcache_cooked_write_signed): Declare.
7940 (regcache_cooked_write_unsigned): Declare.
7942 2003-03-12 Andrew Cagney <cagney@redhat.com>
7944 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7945 * gdbarch.h, gdbarch.c: Re-generate.
7946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7947 * x86-64-tdep.h: Update.
7948 * x86-64-tdep.c (x86_64_init_abi): Update.
7949 * v850-tdep.c (v850_gdbarch_init): Update.
7950 * sparc-tdep.c (sparc_gdbarch_init): Update.
7951 * sh-tdep.c (sh_gdbarch_init): Update.
7952 * s390-tdep.c (s390_gdbarch_init): Update.
7953 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7954 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7955 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7956 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7957 * mips-tdep.c (mips_gdbarch_init): Update.
7958 * mcore-tdep.c (mcore_gdbarch_init): Update.
7959 * m68k-tdep.c (m68k_gdbarch_init): Update.
7960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7961 * ia64-tdep.c (ia64_gdbarch_init): Update.
7962 * i386-tdep.c (i386_gdbarch_init): Update.
7963 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7964 * hppa-tdep.c (hppa_gdbarch_init): Update.
7965 * h8300-tdep.c (h8300_gdbarch_init): Update.
7966 * frv-tdep.c (frv_gdbarch_init): Update.
7967 * cris-tdep.c (cris_gdbarch_init): Update.
7968 * avr-tdep.c (avr_gdbarch_init): Update.
7969 * arm-tdep.c (arm_gdbarch_init): Update.
7970 * alpha-tdep.c (alpha_gdbarch_init): Update.
7971 * sh-tdep.c (sh_init_extra_frame_info): Update.
7972 (sh64_init_extra_frame_info): Update.
7973 * ns32knbsd-nat.c (frame_num_args): Update.
7974 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7975 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7976 (xstormy16_frame_chain_valid): Update.
7977 * vax-tdep.c (vax_saved_pc_after_call): Update.
7978 * v850-tdep.c (v850_frame_chain): Update.
7979 (v850_pop_frame): Update.
7980 (v850_init_extra_frame_info): Update.
7981 * sparc-tdep.c (setup_arbitrary_frame): Update.
7982 * ns32k-tdep.c (umax_frame_num_args): Update.
7983 * s390-tdep.c (s390_pop_frame_regular): Update.
7984 * mn10300-tdep.c (mn10300_frame_chain): Update.
7985 (mn10300_pop_frame_regular): Update.
7986 (mn10300_init_extra_frame_info): Update.
7987 * mips-tdep.c (mips_init_frame_pc_first): Update.
7988 (mips_frame_chain): Update.
7989 (mips_pop_frame): Update.
7990 * mcore-tdep.c (mcore_frame_chain): Update.
7991 (mcore_pop_frame): Update.
7992 (mcore_init_extra_frame_info): Update.
7993 * arch-utils.c (init_frame_pc_default): Update.
7994 * m68k-tdep.c (isi_frame_num_args): Update.
7995 (delta68_frame_num_args): Update.
7996 (news_frame_num_args): Update.
7997 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7998 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7999 (alpha_frame_chain): Update.
8000 (alpha_pop_frame): Update.
8001 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8002 (hppa_init_extra_frame_info): Update.
8003 (hppa_frame_chain): Update.
8004 (hppa_frame_chain_valid): Update.
8005 * cris-tdep.c (cris_init_extra_frame_info): Update.
8006 * avr-tdep.c (avr_init_extra_frame_info): Update.
8007 * arm-tdep.c (arm_frame_chain_valid): Update.
8008 (arm_init_extra_frame_info): Update.
8009 (arm_pop_frame): Update.
8010 * frame.c (frame_pc_unwind): Update.
8011 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8012 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8013 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8014 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8015 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8016 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8018 2003-03-12 Andrew Cagney <cagney@redhat.com>
8020 Eliminate the need for POP_FRAME.
8021 * frame.c (do_frame_unwind_register): New function.
8022 (frame_pop): When no POP_FRAME, pop the frame using register
8023 unwind and a scratch regcache.
8024 (frame_saved_regs_pop): Delete function.
8025 (trad_frame_unwinder): Update.
8026 * d10v-tdep.c (d10v_frame_pop): Delete function.
8027 (d10v_frame_unwind): Update.
8028 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8029 (sentinel_frame_unwinder): Update.
8030 * dummy-frame.c (dummy_frame_pop): Delete function.
8031 (dummy_frame_unwind): Update.
8032 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8033 (struct frame_unwind): Update.
8035 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8037 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8038 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8039 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8040 Do range checks on register number obtained from debugging info.
8041 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8042 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8043 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8045 (do_fp_register_row): Fix typo which caused double type to be
8046 used when attempting to unpack a float.
8048 2003-03-11 J. Brobecker <brobecker@gnat.com>
8050 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8052 2003-03-11 Andrew Cagney <cagney@redhat.com>
8054 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8055 frame. Problem found by Corinna Vinschen.
8057 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8059 * doublest.c (floatformat_from_length): Accept also
8060 the real size of 'long double' type.
8062 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8064 From Klee Dienes <kdienes@apple.com>:
8065 * breakpoint.c (bpstat_copy): Copy the command lines as well
8066 as the old value, to match what is freed in bpstat_clear.
8068 2003-03-10 David Carlton <carlton@math.stanford.edu>
8070 * minsyms.c (add_minsym_to_hash_table): Replace
8071 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8072 (compare_minimal_symbols, compact_minimal_symbols)
8073 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8074 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8075 of DEPRECATED_SYMBOL_MATCHES_NAME.
8076 (lookup_minimal_symbol_solib_trampoline): Ditto.
8078 2003-03-10 Andrew Cagney <cagney@redhat.com>
8080 * regcache.h (regcache_cooked_read_ftype): Define.
8081 (regcache_save, regcache_restore): Add a cooked_read parameter.
8082 * regcache.c (regcache_save, regcache_restore): Update.
8083 (do_cooked_read): New function.
8084 (regcache_cpy): Pass do_cooked_read to regcache_save and
8087 2003-03-10 Andrew Cagney <cagney@redhat.com>
8089 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8090 * gdbarch.h, gdbarch.c: Re-generate.
8091 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8092 * x86-64-tdep.h: Update.
8093 * x86-64-tdep.c (x86_64_init_abi): Update.
8094 * v850-tdep.c (v850_gdbarch_init): Update.
8095 * sparc-tdep.c (sparc_gdbarch_init): Update.
8096 * sh-tdep.c (sh_gdbarch_init): Update.
8097 * s390-tdep.c (s390_gdbarch_init): Update.
8098 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8099 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8100 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8101 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8102 * mips-tdep.c (mips_gdbarch_init): Update.
8103 * mcore-tdep.c (mcore_gdbarch_init): Update.
8104 * m68k-tdep.c (m68k_gdbarch_init): Update.
8105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8106 * ia64-tdep.c (ia64_gdbarch_init): Update.
8107 * i386-tdep.c (i386_gdbarch_init): Update.
8108 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8109 * hppa-tdep.c (hppa_gdbarch_init): Update.
8110 * h8300-tdep.c (h8300_gdbarch_init): Update.
8111 * frv-tdep.c (frv_gdbarch_init): Update.
8112 * cris-tdep.c (cris_gdbarch_init): Update.
8113 * avr-tdep.c (avr_gdbarch_init): Update.
8114 * arm-tdep.c (arm_gdbarch_init): Update.
8115 * alpha-tdep.c (alpha_gdbarch_init): Update.
8116 * sh-tdep.c (sh_init_extra_frame_info): Update.
8117 (sh64_init_extra_frame_info): Update.
8118 * ns32knbsd-nat.c (frame_num_args): Update.
8119 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8120 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8121 (xstormy16_frame_chain_valid): Update.
8122 * vax-tdep.c (vax_saved_pc_after_call): Update.
8123 * v850-tdep.c (v850_frame_chain): Update.
8124 (v850_pop_frame): Update.
8125 (v850_init_extra_frame_info): Update.
8126 * sparc-tdep.c (setup_arbitrary_frame): Update.
8127 * ns32k-tdep.c (umax_frame_num_args): Update.
8128 * s390-tdep.c (s390_pop_frame_regular): Update.
8129 * mn10300-tdep.c (mn10300_frame_chain): Update.
8130 (mn10300_pop_frame_regular): Update.
8131 (mn10300_init_extra_frame_info): Update.
8132 * mips-tdep.c (mips_init_frame_pc_first): Update.
8133 (mips_frame_chain): Update.
8134 (mips_pop_frame): Update.
8135 * mcore-tdep.c (mcore_frame_chain): Update.
8136 (mcore_pop_frame): Update.
8137 (mcore_init_extra_frame_info): Update.
8138 * arch-utils.c (init_frame_pc_default): Update.
8139 * m68k-tdep.c (isi_frame_num_args): Update.
8140 (delta68_frame_num_args): Update.
8141 (news_frame_num_args): Update.
8142 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8143 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8144 (alpha_frame_chain): Update.
8145 (alpha_pop_frame): Update.
8146 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8147 (hppa_init_extra_frame_info): Update.
8148 (hppa_frame_chain): Update.
8149 (hppa_frame_chain_valid): Update.
8150 * cris-tdep.c (cris_init_extra_frame_info): Update.
8151 * avr-tdep.c (avr_init_extra_frame_info): Update.
8152 * arm-tdep.c (arm_frame_chain_valid): Update.
8153 (arm_init_extra_frame_info): Update.
8154 (arm_pop_frame): Update.
8155 * frame.c (frame_pc_unwind): Update.
8156 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8157 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8158 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8159 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8160 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8161 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8163 2003-03-10 Andrew Cagney <cagney@redhat.com>
8165 * gdbarch.sh (gdbarch_unwind_pc): New method.
8166 * gdbarch.h, gdbarch.c: Regenerate.
8167 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8168 but use read_pc and FRAME_SAVED_PC as fall backs.
8169 (frame_saved_regs_pc_unwind): Delete function.
8170 (trad_frame_unwinder): Update.
8171 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8172 (struct frame_unwind): Update.
8173 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8174 (dummy_frame_unwind): Update.
8175 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8176 (sentinel_frame_unwinder): Update.
8177 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8178 (d10v_frame_unwind): Update.
8179 (d10v_unwind_pc): New function.
8180 (d10v_gdbarch_init): Set unwind_pc.
8182 2003-03-10 Andrew Cagney <cagney@redhat.com>
8184 * gdbarch.h: Re-generate.
8186 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8188 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8191 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8193 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8195 2003-03-08 Andrew Cagney <cagney@redhat.com>
8197 * cli-out.c: Update copyright.
8198 (cli_out_data): Define typedef. Use instead of ui_out_data.
8200 2003-03-08 Andrew Cagney <cagney@redhat.com>
8202 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8205 2003-03-07 Andrew Cagney <cagney@redhat.com>
8207 * gdbarch.sh: Don't generate two macro definitions when an
8208 undefined macro taking no arguments.
8209 * gdbarch.h: Regenerate.
8211 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8213 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8214 (x86_64_unwind_dummy_id): New functions.
8215 (x86_64_init_abi): Register these two new functions.
8217 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8219 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8220 (x86_64_skip_prologue): Move prologue detection to
8222 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8224 2003-03-05 Andrew Cagney <cagney@redhat.com>
8226 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8227 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8228 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8229 to use unwind_dummy_id when a dummy frame.
8230 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8232 * gdbarch.h, gdbarch.c: Regneerate.
8234 2003-03-05 Andrew Cagney <cagney@redhat.com>
8236 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8237 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8238 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8241 2003-03-05 Andrew Cagney <cagney@redhat.com>
8243 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8244 (struct d10v_unwind_cache): Delete field "frameless". Replace
8245 "next_addr" with "sp_offset". Add "r11_offset".
8246 (d10v_frame_unwind_cache): Update.
8247 (prologue_find_regs): Update. When "mv r11, sp", save the
8248 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8249 RN was saved in r11_offset.
8251 2003-03-05 Andrew Cagney <cagney@redhat.com>
8253 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8254 cached PC value in the next frame.
8256 2003-03-05 Andrew Cagney <cagney@redhat.com>
8258 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8259 "id_unwind_cache" with "id".
8260 (frame_id_unwind): Delete declaration.
8261 * frame.c (frame_id_unwind): Delete function.
8262 (get_prev_frame): Call the frame id unwind method directly. Store
8263 the returned next frame's ID value in NEXT_FRAME. Note that there
8264 is a problem with the wrong unwind ID being called with the wrong
8267 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8269 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8271 2003-03-05 James Ingham <jingham@apple.com>
8272 Daniel Jacobowitz <drow@mvista.com>
8274 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8275 (auto_cp_abi): New variable.
8276 (current_cp_abi, num_cp_abis): Make static.
8277 (CP_ABI_MAX): Define.
8278 (cp_abis): Turn into an array.
8279 (value_virtual_fn_field): Fix formatting.
8280 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8282 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8283 (list_cp_abis, _initialize_cp_abi): New functions.
8284 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8285 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8286 switch_to_cp_abi. Update prototype for register_cp_abi.
8287 * Makefile.in (cp-abi.o): Update dependencies.
8288 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8289 instead of switch_to_cp_abi.
8290 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8292 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8294 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8296 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8298 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8299 * dwarf2loc.c: Include "regcache.h".
8300 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8302 * Makefile.in (dwarf2loc.o): Update dependencies.
8304 2003-03-04 Theodore A. Roth <troth@openavr.org>
8306 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8307 number of io registers reported by remote target is not a multiple of
8310 2003-03-04 David Carlton <carlton@math.stanford.edu>
8312 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8313 (lookup_symbol_aux_psymtabs): Update call to
8314 lookup_partial_symbol.
8315 (lookup_transparent_type, find_main_psymtab)
8316 (make_symbol_overload_list): Ditto.
8318 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8320 * MAINTAINERS (Write after approval): Update my email address.
8322 2003-03-03 Andrew Cagney <cagney@redhat.com>
8324 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8325 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8326 predicate. Replace MAX_REGISTER_RAW_SIZE.
8327 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8328 MAX_REGISTER_VIRTUAL_SIZE.
8329 * regcache.c (legacy_max_register_raw_size): New function.
8330 (legacy_max_register_virtual_size): New function.
8331 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8332 (MAX_REGISTER_RAW_SIZE): Define.
8333 (legacy_max_register_raw_size): Declare.
8334 (legacy_max_register_virtual_size): Declare.
8335 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8336 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8337 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8338 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8339 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8340 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8341 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8342 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8343 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8344 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8345 * vax-tdep.c (vax_gdbarch_init): Update.
8346 * v850-tdep.c (v850_gdbarch_init): Update.
8347 * sparc-tdep.c (sparc_gdbarch_init): Update.
8348 * sh-tdep.c (sh_gdbarch_init): Update.
8349 * s390-tdep.c (s390_gdbarch_init): Update.
8350 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8351 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8352 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8353 * mips-tdep.c (mips_gdbarch_init): Update.
8354 * mcore-tdep.c (mcore_gdbarch_init): Update.
8355 * m68k-tdep.c (m68k_gdbarch_init): Update.
8356 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8357 * ia64-tdep.c (ia64_gdbarch_init): Update.
8358 * i386-tdep.c (i386_gdbarch_init): Update.
8359 * hppa-tdep.c (hppa_gdbarch_init): Update.
8360 * h8300-tdep.c (h8300_gdbarch_init): Update.
8361 * frv-tdep.c (frv_gdbarch_init): Update.
8362 * cris-tdep.c (cris_gdbarch_init): Update.
8363 * avr-tdep.c (avr_gdbarch_init): Update.
8364 * arm-tdep.c (arm_gdbarch_init): Update.
8365 * alpha-tdep.c (alpha_gdbarch_init): Update.
8366 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8367 max_register_raw_size or max_register_virtual_size.
8369 2003-03-03 David Carlton <carlton@math.stanford.edu>
8371 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8372 SYMBOL_MATCHES_NAME, add comment.
8373 (SYMBOL_MATCHES_NATURAL_NAME): New.
8374 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8375 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8376 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8377 * symtab.c (lookup_partial_symbol): Use
8378 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8380 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8381 SYMBOL_MATCHES_NAME.
8384 2003-03-03 David Carlton <carlton@math.stanford.edu>
8386 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8387 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8388 by regexp matching against SYMBOL_NATURAL_NAME.
8390 2003-03-03 David Carlton <carlton@math.stanford.edu>
8392 * linespec.c (find_method): Extract code into collect_methods.
8393 (collect_methods): New.
8395 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8397 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8400 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8401 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8403 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8405 * arch-utils.c (generic_register_byte): Fix to use the loop index
8406 and not regnum when summing the size of all registers up to regnum.
8408 2003-03-01 Andrew Cagney <cagney@redhat.com>
8410 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8411 FRAME_INIT_SAVED_REGS.
8412 * gdbarch.h, gdbarch.c: Regenerate.
8413 * stack.c (frame_info): Update.
8414 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8415 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8416 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8417 * ns32k-tdep.c (ns32k_pop_frame): Update.
8418 * mips-tdep.c (mips_pop_frame): Update.
8419 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8420 * ia64-tdep.c (ia64_frame_chain): Update.
8421 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8422 (ia64_frameless_function_invocation): Update.
8423 (ia64_init_extra_frame_info): Update.
8424 (ia64_pop_frame_regular): Update.
8425 * frame.h (struct frame_info): Update comment.
8426 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8427 * frame.c (frame_saved_regs_register_unwind): Update.
8428 (frame_saved_regs_register_unwind): Update.
8429 (deprecated_generic_get_saved_register): Update.
8430 * cris-tdep.c: Update comment.
8431 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8433 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8434 * x86-64-tdep.c (x86_64_init_abi): Update.
8435 * vax-tdep.c (vax_gdbarch_init): Update.
8436 * v850-tdep.c (v850_gdbarch_init): Update.
8437 * sparc-tdep.c (sparc_gdbarch_init): Update.
8438 * sh-tdep.c (sh_gdbarch_init): Update.
8439 * s390-tdep.c (s390_gdbarch_init): Update.
8440 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8441 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8442 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8443 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8444 * mips-tdep.c (mips_gdbarch_init): Update.
8445 * mcore-tdep.c (mcore_gdbarch_init): Update.
8446 * m68k-tdep.c (m68k_gdbarch_init): Update.
8447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8448 * ia64-tdep.c (ia64_gdbarch_init): Update.
8449 * i386-tdep.c (i386_gdbarch_init): Update.
8450 * frv-tdep.c (frv_gdbarch_init): Update.
8451 * avr-tdep.c (avr_gdbarch_init): Update.
8452 * arm-tdep.c (arm_gdbarch_init): Update.
8453 * alpha-tdep.c (alpha_gdbarch_init): Update.
8455 2003-03-01 Andrew Cagney <cagney@redhat.com>
8457 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8458 option enum and switch. When no windows, set the interpreter to
8461 2003-03-01 Andrew Cagney <cagney@redhat.com>
8463 * main.c (captured_main): Replace magic option characters with an
8466 2003-03-01 Andrew Cagney <cagney@redhat.com>
8468 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8469 INIT_EXTRA_FRAME_INFO.
8470 * gdbarch.h, gdbarch.c: Regenerate.
8471 * arm-tdep.c: Update comments.
8472 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8473 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8474 * frame.h, avr-tdep.c: Ditto.
8475 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8476 (create_new_frame, legacy_get_prev_frame): Ditto.
8477 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8478 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8480 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8481 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8482 * v850-tdep.c (v850_gdbarch_init): Ditto.
8483 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8484 * sh-tdep.c (sh_gdbarch_init): Ditto.
8485 * s390-tdep.c (s390_gdbarch_init): Ditto.
8486 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8487 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8488 * mips-tdep.c (mips_gdbarch_init): Ditto.
8489 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8490 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8491 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8492 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8493 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8494 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8495 * frv-tdep.c (frv_gdbarch_init): Ditto.
8496 * cris-tdep.c (cris_gdbarch_init): Ditto.
8497 * avr-tdep.c (avr_gdbarch_init): Ditto.
8498 * arm-tdep.c (arm_gdbarch_init): Ditto.
8499 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8500 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8502 2003-03-01 Andrew Cagney <cagney@redhat.com>
8504 * gdbarch.sh (register_type): New function with predicate.
8505 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8506 * gdbarch.h, gdbarch.c: Re-generate.
8507 * arch-utils.c (generic_register_byte): Use generic_register_size.
8508 (generic_register_size): When available, use
8509 gdbarch_register_type.
8510 * regcache.c (init_regcache_descr): When available, initialize the
8511 register type array using gdbarch_register_type. If the
8512 architecture supplies gdbarch_register_type, do not use the legacy
8514 * d10v-tdep.c (d10v_register_type): Replace
8515 d10v_register_virtual_type.
8516 (d10v_gdbarch_init): Set register_type instead of
8517 register_virtual_type.
8519 2003-03-01 Andrew Cagney <cagney@redhat.com>
8521 * Makefile.in (ax-gdb.o): Update dependencies.
8522 * ax-gdb.c: Include "regcache.h".
8523 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8524 * findvar.c (value_of_register): Ditto.
8525 * infcmd.c (default_print_registers_info): Ditto.
8527 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8529 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8530 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8532 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8534 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8537 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8539 * Makefile.in (dwarf2loc.o): Update dependencies.
8540 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8541 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8542 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8543 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8544 (locexpr_tracepoint_var_ref): New function.
8545 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8547 2003-02-28 Andrew Cagney <cagney@redhat.com>
8549 * regcache.c (register_size): New function.
8550 * regcache.h (register_size): Declare
8551 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8552 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8554 2003-02-28 David Carlton <carlton@math.stanford.edu>
8556 * linespec.c (decode_compound): Extract code into find_method.
8559 2003-02-28 J. Brobecker <brobecker@gnat.com>
8561 * Makefile.in: Add rules to build and link in observer.o.
8563 2003-02-27 J. Brobecker <brobecker@gnat.com>
8565 * observer.c: Minor comments edits.
8567 2003-02-27 J. Brobecker <brobecker@gnat.com>
8569 * observer.h, observer.c: New file.
8571 2003-02-27 Andrew Cagney <cagney@redhat.com>
8573 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8575 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8577 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8578 (M6812_OP_STS_EXT): Likewise.
8579 (m6811_prologue): Use the above to recognize prologue.
8580 (m6812_prologue): Likewise.
8582 2003-02-27 David Carlton <carlton@math.stanford.edu>
8584 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8586 (compare_psymbols): Ditto.
8587 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8589 2003-02-27 Michael Snyder <msnyder@redhat.com>
8591 * f-lang.c (build_fortran_types): New function.
8592 (_initialize_f_language): Gdbarch-register built-in fortran types.
8593 * doublest.c (extract_floating): Fix warning text.
8595 2003-02-27 Andrew Cagney <cagney@redhat.com>
8597 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8598 predicate. Replaces PUSH_DUMMY_FRAME.
8599 * gdbarch.h, gdbarch.c: Regnerate.
8600 * valops.c (hand_function_call): Update. Call
8601 generic_push_dummy_frame directly.
8602 * vax-tdep.c (vax_gdbarch_init): Update.
8603 * sparc-tdep.c (sparc_gdbarch_init): Update.
8604 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8605 * m68k-tdep.c (m68k_gdbarch_init): Update.
8606 * hppa-tdep.c (hppa_gdbarch_init): Update.
8607 * alpha-tdep.c (alpha_gdbarch_init): Update.
8608 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8609 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8610 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8612 push_dummy_frame to generic_push_dummy_frame.
8613 * v850-tdep.c (v850_gdbarch_init): Ditto.
8614 * sh-tdep.c (sh_gdbarch_init): Ditto.
8615 * s390-tdep.c (s390_gdbarch_init): Ditto.
8616 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8617 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8618 * mips-tdep.c (mips_gdbarch_init): Ditto.
8619 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8621 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8622 * i386-tdep.c (i386_gdbarch_init): Ditto.
8623 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8624 * frv-tdep.c (frv_gdbarch_init): Ditto.
8625 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8626 * cris-tdep.c (cris_gdbarch_init): Ditto.
8627 * avr-tdep.c (avr_gdbarch_init): Ditto.
8628 * arm-tdep.c (arm_gdbarch_init): Ditto.
8630 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8632 * mips-tdep.c (show_mips_abi): New function.
8633 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8634 command ``show mips abi''.
8636 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8638 From Elena Zannoni <ezannoni@redhat.com>
8639 * dbxread.c (process_one_symbol): Only record line 0 if one or
8640 more sline entries have been seen for the function.
8642 2003-02-26 Michael Chastain <mec@shout.net>
8644 * configure: Regenerate with autoconf 000227.
8646 2003-02-26 Michael Chastain <mec@shout.net>
8649 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8650 for old libc5/glibc.
8651 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8653 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8655 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8656 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8658 2003-02-26 Michael Chastain <mec@shout.net>
8660 * configure.in: New variable HAVE_UINTPTR_T.
8661 * configure, config.in: Regenerated.
8663 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8666 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8668 2003-02-25 Andrew Cagney <cagney@redhat.com>
8670 * frame.c (get_prev_frame): Add comment on check for
8671 inside_entry_func. Only check for inside_entry_file when not a
8672 dummy and not a sentinel. Check that the new frame is not inner
8675 2003-02-25 Andrew Cagney <cagney@redhat.com>
8677 * frame.c (frame_debug): New variable.
8678 (_initialize_frame): Add "set/show debug frame" command.
8679 (get_prev_frame): When frame_debug, print reason why unwind
8682 2003-02-25 Michael Chastain <mec@shout.net>
8684 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8685 to avoid uintptr_t definition problems.
8687 2003-02-25 David Carlton <carlton@math.stanford.edu>
8689 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8690 (SYMBOL_LINKAGE_NAME): Ditto.
8691 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8692 SYMBOL_LINKAGE_NAME.
8693 (struct general_symbol_info): Expand comment.
8694 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8695 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8696 (SYMBOL_MATCHES_REGEXP): Ditto.
8697 * symtab.c (symbol_natural_name): New function.
8698 * objfiles.h: Replace all uses of SYMBOL_NAME by
8699 DEPRECATED_SYMBOL_NAME.
8700 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8701 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8702 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8703 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8704 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8705 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8706 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8707 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8708 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8709 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8711 * ada-exp.y: Update copyright.
8712 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8713 * cp-valprint.c: Ditto.
8715 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8717 * infptrace.c (detach): Do not flag error if ptrace detach fails
8718 and errno is set to ESRCH.
8720 2003-02-24 Andrew Cagney <cagney@redhat.com>
8722 * infptrace.c (udot_info): Change type of udot_off to long. Use
8723 paddr when printing udot_off's value.
8725 2003-02-24 David Carlton <carlton@math.stanford.edu>
8727 * symtab.c (make_symbol_overload_list): Only read in partial
8728 symtabs containing a matching partial symbol.
8730 2003-02-24 David Carlton <carlton@math.stanford.edu>
8732 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8733 do the comparison, not strcmp.
8734 * symfile.c (compare_psymbols): Ditto.
8735 * defs.h: Declare strcmp_iw_ordered.
8736 * utils.c (strcmp_iw_ordered): New function.
8738 2003-02-24 Jim Blandy <jimb@redhat.com>
8740 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8741 support, shared libs): Remove my name from here, to better reflect
8744 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8746 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8747 (target_ops): Add to_have_continuable_watchpoint.
8748 * target.c (update_current_target): Add INHERIT line for
8749 to_have_continuable_watchpoint.
8750 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8751 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8752 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8753 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8755 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8757 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8760 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8762 * solib.c (solib_open): Call target defined search function after
8763 failing with solib-search-path.
8764 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8765 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8767 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8769 * MAINTAINERS: Add myself to Write After section.
8771 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8773 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8775 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8777 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8778 (m68hc11_add_reggroups): New function.
8779 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8780 (m68hc11_gdbarch_init): Install the reggroups.
8781 (_initialize_m68hc11_tdep): Initialize them.
8783 2003-02-21 James E Wilson <wilson@tuliptree.org>
8785 * MAINTAINERS: Update my email address.
8787 2003-02-21 David Carlton <carlton@math.stanford.edu>
8789 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8791 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8793 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8794 * symtab.h: Add opaque declarations of struct axs_value and
8796 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8797 (struct location_funcs): New type.
8798 (struct symbol): Add "loc" to aux_value.
8799 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8800 * dwarf2read.c: Include "dwarf2expr.h".
8801 (dwarf2_symbol_mark_computed): New function.
8802 (read_func_scope): Use it.
8803 (var_decode_location): New function.
8804 (new_symbol): Use it.
8805 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8807 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8808 (dwarf2expr_h, dwarf2loc_h): New variables.
8809 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8810 (dwarf2expr.o, dwarf2loc.o): New rules.
8811 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8812 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8814 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8815 * m2-exp.y (yylex): Likewise.
8816 * printcmd.c (address_info, print_frame_args): Likewise.
8817 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8818 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8819 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8820 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8821 * symtab.c (lookup_block_symbol): Likewise.
8823 2003-02-20 Adam Fedor <fedor@gnu.org>
8825 * symtab.h: Remove objc_specific struct
8826 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8827 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8828 Have language_objc use cplus_specific struct.
8830 2003-02-20 Tom Tromey <tromey@redhat.com>
8832 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8833 TYPE_NAME, when printing a String value. PR java/1075.
8835 2003-02-20 Adam Fedor <fedor@gnu.org>
8837 * objc-lang.h (find_methods): Remove declaration.
8838 * objc-lang.c (find_methods): Make static.
8840 2003-02-20 Christopher Faylor <cgf@redhat.com>
8842 * win32-nat.c (get_image_name): Check return value from
8844 (child_xfer_memory): Ditto.
8846 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8848 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8849 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8850 '${exec_prefix}' (in addition to the expansion thereof) as
8852 * configure: Rebuilt.
8854 2003-02-20 David Carlton <carlton@math.stanford.edu>
8856 * symtab.c (search_symbols): Revert the search_symbols part of my
8857 2002-12-23 patch. Add comment.
8859 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8861 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8862 * dbxread.c (elfstab_build_psymtabs): Don't call
8863 install_minimal_symbols.
8864 (stabsect_build_psymtabs): Likewise.
8865 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8867 * somread.c (som_symfile_read): Call install_minimal_symbols
8868 and do_cleanups earlier.
8869 * nlmread.c (nlm_symfile_read): Likewise.
8870 * mdebugread.c (elfmdebug_build_psymtabs): Call
8871 install_minimal_symbols and make appropriate cleanups.
8873 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8875 * solib.c (reload_shared_libraries): New function.
8876 (_initialize_solib): Add callbacks for ``set solib-search-path''
8877 and ``set solib-absolute-prefix''.
8879 2003-02-20 David Carlton <carlton@math.stanford.edu>
8881 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8883 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8884 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8885 * ada-typeprint.c (ada_typedef_print): Ditto.
8886 * ax-gdb.c (gen_var_ref): Ditto.
8887 * breakpoint.c (print_one_breakpoint): Ditto.
8888 * buildsym.c (finish_block): Ditto.
8889 * c-valprint.c (c_val_print): Ditto.
8890 * expprint.c (print_subexp): Ditto.
8891 * findvar.c (locate_var_value): Ditto.
8892 * infcmd.c (jump_command): Ditto.
8893 * linespec.c (decode_line_2, decode_compound): Ditto.
8894 * maint.c (maintenance_translate_address): Ditto.
8895 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8896 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8898 * p-valprint.c (pascal_val_print): Ditto.
8899 * stabsread.c (define_symbol): Ditto.
8900 * stack.c (print_frame, frame_info, print_block_frame_locals)
8901 (print_frame_arg_vars, return_command): Ditto.
8902 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8903 * symmisc.c (print_symbol): Ditto.
8904 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8905 (compare_search_syms, print_symbol_info, print_msymbol_info)
8906 (rbreak_command): Ditto.
8907 * tracepoint.c (tracepoints_info): Ditto.
8908 * typeprint.c (typedef_print): Ditto.
8909 * valops.c (value_of_variable, hand_function_call): Ditto.
8910 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8911 * ada-typeprint.c: Update Copyright.
8912 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8913 * tracepoint.c, cli/cli-cmds.c: Ditto.
8915 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8917 * frame.c (generic_unwind_get_saved_register): Make non-static.
8918 * frame.h (generic_unwind_get_saved_register): Declare.
8919 * mips-tdep.c (read_next_frame_reg): Fetch register from
8920 current regcache when frame is NULL.
8921 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8923 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8924 instead of frame_register_unwind().
8926 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8928 * remote-sim.c (gdbsim_insert_breakpoint)
8929 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8932 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8934 * remote.c (_initialize_remote): Add commands "set/show remote
8935 hardware-watchpoint-limit" and "set/show remote
8936 hardware-breakpoint-limit".
8937 (remote_hw_watchpoint_limit): Initialize to -1.
8938 (remote_hw_breakpoint_limit): Ditto.
8939 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8941 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8943 * coff-pe-read.c: New file - support reading of minimal symbols from a
8944 portable executable using the export table.
8945 * coff-pe-read.h: New file.
8946 * coffread.c: Include coff-pe-read.h.
8947 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8948 debugging symbols found.
8949 * Makefile.in (SFILES): Add coff-pe-read.o.
8950 (coff_pe_read_h): Define.
8951 (COMMON_OBS): Add coff-pe-read.o.
8952 (coffread.o): Add coff_pe_read_h dependency.
8953 (coff-pe-read.o): New target.
8955 2003-02-19 David Carlton <carlton@math.stanford.edu>
8957 * Makefile.in (SFILES): Add block.c.
8959 (COMMON_OBS): Add block.o.
8961 (x86-64-tdep.o): Add $(block_h).
8962 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8963 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8964 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8965 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8966 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8967 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8968 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8969 * value.h: Add opaque declaration for struct block.
8970 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8971 * ada-lang.h: Ditto.
8972 * x86-64-tdep.c: #include "block.h"
8973 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8974 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8975 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8976 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8977 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8978 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8979 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8980 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8981 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8982 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8983 * symtab.c (block_function): Ditto.
8984 (contained_in): Ditto.
8985 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8986 block.h. Add opaque declaration for struct block.
8987 * symtab.h: Move block_function and contained_in declarations to
8988 block.h. Add opaque declarations for struct block, struct
8990 (struct block): Move to block.h.
8991 (struct blockvector): Ditto.
8992 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8993 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8994 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8995 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8996 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8998 * block.c: New file.
8999 * block.h: New file.
9001 2003-02-19 Theodore A. Roth <troth@openavr.org>
9003 * avr-tdep.c (avr_extract_return_value): Remove function.
9004 (avr_store_return_value): Remove function.
9005 (avr_extract_struct_value_address): Remove function.
9006 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9008 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9010 * rs6000-tdep.c: Include "gdb_assert.h".
9011 (registers_e500): Add "acc" and "spefscr".
9012 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9013 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9014 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9016 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9018 2003-02-18 Keith Seitz <keiths@redhat.com>
9020 * Makefile.in: Add gdbtk-interps.c.
9022 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9024 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9025 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9027 2003-02-18 Andrew Cagney <cagney@redhat.com>
9029 * symtab.h (struct objfile): Add opaque declaration.
9031 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9033 From Jim Ingham <jingham@apple.com>:
9034 * dbxread.c (process_one_symbol): Use last_function_start rather
9035 than function_start_offset to find the real beginning of the
9036 current function. The latter is just the text section offset on
9037 some systems, the former is always the real function start.
9039 2003-02-17 Andrew Cagney <cagney@redhat.com>
9041 * configure.in: Revert ${target} != ${host}.
9043 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9045 * configure.in (Makefile): Use the test ${target} != ${host},
9046 instead of the absence of the "nm.h" file, to determine of the
9047 configuration non-native.
9048 * configure: Regenerate.
9050 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9052 From Brian Ford <ford@vss.fsi.com>
9054 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9055 conditionalize tui_active test.
9056 (lookup_cmd_1): Ditto.
9058 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9060 * configure.in: Add check for _etext.
9061 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9063 * config.in, configure: regenerated.
9065 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9067 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9069 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9071 * main.c (tui_version): Delete variable.
9072 (captured_main): When --tui, set interpreter_p to "tui" instead of
9073 enabling tui_version.
9074 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9076 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9077 * cli/cli-cmds.c (disassemble_command): Ditto.
9078 * defs.h (tui_version): Delete declaration.
9079 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9080 (tui-interp.o): Add rules.
9081 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9083 2003-02-14 Christopher Faylor <cgf@redhat.com>
9085 * win32-nat.c (register_loaded_dll): Correctly set address range for
9088 2003-02-12 Jason Molenda (jmolenda@apple.com)
9090 * symmisc.c (print_objfile_statistics): Include information about
9091 the number of psymtabs and symtabs in each object file.
9093 2003-02-13 Keith R Seitz <keiths@redhat.com>
9095 * main.h (struct captured_main_args): Add interpreter_p.
9096 * main.c (captured_main): Initialize interpreter_p from context.
9097 * gdb.c (main): Set interpreter_p argument.
9098 * Makefile.in (gdb.o): Add dependency for interps.h.
9100 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9102 * event-top.c (cli_command_loop): Delete declaration.
9103 (_initialize_event_loop): Delete function setting event_loop_hook.
9104 * event-top.h (cli_command_loop): Declare. Update copyright.
9105 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9106 * interps.c (current_interp_command_loop): When event_loop_p, call
9109 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9111 * interps.h (interp_command_loop_ftype): Change return type to
9114 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9116 * x86-64-tdep.c (x86_64_extract_return_value)
9117 (x86_64_store_return_value): Use regcache instead of regbuf.
9118 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9119 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9121 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9123 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9124 * aclocal.m4: Regenerate.
9125 * configure: Regenerate.
9127 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9128 TCL_LD_SEARCH_FLAGS.
9130 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9132 * dwarf2cfi.c: Reindented.
9134 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9136 * interps.c (clear_interpreter_hooks): Convert function definition
9139 2003-02-07 David Carlton <carlton@math.stanford.edu>
9141 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9143 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9145 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9146 (struct type): ...to here.
9147 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9149 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9150 (replace_type): Set length on all type variants for a given type.
9152 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9154 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9156 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9158 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9160 * Makefile.in (symm-nat.o): Update dependencies.
9161 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9162 (lynx-nat.o, ia64-linux-nat.): Ditto.
9163 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9164 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9165 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9167 * Makefile.in (inflow_h): Define.
9168 (procfs.o, inflow.o, procfs.o): Update dependencies.
9169 * inftarg.c (child_stop): Delete extern declaration of
9170 inferior_process_group. Include "inflow.h".
9171 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9172 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9173 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9174 (our_process_group, inferior_process_group): Extern declarations.
9176 * procfs.c: Include "gdb_assert.h".
9178 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9179 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9180 * jv-typeprint.c (java_type_print_base): Ditto.
9181 * typeprint.c (typedef_print): Eliminate STREQ.
9182 * cli/cli-script.c (define_command, define_command): Ditto.
9183 * main.c (captured_main): Ditto.
9184 * values.c (lookup_internalvar): Ditto.
9185 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9186 within `if' conditional.
9187 * linespec.c (decode_line_2): Ditto.
9188 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9189 (bfd_openw_with_cleanup): Ditto.
9191 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9193 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9194 legacy_extract_return_value and store_return_value to
9195 legacy_return_value.
9197 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9199 * win32-nat.c (get_relocated_section_addrs): New function. Find
9200 section load addresses for symbol handling in relocated DLLs.
9201 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9203 2003-02-05 Fred Fish <fnf@intrinsity.com>
9205 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9207 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9209 (angel_RDI_info): Ditto.
9210 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9212 (threads_continue_all_with_signals): Ditto.
9214 2003-02-05 Jim Ingham <jingham@apple.com>
9215 Keith Seitz <keiths@redhat.com>
9216 Elena Zannoni <ezannoni@redhat.com>
9217 Andrew Cagney <ac131313@redhat.com>
9219 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9220 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9221 (SUBDIR_MI_OBS): Add "mi-interp.o".
9222 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9223 (SFILES): Add "interps.c".
9224 (COMMON_OBS): Add "interps.o".
9225 (interps_h, mi_main_h): Define.
9226 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9227 (mi-main.o, main.o, event-top.o): Update dependencies.
9228 * cli/cli-interp.c: New file.
9229 * interps.h, interps.c: New files.
9230 * top.c: (gdb_init): Don't install the default interpreter, handed
9232 * main.c: Include "interps.h".
9233 (interpreter_p): Note that it should malloc'ed.
9234 (captured_command_loop): Call current_interp_command_loop.
9235 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9236 xfree and xstrdup when updating interpreter_p. Install the
9237 default interpreter. Add hack to stop mi1's copyright notice
9239 * event-top.h (gdb_setup_readline): Declare.
9240 (gdb_disable_readline): Declare.
9241 * event-top.c: Include "interps.h".
9242 (display_gdb_prompt): Call current_interp_display_prompt_p.
9243 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9244 gdb_stdlog, and gdb_stdtarg.
9245 (_initialize_event_loop): Don't call gdb_setup_readline.
9246 * cli-out.c (cli_out_set_stream): New function.
9247 * cli-out.h (cli_out_set_stream): Declare.
9249 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9251 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9252 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9253 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9254 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9255 config/i386/i386v42mp.mt: Removed.
9257 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9259 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9262 2003-02-05 Michael Chastain <mec@shout.net>
9264 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9265 2.12.1 and earlier versions.
9267 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9269 Remove orphaned hosts, targets and files.
9270 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9271 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9272 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9273 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9274 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9275 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9276 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9277 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9278 * config/sparc/tm-sp64sim.h: Delete.
9279 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9281 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9282 mips*-dec-mach3* targets.
9284 2003-02-04 Michael Chastain <mec@shout.net>
9286 * NEWS: Fix typo: sepcifying -> specifying.
9288 2003-02-04 Michael Chastain <mec@shout.net>
9290 * dwarfread.c: Add documentation on the state of dwarf-1,
9291 looking towards obsoletion.
9293 2003-02-03 Michael Chastain <mec@shout.net>
9295 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9296 gdb/testsuite/gdb.c++/pr-1023.exp.
9298 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9300 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9301 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9303 * utils.c (init_page_info): Delete reference to MPW in comments.
9304 * main.c (captured_main): Delete #ifdef MPW.
9306 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9308 * NEWS: Note that the m32r-*-elf* is obsolete.
9309 * monitor.c (monitor_expect): Obsolete reference to m32r.
9310 * configure.tgt: Mark m32r-*-elf* as obsolete.
9311 * MAINTAINERS: Mark m32k as obsolete.
9312 * m32r-rom.c: Obsolete file.
9313 * config/m32r/m32r.mt: Obsolete file.
9314 * config/m32r/tm-m32r.h: Obsolete file.
9315 * m32r-stub.c: Obsolete file.
9316 * m32r-tdep.c: Obsolete file.
9318 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9320 * NEWS: Mention that the z8k-zilog-none is obsolete.
9321 * MAINTAINERS: Mark z8k as obsolete.
9322 * configure.tgt: Obsolete the z8k-*-coff* target.
9323 * config/z8k/z8k.mt: Obsolete file.
9324 * config/z8k/tm-z8k.h: Obsolete file.
9325 * z8k-tdep.c: Obsolete file.
9327 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9329 * NEWS: Mention that the mn10200-elf is obsolete.
9330 * configure.tgt: Obsolete mn10200-*-* target.
9331 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9332 mention that the mn10200 is obsolete.
9333 * breakpoint.h: Ditto.
9334 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9335 * config/mn10200/mn10200.mt: Obsolete file.
9336 * config/mn10200/tm-mn10200.h: Obsolete file.
9337 * mn10200-tdep.c: Obsolete file.
9339 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9341 * MAINTAINERS: Mark h8500 as obsolete.
9342 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9343 * findvar.c (value_from_register): Ditto.
9344 * h8500-tdep.c: Mark file as obsolete.
9345 * config/h8500/h8500.mt: Ditto.
9346 * config/h8500/tm-h8500.h: Ditto.
9347 * NEWS: Mention that h8500 is obsolete.
9349 2003-02-04 David Carlton <carlton@math.stanford.edu>
9351 * objfiles.c (allocate_objfile): Always set name. Add comment at
9353 * jv-lang.c (get_dynamics_objfile): Add comment.
9355 2003-02-04 David Carlton <carlton@math.stanford.edu>
9357 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9358 * printcmd.c (build_address_symbolic): Replace uses of
9359 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9360 SYMBOL_NAME, and asm_demangle.
9363 2003-02-04 David Carlton <carlton@math.stanford.edu>
9365 * linespec.c (decode_compound): Extract code into
9367 (lookup_prefix_sym): New function.
9369 2003-02-04 David Carlton <carlton@math.stanford.edu>
9371 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9372 FLOAT_COERCION_BADNESS.
9373 * gdbtypes.c (rank_one_type): Replace all uses of
9374 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9376 2003-02-04 Jim Blandy <jimb@redhat.com>
9378 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9379 section, let dwarf_macinfo_section point to it, not
9382 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9384 Pointed out by Anton Blanchard <anton@samba.org>.
9385 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9386 (ppc_linux_at_sigtramp_return_path): Use it.
9388 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9390 * defs.h (streq): Add prototype.
9391 * utils.c (streq): New function.
9393 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9394 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9395 * mdebugread.c (new_symbol): Likewise.
9396 * stabsread.c (define_symbol): Likewise.
9397 * coffread.c (process_coff_symbol): Likewise.
9398 * dwarfread.c (new_symbol): Likewise.
9400 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9401 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9403 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9404 SYMBOL_INIT_DEMANGLED_NAME.
9405 * objfiles.c: Include "hashtab.h".
9406 (allocate_objfile): Call htab_set_functions_ex for the
9407 demangled_names_hash.
9408 (free_objfile): Call htab_delete for the demangled_names_hash.
9409 * objfiles.h (struct htab): Add declaration.
9410 (struct objfile): Add demangled_names_hash.
9411 * symfile.c: Include "hashtab.h".
9412 (reread_symbols): Call htab_delete for the demangled_names_hash.
9413 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9414 SYMBOL_NAME in the bcache.
9415 * symtab.c: Include "hashtab.h". Update comments.
9416 (create_demangled_names_hash, symbol_set_names): New functions.
9417 (symbol_find_demangled_name): New function, broken out from
9418 symbol_init_demangled_names.
9419 (symbol_init_demangled_names): Use it.
9420 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9421 (SYMBOL_SET_NAMES): New macro.
9422 (symbol_set_names): Add prototype.
9424 2003-02-03 Jim Blandy <jimb@redhat.com>
9426 Use a single, consistent representation for an empty minimal
9427 symbol table in an objfile.
9428 * objfiles.c (terminate_minimal_symbol_table): New function.
9429 (allocate_objfile): Call it.
9430 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9431 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9433 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9434 objfile has minimal symbols, compare minimal_symbol_count to zero,
9435 instead of comparing msymbols with NULL.
9436 * objfiles.c (have_minimal_symbols): Same.
9437 * solib-sunos.c (solib_add_common_symbols): Call
9438 terminate_minimal_symbol_table.
9439 * symfile.c (reread_symbols): Same.
9441 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9443 * s390-tdep.c (s390_address_class_type_flags)
9444 (s390_address_class_type_flags_to_name)
9445 (s390_address_class_name_to_type_flags): New functions.
9446 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9447 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9449 2003-02-03 Michael Snyder <msnyder@redhat.com>
9451 * arm-tdep.c: Fix spell-o in comment.
9453 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9455 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9456 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9457 error messages to contain BFD filename.
9459 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9461 Fix PR gdb/742 gdb/743 gdb/877
9462 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9463 (do_mixed_source_and_assembly): Use
9464 make_cleanup_ui_out_tuple_begin_end and
9465 make_cleanup_ui_out_tuple_begin_end.
9466 (do_mixed_source_and_assembly): Ditto.
9467 * thread.c (do_captured_list_thread_ids): Ditto.
9468 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9469 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9470 ui_out_tuple_end): Delete prototypes.
9471 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9472 ui_out_list_end, ui_out_tuple_end): Delete.
9474 From Kevin Buettner <kevinb@redhat.com>:
9475 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9476 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9477 (do_cleanup_table_end): New functions.
9478 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9479 Use cleanups to invoke_ui_out_tuple_end().
9480 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9481 * cli/cli-setshow.c (cmd_show_list): Use
9482 make_cleanup_ui_out_tuple_begin_end.
9484 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9486 * frame.c (frame_unwind_register): New function.
9487 (frame_unwind_unsigned_register): Use.
9488 (frame_unwind_signed_register): Use.
9489 (frame_read_register): New function.
9490 * frame.h (frame_unwind_register): Declare.
9491 (frame_read_register): Declare.
9493 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9494 and frame_unwind_register instead of read_memory, write_register
9495 and deprecated_write_register_bytes.
9497 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9499 * frame.h: Note that namelen can be negative.
9500 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9503 * NEWS: Mention that the d10v's `regs' command is deprecated.
9504 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9505 (d10v_print_registers_info): New function.
9506 (show_regs): Call d10v_print_registers_info.
9507 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9509 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9511 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9512 lost in the previous patch.
9514 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9516 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9517 * stack.c (print_frame_info_base): Output complete FRAME tuple
9518 for synthesized frames.
9520 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9522 * mips-nat.c (zerobuf): Delete.
9523 (fetch_inferior_registers): Alloc local zerobuf.
9524 (fetch_core_registers): Alloc local zerobuf.
9525 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9526 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9527 * thread-db.c (thread_db_store_registers): Ditto.
9528 * sh-tdep.c (sh_do_register): Ditto.
9529 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9530 * remote-sim.c (gdbsim_store_register): Ditto.
9531 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9532 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9533 * monitor.c (monitor_supply_register): Ditto.
9534 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9535 * mips-nat.c (fetch_inferior_registers): Ditto.
9536 * m68klinux-nat.c (fetch_register): Ditto.
9537 * lynx-nat.c (fetch_inferior_registers): Ditto.
9538 (fetch_inferior_registers): Ditto.
9539 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9540 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9541 (hpux_thread_store_registers): Ditto.
9542 * hppah-nat.c (fetch_register): Ditto.
9543 * hppab-nat.c (fetch_register): Ditto.
9544 * hppa-tdep.c (pa_register_look_aside): Ditto.
9545 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9546 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9548 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9550 * gdbarch.sh: Explictly specify all method levels. When a
9551 variable with an empty level, provide a non-multi-arch default.
9552 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9553 * gdbarch.h: Re-generate.
9554 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9555 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9557 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9559 * defs.h (host_pointer_to_address): Delete declaration.
9560 (address_to_host_pointer): Delete declaration.
9561 * utils.c (host_pointer_to_address): Delete function.
9562 (address_to_host_pointer): Delete function.
9563 * procfs.c (procfs_address_to_host_pointer): New function.
9564 * procfs.c (proc_set_watchpoint): Use.
9565 (procfs_can_use_hw_breakpoint): Update comments.
9566 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9567 (som_solib_add): Use.
9568 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9569 * hppa-tdep.c (unwind_command): Use.
9571 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9573 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9576 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9577 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9578 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9579 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9580 (define_symbol): Update.
9581 * symfile.c (generic_load): Remove references to nindy.
9582 * symtab.c: Remove references to nindy.
9584 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9586 * infcmd.c (print_float_info): Delete code conditional on
9588 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9589 * config/m68k/nm-apollo68b.h: Ditto.
9590 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9591 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9592 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9594 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9596 * config/i386/tm-i386os9k.h: Removed.
9598 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9599 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9600 they're identical to i[3456]86-*-sysv* now.
9601 * config/i386/i386v32.mh: Removed.
9602 * config/i386/xm-i386v32.h: Removed.
9603 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9605 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9607 * config/i386/i386dgux.mh: Removed.
9608 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9610 * configure.in: Fix typo.
9611 * configure: Regenerated.
9613 2003-01-31 David Carlton <carlton@math.stanford.edu>
9615 * dwarf2read.c (dwarf2_locate_sections): Set
9616 dwarf_ranges_section.
9618 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9620 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9621 * utils.c: Update comments documenting legitimate uses of PTR.
9623 * utils.c: Re-indent.
9625 * config/djgpp/fnchange.lst: Delete nindy files.
9626 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9627 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9628 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9629 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9630 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9631 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9632 * Makefile.in (init.c): Remove nindy references.
9633 (saber_gdb): Delete rule.
9634 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9635 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9637 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9638 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9639 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9640 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9642 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9643 * saber.suppress: Delete file.
9645 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9647 * dbxread.c (stabs_data): New static variable.
9648 (fill_symbuf): Support an in-memory buffer for stabs data.
9649 (stabs_seek): New function.
9650 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9651 (read_ofile_symtab): Use stabs_seek.
9652 (elfstab_build_psymtabs): Take an asection* instead of
9653 an offset and size. Relocate the stabs data if necessary.
9654 Save the section* for dbx_psymtab_to_symtab.
9655 * dwarf2read.c: Add section variables for each debug section.
9656 (dwarf2_locate_sections): Fill them in.
9657 (dwarf2_read_section): Take an asection* argument.
9658 Relocate the section contents if necessary.
9659 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9660 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9661 it to dwarf2_read_section.
9662 (dwarf2_build_frame_info): Update callers.
9663 * elfread.c (elf_symfile_read): Update call to
9664 elfstab_build_psymtabs.
9665 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9666 (DBX_STAB_SECTION): New macro.
9667 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9668 * symfile.c (symfile_dummy_outputs): New function.
9669 (symfile_relocate_debug_section): New function.
9670 * symfile.h (symfile_relocate_debug_section): Add prototype.
9672 2003-01-31 Richard Henderson <rth@redhat.com>
9674 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9675 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9676 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9677 * alpha-tdep.c (alpha_register_name): Add "unique".
9678 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9679 (ALPHA_UNIQUE_REGNUM): New.
9680 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9682 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9684 * README: Remove reference to Ericsson 1800 monitor.
9685 * Makefile.in (remote-es.o): Delete rule.
9686 (ALLDEPFILES): Delete remote-es.c.
9687 * remote-es.c: Delete file.
9688 * config/m68k/es1800.mt: Delete file.
9689 * config/djgpp/fnchange.lst: Update.
9690 * configure.tgt: Delete m68*-ericsson-* target.
9692 2003-01-31 Adam Fedor <fedor@gnu.org>
9694 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9695 Remove duplicate/shadowing variable of same name.
9697 2003-01-30 Jim Blandy <jimb@redhat.com>
9699 * symfile.c (find_separate_debug_file): Assert that the objfile's
9700 directory name we compute ends with a slash, and then assume that
9701 that's so everywhere we use it.
9703 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9705 * valops.c (value_assign): Flush frame cache after stores to memory
9708 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9710 * Makefile.in (mon960-rom.o): Delete rule.
9711 * mon960-rom.c: Delete file.
9713 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9715 * d10v-tdep.c: Include "frame-unwind.h".
9716 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9718 (next_addr, uses_frame): Delete.
9719 (struct d10v_unwind_cache): Define.
9720 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9721 Use info instead of next_addr and uses_frame globals.
9722 (d10v_frame_init_saved_regs): Delete function.
9723 (d10v_init_extra_frame_info): Delete function.
9724 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9725 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9726 init_frame_pc or frame_saved_pc.
9727 (d10v_pop_frame): Delete function.
9728 (do_d10v_pop_frame): Delete function.
9729 (d10v_frame_chain): Delete function.
9730 (d10v_frame_chain_valid): Delete function.
9731 (d10v_frame_pc_unwind): New function.
9732 (d10v_frame_id_unwind): New function.
9733 (saved_regs_unwinder): New function.
9734 (d10v_frame_register_unwind): New function.
9735 (d10v_frame_pop): New function.
9736 (d10v_frame_unwind): New variable.
9737 (d10v_frame_p): New function.
9738 (d10v_frame_saved_pc): Delete function.
9739 * Makefile.in (d10v-tdep.o): Update dependencies.
9741 2003-01-30 J. Brobecker <brobecker@gnat.com>
9743 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9744 causing some regressions due to a change in the default value
9747 2003-01-29 Richard Henderson <rth@redhat.com>
9748 Elena Zannoni <ezannoni@redhat.com>
9749 Daniel Jacobowitz <drow@mvista.com>
9752 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9754 (RANGES_SECTION): New.
9755 (dwarf_ranges_buffer): New variable.
9756 (struct comp_unit_head): Add member "die".
9757 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9758 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9759 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9760 (dwarf2_locate_sections): Likewise.
9761 (dwarf2_build_psymtabs): Read .debug_ranges.
9762 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9763 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9764 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9765 Look for DW_AT_ranges and return the bounding box.
9767 2003-01-29 Brian Ford <ford@vss.fsi.com>
9769 * win32-nat.c (cygwin_pid): Removed as unused.
9770 (child_attach): Try fall back to Cygwin pid.
9772 2003-01-29 Jim Blandy <jimb@redhat.com>
9774 * objfiles.h (struct objfile): Doc fix.
9776 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9778 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9779 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9780 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9781 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9782 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9783 (FRAME_SAVED_PC): Change to a function with predicate.
9784 * gdbarch.h, gdbarch.c: Re-generate.
9786 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9788 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9790 * complaints.c (complain): Delete function.
9791 * complaints.h (struct deprecated_complaint): Delete definition.
9792 (complain): Delete declaration.
9794 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9796 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9799 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9801 * sentinel-frame.h, sentinel-frame.c: New files.
9802 * Makefile.in (frame.o): Update dependencies.
9803 (SFILES): Add sentinel-frame.c.
9804 (sentinel_frame_h): Define.
9805 (COMMON_OBS): Add sentinel-frame.o.
9806 (sentinel-frame.o): Specify dependencies.
9807 * frame.c: Include "sentinel-frame.h".
9808 (frame_register_unwind): Rewrite assuming that there is always a a
9810 (frame_register, generic_unwind_get_saved_register): Ditto.
9811 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9812 (create_sentinel_frame, unwind_to_current_frame): New functions.
9813 (get_current_frame): Rewrite using create_sentinel_frame and
9814 unwind_to_current_frame. When possible, always create a frame.
9815 (create_new_frame): Set next to the sentinel frame.
9816 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9817 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9818 ID cache when necessary.
9819 (frame_saved_regs_id_unwind): Use frame_relative_level.
9820 (deprecated_generic_get_saved_register): Use frame_relative_level,
9821 get_frame_saved_regs, get_frame_pc, get_frame_base and
9823 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9826 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9828 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9830 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9832 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9833 (maintenance_set_profile_cmd): Use error () instead of warning ().
9835 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9837 * configure.in: Check that -pg works if using --enable-profiling.
9838 Check for monstartup and _mcleanup regardless of --enable-profiling.
9839 * maint.c: Check for monstartup and _mcleanup before using them.
9840 * config.in: Regenerated.
9841 * configure: Regenerated.
9843 2003-01-24 Nick Clifton <nickc@redhat.com>
9847 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9849 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9850 (sh2e_show_regs): New.
9851 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9852 * config/sh/tm-sh.h: Added sh2e to comments.
9854 2003-01-23 Jim Blandy <jimb@redhat.com>
9856 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9857 symbols found)" message here; we haven't checked for a separate
9858 debug info file yet, so we don't know yet.
9859 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9860 we've looked everywhere. Also, there's no need to print a special
9861 message when we're loading the separate debug info file: the one
9862 symbol_file_add prints is fine.
9864 2003-01-23 Alexander Larsson <alexl@redhat.com>
9865 Jim Blandy <jimb@redhat.com>
9867 Add support for executables whose debug info has been separated
9868 out into a separate file, leaving only a link behind.
9869 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9870 and separate_debug_objfile_backlink.
9871 (put_objfile_before): New declaration.
9872 * symfile.c: #include "filenames.h".
9873 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9874 debug info in a separate file, read that, too. Save the addrs
9875 argument, so we can use it again to read the separated debug info;
9876 syms_from_objfile modifies the table we pass it.
9877 (reread_symbols): After re-reading an objfile, call
9878 reread_separate_symbols to refresh its separate debug info
9879 objfile, if it has one.
9880 (reread_separate_symbols, find_separate_debug_file,
9881 get_debug_link_info, separate_debug_file_exists): New functions.
9882 (debug_file_directory): New global var.
9883 (_initialize_symfile): Initialize debug_file_directory, and
9884 provide the new `set debug-file-directory' command to let the user
9886 * objfiles.c (free_objfile): If this objfile has its debug info in
9887 a separate objfile, free that one too. If this is itself a
9888 separate debug info objfile, clear our parent's backlink.
9889 (put_objfile_before): New function.
9890 * utils.c (gnu_debuglink_crc32): New function.
9891 * defs.h (gnu_debuglink_crc32): New declaration.
9892 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9893 * configure.in: Handle --with-separate-debug-dir config option.
9894 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9895 * acconfig.h (DEBUGDIR): New macro.
9896 * configure, aclocal.m4, config.in: Regenerated.
9898 2003-01-22 Jim Blandy <jimb@redhat.com>
9900 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9901 like the old symbol_file_add, but taking new arguments: you can
9902 now pass in either a `struct section_addr_info' list to say where
9903 each section is loaded, or a `struct section_offsets' table. Pass
9904 these new arguments through to syms_from_objfile as appropriate.
9905 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9906 with the appropriate quiescent values for the new arguments.
9908 * symfile.c: #include "gdb_assert.h".
9909 (syms_from_objfile): Add the ability to pass in a section offset
9910 table directly, as an alternative to the section_addr_info table.
9911 Document arguments better.
9912 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9913 * symfile.h (syms_from_objfile): Update declaration.
9914 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9916 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9918 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9920 Original patch by Tom Tromey <tromey@cygnus.com> and
9921 Jason Molenda <jmolenda@apple.com>.
9922 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9923 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9924 * NEWS: Mention profiling.
9925 * configure.in (--enable-gdbtk): Fix typo.
9926 (--enable-profiling): New. Set PROFILE_CFLAGS.
9927 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9929 (profiling_state): New variable.
9930 (mcleanup_wrapper): New function.
9931 (_initialize_maint): Remove NOTYET, fix call to
9932 add_setshow_boolean_cmd for "maint set profile".
9933 * configure: Regenerated.
9935 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9937 * Makefile.in (install-gdbtk): Install PNG images too.
9939 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9941 * exec.c (text_start): Delete global variable.
9942 (exec_file_attach): Make text_start local to the function.
9943 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9944 * valops.c (hand_function_call): Delete code that handles
9945 BEFORE_TEXT_END and AFTER_TEXT_END.
9946 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9947 of CALL_DUMMY_LOCATION.
9948 * gdbarch.c: Regenerate.
9949 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9950 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9951 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9952 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9953 (text_end): Delete extern declaration.
9955 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9957 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9958 * blockframe.c (backtrace_below_main): Move to "frame.c".
9959 (frame_chain_valid): Delete check for backtrace_below_main.
9960 (_initialize_blockframe): Delete initialization, move ``set
9961 backtrace-below-main'' command to "frame.c".
9962 (do_flush_frames_sfunc): Delete function.
9963 * frame.c: Include "command.h" and "gdbcmd.h".
9964 (frame_type_from_pc): New function.
9965 (create_new_frame): Use frame_type_from_pc.
9966 (legacy_get_prev_frame): New function.
9967 (get_prev_frame): Rewrite. When an old style frame, call
9968 legacy_get_prev_frame. Otherwize, unwind the PC first.
9969 (_initialize_frame): Add ``set backtrace-below-main'' command.
9970 * Makefile.in (frame.o): Update dependencies.
9972 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9974 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9975 DEPRECATED_REGISTERS_INFO.
9977 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9979 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9980 Maintainers'. Update `Various Maintainers'.
9982 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9984 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9985 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9986 Suppress actual parameters when `-'.
9987 * gdbarch.h, gdbarch.c: Regenerate.
9989 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9991 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9992 code handling dummy frames.
9994 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9996 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9997 (struct frame_unwind): Add field pop.
9998 * frame.h (frame_pop): Declare.
9999 * frame.c (frame_saved_regs_pop): New function.
10000 (trad_frame_unwinder): Add frame_saved_regs_pop.
10001 (frame_pop): New function.
10002 * dummy-frame.c (dummy_frame_pop): New function.
10003 (discard_innermost_dummy): New function.
10004 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10005 (dummy_frame_unwind): Add dummy_frame_pop.
10006 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10007 * valops.c (hand_function_call): Ditto.
10008 * stack.c (return_command): Ditto.
10010 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10012 * cris-tdep.c: Fix function declaration indentation.
10013 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10014 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10015 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10016 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10017 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10018 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10020 2003-01-18 Michael Chastain <mec@shout.net>
10022 * README (Unpacking and Installation -- quick overview):
10023 Warn against ".../gdb-5.3/gdb/configure".
10025 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10027 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10028 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10029 (struct frame_unwind): Declare opaque.
10030 (dummy_frame_p): Declare function.
10031 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10032 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10033 * dummy-frame.c: Include "frame-unwind.h".
10034 (dummy_frame_p): New function.
10035 (dummy_frame_unwind): New variable.
10036 * frame.c: Include "frame-unwind.h".
10037 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10038 to use the new unwind field.
10039 (set_unwind_by_pc): Delete function.
10040 (create_new_frame, get_prev_frame): Set unwind field using
10041 frame_unwind_find_by_pc.
10042 (trad_frame_unwind, trad_frame_unwinder): New variables.
10043 * frame.h (trad_frame_unwind): Declare variable.
10044 (frame_id_unwind_ftype): Delete declaration.
10045 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10046 (struct frame_unwind): Declare opaque.
10047 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10048 register_unwind with a single unwind pointer.
10049 * frame-unwind.h, frame-unwind.c: New files.
10050 * Makefile.in (SFILES): Add frame-unwind.c.
10051 (frame_unwind_h): Define.
10052 (COMMON_OBS): Add frame-unwind.o.
10053 (frame-unwind.o): Specify dependencies.
10054 (frame.o, dummy-frame.o): Update dependencies.
10056 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10058 * ada-valprint.c: Eliminate PTR.
10059 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10060 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10061 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10062 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10063 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10064 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10065 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10067 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10069 * main.c (captured_main): Don't use PTR.
10070 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10071 * gdbtypes.c (lookup_primitive_typename): Ditto.
10072 (lookup_struct_elt_type): Ditto.
10073 * f-valprint.c (info_common_command): Ditto.
10074 (list_all_visible_commons): Ditto.
10075 * jv-typeprint.c (java_type_print_base): Ditto.
10077 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10078 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10079 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10080 i386-interix-nat.c and i386-interix-tdep.c. Rename
10081 m68klinux-nat.c and m68klinux-tdep.c. Rename
10082 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10083 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10084 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10085 * main.c (captured_main): Use xfree, not free.
10087 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10089 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10090 ID back using a parameter.
10091 * frame.c (frame_id_unwind): Update call.
10092 (frame_saved_regs_id_unwind): Update.
10093 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10094 * dummy-frame.h (struct frame_id): Add opaque declaration.
10095 (dummy_frame_id_unwind): Update declaration.
10097 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10099 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10101 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10103 * MAINTAINERS (Stephen P. Smith): Updated email address.
10105 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10108 * breakpoint.c (until_break_command): Add new argument. Use it to
10109 decide whether to stop only at the current frame or not.
10110 * breakpoint.h (until_break_command): Update prototype.
10111 * infcmd.c (until_command): Add new argument to until_break_command
10113 (advance_command): New function.
10114 (_initialize_infcmd): Update help string for 'until' command.
10115 Add new 'advance' command.
10117 2003-01-14 David Carlton <carlton@math.stanford.edu>
10119 * linespec.c (decode_line_1): Normalize comments.
10120 (set_flags): Ditto.
10121 (locate_first_half): Ditto.
10122 (decode_compound): Ditto.
10123 (symtab_from_filename): Ditto.
10124 (decode_all_digits): Ditto.
10125 (decode_dollar): Ditto.
10126 (find_methods): Ditto.
10127 (find_toplevel_char): Ditto.
10129 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10131 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10132 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10133 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10134 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10135 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10136 * language.c, language.h, m32r-tdep.c: Update copyright.
10137 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10138 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10139 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10140 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10141 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10142 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10144 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10146 * stabsread.h (process_later, resolve_cfront_continuation):
10148 Update copyright years.
10149 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10150 Update copyright year.
10151 * dbxread.c(struct cont_elem): Obsolete.
10152 (process_later, process_now): Obsolete functions.
10153 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10154 Update copyright year.
10155 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10156 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10157 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10158 (parse_partial_symbols): Obsolete cfront support.
10160 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10162 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10163 read_cfront_baseclasses, read_cfront_member_functions,
10164 resolve_cfront_continuation,read_cfront_static_fields,
10165 copy_cfront_struct_fields): Obsolete functions.
10166 (define_symbol, read_one_struct_field): Obsolete cfront support.
10167 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10168 Update Copyright year.
10170 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10172 * stack.c (print_frame_info, print_stack_frame_base_stub,
10173 print_stack_frame_base, show_and_print_stack_frame_stub,
10174 show_and_print_stack_frame, print_only_stack_frame_stub,
10175 print_only_stack_frame): Delete functions.
10176 (print_stack_frame_stub): Call print_frame_info instead of
10177 print_frame_info_base.
10178 (print_frame_info_base): Rename to print_frame_info.
10179 (backtrace_command_1): Call print_frame_info, instead of
10180 print_frame_info_base.
10181 (current_frame_command): Call print_stack_frame, instead of
10182 print_only_stack_frame.
10183 (frame_command): Call print_stack_frame, instead of
10184 show_and_print_stack_frame.
10185 (up_command): Ditto.
10186 (down_command): Ditto.
10187 * frame.h (print_only_stack_frame): Delete prototype.
10188 * infrun.c (normal_stop): Call print_stack_frame, instead of
10189 show_and_print_stack_frame.
10190 * thread.c (info_threads_command): Call print_stack_frame, instead
10191 of print_only_stack_frame.
10193 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10195 * README (Graphical interface to GDB): Update URL. Point at
10198 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10201 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10203 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10206 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10208 * thread-db.c (attach_thread): Prototype.
10209 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10210 thread information (ti), and valid flags (th_valid, ti_valid).
10211 (attach_thread): Move target_pid_to_str call to after the thread
10212 is added to GDB's list. Initialize the cache.
10213 (thread_get_info_callback, thread_db_map_id2thr)
10214 (thread_db_get_info): New functions.
10215 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10216 (thread_db_store_registers, thread_db_thread_alive)
10217 (thread_db_get_thread_local_address): Use them.
10218 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10219 of calling error() for threads in unknown state.
10221 (clear_lwpid_callback): New function.
10222 (thread_db_resume): Use it to clear the cache.
10224 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10226 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10227 (resume_callback): Remove dead code.
10229 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10231 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10233 * gdbarch.h, gdbarch.c: Regenerate.
10234 * stack.c (frame_info): Only initialize the saved registers when
10235 FRAME_INIT_SAVED_REGS_P.
10236 * frame.c (frame_saved_regs_register_unwind): Assert
10237 FRAME_INIT_SAVED_REGS_P.
10238 (deprecated_generic_get_saved_register): Ditto.
10240 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10242 * source.c (openp): Squelch warning about "filename".
10244 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10246 * source.c (openp): If the file does not exist don't necessarily
10249 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10252 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10253 (integer_types_same_name_p): New function.
10254 (rank_one_type): Use it.
10255 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10257 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10259 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10261 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10262 * configure.in: Add --with-sysroot.
10263 * configure: Regenerated.
10264 * main.c (gdb_sysroot): New variable.
10265 (captured_main): Initialize gdb_sysroot.
10266 * defs.h (gdb_sysroot): New extern declaration.
10267 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10269 2003-01-12 Michael Chastain <mec@shout.net>
10271 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10273 2003-01-12 Michael Chastain <mec@shout.net>
10275 * top.c (print_gdb_version): Bump copyright year to 2003.
10277 2003-01-12 David Carlton <carlton@bactrian.org>
10279 * linespec.c (symtab_from_filename): Rename variable 's' to
10282 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10284 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10286 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10288 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10290 * d10v-tdep.c: Include "gdb_assert.h".
10291 (d10v_store_return_value): Rewrite to match current interface.
10292 (d10v_extract_struct_value_address): Ditto.
10293 (d10v_extract_return_value): Ditto.
10294 (d10v_gdbarch_init): Set store_restore_value,
10295 extract_struct_value_address and extract_return_value.
10297 2003-01-12 J. Brobecker <brobecker@gnat.com>
10299 * hpread.c (set_namestring): New procedure replacing the
10300 SET_NAMESTRING macro.
10301 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10302 by calls to set_namestring.
10304 2003-01-11 J. Brobecker <brobecker@gnat.com>
10306 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10307 a compilation warning.
10308 (hpread_process_one_debug_symbol): Likewise.
10310 2003-01-10 David Carlton <carlton@math.stanford.edu>
10312 * linespec.c (decode_line_1): Rename variable 's' to
10314 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10315 (decode_dollar): Ditto.
10316 (decode_variable): Ditto.
10317 (symbol_found): Ditto.
10319 2003-01-09 Michael Chastain <mec@shout.net>
10321 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10323 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10325 * win32-nat.c (set_process_privilege): New function.
10326 (child_attach): Call set_process_privilege() to enable the
10327 SE_DEBUG_NAME user privilege if available in process token.
10329 2003-01-10 J. Brobecker <brobecker@gnat.com>
10331 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10332 compilation error in the previous revision.
10334 2003-01-09 David Carlton <carlton@math.stanford.edu>
10336 * linespec.c: Update copyright.
10338 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10340 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10341 than inferior_ptid.
10342 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10344 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10346 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10348 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10349 (frame_saved_regs_zalloc): Update.
10350 (frame_saved_regs_register_unwind): Update.
10351 (create_new_frame): Update.
10352 (get_prev_frame): Update.
10353 (frame_extra_info_zalloc): Update.
10354 (deprecated_get_frame_saved_regs): Update.
10355 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10356 * cris-tdep.c: Update comment.
10358 * somsolib.h: Fix function indentation.
10359 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10360 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10361 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10362 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10363 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10365 * infrun.c (follow_fork): Use ISO C definition.
10366 * expprint.c (print_subexp): Use xfree instead of free.
10367 * charset.c: Include "gdb_string.h" instead of <string.h>.
10368 (register_iconv_charsets): Use ISO C definition.
10369 (host_charset, target_charset): Ditto.
10370 * Makefile.in (charset.o): Update dependencies.
10371 (mi-cmd-env.o): Update dependencies.
10373 2003-01-08 Andrew Cagney <cagney@redhat.com>
10375 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10378 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10380 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10381 build directories. Save edited gdb output in Mbuild.log. If a
10382 build fails, remove any final GDB executable.
10384 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10386 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10387 replacing hex constants with function names and stripping leading
10388 file name directory prefixes.
10390 2003-01-08 Andrew Cagney <cagney@redhat.com>
10392 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10395 2003-01-08 David Carlton <carlton@math.stanford.edu>
10397 * linespec.c (decode_line_1): Move code into decode_variable.
10398 (decode_variable): New function.
10400 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10402 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10404 2003-01-08 Andrew Cagney <cagney@redhat.com>
10406 * cris-tdep.c (cris_frame_init_saved_regs): Use
10407 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10409 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10410 (sh64_nofp_frame_init_saved_regs): Ditto.
10411 (sh_fp_frame_init_saved_regs): Ditto.
10412 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10413 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10414 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10415 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10417 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10419 * minsyms.c (lookup_minimal_symbol): Update comment.
10420 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10421 (lookup_minimal_symbol_solib_trampoline): Likewise.
10423 2003-01-08 Andrew Cagney <cagney@redhat.com>
10425 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10426 frame_relative_level.
10428 * alpha-tdep.c: Use get_frame_extra_info.
10429 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10430 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10431 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10432 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10434 * alpha-tdep.c: Use get_next_frame.
10435 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10436 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10437 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10438 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10439 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10440 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10441 * xstormy16-tdep.c: Ditto.
10443 2003-01-07 Andrew Cagney <cagney@redhat.com>
10445 * alpha-tdep.c: Use get_frame_base.
10446 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10447 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10448 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10449 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10450 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10451 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10452 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10453 * config/sparc/tm-sparc.h: Ditto.
10455 2003-01-07 Andrew Cagney <cagney@redhat.com>
10457 * frame.c (deprecated_get_frame_context): New function.
10458 (deprecated_set_frame_context): New function.
10459 * frame.h (deprecated_get_frame_context): Declare.
10460 (deprecated_set_frame_context): Declare.
10461 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10462 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10464 2003-01-07 Andrew Cagney <cagney@redhat.com>
10466 * frame.c (deprecated_set_frame_next_hack): New function.
10467 (deprecated_set_frame_prev_hack): New function.
10468 * frame.h (deprecated_set_frame_next_hack): Declare.
10469 (deprecated_set_frame_prev_hack): Declare.
10470 * mcore-tdep.c (analyze_dummy_frame): Use
10471 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10472 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10474 2003-01-07 David Carlton <carlton@math.stanford.edu>
10476 * linespec.c (decode_line_1): Move code into decode_dollar.
10477 (decode_dollar): New function.
10479 2003-01-07 Andrew Cagney <cagney@redhat.com>
10481 * arm-tdep.c (arm_init_extra_frame_info): Use
10482 deprecated_update_frame_base_hack.
10483 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10484 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10485 (fix_frame_pointer): Ditto.
10486 (mn10300_analyze_prologue): Ditto.
10488 2003-01-07 Andrew Cagney <cagney@redhat.com>
10490 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10491 extra_info using frame_extra_info_zalloc.
10492 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10493 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10494 (sh64_init_extra_frame_info): Ditto.
10495 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10496 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10497 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10498 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10499 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10500 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10501 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10502 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10503 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10504 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10505 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10506 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10508 * mn10300-tdep.c (analyze_dummy_frame): Use
10509 deprecated_set_frame_extra_info_hack.
10510 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10512 2003-01-07 J. Brobecker <brobecker@gnat.com>
10514 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10515 class is not scText. These do not define "real" procedures.
10516 (parse_partial_symbols): Likewise.
10518 2003-01-06 Michael Snyder <msnyder@redhat.com>
10520 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10522 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10524 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10525 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10526 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10527 deprecated_frame_xmalloc_with_cleanup.
10528 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10529 deprecated_frame_xmalloc.
10530 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10531 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10533 2003-01-06 Andrew Cagney <cagney@redhat.com>
10535 * x86-64-linux-tdep.c: Include "osabi.h".
10536 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10538 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10540 2003-01-06 Andrew Cagney <cagney@redhat.com>
10542 * MAINTAINERS (Target Instruction Set Architectures): Update
10543 arm-elf. Can be built with -Werror, has been multiarched.
10545 * value.h (unpack_long): Make buffer parameter constant.
10546 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10547 * scm-lang.h (scm_parse): Ditto.
10548 * defs.h (extract_typed_address, extract_address): Ditto.
10549 (extract_long_unsigned_integer): Ditto.
10550 * inferior.h (unsigned_pointer_to_address): Ditto.
10551 (signed_pointer_to_address): Ditto.
10552 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10553 * gdbarch.h, gdbarch.c: Regenerate.
10554 * findvar.c (extract_long_unsigned_integer): Update.
10555 (extract_address): Update.
10556 (extract_typed_address): Update.
10557 (unsigned_pointer_to_address): Update.
10558 * values.c (unpack_long): Update.
10559 (unpack_double): Update.
10560 (unpack_pointer): Update.
10561 (unpack_field_as_long): Update.
10562 * d10v-tdep.c (d10v_pointer_to_address): Update.
10563 * avr-tdep.c (avr_pointer_to_address): Update.
10564 * scm-lang.c (scm_unpack): Update.
10565 * findvar.c (signed_pointer_to_address): Update.
10567 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10569 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10570 since it is in i386-tdep.c.
10572 2003-01-06 J. Brobecker <brobecker@gnat.com>
10574 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10575 failure introduced in the previous change.
10577 2003-01-05 Michael Chastain <mec@shout.net>
10579 * README: Remove references to deleted remote-*.c files:
10580 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10581 remote-nrom.c, remote-os9k.c, remote-udi.c.
10583 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10585 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10586 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10587 i386_get_longjmp_target.
10589 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10591 * arm-tdep.c (prologue_cache): Change to a pointer.
10592 (_initialize_arm_tdep): Allocate prologue_cache.
10593 (check_prologue_cache): Update.
10594 (save_prologue_cache): Update.
10595 (arm_gdbarch_init): Update.
10597 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10599 * stabsread.c (update_method_name_from_physname): Call complaint()
10602 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10604 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10605 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10606 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10608 * blockframe.c: Include "gdbcmd.h" and "command.h".
10609 (backtrace_below_main): New variable.
10610 (file_frame_chain_valid, func_frame_chain_valid)
10611 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10612 (generic_func_frame_chain_valid): Remove functions.
10613 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10614 (_initialize_blockframe): New function.
10615 * Makefile.in (blockframe.o): Update dependencies.
10616 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10617 comment. Call frame_chain_valid ().
10618 * frame.h: Remove old prototypes. Add prototype for
10619 frame_chain_valid and update comments to match.
10620 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10621 Remove old comment.
10622 * gdbarch.h: Regenerated.
10623 * gdbarch.c: Regenerated.
10625 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10626 set_gdbarch_frame_chain_valid.
10627 * avr-tdep.c (avr_gdbarch_init): Likewise.
10628 * cris-tdep.c (cris_gdbarch_init): Likewise.
10629 * frv-tdep.c (frv_gdbarch_init): Likewise.
10630 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10631 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10632 (i386_nw_init_abi): Likewise.
10633 (i386_gdbarch_init): Likewise.
10634 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10635 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10636 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10637 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10638 * mips-tdep.c (mips_gdbarch_init): Likewise.
10639 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10640 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10641 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10642 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10643 * s390-tdep.c (s390_gdbarch_init): Likewise.
10644 * sh-tdep.c (sh_gdbarch_init): Likewise.
10645 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10646 * v850-tdep.c (v850_gdbarch_init): Likewise.
10647 * vax-tdep.c (vax_gdbarch_init): Likewise.
10648 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10650 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10651 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10652 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10653 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10654 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10655 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10656 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10657 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10659 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10661 * Makefile.in (acconfig_h): Remove incorrect macro.
10662 (config_h): Define.
10663 (osabi.o): Update dependencies.
10664 * configure.tgt: Set gdb_osabi based on target triplet.
10665 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10666 * configure: Regenerated.
10667 * config.in: Regenerated.
10668 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10669 (GDB_OSABI_DEFAULT): Define if not already defined.
10670 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10671 (set_osabi_string): New variables.
10672 (gdbarch_register_osabi): Add new OS ABI to
10673 gdb_osabi_available_names.
10674 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10675 (set_osabi, show_osabi): New functions.
10676 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10678 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10680 * arch-utils.c (gdbarch_info_init): Set osabi to
10681 GDB_OSABI_UNINITIALIZED.
10682 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10683 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10684 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10685 * gdbarch.c: Regenerated.
10686 * gdbarch.h: Regenerated.
10687 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10689 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10690 * osabi.h (enum gdb_osabi): Move to defs.h.
10691 (gdbarch_init_osabi): Update prototype.
10692 * defs.h (enum gdb_osabi): Moved here.
10693 * Makefile.in: Update dependencies.
10695 * alpha-tdep.h: Don't include "osabi.h".
10696 (struct gdbarch_tdep): Remove osabi member.
10697 * alpha-tdep.c: Include "osabi.h".
10698 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10699 iterate over arches. Update call to gdbarch_init_osabi.
10700 (alpha_dump_tdep): Don't dump osabi.
10701 * alpha-linux-tdep.c: Include "osabi.h".
10702 * alpha-osf1-tdep.c: Include "osabi.h".
10703 * alphafbsd-tdep.c: Include "osabi.h".
10704 * alphanbsd-tdep.c: Include "osabi.h".
10706 * arm-tdep.h: Don't include "osabi.h".
10707 (struct gdbarch_tdep): Remove osabi member.
10708 * arm-tdep.c: Include "osabi.h".
10709 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10710 iterate over arches. Update call to gdbarch_init_osabi.
10711 (arm_dump_tdep): Don't dump osabi.
10712 * arm-linux-tdep.c: Include "osabi.h".
10713 * armnbsd-tdep.c: Include "osabi.h".
10715 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10716 Update call to gdbarch_init_osabi.
10718 * i386-tdep.h: Don't include "osabi.h".
10719 (struct gdbarch_tdep): Remove osabi member.
10720 * i386-tdep.c: Include "osabi.h".
10721 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10722 iterate over arches. Update call to gdbarch_init_osabi.
10723 (i386_dump_tdep): Don't dump osabi.
10724 * i386-linux-tdep.c: Include "osabi.h".
10725 * i386-sol2-tdep.c: Include "osabi.h".
10726 * i386bsd-tdep.c: Include "osabi.h".
10727 * i386gnu-tdep.c: Include "osabi.h".
10728 * i386ly-tdep.c: Include "osabi.h".
10729 * i386nbsd-tdep.c: Include "osabi.h".
10730 * i386obsd-tdep.c: Include "osabi.h".
10732 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10733 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10734 check osabi when iterating over arches. Update call to
10735 gdbarch_init_osabi.
10736 (mips_dump_tdep): Don't dump osabi.
10738 * ns32k-tdep.h: Don't include "osabi.h".
10739 (struct gdbarch_tdep): Remove.
10740 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10741 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10742 allocate tdep. Update call to gdbarch_init_osabi.
10743 (ns32k_dump_tdep): Remove.
10744 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10745 * ns32knbsd-tdep.c: Include "osabi.h".
10747 * ppc-tdep.h: Don't include "osabi.h".
10748 (struct gdbarch_tdep): Remove osabi member.
10749 * rs6000-tdep.c: Include "osabi.h".
10750 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10751 osabi when iterating over arches. Update call to
10752 gdbarch_init_osabi.
10753 (rs6000_dump_tdep): Don't dump osabi.
10754 * ppc-linux-tdep.c: Include "osabi.h".
10755 * ppcnbsd-tdep.c: Include "osabi.h".
10757 * sh-tdep.h: Don't include "osabi.h".
10758 (struct gdbarch_tdep): Remove osabi member.
10759 * sh-tdep.c: Include "osabi.h".
10760 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10761 iterate over arches. Update call to gdbarch_init_osabi.
10762 (sh_dump_tdep): Don't dump osabi.
10763 * shnbsd-tdep.c: Include "osabi.h".
10765 * sparc-tdep.c: Include "osabi.h".
10766 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10767 iterate over arches. Update call to gdbarch_init_osabi.
10768 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10771 * vax-tdep.h: Don't include "osabi.h".
10772 (struct gdbarch_tdep): Remove.
10773 * vax-tdep.c: Include "osabi.h".
10774 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10775 iterate over arches. Don't allocate tdep. Update call
10776 to gdbarch_init_osabi.
10777 (vax_dump_tdep): Remove.
10778 (_initialize_vax_tdep): Update call to gdbarch_register.
10780 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10782 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10784 (breakpoint_re_set_one): Don't fetch the value for a disabled
10787 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10789 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10790 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10791 (COERCE_FLOAT_TO_DOUBLE): Remove.
10792 * gdbarch.c: Regenerate.
10793 * gdbarch.h: Regenerate.
10794 * Makefile.in: Remove value_h from gdbarch_h.
10795 * valops.c (coerce_float_to_double): New variable.
10796 (default_coerce_float_to_double): Remove.
10797 (standard_coerce_float_to_double): Remove.
10798 (value_arg_coerce): Use coerce_float_to_double.
10799 (_initialize_valops): Add "set coerce-float-to-double".
10800 * value.h (default_coerce_float_to_double): Remove prototype.
10801 (standard_coerce_float_to_double): Remove prototype.
10803 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10805 * mdebugread.c (parse_symbol): Likewise.
10806 * stabsread.c (define_symbol): Mark all functions as prototyped.
10808 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10809 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10810 set_gdbarch_coerce_float_to_double.
10811 * arm-tdep.c (arm_gdbarch_init): Likewise.
10812 * frv-tdep.c (frv_gdbarch_init): Likewise.
10813 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10814 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10815 * mips-tdep.c (mips_gdbarch_init): Likewise.
10816 (mips_coerce_float_to_double): Remove.
10817 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10818 (rs6000_coerce_float_to_double): Remove.
10819 * s390-tdep.c (s390_gdbarch_init): Likewise.
10820 * sh-tdep.c (sh_gdbarch_init): Likewise.
10821 (sh_coerce_float_to_double): Remove.
10822 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10823 (sparc_coerce_float_to_double): Remove.
10824 * v850-tdep.c (v850_gdbarch_init): Likewise.
10825 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10826 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10827 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10828 (hppa_coerce_float_to_double): Remove prototype.
10829 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10831 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10833 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10835 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10837 Suggested by Stewart Brown <sb24@avaya.com>:
10838 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10839 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10840 (c_type_print_varspec_suffix): Likewise.
10842 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10844 * configure.in: Don't set and AC_SUBST SUBDIRS.
10845 * configure: Regenerated.
10847 * configure.in: Remove code dealing with shared libraries.
10848 * Makefile.in: Remove HLDFLAGS and HLDENV.
10849 * configure: Regenerated.
10851 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10853 * frame.c (deprecated_frame_xmalloc): New function.
10854 (deprecated_set_frame_saved_regs_hack): New function.
10855 (deprecated_set_frame_extra_info_hack): New function.
10856 * frame.h (deprecated_frame_xmalloc): Declare.
10857 (deprecated_set_frame_saved_regs_hack): Declare.
10858 (deprecated_set_frame_extra_info_hack): Declare.
10860 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10862 * configure.in: Move code that provides the --enable-gdbtk option
10863 right after the code that handles the --enable-tui option, and
10864 polish it somewhat.
10865 * configure: Regenerated.
10867 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10868 AC_CHECK_FUNCS and remove the old check for pread64.
10869 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10870 * acconfig.h (_GNU_SOURCE): Add.
10871 (HAVE_PREAD64): Remove.
10872 * configure, aclocal.m4, config.in: Regenerated.
10874 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10876 * alpha-tdep.c: Use get_frame_saved_regs.
10877 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10878 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10879 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10880 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10881 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10883 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10885 * configure.in: Remove all use of the SUBDIRS variable; add
10886 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10887 code providing the --enable-multi-ice option, and move it right in
10888 front of the code that checks whether gdbserver is supported.
10890 * configure: Regenerated.
10891 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10894 2003-01-03 Andrew Cagney <cagney@redhat.com>
10896 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10897 * avr-tdep.c, cris-tdep.c: Ditto.
10898 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10899 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10901 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10903 * configure.in: Remove --enable-netrom option.
10904 * configure: Regenerated.
10906 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10908 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10909 declaration for `struct re_pattern_buffer' instead.
10910 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10912 2003-01-03 J. Brobecker <brobecker@gnat.com>
10914 * mdebugread.c (parse_symbol): Count until the stEnd matching
10915 the structure name.
10917 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10919 * configure.in: Remove --with-cpu option.
10920 subscripts. Remove evil changequotes here.
10921 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10922 * config.in, configure: Regenerated.
10924 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10925 * configure.in: Cleanup section that sources GDB and BFD configure
10926 subscripts. Remove evil changequotes here.
10927 * config.in, configure: Regenerated.
10929 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10931 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10932 frame accessor methods.
10933 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10934 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10935 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10936 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10937 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10938 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10939 * z8k-tdep.c: Ditto.
10941 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10943 * configure.in: Remove UI_OUT configuration code.
10944 * ada-lang.c: Update assuming UI_OUT is always true.
10945 * Makefile.in (UIOUT_CFLAGS): Remove.
10946 * configure: Regenerated.
10947 * TODO: Remove blurb about elimination of -DUI_OUT.
10949 * configure.in: Move code that provides the --enable-gdbcli,
10950 --enable-gdbmi options right before the code that handles the
10951 --enable-tui option. Polish a bit.
10952 * configure: Regenerated.
10954 * configure.in: Rewrite check for GNU regex and the
10955 --without-included regex option, and move it into the "Checks for
10956 library functions" section. This makes us use the system regex
10957 again by default on systems with version 2 of the GNU C library.
10958 This was apparently broken.
10959 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10960 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10961 * config.in, configure: Regenerated.
10963 * configure.in: Move code that provides the --enable-tui option
10964 before the "Checks for libraries" section. Polish the code
10965 somewhat and set need_curses to yes if we build the TUI. Rewrite
10966 code that looks for a library providing termcap functionality to
10967 match more closely what's done in the Readline library, and move
10968 it into to the "Checks for libraries" section.
10969 * configure: Regenerated.
10970 * Makefile.in (TERMCAP): Remove variable.
10971 * config/i386/go32.mh (TERMCAP): Remove variable.
10973 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10975 * MAINTAINERS: Mention gdb_mbuild.sh.
10976 * gdb_mbuild.sh: Rewrite.
10978 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10980 * configure.in: Fix typo in last change.
10981 * config.in, configure: Regenerated.
10983 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10985 * valarith.c (value_binop): Delete obsolete code and comments.
10986 * configure.host: Ditto.
10987 * buildsym.h (make_blockvector): Ditto.
10988 * buildsym.c (make_blockvector): Ditto.
10989 * defs.h (enum language): Ditto.
10990 (chill_demangle): Ditto.
10991 * elfread.c (elf_symtab_read): Ditto.
10992 * dwarfread.c (CHILL_PRODUCER): Ditto.
10993 (set_cu_language): Ditto.
10994 (handle_producer): Ditto.
10995 * expprint.c (print_subexp): Ditto.
10996 * gdbtypes.c (chill_varying_type): Ditto.
10997 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10998 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10999 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11000 (chill_varying_type): Ditto.
11001 * language.h (_LANG_chill): Ditto.
11002 * language.c (binop_result_type, integral_type): Ditto.
11003 (character_type, string_type, structured_type): Ditto.
11004 (lang_bool_type, binop_type_check): Ditto.
11005 * stabsread.h (os9k_stabs): Ditto.
11006 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11007 (define_symbol, read_type, read_struct_fields): Ditto.
11008 (read_array_type, read_enum_type, read_huge_number): Ditto.
11009 (read_range_type, start_stabs): Ditto.
11010 * symfile.c (init_filename_language_table): Ditto.
11011 (add_psymbol_with_dem_name_to_list): Ditto.
11012 * symtab.c (symbol_init_language_specific): Ditto.
11013 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11014 * symtab.h (struct general_symbol_info): Ditto.
11015 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11016 * typeprint.c (typedef_print): Ditto.
11017 * utils.c (fprintf_symbol_filtered): Ditto.
11018 * valops.c (value_cast, search_struct_field, value_slice): Delete
11020 (varying_to_slice): Delete function.
11021 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11022 (varying_to_slice): Delete declaration.
11023 * MAINTAINERS: Update.
11025 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11027 * configure.in: Reorganize "Checks for library functions section"
11028 a bit. Remove check for `btowc' and `isascii' functions.
11029 * configure: Regenerated.
11031 * acconfig.h (_MSE_INT_H): Remove.
11032 * configure.in: Create "Checks for header files" section, and move
11033 appropriate tests there. Don't check for objlist.h, wchar.h,
11034 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11035 misdetection fix. Also add "Checks for types", "Checks for
11036 compiler characteristics" and "Checks for library functions"
11038 * config.in, configure: Regenerated.
11040 * configure.in: Create "Checks for programs" section, and move
11041 appropriate tests there.
11043 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11045 * configure.in: Create "Checks for libraries" section, and move
11046 appropriate tests there. Cleanup check for wctype in libw. Use
11047 AC_SEARCH_LIBS to see whether we need libsocket.
11048 * configure: Regenerated.
11050 For older changes see ChangeLog-2002
11056 version-control: never