1 2003-08-27 Andrew Cagney <cagney@redhat.com>
3 * dsrec.c: Include "gdb_string.h".
4 * Makefile.in (dsrec.o): Update dependencies.
6 2003-08-27 Michael Chastain <mec@shout.net>
8 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
10 2003-08-27 Andrew Cagney <cagney@redhat.com>
12 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
13 (alpha_osf1_init_abi): Do not set call_dummy_address.
15 2003-08-27 David Carlton <carlton@kealia.com>
17 From Randolph Chung <tausq@debian.org>:
18 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
19 compiles with -Wformat-nonliteral -Werror.
21 2003-08-26 Jim Blandy <jimb@redhat.com>
23 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
24 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
25 bfd_lookup_symbol, since we only want symbols in code sections.
26 (look_for_base): Pass zero as the SECT_FLAGS argument to
27 bfd_lookup_symbol, since we're not concerned about which section
30 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
32 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
33 we are frameless or the return address register is already known.
35 2003-08-26 Andrew Cagney <cagney@redhat.com>
37 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
38 in size. Add comments.
40 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
42 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
43 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
45 2003-08-26 Jason Merrill <jason@redhat.com>
47 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
48 case out of #ifdef MIPS block.
50 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
53 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
54 available before calling SECT_OFF_TEXT.
55 * PROBLEMS: Remove description of java/1322.
57 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
59 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
60 bof, and nat0-nat127 as pseudo-registers.
61 (ia64_frame_cache): New struct used to cache frame info.
62 (ia64_register_reggroup_p): New routine used to override default
63 register grouping so registers without names are still saved and
65 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
67 (ia64_pseudo_register_read): New routine to read pseudo-registers.
68 (ia64_pseudo_register_write): New routine to write pseudo-registers.
69 (ia64_alloc_frame_cache): New routine to create a new
71 (examine_prologue): Change prototype to add next_frame pointer.
72 Assume frameless until otherwise proven. Verify that the cfm for
73 current frame matches the cfm that should occur for the prologues
74 alloc insn and if equal, mark as not frameless. At end of routine,
75 if not frameless, calculate registers for the previous frame and store
76 in the cache, if a cache is provided.
77 (ia64_skip_prologue): Use new prototype when calling examine_prologue
78 and pass 0 for next_frame.
79 (ia64_store_return_value): Change to use convert_typed_floating()
80 instead of calling ia64_convert_to_raw().
81 (ia64_extract_return_value): Change to use convert_typed_floating()
82 instead of calling ia64_convert_to_virtual().
83 (ia64_frame_cache): New routine to support new frame model.
84 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
85 (ia64_frame_sniffer): Ditto.
86 (ia64_sigtramp_frame_init_saved_regs): Ditto.
87 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
88 (ia64_sigtramp_frame_prev_register): Ditto.
89 (ia64_sigtramp_frame_sniffer): Ditto.
90 (ia64_frame_base_address): Ditto.
91 (ia64_extract_struct_value_address): Change to issue error message.
92 (ia64_frame_align): New routine to align sp.
93 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
94 (ia64_push_arguments): Removed. Logic moved to
95 ia64_push_dummy_call().
96 (ia64_push_return_address): Ditto.
97 (ia64_unwind_dummy_id): New function.
98 (ia64_unwind_pc): Ditto.
99 (ia64_convert_register_p): Ditto.
100 (ia64_register_to_value): Ditto.
101 (ia64_value_to_register): Ditto.
102 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
103 (ia64_register_byte, ia64_register_raw_size): Ditto.
104 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
105 (ia64_saved_pc_after_call): Ditto.
106 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
107 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
108 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
109 (ia64_register_convert_to_raw): Ditto.
110 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
111 (ia64_init_extra_frame_info): Ditto.
112 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
113 (ia64_gdbarch_init): Remove registering of deprecated functions that
114 are no longer used. Add registration of new gdbarch functions.
115 Remove registering deprecated_write_sp. Replace
116 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
117 Delete set_gdbarch_deprecated_register_convertible(),
118 set_gdbarch_deprecated_register_convert_to_virtual(), and
119 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
120 set_gdbarch_deprecated_register_size(),
121 set_gdbarch_deprecated_register_bytes(),
122 set_gdbarch_pcregnum(),
123 set_gdbarch_deprecated_register_byte(),
124 set_gdbarch_deprecated_register_raw_size(),
125 set_gdbarch_deprecated_max_register_raw_size(),
126 set_gdbarch_deprecated_register_virtual_size(),
127 and set_gdbarch_deprecated_max_register_virtual_size() calls.
128 Replace set_gdbarch_deprecated_extract_return_value() with
129 set_gdbarch_extract_return_value(). Remove calls to:
130 set_gdbarch_deprecated_saved_pc_after_call();
131 set_gdbarch_deprecated_frame_chain(),
132 set_gdbarch_deprecated_frame_saved_pc(),
133 set_gdbarch_deprecated_frame_init_saved_regs(),
134 set_gdbarch_deprecated_get_saved_register(),
135 set_gdbarch_deprecated_call_dummy_words(),
136 set_gdbarch_deprecated_sizeof_call_dummy_words(),
137 set_gdbarch_deprecated_init_extra_frame_info(),
138 set_gdbarch_deprecated_frame_args_address(),
139 set_gdbarch_deprecated_frame_locals_address(),
140 and set_gdbarch_deprecated_dummy_write_sp().
141 Add set_gdbarch_convert_register_p(),
142 set_gdbarch_register_to_value(),
143 set_gdbarch_value_to_register(),
144 set_gdbarch_push_dummy_call(),
145 set_gdbarch_frame_align(),
146 set_gdbarch_unwind_dummy_id(),
147 set_gdbarch_unwind_pc(),
148 frame_unwind_append_sniffer(),
149 frame_unwind_append_sniffer(),
150 and frame_base_set_default().
152 2003-08-25 Chris Demetriou <cgd@broadcom.com>
154 * configure.tgt: Document need for special "mipsisa64" handling.
155 (mipsisa64*-*-linux64): Handle as target linux64.
156 (mipsisa64*-*-*): Handle as target embed64.
158 2003-08-18 Michael Chastain <mec@shout.net>
160 * PROBLEMS: Document pr gdb/1322, the Java anonymous
163 2003-08-24 Mark Kettenis <kettenis@gnu.org>
165 * i387-tdep.h: Update copyright date.
166 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
168 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
169 CFLAGS games to reflect reality.
171 2003-08-24 Andrew Cagney <cagney@redhat.com>
173 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
174 GDB_MULTI_ARCH is always non-zero.
175 * osabi.c (_initialize_gdb_osabi): Ditto.
176 (gdbarch_init_osabi): Ditto.
177 * sparc-tdep.c: Ditto for #if code.
179 2003-08-23 Mark Kettenis <kettenis@gnu.org>
181 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
183 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
185 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
186 x86_64_supply_fxsave.
187 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
188 x86_64_supply_fxsave.
189 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
190 x86_64_supply_fxsave.
192 2003-08-23 Andreas Jaeger <aj@suse.de>
194 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
197 2003-08-23 Mark Kettenis <kettenis@gnu.org>
199 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
200 i387_supply_register.
201 (go32_fetch_registers): Adjust call to i387_supply_fsave.
202 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
204 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
206 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
208 * i386bsd-nat.c (supply_fpregset): Adjust call to
210 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
211 call to i387_supply_fxsave. Call i387_supply_fsave instead of
213 (store_inferior_registers): Remove extraneous whitespace. Call
214 i387_fill_fsave instead of fill_fpregset.
215 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
216 (supply_fpregset): Likewise.
217 * i386v4-nat.c (supply_fpregset): Adjust call to
219 * i386-interix-nat.c (supply_fpregset): Adjust call to
221 * i386-linux-nat.c (supply_fpregset): Adjust call to
223 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
224 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
225 i387supply_fsave and i387_supply_fxsave.
226 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
227 Incorporate code from `i387_supply_register.
228 (i387_supply_register): Remove.
229 (i387_supply_fxsave): Add `regnum' argument.
231 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
233 (i387_supply_register): remove prototype.
236 2003-08-22 Michael Chastain <mec@shout.net>
238 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
239 Add lines for files in gdb/testsuite/gdb.cp/* that are
240 still not 8.3 unique.
242 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
244 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
245 TYPE_VPTR_FIELDNO is valid.
247 2003-08-19 Mark Kettenis <kettenis@gnu.org>
249 * utils.c (set_width_command): Remove prototypes.
250 (set_screen_size): New prototype.
251 (init_page_info): Simplify by fetching the screen size from
252 Readline. Call set_screen_size.
253 (set_screen_size): New function.
254 (set_width): Add missing whitespace in comment.
255 (set_width_command): Call set_screen_size.
256 (set_height_command): New function.
257 (initialize_utils): Fix formatting. Make "set height" command
258 call set_height_command. Remove redundant code that turns off
259 pagination if output isn't a terminal. Remove redundant call to
262 2003-08-22 Mark Kettenis <kettenis@gnu.org>
264 * sparc64-tdep.h (sparc64_regnum): Fix comment.
265 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
266 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
267 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
269 (sparc64_register_info): Give the reister with number
270 SPARC64_STATE_REGNUM a name.
271 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
273 (sparc64_push_dummy_call): Take BIAS into account when checking
275 (sparc_software_single_step): Remove assertions that check whether
276 NPC and NNPC were zero.
277 (sparc_supply_rwindow): Make public. Merge functionality with
278 sparc64_supply_rwindow.
279 (sparc_fill_rwindow): Make public. Merge functionality with
280 sparc64_fill_rwindow.
281 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
282 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
283 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
284 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
285 sparc_supply_rwindow instead of sparc64_supply_rwindow.
287 * reggroups.c: Add whitespace after declarations of local
288 variables in functions.
290 2003-08-21 Michael Chastain <mec@shout.net>
292 * gdbtypes.h: Change array bound type from an int to enum.
294 2003-08-21 Andrew Cagney <cagney@redhat.com>
296 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
297 * config/sparc/tm-sparc.h: Ditto.
298 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
300 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
302 2003-07-13 Mark Kettenis <kettenis@gnu.org>
304 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
305 (register_objfile_data, set_objfile_data, objfile_data): New
307 * objfiles.c (objfile_alloc_data, objfile_free_data): New
309 (allocate_objfile): Call objfile_alloc_data.
310 (free_objfile): Call objfile_free_data.
311 (struct objfile_data): New.
312 (struct objfile_data_registration): New.
313 (struct objfile_data_registry): New.
314 (objfile_data_registry): New variable.
315 (register_objfile_data): New function.
316 (objfile_alloc_data, objfile_free_data): New functions.
317 (set_objfile_data, objfile_data): New functions.
318 * dwarf2-frame.c (dwarf2_frame_data): New variable.
319 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
320 (_initialize_dwarf2_frame): New function and prototype.
322 2003-08-21 Andrew Cagney <cagney@redhat.com>
324 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
325 a specific architecture.
326 * arch-utils.h (set_architecture_from_arch_mach): Delete
328 (target_architecture_hook): Delete declaration.
329 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
330 (default_float_format): Assume GDB_MULTI_ARCH.
331 (default_double_format): Assume GDB_MULTI_ARCH.
332 (set_endian_from_file): Delete function.
333 (arch_ok): Delete function.
334 (set_arch): Delete function.
335 (set_architecture_from_arch_mach): Delete function.
336 (set_architecture_from_file): Delete function.
337 (set_architecture): Assume GDB_MULTI_ARCH.
338 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
340 2003-08-21 Mark Kettenis <kettenis@gnu.org>
342 Rewrite FreeBSD/sparc64 native configuration.
343 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
344 * sparc64fbsd-nat.c: New file.
345 * sparc64fbsd-tdep.c: New file.
346 * sparc64-tdep.c sparc64-tdep.h: New files.
347 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
348 sparc64fbsd-tdep.o): New dependencies.
349 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
350 and sparc64fbsd-tdep.c.
351 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
352 * config/sparc/fbsd.mh: Remove copyright notice.
353 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
355 * config/sparc/fbsd.mt: Remove copyright notice.
356 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
357 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
358 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
359 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
360 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
361 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
362 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
363 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
365 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
366 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
368 2003-08-21 Michael Chastain <mec@shout.net>
370 * symtab.h: Add doco on the space critical structures and
371 some measurements of space usage.
373 2003-08-21 Michael Snyder <msnyder@redhat.com>
375 * tracepoint.c (trace_dump_command): Trace break address
376 is subject to DECR_PC_AFTER_BREAK.
377 (set_traceframe_context): Make "trace_line" an int.
378 Fixes suggested by Mark Newman <mark.newman@lmco.com>
380 2003-08-20 Michael Snyder <msnyder@redhat.com>
382 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
383 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
384 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
386 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
387 functions, replace sh_push_dummy_call.
388 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
390 2003-08-20 Michael Chastain <mec@shout.net>
392 * gdbtypes.h (struct main_type): Rearrange to save space.
394 2003-08-20 Michael Snyder <msnyder@redhat.com>
396 * trad-frame.c: Comment typo fix.
398 2003-08-20 Michael Snyder <msnyder@redhat.com>
399 Kevin Buettner <kevinb@redhat.com>
401 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
402 (frv_frame_init_saved_regs): Add declaration.
403 (frame_extra_info): Add new field ``saved_regs''.
404 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
405 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
406 Update frame related code.
407 (frv_extract_struct_value_address): Adjust formatting.
408 * Makefile.in (frv-tdep.o): Update dependencies.
409 * config/frv/tm-frv.h (target_insert_watchpoint)
410 (target_remove_watchpoint, target_insert_hw_breakpoint)
411 (target_remove_hw_breakpoint): Delete these macros.
412 (remote_insert_watchpoint, remote_remove_watchpoint)
413 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
416 2003-08-20 Michael Chastain <mec@shout.net>
418 * defs.h (ENUM_BITFIELD): New macro.
419 * symtab.h (ENUM_BITFIELD): Use it.
420 (BYTE_BITFIELD): Remove old macro, which was already disabled.
422 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
424 * MAINTAINERS (write after approval): Add myself.
426 2003-08-18 Andrew Cagney <cagney@redhat.com>
428 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
429 * gdbarch.h, gdbarch.c: Re-generate.
430 * infcall.c (call_function_by_hand): Adjust the SP by
431 frame_red_zone_size before allocating any stack space.
432 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
433 * x86-64-tdep.c (x86_64_frame_align): New function.
434 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
436 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
437 Remove code adjusting SP so that it skips over the Red Zone.
439 2003-08-18 Mark Kettenis <kettenis@gnu.org>
441 * NEWS (New native configurations): Mention FreeBSD/amd64.
443 2003-08-18 Andrew Cagney <cagney@redhat.com>
445 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
446 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
448 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
450 2003-08-18 Mark Kettenis <kettenis@gnu.org>
452 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
454 2003-08-18 Michal Ludvig <mludvig@suse.cz>
456 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
458 * i386-linux-nat.c: Include "linux-nat.h".
459 (child_post_startup_inferior): New function.
461 2003-08-18 Mark Kettenis <kettenis@gnu.org>
463 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
464 at the start of a frameless function. This probably fixes PR
467 2003-08-17 Michael Chastain <mec@shout.net>
469 * symfile.c (find_sym_fns): Remove special case for apollo target.
471 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
473 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
474 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
475 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
476 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
477 (linux_supports_tracevforkdone): New function.
478 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
480 (child_follow_fork): Handle vfork.
481 (linux_handle_extended_wait): Likewise. Also handle exec.
482 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
483 * NEWS: Mention fork tracing.
485 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
487 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
489 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
491 * Makefile.in (i386-linux-nat.o): Update dependencies.
492 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
493 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
494 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
495 * i386-linux-nat.c: Include "linux-nat.h".
496 (child_post_startup_inferior): New function.
497 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
498 * infptrace.c (kill_inferior): Wrap in #ifdef.
499 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
500 attaching to each LWP.
501 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
502 (init_lin_lwp_ops): Fill in some more operations.
503 * linux-nat.h (linux_enable_event_reporting)
504 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
506 * linux-nat.c (linux_enable_event_reporting): New function.
507 (child_post_attach, linux_child_post_startup_inferior)
508 (child_post_startup_inferior, child_follow_fork)
509 (linux_handle_extended_wait, kill_inferior): New functions.
511 2003-08-16 Andrew Cagney <cagney@redhat.com>
513 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
514 * gdbarch.h, gdbarch.c: Re-generate.
516 2003-08-16 Mark Kettenis <kettenis@gnu.org>
518 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
520 2003-08-16 Andrew Cagney <cagney@redhat.com>
522 * NEWS: Mention that "set prompt-escape-char" was deleted.
523 * top.c (get_prompt_1): Delete function.
525 (init_main): Do not clear "gdb_prompt_escape". Delete "set
526 prompt-escape-char" command.
527 (MAX_PROMPT_SIZE): Delete macro.
528 (get_prompt): Simplify, do not call get_prompt_1.
530 2003-08-16 Andrew Cagney <cagney@redhat.com>
532 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
533 -Werror. -Wformat-nonliteral problems.
535 2003-08-15 J. Brobecker <brobecker@gnat.com>
537 Further multiarching work mostly for hppa64-*-hpux11:
538 * hppa-tdep.h: New file.
539 * hppa-tdep.c: #include hppa-tdep.c.
540 (hppa32_num_regs): Renamed from hppa_num_regs.
541 (hppa64_num_regs): New constant.
542 (hppa64_call_dummy_breakpoint_offset): New constant.
543 (hppa32_call_dummy_length): New constant.
544 (hppa64_call_dummy_length): New constant.
545 (hppa32_stack_align): Make name 32bit explicit.
546 (hppa32_register_virtual_type): Likewise.
547 (hppa32_extract_return_value): Likewise.
548 (hppa32_use_struct_convention): Likewise.
549 (hppa32_store_return_value): Likewise.
550 (hppa64_register_virtual_type): New function.
551 (hppa64_extract_return_value): New function.
552 (hppa64_use_struct_convention): New function.
553 (hppa64_store_return_value): New function.
554 (hppa_frame_locals_address): Remove declaration, function does
556 (hppa_register_byte): Add support for PA64 ABI.
557 (hppa_gdbarch_init): Add support for PA64 ABI.
558 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
559 Make name 32bit explicit.
560 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
561 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
562 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
563 (hppa64_hpux_frame_base_before_sigtramp): New function.
564 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
565 * config/pa/tm-hppa64.h: Remove macros that are no longer
566 necessary now that the gdbarch vector is properly setup.
567 Transform some macros into function calls. Some minor cleanup.
568 * config/pa/tm-hppah.h: Update function calls in macros
569 following the function renaming in hppa-hpux-tdep.c.
570 * Makefile.in (hppa_tdep_h): New variable.
571 (hppa-tdep.o): Add dependency over hppa_tdep_h.
573 2003-08-14 Michael Snyder <msnyder@redhat.com>
575 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
577 2003-08-13 J. Brobecker <brobecker@gnat.com>
579 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
580 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
583 2003-08-13 Michael Snyder <msnyder@redhat.com>
585 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
586 (frv_saved_pc_after_call): Use deprecated ftype.
587 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
588 (frv_remote_translate_xfer_address): Remove.
589 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
591 2003-08-13 J. Brobecker <brobecker@gnat.com>
593 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
594 initialization after the common gdbarch initialization, not before.
596 2003-08-13 J. Brobecker <brobecker@gnat.com>
598 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
599 (ADDR_BITS_REMOVE): Remove, redundant.
601 2003-08-13 J. Brobecker <brobecker@gnat.com>
603 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
604 gdbarch method to clear the 2 low bits of text addresses.
606 2003-08-12 Andrew Cagney <cagney@redhat.com>
608 * Makefile.in (dsrec.o): Update dependencies.
609 * dsrec.c: Include "gdb_assert.h".
610 (make_srec): Use snprintf instead of sprintf, use a literal format
613 2003-08-12 Andrew Cagney <cagney@redhat.com>
615 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
616 FRAME_OBSTACK_ZALLOC.
618 2003-08-12 Kevin Buettner <kevinb@redhat.com>
620 * i386-tdep.c (i386_gdbarch_init): Enable default support for
623 2003-08-10 Mark Kettenis <kettenis@gnu.org>
625 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
626 amd64fbsd_sc_reg_offset): Add extern declarations.
627 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
630 2003-08-11 Ben Elliston <bje@wasabisystems.com>
632 * MAINTAINERS (write after approval): Update my mail address.
634 2003-08-10 Andrew Cagney <cagney@redhat.com>
636 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
638 2003-08-10 Mark Kettenis <kettenis@gnu.org>
640 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
641 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
642 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
643 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
644 i386bsd_sc_reg_offset): Add extern declarations.
645 * i386obsd-nat.c: Include "i386-tdep.h"
646 (_initialize_i386obsd_nat): Remove extern declarations.
647 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
649 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
652 * i386-tdep.c (i386_register_to_value): Use get_frame_register
653 instead of frame_read_register.
654 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
655 instead of frame_read_register. Use I386_ESP_REGNUM instead of
657 (i386_frame_prev_register): Use frame_unwind_register_unsigned
658 instead of frame_unwind_unsigned_register. Use
659 I386_EFLAGS_REGISTER instead of PS_REGNUM.
660 (i386_get_longjmp_target): Use regcache_read_unsigned_register
661 instead of read_register. Use builtin_type_void_data_ptr instead
662 of builtin_type_void_func_ptr when extracting the address of the
664 (i386_extract_return_value, i386_store_return_value,
665 i386_pseudo_register_read, i386_pseudo_register_write): Use
666 register_size instead REGISTER_RAW_SIZE.
668 2003-08-10 Andrew Cagney <cagney@redhat.com>
670 * infcall.c (call_function_by_hand): Use xstrprintf instead of
671 sprintf. Make "name" constant.
673 2003-08-10 Mark Kettenis <kettenis@gnu.org>
675 * i387-tdep.c (i387_register_to_value): Use get_frame_register
676 instead of frame_read_register.
677 (i387_print_float_info): Use get_frame_register and
678 get_frame_register_unsigned instead of frame_register_read.
680 * i386fbsd-nat.c: Include "i386-tdep.h".
681 (child_resume): Make `eflags' an ULONGEST. Use
682 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
683 instead of register_read and register_write.
685 * i386bsd-nat.c (fetch_inferior_registers,
686 store_inferior_registers): Don't use && at the end of a line.
687 (_initialize_i386bsd_nat): Fix typo.
689 * frame.c (_initialize_frame): Add missing backslash.
691 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
692 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
693 and supply_register instead of manipulating the register buffer
696 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
697 * config/i386/nm-i386sol2.h
698 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
700 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
701 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
702 instructions that GCC likes to mingle into the prologue. Fixes
703 gdb/1253 and gdb/1255.
705 2003-08-09 Andrew Cagney <cagney@redhat.com>
708 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
709 * command.h (add_setshow_uinteger_cmd): Declare.
710 * frame.c (set_backtrace_cmd): New function.
711 (show_backtrace_cmd): New function.
712 * frame.c (_initialize_frame): Replace "set/show
713 backtrace-below-main" with "set/show backtrace past-main". Add
714 command "set/show backtrace limit".
715 (backtrace_past_main): Rename "backtrace_below_main".
716 (backtrace_limit): New variable.
717 (get_prev_frame): Update. Check the backtrace_limit.
719 2003-08-09 Andrew Cagney <cagney@redhat.com>
721 * defs.h (xstrprintf): Declare.
722 * utils.c (xstrprintf): New function.
723 * breakpoint.c (insert_breakpoints): Replace sprintf and
724 non-literal format strings, with xstrprintf and cleanups.
725 (delete_breakpoint,breakpoint_re_set): Ditto.
726 (commands_command, insert_breakpoints): Ditto.
727 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
728 (break_at_finish_command_1): Ditto.
730 2003-08-09 Andrew Cagney <cagney@redhat.com>
732 * MAINTAINERS (language support): List Adam Fedor as Objective C
735 2003-08-08 J. Brobecker <brobecker@gnat.com>
737 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
740 2003-08-08 J. Brobecker <brobecker@gnat.com>
742 * config/pa/tm-hppa64.h: Remove lots of macros that are no
743 longer necessary now that hppa64 is partially multiarch'ed.
745 2003-08-08 Andrew Cagney <cagney@redhat.com>
747 * interps.c (interp_set): Check for a NULL "old_interp".
749 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
751 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
752 (install-only): Support DESTDIR.
753 (uninstall): Likewise.
754 (install-gdbtk): Likewise.
756 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
758 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
759 contains something meaningful at all times.
761 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
763 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
765 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
767 * MAINTAINERS (write after approval): Added self.
769 2003-08-07 Andrew Cagney <cagney@redhat.com>
771 * inferior.h (AT_SYMBOL): Define.
772 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
773 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
774 * mips-tdep.c (mips_call_dummy_address): Delete function.
775 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
776 set call_dummy_address.
778 2003-08-07 Andrew Cagney <cagney@redhat.com>
780 * language.c (op_error): Delete function.
781 (binop_type_check): Delete function.
782 * language.h (type_op_error, range_op_error): Delete macros.
783 (op_error): Delete declaration.
785 2003-08-07 Andrew Cagney <cagney@redhat.com>
787 * interps.h (INTERP_MI2, INTERP_MI3): Define.
789 2003-08-07 Michal Ludvig <mludvig@suse.cz>
791 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
792 (x86_64_push_arguments): Skip the red zone.
794 2003-08-05 Andrew Cagney <cagney@redhat.com>
796 * reggroups.c (reggroup_next): Check for the final entry.
798 2003-08-04 Andrew Cagney <cagney@redhat.com>
800 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
801 * cli/cli-script.c (define_command): Call query directly, instead
802 of passing it a buffer.
803 * ocd.c (ocd_error): Pass error a constant format string.
804 * remote-mips.c (mips_error): Use fputs_filtered.
806 * solib-svr4.c (_initialize_svr4_solib): Update
807 register_gdbarch_data call.
808 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
810 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
811 (register_gdbarch_data): Delete "free" parameter. Update
813 * gdbarch.h, gdbarch.c: Re-generate.
814 * reggroups.c (_initialize_reggroup): Update.
815 * gnu-v3-abi.c (init_gnuv3_ops): Update.
816 * frame-base.c (_initialize_frame_base): Update.
817 * frame-unwind.c (_initialize_frame_unwind): Update.
818 * user-regs.c (_initialize_user_regs): Update.
819 * remote.c (_initialize_remote): Update.
820 * regcache.c (_initialize_regcache): Update.
822 * regcache.c (xfree_regcache_descr): Delete function.
823 (_initialize_regcache): Update call to register_gdbarch_data.
824 (init_regcache_descr, init_legacy_regcache_descr): Use
825 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
827 * remote.c (free_remote_state): Delete function.
828 (_initialize_remote): Update register_gdbarch_data.
829 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
830 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
832 2003-08-04 Andrew Cagney <cagney@redhat.com>
834 * reggroups.c (struct reggroup_el): Define.
835 (struct reggroups): Delete field "nr_group". Replace array
836 "group" with a "first" to "last" linked list.
837 (reggroups_init): Update. Allocate using gdbarch's obstack.
838 (reggroups_free): Delete function.
839 (add_group): Update. Add "el" parameter.
840 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
841 (default_groups): Update.
842 (reggroup_next): Replace reggroups.
843 (reggroups_dump): Update.
844 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
845 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
846 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
848 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
850 * Makefile.in (tui-interp.o): Update dependencies.
852 2003-08-04 David Carlton <carlton@kealia.com>
854 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
855 to internal_error call.
856 * source.c (forward_search_command): Add "%s" format argument.
857 (reverse_search_command): Ditto.
858 * top.c (quit_confirm): Ditto.
859 * cli/cli-setshow.c (do_setshow_command): Ditto.
860 * cp-valprint.c (cp_print_class_method): Replace
861 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
862 (cp_print_class_member): Ditto.
863 * event-top.c (command_line_handler): Ditto.
864 * linux-proc.c (linux_info_proc_cmd): Ditto.
865 * p-typeprint.c (pascal_type_print_base): Ditto.
866 * p-valprint.c (pascal_object_print_class_method): Ditto.
867 (pascal_object_print_class_member): Ditto.
868 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
869 * remote.c (remote_cisco_section_offsets): Ditto.
870 * top.c (command_line_input): Ditto.
871 * utils.c (vwarning,error_stream,quit): Ditto.
872 * valprint.c (print_floating,print_binary_chars)
873 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
875 2003-08-04 Andrew Cagney <cagney@redhat.com>
877 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
879 2003-08-02 Andrew Cagney <cagney@redhat.com>
881 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
882 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
885 2003-08-02 Andrew Cagney <cagney@redhat.com>
887 * Makefile.in: Update all dependencies and definitions.
889 2003-08-02 Adam Fedor <fedor@gnu.org>
891 * linespec.c (is_objc_method_format): New function
892 (decode_line_1, locate_first_half): Use it.
895 2003-08-01 Andrew Cagney <cagney@redhat.com>
897 * NEWS: Mention that m32r is multi-arch.
898 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
899 * configure.tgt: Recognize m32r-*-*.
900 * config/m32r/tm-m32r.h: Delete file.
901 * config/m32r/m32r.mt: New file.
902 * m32r-rom.c (m32r_upload_command): Use hostent only when
903 gethostname succeeds, in order to avoid a compilation
905 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
908 2003-08-01 Michael Snyder <msnyder@redhat.com>
910 * sh-tdep.c (sh_frame_align): New gdbarch method.
911 (sh_gdbarch_init): Set up frame_align method.
913 2003-07-31 Michael Snyder <msnyder@redhat.com>
915 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
916 which is already covered by the new frames infrastructure.
918 2003-07-31 Andrew Cagney <cagney@redhat.com>
920 * user-regs.c (struct user_reg): Add "next" link.
921 (struct user_regs): Replace "user" with "first" and "last" links.
922 (append_user_reg): Add pre-allocated "reg" parameter.
923 (builtin_user_regs): Provide initial value for "last".
924 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
925 (user_regs_init): Allocate memory from the gdbarch obstack.
926 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
927 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
929 (usernum_to_user_reg): New function.
930 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
931 (value_of_user_reg): Use usernum_to_user_reg.
932 (user_regs_free): Delete function.
933 (_initialize_user_regs): Update register_gdbarch_data call.
935 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
937 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
939 2003-07-30 Michael Snyder <msnyder@redhat.com>
941 * value.h (value_being_returned): Add a struct_addr argument.
942 * infcall.c (call_function_by_hand): Pass struct_addr to
943 value_being_returned.
944 * infcmd.c (print_return_value): Pass zero as struct_addr.
945 * values.c (value_being_returned): If struct_addr is passed,
946 use it instead of trying to recover it from the inferior.
948 2003-07-30 Kevin Buettner <kevinb@redhat.com>
950 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
951 the prologue analyzer won't need to attempt to extract the pc
952 value from the woefully incomplete dummy frame.
953 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
954 possible. Disable code which modifies the frame.
956 2003-07-28 Andrew Cagney <cagney@redhat.com>
958 * annotate.c (annotate_breakpoints_headers): Restrict annotation
960 (annotate_breakpoints_table, annotate_record): Ditto.
961 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
962 (annotate_field_name_end, annotate_field_value): Ditto.
963 (annotate_field_end, annotate_frame_source_begin): Ditto.
964 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
965 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
966 (annotate_frame_begin, annotate_frame_function_name): Ditto.
967 (annotate_frame_address_end, annotate_frame_address): Ditto.
968 (annotate_frame_args, annotate_frame_end): Ditto.
969 (annotate_frame_where, annotate_arg_begin): Ditto.
970 (annotate_arg_name_end, annotate_arg_value): Ditto.
971 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
972 (annotate_function_call, annotate_signal_name): Ditto.
973 (annotate_signal_string, annotate_signal_name_end): Ditto.
974 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
975 (annotate_value_begin, annotate_value_history_value): Ditto.
976 (annotate_value_history_end, annotate_value_end): Ditto.
977 (annotate_display_begin, annotate_display_number_end): Ditto.
978 (annotate_display_format, annotate_display_expression): Ditto.
979 (annotate_display_expression_end, annotate_display_value): Ditto.
980 (annotate_display_end, annotate_array_section_begin): Ditto.
981 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
982 (annotate_elt, annotate_array_section_end): Ditto.
984 2003-07-28 Andrew Cagney <cagney@redhat.com>
986 * regcache.c (struct regcache_descr): Update comments on
988 (init_legacy_regcache_descr): Don't set nr_raw_registers or
989 sizeof_raw_register_valid_p.
990 (init_regcache_descr): Set nr_raw_registers and
991 sizeof_raw_register_valid_p before calling
992 init_legacy_regcache_descr.
994 2003-07-28 Andrew Cagney <cagney@redhat.com>
996 * mips-tdep.c (print_gp_register_row): Print the GPR's register
999 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1001 * thread.c (info_threads_command): Use get_selected_frame ().
1002 Check that there is at least one non-sentinel frame.
1004 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1006 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1007 (m68hc11_pop_frame): Remove.
1008 (m68hc11_frame_saved_pc): Remove.
1009 (m68hc11_frame_chain): Remove.
1010 (m68hc11_frame_init_saved_regs): Remove.
1011 (m68hc11_init_extra_frame_info): Remove.
1012 (m68hc11_store_struct_return): Remove.
1013 (m68hc11_saved_pc_after_call): Remove.
1015 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1017 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1018 frame unwind information.
1019 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1020 and adapted for frame unwinding.
1021 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1022 (m68hc11_unwind_pc): New function.
1023 (m68hc11_frame_unwind_cache): New function to analyze frames.
1024 (m68hc11_frame_this_id): New function to create new frame struct.
1025 (m68hc11_frame_prev_register): New function to unwind a register from
1027 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1028 (m68hc11_frame_p): New function for the above.
1029 (m68hc11_frame_base_address): New function to return fp of frame.
1030 (m68hc11_frame_args_address): Update for frame.
1031 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1032 (m68hc11_unwind_sp): New function.
1033 (m68hc11_unwind_dummy_id): New function.
1034 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1037 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1039 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1040 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1041 when we are beyond the current pc.
1043 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1045 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1046 from m68hc11_push_arguments.
1047 (m68hc11_push_arguments): Remove.
1048 (m68hc11_push_return_address): Remove.
1049 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1050 handlers; remove deprecated_extra_stack_alignment_needed.
1052 2003-07-27 Andrew Cagney <cagney@redhat.com>
1054 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1055 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1056 REAL_PC and not the pointer.
1057 * hppa-hpux-tdep.c: Include frame.h
1059 2003-07-27 Andrew Cagney <cagney@redhat.com>
1061 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1062 GDB_MULTI_ACH_PARTIAL.
1064 2003-07-27 Andrew Cagney <cagney@redhat.com>
1066 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1067 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1068 operator at start and not end of line.
1069 (decode_prologue): Ditto.
1070 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1071 frame_unwind_register_unsigned instead of
1072 frame_unwind_unsigned_register.
1073 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1075 (m32r_push_dummy_call): Use register_size instead of
1077 (m32r_frame_sniffer): Replace m32r_frame_p.
1078 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1079 * m32r-rom.c (report_transfer_performance): Delete extern
1081 (m32r_load, m32r_upload_command): Use print_transfer_performance
1082 instead of report_transfer_performance.
1083 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1084 / add_show_from_set.
1086 2003-07-26 Andrew Cagney <cagney@redhat.com>
1088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1089 store_return_value and extract_struct_value_address.
1091 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1094 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1095 NULL, default to the section containing PC.
1097 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1099 * NEWS: Mention "regs" deprecated for m68hc11 too.
1101 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1102 (m68hc11_print_register): New function to print out one register.
1103 (m68hc11_print_registers_info): New function to print registers.
1104 (show_regs): Deprecate and use the above.
1105 (m68hc11_gdbarch_init): Install the print_registers_info.
1107 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1109 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1110 that we have a SIGTRAP before returning non-zero.
1112 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1113 Elena Zannoni <ezannoni@redhat.com>
1115 * linespec.c (decode_line_2): Avoid crash if
1116 find_function_start_sal() returns empty record.
1118 2003-07-23 Andreas Schwab <schwab@suse.de>
1120 * ia64-tdep.c (ia64_print_insn): New function.
1121 (ia64_gdbarch_init): Set print_insn to it.
1122 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1123 deprecated_tm_print_insn_info.
1125 2003-07-22 Michael Snyder <msnyder@redhat.com>
1127 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1128 handle 8-bit returns (long long).
1129 (h8300h_extract_return_value): Ditto.
1130 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1132 2003-07-22 Andrew Cagney <cagney@redhat.com>
1134 * gdbarch.c Include "gdb_obstack.h".
1135 (struct gdbarch): Add an "obstack".
1136 (alloc_gdbarch_data): Allocate the gdbarch data using
1137 GDBARCH_OBSTACK_CALLOC.
1138 (free_gdbarch_data): Delete function.
1139 (gdbarch_obstack_zalloc): New function.
1140 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1141 Assert that the architecture is not initialized.
1142 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1143 vector from the obstack.
1144 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1145 architecture obstack.
1146 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1147 (set_gdbarch_data): Assert that the data is not initialized.
1148 (struct gdbarch_data): Delete member "free".
1149 (register_gdbarch_data): Do not initialize "free".
1150 * gdbarch.h, gdbarch.c: Re-generate.
1152 2003-07-22 Andrew Cagney <cagney@redhat.com>
1154 * configure.in (build_warnings): Add -Wformat-nonliteral.
1155 * configure: Re-generate.
1157 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1159 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1161 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1163 * findvar.c (read_var_value): Remove case for thread local storage
1164 variables. It is now entirely handled by the dwarf2 location
1166 * printcmd.c (address_info): Ditto.
1167 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1169 (struct symbol): Remove objfile field, which was used by
1170 LOC_THREAD_LOCAL_STATIC only.
1171 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1172 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1173 usage of objfile pointer.
1174 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1175 thread local variables.
1176 Add include of objfiles.h.
1177 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1179 * Makefile.in (dwarf2loc.o): Update dependencies.
1181 2003-07-22 Andrew Cagney <cagney@redhat.com>
1183 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1185 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1186 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1187 (struct value): Add opaque declaration.
1188 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1190 2003-07-21 Andrew Cagney <cagney@redhat.com>
1192 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1193 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1195 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1197 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1198 regcache_cooked_read_unsigned instead of read_register.
1199 (m68hc11_saved_pc_after_call): Likewise.
1200 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1201 instead of write_register.
1202 (m68hc11_register_type): New function.
1203 (m68hc11_register_virtual_type): Remove.
1204 (m68hc11_store_return_value): Convert to use the regcache.
1205 (m68hc11_extract_struct_value_address): Likewise.
1206 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1207 m68hc11_register_type; undeprecate store_return_value and
1208 extract_struct_value_address.
1210 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1212 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1213 and translate to use regcache.
1214 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1216 2003-07-18 Andrew Cagney <cagney@redhat.com>
1218 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1219 * gdbarch.h, gdbarch.c: Re-generate.
1220 * i386-tdep.c (i386_gdbarch_init): Do not set
1221 DWARF2_BUILD_FRAME_INFO.
1222 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1224 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1225 DWARF2_BUILD_FRAME_INFO.
1227 2003-07-18 Andrew Cagney <cagney@redhat.com>
1229 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1230 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1232 2003-07-18 Andrew Cagney <cagney@redhat.com>
1234 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1235 frame_unwind_address_in_block, instead of frame_pc_unwind.
1236 (dwarf2_frame_cache): Ditto.
1238 2003-07-18 Andrew Cagney <cagney@redhat.com>
1240 * user-regs.h (struct gdbarch): Declare opaque.
1241 * ui-out.h (struct ui_file): Declare opaque.
1242 * dwarf2-frame.h (struct frame_info): Declare opaque.
1244 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1246 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1248 (procfs_meminfo): Change strerror to safe_strerror.
1249 (procfs_can_run): Remove K&R badness.
1251 2003-07-17 Michael Snyder <msnyder@redhat.com>
1253 * remote-sim.c: Comment typo fix.
1255 2003-07-17 Andrew Cagney <cagney@redhat.com>
1257 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1259 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1260 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1261 GDB_MULTI_ARCH_PARTIAL.
1263 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1265 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1266 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1267 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1269 2003-07-16 Theodore A. Roth <troth@openavr.org>
1271 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1273 (avr_frame_unwind_cache): Don't unwind FP for main.
1275 Save the computed prev_sp.
1276 (avr_saved_regs_unwinder): Remove function.
1277 (avr_frame_prev_register): Use PC unwind logic from
1278 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1280 2003-07-16 Andrew Cagney <cagney@redhat.com>
1282 * frame-base.h (frame_base_p_ftype): Delete definition.
1283 (frame_base_append_predicate): Delete declaration.
1284 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1285 (frame_unwind_append_predicate): Delete declaration.
1286 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1287 (append_predicate): Delete parameter "p".
1288 (frame_unwind_append_predicate): Delete function.
1289 (frame_unwind_append_sniffer): Update call to append_predicate.
1290 (frame_unwind_free): Delete function.
1291 (_initialize_frame_unwind): Pass NULL as "free" to
1292 register_gdbarch_data.
1293 (frame_unwind_init): Append the dummy_frame_sniffer.
1294 (frame_unwind_find_by_frame): Simplify.
1295 * frame-base.c (struct frame_base_table): Delete field "p".
1296 (append_predicate): Delete parameter "p".
1297 (frame_base_append_predicate): Delete function.
1298 (frame_base_append_sniffer): Update call to append_predicate.
1299 (frame_base_free): Delete function.
1300 (frame_base_find_by_frame): Simplify.
1301 (_initialize_frame_base): Pass NULL as "free" to
1302 register_gdbarch_data.
1303 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1304 (x86_64_sigtramp_frame_sniffer): Replace
1305 "x86_64_sigtramp_frame_p".
1306 (x86_64_init_abi): Set the frame unwind sniffers.
1307 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1308 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1309 (m68k_gdbarch_init): Set the frame unwind sniffers.
1310 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1311 "i386_sigtramp_frame_p".
1312 (i386_frame_sniffer): Replace "i386_frame_p".
1313 (i386_gdbarch_init): Set the frame unwind sniffers.
1314 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1315 (avr_gdbarch_init): Set the frame unwind sniffers.
1316 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1317 "alpha_sigtramp_frame_p"
1318 (alpha_heuristic_frame_sniffer): Replace
1319 "alpha_heuristic_frame_p".
1320 (alpha_gdbarch_init): Set the frame unwind sniffers.
1321 (alpha_dwarf2_init_abi): Ditto.
1322 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1323 "alpha_debug_frame_p".
1324 (alpha_mdebug_frame_base_sniffer): Replace
1325 "alpha_mdebug_frame_base_p".
1326 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1327 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1328 (d10v_gdbarch_init): Set the frame unwind sniffer.
1329 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1330 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1331 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1332 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1333 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1334 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1336 2003-07-16 Michael Snyder <msnyder@redhat.com>
1338 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1339 should go thru sh_dsp_register_sim_regno, else the dsp regs
1340 will not get the right values.
1342 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1344 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1345 deprecated_store_floating by call to store_typed_floating.
1346 (sh_sh4_register_convert_to_raw): Substitute call to
1347 deprecated_extract_floating by call to extract_typed_floating.
1349 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1351 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1353 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1355 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1356 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1357 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1359 (do_pseudo_register): Remove.
1360 (sh_push_dummy_code): New function.
1361 (sh64_store_struct_return): Rename from sh_store_struct_return.
1362 Only called for sh64 now.
1363 (sh_extract_struct_value_address): Regcache'ify.
1364 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1365 and accomodate new tasks.
1366 (sh64_push_return_address): Rename from sh_push_return_address.
1367 Only called for sh64 now.
1368 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1370 (sh3e_sh4_extract_return_value): Regcache'ify.
1371 (sh_default_store_return_value): Ditto.
1372 (sh3e_sh4_store_return_value): Ditto.
1373 (sh_default_register_byte): Remove.
1374 (sh_sh4_register_byte): Remove.
1375 (sh_default_register_raw_size): Remove.
1376 (sh_sh4_register_raw_size): Remove.
1377 (sh_register_virtual_size): Remove.
1378 (sh_sh3e_register_virtual_type): Remove.
1379 (sh_sh3e_register_type): New function.
1380 (sh_sh4_register_virtual_type): Remove.
1381 (sh_sh4_register_type): New function.
1382 (sh_default_register_virtual_type): Remove.
1383 (sh_default_register_type): New function.
1384 (do_fv_register_info): Add parameters to accomodate call from
1385 sh_print_registers_info.
1386 (do_dr_register_info): Ditto.
1387 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1388 Add parameters to accomodate call from sh_print_registers_info.
1389 (sh_do_fp_register): Ditto.
1390 (sh64_do_pseudo_register): Call do_dr_register_info,
1391 do_fv_register_info and sh_do_fp_register with default parameters.
1392 (sh_do_register): Add parameters to accomodate call from
1393 sh_print_registers_info.
1394 (sh_print_register): Ditto.
1395 (sh_print_registers_info): Rename from sh_do_registers_info.
1396 Add parameters to be used as gdbarch_print_registers_info
1397 implementation. Accomodate removed do_pseudo_register function
1399 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1400 function pointer. Call sh_print_register with default parameters.
1401 (sh64_do_registers_info): Call sh_print_registers_info instead of
1402 sh_do_registers_info.
1403 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1404 detection of deprecated vs. non-deprecated functionality.
1405 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1406 function pointer assignments by direct function calls.
1408 2003-07-15 Andrew Cagney <cagney@redhat.com>
1410 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1411 (frame_register_unwind, create_new_frame): Ditto.
1412 (legacy_get_prev_frame, get_frame_type): Ditto.
1413 (get_frame_base_address): Use frame_base_find_by_frame.
1414 (get_frame_locals_address): Use frame_base_find_by_frame.
1415 (get_frame_args_address): Use frame_base_find_by_frame.
1416 * frame-base.h (frame_base_sniffer_ftype): Declare.
1417 (frame_base_append_sniffer): Declare.
1418 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1419 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1420 (frame_base_append_sniffer): New function.
1421 (frame_base_append_predicate): Add a NULL sniffer.
1422 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1423 (struct frame_base_table): Add "sniffer".
1424 (frame_base_free): Free the "sniffer" table.
1425 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1426 (frame_unwind_append_sniffer): Declare.
1427 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1428 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1429 (struct frame_unwind_table): Add "sniffer", delete "middle".
1430 (append_predicate): Add "sniffer" parameter, append the sniffer.
1431 (frame_unwind_init): Update append_predicate call.
1432 (frame_unwind_append_sniffer): New function.
1433 (frame_unwind_append_predicate): Update append_predicate call.
1434 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1436 2003-07-15 Andrew Cagney <cagney@redhat.com>
1438 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1439 before code inhibiting repeated unwind attempts. Add to
1440 commentary on that test's problems.
1441 * blockframe.c (inside_main_func): Look for "main" in the minimal
1443 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1446 2003-07-15 Andrew Cagney <cagney@redhat.com>
1448 * complaints.c (struct explanation): Define.
1449 (struct complaints): Change type of "explanation" to "struct
1451 (symfile_explanations): Convert to a "struct explanation" table.
1452 (vcomplaint): Update.
1454 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1456 * x86-64-linux-nat.c (regmap): Removed.
1457 (supply_gregset, fill_gregset): Call
1458 x86_64_linux_(fill,supply)_gregset functions.
1459 * x86-64-linux-tdep.c (USER_*): New defines.
1460 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1461 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1463 (fetch_core_registers): Ditto.
1464 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1465 * x86-64-linux-tdep.h: New file.
1466 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1468 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1470 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1472 * x86-64-tdep.c (x86_64_store_return_value): Use
1473 regcache_cooked_write_part instead of regcache_cooked_write.
1475 * configure.host: Add x86_64-*-freebsd*.
1476 * configure.tgt: Add x86_64-*-freebsd*.
1477 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1478 * amd64fbsd-nat.c: New file.
1479 * amd64fbsd-tdep.c: New file.
1480 * config/i386/nm-fbsd64.h: New file.
1481 * config/i386/fbsd64.mh: New file.
1482 * config/i386/fbsd64.mt: New file.
1484 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1486 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1487 `sc_regs_offset' and `sc_fpregs_offset'.
1488 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1489 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1490 (alpha_sigtramp_register_address): Rewrite to use new members of
1491 `struct gdbarch_tdep'.
1492 (alpha_gdbarch_init): Initialize new members of struct
1494 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1495 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1496 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1497 (alphafbsd_pc_in_sigtramp): Implement.
1498 (alphafbsd_sigtramp_offset): New function.
1499 (alphafbsd_sigcontext_addr): New function.
1500 (alphafbsd_init_abi): Initialize signal trampoline related members
1501 of `struct gdbarch_tdep'.
1502 (_initialize_alphafbsd_tdep): Add prototype.
1504 2003-07-11 Theodore A. Roth <troth@openavr.org>
1506 * Makefile.in (install-only): Quote sed expression when generating
1509 2003-07-11 Richard Henderson <rth@redhat.com>
1511 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1512 * dwarf2-frame.c: Include complaints.h.
1513 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1514 variable initialization; return NULL on error.
1515 (decode_frame_entry): New.
1517 2003-07-11 Andrew Cagney <cagney@redhat.com>
1519 * frame.h (frame_address_in_block): Delete declaration.
1520 * blockframe.c (frame_address_in_block): Delete function.
1521 (get_frame_block): Use get_frame_address_in_block.
1522 (block_innermost_frame): Ditto.
1523 * stack.c (print_frame, backtrace_command_1): Ditto.
1525 * frame.h (get_frame_address_in_block): Declare.
1526 (frame_unwind_address_in_block): Declare.
1527 * frame.c (frame_unwind_address_in_block): New function.
1528 (get_frame_address_in_block): New function.
1530 2003-07-10 Andrew Cagney <cagney@redhat.com>
1532 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1533 pre-default. Note: re-generate has no effect.
1535 2003-07-10 Andrew Cagney <cagney@redhat.com>
1537 * gdbarch.sh: When a variable, but not a function, compare against
1538 0. Fix problem in previous patch.
1539 * gdbarch.c: Re-generate.
1541 2003-07-10 Andrew Cagney <cagney@redhat.com>
1543 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1544 functions against NULL, not 0.
1545 * gdbarch.c: Re-generate.
1547 2003-07-10 Fred Fish <fnf@ninemoons.com>
1549 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1550 null string instead of a null pointer.
1551 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1553 2003-07-09 Michael Snyder <msnyder@redhat.com>
1555 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1557 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1559 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1560 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1561 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1562 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1563 * x86-64-tdep.c: ... from here.
1565 2003-07-09 Andreas Schwab <schwab@suse.de>
1567 * m68k-tdep.h (enum struct_return): Define.
1568 (struct gdbarch_tdep): Add struct_return.
1569 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1570 bytes are padded to the right, not to the left. Pass struct value
1571 address in register %a1, not on stack.
1572 (m68k_use_struct_convention): New function.
1573 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1574 struct_return in tdep to pcc_struct_return.
1575 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1578 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1580 * somread.c (som_symfile_offsets): Fix compilation error.
1582 2003-07-09 Andrew Cagney <cagney@redhat.com>
1584 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1585 Add comments about the checks.
1587 2003-07-08 Andrew Cagney <cagney@redhat.com>
1589 * Makefile.in: Make dependency section headers consistent.
1590 (config_h): Move to $BUILD headers section.
1591 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1592 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1593 (ada-exp.tab.c): Move to YACC/LEX section.
1594 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1595 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1597 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1599 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1600 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1601 of strerror with safe_strerror, use ISO C function definitions,
1602 and replace instances of sprintf with snprintf.
1604 2003-07-07 Andrew Cagney <cagney@redhat.com>
1606 * frame.c (get_prev_frame): Enable check for identical frames.
1607 Update comments. Update error messages.
1609 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1611 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1613 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1615 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1616 sort_symtab_syms, no longer necessary.
1618 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1620 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1622 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1624 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1625 (mips_register_byte): Likewise.
1627 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1629 * Makefile.in (sparc_tdep_h): New.
1630 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1631 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1632 * sparc-linux-nat.c: Include "sparc-tdep.h".
1633 * sparc-nat.c: Likewise.
1634 * sparc-tdep.c: Likewise.
1635 * sparc64nbsd-nat.c: Likewise.
1636 * sparcnbsd-nat.c: Likewise.
1637 * sparcnbsd-tdep.c: Likewise.
1638 * sparc-tdep.h: New file.
1639 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1640 and sparc_npc_regnum.
1642 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1644 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1645 (mips_linux_cannot_store_register): List supported instead of
1646 unsupported registers.
1648 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1650 * disasm.c (dump_insns): Separate instructions from addresses.
1652 2003-07-07 Andreas Schwab <schwab@suse.de>
1654 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1656 * m68k-tdep.c (NUM_FREGS): Delete.
1657 (SIG_PC_FP_OFFSET): Delete.
1658 (TARGET_M68K): Delete.
1659 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1660 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1661 P_MOVEL_SP, P_MOVEML_SP): Define.
1662 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1664 (m68k_register_raw_size): Delete.
1665 (m68k_register_virtual_size): Delete.
1666 (m68k_register_type): Renamed from m68k_register_virtual_type and
1667 add gdbarch argument.
1668 (m68k_store_struct_return): Delete.
1669 (m68k_deprecated_extract_return_value): Delete.
1670 (m68k_deprecated_extract_struct_value_address): Delete.
1671 (m68k_frame_chain): Delete.
1672 (m68k_frame_saved_pc): Delete.
1673 (m68k_fix_call_dummy): Delete.
1674 (m68k_push_dummy_frame): Delete.
1675 (m68k_pop_frame): Delete.
1676 (m68k_extract_return_value): New function.
1677 (m68k_store_return_value): Rewrite using regcache.
1678 (m68k_extract_struct_value_address): Rewrite using regcache.
1679 (m68k_push_dummy_call): New function.
1680 (struct m68k_frame_cache): Define.
1681 (m68k_alloc_frame_cache): New function.
1682 (m68k_analyze_frame_setup): New function.
1683 (m68k_analyze_register_saves): New function.
1684 (m68k_analyze_prologue): New function.
1685 (m68k_skip_prologue): Rewrite using above functions.
1686 (m68k_unwind_pc): New function.
1687 (m68k_frame_cache): New function.
1688 (m68k_frame_this_id): New function.
1689 (m68k_frame_prev_register): New function.
1690 (m68k_frame_unwind): New variable.
1691 (m68k_frame_p): New function.
1692 (m68k_sigtramp_frame_cache): New function.
1693 (m68k_sigtramp_frame_this_id): New function.
1694 (m68k_sigtramp_frame_prev_register): New function.
1695 (m68k_sigtramp_frame_unwind): New variable.
1696 (m68k_sigtramp_frame_p): New function.
1697 (m68k_frame_base_address): New function.
1698 (m68k_frame_base): New function.
1699 (m68k_unwind_dummy_id): New function.
1700 (fill_gregset): Use regcache_collect.
1701 (fill_fpregset): Likewise.
1702 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1704 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1705 deprecated_init_frame_pc, deprecated_store_struct_return,
1706 deprecated_extract_return_value, deprecated_store_return_value,
1707 deprecated_frame_chain, deprecated_frame_saved_pc,
1708 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1709 deprecated_register_virtual_size,
1710 deprecated_max_register_raw_size,
1711 deprecated_max_register_virtual_size,
1712 deprecated_register_virtual_type, deprecated_register_size,
1713 deprecated_register_byte, deprecated_register_bytes,
1714 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1715 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1716 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1717 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1718 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1719 deprecated_push_dummy_frame, deprecated_pop_frame,
1720 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1721 only if SYSCALL_TRAP is defined. Set extract_return_value,
1722 store_return_value, extract_struct_value_address, register_type,
1723 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1725 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1726 M68K_MAX_REGISTER_SIZE): Define.
1727 (struct m68k_sigtramp_info): Define.
1728 (struct gdbarch_tdep): Add get_sigtramp_info.
1729 * m68klinux-nat.c (fetch_register): Use register_size instead of
1730 REGISTER_RAW_SIZE. Don't put assignment in if.
1731 (store_register): Likewise.
1732 (fetch_inferior_registers): Likewise.
1733 (store_inferior_registers): Likewise.
1734 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1735 (m68k_linux_frame_saved_pc): Delete.
1736 (m68k_linux_sigcontext_reg_offset,
1737 m68k_linux_ucontext_reg_offset): Define.
1738 (m68k_linux_get_sigtramp_info): New function.
1739 (m68k_linux_extract_return_value): Rewrite using regcache.
1740 (m68k_linux_store_return_value): Likewise.
1741 (m68k_linux_extract_struct_value_address): Likewise.
1742 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1743 Don't set deprecated_frame_saved_pc,
1744 deprecated_extract_return_value, deprecated_store_return_value,
1745 deprecated_extract_struct_value_address. Set
1746 extract_return_value, store_return_value,
1747 extract_struct_value_address.
1749 2003-07-07 Andrew Cagney <cagney@redhat.com>
1751 * expprint.c: Include "user-regs.h" instead of "frame.h".
1752 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1753 frame_map_regnum_to_name.
1754 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1755 (frame_map_name_to_regnum): Simplify, call
1756 user_reg_map_name_to_regnum.
1757 (frame_map_regnum_to_name): Simplify, call
1758 user_reg_map_regnum_to_name.
1759 (frame_register_unwind): Update.
1760 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1761 (_initialize_frame_reg): Call user_reg_add_builtin.
1762 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1763 (value_of_register): Use value_of_user_reg.
1764 * eval.c (evaluate_subexp_standard): Update.
1765 * parse.c (write_dollar_variable): Update.
1766 * d10v-tdep.c (d10v_print_registers_info): Update.
1767 * infcmd.c (registers_info): Update.
1768 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1769 (builtin_regs_h): Delete macro.
1770 (user_regs_h): Define.
1771 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1772 (builtin-regs.o): Delete target.
1773 (user-regs.o): Specify dependencies.
1774 (expprint.o): Update dependencies.
1775 (findvar.o): Update dependencies.
1776 (frame.o): Update dependencies.
1777 (std-regs.o): Update dependencies.
1779 2003-07-06 Christopher Faylor <cgf@redhat.com>
1781 * win32-nat.c (solib_symbols_add): Use one variable for all section
1782 address stuff. Pass variable rather than address of variable to
1783 safe_symbol_file_add.
1785 2003-07-06 Andreas Schwab <schwab@suse.de>
1787 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1789 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1791 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1793 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1795 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1797 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1799 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1800 * config/i386/nto.mh: New file.
1801 * config/i386/nm-nto.h: New file.
1802 * configure.host: Add i[3456]86-*-nto*.
1804 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1806 * remote-vx.c (vx_add_symbols): Fix compilation error.
1808 2003-07-03 Andrew Cagney <cagney@redhat.com>
1810 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1811 * gdbarch.h, gdbarch.c: Re-generate.
1812 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1813 (legacy_register_name): Declare.
1814 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1815 (REGISTER_NAME): Define.
1816 * sparc-tdep.c (legacy_register_name): New function.
1817 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1818 (REGISTER_NAME): Define.
1819 (hppa64_register_name): Declare.
1820 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1821 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1822 (hppa64_register_name): New function.
1823 (hppa_register_name): New function.
1824 * arch-utils.c (legacy_register_name): Delete.
1825 * arch-utils.h (legacy_register_name): Delete.
1827 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1829 * cli/cli-interp.c (cli_interpreter_resume): Update the
1830 cli_uiout's stream to gdb_stdout.
1832 2003-07-03 Andrew Cagney <cagney@redhat.com>
1834 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1836 * gdbarch.h, gdbarch.c: Re-generate.
1837 * regcache.c (init_regcache_descr): Use legacy code when either
1838 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1840 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1842 * NEWS: Move "set logging" entry into GDB 6.0 section.
1844 2003-07-02 Jim Blandy <jimb@redhat.com>
1846 * s390-tdep.c (struct frame_extra_info): new member:
1847 'stack_bought_valid'.
1848 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1849 initialize fextra_info->stack_bought.
1850 (s390_frameless_function_invocation): Don't trust the value of
1851 fextra_info_ptr->stack_bought unless
1852 fextra_info->stack_bought_valid is set.
1854 New S390 prologue analyzer.
1855 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1856 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1857 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1858 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1859 compute_x_addr, s390_on_stack, s390_store,
1860 s390_get_signal_frame_info): New functions.
1861 (S390_NUM_SPILL_SLOTS): New macro.
1862 (s390_get_frame_info): Rewritten.
1863 (is_arg_reg): Deleted.
1865 Break out the decoding of S/390 instructions into separate
1866 functions, to make it more legible, and easier to check
1868 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1869 is_rx, is_rxe): New functions.
1870 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1871 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1872 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1873 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1874 enums for opcode values. (Is this an improvement?)
1876 2003-07-02 Andrew Cagney <cagney@redhat.com>
1878 * i386-tdep.c: Revert change committed as part of trad-frame code
1881 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1883 * breakpoint.c (insert_catchpoint): Make static.
1885 2003-07-02 Andreas Schwab <schwab@suse.de>
1887 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1888 former ia64_push_arguments and ia64_push_return_address, and use
1889 regcache functions instead of read/write_register.
1890 (ia64_gdbarch_init): Set push_dummy_call instead of
1891 deprecated_push_arguments and deprecated_push_return_address.
1893 2003-07-01 Andreas Jaeger <aj@suse.de>
1895 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1897 Set %rax only to number of SSE registers used.
1899 2003-07-01 Andrew Cagney <cagney@redhat.com>
1901 * trad-frame.h: Update comments, a -1 .addr is reserved.
1902 (trad_frame_value_p, trad_frame_addr_p): Declare.
1903 (trad_frame_reg_p): Declare.
1904 (trad_frame_set_value): Rename trad_frame_register_value.
1905 (trad_frame_set_unknown): Declare.
1906 * trad-frame.c (trad_frame_realreg_p): New function.
1907 (trad_frame_addr_p, trad_frame_value_p): New function.
1908 (trad_frame_set_unknown): New function.
1909 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1910 (trad_frame_prev_register): Use trad_frame_realreg_p,
1911 trad_frame_addr_p and trad_frame_value_p.
1912 (trad_frame_set_value): Rename trad_frame_register_value.
1913 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1914 and trad_frame_set_value.
1916 2003-06-30 Jim Blandy <jimb@redhat.com>
1918 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1919 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1920 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1921 for 16 registers, and then 32 more bytes.
1922 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1924 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1925 Move up in the file, since it's now used by is_simple_arg.
1926 (is_simple_arg): Don't assume registers are four bytes long.
1927 Exclude all double arguments. Extended floats are not simple
1929 (is_power_of_two): New function.
1930 (pass_by_copy_ref): Call is_power_of_two, and check that the
1931 length fits in a register, rather than listing all the acceptable
1932 sizes. Extended floats are not passed by reference.
1933 (s390_push_arguments): Don't assume registers are four bytes long.
1934 Reserve an argument register to point to the buffer for structures
1935 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1936 S390_STACK_FRAME_OVERHEAD.
1938 2003-06-30 Andreas Schwab <schwab@suse.de>
1940 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1941 format error message.
1943 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1945 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1947 2003-06-30 David Carlton <carlton@kealia.com>
1949 Band-aid for PR c++/1245.
1950 * Makefile.in (cp-support.o): Depend on complaints_h.
1951 * cp-support.c: Include complaints.h. Add declaration for
1952 find_last_component.
1953 (cp_find_first_component): Separate code into
1954 cp_find_first_component_aux.
1955 (cp_find_first_component_aux): Call demangled_name_complaint.
1956 (demangled_name_complaint): New.
1958 2003-06-30 Andrew Cagney <cagney@redhat.com>
1960 * remote.c (remote_write_bytes): Explicitly compute and then use
1961 the payload size. Update comments to reflect. Fixes problem of
1962 GDB not sending small packets as found by Fred Fish.
1964 2003-06-30 Andrew Cagney <cagney@redhat.com>
1966 * remote.c (remote_async_wait): Fix -Wformat problem.
1968 2003-06-29 Andrew Cagney <cagney@redhat.com>
1970 * remote.c (remote_wait): Call error, and not warning, when the
1972 (remote_async_wait): Ditto.
1974 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1976 * sparc-tdep.c (sparc_y_regnum): Make external again.
1978 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1980 * cli/cli-logging.c (pop_output_files): Add void to function
1983 2003-06-29 Andrew Cagney <cagney@redhat.com>
1985 * frame.c (frame_register_unwind): Use unsigned char when dumping
1986 the buffer contents.
1988 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1990 * cli/cli-logging.c: New file.
1991 * cli-out.c (struct ui_out_data): Add original_stream.
1992 (cli_redirect): New function.
1993 (cli_ui_out_impl): Add cli_redirect.
1994 (cli_out_new): Initialize original_stream.
1995 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1996 (uo_redirect, ui_out_redirect): New.
1997 * ui-out.h (struct ui_out_impl): Add redirect member.
1998 (redirect_ftype): New.
1999 (ui_out_redirect): Add prototype.
2000 * Makefile.in: Add rules for cli-logging.c.
2001 * NEWS: Mention "set logging".
2003 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2005 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2007 2003-06-27 Andrew Cagney <cagney@redhat.com>
2009 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2010 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2011 * avr-tdep.c (avr_call_dummy_address): Delete function.
2012 (avr_gdbarch_init): Do not set call_dummy_address.
2014 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2016 * symfile.c (syms_from_objfile): Move variables to inner block.
2017 Move the checks for the non-mainline case a bit earlier to avoid
2018 doing some useless computations.
2020 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2022 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2024 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2026 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2029 2003-06-26 Michael Chastain <mec@shout.net>
2031 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2032 gdb/testsuite/gdb.c++/pr-1210.exp.
2034 2003-06-26 Andrew Cagney <cagney@redhat.com>
2036 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2037 altivec_expression.h and altivec_registers.h.
2039 2003-06-26 Andrew Cagney <cagney@redhat.com>
2041 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2042 info->mach when MIPS16. Patch suggested by Fred Fish.
2044 2003-06-26 Andrew Cagney <cagney@redhat.com>
2046 * utils.c (internal_vproblem): Print the problem to a reason
2047 buffer and then pass to query. Make the msg variable more local.
2049 2003-06-26 Andrew Cagney <cagney@redhat.com>
2051 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2052 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2053 * gdbarch.h, gdbarch.c: Re-generate.
2054 * frame-base.c (default_frame_args_address): Update. Use
2055 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2057 (default_frame_locals_address): Ditto for
2058 DEPRECATED_FRAME_LOCALS_ADDRESS.
2059 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2060 (vax_frame_num_args): Update.
2061 (vax_gdbarch_init): Update.
2062 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2063 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2064 * mcore-tdep.c (mcore_gdbarch_init): Update.
2065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2066 * ia64-tdep.c (ia64_gdbarch_init): Update.
2067 * symtab.h (address_class): Update comments.
2068 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2069 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2070 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2071 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2072 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2073 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2074 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2075 * alpha-mdebug-tdep.c: Update.
2076 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2078 2003-06-26 Andreas Jaeger <aj@suse.de>
2080 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2081 of SSE registers so that varargs functions work. Rework handling
2082 of passing arguments on the stack.
2083 (x86_64_store_return_value): Return double and float values in SSE
2086 2003-06-24 Michael Chastain <mec@shout.net>
2088 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2089 the "constructor breakpoints ignored" bug.
2091 2003-06-25 David Carlton <carlton@kealia.com>
2093 * MAINTAINERS: Update e-mail address.
2095 2003-06-24 Jim Blandy <jimb@redhat.com>
2097 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2099 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2101 (ppc_linux_init_abi): Register it as the
2102 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2104 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2105 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2108 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2109 (ppc64_standard_linkage_target): Use it.
2111 2003-06-23 Andrew Cagney <cagney@redhat.com>
2113 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2114 for 0 "int0" and 4 "int32" sized registers.
2115 * gdbtypes.c (builtin_type_int0): Define.
2116 (build_gdbtypes): Initialize builtin_type_int0.
2117 * gdbtypes.h (builtin_type_int0): Declare.
2119 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2122 as characters are unsigned.
2124 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2127 * dwarfread.c (struct_type): Skip static fields without crashing.
2129 2003-06-22 Andrew Cagney <cagney@redhat.com>
2131 GDB 6.0 branch created.
2133 * PROBLEMS: Update. Empty.
2136 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2138 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2139 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2141 2003-06-22 Andrew Cagney <cagney@redhat.com>
2143 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2144 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2147 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2149 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2152 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2154 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2155 argument of val_print.
2156 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2157 to the address argument of baseclass_offset or target_read_memory.
2158 Do add it to the argument of cp_print_value_fields.
2160 2003-06-21 Andrew Cagney <cagney@redhat.com>
2162 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2163 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2164 instead of 0..NUM_REGS.
2165 (mips_register_reggroup_p): New function.
2166 (mips_pseudo_register_write): New function.
2167 (mips_pseudo_register_read): New function.
2168 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2169 based on the register's type.
2170 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2172 (mips_get_saved_register): Simplify. Assert that REGNO is a
2174 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2175 (mips_register_type): Replace mips_register_virtual_type. Map
2176 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2178 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2179 that the register is cooked / virtual.
2180 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2181 Only get the extra info when needed.
2182 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2183 (mips32_heuristic_proc_desc): Fetch the cooked register.
2184 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2185 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2186 (mips_print_register): Use gdbarch_register_type, instead of
2187 REGISTER_VIRTUAL_TYPE.
2188 (print_gp_register_row): Use gdbarch_register_type, instead of
2189 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2190 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2191 Print the pseudo / cooked registers.
2192 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2193 Print the pseudo / cooked registers.
2194 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2195 REG_NUM is pseudo / cooked.
2196 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2197 (mips_n32n64_xfer_return_value): Ditto.
2198 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2199 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2200 (mips_register_sim_regno): New function.
2201 (mips_gdbarch_init): Set deprecated_register_byte,
2202 register_group_p, pseudo_register_write, pseudo_register_read,
2203 register_sim_regno, and num_pseudo_regs. Set register_type,
2204 instead of register_virtual_type.
2205 * Makefile.in (mips-tdep.o): Update dependencies.
2206 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2207 REGISTER_VIRTUAL_TYPE.
2208 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2209 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2210 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2211 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2212 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2214 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2216 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2217 * cli/cli-cmds.c: Include "gdb_vfork.h".
2218 (shell_escape): Use vfork.
2220 2003-06-21 Andrew Cagney <cagney@redhat.com>
2222 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2223 32 bit floating-point register saves.
2225 * frame.h (deprecated_unwind_get_saved_register): Delete.
2226 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2227 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2228 and deprecated_get_next_frame_hack instead of
2229 deprecated_unwind_get_saved_register.
2231 * mips-tdep.c (mips_dump_tdep): Do not print
2232 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2234 * frame.c (get_frame_register): New function.
2235 (frame_unwind_register_signed): New function.
2236 (get_frame_register_signed): New function.
2237 (frame_unwind_register_unsigned): New function.
2238 (get_frame_register_unsigned): New function.
2239 * frame.h: Add comments on naming schema.
2240 (get_frame_register, frame_unwind_register_signed): Declare.
2241 (get_frame_register_signed, get_frame_register_signed): Declare.
2242 (frame_unwind_register_unsigned): Declare.
2243 (get_frame_register_unsigned): Declare.
2245 2003-06-20 Theodore A. Roth <troth@openavr.org>
2247 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2249 2003-06-20 Theodore A. Roth <troth@openavr.org>
2251 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2252 (avr_read_sp): Ditto.
2254 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2256 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2257 * config/arm/nm-linux.h: Likewise.
2258 * config/arm/tm-linux.h: Likewise.
2259 * config/ia64/nm-linux.h: Likewise.
2260 * config/ia64/tm-ia64.h: Likewise.
2261 * config/s390/tm-linux.h: Likewise.
2262 * config/s390/tm-s390.h: Likewise.
2263 * s390-nat.c: Likewise.
2264 * s390-tdep.c: Likewise.
2266 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2267 * config/ia64/linux.mt: Likewise.
2268 * config/m68k/linux.mh: Likewise.
2269 * config/mips/linux.mt: Likewise.
2270 * config/powerpc/linux.mh: Likewise.
2271 * config/sh/linux.mt: Likewise.
2273 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2275 * solib.c (solib_open): Change tests for whether to search
2276 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2279 2003-06-19 Theodore A. Roth <troth@openavr.org>
2281 * avr-tdep.c (avr_frame_address): Delete function.
2282 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2283 set_gdbarch_frame_args_address.
2285 2003-06-19 Andrew Cagney <cagney@redhat.com>
2287 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2288 (REGISTER_CONVERT_FROM_TYPE): Delete.
2289 (mips_register_convert_to_type): Delete declaration.
2290 (mips_register_convert_from_type): Delete declaration.
2291 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2294 2003-06-19 Michael Snyder <msnyder@redhat.com>
2296 * linux-nat.h: New file.
2297 * linux-nat.c: Include linux-nat.h.
2298 * lin-lwp.c: Include linux-nat.h.
2299 Move struct lwp_info def to linux-nat.h.
2300 * linux-proc.c: Include linux-nat.h.
2301 (linux_make_note_section): Iterate over lwps instead of threads.
2302 (linux_do_thread_registers): Use lwp instead of merged pid.
2303 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2304 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2305 Add dependency on linux_nat_h.
2307 2003-06-19 Theodore A. Roth <troth@openavr.org>
2309 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2311 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2313 * varobj.c (get_type, get_target_type): Use check_typedef.
2315 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2317 * breakpoint.c (insert_catchpoint): Call internal_error.
2319 2003-06-19 Theodore A. Roth <troth@openavr.org>
2321 * avr-tdep.c (avr_push_dummy_code): Delete function.
2322 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2324 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2326 * arch-utils.c (default_prepare_to_proceed): Remove.
2327 (generic_prepare_to_proceed): Remove.
2328 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2329 (generic_prepare_to_proceed): Remove prototype.
2330 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2331 * gdbarch.c: Regenerate.
2332 * gdbarch.h: Regenerate.
2333 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2334 * hppah-nat.c (hppa_switched_threads): Remove.
2335 * infrun.c (prepare_to_proceed): New static function, copied from
2336 generic_prepare_to_proceed. Remove select_it argument.
2337 (proceed): Call prepare_to_proceed.
2338 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2340 (ptrace_wait): Don't set the removed variables.
2341 (hppa_switched_threads): Remove.
2342 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2343 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2344 (lin_lwp_prepare_to_proceed): Remove prototype.
2345 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2346 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2348 2003-06-18 Theodore A. Roth <troth@openavr.org>
2350 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2352 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2353 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2354 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2355 (AVR_PROLOGUE_*): Enumerate prologue types.
2356 (struct frame_extra_info): Remove.
2357 (struct avr_unwind_cache): Define.
2358 (avr_write_sp): Delete function.
2359 (avr_read_fp): Ditto.
2360 (avr_init_extra_frame_info): Ditto.
2361 (avr_pop_frame): Ditto.
2362 (avr_frame_saved_pc): Ditto.
2363 (avr_saved_pc_after_call): Ditto.
2364 (avr_push_return_address): Ditto.
2365 (avr_frame_chain): Ditto.
2366 (avr_store_struct_return): Ditto.
2367 (avr_push_arguments): Ditto.
2368 (avr_scan_prologue): Update comments. Changed to set up the info for
2369 cache unwinding. Now returns end of prologue PC.
2370 (avr_skip_prologue): Better handling of functions lacking a prologue
2371 by using avr_scan_prologue.
2372 (avr_scan_arg_moves): New function.
2373 (avr_saved_regs_unwinder): Ditto.
2374 (avr_frame_unwind_cache): Ditto.
2375 (avr_unwind_pc): Ditto.
2376 (avr_frame_this_id): Ditto.
2377 (avr_frame_prev_register): Ditto.
2378 (avr_frame_p): Ditto.
2379 (avr_frame_base_address ): Ditto.
2380 (avr_unwind_dummy_id): Ditto.
2381 (avr_push_dummy_code): Ditto.
2382 (push_stack_item): Ditto.
2383 (pop_stack_item): Ditto.
2384 (avr_push_dummy_call): Ditto.
2385 (struct stack_item): Define.
2386 (avr_frame_unwind): Declare structure.
2387 (avr_frame_base): Ditto.
2388 (avr_gdbarch_init): Remove calls to
2389 set_gdbarch_deprecated_init_frame_pc,
2390 set_gdbarch_deprecated_target_read_fp,
2391 set_gdbarch_deprecated_dummy_write_sp,
2392 set_gdbarch_deprecated_fp_regnum,
2393 set_gdbarch_deprecated_push_arguments,
2394 set_gdbarch_deprecated_push_return_address,
2395 set_gdbarch_deprecated_pop_frame,
2396 set_gdbarch_deprecated_store_struct_return,
2397 set_gdbarch_deprecated_frame_init_saved_regs,
2398 set_gdbarch_deprecated_init_extra_frame_info,
2399 set_gdbarch_deprecated_frame_chain,
2400 set_gdbarch_deprecated_frame_saved_pc,
2401 set_gdbarch_deprecated_saved_pc_after_call.
2402 Add calls to set_gdbarch_push_dummy_call,
2403 set_gdbarch_push_dummy_code,
2404 frame_unwind_append_predicate,
2405 frame_base_set_default,
2406 set_gdbarch_unwind_dummy_id,
2407 set_gdbarch_unwind_pc.
2410 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2412 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2413 registers for H8/300S.
2414 (h8300_print_registers_info): Ditto.
2415 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2417 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2419 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2420 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2421 (lin_lwp_wait): Likewise. Update comments.
2422 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2423 (pull_pid_from_list, linux_record_stopped_pid): New.
2425 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2427 * ada-lang.c (scan_discrim_bound): Name first argument.
2428 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2429 declared by ALL_BLOCK_SYMBOLS.
2431 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2433 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2434 ("regcache.h"): Include it.
2435 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2437 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2439 * NEWS: Mention gdbserver detach change and "disconnect" command.
2440 * infcmd.c (disconnect_command): New function.
2441 (_initialize_infcmd): Add ``disconnect'' command.
2442 * remote.c (remote_async_detach): Delete.
2443 (remote_detach): Merge remote_async_detach.
2444 (remote_disconnect): New.
2445 (init_remote_ops): Set to_disconnect.
2446 (init_remote_cisco_ops): Likewise.
2447 (init_remote_async_ops): Likewise. Use remote_detach.
2448 * target.c (cleanup_target): Default to_disconnect.
2449 (update_current_target): Inherit to_disconnect.
2450 (target_disconnect, debug_to_disconnect): New functions.
2451 (setup_target_debug): Set to_disconnect.
2452 * target.h (struct target_ops): Add to_disconnect.
2453 (target_disconnect): Add prototype.
2455 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2457 * breakpoint.c (insert_catchpoint): New function.
2458 (insert_breakpoints): Use catch_exceptions to call
2459 insert_catchpoint. Disable catchpoints if they fail to insert.
2461 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2463 * symfile.c (reread_symbols): Clear sym_private.
2465 2003-06-17 Andrew Cagney <cagney@redhat.com>
2467 * trad-frame.h (struct frame_info): Add opaque declaration.
2468 * remote-fileio.h (struct cmd_list_element): Add opaque
2470 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2473 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2475 * remote.c (remote_prepare_to_store): Replace call to
2476 deprecated_read_register_bytes with multiple regcache_raw_read
2479 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2481 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2482 (nto_find_and_open_solib): Likewise.
2483 (nto_init_solib_absolute_prefix): Likewise.
2484 (_initialize_nto_tdep): Fix indentation.
2486 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2488 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2490 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2492 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2494 2003-06-17 Jim Blandy <jimb@redhat.com>
2496 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2498 2003-06-16 Theodore A. Roth <troth@openavr.org>
2500 * avr-tdep.c (avr_extract_return_value): New function.
2501 (avr_gdbarch_init): Set extract_return_value method.
2503 2003-06-16 Andrew Cagney <cagney@redhat.com>
2505 * frame.h (deprecated_get_next_frame_hack): Declare.
2506 * frame.c (legacy_saved_regs_prev_register): Only require
2507 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2508 there are always saved regs.
2509 (deprecated_generic_get_saved_register): Do not require
2510 DEPRECATED_FRAME_INIT_SAVED_REGS.
2511 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2512 use frame ID unwind instead.
2513 (deprecated_get_next_frame_hack): New function.
2515 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2517 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2518 (h8300_push_dummy_call): ...this function. Some minor optimization.
2519 (h8300_push_return_address): Remove.
2520 (h8300_gdbarch_init): Remove calls to
2521 set_gdbarch_deprecated_dummy_write_sp,
2522 set_gdbarch_deprecated_push_arguments and
2523 set_gdbarch_deprecated_push_return_address.
2524 Add call to set_gdbarch_push_dummy_call.
2526 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2528 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2529 (E_PSEUDO_EXR_REGNUM): Ditto.
2530 (h8300_is_argument_spill): Check for instructions moving argument
2531 registers into safe registers.
2532 (h8300_skip_prologue): Check for stm instruction to push registers
2533 used for register variables onto stack.
2534 (gdb_print_insn_h8300): Remove.
2535 (h8300_examine_prologue): Add a comment.
2536 (h8300_register_name): Take pseudo registers into account.
2537 (h8300s_register_name): Ditto.
2538 (h8300sx_register_name): Ditto.
2539 (h8300_print_register): Ditto.
2540 (h8300_print_registers_info): Define "nice" printing order.
2541 (h8300_saved_pc_after_call): Take pseudo registers into account.
2542 (h8300_register_type): Ditto. Return type used for remote connection
2543 when requesting real CCR or EXR register, return actual type when
2544 requesting pseudo CCR or EXR.
2545 (h8300_pseudo_register_read): New function.
2546 (h8300_pseudo_register_write): Ditto.
2547 (h8300_dbg_reg_to_regnum): Ditto.
2548 (h8300s_dbg_reg_to_regnum): Ditto.
2549 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2550 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2551 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2552 set_gdbarch_print_insn architecture dependent.
2553 Call set_gdbarch_pseudo_register_read and
2554 set_gdbarch_pseudo_register_write.
2555 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2557 2003-06-16 Andrew Cagney <cagney@redhat.com>
2559 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2560 * gdbarch.h, gdbarch.c: Re-generate.
2561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2562 * s390-tdep.c (s390_gdbarch_init): Update.
2563 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2564 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2565 * mips-tdep.c (mips_gdbarch_init): Update.
2566 * mcore-tdep.c (mcore_gdbarch_init): Update.
2567 * cris-tdep.c (cris_gdbarch_init): Update.
2568 * infcall.c (call_function_by_hand): Update.
2569 * ia64-tdep.c (ia64_push_arguments): Update comment.
2570 * frame.c (legacy_get_prev_frame): Do not assume
2571 SAVE_DUMMY_FRAME_TOS_P.
2572 * dummy-frame.c (find_dummy_frame): Update comment.
2574 2003-06-16 Andrew Cagney <cagney@redhat.com>
2576 * regcache.c (do_cooked_read): Do not use register_valid_p.
2578 2003-06-15 Theodore A. Roth <troth@openavr.org>
2580 * avr-tdep.c (avr_register_type): Remove a blank line.
2581 (avr_scan_prologue): Correct some comments.
2583 2003-06-15 Theodore A. Roth <troth@openavr.org>
2585 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2587 Properly scan prologues generated by gcc with the -mcall-prologues
2589 Add code to scan -mcall-prologues for mega devices.
2591 2003-06-15 Theodore A. Roth <troth@openavr.org>
2593 * avr-tdep.c (avr_register_byte): Delete function.
2594 (avr_register_raw_size): Delete function.
2595 (avr_register_virtual_size): Delete function.
2596 (avr_register_virtual_type): Delete function.
2597 (avr_register_type): New function.
2598 (avr_address_to_pointer): Remove unused code.
2599 (avr_read_fp): Need to read FP as two separate bytes due to change to
2600 avr_register_type() usage.
2601 (avr_gdbarch_init): Don't set deprecated_register_size.
2602 Don't set deprecated_register_bytes.
2603 Don't set deprecated_register_byte.
2604 Don't set deprecated_register_raw_size.
2605 Don't set deprecated_max_register_raw_size.
2606 Don't set deprecated_register_virtual_size.
2607 Don't set deprecated_max_register_virtual_size.
2608 Don't set deprecated_register_virtual_type.
2609 Set register_type method.
2611 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2613 * Makefile.in (linux-nat.o): Add rule.
2614 * linux-nat.c: New file.
2615 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2616 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2617 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2618 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2619 * config/arm/linux.mh (NATDEPFILES): Likewise.
2620 * config/i386/linux.mh (NATDEPFILES): Likewise.
2621 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2622 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2623 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2624 * config/mips/linux.mh (NATDEPFILES): Likewise.
2625 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2626 * config/s390/s390.mh (NATDEPFILES): Likewise.
2627 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2629 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2631 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2632 replace out-of-date comment.
2634 2003-06-15 Andrew Cagney <cagney@redhat.com>
2636 * rdi-share/host.h (Fail): Change to a varargs function.
2637 * remote-rdi.c (Fail): Update.
2639 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2641 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2642 (i386_convert_register_p, i386_register_to_value,
2643 i386_register_from_value): Handle types longer than 8 bytes.
2645 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2647 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2648 Move floating-point code to new function in i387-tdep.c.
2649 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2650 New functions containing code moved here from i386-tdep.c.
2651 * i387-tdep.h: Add opaque declaration for `struct type'.
2652 (i387_register_to_value, i387_value_to_register): New prototypes.
2653 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2654 (x86_64_init_abi): Set convert_register_p, register_to_value and
2655 value_to_register here.
2657 2003-06-14 Andrew Cagney <cagney@redhat.com>
2659 * mips-tdep.c (mips_register_to_value): Make static.
2660 (mips_value_to_register): Make static.
2661 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2662 * ia64-tdep.c (ia64_register_raw_size): Make static.
2663 (ia64_register_virtual_size): Make static.
2664 (ia64_register_byte): Make static.
2665 * i387-tdep.c: Include "i387-tdep.h".
2666 (print_387_control_word): Delete function.
2667 (print_387_status_word): Delete function.
2668 (print_387_status_bits): Delete function.
2669 (print_387_control_bits): Delete function.
2670 * Makefile.in (i387-tdep.o): Update dependencies.
2671 * rdi-share/host.h (Fail): Declare.
2672 * remote-rdi.c (Fail): Update to match declaration.
2674 2003-06-14 Andrew Cagney <cagney@redhat.com>
2676 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2677 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2678 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2679 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2680 * README: Delete reference to remote-array.
2681 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2682 (remote-array.o): Delete target.
2683 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2684 * remote-array.c: Delete file.
2686 2003-06-14 Andrew Cagney <cagney@redhat.com>
2687 Mark Kettenis <kettenis@gnu.org>
2689 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2690 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2691 parameter with "frame".
2692 * gdbarch.h, gdbarch.c: Re-generate.
2693 * frame.h (put_frame_register): Declare.
2694 * frame.c (put_frame_register): New function.
2695 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2696 (legacy_register_to_value): Rewrite, use "frame" to get the
2698 (legacy_value_to_register): Rewrite, use "frame" to find the
2699 register's location before storing.
2700 * arch-utils.h (legacy_convert_register_p): Update.
2701 (legacy_register_to_value, legacy_value_to_register): Update.
2702 * findvar.c (value_from_register): Rewrite, eliminate use of
2703 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2704 "frame" to REGISTER_TO_VALUE.
2705 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2706 lval_reg_frame_relative + lval_register branch of the switch. Do
2707 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2708 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2709 I386_EDI_REGNUM): New defines.
2710 (i386_next_regnum, i386_convert_register_p,
2711 i386_register_to_value, i386_value_to_register): New functions.
2712 (i386_register_convertible, i386_register_convert_to_virtual,
2713 i386_convert_to_raw): Remove functions.
2714 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2715 value_to_register instead of register_convertible,
2716 register_convert_to_virtual and register_convert_to_raw.
2717 * mips-tdep.c (mips_convert_register_p): New function.
2718 (mips_value_to_register): Replace mips_register_convert_from_type.
2719 (mips_register_to_value): Replace mips_register_convert_to_type.
2720 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2722 * alpha-tdep.c (alpha_convert_register_p): Update.
2723 (alpha_value_to_register): Update, store the register.
2724 (alpha_register_to_value): Update, fetch the register.
2726 2003-06-14 Theodore A. Roth <troth@openavr.org>
2728 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2729 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2730 Don't set deprecated_call_dummy_words.
2731 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2732 Don't set remote_translate_xfer_address.
2733 (avr_io_reg_read_command): Remove commented out debug printf.
2736 2003-06-14 Theodore A. Roth <troth@openavr.org>
2738 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2739 causes gdb to seg fault.
2741 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2743 * sparc-nat.c (fetch_inferior_registers): Correct
2744 a reference to "registers".
2746 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2748 * Makefile.in (exc_request_U_h): Define
2749 (exc_request_S_h): Likewise.
2750 (msg_reply_S_h): Likewise.
2751 (msg_U_h): Likewise.
2752 (notify_S_h): Likewise.
2753 (process_reply_S_h): Likewise.
2754 (gnu-nat.o): Depend on gdb_obstack_h
2755 * gnu-nat.c: Include "gdb_obstack.h".
2757 2003-06-13 Andrew Cagney <cagney@redhat.com>
2759 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2760 * gdbarch.h, gdbarch.c: Re-generate.
2762 2003-06-13 Andrew Cagney <cagney@redhat.com>
2764 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2765 when deprecated REGISTER macros can be deleted.
2766 * gdbarch.h, gdbarch.c: Re-generate.
2768 2003-06-13 Jim Blandy <jimb@redhat.com>
2770 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2771 Linux entry point symbols for _dl_debug_state, too.
2773 2003-06-13 Andrew Cagney <cagney@redhat.com>
2775 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2776 available, do not use the FP register, and always save the TOS.
2777 * dummy-frame.c (dummy_frame_this_id): Do not assert
2778 SAVE_DUMMY_FRAME_TOS.
2779 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2780 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2781 (i386_push_dummy_call): Add 8 to the returned SP.
2782 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2783 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2784 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2785 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2786 (x86_64_push_dummy_call): Return "sp + 16".
2787 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2788 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2789 save_dummy_frame_tos.
2791 2003-06-13 Jim Blandy <jimb@redhat.com>
2793 * frv-tdep.c (frv_use_struct_convention): Delete static
2794 declaration for function deleted in my change of 2003-06-12.
2796 2003-06-13 Theodore A. Roth <troth@openavr.org>
2798 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2799 (avr_pointer_to_address): Shift code addrs left 1 bit.
2800 (avr_convert_from_func_ptr_addr): Delete function since operation is
2801 better handled by avr_address_to_pointer and avr_pointer_to_address.
2802 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2804 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2806 From Kelley Cook <kelleycook@wideopenwest.com>:
2807 * configure.host: Accept i[34567]86 variants.
2808 * configure.tgt: Likewise.
2809 * nlm/configure.in: Likewise.
2810 * nlm/configure: Regenerated.
2812 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2814 * arm-tdep.c (solib-svr4.h): Dont' include it.
2815 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2816 * arm-linux-tdep.c: ... here. Make static.
2817 (arm_linux_init_abi): Register it.
2818 (solib-svr4.h): Include it.
2819 * Makefile.in: Update dependencies.
2820 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2821 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2823 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2825 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2826 indicate registers used for return values.
2827 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2828 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2830 (h8300_init_extra_frame_info): Ditto.
2831 (h8300_frame_locals_address): Removed.
2832 (h8300_frame_args_address): Removed.
2833 (h8300_extract_return_value): Use new regcache structure. Only care
2835 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2836 (h8300_store_return_value): Use new regcache structure. Only care
2838 (h8300h_store_return_value): Same function for 32 bit CPUs.
2839 (h8300_store_struct_return): Removed.
2840 (h8300_extract_struct_value_address): Use new regcache structure.
2841 (h8300h_extract_struct_value_address): Removed.
2842 (h8300_push_dummy_code): New function.
2843 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2844 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2845 set_gdbarch_store_return_value architecture dependent.
2846 Call set_gdbarch_push_dummy_code and
2847 set_gdbarch_extract_struct_value_address.
2848 Remove calls to set_gdbarch_frame_args_address,
2849 set_gdbarch_frame_locals_address,
2850 set_gdbarch_deprecated_store_struct_return,
2851 set_gdbarch_deprecated_extract_return_value,
2852 set_gdbarch_deprecated_extract_struct_value_address,
2853 set_gdbarch_deprecated_call_dummy_words and
2854 set_gdbarch_deprecated_sizeof_call_dummy_words.
2856 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2858 * h8300-tdep.c (h8300_register_byte): Remove.
2859 (h8300h_register_byte): Remove.
2860 (h8300_register_virtual_type): Remove. Substitute by...
2861 (h8300_register_type): New function.
2862 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2863 (h8300h_extract_struct_value_address): Ditto.
2864 (h8300_gdbarch_init): Drop calls to
2865 set_gdbarch_deprecated_register_byte and
2866 set_gdbarch_deprecated_register_virtual_type.
2867 Add call to set_gdbarch_register_type.
2869 2003-06-13 Andrew Cagney <cagney@redhat.com>
2871 * gdbarch.sh: Update comments on registers.
2872 (deprecated_register_byte): Rename register_byte.
2873 (deprecated_register_raw_size): Rename register_raw_size.
2874 (deprecated_register_virtual_size): Rename register_virtual_size.
2875 (deprecated_register_virtual_type): Rename register_virtual_type.
2876 * gdbarch.h, gdbarch.c: Re-generate.
2877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2878 * vax-tdep.c (vax_gdbarch_init): Update.
2879 * v850-tdep.c (v850_gdbarch_init): Update.
2880 * sparc-tdep.c (sparc_gdbarch_init): Update.
2881 * sh-tdep.c (sh_gdbarch_init): Update.
2882 * s390-tdep.c (s390_gdbarch_init): Update.
2883 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2884 * ns32k-tdep.c: Update.
2885 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2886 * mips-tdep.c (mips_gdbarch_init): Update.
2887 * mcore-tdep.c (mcore_gdbarch_init): Update.
2888 * m68k-tdep.c (m68k_gdbarch_init): Update.
2889 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2890 * ia64-tdep.c (ia64_gdbarch_init): Update.
2891 * hppa-tdep.c (hppa_gdbarch_init): Update.
2892 * h8300-tdep.c (h8300_gdbarch_init): Update.
2893 * frv-tdep.c (frv_gdbarch_init): Update.
2894 * cris-tdep.c (cris_gdbarch_init): Update.
2895 * avr-tdep.c (avr_gdbarch_init): Update.
2896 * alpha-tdep.c (alpha_gdbarch_init): Update.
2897 * arm-tdep.c (arm_gdbarch_init): Update.
2899 2003-06-13 Andrew Cagney <cagney@redhat.com>
2901 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2902 mips_o32_use_struct_convention with always_use_struct_convention.
2904 2003-06-12 David Carlton <carlton@kealia.com>
2906 * cp-namespace.c (cp_set_block_scope): Comment out
2907 processing_has_namespace_info branch.
2909 2003-06-12 Jim Blandy <jimb@redhat.com>
2911 Recognize and skip 64-bit PowerPC Linux linkage functions.
2912 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2913 insn_pattern, insns_match_pattern, d_field, ds_field): New
2914 functions, macros, and types for working with PPC instructions.
2915 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2916 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2917 ppc64_skip_trampoline_code): New functions, variables, and macros
2918 for recognizing and skipping linkage functions.
2919 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2920 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2922 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2923 register offsets for both the 32- and 64-bit interfaces.
2925 Actually finish the job started by my change of 2003-05-29.
2926 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2927 other #definition of this.
2928 (ppc_linux_skip_trampoline_code): Remove declaration.
2929 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2931 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2934 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2935 'long' on ppc64-*-linux*.
2937 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2938 isn't #defined, assume the register doesn't exist: act as if
2939 tdep->ppc_mq_regnum were -1.
2941 * configure.host, configure.tgt: Add entries for
2942 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2944 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2947 * arch-utils.c (always_use_struct_convention): New function.
2948 * arch-utils.h (always_use_struct_convention): New prototype.
2949 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2950 (alpha_gdbarch_init): Register always_use_struct_convention,
2951 instead of alpha_use_struct_convention.
2952 * cris-tdep.c (cris_use_struct_convention): Delete.
2953 (cris_gdbarch_init): Register always_use_struct_convention,
2954 instead of cris_use_struct_convention.
2955 * frv-tdep.c (frv_use_struct_convention): Delete.
2956 (frv_gdbarch_init): Register always_use_struct_convention,
2957 instead of frv_use_struct_convention.
2958 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2959 (h8300_gdbarch_init): Register always_use_struct_convention,
2960 instead of h8300_use_struct_convention.
2961 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2962 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2963 instead of mips_o32_use_struct_convention.
2965 2003-06-12 Andrew Cagney <cagney@redhat.com>
2967 * wince.c: Include "mips-tdep.h".
2968 * mips-tdep.h (mips_next_pc): Declare.
2969 * mcore-tdep.c: Make more local functions static.
2970 * Makefile.in (wince.o): Update dependencies.
2972 2003-06-12 David Carlton <carlton@kealia.com>
2974 * symtab.c (lookup_symbol_aux_minsyms): Replace
2975 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2976 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2977 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2978 SYMBOL_NATURAL_NAME.
2980 2003-06-12 Andreas Schwab <schwab@suse.de>
2982 * Makefile.in (tuiDisassem.o): Update dependencies.
2984 2003-06-12 David Carlton <carlton@bactrian.org>
2986 * symtab.h: Delete declaration of make_symbol_overload_list.
2987 Add declaration of lookup_partial_symbol.
2988 * symtab.c (remove_params): Move to cp-support.c.
2989 (overload_list_add_symbol, make_symbol_overload_list)
2990 (sym_return_val_size, sym_return_val_index): Ditto.
2991 (lookup_partial_symbol): Make extern.
2992 * cp-support.h: Add declaration of make_symbol_overload_list.
2993 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2994 symtab.h, and block.h.
2995 (remove_params): Move here from symtab.c.
2996 (overload_list_add_symbol, make_symbol_overload_list)
2997 (sym_return_val_size, sym_return_val_index): Ditto.
2998 * valops.c: Include cp-support.h.
2999 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3000 frame_h, and block_h.
3001 (valops.o): Depend on cp_support_h.
3003 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3005 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3006 substitute by NUM_REGS throughout.
3007 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3008 (h8300s_register_name): New function for H8S registers.
3009 (h8300sx_register_name): Ditto for H8SX registers.
3010 (h8300_print_register): Revise register printing, avoid depending
3012 (h8300_register_byte): Only care for H8/300 registers.
3013 (h8300h_register_byte): New function for any other architecture.
3014 (h8300_register_raw_size): Remove.
3015 (h8300_register_virtual_type): Revise to return actually useful
3017 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3018 (h8300h_extract_struct_value_address): New function for any other
3020 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3021 set_gdbarch_register_name, set_gdbarch_register_byte,
3022 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3023 Remove calls to set_gdbarch_deprecated_register_size,
3024 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3025 set_gdbarch_deprecated_max_register_raw_size,
3026 set_gdbarch_register_virtual_size and
3027 set_gdbarch_deprecated_max_register_virtual_size entirely.
3028 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3029 set_gdbarch_long_double_bit.
3031 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3033 * doublest.c (convert_doublest_to_floatformat): When dealing
3034 with the implied integer bit, only alter mant_bits if we are
3035 processing a full 32 bits of mantissa.
3037 2003-06-11 David Carlton <carlton@bactrian.org>
3039 * dictionary.h: New.
3040 * dictionary.c: New.
3041 * block.h: Add opaque declaration for struct dictionary.
3042 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3044 (BLOCK_DICT): New macro.
3045 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3046 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3048 (ALL_BLOCK_SYMBOLS): Update definition.
3049 * Makefile.in (SFILES): Add dictionary.c.
3050 (dictionary_h): New.
3051 (COMMON_OBS): Add dictionary.o.
3052 (dictionary.o): New.
3053 (ada-lang.o): Depend on dictionary_h.
3054 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3055 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3056 (mi-cmd-stack.o): Ditto.
3057 (gdbtk-cmds.o): Update dependencies.
3058 (gdbtk-stack.o): Ditto.
3059 * ada-lang.c: Include dictionary.h.
3060 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3061 (fill_in_ada_prototype, debug_print_block): Ditto.
3062 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3063 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3065 * mdebugread.c: Include dictionary.h.
3066 (struct parse_stack): Delete 'maxsyms' member.
3067 (parse_symbol): Update calls to new_block. Delete calls to
3068 shrink_block. Use dictionary methods.
3069 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3070 Update calls to new_symtab. Don't maintain maxsyms data.
3071 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3072 (add_symbol): Just call dict_add_symbol.
3073 (new_symtab): Delete 'maxsyms' argument.
3074 (new_symtab): Update calls to new_block.
3075 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3076 (shrink_block): Delete function.
3077 (fixup_sigtramp): Update call to new_block. Add symbol via
3079 * jv-lang.c: Include dictionary.h.
3080 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3081 appropriately. Set class_symtab->free_func. Make sure the
3082 blockvector is big enough to hold two blocks.
3083 (add_class_symtab_symbol): Use dictionary methods.
3084 (free_class_block): New function.
3085 (type_from_class): Replace explicit iteration by
3087 * symtab.h (struct symtab): Replace 'free_ptr' method by
3089 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3091 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3093 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3094 Include dictionary.h.
3095 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3096 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3098 * objfiles.c: Include dictionary.h.
3099 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3100 * buildsym.c: Include dictionary.h.
3101 (finish_block): Use dictionary methods.
3102 (end_symtab): Set free_func to NULL, not free_ptr.
3103 * tracepoint.c: Include dictionary.h.
3104 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3105 (scope_info): Ditto.
3106 * stack.c: Include dictionary.h.
3107 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3108 (print_block_frame_labels, print_frame_arg_vars)
3109 (print_frame_args): Ditto.
3110 * symmisc.c (free_symtab_block): Use dictionary methods.
3111 (dump_symtab): Ditto.
3112 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3113 Include dictionary.h.
3114 * symfile.h: Delete declarations of sort_block_syms,
3116 * symfile.c (sort_block_syms): Delete.
3117 (sort_symtab_syms): Delete.
3118 * symtab.c: Include dictionary.h.
3119 (lookup_block_symbol): Use dictionary iterators.
3120 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3121 (search_symbols, make_symbol_completion_list): Ditto.
3122 (make_symbol_overload_list): Ditto.
3123 * valops.c (value_of_local): Use dict_empty.
3124 Include dictionary.h.
3126 2003-06-11 J. Brobecker <brobecker@gnat.com>
3128 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3130 2003-06-11 David Carlton <carlton@bactrian.org>
3132 * block.h (BLOCK_SHOULD_SORT): Delete.
3133 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3135 * ada-lang.c (ada_add_block_symbols): Ditto.
3136 * symfile.c (sort_block_syms): Delete.
3137 (sort_symtab_syms): Ditto.
3138 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3140 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3141 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3142 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3143 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3144 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3145 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3146 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3148 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3150 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3153 2003-06-11 Andrew Cagney <cagney@redhat.com>
3155 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3156 REGISTER_CONVERTIBLE.
3157 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3158 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3159 * gdbarch.h, gdbarch.c: Re-generate.
3160 * arch-utils.h (deprecated_register_convertible_not): Rename
3161 generic_register_convertible_not.
3162 * arch-utils.c (deprecated_register_convertible_not): Rename
3163 generic_register_convertible.
3164 (legacy_convert_register_p, legacy_register_to_value): Update.
3165 * sh-tdep.c (sh64_push_arguments): Update.
3166 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3167 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3168 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3169 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3170 * arch-utils.c (legacy_value_to_register): Update.
3171 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3172 (rs6000_register_convert_to_raw): Make parameter "from" const.
3173 * mips-tdep.c (mips_gdbarch_init): Update.
3174 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3175 * infcmd.c (default_print_registers_info): Update.
3176 * ia64-tdep.c (ia64_gdbarch_init): Update.
3177 (ia64_register_convert_to_raw): Make parameter "from" const.
3178 * i386-tdep.c (i386_gdbarch_init): Update.
3179 (i386_register_convert_to_raw): Update.
3181 2003-06-11 Andrew Cagney <cagney@redhat.com>
3183 * remote-fileio.c: Include "remote-fileio.h".
3184 * Makefile.in (remote-fileio.o): Update dependencies.
3185 (remote_fileio_h): Fix typo.
3187 2003-06-11 Andrew Cagney <cagney@redhat.com>
3189 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3190 (xstormy16_save_dummy_frame_tos): Make static.
3191 (_initialize_xstormy16_tdep): Add declaration.
3192 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3193 * v850-tdep.c: Make local functions static.
3194 (_initialize_v850_tdep): Add declaration.
3195 * sparc-tdep.c: Make local functions static.
3196 (_initialize_sparc_tdep): Add declaration.
3197 * sh-tdep.c: Make local functions static.
3198 (_initialize_sh_tdep): Add declaration.
3199 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3200 * s390-tdep.c: Make local functions static.
3201 (_initialize_s390_tdep): Add declaration.
3202 * dbxread.c (find_stab_function_addr): Make static.
3203 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3204 * ocd.c (_initialize_remote_ocd): Add declaration.
3205 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3206 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3207 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3208 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3209 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3210 * remote-array.c (_initialize_array): Add declaration.
3211 (_initialize_remote_monitors): Add declaration.
3212 * remote-mips.c: Make local functions static.
3213 (_initialize_remote_mips): Add declaration.
3214 * mcore-tdep.c: Make all local functions static.
3215 (_initialize_mcore_tdep): Add declaration.
3216 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3217 * abug-rom.c (_initialize_abug_rom): Add declaration.
3218 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3219 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3220 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3221 * remote-est.c (_initialize_est): Add declaration.
3222 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3223 (m68hc11_call_dummy_address): Make static.
3224 * ia64-tdep.c: Make local functions static.
3225 (_initialize_ia64_tdep): Add declaration.
3226 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3227 * monitor.c (monitor_wait_filter): Make static.
3228 (_initialize_remote_monitors): Add declaration.
3229 * remote-hms.c (_initialize_remote_hms): Add declaration.
3230 * remote-e7000.c (fetch_regs_from_dump): Make static.
3231 (expect_n): Make static.
3232 (_initialize_remote_e7000): Add declaration.
3233 * ser-e7kpc.c: Always include "defs.h".
3234 (_initialize_ser_e7000pc): Add declaration.
3235 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3236 * cris-tdep.c: Make all but one function static.
3237 (_initialize_cris_tdep): Add declaration.
3238 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3239 * solib.c (update_solib_list): Make static.
3240 (_initialize_solib): Add declaration.
3241 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3242 (_initialize_avr_tdep): Add declaration.
3243 * remote-rdi.c (voiddummy): Make static.
3244 (_initialize_remote_rdi): Add declaration.
3245 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3246 * remote-rdp.c (send_rdp): Make static.
3247 (_initialize_remote_rdp): Add declaration.
3248 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3250 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3252 * remote-fileio.c: Make ari happy.
3254 2003-06-10 J. Brobecker <brobecker@gnat.com>
3256 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3257 fetching the trailing bytes of the buffer we are about to write.
3259 2003-06-10 Andrew Cagney <cagney@redhat.com>
3261 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3262 * Makefile.in (remote-fileio.o): Update dependencies.
3263 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3264 include <setjmp.h>, or <sys/types.h> conditional on USG.
3265 (remote_fio_jmp_buf): Delete global variable.
3267 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3268 Martin M. Hunt <hunt@redhat.com>
3270 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3271 (SFILES): Add remote-fileio.c.
3272 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3273 dependencies for building remote.o.
3274 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3275 * remote-fileio.h: New header file defining remote File-I/O interface.
3276 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3277 static storage class.
3278 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3280 (_initialize_remote): Call initialize_remote_fileio().
3281 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3282 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3283 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3284 (captured_main): Initialize new ui_files.
3285 * ui-file.c: Add read and fgets input functions.
3286 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3287 (null_file_read): New function.
3288 (ui_file_read): New function.
3289 (set_ui_file_read): New function.
3290 (stdio_file_read): New function.
3291 * ui-file.h: New type ui_file_read_ftype.
3292 (set_ui_file_read): Declare.
3293 (ui_file_read): Declare.
3295 2003-06-09 Andrew Cagney <cagney@redhat.com>
3297 * frame.h (deprecated_unwind_get_saved_register): Rename
3298 generic_unwind_get_saved_register, update comments.
3299 * mips-tdep.c (mips_get_saved_register): Update.
3300 * frame.c (deprecated_unwind_get_saved_register): Update.
3302 2003-06-09 Andrew Cagney <cagney@redhat.com>
3304 * vax-tdep.c (vax_frame_locals_address): Delete function.
3305 (vax_gdbarch_init): Do not set frame_locals_address.
3306 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3307 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3308 * s390-tdep.c (s390_frame_args_address): Delete function.
3309 (s390_gdbarch_init): Do not set frame_args_address or
3310 frame_locals_address.
3311 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3312 (ns32k_gdbarch_init): Do not set frame_locals_address.
3313 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3314 (hppa_frame_locals_address): Delete function.
3315 (hppa_gdbarch_init): Do not set frame_args_address, or
3316 frame_locals_address.
3317 * arm-tdep.c (arm_frame_args_address): Delete.
3318 (arm_frame_locals_address): Delete.
3319 (arm_gdbarch_init): Do not set frame_args_address, or
3320 frame_locals_address.
3322 2003-06-09 Andrew Cagney <cagney@redhat.com>
3324 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3325 * gdbarch.h, gdbarch.c: Re-generate.
3326 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3327 * arch-utils.c (frame_num_args_unknown): Delete function.
3328 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3329 (frame_info): Use FRAME_NUM_ARGS_P.
3330 * arm-tdep.c (arm_frame_num_args): Delete function.
3331 (arm_gdbarch_init): Do not set frame_num_args.
3332 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3333 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3334 (hppa_gdbarch_init): Do not set frame_num_args.
3335 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3337 frame_num_args to default frame_num_args_unknown.
3338 * v850-tdep.c (v850_gdbarch_init): Ditto.
3339 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3340 * sh-tdep.c (sh_gdbarch_init): Ditto.
3341 * s390-tdep.c (s390_gdbarch_init): Ditto.
3342 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3343 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3344 * mips-tdep.c (mips_gdbarch_init): Ditto.
3345 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3346 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3348 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3349 * i386-tdep.c (i386_gdbarch_init): Ditto.
3350 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3351 * frv-tdep.c (frv_gdbarch_init): Ditto.
3352 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3353 * cris-tdep.c (cris_gdbarch_init): Ditto.
3354 * avr-tdep.c (avr_gdbarch_init): Ditto.
3355 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3357 2003-06-09 Andrew Cagney <cagney@redhat.com>
3359 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3360 (print_frame_args): Moved to "stack.c".
3361 * stack.c: Include "gdb_assert.h".
3362 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3363 (print_frame_args): Moved from "printcmd.c".
3364 * frame.h (print_frame_args): Delete declaration.
3365 * Makefile.in (stack.o): Update dependencies.
3367 2003-06-08 Andrew Cagney <cagney@redhat.com>
3369 * frame.c (get_prev_frame): Remove reference to
3370 frame_args_address_correct in comments.
3371 * frame-base.c (default_frame_args_address): Delete code
3372 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3373 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3374 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3375 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3376 (vax_frame_args_address_correct): Delete declaration.
3378 2003-06-08 Andrew Cagney <cagney@redhat.com>
3380 * gdbarch.sh (UNWIND_SP): Add.
3381 * gdbarch.h, gdbarch.c: Re-generate.
3382 * frame.c (frame_sp_unwind): New function.
3383 (get_frame_sp): New function.
3384 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3385 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3386 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3388 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3389 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3391 2003-06-08 Andrew Cagney <cagney@redhat.com>
3393 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3396 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3397 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3398 * config/m68k/tm-sun3.h: Update.
3399 * config/m68k/tm-m68klynx.h: Update.
3400 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3402 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3403 trad_frame". Update comments.
3404 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3405 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3406 (trad_frame_register_value, trad_frame_prev_register): Update.
3408 2003-06-08 Andrew Cagney <cagney@redhat.com>
3410 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3411 from GCC's acinclude.m4.
3412 * configure.in: Check for getopt's delcaration.
3413 * aclocal.m4, config.in, configure: Re-generate.
3414 * main.c (error_init): Delete declaration.
3415 * defs.h (error_init): Declare.
3416 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3417 (rs6000_convert_from_func_ptr_addr): Make static.
3418 (_initialize_rs6000_tdep): Add declaration.
3419 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3420 (show_commands, set_verbose, show_history): Delete declaration.
3421 * top.h (set_verbose): Add declaration.
3422 (show_history, set_history, show_commands): Add declaration.
3423 (do_restore_instream_cleanup): Add declaration.
3424 * objc-lang.c (specialcmp): Make static.
3425 (print_object_command): Make static.
3426 (find_objc_msgsend): Make static.
3427 (find_objc_msgcall_submethod_helper): Make static.
3428 (find_objc_msgcall_submethod): Make static.
3429 (_initialize_objc_language): Add declaration.
3430 (find_implementation_from_class): Make static.
3431 (find_implementation): Make static.
3432 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3433 * objc-lang.h (lookup_struct_typedef): Add declaration.
3434 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3435 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3436 (do_restore_user_call_depth): Make static.
3437 (do_restore_instream_cleanup): Delete declaration.
3438 (dont_repeat): Delete declaration.
3439 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3440 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3441 * reggroups.c (_initialize_reggroup): Add declaration.
3442 * cp-support.c (_initialize_cp_support): Add declaration.
3443 * cp-abi.c (_initialize_cp_abi): Add declaration.
3444 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3445 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3446 (_initialize_gnu_v3_abi): Add declaration.
3447 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3448 (_initialize_gnu_v2_abi): Add declaration.
3449 * frame-base.c (_initialize_frame_base): Add declaration.
3450 * doublest.c (floatformat_from_length): Make static.
3451 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3452 * frame.c (create_sentinel_frame): Make static.
3453 (_initialize_frame): Add declaration.
3454 * top.c (do_catch_errors): Make static.
3455 (gdb_rl_operate_and_get_next_completion): Make static.
3456 * typeprint.c: Include "typeprint.h".
3457 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3458 (sentinel_frame_this_id): Make static.
3459 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3460 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3461 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3462 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3463 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3464 * maint.c (maintenance_print_architecture): Make static.
3465 * signals/signals.c (_initialize_signals): Add declaration.
3466 * std-regs.c (_initialize_frame_reg): Add declaration.
3467 * jv-exp.y (push_variable): ISO C definition.
3468 (push_qualified_expression_name): Ditto.
3469 * memattr.c (_initialize_mem): Add declaration.
3470 * remote.c (remote_check_watch_resources): Make static.
3471 (remote_stopped_by_watchpoint): Make static.
3472 (remote_stopped_data_address): Make static.
3473 * d10v-tdep.c (nr_dmap_regs): Make static.
3474 (a0_regnum): Make static.
3475 (d10v_frame_unwind_cache): Make static.
3476 (d10v_frame_p): Make static.
3477 * osabi.c (show_osabi): Make static.
3478 (_initialize_gdb_osabi): Add extern declaration.
3479 * gdbtypes.c (make_qualified_type): Make static.
3480 (safe_parse_type): Make static.
3481 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3482 * macrotab.c (macro_bcache_free): Make static.
3483 * interps.c (interp_set_quiet): Make static.
3484 (interpreter_exec_cmd): Make static.
3485 * stack.h (select_frame_command): New file.
3486 * stack.c: Include "stack.h".
3487 (select_frame_command_wrapper): Delete function.
3488 (select_frame_command): Make global.
3489 * infcall.c: Include "infcall.h".
3490 * linespec.c: Include "linespec.h".
3491 * symfile.c (sections_overlap): Make static.
3492 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3493 * charset.c (_initialize_charset): Add missing prototype.
3494 * regcache.c (init_legacy_regcache_descr): Make static.
3495 (do_regcache_xfree): Make static.
3496 (regcache_xfer_part): Make static.
3497 (_initialize_regcache): Add missing prototype.
3498 * breakpoint.c (parse_breakpoint_sals): Make static.
3499 (breakpoint_sals_to_pc): Make static.
3500 * interps.h (clear_interpreter_hooks): ISO C declaration.
3501 * Makefile.in (stack_h): Define.
3502 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3503 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3505 2003-06-08 Andrew Cagney <cagney@redhat.com>
3507 * Makefile.in (d10v-tdep.o): Update dependencies.
3508 (SFILES): Add trad-frame.c.
3509 (trad_frame_h): Define.
3510 (COMMON_OBS): Add trad-frame.o.
3511 (trad-frame.o): Specify dependencies.
3512 * d10v-tdep.c: Include "trad-frame.h".
3513 (saved_regs_unwinder): Delete function.
3514 (d10v_frame_prev_register): Use trad_frame_prev_register.
3515 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3516 trad_frame", delete "regs" and "prev_sp".
3517 (prologue_find_regs): Use trad-frame.
3518 * trad-frame.h, trad-frame.c: New files.
3520 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3522 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3524 2003-06-07 Adam Fedor <fedor@gnu.org>
3526 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3527 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3528 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3529 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3530 resolve_msgsend_super, resolve_msgsend_super_stret):
3533 2003-06-07 Andrew Cagney <cagney@redhat.com>
3535 * symfile.h: Re-indent, clean up comments.
3537 2003-06-07 Andrew Cagney <cagney@redhat.com>
3539 * inferior.h (deprecated_write_sp): Replace
3540 generic_target_write_sp.
3541 * regcache.c (deprecated_write_sp): Replace
3542 generic_target_write_sp.
3543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3544 * vax-tdep.c (vax_gdbarch_init): Update.
3545 * v850-tdep.c (v850_gdbarch_init): Update.
3546 * sparc-tdep.c (sparc_gdbarch_init): Update.
3547 * sh-tdep.c (sh_gdbarch_init): Update.
3548 * s390-tdep.c (s390_gdbarch_init): Update.
3549 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3550 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3551 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3552 * mcore-tdep.c (mcore_gdbarch_init): Update.
3553 * m68k-tdep.c (m68k_gdbarch_init): Update.
3554 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3555 * ia64-tdep.c (ia64_gdbarch_init): Update.
3556 * h8300-tdep.c (h8300_gdbarch_init): Update.
3557 * frv-tdep.c (frv_gdbarch_init): Update.
3558 * cris-tdep.c (cris_gdbarch_init): Update.
3559 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3561 2003-06-07 Andrew Cagney <cagney@redhat.com>
3563 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3564 Assert that PC_REGNUM is valid.
3565 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3567 2003-06-07 Andrew Cagney <cagney@redhat.com>
3569 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3570 * gdbarch.h, gdbarch.c: Regenerate.
3571 * mn10300-tdep.c: Include "gdb_assert.h".
3572 (mn10300_read_fp): New function.
3573 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3574 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3575 * ia64-tdep.c: Include "gdb_assert.h".
3576 (ia64_read_fp): New function.
3577 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3578 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3579 * regcache.c (generic_target_read_sp): Delete function.
3580 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3581 * inferior.h (generic_target_read_sp): Delete declaration.
3582 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3583 generic_target_read_sp.
3584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3585 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3586 * sh-tdep.c (sh_gdbarch_init): Ditto.
3587 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3588 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3590 2003-06-07 Andrew Cagney <cagney@redhat.com>
3592 * gdbarch.sh: Comment each field of startup_gdbarch.
3593 * gdbarch.h, gdbarch.c: Re-generate.
3595 2003-06-07 Andrew Cagney <cagney@redhat.com>
3597 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3598 * gdbarch.h, gdbarch.c: Re-generate.
3599 * regcache.c: Update comments on read_pc et.al.
3600 (generic_target_read_pc): Delete function.
3601 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3602 * inferior.h (generic_target_read_pc): Delete declaration.
3603 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3604 generic_target_read_pc.
3605 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3606 * sh-tdep.c (sh_gdbarch_init): Ditto.
3607 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3610 2003-06-07 Andrew Cagney <cagney@redhat.com>
3612 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3613 "index" with "special_local_sect". Use strcmp instead of STREQ.
3614 Append period to coments.
3616 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3618 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3619 (elfstab_offset_sections): Likewise.
3620 * gdb-stabs.h (stab_section_info): Likewise.
3621 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3622 * objfiles.c (objfile_relocate): Likewise.
3623 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3624 * remote.c (get_offsets): Likewise.
3625 (remote_cisco_objfile_relocate): Likewise.
3626 * somread.c (som_symfile_offsets): Likewise.
3627 * symfile.c (alloc_section_addr_info): New function.
3628 (build_section_addr_info_from_section_tab): Use it.
3629 (free_section_addr_info): Adjust.
3630 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3631 (syms_from_objfile): Allocate local_addr dynamically.
3632 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3634 (add_symbol_file_command): Allocate sect_opts dynamically.
3635 (reread_symbols): Avoid use of SECT_OFF_MAX.
3636 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3637 (alloc_section_addr_info): Declare it.
3638 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3639 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3641 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3643 2003-06-06 Andrew Cagney <cagney@redhat.com>
3645 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3646 (d10v_frame_unwind_cache): Do not set "return_pc".
3648 2003-06-06 Michael Snyder <msnyder@redhat.com>
3650 * h8300-tdep.c: Make tidy (long lines).
3652 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3654 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3655 to regcache_collect().
3657 2003-06-05 J. Brobecker <brobecker@gnat.com>
3659 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3660 pc_in_sigtramp multiarch method.
3661 (hppa_hpux_som_init_abi): Use it.
3662 (hppa_hpux_elf_init_abi): Likewise.
3663 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3664 macro has been multiarched.
3665 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3666 macro here, as hppa64 isn't multiarched yet.
3668 2003-06-05 Andrew Cagney <cagney@redhat.com>
3670 * Makefile.in (value_h): Add $(frame_h).
3671 * value.h: Include "frame.h".
3672 (struct value): Replace "frame_addr" with "frame_id".
3673 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3674 * values.c (allocate_value): Use VALUE_FRAME_ID.
3675 (value_copy): Use VALUE_FRAME_ID.
3676 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3677 * valops.c (value_assign): Update. Use frame_find_by_id.
3679 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3681 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3684 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3686 * thread-db.c (check_event): For create/death event breakpoints,
3687 loop through all messages to ensure that we read the message
3688 corresponding to the breakpoint we are at.
3690 2003-06-04 Michael Snyder <msnyder@redhat.com>
3692 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3694 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3696 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3697 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3698 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3699 when handling .eh_frame sections.
3701 2003-06-04 J. Brobecker <brobecker@gnat.com>
3703 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3704 prepare_to_proceed procedure instead of the hppa-specific one.
3705 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3707 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3709 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3710 * config.in: Regenerated.
3711 * configure.in: Add test for syscall function and check for
3712 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3713 * configure: Regenerated.
3714 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3716 (kill_lwp): New function that uses tkill syscall or
3717 uses kill, depending on whether threading model is nptl or not.
3718 All callers of kill() changed to use kill_lwp().
3719 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3720 see if all threads have already exited in the nptl model.
3721 (stop_and_resume_callback): New callback function used by the
3722 lin_lwp_wait thread exit handling code.
3723 (stop_wait_callback): Check for threads already having exited and
3724 delete such threads fromt the lwp list when discovered.
3725 (stop_callback): Don't assert retcode of kill call.
3727 Roland McGrath <roland@redhat.com>
3728 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3731 2003-06-03 Richard Henderson <rth@redhat.com>
3733 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3734 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3735 (alpha_sigtramp_frame_prev_register): Likewise.
3736 (alpha_heuristic_frame_prev_register): Likewise.
3737 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3739 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3740 alpha-specific register id names.
3741 (alpha_mdebug_frame_unwind_cache): Likewise.
3742 (alpha_mdebug_frame_prev_register): Likewise.
3744 2003-06-03 Richard Henderson <rth@redhat.com>
3746 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3747 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3748 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3749 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3751 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3752 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3753 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3755 * alpha-linux-tdep.c: Remove unnecessary includes.
3756 * Makefile.in (alpha-linux-tdep.o): Update.
3758 2003-06-03 Richard Henderson <rth@redhat.com>
3760 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3761 (alphabsd_fill_fpreg): Likewise.
3763 2003-06-03 J. Brobecker <brobecker@gnat.com>
3765 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3766 references to struct frame_info fields by calls to the equivalent
3767 accessors. Necessary now that frame_info is opaque.
3769 2003-06-03 J. Brobecker <brobecker@gnat.com>
3771 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3772 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3773 structure, field no longer exists.
3775 2003-06-03 J. Brobecker <brobecker@gnat.com>
3777 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3778 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3780 2003-06-03 J. Brobecker <brobecker@gnat.com>
3782 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3783 references to struct frame_info fields by calls to the equivalent
3784 accessors. Necessary now that frame_info is opaque.
3786 2003-06-03 J. Brobecker <brobecker@gnat.com>
3788 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3789 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3790 structure, field no longer exists.
3792 2003-06-03 Theodore A. Roth <troth@openavr.org>
3794 * remote.c (init_remote_state): Compute sizeof_g_packet by
3795 accumulation of the size of all registers instead of blindly using
3796 DEPRECATED_REGISTER_BYTES.
3798 2003-06-03 Michael Snyder <msnyder@redhat.com>
3800 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3801 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3804 2003-06-03 J. Brobecker <brobecker@gnat.com>
3806 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3807 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3809 2003-06-03 Andrew Cagney <cagney@redhat.com>
3811 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3812 (sparc_convert_to_raw): Delete function.
3813 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3814 register_convert_to_virtual.
3816 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3818 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3819 layer if not dealing with a statically-linked threaded program.
3821 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3823 * solib.c (solib_open): Update comment to reflect actual search order.
3825 2003-06-03 Andrew Cagney <cagney@redhat.com>
3827 * frame.c (get_frame_memory_signed): New function.
3828 (get_frame_memory, get_frame_memory_unsigned): New function.
3829 (get_frame_arch): New function.
3830 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3831 (get_frame_memory, get_frame_unsigned_memory): Declare.
3832 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3833 get_frame_memory_unsigned and get_frame_arch.
3834 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3836 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3838 * MAINTAINERS (write after approval): Add myself.
3840 2003-06-03 Jim Blandy <jimb@redhat.com>
3842 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3843 elements of gregset_t are 64 bits each, but access registers
3844 are still 32 bits, so they're packed two per gregset_t
3845 element. Unpack/pack them properly.
3847 2003-06-02 David Carlton <carlton@bactrian.org>
3849 * linespec.c (find_methods): Break out code into
3850 add_matching_methods and add_constructors.
3851 (add_matching_methods): New.
3852 (add_constructors): Ditto.
3854 2003-06-02 Andrew Cagney <cagney@redhat.com>
3856 * sparc-tdep.c (sparc_print_registers): Delete call to
3857 REGISTER_CONVERTIBLE.
3858 (sparc_gdbarch_init): Do not set register_convertible.
3859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3860 * frv-tdep.c (frv_gdbarch_init): Ditto.
3861 * cris-tdep.c (cris_gdbarch_init): Ditto.
3863 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3865 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3866 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3867 (syms_from_objfile): Ditto.
3869 2003-06-03 Andreas Schwab <schwab@suse.de>
3871 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3872 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3874 2003-06-02 Richard Henderson <rth@redhat.com>
3876 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3877 a member of all_reggroup.
3879 2003-06-02 Richard Henderson <rth@redhat.com>
3881 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3882 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3883 (alpha_lds, alpha_sts): New.
3884 (alpha_convert_register_p): Change from _register_convertible.
3885 (alpha_register_to_value): Change from _convert_to_virtual;
3886 restructure and fail for type sizes other than 4 or 8.
3887 (alpha_value_to_register): Similarly.
3888 (alpha_extract_return_value): Use alpha_sts.
3889 (alpha_store_return_value): Use alpha_lds.
3890 (alpha_gdbarch_init): Update hooks.
3892 2003-06-02 Richard Henderson <rth@redhat.com>
3894 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3896 (alpha_sigtramp_register_address): Likewise.
3898 2003-06-02 Richard Henderson <rth@redhat.com>
3900 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3901 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3902 * alpha-tdep.h: Declare them.
3904 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3905 Remove zerobuf. Don't error on UNIQUE.
3906 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3907 (ALPHA_REGSET_UNIQUE): Provide default.
3908 (supply_gregset): Use alpha_supply_int_regs.
3909 (fill_gregset): Use alpha_fill_int_regs.
3910 (supply_fpregset): Use alpha_supply_fp_regs.
3911 (fill_fpregset): Use alpha_fill_fp_regs.
3912 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3913 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3914 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3915 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3916 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3917 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3919 2003-06-02 Richard Henderson <rth@redhat.com>
3921 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3923 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3924 (alpha_store_return_value): Likewise.
3926 2003-06-02 David Carlton <carlton@math.stanford.edu>
3928 * block.c (contained_in): Add 'const' to arguments.
3929 (block_function): Ditto.
3930 * block.h: Update declarations for block_function and
3933 2003-06-02 David Carlton <carlton@math.stanford.edu>
3935 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3936 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3937 * p-valprint.c (pascal_val_print): Ditto.
3938 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3940 2003-06-02 Richard Henderson <rth@redhat.com>
3942 * alpha-tdep.c (alpha_push_dummy_call): Use
3943 builtin_type_ieee_double_little instead of builtin_type_double.
3945 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3946 sign-extension of 32-bit values.
3947 (alpha_store_return_value): Similarly.
3949 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3950 (alpha_extract_return_value): Likewise.
3951 (alpha_store_return_value): Likewise.
3953 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3954 (alpha_store_return_value): Error on IEEE Quad floats.
3956 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3957 (alpha_extract_struct_value_address): Likewise.
3958 (alpha_store_return_value): Likewise.
3959 (alpha_store_struct_return): Remove.
3960 (alpha_gdbarch_init): Update hook registration to match.
3962 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3963 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3964 macros where appropriate.
3965 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3966 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3968 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3969 for SP, GP; void_func_ptr for PC; non-language-specific types
3971 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3973 2003-06-02 Richard Henderson <rth@redhat.com>
3975 * top.h (lim_at_start): Declare.
3976 * main.c (captured_main): Set it.
3977 * top.c (lim_at_start): Define.
3978 (command_loop): Use it instead of &environ.
3979 * event-top.c (command_handler): Likewise.
3981 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3983 * mipsnbsd-tdep.c: Update copyright years.
3984 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3986 2003-06-01 Richard Henderson <rth@redhat.com>
3988 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3989 (alpha-linux-tdep.o): Update dependencies.
3990 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3991 * alpha-mdebug-tdep.c: Remove unneeded includes.
3993 2003-06-01 Richard Henderson <rth@redhat.com>
3995 * alpha-tdep.c (alpha_register_reggroup_p): New.
3996 (alpha_gdbarch_init): Register it.
3998 2003-06-02 Andrew Cagney <cagney@redhat.com>
4000 * dwarfread.c: Eliminate "register"
4001 (decode_die_type): Eliminate assignment within "if".
4002 (struct_type, decode_array_element_type): Ditto.
4003 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4004 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4005 (decode_modified_type, completedieinfo): Ditto.
4006 * block.c: Eliminate "register".
4007 (blockvector_for_pc_sect): Eliminate assignment within "if".
4008 * cp-support.h (struct symbol): Opaque declaration.
4009 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4011 2003-06-01 Richard Henderson <rth@redhat.com>
4013 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4014 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4016 2003-06-01 Adam Fedor <fedor@gnu.org>
4018 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4019 * gdbarch.[ch]: Regenerate.
4020 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4021 (hppa_gdbarch_init): Set it in the gdbarch vector.
4022 * i386-tdep.c (i386_fetch_pointer_argument): New
4023 (i386_gdbarch_init): Set it into gdbarch.
4024 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4025 (rs6000_gdbarch_init): Set it in gdbarch.
4026 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4027 (sparc_gdbarch_init): Set it in gdbarch.
4029 2003-06-01 Andrew Cagney <cagney@redhat.com>
4031 * defs.h (extract_address): Delete declaration.
4032 * findvar.c (extract_address): Delete function.
4033 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4034 extract_address with the inline equivalent,
4035 extract_unsigned_integer.
4036 (xstormy16_extract_struct_value_address): Ditto.
4037 (xstormy16_pointer_to_address): Ditto.
4038 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4039 * v850-tdep.c (v850_push_arguments): Ditto.
4040 (v850_extract_return_value): Ditto.
4041 (v850_extract_struct_value_address): Ditto.
4042 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4043 (sparcnbsd_get_longjmp_target_64): Ditto.
4044 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4045 (get_longjmp_target): Ditto.
4046 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4047 (sh64_extract_struct_value_address): Ditto.
4048 (sh_push_arguments): Ditto.
4049 (sh64_push_arguments): Ditto.
4050 * remote-vxsparc.c (vx_read_register): Ditto.
4051 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4052 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4053 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4054 * mipsv4-nat.c (get_longjmp_target): Ditto.
4055 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4056 * mips-nat.c (get_longjmp_target): Ditto.
4057 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4058 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4059 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4060 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4061 * irix5-nat.c (get_longjmp_target): Ditto.
4062 * irix4-nat.c (get_longjmp_target): Ditto.
4063 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4064 (ia64_push_arguments): Ditto.
4065 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4066 * h8300-tdep.c (h8300_push_arguments): Ditto.
4067 (h8300_store_return_value): Ditto.
4068 (h8300_extract_struct_value_address): Ditto.
4069 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4070 (frv_push_arguments): Ditto.
4071 * avr-tdep.c (avr_pointer_to_address): Ditto.
4072 (avr_push_arguments): Ditto.
4073 * arm-tdep.c (arm_push_dummy_call): Ditto.
4074 (arm_get_longjmp_target): Ditto.
4075 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4076 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4077 (alpha_get_longjmp_target): Ditto.
4079 * solib-irix.c (extract_mips_address): Inline extract_address,
4080 replacing it with extract_signed_integer.
4081 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4082 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4083 (first_link_map_member, open_symbol_file_object): Ditto.
4084 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4085 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4086 (LM_NEXT, LM_NAME): Ditto.
4088 2003-06-01 Richard Henderson <rth@redhat.com>
4090 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4091 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4092 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4093 (alpha_cannot_store_register): Likewise.
4094 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4095 * alpha-nat.c (supply_gregset): Likewise.
4096 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4098 2003-06-01 Andrew Cagney <cagney@redhat.com>
4100 * infcall.c (call_function_by_hand): Update comment on
4101 DEPRECATED_DUMMY_WRITE_SP.
4103 * mips-tdep.c (mips_gdbarch_init): Do not set
4104 deprecated_dummy_write_sp.
4105 (mips_eabi_push_dummy_call): Set the SP register.
4106 (mips_o64_push_dummy_call): Set the SP register.
4107 (mips_o32_push_dummy_call): Set the SP register.
4108 (mips_n32n64_push_dummy_call): Set the SP register.
4110 2003-06-01 Richard Henderson <rth@redhat.com>
4112 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4113 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4114 (supply_gregset): Likewise.
4115 * alpha-tdep.c (alpha_store_return_value): Likewise.
4116 (alpha_get_longjmp_target): Likewise.
4117 (alpha_register_name): Constify array.
4118 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4119 deprecated_register_size, deprecated_register_bytes,
4120 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4121 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4122 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4124 2003-06-01 Richard Henderson <rth@redhat.com>
4126 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4127 from arg_reg_buffer to regcache to avoid double conversion.
4129 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4131 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4133 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4134 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4136 2003-06-01 Richard Henderson <rth@redhat.com>
4138 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4139 (decode_frame_entry): Set it. Skip FDE augmentation.
4141 2003-06-01 Richard Henderson <rth@redhat.com>
4143 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4144 not overlapping PC_REGNUM.
4146 2003-06-01 Richard Henderson <rth@redhat.com>
4148 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4149 alpha_push_arguments. Don't dump argument register data to
4150 the target stack. Fix float and 128-bit long double semantics.
4151 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4152 (alpha_fix_call_dummy): Remove.
4153 (alpha_call_dummy_words): Remove.
4154 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4156 2003-06-01 Richard Henderson <rth@redhat.com>
4158 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4160 2003-06-01 Andrew Cagney <cagney@redhat.com>
4162 * mips-tdep.c (is_mips16_addr): New function.
4163 (make_mips16_addr, unmake_mips16_addr): New functions.
4164 (pc_is_mips16, mips_fetch_instruction): Use.
4165 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4166 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4167 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4168 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4170 * config/mips/tm-mips.h: Update copyright.
4171 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4172 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4173 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4174 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4175 (TM_PRINT_INSN_MACH): Delete.
4176 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4178 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4179 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4180 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4181 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4182 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4183 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4184 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4185 mips*-*-riscos* and mips*-*-sysv* onto mips.
4186 * config/mips/mips64.mt: New file.
4187 * config/mips/mips.mt: New file.
4188 * config/mips/littlemips.mt: Delete file.
4189 * config/mips/decstation.mt: Delete file.
4190 * config/mips/vr4300el.mt: Delete file.
4191 * config/mips/vr5000el.mt: Delete file.
4192 * config/mips/vr5000.mt: Delete file.
4193 * config/mips/vr4100.mt: Delete file.
4194 * config/mips/vr4xxxel.mt: Delete file.
4195 * config/mips/vr4300.mt: Delete file.
4196 * config/mips/vr4xxx.mt: Delete file.
4197 * config/mips/bigmips.mt: Delete file.
4198 * config/mips/bigmips64.mt: Delete file.
4199 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4200 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4201 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4202 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4203 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4205 * config/mips/tm-irix3.h: Ditto.
4206 * config/mips/tm-mipsv4.h: Ditto.
4207 * config/mips/tm-embed.h: Ditto.
4208 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4210 * config/mips/tm-vr5000el.h: Delete file.
4211 * config/mips/tm-tx39l.h: Delete file.
4212 * config/mips/tm-vr4300el.h: Delete file.
4213 * config/mips/tm-vr4xxxel.h: Delete file.
4214 * config/mips/tm-vr4300.h: Delete file.
4215 * config/mips/tm-vr4100.h: Delete file.
4216 * config/mips/tm-vr4xxx.h: Delete file.
4217 * config/mips/tm-vr5000.h: Delete file.
4218 * config/mips/tm-embedl64.h: Delete file.
4219 * config/mips/tm-embedl.h: Delete file.
4220 * config/mips/tm-embed64.h: Delete file.
4221 * config/mips/tm-bigmips64.h: Delete file.
4222 * config/mips/tm-bigmips.h: Delete file.
4224 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4227 * shnbsd-nat.c: Include "sh-tdep.h".
4229 From Richard Henderson <rth@redhat.com>:
4230 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4232 2003-05-31 Andrew Cagney <cagney@redhat.com>
4234 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4235 forward declaration.
4236 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4237 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4238 (mips_find_saved_regs): Use set_reg_offset.
4239 (mips_frame_init_saved_regs): Delete function.
4240 (mips_pop_frame): Call mips_find_saved_regs instead of
4241 DEPRECATED_FRAME_INIT_SAVED_REGS.
4243 2003-05-31 Andrew Cagney <cagney@redhat.com>
4245 * mips-tdep.c (mips_gdbarch_init): Do not set
4246 deprecated_max_register_raw_size, register_virtual_size, and
4247 deprecated_max_register_virtual_size.
4249 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4251 * i386-tdep.c: Include "dwarf2-frame.h".
4252 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4253 * Makefile.in (i386-tdep.o): Update dependencies.
4255 * dwarf2-frame.c, dwarf2-frame.h: New files.
4256 * Makefile.in (SFILES): Add dwarf2-frame.c.
4257 (dwarf2_frame_h): Define.
4258 (COMMON_OBS): Add dwarf2-frame.o.
4259 (dwarf2-frame.o): Add dependencies.
4261 2003-05-31 Andreas Jaeger <aj@suse.de>
4263 * x86-64-linux-nat.c: Fix comment.
4265 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4267 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4270 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4271 have a sigcontext_addr handler.
4272 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4273 sigcontext_addr handler.
4275 2003-05-31 Andrew Cagney <cagney@redhat.com>
4277 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4278 (print_fp_register_row): Replace do_fp_register_row.
4279 (mips_print_fp_register): Add "file" and "frame" parameters.
4280 (mips_print_register): Add "file" and "frame" parameters.
4281 (mips_print_registers_info): Replace mips_do_registers_info.
4282 (mips_gdbarch_init): Set print_registers_info instead of
4283 deprecated_do_registers_info.
4284 (mips_read_fp_register_single): Add "frame" parameter.
4285 (mips_read_fp_register_double): Add "frame" parameter.
4287 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4289 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4290 Fixes a bug where GDB would print the wrong register names for
4291 targets without SSE.
4293 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4294 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4297 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4298 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4299 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4302 From Michal Ludvig <mludvig@suse.cz>:
4303 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4305 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4306 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4307 I386_ST0_REGNUM): Move here from...
4308 * i386-tdep.c: ... here.
4309 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4310 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4311 registers if possible.
4312 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4313 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4315 (i386bsd_sc_reg_offset): New variable.
4316 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4317 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4319 (i386fbsd_sc_reg_offset): New variable.
4320 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4322 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4324 (i386fbsd4_sc_reg_offset): New variable.
4325 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4326 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4328 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4329 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4330 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4332 (i386nbsd_sc_reg_offset): New variable.
4333 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4334 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4336 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4338 (i386obsd_sc_reg_offset): New variable.
4339 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4340 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4342 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4343 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4344 for frame pointer offset in `struct sigcontext'.
4346 2003-05-31 Andrew Cagney <cagney@redhat.com>
4348 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4349 architecture methods call_dummy_words, sizeof_call_dummy_words,
4350 push_return_address, store_struct_return, and fix_call_dummy. Set
4351 push_dummy_call instead of deprecated_push_arguments.
4352 (mips_store_struct_return): Delete function.
4353 (mips_fix_call_dummy): Delete function.
4354 (mips_push_return_address): Delete function.
4355 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4356 RA_REGNUM and T9_REGNUM.
4357 (mips_n32n64_push_dummy_call): Ditto for
4358 mips_n32n64_push_arguments.
4359 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4360 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4362 2003-05-31 Andrew Cagney <cagney@redhat.com>
4364 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4365 "dummy_addr" to "bp_addr".
4366 * infcall.c (call_function_by_hand): Pass "funaddr" to
4367 gdbarch_push_dummy_call.
4368 * gdbarch.h, gdbarch.c: Re-generate.
4369 * i386-tdep.c (i386_push_dummy_call): Update.
4370 * arm-tdep.c (arm_push_dummy_call): Update.
4371 * d10v-tdep.c (d10v_push_dummy_call): Update.
4373 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4375 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4376 variable declarations.
4377 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4378 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4379 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4380 x86_64_init_frame_pc, x86_64_init_frame_pc,
4381 x86_64_function_has_prologue): Remove prototypes.
4382 (X86_64_NUM_GREGS): New define.
4383 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4384 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4385 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4386 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4387 XMM1_REGNUM): Remove defines.
4388 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4389 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4390 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4391 X86_64_XMM1_REGNUM): New defines.
4392 (struct x86_64_register_info): Renamed from `struct
4393 register_info'. Remove `size' member.
4394 (x86_64_register_info_table): Remove variable.
4395 (x86_64_register_info): New variable.
4396 (X86_64_NUM_REGS): New define.
4397 (X86_64_NUM_GREGS): Remove define.
4398 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4399 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4401 (x86_54_dwarf2_reg_to_regnum): Remove function.
4402 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4403 (x86_64_dwarf_reg_to_regnum): New function.
4404 (x86_64_register_name): Rewrite.
4405 (x86_64_register_raw_size): Remove function.
4406 (x86_64_register_byte_table): Remove variable.
4407 (x86_64_register_byte): Remove function.
4408 (x86_64_register_virtual_type): Remove function.
4409 (x86_64_register_type): New function.
4410 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4411 x86_64_register_convert_to_raw): Remove functions.
4412 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4413 (x86_64_use_struct_convention): Make static. Adjust for renamed
4415 (x86_64_frame_init_saved_regs): Remove function.
4416 (x86_64_push_arguments): Make static. Change to accept a regcache
4418 (x86_64_store_return_value, x86_64_extract_return_value): Make
4419 static. Rewrite based on i386 counterparts.
4420 (x86_64_push_dummy_call): New function.
4421 (X86_64_NUM_SAVED_REGS): New define.
4422 (x86_64_register_number): Remove function.
4423 (x86_64_store_struct_return): Remove function.
4424 (x86_64_frameless_function_invocation,
4425 x86_64_function_has_prologue): Remove functions.
4426 (PROLOG_BUFSIZE): Remove define.
4427 (struct x86_64_frame_cache): New structure.
4428 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4429 x86_64_frame_cache, x86_64_frame_this_id,
4430 x86_64_frame_prev_register, x86_64_frame_p,
4431 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4432 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4434 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4436 (x86_64_skip_prologue): Rewrite in terms of
4437 x86_64_analyze_prologue.
4438 (x86_64_frame_base_address): New function.
4439 (x86_64_frame_base): New variable.
4440 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4441 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4442 set deprecated_fp_regnum, deprecated_register_size,
4443 deprecated_register_bytes, register_raw_size, register_byte,
4444 register_virtual_type, register_convertiable,
4445 register_convert_to_virtual, convert_to_raw,
4446 deprecated_get_saved_register, deprecated_target_read_fp,
4447 deprecated_push_arguments, deprecated_push_return_address,
4448 deprecated_pop_frame, deprecated_store_struct_return,
4449 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4450 frameless_function_invocation, deprecated_frame_saved_pc,
4451 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4452 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4453 deprecated_init_frame_pc and virtual_frame_pointer. Call
4454 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4455 and x86_64_frame_p. Call frame_base_set_default to register
4457 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4458 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4459 (_initialize_x86_64_tdep): Remove function.
4460 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4461 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4462 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4464 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4465 (x86_64_linux_sigcontext_addr): Rewrite.
4466 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4467 x86_64_linux_frame_saved_pc): Remove functions.
4468 (x86_64_linux_pc_in_sigtramp): Renamed from
4469 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4471 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4473 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4474 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4475 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4476 (x86_64_regmap): Rename to regmap.
4477 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4479 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4481 (x86_64_fxsave_offset): Remove function.
4482 (supply_fpregset): Simply call x86_64_supply_fxsave.
4483 (fill_fpregset): Simply call x86_64_fill_fxsave.
4484 (fetch_inferior_registers, store_inferior_registers): Avoid
4485 asignment in if-statement.
4486 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4487 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4488 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4489 (fetch_core_registers): Remove function.
4490 (linux_elf_core_fns): Remove.
4491 (offsetoff): Don't define.
4492 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4493 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4494 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4496 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4497 protection against multiple includes instead of NM_X86_64_h. Add
4498 various comments. Include "config/nm-linux.h". Don't include
4500 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4501 GET_THREAD_SIGNALS): Remove defines.
4502 (x86_64_register_u_addr, kernel_u_size,
4503 lin_thread_get_thread_signals): Remove prototypes.
4504 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4505 [HAVE_LINK_H]: Don't include "solib.h".
4506 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4507 * config/i386/tm-x86-64linux.h: Fix comments.
4508 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4509 x86-64-tdep.o): Update dependencies.
4511 2003-05-30 Andrew Cagney <cagney@redhat.com>
4513 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4514 Change parameter type to a "struct regcache *".
4516 * gdbarch.sh: Regardless of the multi-arch level, always define
4517 the macro when not already defined.
4518 * gdbarch.h, gdbarch.c: Re-generate.
4520 2003-05-30 Richard Henderson <rth@redhat.com>
4522 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4523 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4524 (alpha_mdebug_frame_this_id): Likewise.
4525 (alpha_mdebug_frame_prev_register): Likewise.
4526 (alpha_mdebug_frame_base_address): Likewise.
4527 (alpha_mdebug_frame_locals_address): Likewise.
4528 (alpha_mdebug_frame_args_address): Likewise.
4529 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4530 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4531 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4533 (alpha_heuristic_frame_this_id): Make static.
4534 (alpha_heuristic_frame_prev_register): Likewise.
4535 (alpha_heuristic_frame_base_address): Likewise.
4536 * alpha-tdep.h: Update.
4538 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4540 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4541 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4543 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4544 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4545 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4546 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4547 I386_ST0_REGNUM): New defines.
4548 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4549 codestream_get): Remove define.
4550 (codestream_next_addr, condestream_addr, condestream_buf,
4551 codestream_off, codestream_cnt): Remove variables.
4552 (codestream_fill, codestream_seek, codestream_read): Remove
4554 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4556 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4557 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4558 i386_frame_saved_pc, i386_saved_pc_after_call,
4559 i386_frame_num_args, i386_frame_init_saved_regs,
4560 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4561 i386_push_arguments): Remove functions.
4562 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4563 functionality. Use i386_analyze_prologue instead of
4564 i386_get_frame_setup.
4565 (I386_NUM_SAVED_REGS): New define.
4566 (struct i386_frame_cache): New structure.
4567 (i386_alloc_frame_cache, i386_analyze_struct_return,
4568 i386_skip_probe, i386_analyze_frame_setup,
4569 i386_analyze_register_saves, i386_analyze_prologue,
4570 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4571 i386_frame_prev_register, i386_sigtramp_frame_cache,
4572 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4573 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4574 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4576 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4578 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4579 I386_EAX_REGNUM and I386_EDX_REGNUM.
4580 (i386_extract_return_value, i386_store_return_value): Use
4581 I386_ST0_REGNUM where appropriate.
4582 (i386_extract_struct_value_address): Rewrite to use extract_address.
4583 (i386_svr4_pc_in_sigtramp): Add comment.
4584 (i386_svr4_sigcontext_addr): Rewrite.
4585 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4587 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4588 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4589 of new defines. Set push_dummy_call, don't set
4590 deprecated_push_arguments, deprecated_push_return_address,
4591 deprecated_pop_frame. Don't set parm_boundary. Don't set
4592 deprecated_frame_chain, deprecated_frame_saved_pc,
4593 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4594 save_dummy_frame_tos, unwind_pc. Call
4595 frame_unwind_append_predicate and frame_base_set_default. Don't
4596 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4597 Don't set frameless_function_invocation. Don't set
4598 deprecated_register_bytes, deprecated_register_size,
4599 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4600 * i386-linux-tdep.c: Fix formatting in some comments.
4601 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4602 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4603 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4604 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4605 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4606 redundant parentheses.
4607 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4608 (i386_linux_sigcontext_addr): Use it. Rewrite.
4609 (find_minsym_and_objfile): Change name of second argument.
4610 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4611 changed. Use frame_pc_unwind instead of
4612 DEPRECATED_SAVED_PC_AFTER_CALL.
4613 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4614 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4615 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4617 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4619 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4620 (_initialize_i386_cygwin_tdep): New prototype.
4621 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4622 deprecated_frame_chain_valid.
4623 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4624 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4625 Rely on the SVR4 defaults.
4626 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4627 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4629 2003-05-30 Andrew Cagney <cagney@redhat.com>
4631 * infcall.c (call_function_by_hand): Always call
4632 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4634 2003-05-30 Richard Henderson <rth@redhat.com>
4636 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4639 2003-05-29 Jim Blandy <jimb@redhat.com>
4641 Use gdbarch methods for solib stuff on PowerPC Linux.
4642 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4643 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4645 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4646 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4647 giving the same effect as the #definitions above.
4649 2003-05-29 Adam Fedor <fedor@gnu.org>
4651 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4652 (find_implementation_from_class): Replace it with the standard
4653 case i.e. do nothing.
4655 2003-05-29 Richard Henderson <rth@redhat.com>
4657 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4658 (alpha_linux_sigtramp_offset): Use it. Make static.
4659 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4660 update for new frame model.
4661 * alpha-mdebug-tdep.c: New file.
4662 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4663 (alpha_osf1_init_abi): Install it.
4664 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4665 (linked_proc_desc_table): Remove.
4666 (alpha_frame_past_sigtramp_frame): Remove.
4667 (alpha_dynamic_sigtramp_offset): Remove.
4668 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4669 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4670 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4671 (push_sigtramp_desc): Remove.
4672 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4673 (alpha_cannot_store_register): Likewise.
4674 (alpha_sigcontext_addr): Remove.
4675 (alpha_find_saved_regs): Remove.
4676 (alpha_frame_init_saved_regs): Remove.
4677 (alpha_init_frame_pc_first): Remove.
4678 (read_next_frame_reg): Remove.
4679 (alpha_frame_saved_pc): Remove.
4680 (alpha_saved_pc_after_call): Remove.
4681 (temp_proc_desc, temp_saved_regs): Remove.
4682 (alpha_about_to_return): Remove.
4683 (cached_proc_desc): Remove.
4684 (alpha_frame_chain): Remove.
4685 (alpha_print_extra_frame_info): Remove.
4686 (alpha_init_extra_frame_info): Remove.
4687 (alpha_frame_locals_address): Remove.
4688 (alpha_frame_args_address): Remove.
4689 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4690 (alpha_push_dummy_frame): Remove.
4691 (alpha_pop_frame): Remove.
4692 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4693 (alpha_read_insn): New.
4694 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4695 for different insn encodings.
4696 (alpha_in_lenient_prologue): Remove.
4697 (struct alpha_sigtramp_unwind_cache): New.
4698 (alpha_sigtramp_frame_unwind_cache): New.
4699 (alpha_sigtramp_register_address): New.
4700 (alpha_sigtramp_frame_this_id): New.
4701 (alpha_sigtramp_frame_prev_register): New.
4702 (alpha_sigtramp_frame_unwind): New.
4703 (alpha_sigtramp_frame_p): New.
4704 (struct alpha_heuristic_unwind_cache): New.
4705 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4706 don't count nop insns that occur between functions.
4707 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4708 heuristic_proc_desc, but without the mdebug wrapping.
4709 (alpha_heuristic_frame_this_id): New.
4710 (alpha_heuristic_frame_prev_register): New.
4711 (alpha_heuristic_frame_unwind): New.
4712 (alpha_heuristic_frame_p): New.
4713 (alpha_heuristic_frame_base_address): New.
4714 (alpha_heuristic_frame_base): New.
4715 (alpha_unwind_dummy_id): New.
4716 (alpha_unwind_pc): New.
4717 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4718 frame related deprecated initializations; install replacements.
4719 (alpha_dump_tdep): Remove.
4720 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4721 (alpha_read_insn, alpha_after_prologue,
4722 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4723 alpha_heuristic_frame_prev_register,
4724 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4725 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4726 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4727 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4729 2003-05-29 Andrew Cagney <cagney@redhat.com>
4731 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4732 dependant on the availability of ASSERT_FUNCTION.
4733 (ASSERT_FUNCTION): Do not define when there is no function name.
4735 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4737 From Jimi X <jimix@watson.ibm.com>:
4738 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4740 2003-05-28 Jim Blandy <jimb@redhat.com>
4742 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4743 argument to ptrace to int; the system headers should give it the
4744 right type, and pointers don't fit in ints on powerpc64-*-*.
4746 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4748 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4751 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4753 * stabsread.c (dbx_lookup_type): Make static.
4755 (add_undefined_type): Ditto.
4756 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4759 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4761 * hpread.c (hpread_has_name): Make static.
4762 (hpread_psymtab_to_symtab): Ditto.
4763 (file_exists): Ditto.
4764 (hpread_call_pxdb): Ditto.
4765 (hpread_pxdb_needed): Ditto.
4766 (hpread_quick_traverse): Ditto.
4767 (hpread_get_header): Ditto.
4768 (hpread_get_lntt): Ditto.
4769 (hpread_get_slt): Ditto.
4772 2003-05-25 Andreas Schwab <schwab@suse.de>
4774 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4775 stack_align and deprecated_extra_stack_alignment_needed.
4776 (m68k_stack_align): Delete.
4778 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4779 (m68k_register_virtual_size): Likewise.
4780 (altos_skip_prologue): Remove obsolete function.
4781 (isi_frame_num_args): Likewise.
4782 (news_frame_num_args): Likewise.
4783 (m68k_fix_call_dummy): Make static.
4784 (m68k_push_dummy_frame): Likewise.
4785 (m68k_pop_frame): Likewise.
4786 (m68k_skip_prologue): Likewise.
4787 (m68k_frame_init_saved_regs): Likewise.
4788 (m68k_saved_pc_after_call): Likewise.
4789 (m68k_get_longjmp_target): Make multi-arch.
4790 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4791 structure. Register m68k_get_longjmp_target if enabled.
4792 * m68k-tdep.h (struct gdbarch_tdep): Define.
4793 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4795 * Makefile.in (config.status): Also depend on configure.tgt
4797 (m68klinux-tdep.o): Update dependencies.
4798 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4799 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4800 (M68K_LINUX_JB_PC): Define.
4801 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4802 and take additional parameter.
4803 (m68k_linux_sigtramp_saved_pc): Update.
4804 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4805 m68k_linux_pc_in_sigtramp, in_plt_section,
4806 find_solib_trampoline_target.
4807 * config/m68k/tm-linux.h: Don't include any tm headers.
4808 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4809 (JB_ELEMENT_SIZE): Likewise.
4811 (GET_LONGJMP_TARGET): Likewise.
4812 (IN_SIGTRAMP): Likewise.
4813 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4815 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4817 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4818 (sparc32_push_arguments): Re-implement by calling
4819 sparc32_do_push_arguments.
4821 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4823 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4824 SPARC_O1_REGNUM): New defines.
4825 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4826 (sparc32_store_return_value): New function.
4827 (sparc_extract_struct_value_address): Rewrite to operate on a
4829 (sparc_gdbarch_init): Don't set
4830 deprecated_extract_struct_value_address. Set
4831 extract_struct_value_address instead. Don't set
4832 deprecated_extract_return_value and deprecated_store_return_value
4833 for 32-bit targets. Set extract_return_value and
4834 store_return_value instead.
4835 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4836 DEPRECTAED_EXTRACT_RETURN_VALUE,
4837 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4838 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4839 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4840 (sparc_store_return_value): Remove prototype.
4841 (sparc32_store_return_value): New prototype.
4842 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4845 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4847 * sparcnbsd-tdep.c: Include "gdb_string.h".
4849 2003-05-23 Andrew Cagney <cagney@redhat.com>
4851 * p-valprint.c (pascal_val_print): Replace extract_address with
4852 the inline equivalent extract_unsigned_integer.
4853 * jv-valprint.c (java_value_print): Ditto.
4854 * ada-valprint.c (ada_val_print_1): Ditto.
4855 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4857 2003-05-23 Theodore A. Roth <troth@openavr.org>
4859 * blockframe.c (frameless_look_for_prologue): Remove unused
4860 after_prologue variable.
4862 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4864 * blockframe.c (get_pc_function_start): Rewrite to avoid
4865 asignments in if-statements.
4867 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4869 Committed by Elena Zannoni <ezannoni@redhat.com>.
4870 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4871 files, don't relocate absolute symbols (and do use mst_abs).
4873 2003-05-23 Andrew Cagney <cagney@redhat.com>
4875 * objc-lang.c: Include "gdb_assert.h".
4876 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4877 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4878 (gdb_check, gdb_check_fatal): Delete functions.
4879 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4881 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4882 * Makefile.in (objc-lang.o): Update dependencies.
4884 2003-05-22 Ian Lance Taylor <ian@airs.com>
4886 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4887 with fprintf_filtered, not fprintf_unfiltered.
4889 2003-05-22 Andrew Cagney <cagney@redhat.com>
4891 * stack.c (frame_info): Inline extract_address, replacing it with
4892 extract_unsigned_integer.
4893 * findvar.c (unsigned_pointer_to_address): Ditto.
4894 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4895 * dwarf2expr.c (dwarf2_read_address): Ditto.
4896 * frame.c (frame_pc_unwind): Update comment.
4897 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4899 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4901 * infptrace.c (detach): Call print_sys_errmsg rather than
4902 perror_with_name to issue warning message when errno is non-zero
4903 after calling ptrace detach.
4905 2003-05-21 J. Brobecker <brobecker@gnat.com>
4907 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4908 macro definitions from here...
4909 * hppa-tdep.c: ...to there.
4911 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4913 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4914 register_ptrace_addr(). Fix all callers.
4916 2003-05-21 Andreas Schwab <schwab@suse.de>
4918 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4920 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4922 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4923 (_initialize_m68k_linux_tdep): New function.
4924 (m68k_linux_frame_saved_pc): Make static.
4925 (m68k_linux_extract_return_value): Likewise.
4926 (m68k_linux_store_return_value): Likewise.
4927 (m68k_linux_extract_struct_value_address): Likewise.
4928 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4930 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4931 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4932 (DEPRECATED_FRAME_SAVED_PC): Remove.
4934 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4936 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4937 regset numbering rather than our own.
4939 2003-05-19 David Carlton <carlton@bactrian.org>
4941 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4943 2003-05-19 David Carlton <carlton@bactrian.org>
4945 Partial fix for PR c++/827.
4946 * cp-support.h: Include symtab.h.
4947 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4948 * cp-namespace.c: Update contributors.
4949 (cp_lookup_symbol_nonlocal): New.
4950 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4951 (lookup_symbol_file): Ditto.
4952 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4953 * block.h: Declare block_scope, block_using, block_global_block.
4954 * block.c (block_scope): New.
4955 (block_using, block_global_block): Ditto.
4956 * Makefile.in (cp_support_h): Depend on symtab_h.
4957 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4959 2003-05-19 David Carlton <carlton@bactrian.org>
4961 * language.h (struct language_defn): Add 'la_value_of_this'
4962 and 'la_lookup_symbol_nonlocal' members.
4963 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4964 lookup_symbol_static, lookup_symbol_global,
4965 lookup_symbol_aux_block.
4966 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4967 if we should search fields of this and how to do static/global
4969 (lookup_symbol_aux_block): Make extern.
4970 (basic_lookup_symbol_nonlocal): New.
4971 (lookup_symbol_static, lookup_symbol_global): Ditto.
4972 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4973 'la_lookup_symbol_nonlocal' members.
4974 * c-lang.c (c_language_defn, cplus_language_defn)
4975 (asm_language_defn, minimal_language_defn): Ditto.
4976 * jv-lang.c (java_language_defn): Ditto.
4977 * language.c (unknown_language_defn, auto_language_defn)
4978 (local_language_defn): Ditto.
4979 * m2-lang.c (m2_language_defn): Ditto.
4980 * objc-lang.c (objc_language_defn): Ditto.
4981 * scm-lang.c (scm_language_defn): Ditto.
4982 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4983 * p-lang.c (pascal_language_defn): Ditto for both.
4984 * Makefile.in (f-lang.o): Depend on value_h.
4987 2003-05-19 David Carlton <carlton@bactrian.org>
4989 * block.h: Declare block_static_block.
4990 * block.c (block_static_block): New.
4991 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4992 lookup_symbol_aux_local, calling block_static_block instead.
4993 (lookup_symbol_aux_local): Delete 'static_block' argument.
4995 2003-05-19 David Carlton <carlton@bactrian.org>
4997 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4999 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5001 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5002 register numbers mapping.
5004 2003-05-18 Adam Fedor <fedor@gnu.org>
5006 * symtab.c (completion_list_objc_symbol): New function.
5007 (make_symbol_completion_list): Use it to add ObjC symbols
5008 when looking though the list.
5009 (language_search_unquoted_string): New function.
5010 (make_file_symbol_completion_list): Use it.
5012 2003-05-18 Andreas Schwab <schwab@suse.de>
5014 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5016 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5017 as m68k_linux_extract_return_value.
5018 (DEPRECATED_STORE_RETURN_VALUE): Define as
5019 m68k_linux_store_return_value.
5020 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5021 m68k_linux_extract_struct_value_address.
5022 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5023 get_next_frame, get_frame_base, get_frame_pc.
5024 (m68k_linux_frame_saved_pc): Use get_frame_base.
5025 (m68k_linux_extract_return_value): New function.
5026 (m68k_linux_store_return_value): New function.
5027 (m68k_linux_extract_struct_value_address): New function.
5028 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5030 * c-exp.y (typebase): Remove duplicate occurence of
5031 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5032 of lookup_signed_typename.
5034 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5036 * dwarf2loc.c (find_location_expression): Change type of second
5037 argument to `size_t *'.
5038 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5041 2003-05-18 David Carlton <carlton@bactrian.org>
5043 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5044 'linkage_name'. Add comment.
5045 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5047 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5048 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5049 (lookup_block_symbol): Ditto.
5051 2003-05-16 Andrew Cagney <cagney@redhat.com>
5053 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5054 * gdbarch.h, gdbarch.c: Re-generate.
5055 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5056 * TODO (REGISTER_BYTES): Delete reference.
5057 * alpha-tdep.c (alpha_gdbarch_init): Update.
5058 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5059 * x86-64-tdep.c (x86_64_init_abi): Update.
5060 * vax-tdep.c (vax_gdbarch_init): Update.
5061 * v850-tdep.c (v850_gdbarch_init): Update.
5062 * sparc-tdep.c (sparc_gdbarch_init): Update.
5063 * sh-tdep.c (sh_gdbarch_init): Update.
5064 * s390-tdep.c (s390_gdbarch_init): Update.
5065 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5066 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5067 (ns32k_gdbarch_init_32382): Update.
5068 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5069 * mcore-tdep.c (mcore_gdbarch_init): Update.
5070 * m68k-tdep.c (m68k_gdbarch_init): Update.
5071 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5072 * ia64-tdep.c (ia64_gdbarch_init): Update.
5073 * i386-tdep.c (i386_gdbarch_init): Update.
5074 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5075 * hppa-tdep.c (hppa_gdbarch_init): Update.
5076 * h8300-tdep.c (h8300_gdbarch_init): Update.
5077 * frv-tdep.c (frv_gdbarch_init): Update.
5078 * cris-tdep.c (cris_gdbarch_init): Update.
5079 * avr-tdep.c (avr_gdbarch_init): Update.
5080 * arm-tdep.c (arm_gdbarch_init): Update.
5081 * sparc-tdep.c (sparc_pop_frame): Update.
5082 * rs6000-tdep.c (rs6000_pop_frame): Update.
5083 * remote.c (init_remote_state): Update.
5084 (remote_prepare_to_store): Update.
5085 * remote-vx.c (vx_prepare_to_store): Update.
5086 * remote-sds.c (sds_fetch_registers): Update.
5087 (sds_prepare_to_store): Update.
5088 * remote-array.c: Update.
5089 * regcache.c (init_legacy_regcache_descr): Update.
5090 (init_regcache_descr): Update.
5091 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5092 (mips_o64_extract_return_value): Update.
5093 * irix5-nat.c (fetch_core_registers): Update.
5094 * irix4-nat.c (fetch_core_registers): Update.
5095 * i386-tdep.h: Update.
5096 * hppa-tdep.c (pa_do_registers_info): Update.
5097 (pa_do_strcat_registers_info): Update.
5098 * cris-tdep.c (cris_register_bytes_ok): Update.
5099 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5100 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5101 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5102 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5103 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5104 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5105 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5106 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5107 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5108 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5109 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5110 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5111 (REGISTER_BYTES_OK): Update.
5112 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5113 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5115 2003-05-16 Ian Lance Taylor <ian@airs.com>
5117 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5118 (vax_print_insn, print_insn_arg): Remove static functions.
5119 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5120 print_insn_vax from opcodes library.
5121 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5123 2003-05-15 Andrew Cagney <cagney@redhat.com>
5125 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5126 * target.h (memory_breakpoint_from_pc): Delete declaration.
5127 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5128 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5129 * monitor.c (monitor_insert_breakpoint): Use
5130 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5131 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5132 * gdbarch.h, gdbarch.c: Re-generate.
5133 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5134 (sparc_gdbarch_init): Set breakpoint_from_pc to
5135 sparc_breakpoint_from_pc.
5136 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5137 (BREAKPOINT_FROM_PC): Define.
5138 (sparc_breakpoint_from_pc): Declare.
5139 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5140 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5141 (BREAKPOINT_FROM_PC): Define.
5142 (BREAKPOINT): Delete macro.
5143 * target.h: Update comment.
5144 * s390-tdep.c (s390_gdbarch_init): Update comments.
5145 * remote.c: Update comments.
5146 * remote-mips.c: Update comments.
5147 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5148 * mem-break.c: Update comment.
5149 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5150 (ia64_memory_insert_breakpoint): Update.
5151 * config/sparc/tm-sparc.h: Update comment.
5152 * config/pa/tm-hppa64.h: Update comment.
5153 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5154 (rs6000_breakpoint_from_pc): Update.
5155 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5156 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5157 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5158 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5159 (mips_breakpoint_from_pc): Update.
5160 (mips_dump_tdep): Update.
5162 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5163 * minsyms.c (lookup_minimal_symbol): Inline
5164 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5166 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5167 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5168 * p-lang.c (pascal_printstr): Ditto.
5169 * objc-lang.c (objc_printstr): Ditto.
5170 * m2-lang.c (m2_printstr): Ditto.
5171 * jv-valprint.c (java_print_value_fields): Ditto.
5172 * f-lang.c (f_printstr): Ditto.
5173 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5174 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5175 for repeat_count_threshold.
5176 * Makefile.in (cp-valprint.o): Update dependencies.
5178 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5180 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5181 (examine_prologue): Support looking through leaf functions, knowing
5182 they start with mov r2,r12. Support skipping over indirect stores
5183 of the input registers. Upon hitting a non-nop branch instruction
5184 or predicated instruction, bail out by setting lim_pc to the current
5185 pc value in the loop. At the end, if the lim_pc value is still
5186 beyond our calculated value and we have trust_limit set,
5187 use the lim_pc value.
5189 2003-05-15 Andrew Cagney <cagney@redhat.com>
5191 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5192 generic_find_dummy_frame.
5193 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5194 (deprecated_generic_find_dummy_frame): Update.
5195 (deprecated_read_register_dummy): Update.
5196 * frame.c (deprecated_generic_get_saved_register): Update.
5198 2003-05-15 Theodore A. Roth <troth@openavr.org>
5200 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5201 (avr_gdbarch_init): Set breakpoint_from_pc method.
5203 2003-05-15 Andrew Cagney <cagney@redhat.com>
5205 * regcache.c (build_regcache): Set deprecated_register_valid
5207 (deprecated_grub_regcache_for_register_valid): Delete function.
5208 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5211 2003-05-15 David Carlton <carlton@bactrian.org>
5213 Committed by Elena Zannoni <ezannoni@redhat.com>
5214 * symtab.c (lookup_symbol_aux): Delete calls to
5215 lookup_symbol_aux_minsyms.
5216 (lookup_symbol_aux_minsyms): Comment out function and
5217 prototype. Delete lookup by mangled name.
5219 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5221 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5222 correctly indicate an empty stack and ``stack_allocated'' to the
5223 indicate the number of elements initially allocated.
5224 (dwarf_expr_grow_stack): Simplify method for computing new
5225 stack size. Don't loop infinitely if ``stack_len'' is zero.
5226 (execute_stack_op): Move ``ctx->in_reg'' initialization
5227 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5228 be used in conjuction with DW_OP_piece. Revise error message
5231 2003-05-14 Theodore A. Roth <troth@openavr.org>
5233 * MAINTAINERS: Update my email address.
5234 * avr-tdep.c: Ditto.
5236 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5238 * symtab.h (enum domain_enum): Rename from namespace_enum.
5239 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5240 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5241 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5242 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5243 TYPES_NAMESPACE, METHODS_NAMESPACE.
5244 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5245 (struct symbol, struct partial_symbol): Rename field
5246 'namespace_enum namespace' to 'domain_enum domain'.
5247 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5248 Delete old define kludge for namespace.
5250 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5251 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5252 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5253 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5254 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5255 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5256 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5257 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5258 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5259 occurrences of the above.
5261 2003-05-14 Ian Lance Taylor <ian@airs.com>
5263 * Makefile.in (install-only): Use $(SHELL) when running
5266 2003-05-13 Ian Lance Taylor <ian@airs.com>
5268 * MAINTAINERS (write after approval): Add myself.
5270 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5271 second and third arguments.
5272 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5273 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5275 2003-05-13 Andrew Cagney <cagney@redhat.com>
5277 * defs.h (store_address): Delete declaration.
5278 findvar.c (store_address): Delete function.
5279 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5280 store_unsigned_integer.
5281 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5282 * v850-tdep.c (v850_push_arguments): Ditto.
5283 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5284 * sh-tdep.c (sh64_get_saved_register): Ditto.
5285 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5286 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5287 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5288 (mips_get_saved_register): Ditto.
5289 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5290 (find_func_descr, ia64_push_arguments): Ditto.
5291 * i386-tdep.c (i386_push_arguments): Ditto.
5292 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5293 * frv-tdep.c (frv_push_arguments): Ditto.
5294 * frame.c (legacy_saved_regs_prev_register): Ditto.
5295 (deprecated_generic_get_saved_register): Ditto.
5296 * findvar.c (unsigned_address_to_pointer): Ditto.
5297 * dwarf2read.c (dwarf2_const_value): Ditto.
5298 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5299 * alpha-tdep.c (alpha_push_arguments): Ditto.
5301 2003-05-12 J. Brobecker <brobecker@gnat.com>
5303 * NEWS: Mention that the hppa-hpux port has been partially
5304 multiarched (32bit ABIT only, so far).
5306 2003-05-11 Andrew Cagney <cagney@redhat.com>
5308 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5309 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5310 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5311 sim/testsuite/sim/arm/misaligned2.ms, and
5312 sim/testsuite/sim/arm/misaligned3.ms.
5313 * disasm.h (struct ui_file): Add opaque struct declaration.
5314 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5315 * frame.h (struct ui_file): Ditto.
5317 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5319 * value.h: Pretty print.
5321 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5323 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5325 2003-05-08 Andrew Cagney <cagney@redhat.com>
5327 * regcache.h (max_register_size): Delete declaration.
5328 * regcache.c (max_register_size): Delete function.
5329 (struct regcache_descr): Delete field "max_register_size".
5330 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5331 registers fit in MAX_REGISTER_SIZE.
5332 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5333 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5334 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5335 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5336 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5337 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5338 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5339 * dve3900-rom.c, hppa-tdep.c: Ditto.
5341 2003-05-08 David Carlton <carlton@math.stanford.edu>
5343 * valops.c (push_word): Fix typo.
5345 2003-05-08 Andrew Cagney <cagney@redhat.com>
5347 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5348 * gdbarch.h: Re-generate.
5349 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5350 (legacy_max_register_raw_size): Delete declaration.
5351 * regcache.c (legacy_max_register_raw_size): Delete function.
5352 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5353 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5354 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5355 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5356 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5357 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5358 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5359 * findvar.c, dwarf2cfi.c: Ditto.
5361 2003-05-08 Andrew Cagney <cagney@redhat.com>
5363 * mips-tdep.c (read_signed_register): New function, moved to here
5365 (read_signed_register_pid): Ditto.
5366 * regcache.c (read_signed_register_pid): Delete function, moved to
5368 (read_signed_register): Ditto.
5369 * regcache.h (read_signed_register): Delete declaration.
5370 (read_signed_register_pid): Delete declaration.
5372 2003-05-08 Andrew Cagney <cagney@redhat.com>
5374 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5375 * gdbarch.h: Re-generate.
5376 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5377 (legacy_max_register_virtual_size): Delete declaration.
5378 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5379 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5380 * tracepoint.c (memrange_sortmerge): Ditto.
5381 * sparc-tdep.c (sparc_print_registers): Ditto.
5382 * regcache.c (legacy_max_register_virtual_size): Delete function.
5384 2002-05-08 J. Brobecker <brobecker@gnat.com>
5386 * fork-child.c (escape_bang_in_quoted_argument): New function.
5387 (fork_inferior): Escape '!' characters in quoted arguments
5390 2003-05-08 J. Brobecker <brobecker@gnat.com>
5392 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5393 the language of the CU is not currently supported by GDB.
5395 2003-05-08 J. Brobecker <brobecker@gnat.com>
5397 * defs.h (language): Add language_minimal enum value.
5398 * c-lang.c (minimal_language_defn): New language definition.
5399 (_initialize_c_language): Add the new minimal language to the list
5400 of languages known to GDB.
5402 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5404 * frame.c (get_frame_type): Don't attempt to lazily initialize
5405 frame's unwinder for legacy frames.
5407 2003-05-07 Andrew Cagney <cagney@redhat.com>
5409 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5410 and "regcache" parameters.
5411 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5413 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5415 * dwarf2read.c (dwarf_decode_lines): Only use output of
5416 check_cu_functions() when calling record_line(). Do not update
5417 the current address.
5419 2003-05-07 Andrew Cagney <cagney@redhat.com>
5421 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5424 2003-05-07 Jim Blandy <jimb@redhat.com>
5426 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5427 'maint info symtabs' and 'maint info psymtabs'.
5428 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5429 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5430 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5431 Declarations updated.
5432 * maint.c (maintenance_list_command): Delete.
5433 (_initialize_maint_cmds): Update calls to add_cmd.
5434 * gdbcmd.h (maintenancelistlist): Delete declaration.
5435 * cli/cli-cmds.c (maintenancelistlist): Delete.
5436 (init_cmd_lists): Don't initialize it.
5437 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5439 2003-05-07 Andrew Cagney <cagney@redhat.com>
5441 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5443 (d10v_print_registers_info): Update.
5444 (d10v_dmap_register, d10v_imap_register): Delete functions.
5445 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5446 and "imap_register".
5447 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5448 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5449 * arch-utils.c (generic_remote_translate_xfer_address): Add
5450 "regcache" and "gdbarch" parameters.
5451 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5452 parameter. Change class to multi-arch.
5453 * gdbarch.h, gdbarch.c: Re-generate.
5454 * remote.c (remote_xfer_memory): Use
5455 gdbarch_remote_translate_xfer_address.
5457 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5459 * infrun.c (prev_pc): Move declaration ahead of proceed().
5460 (proceed): Refresh prev_pc value before resuming.
5461 (stop_stepping): Remove code to refresh prev_pc.
5463 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5465 * nto-tdep.c: Removed stray comment.
5467 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5469 * i386-nto-tdep.c: Fix old K&R function definitions.
5470 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5471 Also change add_show_from_set() call to add_setshow_cmd().
5472 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5474 2003-05-05 Andrew Cagney <cagney@redhat.com>
5476 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5477 (fprint_dummy_frames): New function.
5478 (maintenance_print_dummy_frames): New function.
5479 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5480 * frame.c (fprint_frame_id): Make global.
5481 * frame.h (fprint_frame_id): Declare.
5482 * Makefile.in (dummy-frame.o): Update dependencies.
5484 2003-05-05 Andrew Cagney <cagney@redhat.com>
5486 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5487 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5488 SIZEOF_CALL_DUMMY_WORDS.
5489 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5490 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5491 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5492 CALL_DUMMY_BREAKPOINT_OFFSET.
5493 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5494 CALL_DUMMY_START_OFFSET.
5495 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5496 * gdbarch.h, gdbarch.c: Re-generate.
5497 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5498 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5499 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5500 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5501 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5502 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5503 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5504 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5505 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5506 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5507 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5508 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5509 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5510 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5511 * config/sparc/tm-sparc.h: Update.
5513 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5515 * configure.tgt: Add i[3456]86-*-nto*.
5516 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5517 * nto-tdep.c: New file. Neutrino target support routines.
5518 * nto-tdep.h: New file. Neutrino target header.
5519 * config/tm-qnxnto.h: New file.
5520 * config/i386/i386nto.mt: New file.
5521 * config/i386/tm-i386nto.h: New file.
5523 2003-05-04 Andrew Cagney <cagney@redhat.com>
5525 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5526 (load_infrun_state): Ditto.
5527 (struct thread_info): Drop "prev_func_name" field.
5528 * thread.c (load_infrun_state): Update.
5529 (save_infrun_state): Update.
5530 * infrun.c (prev_func_name): Delete variable.
5531 (init_wait_for_inferior): Do not clear prev_func_name.
5532 (stop_stepping, keep_going, context_switch): Do not swap
5534 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5535 instead of PC_IN_SIGTRAMP.
5537 2003-05-04 Andrew Cagney <cagney@redhat.com>
5539 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5540 REGISTER_BYTE with register_offset_hack.
5541 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5542 that REGISTER_BYTE is consistent with the regcache.
5543 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5544 * gdbarch.h, gdbarch.c: Regenerate.
5546 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5548 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5549 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5551 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5553 2003-05-03 J. Brobecker <brobecker@gnat.com>
5555 From Thierry Schneider <tpschneider1@yahoo.com>
5556 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5557 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5558 (mi-cmd-symbol.o): Add rule.
5560 2003-05-03 Andrew Cagney <cagney@redhat.com>
5562 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5563 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5564 * gdbarch.h, gdbarch.c: Re-generate.
5565 * d10v-tdep.c (d10v_push_dummy_code): New function.
5566 (d10v_gdbarch_init): Set push_dummy_code.
5567 * infcall.c (legacy_push_dummy_code): New function.
5568 (generic_push_dummy_code): New function.
5569 (push_dummy_code): New function.
5570 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5571 instead of dummy_addr, to push_dummy_call. Move call to
5572 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5574 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5576 2003-05-03 Andrew Cagney <cagney@redhat.com>
5578 * disasm.h (print_insn): Declare.
5579 * disasm.c (init_gdb_disassemble_info): New function.
5580 (gdb_disassembly): Call init_gdb_disassemble_info.
5581 (gdb_print_insn): New function.
5582 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5583 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5584 * mcore-tdep.c: Include "disasm.h"
5585 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5586 * d10v-tdep.c: Include "disasm.h".
5587 (display_trace): Call gdb_print_insn, instead of print_insn.
5588 (print_insn): Delete function.
5589 * printcmd.c: Include "disasm.h".
5590 (print_insn): Delete function.
5591 (print_formatted): Call gdb_print_insn, instead of print_insn.
5592 * Makefile.in (printcmd.o): Update dependencies.
5593 (mcore-tdep.o, d10v-tdep.o): Ditto.
5595 2003-05-02 Andrew Cagney <cagney@redhat.com>
5597 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5598 PC_REGNUM, re-indent.
5599 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5600 PC_REGNUM isn't set.
5602 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5603 * gdbarch.h, gdbarch.c: Re-generate.
5604 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5605 register_virtual_size, pc_regnum, or register_bytes.
5606 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5607 (d10v_register_type): Use D10V_PC_REGNUM.
5608 (d10v_print_registers_info, d10v_read_pc): Ditto.
5609 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5610 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5612 2003-05-02 David Carlton <carlton@bactrian.org>
5614 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5615 the name with mstrsave.
5617 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5619 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5620 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5621 (host_charset_name, target_charset_name): New vars for use by
5623 (host_charset_enum, target_charset_enum): New enums for set/show
5625 (set_charset_sfunc, set_host_charset_sfunc,
5626 set_target_charset_sfunc): New functions.
5627 (set_host_charset, set_target_charset): Make static.
5628 (list_charsets, set_host_charset_command,
5629 set_target_charset_command): Delete functions.
5630 (show_charset_command): Rewrite as....
5631 (show_charset): Hook this up with the set/show command mechanism.
5632 (_initialize_charset): Change names of charsets to match the
5633 set/show enums. Use host_charset_name and target_charset_name.
5634 Use set/show mechanism for charset, host-charset, target-charset
5635 commands. Do not make 'show host-charset' and 'show
5636 target-charset' be aliases of 'show charset'.
5638 * charset.h (set_host_charset, set_target_charset): Don't export,
5639 they are not used outside the file.
5641 2003-05-01 Andrew Cagney <cagney@redhat.com>
5643 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5644 (gdb_disassembly): Make "di" non static, always initialize and
5645 cleanup. Always use dis_asm_read_memory.
5646 (gdb_dis_asm_read_memory): Delete function.
5648 2003-05-01 Andrew Cagney <cagney@redhat.com>
5650 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5651 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5653 2003-04-30 Andrew Cagney <cagney@redhat.com>
5655 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5656 "tm_print_insn_info".
5657 (TARGET_PRINT_INSN_INFO): Delete macro.
5658 (dis_asm_read_memory): Delete function declaration.
5659 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5660 (tm_print_insn_info): Delete variable definition.
5661 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5662 * gdbarch.h, gdbarch.c: Re-generate.
5663 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5664 "deprecated_tm_print_insn_info".
5665 * mcore-tdep.c (mcore_dump_insn): Ditto.
5666 * mips-tdep.c (mips_gdbarch_init): Ditto.
5667 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5668 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5669 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5670 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5671 instead of TARGET_PRINT_INSN_INFO, add comment.
5672 * s390-tdep.c (s390_get_frame_info): Instead of
5673 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5674 (s390_check_function_end, s390_is_sigreturn): Ditto.
5675 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5676 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5677 * disasm.c: Include "gdbcore.h".
5678 (_initialize_disasm): New function, initialize
5679 "deprecated_tm_print_insn_info".
5680 (deprecated_tm_print_insn_info): New variable.
5681 (dis_asm_read_memory): Moved from "corefile.c", made static.
5682 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5683 * Makefile.in (disasm.o): Update dependencies.
5685 2003-04-30 Andrew Cagney <cagney@redhat.com>
5687 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5689 2003-04-29 Adam Fedor <fedor@gnu.org>
5691 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5692 * infcall.c (find_function_addr): Make non-static.
5693 * infcall.h (find_function_addr): Declare.
5694 * Makefile.in (eval.o): Update dependencies.
5696 2003-04-28 Adam Fedor <fedor@gnu.org>
5698 * symtab.c (symbol_find_demangled_name): Check for and demangle
5700 (symbol_init_demangled_name): Init for language_objc as well.
5702 2003-04-28 Andrew Cagney <cagney@redhat.com>
5704 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5705 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5706 * gdbarch.h, gdbarch.c: Re-generate.
5707 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5708 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5709 * inferior.h (deprecated_read_fp): Rename read_fp.
5710 (generic_target_read_fp): Delete declaration.
5711 * regcache.c (generic_target_read_fp): Delete function.
5712 (deprecated_read_fp): Replace read_fp, use
5713 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5714 * d10v-tdep.c (d10v_read_fp): Delete function.
5715 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5717 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5718 deprecated_target_read_fp to generic_target_read_fp.
5719 * sh-tdep.c (sh_gdbarch_init): Ditto.
5720 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5722 * frv-tdep.c (frv_gdbarch_init): Ditto.
5724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5725 deprecated_fp_regnum.
5726 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5727 * vax-tdep.c (vax_gdbarch_init): Ditto.
5728 * v850-tdep.c (v850_gdbarch_init): Ditto.
5729 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5730 * sh-tdep.c (sh_gdbarch_init): Ditto.
5731 * s390-tdep.c (s390_gdbarch_init): Ditto.
5732 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5733 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5734 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5735 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5736 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5737 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5738 * i386-tdep.c (i386_gdbarch_init): Ditto.
5739 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5740 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5741 * frv-tdep.c (frv_gdbarch_init): Ditto.
5742 * cris-tdep.c (cris_gdbarch_init): Ditto.
5743 * avr-tdep.c (avr_gdbarch_init): Ditto.
5744 * arm-tdep.c (arm_gdbarch_init): Ditto.
5745 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5747 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5748 * v850-tdep.c (v850_gdbarch_init): Ditto.
5749 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5750 * sh-tdep.c (sh_gdbarch_init): Ditto.
5751 * s390-tdep.c (s390_gdbarch_init): Ditto.
5752 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5753 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5754 * mips-tdep.c (mips_gdbarch_init): Ditto.
5755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5756 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5757 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5758 * frv-tdep.c (frv_gdbarch_init): Ditto.
5759 * avr-tdep.c (avr_gdbarch_init): Ditto.
5760 * arm-tdep.c (arm_gdbarch_init): Ditto.
5762 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5763 DEPRECATED_FP_REGNUM.
5764 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5765 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5766 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5767 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5768 (sparc32_register_virtual_type): Ditto.
5769 * sh-tdep.c (sh64_frame_chain): Ditto.
5770 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5771 (sh_nofp_frame_init_saved_regs): Ditto.
5772 (sh64_nofp_frame_init_saved_regs): Ditto.
5773 (sh_fp_frame_init_saved_regs): Ditto.
5774 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5775 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5776 * procfs.c (procfs_fetch_registers): Ditto.
5777 (procfs_store_registers): Ditto.
5778 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5779 (store_inferior_registers, fetch_core_registers): Ditto.
5780 (fetch_kcore_registers, clear_regs): Ditto.
5781 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5782 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5783 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5784 * nlm/i386.c (do_status): Ditto.
5785 * mipsv4-nat.c (supply_gregset): Ditto.
5786 * mips-tdep.c: Ditto for comments.
5787 * mips-nat.c (fetch_inferior_registers): Ditto.
5788 (store_inferior_registers, fetch_core_registers): Ditto.
5789 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5790 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5791 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5792 (i386_do_pop_frame, i386_register_type): Ditto.
5793 * hppa-tdep.c (hppa_frame_chain): Ditto.
5794 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5795 (hppa_pop_frame, hppa_read_fp): Ditto.
5796 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5797 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5798 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5799 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5800 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5801 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5802 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5803 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5804 * blockframe.c: Ditto for comments.
5805 * arch-utils.h: Ditto for comments.
5806 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5807 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5808 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5809 * alpha-tdep.h: Ditto for comments.
5810 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5811 (alpha_cannot_store_register): Ditto.
5812 (alpha_push_dummy_frame): Ditto.
5813 * alpha-nat.c (supply_gregset): Ditto.
5815 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5816 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5817 * config/sparc/tm-sparc.h: Update comment.
5819 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5820 deprecated_read_fp instead of TARGET_READ_FP.
5821 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5822 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5823 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5824 deprecated_read_fp instead of read_fp.
5825 * s390-tdep.c (s390_push_arguments): Ditto.
5826 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5827 * frame.h: Ditto in comments.
5828 * frame.c (legacy_get_prev_frame): Ditto.
5829 * dummy-frame.c (dummy_frame_this_id): Ditto.
5830 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5832 2003-04-28 Andrew Cagney <cagney@redhat.com>
5834 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5835 * gdbarch.h, gdbarch.c: Re-generate.
5836 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5837 * vax-tdep.c (_initialize_vax_tdep): Update.
5838 * v850-tdep.c (_initialize_v850_tdep): Update.
5839 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5840 * s390-tdep.c (_initialize_s390_tdep): Update.
5841 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5842 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5843 * mips-tdep.c (_initialize_mips_tdep): Update.
5844 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5845 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5846 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5847 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5848 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5849 * frv-tdep.c (_initialize_frv_tdep): Update.
5850 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5851 (_initialize_cris_tdep): Update.
5852 * arch-utils.c (legacy_print_insn): Update.
5853 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5855 2003-04-26 Adam Fedor <fedor@gnu.org>
5857 * linespec.c (decode_objc): New function to decode ObjC calls
5858 (decode_line_1): Check for ObjC calls (using decode_objc)
5859 * Makefile (linespec.o): Update dependencies.
5861 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5863 * breakpoint.h (struct breakpoint_ops): New.
5864 (struct breakpoint): Add ops member.
5866 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5867 (mention): Use new breakpoint ops member.
5868 (set_raw_breakpoint): Initialize ops field to NULL.
5869 (print_exception_catchpoint, print_one_exception_catchpoint)
5870 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5871 (gnu_v3_exception_catchpoint_ops): New.
5872 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5874 2003-04-25 Adam Fedor <fedor@gnu.org>
5876 * Makefile.in (COMMON_OBS): Add objc-lang.o
5878 2003-04-25 Andrew Cagney <cagney@redhat.com>
5880 * d10v-tdep.c (print_insn): Delete function.
5881 (display_trace): Use TARGET_PRINT_INSN.
5882 (_initialize_d10v_tdep): Do not set tm_print_insn.
5883 (d10v_gdbarch_init): Set print_insn.
5885 2003-04-25 Andrew Cagney <cagney@redhat.com>
5887 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5888 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5889 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5890 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5891 (nr_dmap_regs, a0_regnum): ... new functions.
5892 (d10v_print_registers_info): Use a0_regnum, use register_size.
5893 (d10v_register_byte): Delete function.
5894 (d10v_register_raw_size): Delete function.
5895 (d10v_register_type): Use a0_regnum.
5896 (d10v_print_registers_info): Use a0_regnum.
5897 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5898 (d10v_gdbarch_init): Do not set register_byte or
5899 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5900 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5902 (trace_command): Use XCALLOC.
5903 (print_insn): Delete reference to tm_print_insn.
5904 (saved_regs_unwinder): Use store_unsigned_integer instead of
5906 * frame.h (FRAME_OBSTACK_CALLOC): Define
5908 2003-04-25 David Carlton <carlton@bactrian.org>
5910 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5912 2003-04-24 Adam Fedor <fedor@gnu.org>
5914 * objc-lang.c: Include "valprint.h"
5915 * Makefile.in (objc-lang.o): Update dependencies.
5917 2003-04-24 Adam Fedor <fedor@gnu.org>
5919 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5920 architecture dependant compilation and mark as unimplemented
5921 (until they get put in the gdbarch vector).
5923 2003-04-23 David Carlton <carlton@bactrian.org>
5925 * cp-support.c (cp_find_first_component): Accept 'operator' in
5928 2003-04-23 Andrew Cagney <cagney@redhat.com>
5930 * infcall.c (call_function_by_hand): Eliminate redundant
5931 indentation. Move "saved_async" and "old_cleanups" to where they
5934 2003-04-23 Andrew Cagney <cagney@redhat.com>
5936 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5937 and "buffer". Move the "name" code to where it is needed.
5939 2003-04-23 Andrew Cagney <cagney@redhat.com>
5941 * infcall.c (call_function_by_hand): Move variables "start_sp",
5942 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5943 code to ON_STACK switch branch.
5945 2003-04-23 Andrew Cagney <cagney@redhat.com>
5947 * infcall.c (call_function_by_hand): Make declaration of "i",
5948 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5951 2003-04-23 Andrew Cagney <cagney@redhat.com>
5953 * infcall.c (call_function_by_hand): Delete variable
5954 "n_method_args". Localize "param_type"'s declaration to the loop
5955 that it is used. Reinstate code assigning to said variable -
5956 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5957 Rationalize code using "param_type".
5959 2003-04-22 Andrew Cagney <cagney@redhat.com>
5961 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5962 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5963 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5964 to DEPRECATED_PUSH_RETURN_ADDRESS.
5966 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5968 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5969 on the DWARF2 register number prior to fetching a register.
5971 2003-04-22 J. Brobecker <brobecker@gnat.com>
5973 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5974 Update all the tests using SOFT_FLOAT considering the fact that
5975 this macro was always set to 0.
5976 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5977 considering the fact that this macro was always set to 0.
5978 * hppa-tdep.h (hppa_store_return_value): Likewise.
5979 (hppa_extract_return_value): Likewise.
5981 2003-04-22 J. Brobecker <brobecker@gnat.com>
5983 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5984 the hppa-pro target only.
5986 2003-04-21 J. Brobecker <brobecker@gnat.com>
5988 Ongoing multi-arch conversion effort for HP/UX:
5989 * config/pa/tm-hppa.h: Move all macro that are no longer
5990 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5991 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5993 2003-04-21 J. Brobecker <brobecker@gnat.com>
5995 * config/pa/tm-hppa.h: Obsolete a section that was only used
5998 2003-04-21 J. Brobecker <brobecker@gnat.com>
6000 Ongoing multi-arch conversion for HP/UX.
6001 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6002 if already defined (allows hppa64 to stay non-multiarched for now).
6003 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6005 2003-04-21 Andrew Cagney <cagney@redhat.com>
6007 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6009 2003-04-21 Andrew Cagney <cagney@redhat.com>
6011 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6012 "i386_num_mmx_regs".
6014 2003-04-21 Andrew Cagney <cagney@redhat.com>
6016 * infcall.c: New file.
6017 * infcall.h: New file.
6018 * valarith.c: Include "infcall.h".
6019 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6020 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6021 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6022 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6023 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6024 (SFILES): Add "infcall.c"
6025 (COMMON_OBS): Add "infcall.o".
6026 (infcall.o): Specify dependencies.
6027 * value.h (call_function_by_hand): Delete declaration.
6028 * inferior.h (run_stack_dummy): Delete declaration.
6029 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6030 (run_stack_dummy): Move to "infcall.c", merged into
6031 call_function_by_hand.
6032 * valops.c (call_function_by_hand): Moved to "infcall.c".
6033 (find_function_addr, value_arg_coerce): Ditto.
6034 (unwindonsignal_p, coerce_float_to_double): Ditto.
6035 (_initialize_valops): Move "set/show coerce-float-to-double", and
6036 "set/show unwindonsignal" commands to "infcall.c".
6037 * v850-tdep.c, target.h: Update comments.
6038 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6039 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6040 (sh64_init_extra_frame_info): Update comments.
6041 * mn10300-tdep.c: Update comments.
6042 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6043 * config/sparc/tm-sparc.h: Update comments.
6044 * breakpoint.h: Update comments.
6045 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6046 * arm-tdep.c: Update comment.
6048 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6050 * i386-tdep.c (i386_num_register_names): New variable.
6051 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6052 (MM0_REGNUM): Remove redundant parentheses in define.
6053 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6054 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6055 i386_mxcsr_regnum_p): Remove redundant parentheses.
6056 (i386_register_name): Use i386_num_register_names.
6058 * i386-tdep.c (i386_extract_return_value,
6059 i386_store_return_value): Correct check for availability of
6060 floating-point registers.
6062 * i386-tdep.c (i386_frame_num_args): Remove function.
6063 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6065 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6066 mmx_regnum_to_fp_regnum. Adjust all callers.
6068 * i386-tdep.c (i386_get_longjmp_target): Use
6069 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6070 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6073 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6075 * core-regset.c: Update comments to reflect reality. Re-order
6077 (fetch_core_registers): Use switch instead of if. Remove
6078 redundant prototype.
6080 2003-04-18 Jim Blandy <jimb@redhat.com>
6082 * s390-tdep.c (s390_frame_align): New function.
6083 (s390_gdbarch_init): Register it with the gdbarch object.
6085 2003-04-17 Richard Henderson <rth@redhat.com>
6087 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6089 2003-04-17 Michael Snyder <msnyder@redhat.com>
6090 Karen Bennet <bennet@redhat.com>
6092 Committed by Elena Zannoni <ezannoni@redhat.com>
6093 * gdb_gcore.sh: New script to create a core dump of a process.
6095 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6097 * values.c (value_being_returned): Don't fetch the return
6098 value if the return type is void.
6100 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6102 * thread-db.c: Reindented.
6104 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6106 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6107 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6134 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6136 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6137 the size of ``long double'' to 16, instead of 8.
6139 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6141 * i386-linux-nat.c: Add some whitespace to make things more
6143 (fetch_register, store_register, fetch_inferior_registers,
6144 store_inferior_registers): Get rid of assignment in if-statement.
6145 (store_register): Fix typo in error message.
6147 2003-04-16 Andrew Cagney <cagney@redhat.com>
6149 * utils.c (xmmalloc): Always allocate something, matches
6150 libiberty/xmalloc's semantics.
6151 (xmrealloc, xmcalloc): Ditto.
6153 2003-04-16 Andrew Cagney <cagney@redhat.com>
6155 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6157 (get_frame_type): Initialize unwind and type when needed.
6158 (get_frame_id, frame_register_unwind): Ditto.
6160 2003-04-16 Andrew Cagney <cagney@redhat.com>
6162 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6164 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6165 * sparcl-stub.c: Obsolete file.
6166 * config/sparc/tm-sparclet.h: Obsolete file.
6167 * sparclet-stub.c: Obsolete file.
6168 * sparclet-rom.c: Obsolete file.
6169 * sparcl-tdep.c: Obsolete file.
6170 * config/sparc/tm-sparclite.h: Obsolete file.
6171 * config/sparc/sparclite.mt: Obsolete file.
6172 * config/sparc/sparclet.mt: Obsolete file.
6173 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6174 sparc86x-*-* obsolete.
6176 2003-04-15 David Carlton <carlton@math.stanford.edu>
6178 * Makefile.in (SFILES): Add cp-namespace.c.
6179 (COMMON_OBS): Add cp-namespace.o.
6180 (block.o): Depend on gdb_obstack_h and cp_support_h.
6181 (buildsym.o): Depend on cp_support_h.
6182 (cp-namespace.o): New.
6183 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6184 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6185 (dwarf2read.o): Depend on cp_support_h.
6186 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6187 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6188 processing_current_namespace.
6189 (read_namespace): Update processing_current_namespace; check for
6190 anonymous namespaces.
6191 (dwarf2_name): New function.
6192 (dwarf2_extension): Ditto.
6193 * cp-support.h: Update copyright, contributors.
6194 Add inclusion guards.
6195 Add opaque declaration for structs obstack, block, symbol.
6196 (struct using_direct): New struct.
6197 Add declarations for cp_find_first_component,
6198 cp_entire_prefix_len, processing_has_namespace_info,
6199 processing_current_namespace, cp_is_anonymous,
6200 cp_add_using_directive, cp_initialize_namespace,
6201 cp_finalize_namespace, cp_set_block_scope,
6202 cp_scan_for_anonymous_namespaces.
6203 * cp-namespace.c: New file.
6204 * cp-support.c: Update copyright.
6205 Include ctype.h, gdb_assert.h, gdbcmd.h.
6206 New variable maint_cplus_cmd_list.
6207 (cp_find_first_component): New function.
6208 (cp_entire_prefix_len, maint_cplus_command)
6209 (first_component_command, _initialize_cp_support): Ditto.
6210 * buildsym.c: Include cp-support.h.
6211 New variable using_list.
6212 (add_symbol_to_list): Check for anonymous namespaces.
6213 (finish_block): Set block's scope.
6214 (start_symtab): Initialize C++ namespace support.
6215 (end_symtab): Finalize C++ namespace support.
6216 * block.h: Add opaque declarations for structs
6217 block_namespace_info, using_direct, and obstack.
6218 Add declarations for block_set_scope and block_set_using.
6219 (struct block): Add 'language_specific' member.
6220 (BLOCK_NAMESPACE): New macro.
6221 * block.c: Include gdb_obstack.h and cp-support.h.
6222 (struct block_namespace_info): New struct.
6223 (block_set_scope): New function.
6224 (block_set_using, block_initialize_namespace): Ditto.
6226 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6228 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6229 (locate_base): Return early if there aren't any link map offsets.
6230 (svr4_solib_create_inferior_hook): Warn if shared library support
6233 2003-04-14 David Carlton <carlton@math.stanford.edu>
6235 * symtab.c (symbol_set_names): Add prefix when storing Java names
6236 in hash table. Fix for PR java/1039.
6238 2003-04-14 David Carlton <carlton@math.stanford.edu>
6240 * symtab.c (symbol_set_names): Rename 'name' arg to
6241 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6242 * symtab.h: Change 'name' argument in declaration of
6243 symbol_set_names to 'linkage_name'.
6244 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6246 2003-04-14 Andrew Cagney <cagney@redhat.com>
6248 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6249 return the fully sign-extended register value.
6250 (get_frame_pointer): Ditto.
6251 (mips_pop_frame): Initialize "proc_desc" after checking for a
6254 2003-04-14 Andrew Cagney <cagney@redhat.com>
6256 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6257 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6258 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6259 (mips_push_register): Delete function.
6260 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6263 2003-04-14 Jim Blandy <jimb@redhat.com>
6265 * symmisc.c: #include "gdb_regex.h".
6266 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6268 * maint.c (maintenance_list_command): New function.
6269 (_initialize_maint_cmds): Register the above as commands.
6270 * symtab.h (maintenance_list_symtabs,
6271 maintenance_list_psymtabs): New declarations.
6272 * cli/cli-cmds.c (maintenancelistlist): New variable.
6273 (init_cmd_lists): Initialize it.
6274 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6275 * gdbcmd.h (maintenancelistlist): New declaration.
6276 * Makefile.in (symmisc.o): Update dependencies.
6278 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6280 * s390-nat.c: Include asm/types.h for addr_t.
6282 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6284 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6285 actually incoming type.
6287 2003-04-13 Andrew Cagney <cagney@redhat.com>
6289 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6290 get_next_frame and get_frame_saved_regs.
6292 2003-04-13 Andrew Cagney <cagney@redhat.com>
6294 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6295 of gdbarch_num_regs.
6297 2003-04-13 Andrew Cagney <cagney@redhat.com>
6299 * frame.h: Mention what replaced what in "struct frame_info".
6300 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6301 deprecated_update_frame_base_hack and
6302 deprecated_update_frame_pc_hack.
6303 * hppa-tdep.c: Ditto.
6305 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6307 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6308 to read_reg and update its comment. Remove regnum member.
6309 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6310 Don't call read_reg when setting in_reg. Call read_reg to get
6311 the frame base if it's in a register. Return the register number
6312 on the stack instead of in the context. Remove extra arguments
6314 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6315 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6316 the register number on the expression stack.
6317 (needs_frame_read_reg): Remove extra arguments.
6319 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6321 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6323 (execute_stack_op): All callers updated.
6324 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6325 * dwarf2loc.c (find_location_expression): New function.
6326 (dwarf_expr_frame_base): Call it.
6327 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6328 (dwarf2_tracepoint_var_ref): New function, broken out from
6329 locexpr_tracepoint_var_ref.
6330 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6332 (loclist_read_variable, loclist_read_needs_frame): New functions.
6333 (loclist_describe_location, loclist_tracepoint_var_ref): New
6335 (dwarf2_loclist_funcs): New struct location_funcs.
6336 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6337 (struct dwarf2_locexpr_baton): Add comments.
6338 (dwarf2_loclist_funcs): New extern.
6339 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6340 base_address and base_known.
6341 (dwarf_loc_buffer): New variable.
6342 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6343 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6344 (dwarf2_has_info): Initialize dwarf_loc_offset.
6345 (dwarf2_build_psymtabs): Read in .debug_loc.
6346 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6348 (psymtab_to_symtab_1): Likewise. Move base address calculation
6350 (dwarf2_get_pc_bounds): ... here. Use the base address from
6352 (dwarf2_symbol_mark_computed): Handle location lists.
6354 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6356 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6357 if the linkage name demangled successfully.
6359 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6361 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6362 disassmbly_flavour): Removed.
6364 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6366 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6368 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6370 2003-04-12 Andrew Cagney <cagney@redhat.com>
6372 * frame.h (struct frame_info): Move definition from here ...
6373 * frame.c (struct frame_info): ... to here.
6375 2003-04-12 Andrew Cagney <cagney@redhat.com>
6377 * gdbthread.h (save_infrun_state): Delete parameter
6379 (struct thread_info): Delete field "prev_func_start".
6380 (load_infrun_state): Ditto.
6381 * thread.c (load_infrun_state, save_infrun_state): Update.
6382 * infrun.c (prev_func_start): Delete variable.
6383 (context_switch, init_wait_for_inferior): Update.
6384 (stop_stepping, keep_going): Update.
6386 2003-04-12 Andrew Cagney <cagney@redhat.com>
6388 * gdbarch.sh: Add missing opaque declarations.
6389 * gdbarch.h: Regnerate.
6390 * symtab.h: Add missing opaque declarations.
6391 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6392 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6393 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6394 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6395 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6396 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6397 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6398 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6399 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6400 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6401 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6402 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6403 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6405 2003-04-11 Andrew Cagney <cagney@redhat.com>
6407 * frame.c (get_frame_id): Return this frame's "id".
6408 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6410 (legacy_saved_regs_this_id): Replace function body with
6412 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6413 FRAME_OBSTACK_ZALLOC.
6414 (create_new_frame): Mark the frame ID as valid.
6416 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6418 * Makefile.in (libbfd_h): Added missing setting.
6419 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6420 according to the selected ABI.
6422 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6424 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6426 2003-04-11 Andrew Cagney <cagney@redhat.com>
6428 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6429 SAVED_PC_AFTER_CALL.
6430 * gdbarch.h, gdbarch.c: Regenerate.
6431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6432 * x86-64-tdep.c (x86_64_init_abi): Update.
6433 * vax-tdep.c (vax_gdbarch_init): Update.
6434 * v850-tdep.c (v850_gdbarch_init): Update.
6435 * sparc-tdep.c (sparc_gdbarch_init): Update.
6436 * sh-tdep.c (sh_gdbarch_init): Update.
6437 * s390-tdep.c (s390_gdbarch_init): Update.
6438 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6439 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6440 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6441 * mips-tdep.c (mips_gdbarch_init): Update.
6442 * mcore-tdep.c (mcore_gdbarch_init): Update.
6443 * m68k-tdep.c (m68k_gdbarch_init): Update.
6444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6445 * ia64-tdep.c (ia64_gdbarch_init): Update.
6446 (ia64_saved_pc_after_call): Update declaration.
6447 * i386ly-tdep.c (i386lynx_init_abi): Update.
6448 * i386-tdep.c (i386_gdbarch_init): Update.
6449 * hppa-tdep.c (hppa_gdbarch_init): Update.
6450 * h8300-tdep.c (h8300_gdbarch_init): Update.
6451 * frv-tdep.c (frv_gdbarch_init): Update.
6452 * cris-tdep.c (cris_gdbarch_init): Update.
6453 * avr-tdep.c (avr_gdbarch_init): Update.
6454 * arm-tdep.c (arm_gdbarch_init): Update.
6455 * alpha-tdep.c (alpha_gdbarch_init): Update.
6456 * ns32knbsd-nat.c (frame_num_args): Update.
6457 * ns32k-tdep.c (umax_frame_num_args): Update.
6458 * mips-tdep.c (mips_init_frame_pc_first): Update.
6459 * infrun.c (step_over_function): Update.
6460 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6461 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6462 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6463 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6464 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6465 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6466 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6467 * arch-utils.c (init_frame_pc_default): Update.
6468 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6469 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6472 2003-04-11 Andrew Cagney <cagney@redhat.com>
6474 * i387-tdep.c: Update copyright.
6475 (i387_to_double): Delete function.
6476 (double_to_i387): Delete function.
6478 2003-04-10 Andrew Cagney <cagney@redhat.com>
6480 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6481 frame's function's address. Simplify.
6482 (d10v_frame_unwind_cache): Check that the frame's function is
6485 2003-04-10 Jim Blandy <jimb@redhat.com>
6487 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6488 call to set_gdbarch_deprecated_push_arguments.
6490 2003-04-10 Andrew Cagney <cagney@redhat.com>
6492 * frame.c (fprint_frame_id): New function.
6493 (fprint_frame_type, fprint_frame): New function.
6494 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6495 (create_sentinel_frame, get_frame_id): Ditto.
6496 (frame_id_p, frame_id_eq): Ditto.
6497 (frame_id_inner, create_new_frame): Ditto.
6498 (legacy_get_prev_frame, get_prev_frame): Ditto.
6499 (deprecated_update_frame_pc_hack): Ditto.
6500 (frame_register_unwind): Ditto.
6501 (deprecated_update_frame_base_hack): Ditto.
6503 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6505 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6506 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6507 frame_chain function.
6508 * Makefile.in: Add dependencies due to above change.
6510 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6512 * blockframe.c (legacy_frame_chain_valid): Move call to
6513 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6516 2003-04-09 Andrew Cagney <cagney@redhat.com>
6518 * frame.h (struct frame_id): Replace "pc" and "base" with
6519 "stack_addr" and "code_addr". Update comments.
6520 (frame_id_build): Update parameter names and comment.
6521 (struct frame_info): Replace "id_p" and "id" with "this_id".
6522 * dummy-frame.c (dummy_frame_this_id): Update.
6523 * breakpoint.c (print_one_breakpoint): Update.
6524 * frame.c (get_frame_id): Update.
6525 (get_frame_base, frame_id_build): Update.
6526 (create_sentinel_frame, legacy_get_prev_frame): Update.
6527 (deprecated_update_frame_base_hack): Update.
6528 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6529 (frame_id_inner): Ditto.
6531 2003-04-09 Andrew Cagney <cagney@redhat.com>
6533 * defs.h (gdb_print_host_address): Make "addr" parameter a
6535 * utils.c (gdb_print_host_address): Update.
6537 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6539 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6540 register number for R0 is 0.
6542 2003-04-09 J. Brobecker <brobecker@gnat.com>
6544 * frame.h (struct gdbarch): Add opaque structure definition
6545 to avoid a compilation warning on LynxOS 4.0.
6547 2003-04-09 Andrew Cagney <cagney@redhat.com>
6549 * frame.h (struct frame_info): Delete field "pc". Replace
6550 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6552 * frame.c (frame_pc_unwind): Update.
6553 (create_sentinel_frame): Do not set "pc".
6554 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6555 (get_frame_pc): Call frame_pc_unwind.
6556 (deprecated_update_frame_pc_hack): Update.
6557 (create_new_frame): Use "pc" not "->pc".
6559 2003-04-09 Andrew Cagney <cagney@redhat.com>
6561 * frame.c (get_frame_id): Eliminate code updating "frame".
6562 (legacy_get_prev_frame): Ditto.
6563 (get_frame_base): Return id.base directly.
6564 (deprecated_update_frame_base_hack): Update "id.base".
6565 * frame.h (struct frame_info): Delete field "frame".
6567 2003-04-09 Andrew Cagney <cagney@redhat.com>
6569 * NEWS: Mention that the "Sequent family" is obsolete.
6570 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6571 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6572 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6573 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6574 * config/i386/tm-ptx4.h: Obsolete file.
6575 * config/i386/tm-ptx.h: Obsolete file.
6576 * symm-tdep.c: Obsolete file.
6577 * config/i386/symmetry.mt: Obsolete file.
6578 * config/i386/tm-symmetry.h: Obsolete file.
6579 * symm-nat.c: Obsolete file.
6580 * config/i386/nm-symmetry.h: Obsolete file.
6581 * config/i386/xm-symmetry.h: Obsolete file.
6582 * config/i386/symmetry.mh: Obsolete file.
6583 * config/i386/nm-ptx4.h: Obsolete file.
6584 * config/i386/ptx4.mh: Obsolete file.
6585 * config/i386/ptx.mt: Obsolete file.
6586 * config/i386/ptx.mh: Obsolete file.
6587 * config/i386/xm-ptx4.h: Obsolete file.
6588 * config/i386/xm-ptx.h: Obsolete file.
6590 2003-04-09 Andrew Cagney <cagney@redhat.com>
6592 Obsolete mips*-*-mach3*.
6593 * NEWS: Mention that mips*-*-mach3* is obsolete.
6594 * m3-nat.c: Obsolete file.
6595 * config/nm-m3.h: Obsolete file.
6596 * config/mips/tm-mipsm3.h: Obsolete file.
6597 * config/mips/mipsm3.mt: Obsolete file.
6598 * config/mips/mipsm3.mh: Obsolete file.
6599 * config/mips/xm-mipsm3.h: Obsolete file.
6600 * mipsm3-nat.c: Obsolete file.
6601 * configure.host: Obsolete mips-dec-mach3*.
6602 * configure.tgt: Obsolete mips*-*-mach3*.
6604 2003-04-09 Andrew Cagney <cagney@redhat.com>
6606 * doublest.h: Update copyright.
6607 (deprecated_store_floating, deprecated_extract_floating): Rename
6608 store_floating and extract_floating. Update comments.
6609 * doublest.c: Update copyright.
6610 (extract_floating_by_length): Replace extract_floating.
6611 (store_floating_by_length): Replace store_floating.
6612 (deprecated_extract_floating): New function.
6613 (deprecated_store_floating): New function.
6614 (extract_typed_floating): Call extract_floating_by_length.
6615 (store_typed_floating): Call store_floating_by_length.
6616 * x86-64-tdep.c (x86_64_store_return_value): Update.
6617 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6618 (sh64_extract_return_value): Update.
6619 (sh_sh4_register_convert_to_virtual): Update.
6620 (sh_sh64_register_convert_to_virtual): Update.
6621 (sh_sh4_register_convert_to_raw): Update.
6622 (sh_sh64_register_convert_to_raw): Update.
6623 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6624 (rs6000_register_convert_to_raw): Update.
6625 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6626 (ia64_register_convert_to_raw): Update.
6627 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6628 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6629 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6630 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6631 (alpha_register_convert_to_raw): Update.
6633 2003-04-08 Andrew Cagney <cagney@redhat.com>
6635 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6636 * gdbarch.h, gdbarch.c: Re-generate.
6637 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6638 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6639 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6640 conditionally, use frame_pc_unwind as an alternative. Add
6642 * arch-utils.c (init_frame_pc_default): Only call
6643 SAVED_PC_AFTER_CALL when available.
6645 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6647 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6648 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6649 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6650 (start_remote): Ditto.
6651 (handle_inferior_event): Ditto.
6652 (save_inferior_status): Ditto.
6653 (restore_inferior_status): Ditto.
6654 * infcmd.c (attach_command): Ditto.
6655 * fork-child.c (startup_inferior): Ditto.
6656 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6657 * alpha-tdep.c (heuristic_proc_start): Ditto.
6658 * mips-tdep.c (heuristic_proc_start): Ditto.
6659 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6660 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6661 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6662 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6663 * remote-vx.c (vx_create_inferior): Ditto.
6665 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6667 * infrun.c (stop_soon_quietly): Make it an enum, to better
6668 override the default behavior of handle_inferior_event.
6669 (clear_proceed_status): Update uses of stop_soon_quietly to
6670 reflect that it is now an enum.
6671 (start_remote): Ditto.
6672 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6673 is set to handle the new GNU/Linux kernel behavior for
6674 attach/sigstop. Update uses of stop_soon_quietly.
6675 * inferior.h (enum stop_kind): New enum.
6676 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6677 Reset normal handle_inferior_event behavior, afterwards.
6678 * fork-child.c (startup_inferior): Update.
6679 * alpha-tdep.c (heuristic_proc_start): Update.
6680 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6681 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6682 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6683 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6684 * remote-vx.c (vx_create_inferior): Update.
6685 * mips-tdep.c (heuristic_proc_start): Update.
6687 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6689 * disasm.c (dump_insns): Move variables inside loop, or they will
6690 be freed more than once, causing wild memory corruptions.
6691 (gdb_disassembly): Look for the substring "-thread",
6692 instead of "-threads" in the target name, to make sure to find
6693 the 'multi-thread' target. Also, make sure we do the right thing
6694 with the "core" target.
6696 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6698 * mips-tdep.c (mips_print_fp_register): New function, created from
6699 do_fp_register_row(). Registers are now (also) printed as hex.
6700 Only one register is printed per row.
6701 (mips_print_register, do_fp_register_row): Print floating point
6702 registers with mips_print_fp_register().
6704 2003-04-06 Andrew Cagney <cagney@redhat.com>
6706 * valprint.h (inspect_it): Add extern declaration.
6707 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6708 (selectors_info, classes_info): Ditto.
6709 (find_objc_msgcall): Fix indentation.
6710 (objc_printstr): Delete extern declarations.
6712 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6714 2003-04-06 Andrew Cagney <cagney@redhat.com>
6716 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6718 * frame.c (legacy_saved_regs_this_id): Update.
6719 (legacy_get_prev_frame): Update.
6720 * xstormy16-tdep.c: Update comment.
6721 * sparc-tdep.c (sparc_frame_chain): Update comment.
6722 * blockframe.c (legacy_frame_chain_valid): Update.
6724 2003-04-06 Andrew Cagney <cagney@redhat.com>
6726 * valprint.c (val_print_type_code_int): Delete #ifdef
6727 PRINT_TYPELESS_INTEGER code.
6729 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6730 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6731 multi-arch definition.
6732 * gdbarch.h: Re-generate.
6734 2003-04-05 Andrew Cagney <cagney@redhat.com>
6736 Eliminate FRAME_FIND_SAVED_REGS.
6737 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6738 Change FSR parameter to a pointer.
6739 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6740 Assume FSR parameter is a pointer.
6741 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6743 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6744 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6745 saved_regs a pointer.
6746 (hppa_frame_saved_pc): Ditto.
6747 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6748 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6750 (restore_pc_queue): Make fsr a pointer.
6751 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6752 (hppa_frame_chain): Make saved_regs a pointer, call
6753 hppa_frame_init_saved_regs.
6754 * sparc-tdep.c: Include "gdb_assert.h".
6755 (sparc_frame_find_saved_regs): Replace internal_error with
6757 * remote-vxsparc.c (vx_read_register): Delete reference to
6758 FRAME_FIND_SAVED_REGS.
6759 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6760 * gdbarch.h: Regenerate.
6761 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6762 (deprecated_get_frame_saved_regs): Delete declaration.
6763 (struct frame_saved_regs): Delete definition.
6764 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6765 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6766 (hppa_frame_find_saved_regs): Delete declaration.
6767 (FRAME_FIND_SAVED_REGS): Delete macro.
6768 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6769 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6770 FRAME_FIND_SAVED_REGS in comment.
6772 2003-04-05 Andrew Cagney <cagney@redhat.com>
6774 * frame.c (frame_func_unwind, get_frame_func): New functions.
6775 * frame.h (get_frame_func, frame_func_unwind): Declare.
6776 (struct frame_info): Add field "prev_func" for caching the
6777 previous frame's function address.
6778 * arm-tdep.c (arm_frameless_function_invocation): Combine
6779 get_pc_function_start and get_frame_pc into get_frame_func.
6780 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6781 (sh64_nofp_frame_init_saved_regs): Ditto.
6782 * s390-tdep.c (s390_function_start): Ditto.
6783 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6784 (rs6000_frameless_function_invocation): Ditto.
6785 (rs6000_frame_saved_pc): Ditto.
6786 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6787 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6788 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6789 (i386_frame_init_saved_regs): Ditto.
6790 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6791 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6792 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6793 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6794 * blockframe.c (frameless_look_for_prologue): Ditto.
6796 2003-04-05 Andrew Cagney <cagney@redhat.com>
6798 * frame.c (legacy_get_prev_frame): Link prev to next at the
6799 function start. Update comments.
6801 2003-04-05 Andrew Cagney <cagney@redhat.com>
6803 * frame.c (get_frame_id): Update comment.
6804 (legacy_get_prev_frame): Update comment.
6805 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6806 * gdbarch.h: Regenerate.
6807 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6808 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6810 2003-04-05 Andrew Cagney <cagney@redhat.com>
6812 * stack.c (print_frame_info): Use get_frame_pc.
6814 2003-04-04 Andrew Cagney <cagney@redhat.com>
6816 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6817 the frame's type from the unwinder.
6818 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6819 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6820 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6821 (get_frame_base_address): Use get_frame_type.
6822 (get_frame_locals_address, get_frame_args_address): Ditto.
6823 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6824 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6825 (struct frame_info): Add comment explaining why the frame contains
6827 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6828 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6829 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6831 * frame-unwind.h: Include "frame.h".
6832 (struct frame_unwind): Add "type" field.
6833 * Makefile.in (frame_unwind_h): Add $(frame_h).
6835 2003-04-04 Andrew Cagney <cagney@redhat.com>
6837 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6838 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6839 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6841 (d10v_unwind_dummy_id): Use frame_id_build.
6842 * frame.c (find_frame_sal): Use get_frame_pc.
6843 (create_new_frame): Use deprecated_update_frame_pc_hack and
6844 deprecated_update_frame_base_hack.
6845 (create_sentinel_frame): Add comment about ->pc going away.
6846 (get_prev_frame): Add comment about ->pc going away.
6847 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6848 frame_id_build, deprecated_update_frame_pc_hack and
6849 deprecated_update_frame_base_hack.
6850 (select_frame): Use get_frame_pc.
6851 (legacy_saved_regs_this_id): Use frame_id_build.
6853 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6855 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6856 signed integer case.
6857 (classify_argument): Handle enumerations and references.
6859 2003-04-04 Andrew Cagney <cagney@redhat.com>
6861 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6864 2003-04-01 Adam Fedor <fedor@gnu.org>
6866 * gdb/objc-lang.c (selectors_info): Replace calls to
6867 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6868 SYMBOL_NATURAL_NAME.
6869 (classes_info, find_methods): Likewise.
6871 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6873 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6874 ``mach'' to the value determined by bfd_default_set_arch_mach().
6876 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6878 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6879 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6880 (mi-cmd-file.o): Update dependencies.
6882 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6884 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6885 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6887 2003-04-01 Adam Fedor <fedor@gnu.org>
6889 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6890 * language.h (struct language_defn): Add la_demangle.
6891 (language_demangle): Declare.
6892 * language.c (language_demangle): New function.
6893 (unk_lang_demangle): Likewise.
6894 (unknown_language_defn, auto_language_defn, local_language_defn):
6895 Add ukn_lang_demangle.
6896 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6897 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6898 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6899 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6900 * jv-lang.c (java_demangle): New function
6901 (java_language_defn): Use it for la_demangle element.
6902 * objc-lang.c (objc_demangle): Add options argument
6903 (objc_language_defn): Use objc_demangle for la_demangle element.
6904 * maint.c (maintenance_demangle): Replace switch with
6905 call to language_demangle.
6906 * utils.c (fprintf_symbol_filtered): Likewise.
6908 2003-04-01 Andrew Cagney <cagney@redhat.com>
6910 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6911 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6912 PRINT_TYPELESS_INTEGER.
6913 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6914 PUSH_RETURN_ADDRESS.
6916 2003-04-01 Andrew Cagney <cagney@redhat.com>
6918 * Makefile.in (d10v-tdep.o): Update dependencies.
6919 * d10v-tdep.c: Include "frame-base.h".
6920 (d10v_frame_unwind): Make constant.
6921 (d10v_frame_base_address): New function.
6922 (d10v_frame_base): New variable.
6923 (d10v_gdbarch_init): Set frame_base default.
6924 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6926 (d10v_frame_unwind_cache): Set and use "prev_sp".
6927 (d10v_frame_this_id): Use the previous frame's inner most stack
6928 address and this frame's func address for the frame ID. Use
6929 frame_id_build. Don't analyze beyond the current instruction.
6931 2003-04-01 Andrew Cagney <cagney@redhat.com>
6933 * frame.h (get_frame_locals_address, get_frame_args_address):
6934 Refer to the base address, instead of the address of the first
6937 2003-04-01 Andrew Cagney <cagney@redhat.com>
6939 Add frame debug info addresses:
6940 * frame-base.c: New file.
6941 * frame-base.h: New file.
6942 * frame.h (struct frame_base): Add opaque declaration.
6943 (get_frame_base): Update comment.
6944 (get_frame_base_address): Declare.
6945 (get_frame_locals_address): Declare.
6946 (get_frame_args_address): Declare.
6947 (struct frame_info): Add "base" and "base_cache". Update
6948 comments on the unwinder.
6949 * frame.c: Include "frame-base.h".
6950 (get_frame_locals_address): New function.
6951 (get_frame_base_address): New function.
6952 (get_frame_args_address): New function.
6953 * findvar.c (read_var_value): Use get_frame_locals_address and
6954 get_frame_args_address.
6955 * stack.c (frame_info): Use get_frame_locals_address and
6956 get_frame_args_address.
6957 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6958 moved to "frame-base.c".
6959 * printcmd.c (print_frame_nameless_args): Ditto.
6960 * symtab.h (address_class): Update comments.
6961 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6962 get_frame_base_address.
6963 * dwarf2expr.c (execute_stack_op): Ditto.
6964 * Makefile.in (frame_base_h): Define.
6965 (frame.o): Update dependencies.
6966 (frame-base.o): Add dependencies.
6967 (SFILES): Add frame-base.c.
6968 (COMMON_OBS): Add frame-base.o.
6970 2003-04-01 Andrew Cagney <cagney@redhat.com>
6972 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6973 CALL_DUMMY_LENGTH): Ditto.
6974 * gdbarch.c: Re-generate.
6975 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6976 (CALL_DUMMY_LENGTH): Delete macro.
6977 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6978 * arm-tdep.c (arm_gdbarch_init): Ditto.
6979 * avr-tdep.c (avr_gdbarch_init): Ditto.
6980 * cris-tdep.c (cris_gdbarch_init): Ditto.
6981 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6982 * frv-tdep.c (frv_gdbarch_init): Ditto.
6983 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6984 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6985 * i386-tdep.c (i386_gdbarch_init): Ditto.
6986 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6987 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6988 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6989 * mips-tdep.c (mips_gdbarch_init): Ditto.
6990 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6991 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6992 * s390-tdep.c (s390_gdbarch_init): Ditto.
6993 * sh-tdep.c (sh_gdbarch_init): Ditto.
6994 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6995 * v850-tdep.c (v850_gdbarch_init): Ditto.
6996 * vax-tdep.c (vax_gdbarch_init): Ditto.
6997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6999 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7001 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7003 2003-04-01 Andrew Cagney <cagney@redhat.com>
7005 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7006 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7007 * gdbarch.h, gdbarch.c: Re-generate.
7008 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7009 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7010 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7011 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7012 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7013 * infcmd.c (run_stack_dummy): Simplify assuming
7014 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7015 * infrun.c (handle_inferior_event): Ditto.
7016 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7017 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7018 * arm-tdep.c (arm_gdbarch_init): Ditto.
7019 * avr-tdep.c (avr_gdbarch_init): Ditto.
7020 * cris-tdep.c (cris_gdbarch_init): Ditto.
7021 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7022 * frv-tdep.c (frv_gdbarch_init): Ditto.
7023 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7024 * i386-tdep.c (i386_gdbarch_init): Ditto.
7025 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7027 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7028 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7029 * mips-tdep.c (mips_gdbarch_init): Ditto.
7030 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7031 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7032 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7033 * s390-tdep.c (s390_gdbarch_init): Ditto.
7034 * sh-tdep.c (sh_gdbarch_init): Ditto.
7035 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7036 * v850-tdep.c (v850_gdbarch_init): Ditto.
7037 * vax-tdep.c (vax_gdbarch_init): Ditto.
7038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7040 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7042 * symfile.c (symfile_relocate_debug_section): Update call to
7043 bfd_simple_get_relocated_section_contents.
7045 2003-03-31 Andrew Cagney <cagney@redhat.com>
7047 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7048 * gdbarch.h, gdbarch.c: Regenerate.
7049 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7050 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7052 * frame.h (generic_fix_call_dummy): Delete declaration.
7053 * dummy-frame.h: Update comment.
7054 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7057 * sh-tdep.c (sh_gdbarch_init): Ditto.
7058 * s390-tdep.c (s390_gdbarch_init): Ditto.
7059 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7060 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7062 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7063 * i386-tdep.c (i386_gdbarch_init): Ditto.
7064 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7065 * frv-tdep.c (frv_gdbarch_init): Ditto.
7066 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7067 * cris-tdep.c (cris_gdbarch_init): Ditto.
7068 * avr-tdep.c (avr_gdbarch_init): Ditto.
7069 * arm-tdep.c (arm_gdbarch_init): Ditto.
7071 2003-03-31 J. Brobecker <brobecker@gnat.com>
7073 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7074 (INIT_FRAME_AP): Likewise.
7075 (EXTRA_FRAME_INFO): Likewise.
7077 2003-03-31 Andrew Cagney <cagney@redhat.com>
7079 * gdbarch.sh: Include "symfile.h".
7080 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7081 * gdbarch.h, gdbarch.c: Re-generate.
7082 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7083 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7084 call_dummy_address, the default is at entry_point_address.
7085 * v850-tdep.c (v850_gdbarch_init): Ditto.
7086 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7087 * sh-tdep.c (sh_gdbarch_init): Ditto.
7088 * s390-tdep.c (s390_gdbarch_init): Ditto.
7089 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7090 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7091 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7092 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7093 * i386-tdep.c (i386_gdbarch_init): Ditto.
7094 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7095 * frv-tdep.c (frv_gdbarch_init): Ditto.
7096 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7097 * cris-tdep.c (cris_gdbarch_init): Ditto.
7098 * arm-tdep.c (arm_gdbarch_init): Ditto.
7100 2003-03-31 Andrew Cagney <cagney@redhat.com>
7102 * gdbarch.sh (CALL_DUMMY_P): Delete.
7103 * gdbarch.h, gdbarch.c: Re-generate.
7104 * inferior.h (CALL_DUMMY_P): Delete macro.
7105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7106 * vax-tdep.c (vax_gdbarch_init): Update.
7107 * v850-tdep.c (v850_gdbarch_init): Update.
7108 * sparc-tdep.c (sparc_gdbarch_init): Update.
7109 * sh-tdep.c (sh_gdbarch_init): Update.
7110 * s390-tdep.c (s390_gdbarch_init): Update.
7111 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7112 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7113 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7114 * mips-tdep.c (mips_gdbarch_init): Update.
7115 * mcore-tdep.c (mcore_gdbarch_init): Update.
7116 * m68k-tdep.c (m68k_gdbarch_init): Update.
7117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7118 * ia64-tdep.c (ia64_gdbarch_init): Update.
7119 * i386-tdep.c (i386_gdbarch_init): Update.
7120 * h8300-tdep.c (h8300_gdbarch_init): Update.
7121 * frv-tdep.c (frv_gdbarch_init): Update.
7122 * d10v-tdep.c (d10v_gdbarch_init): Update.
7123 * cris-tdep.c (cris_gdbarch_init): Update.
7124 * breakpoint.c (deprecated_frame_in_dummy): Update.
7125 * avr-tdep.c (avr_gdbarch_init): Update.
7126 * alpha-tdep.c (alpha_gdbarch_init): Update.
7127 * arm-tdep.c (arm_gdbarch_init): Update.
7128 * dummy-frame.c (dummy_frame_this_id): Update comments.
7129 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7130 * frame.c (legacy_get_prev_frame): Ditto.
7131 * valops.c (call_function_by_hand): Delete function.
7132 (hand_function_call): Rename to call_function_by_hand
7134 2003-03-30 Andrew Cagney <cagney@redhat.com>
7136 2002-11-10 Klee Dienes <kdienes@apple.com>
7137 * value.h (struct value): Update comment.
7139 2003-03-30 Andrew Cagney <cagney@redhat.com>
7141 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7143 (d10v_gdbarch_init): Do not set fp_regnum.
7145 * frame.c (get_frame_base): Force ID initialization.
7146 (get_prev_frame): Move computation of the frame ID from here ...
7147 (get_frame_id): ... to here.
7148 (legacy_get_prev_frame): Mark the frame ID as valid.
7149 * frame.h (struct frame_info): Add field "id_p".
7151 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7153 * i386-tdep.c (i386_store_struct_return): Removed.
7154 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7156 2003-03-30 Andrew Cagney <cagney@redhat.com>
7158 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7159 * gdbarch.h, gdbarch.c: Regenerate.
7160 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7163 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7164 * i386-tdep.c (i386_gdbarch_init): Ditto.
7165 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7166 * cris-tdep.c (cris_gdbarch_init): Ditto.
7167 * vax-tdep.c (vax_gdbarch_init): Ditto.
7168 * s390-tdep.c (s390_gdbarch_init): Ditto.
7169 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7170 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7171 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7172 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7173 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7174 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7175 * sparc-tdep.c (sparc_gdbarch_init): Update.
7176 * sh-tdep.c (sh_gdbarch_init): Update.
7177 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7178 * mips-tdep.c (mips_gdbarch_init): Update.
7179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7180 * ia64-tdep.c (ia64_gdbarch_init): Update.
7181 * frv-tdep.c (frv_gdbarch_init): Update.
7182 * avr-tdep.c (avr_gdbarch_init): Update.
7183 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7184 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7185 instead of when push_dummy_call is not available.
7187 2003-03-30 Andrew Cagney <cagney@redhat.com>
7189 * infttrace.c: Include "gdbthread.h".
7190 (parent_attach_all): Fix function signature.
7191 (call_ptrace): Update call.
7192 * Makefile.in (infttrace.o): Update dependencies.
7194 2003-03-30 Andrew Cagney <cagney@redhat.com>
7196 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7197 PUSH_RETURN_ADDRESS.
7198 * gdbarch.h, gdbarch.c: Regenerate.
7199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7200 * x86-64-tdep.c (x86_64_init_abi): Update.
7201 * v850-tdep.c (v850_gdbarch_init): Update.
7202 * sparc-tdep.c (sparc_gdbarch_init): Update.
7203 * sh-tdep.c (sh_gdbarch_init): Update.
7204 * s390-tdep.c (s390_gdbarch_init): Update.
7205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7206 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7207 * mips-tdep.c (mips_gdbarch_init): Update.
7208 * mcore-tdep.c (mcore_gdbarch_init): Update.
7209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7210 * ia64-tdep.c (ia64_gdbarch_init): Update.
7211 * i386-tdep.c (i386_gdbarch_init): Update.
7212 * h8300-tdep.c (h8300_gdbarch_init): Update.
7213 * frv-tdep.c (frv_gdbarch_init): Update.
7214 * cris-tdep.c (cris_gdbarch_init): Update.
7215 * avr-tdep.c (avr_gdbarch_init): Update.
7216 * arm-tdep.c (arm_gdbarch_init): Update.
7217 * valops.c (hand_function_call): Update.
7219 2003-03-29 Andrew Cagney <cagney@redhat.com>
7221 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7222 sizeof_call_dummy_words.
7223 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7225 * gdbarch.h: Regenerate.
7227 2003-03-29 Andrew Cagney <cagney@redhat.com>
7229 * infttrace.h: New file.
7230 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7231 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7232 (hpread_read_doc_function_type): Detect an initialized type1.
7233 (hpread_quick_traverse): Initialize mod_name_string.
7234 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7235 (som_solib_get_solib_by_pc): Declare.
7236 (so_lib_thread_start_addr): Declare.
7237 (no_shared_libraries): Declare.
7238 * somread.c (init_import_symbols): Make static. Add forward
7240 * config/pa/nm-hppah.h: Include "infttrace.h" for
7242 (hppa_insert_hw_watchpoint): Declare.
7243 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7244 * hppah-nat.c: Include "gdb_string.h".
7245 (parent_attach_all): Delete extern declaration, moved to
7247 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7249 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7250 * Makefile.in (infttrace_h): Define.
7251 (hpread.o): Update dependencies.
7252 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7253 * hppa-hpux-tdep.c: Include "gdb_string.h".
7254 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7255 * infrun.c (handle_inferior_event): Always initialize
7256 stepped_after_stopped_by_watchpoint. Add default and remove
7257 fallthrough in switch statement.
7258 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7260 (hppa_remove_hw_watchpoint): Ditto.
7262 2003-03-29 Andrew Cagney <cagney@redhat.com>
7264 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7267 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7269 * arm-tdep.c (arm_push_arguments): Delete.
7270 (struct stack_item): New type.
7271 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7272 (arm_store_struct_return): Delte.
7273 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7274 arm_push_arguments or arm_store_struct_return.
7276 2003-03-28 Andrew Cagney <cagney@redhat.com>
7278 * Makefile.in (d10v-tdep.o): Update dependencies.
7279 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7280 * d10v-tdep.c: Include "remote.h".
7281 (target_resume_hook): Delete extern declaration.
7282 (target_wait_loop_hook): Ditto.
7283 (tdisassemble_command): Eliminate assignment in "if" conditional.
7284 (d10v_ts2_register_sim_regno): Eliminate call to
7285 legacy_register_sim_regno.
7286 (d10v_ts3_register_sim_regno): Ditto.
7288 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7290 * thread.c: Reindented.
7292 * linux-proc.c: Ditto.
7294 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7296 * MAINTAINERS (write after approval): Add myself.
7298 2003-03-27 Theodore A. Roth <troth@openavr.org>
7300 * objc-exp.y: Add missing semi-colons.
7302 2003-03-27 Andrew Cagney <cagney@redhat.com>
7304 * regcache.c (write_sp): Delete function and references.
7305 * inferior.h (write_sp): Delete declaration.
7306 * valops.c (hand_function_call): Replace write_sp with
7308 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7309 (sparc_pop_frame): Ditto.
7311 2003-03-27 Andrew Cagney <cagney@redhat.com>
7313 * NEWS: Mention removal of support for hppa*-*-bsd* and
7314 hppa*-*-osf* natives, and hppa*-*-pro* target.
7315 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7316 * config/pa/xm-pa.h: Obsolete file.
7317 * config/pa/xm-hppab.h: Obsolete file.
7318 * config/pa/nm-hppab.h: Obsolete file.
7319 * config/pa/tm-hppab.h: Obsolete file.
7320 * config/pa/tm-hppao.h: Obsolete file.
7321 * config/pa/nm-hppao.h: Obsolete file.
7322 * config/pa/tm-pro.h: Obsolete file.
7323 * config/pa/hppaosf.mt: Obsolete file.
7324 * config/pa/hppaosf.mh: Obsolete file.
7325 * config/pa/hppapro.mt: Obsolete file.
7326 * config/pa/hppabsd.mt: Obsolete file.
7327 * config/pa/hppabsd.mh: Obsolete file.
7328 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7329 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7332 2003-03-27 Andrew Cagney <cagney@redhat.com>
7334 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7335 push_arguments. Don't set push_return_address or write_sp.
7336 (d10v_push_dummy_call): Replace d10v_push_arguments.
7337 (d10v_push_return_address, d10v_write_sp): Delete function,
7338 handled by push_dummy_call.
7340 2003-03-26 Andrew Cagney <cagney@redhat.com>
7342 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7343 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7344 regcache and dummy_addr parameters.
7345 * gdbarch.h, gdbarch.c: Re-generate.
7346 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7347 available; assume it will handle stack alignment and return
7348 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7349 legacy_push_arguments.
7350 (legacy_push_arguments): Rename default_push_arguments.
7351 * value.h (legacy_push_arguments): Rename default_push_arguments.
7352 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7353 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7354 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7355 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7356 * config/i386/tm-symmetry.h: Update.
7357 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7358 * x86-64-tdep.c (x86_64_init_abi): Update.
7359 * v850-tdep.c (v850_gdbarch_init): Update.
7360 * sparc-tdep.c (sparc_gdbarch_init): Update.
7361 * sh-tdep.c (sh_gdbarch_init): Update.
7362 * s390-tdep.c (s390_gdbarch_init): Update.
7363 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7364 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7365 * mips-tdep.c (mips_gdbarch_init): Update.
7366 * mcore-tdep.c (mcore_gdbarch_init): Update.
7367 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7368 * ia64-tdep.c (ia64_gdbarch_init): Update.
7369 * i386-tdep.c (i386_gdbarch_init): Update.
7370 * hppa-tdep.c (hppa_gdbarch_init): Update.
7371 * h8300-tdep.c (h8300_gdbarch_init): Update.
7372 * frv-tdep.c (frv_gdbarch_init): Update.
7373 * d10v-tdep.c (d10v_gdbarch_init): Update.
7374 * cris-tdep.c (cris_gdbarch_init): Update.
7375 * avr-tdep.c (avr_gdbarch_init): Update.
7376 * arm-tdep.c (arm_gdbarch_init): Update.
7377 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7378 * alpha-tdep.c (alpha_gdbarch_init): Update.
7380 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7382 * signals/signals.c (do_target_signal_to_host): Correct realtime
7385 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7387 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7388 (struct sal_chain, map_catch_names): Remove.
7389 (catch_exception_command_1): Don't call
7390 handle_gnu_4_16_catch_command.
7392 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7394 From Mark Dettinger <dettinge@de.ibm.com>:
7395 * dwarf2cfi.c (read_2u): Increment pointer by two.
7397 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7399 * signals/signals.c: Fix typos in last change.
7401 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7403 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7404 not already defined. Use __SIGRTMIN if available.
7405 (target_signal_from_host): Remove SIGRTMIN block.
7406 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7407 the signal is within the realtime range.
7409 2003-03-25 Adam Fedor <fedor@gnu.org>
7411 * Makefile.in (infrun.o): Add $(language_h)
7412 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7413 for language specific trampolines.
7414 * language.h (struct language_defn): Add skip_trampoline.
7415 (skip_language_trampoline): Declare.
7416 * language.c (unk_lang_trampoline, skip_language_trampoline):
7418 (unknown_language_defn, auto_language_defn, local_language_defn):
7419 Add ukn_lang_trampoline.
7420 * ada-lang.c (ada_language_defn): Add NULL for language
7421 specific skip_trampoline.
7422 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7423 scm-lang.c: Likewise.
7424 * objc-lang.c (objc_skip_trampoline): New function.
7425 (objc_language_defn): Add objc_skip_trampoline.
7427 2003-03-25 Andrew Cagney <cagney@redhat.com>
7429 * frame.c (get_prev_frame): Delay validating a frame's ID -
7430 non-NULL, didn't go backwards - until an attempt to unwind it to
7433 2003-03-25 Andrew Cagney <cagney@redhat.com>
7435 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7436 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7437 * gdbarch.h, gdbarch.c: Re-generate.
7438 * config/sparc/tm-sparc.h
7439 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7440 * sparc-tdep.c (sparc_gdbarch_init): Set
7441 deprecated_extra_stack_alignment_needed.
7442 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7444 extra_stack_alignment_needed.
7445 * v850-tdep.c (v850_gdbarch_init): Ditto.
7446 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7447 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7448 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7449 * cris-tdep.c (cris_gdbarch_init): Ditto.
7450 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7453 2003-03-25 Andrew Cagney <cagney@redhat.com>
7455 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7456 STORE_STRUCT_RETURN.
7457 * gdbarch.h, gdbarch.c: Regenerate.
7458 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7459 (d10v_push_arguments): Set the struct return register.
7460 (d10v_gdbarch_init): Update.
7461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7462 * x86-64-tdep.c (x86_64_init_abi): Update.
7463 * vax-tdep.c (vax_gdbarch_init): Update.
7464 * v850-tdep.c (v850_gdbarch_init): Update.
7465 * sparc-tdep.c (sparc_gdbarch_init): Update.
7466 * sh-tdep.c (sh_gdbarch_init): Update.
7467 * s390-tdep.c (s390_gdbarch_init): Update.
7468 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7469 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7470 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7471 * mips-tdep.c (mips_gdbarch_init): Update.
7472 * mcore-tdep.c (mcore_gdbarch_init): Update.
7473 * m68k-tdep.c (m68k_gdbarch_init): Update.
7474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7475 * ia64-tdep.c (ia64_gdbarch_init): Update.
7476 * i386-tdep.c (i386_gdbarch_init): Update.
7477 * hppa-tdep.c (hppa_gdbarch_init): Update.
7478 * h8300-tdep.c (h8300_gdbarch_init): Update.
7479 * frv-tdep.c (frv_gdbarch_init): Update.
7480 * cris-tdep.c (cris_gdbarch_init): Update.
7481 * avr-tdep.c (avr_gdbarch_init): Update.
7482 * arm-tdep.c (arm_gdbarch_init): Update.
7483 * alpha-tdep.c (alpha_gdbarch_init): Update.
7485 2003-03-25 Andrew Cagney <cagney@redhat.com>
7487 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7488 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7489 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7490 * gdbarch.h, gdbarch.c: Regenerate.
7491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7492 call_dummy_stack_adjust_p.
7493 * vax-tdep.c (vax_gdbarch_init): Ditto.
7494 * v850-tdep.c (v850_gdbarch_init): Ditto.
7495 * sh-tdep.c (sh_gdbarch_init): Ditto.
7496 * s390-tdep.c (s390_gdbarch_init): Ditto.
7497 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7498 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7499 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7500 * mips-tdep.c (mips_gdbarch_init): Ditto.
7501 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7502 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7503 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7504 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7505 * i386-tdep.c (i386_gdbarch_init): Ditto.
7506 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7507 * frv-tdep.c (frv_gdbarch_init): Ditto.
7508 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7509 * cris-tdep.c (cris_gdbarch_init): Ditto.
7510 * avr-tdep.c (avr_gdbarch_init): Ditto.
7511 * arm-tdep.c (arm_gdbarch_init): Ditto.
7512 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7513 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7514 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7515 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7516 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7517 call_dummy_stack_adjust_p.
7518 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7519 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7520 * sparc-tdep.c (sparc32_push_arguments): Update.
7521 * valops.c (hand_function_call): Update.
7523 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7526 set_gdbarch_char_signed.
7528 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7531 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7533 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7535 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7536 (_initialize_arm_tdep): Don't set tm_print_insn.
7538 2003-03-24 Adam Fedor <fedor@gnu.org>
7540 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7541 * objc-lang.h: Add multiple inclusion protection.
7542 (start_msglist, add_msglist, end_msglist): Additional declarations.
7544 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7546 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7547 value was renamed to ARM_FLOAT_SOFT_FPA.
7549 2003-03-23 Andrew Cagney <cagney@redhat.com>
7551 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7552 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7553 * gdbarch.h, gdbarch.c: Regenerate.
7554 * valops.c (hand_function_call): Update.
7555 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7556 * frame.c (legacy_saved_regs_this_id): Update.
7557 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7558 * dummy-frame.h: Update.
7559 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7560 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7561 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7562 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7563 * config/m68k/tm-sun3.h: Update.
7564 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7565 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7566 * x86-64-tdep.c (x86_64_init_abi): Update.
7567 * vax-tdep.c (vax_gdbarch_init): Update.
7568 * v850-tdep.c (v850_gdbarch_init): Update.
7569 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7570 * sh-tdep.c (sh_gdbarch_init): Update.
7571 * s390-tdep.c (s390_gdbarch_init): Update.
7572 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7573 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7574 (frame_get_saved_regs): Update.
7575 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7576 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7577 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7578 * mips-tdep.c (mips_gdbarch_init): Update.
7579 * mcore-tdep.c (mcore_gdbarch_init): Update.
7580 * m68k-tdep.c (m68k_gdbarch_init): Update.
7581 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7582 * ia64-tdep.c (ia64_gdbarch_init): Update.
7583 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7584 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7585 (i386_interix_back_one_frame): Update.
7586 * hppa-tdep.c (hppa_gdbarch_init): Update.
7587 (hppa_init_extra_frame_info): Update.
7588 * h8300-tdep.c (h8300_gdbarch_init): Update.
7589 * frv-tdep.c (frv_gdbarch_init): Update.
7590 * cris-tdep.c (cris_gdbarch_init): Update.
7591 * avr-tdep.c (avr_gdbarch_init): Update.
7592 * arm-tdep.c (arm_gdbarch_init): Update.
7593 * alpha-tdep.c (alpha_gdbarch_init): Update.
7595 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7597 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7598 (arm_get_fp_model): Declare.
7599 * arm-tdep.c (fp_model_strings): New string array.
7600 (arm_fp_model, current_fp_model): New variables.
7601 (arm_get_fp_model): New function.
7602 (arm_set_fp): New function.
7603 (set_fp_model_sfunc): New function.
7604 (show_fp_model): New function.
7605 (_initialize_arm_tdep): Add new command to set/show the FPU.
7606 (arm_extract_return_value): Use arm_get_fp_model.
7607 (arm_store_return_value): Likewise.
7608 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7609 to initialize the floating-point data types.
7610 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7613 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7615 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7616 the current setting of each value.
7617 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7618 new_set and new_show. Use add_setshow_cmd_full and
7619 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7620 commands and add new version as subcommands of "set/show arm".
7622 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7624 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7625 (set_arm_command, show_arm_command): New functions.
7626 (_initialize_arm_tdep): Add them.
7627 (num_disassembly_options): Renamed from num_flavor_options.
7628 (valid_disassembly_styles): Renamed from valid_flavors.
7629 (disassembly_style): Renamed from disassembly_flavor.
7630 (set_disassembly_style_sfunc): Renamed from
7631 set_disassembly_flavor_sfunc.
7632 (set_disassembly_style): Renamed from set_disassembly_flavor.
7633 (arm_othernames): Updated.
7634 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7635 command. Add "set/show arm disassembly" commands. Deprecate
7636 "othernames" command.
7638 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7640 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7641 (arm-tdep.o): Depend on elf_arm_h.
7643 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7645 * Makefile.in (coff_internal_h): Define.
7646 (arm-tdep.o): Update dependencies.
7648 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7650 * arm-tdep.c (prologue_cache): Delete.
7651 (check_prologue_cache, save_prologue_cache): Delete.
7652 (arm_scan_prologue): Don't check or update the prologue_cache.
7653 (arm_gdb_arch_init): Don't initialize it.
7654 (_initialize_arm_tdep): Likewise.
7656 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7658 * MAINTAINERS (tui): Maintainer of tui code.
7660 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7662 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7663 (i386-cygwin-tdep.o): Add dependencies.
7664 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7665 * i386-cygwin-tdep.c: New file.
7666 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7667 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7669 2003-03-20 Andrew Cagney <cagney@redhat.com>
7671 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7672 (handle_inferior_event): Remove code calling
7673 DYNAMIC_TRAMPOLINE_NEXTPC.
7675 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7676 already has a full path.
7678 * main.c (gdb_main): Return 1.
7679 (captured_main): Call error to report an invalid interpreter.
7681 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7682 * alpha-osf1-tdep.c: Include "gdb_string.h".
7684 2003-03-19 J. Brobecker <brobecker@gnat.com>
7686 Continuing work to convert the hppa targets to multiarch partial.
7688 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7689 method, now that hppa_push_dummy_frame has a conformant prototype.
7690 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7691 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7692 for the switch to multiarch partial.
7694 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7696 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7697 when iss is issNull.
7699 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7701 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7702 NUM_REGS bounds check.
7704 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7706 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7707 * mips-tdep.c (gdb_assert.h): Include.
7708 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7709 (mips_register_name): Handle integer registers explicitly. Add
7711 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7712 (mips_lsi33k_reg_names): Don't list integer registers; they're
7713 handled by mips_register_name() now.
7714 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7715 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7716 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7717 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7718 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7720 2003-03-18 Andrew Cagney <cagney@redhat.com>
7722 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7724 * gdbtypes.h (print_scalar_formatted): Update declaration.
7725 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7727 2003-03-18 J. Brobecker <brobecker@gnat.com>
7729 * infrun.c (observer.h): Add #include.
7730 (normal_stop): Add call to observer_notify_normal_stop.
7731 * Makefile.in (infrun.o): Add dependency on observer.h.
7733 2003-03-18 J. Brobecker <brobecker@gnat.com>
7735 Continuing work to convert the hppa targets to multiarch partial.
7736 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7737 parameter. Reformat comment.
7738 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7739 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7740 to match new profile.
7742 2003-03-18 J. Brobecker <brobecker@gnat.com>
7744 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7745 appear to be working in any case.
7747 2003-03-18 J. Brobecker <brobecker@gnat.com>
7749 * observer.c (observer_test_first_observer): New static variable.
7750 (observer_test_second_observer): Likewise.
7751 (observer_test_third_observer): Likewise.
7752 (observer_test_first_notification_function): New static function.
7753 (observer_test_second_notification_function): Likewise.
7754 (observer_test_third_notification_function): Likewise.
7756 2003-03-17 J. Brobecker <brobecker@gnat.com>
7758 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7759 * somsolib.c (gdb_assert.h): Likewise.
7760 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7761 (somsolib.o): Likewise.
7763 2003-03-17 Andrew Cagney <cagney@redhat.com>
7765 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7766 BFD. Simplify setting of di.endian.
7768 2003-03-17 Andrew Cagney <cagney@redhat.com>
7770 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7771 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7773 From Elena Zannoni <ezannoni@redhat.com>
7774 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7775 vector and floating-point parameters.
7776 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7778 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7780 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7782 * MAINTAINERS: Remove my name from several maintainership roles.
7784 2003-03-17 Andrew Cagney <cagney@redhat.com>
7786 Fix frame off-by-one bug.
7787 * frame-unwind.h (frame_this_id_ftype): Replace
7788 frame_unwind_id_ftype.
7789 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7790 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7791 with "prev_register".
7792 * frame-unwind.c (frame_unwind_find_by_pc): Return
7793 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7795 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7796 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7797 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7798 (dummy_frame_unwind): Update.
7799 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7800 sentinel_frame_register_unwind.
7801 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7802 (sentinel_frame_unwinder): Update.
7803 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7804 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7805 * frame.c (create_sentinel_frame): Update. Initialize
7806 "prologue_cache" instead of "unwind_cache".
7807 (frame_register_unwind): Call this frame's prev_register with the
7808 next frame and this frame's prologue cache.
7809 (get_prev_frame): Simplify. Always call prev frame's this_id with
7810 this frame and prev frame's prologue cache. Document that this
7811 call is shifted one to the left when compared to the
7812 frame_register_unwind call.
7813 (legacy_saved_regs_prev_register): Replace
7814 frame_saved_regs_register_unwind.
7815 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7816 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7817 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7818 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7819 (d10v_frame_unwind): Update.
7820 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7821 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7822 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7823 "saved_regs" with "this_saved_regs".
7825 2003-03-16 Andrew Cagney <cagney@redhat.com>
7827 * frame.c (frame_pop): Don't call target_store_registers. Fix
7828 problem reported by Mark Kettenis.
7830 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7832 * i386-tdep.c (i386_register_type): Renamed from
7833 i386_register_virtual_type. Adjust function signature.
7834 (i386_gdbarch_init): Set register_type instead of
7835 deprecated_max_register_raw_size,
7836 deprecated_max_register_virtual_size and register_virtual_type.
7838 2003-03-14 Andrew Cagney <cagney@redhat.com>
7840 * frame.c (get_prev_frame): When a legacy frame, always call
7841 legacy_get_prev_frame. Simplify unwind code using assumption that
7842 the unwinder is new.
7843 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7844 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7845 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7847 2003-03-14 Andrew Cagney <cagney@redhat.com>
7849 * frame.c (get_saved_register): Delete function.
7850 * frame.h (get_saved_register): Delete declaration.
7851 * xstormy16-tdep.c: Update comment.
7852 * regcache.h: Update comments.
7853 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7854 get_saved_register and extract_address, use
7855 frame_read_unsigned_register.
7856 (sparc_frame_saved_pc): Ditto.
7857 (sparc_get_saved_register): Instead of get_saved_register, use
7859 (sparc_pop_frame): Ditto.
7860 * findvar.c: Update comments.
7861 (value_of_register): Call frame_register instead of
7863 (value_from_register): Ditto.
7864 * config/sparc/tm-sparc.h: Update comment.
7865 * breakpoint.c: Update comment.
7867 2003-03-14 Andrew Cagney <cagney@redhat.com>
7869 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7871 * gdbarch.h, gdbarch.c: Re-generate.
7872 * frame.h: Update comments.
7873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7874 * x86-64-tdep.c (x86_64_init_abi): Update.
7875 * sparc-tdep.c (sparc_gdbarch_init): Update.
7876 * sh-tdep.c (sh_gdbarch_init): Update.
7877 * mips-tdep.c (mips_gdbarch_init): Update.
7878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7879 * cris-tdep.c (cris_gdbarch_init): Update.
7880 * ia64-tdep.c (ia64_gdbarch_init): Update.
7881 * frame.c (frame_register): Update.
7882 (get_saved_register): Update.
7883 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7885 2003-03-13 Andrew Cagney <cagney@redhat.com>
7887 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7888 * gdbarch.h, gdbarch.c: Regenerate.
7889 * valops.c (hand_function_call): Update comment.
7890 * stack.c (return_command): Update comment.
7891 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7892 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7893 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7894 * x86-64-tdep.c (x86_64_init_abi): Update.
7895 * vax-tdep.c (vax_gdbarch_init): Update.
7896 * v850-tdep.c (v850_gdbarch_init): Update.
7897 * sparc-tdep.c (sparc_gdbarch_init): Update.
7898 * sh-tdep.c (sh_gdbarch_init): Update.
7899 * s390-tdep.c (s390_gdbarch_init): Update.
7900 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7901 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7902 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7903 * mips-tdep.c (mips_gdbarch_init): Update.
7904 * mcore-tdep.c (mcore_gdbarch_init): Update.
7905 * m68k-tdep.c (m68k_gdbarch_init): Update.
7906 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7907 * ia64-tdep.c (ia64_gdbarch_init): Update.
7908 * i386-tdep.c (i386_gdbarch_init): Update.
7909 * hppa-tdep.c (hppa_gdbarch_init): Update.
7910 * h8300-tdep.c (h8300_gdbarch_init): Update.
7911 * frv-tdep.c (frv_gdbarch_init): Update.
7912 * cris-tdep.c (cris_gdbarch_init): Update.
7913 * avr-tdep.c (avr_gdbarch_init): Update.
7914 * arm-tdep.c (arm_gdbarch_init): Update.
7915 * alpha-tdep.c (alpha_gdbarch_init): Update.
7917 2003-03-13 Andrew Cagney <cagney@redhat.com>
7919 * frame.c (legacy_frame_p): New function.
7920 (get_prev_frame): Use legacy_frame_p.
7921 * frame.h (legacy_frame_p): Declare.
7923 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7925 * MAINTAINERS (write after approval): Alphabetically
7928 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7930 * MAINTAINERS (write after approval): Add myself.
7932 2003-03-12 Andrew Cagney <cagney@redhat.com>
7934 * frame.c (get_prev_frame): Rename the frame parameter to
7936 (get_next_frame, legacy_get_prev_frame): Ditto.
7938 2003-03-12 Andrew Cagney <cagney@redhat.com>
7940 * frame.c (get_current_frame): Check target_has_registers before
7941 checking target_has_stack.
7942 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7943 instead of deprecated_selected_frame.
7944 * findvar.c (value_of_register): Pass "frame", not
7945 deprecated_selected_frame, to value_of_builtin_reg.
7947 2003-03-12 Andrew Cagney <cagney@redhat.com>
7949 * regcache.c (regcache_cooked_write_signed): New function.
7950 (regcache_cooked_write_unsigned): New function.
7951 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7952 (regcache_cooked_read_signed): Fix regnum in range assertion.
7953 * regcache.h (regcache_cooked_write_signed): Declare.
7954 (regcache_cooked_write_unsigned): Declare.
7956 2003-03-12 Andrew Cagney <cagney@redhat.com>
7958 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7959 * gdbarch.h, gdbarch.c: Re-generate.
7960 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7961 * x86-64-tdep.h: Update.
7962 * x86-64-tdep.c (x86_64_init_abi): Update.
7963 * v850-tdep.c (v850_gdbarch_init): Update.
7964 * sparc-tdep.c (sparc_gdbarch_init): Update.
7965 * sh-tdep.c (sh_gdbarch_init): Update.
7966 * s390-tdep.c (s390_gdbarch_init): Update.
7967 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7968 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7969 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7970 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7971 * mips-tdep.c (mips_gdbarch_init): Update.
7972 * mcore-tdep.c (mcore_gdbarch_init): Update.
7973 * m68k-tdep.c (m68k_gdbarch_init): Update.
7974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7975 * ia64-tdep.c (ia64_gdbarch_init): Update.
7976 * i386-tdep.c (i386_gdbarch_init): Update.
7977 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7978 * hppa-tdep.c (hppa_gdbarch_init): Update.
7979 * h8300-tdep.c (h8300_gdbarch_init): Update.
7980 * frv-tdep.c (frv_gdbarch_init): Update.
7981 * cris-tdep.c (cris_gdbarch_init): Update.
7982 * avr-tdep.c (avr_gdbarch_init): Update.
7983 * arm-tdep.c (arm_gdbarch_init): Update.
7984 * alpha-tdep.c (alpha_gdbarch_init): Update.
7985 * sh-tdep.c (sh_init_extra_frame_info): Update.
7986 (sh64_init_extra_frame_info): Update.
7987 * ns32knbsd-nat.c (frame_num_args): Update.
7988 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7989 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7990 (xstormy16_frame_chain_valid): Update.
7991 * vax-tdep.c (vax_saved_pc_after_call): Update.
7992 * v850-tdep.c (v850_frame_chain): Update.
7993 (v850_pop_frame): Update.
7994 (v850_init_extra_frame_info): Update.
7995 * sparc-tdep.c (setup_arbitrary_frame): Update.
7996 * ns32k-tdep.c (umax_frame_num_args): Update.
7997 * s390-tdep.c (s390_pop_frame_regular): Update.
7998 * mn10300-tdep.c (mn10300_frame_chain): Update.
7999 (mn10300_pop_frame_regular): Update.
8000 (mn10300_init_extra_frame_info): Update.
8001 * mips-tdep.c (mips_init_frame_pc_first): Update.
8002 (mips_frame_chain): Update.
8003 (mips_pop_frame): Update.
8004 * mcore-tdep.c (mcore_frame_chain): Update.
8005 (mcore_pop_frame): Update.
8006 (mcore_init_extra_frame_info): Update.
8007 * arch-utils.c (init_frame_pc_default): Update.
8008 * m68k-tdep.c (isi_frame_num_args): Update.
8009 (delta68_frame_num_args): Update.
8010 (news_frame_num_args): Update.
8011 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8012 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8013 (alpha_frame_chain): Update.
8014 (alpha_pop_frame): Update.
8015 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8016 (hppa_init_extra_frame_info): Update.
8017 (hppa_frame_chain): Update.
8018 (hppa_frame_chain_valid): Update.
8019 * cris-tdep.c (cris_init_extra_frame_info): Update.
8020 * avr-tdep.c (avr_init_extra_frame_info): Update.
8021 * arm-tdep.c (arm_frame_chain_valid): Update.
8022 (arm_init_extra_frame_info): Update.
8023 (arm_pop_frame): Update.
8024 * frame.c (frame_pc_unwind): Update.
8025 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8026 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8027 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8028 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8029 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8030 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8032 2003-03-12 Andrew Cagney <cagney@redhat.com>
8034 Eliminate the need for POP_FRAME.
8035 * frame.c (do_frame_unwind_register): New function.
8036 (frame_pop): When no POP_FRAME, pop the frame using register
8037 unwind and a scratch regcache.
8038 (frame_saved_regs_pop): Delete function.
8039 (trad_frame_unwinder): Update.
8040 * d10v-tdep.c (d10v_frame_pop): Delete function.
8041 (d10v_frame_unwind): Update.
8042 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8043 (sentinel_frame_unwinder): Update.
8044 * dummy-frame.c (dummy_frame_pop): Delete function.
8045 (dummy_frame_unwind): Update.
8046 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8047 (struct frame_unwind): Update.
8049 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8051 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8052 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8053 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8054 Do range checks on register number obtained from debugging info.
8055 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8056 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8057 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8059 (do_fp_register_row): Fix typo which caused double type to be
8060 used when attempting to unpack a float.
8062 2003-03-11 J. Brobecker <brobecker@gnat.com>
8064 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8066 2003-03-11 Andrew Cagney <cagney@redhat.com>
8068 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8069 frame. Problem found by Corinna Vinschen.
8071 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8073 * doublest.c (floatformat_from_length): Accept also
8074 the real size of 'long double' type.
8076 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8078 From Klee Dienes <kdienes@apple.com>:
8079 * breakpoint.c (bpstat_copy): Copy the command lines as well
8080 as the old value, to match what is freed in bpstat_clear.
8082 2003-03-10 David Carlton <carlton@math.stanford.edu>
8084 * minsyms.c (add_minsym_to_hash_table): Replace
8085 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8086 (compare_minimal_symbols, compact_minimal_symbols)
8087 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8088 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8089 of DEPRECATED_SYMBOL_MATCHES_NAME.
8090 (lookup_minimal_symbol_solib_trampoline): Ditto.
8092 2003-03-10 Andrew Cagney <cagney@redhat.com>
8094 * regcache.h (regcache_cooked_read_ftype): Define.
8095 (regcache_save, regcache_restore): Add a cooked_read parameter.
8096 * regcache.c (regcache_save, regcache_restore): Update.
8097 (do_cooked_read): New function.
8098 (regcache_cpy): Pass do_cooked_read to regcache_save and
8101 2003-03-10 Andrew Cagney <cagney@redhat.com>
8103 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8104 * gdbarch.h, gdbarch.c: Re-generate.
8105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8106 * x86-64-tdep.h: Update.
8107 * x86-64-tdep.c (x86_64_init_abi): Update.
8108 * v850-tdep.c (v850_gdbarch_init): Update.
8109 * sparc-tdep.c (sparc_gdbarch_init): Update.
8110 * sh-tdep.c (sh_gdbarch_init): Update.
8111 * s390-tdep.c (s390_gdbarch_init): Update.
8112 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8113 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8114 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8115 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8116 * mips-tdep.c (mips_gdbarch_init): Update.
8117 * mcore-tdep.c (mcore_gdbarch_init): Update.
8118 * m68k-tdep.c (m68k_gdbarch_init): Update.
8119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8120 * ia64-tdep.c (ia64_gdbarch_init): Update.
8121 * i386-tdep.c (i386_gdbarch_init): Update.
8122 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8123 * hppa-tdep.c (hppa_gdbarch_init): Update.
8124 * h8300-tdep.c (h8300_gdbarch_init): Update.
8125 * frv-tdep.c (frv_gdbarch_init): Update.
8126 * cris-tdep.c (cris_gdbarch_init): Update.
8127 * avr-tdep.c (avr_gdbarch_init): Update.
8128 * arm-tdep.c (arm_gdbarch_init): Update.
8129 * alpha-tdep.c (alpha_gdbarch_init): Update.
8130 * sh-tdep.c (sh_init_extra_frame_info): Update.
8131 (sh64_init_extra_frame_info): Update.
8132 * ns32knbsd-nat.c (frame_num_args): Update.
8133 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8134 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8135 (xstormy16_frame_chain_valid): Update.
8136 * vax-tdep.c (vax_saved_pc_after_call): Update.
8137 * v850-tdep.c (v850_frame_chain): Update.
8138 (v850_pop_frame): Update.
8139 (v850_init_extra_frame_info): Update.
8140 * sparc-tdep.c (setup_arbitrary_frame): Update.
8141 * ns32k-tdep.c (umax_frame_num_args): Update.
8142 * s390-tdep.c (s390_pop_frame_regular): Update.
8143 * mn10300-tdep.c (mn10300_frame_chain): Update.
8144 (mn10300_pop_frame_regular): Update.
8145 (mn10300_init_extra_frame_info): Update.
8146 * mips-tdep.c (mips_init_frame_pc_first): Update.
8147 (mips_frame_chain): Update.
8148 (mips_pop_frame): Update.
8149 * mcore-tdep.c (mcore_frame_chain): Update.
8150 (mcore_pop_frame): Update.
8151 (mcore_init_extra_frame_info): Update.
8152 * arch-utils.c (init_frame_pc_default): Update.
8153 * m68k-tdep.c (isi_frame_num_args): Update.
8154 (delta68_frame_num_args): Update.
8155 (news_frame_num_args): Update.
8156 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8157 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8158 (alpha_frame_chain): Update.
8159 (alpha_pop_frame): Update.
8160 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8161 (hppa_init_extra_frame_info): Update.
8162 (hppa_frame_chain): Update.
8163 (hppa_frame_chain_valid): Update.
8164 * cris-tdep.c (cris_init_extra_frame_info): Update.
8165 * avr-tdep.c (avr_init_extra_frame_info): Update.
8166 * arm-tdep.c (arm_frame_chain_valid): Update.
8167 (arm_init_extra_frame_info): Update.
8168 (arm_pop_frame): Update.
8169 * frame.c (frame_pc_unwind): Update.
8170 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8171 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8172 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8173 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8174 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8175 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8177 2003-03-10 Andrew Cagney <cagney@redhat.com>
8179 * gdbarch.sh (gdbarch_unwind_pc): New method.
8180 * gdbarch.h, gdbarch.c: Regenerate.
8181 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8182 but use read_pc and FRAME_SAVED_PC as fall backs.
8183 (frame_saved_regs_pc_unwind): Delete function.
8184 (trad_frame_unwinder): Update.
8185 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8186 (struct frame_unwind): Update.
8187 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8188 (dummy_frame_unwind): Update.
8189 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8190 (sentinel_frame_unwinder): Update.
8191 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8192 (d10v_frame_unwind): Update.
8193 (d10v_unwind_pc): New function.
8194 (d10v_gdbarch_init): Set unwind_pc.
8196 2003-03-10 Andrew Cagney <cagney@redhat.com>
8198 * gdbarch.h: Re-generate.
8200 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8202 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8205 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8207 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8209 2003-03-08 Andrew Cagney <cagney@redhat.com>
8211 * cli-out.c: Update copyright.
8212 (cli_out_data): Define typedef. Use instead of ui_out_data.
8214 2003-03-08 Andrew Cagney <cagney@redhat.com>
8216 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8219 2003-03-07 Andrew Cagney <cagney@redhat.com>
8221 * gdbarch.sh: Don't generate two macro definitions when an
8222 undefined macro taking no arguments.
8223 * gdbarch.h: Regenerate.
8225 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8227 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8228 (x86_64_unwind_dummy_id): New functions.
8229 (x86_64_init_abi): Register these two new functions.
8231 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8233 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8234 (x86_64_skip_prologue): Move prologue detection to
8236 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8238 2003-03-05 Andrew Cagney <cagney@redhat.com>
8240 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8241 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8242 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8243 to use unwind_dummy_id when a dummy frame.
8244 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8246 * gdbarch.h, gdbarch.c: Regneerate.
8248 2003-03-05 Andrew Cagney <cagney@redhat.com>
8250 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8251 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8252 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8255 2003-03-05 Andrew Cagney <cagney@redhat.com>
8257 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8258 (struct d10v_unwind_cache): Delete field "frameless". Replace
8259 "next_addr" with "sp_offset". Add "r11_offset".
8260 (d10v_frame_unwind_cache): Update.
8261 (prologue_find_regs): Update. When "mv r11, sp", save the
8262 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8263 RN was saved in r11_offset.
8265 2003-03-05 Andrew Cagney <cagney@redhat.com>
8267 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8268 cached PC value in the next frame.
8270 2003-03-05 Andrew Cagney <cagney@redhat.com>
8272 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8273 "id_unwind_cache" with "id".
8274 (frame_id_unwind): Delete declaration.
8275 * frame.c (frame_id_unwind): Delete function.
8276 (get_prev_frame): Call the frame id unwind method directly. Store
8277 the returned next frame's ID value in NEXT_FRAME. Note that there
8278 is a problem with the wrong unwind ID being called with the wrong
8281 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8283 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8285 2003-03-05 James Ingham <jingham@apple.com>
8286 Daniel Jacobowitz <drow@mvista.com>
8288 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8289 (auto_cp_abi): New variable.
8290 (current_cp_abi, num_cp_abis): Make static.
8291 (CP_ABI_MAX): Define.
8292 (cp_abis): Turn into an array.
8293 (value_virtual_fn_field): Fix formatting.
8294 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8296 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8297 (list_cp_abis, _initialize_cp_abi): New functions.
8298 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8299 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8300 switch_to_cp_abi. Update prototype for register_cp_abi.
8301 * Makefile.in (cp-abi.o): Update dependencies.
8302 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8303 instead of switch_to_cp_abi.
8304 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8306 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8308 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8310 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8312 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8313 * dwarf2loc.c: Include "regcache.h".
8314 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8316 * Makefile.in (dwarf2loc.o): Update dependencies.
8318 2003-03-04 Theodore A. Roth <troth@openavr.org>
8320 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8321 number of io registers reported by remote target is not a multiple of
8324 2003-03-04 David Carlton <carlton@math.stanford.edu>
8326 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8327 (lookup_symbol_aux_psymtabs): Update call to
8328 lookup_partial_symbol.
8329 (lookup_transparent_type, find_main_psymtab)
8330 (make_symbol_overload_list): Ditto.
8332 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8334 * MAINTAINERS (Write after approval): Update my email address.
8336 2003-03-03 Andrew Cagney <cagney@redhat.com>
8338 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8339 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8340 predicate. Replace MAX_REGISTER_RAW_SIZE.
8341 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8342 MAX_REGISTER_VIRTUAL_SIZE.
8343 * regcache.c (legacy_max_register_raw_size): New function.
8344 (legacy_max_register_virtual_size): New function.
8345 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8346 (MAX_REGISTER_RAW_SIZE): Define.
8347 (legacy_max_register_raw_size): Declare.
8348 (legacy_max_register_virtual_size): Declare.
8349 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8350 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8351 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8352 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8353 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8354 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8355 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8356 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8357 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8359 * vax-tdep.c (vax_gdbarch_init): Update.
8360 * v850-tdep.c (v850_gdbarch_init): Update.
8361 * sparc-tdep.c (sparc_gdbarch_init): Update.
8362 * sh-tdep.c (sh_gdbarch_init): Update.
8363 * s390-tdep.c (s390_gdbarch_init): Update.
8364 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8365 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8366 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8367 * mips-tdep.c (mips_gdbarch_init): Update.
8368 * mcore-tdep.c (mcore_gdbarch_init): Update.
8369 * m68k-tdep.c (m68k_gdbarch_init): Update.
8370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8371 * ia64-tdep.c (ia64_gdbarch_init): Update.
8372 * i386-tdep.c (i386_gdbarch_init): Update.
8373 * hppa-tdep.c (hppa_gdbarch_init): Update.
8374 * h8300-tdep.c (h8300_gdbarch_init): Update.
8375 * frv-tdep.c (frv_gdbarch_init): Update.
8376 * cris-tdep.c (cris_gdbarch_init): Update.
8377 * avr-tdep.c (avr_gdbarch_init): Update.
8378 * arm-tdep.c (arm_gdbarch_init): Update.
8379 * alpha-tdep.c (alpha_gdbarch_init): Update.
8380 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8381 max_register_raw_size or max_register_virtual_size.
8383 2003-03-03 David Carlton <carlton@math.stanford.edu>
8385 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8386 SYMBOL_MATCHES_NAME, add comment.
8387 (SYMBOL_MATCHES_NATURAL_NAME): New.
8388 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8389 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8390 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8391 * symtab.c (lookup_partial_symbol): Use
8392 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8394 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8395 SYMBOL_MATCHES_NAME.
8398 2003-03-03 David Carlton <carlton@math.stanford.edu>
8400 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8401 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8402 by regexp matching against SYMBOL_NATURAL_NAME.
8404 2003-03-03 David Carlton <carlton@math.stanford.edu>
8406 * linespec.c (find_method): Extract code into collect_methods.
8407 (collect_methods): New.
8409 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8411 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8414 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8415 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8417 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8419 * arch-utils.c (generic_register_byte): Fix to use the loop index
8420 and not regnum when summing the size of all registers up to regnum.
8422 2003-03-01 Andrew Cagney <cagney@redhat.com>
8424 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8425 FRAME_INIT_SAVED_REGS.
8426 * gdbarch.h, gdbarch.c: Regenerate.
8427 * stack.c (frame_info): Update.
8428 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8429 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8430 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8431 * ns32k-tdep.c (ns32k_pop_frame): Update.
8432 * mips-tdep.c (mips_pop_frame): Update.
8433 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8434 * ia64-tdep.c (ia64_frame_chain): Update.
8435 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8436 (ia64_frameless_function_invocation): Update.
8437 (ia64_init_extra_frame_info): Update.
8438 (ia64_pop_frame_regular): Update.
8439 * frame.h (struct frame_info): Update comment.
8440 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8441 * frame.c (frame_saved_regs_register_unwind): Update.
8442 (frame_saved_regs_register_unwind): Update.
8443 (deprecated_generic_get_saved_register): Update.
8444 * cris-tdep.c: Update comment.
8445 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8448 * x86-64-tdep.c (x86_64_init_abi): Update.
8449 * vax-tdep.c (vax_gdbarch_init): Update.
8450 * v850-tdep.c (v850_gdbarch_init): Update.
8451 * sparc-tdep.c (sparc_gdbarch_init): Update.
8452 * sh-tdep.c (sh_gdbarch_init): Update.
8453 * s390-tdep.c (s390_gdbarch_init): Update.
8454 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8455 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8456 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8457 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8458 * mips-tdep.c (mips_gdbarch_init): Update.
8459 * mcore-tdep.c (mcore_gdbarch_init): Update.
8460 * m68k-tdep.c (m68k_gdbarch_init): Update.
8461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8462 * ia64-tdep.c (ia64_gdbarch_init): Update.
8463 * i386-tdep.c (i386_gdbarch_init): Update.
8464 * frv-tdep.c (frv_gdbarch_init): Update.
8465 * avr-tdep.c (avr_gdbarch_init): Update.
8466 * arm-tdep.c (arm_gdbarch_init): Update.
8467 * alpha-tdep.c (alpha_gdbarch_init): Update.
8469 2003-03-01 Andrew Cagney <cagney@redhat.com>
8471 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8472 option enum and switch. When no windows, set the interpreter to
8475 2003-03-01 Andrew Cagney <cagney@redhat.com>
8477 * main.c (captured_main): Replace magic option characters with an
8480 2003-03-01 Andrew Cagney <cagney@redhat.com>
8482 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8483 INIT_EXTRA_FRAME_INFO.
8484 * gdbarch.h, gdbarch.c: Regenerate.
8485 * arm-tdep.c: Update comments.
8486 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8487 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8488 * frame.h, avr-tdep.c: Ditto.
8489 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8490 (create_new_frame, legacy_get_prev_frame): Ditto.
8491 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8492 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8494 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8495 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8496 * v850-tdep.c (v850_gdbarch_init): Ditto.
8497 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8498 * sh-tdep.c (sh_gdbarch_init): Ditto.
8499 * s390-tdep.c (s390_gdbarch_init): Ditto.
8500 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8501 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8502 * mips-tdep.c (mips_gdbarch_init): Ditto.
8503 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8504 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8505 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8506 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8507 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8508 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8509 * frv-tdep.c (frv_gdbarch_init): Ditto.
8510 * cris-tdep.c (cris_gdbarch_init): Ditto.
8511 * avr-tdep.c (avr_gdbarch_init): Ditto.
8512 * arm-tdep.c (arm_gdbarch_init): Ditto.
8513 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8514 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8516 2003-03-01 Andrew Cagney <cagney@redhat.com>
8518 * gdbarch.sh (register_type): New function with predicate.
8519 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8520 * gdbarch.h, gdbarch.c: Re-generate.
8521 * arch-utils.c (generic_register_byte): Use generic_register_size.
8522 (generic_register_size): When available, use
8523 gdbarch_register_type.
8524 * regcache.c (init_regcache_descr): When available, initialize the
8525 register type array using gdbarch_register_type. If the
8526 architecture supplies gdbarch_register_type, do not use the legacy
8528 * d10v-tdep.c (d10v_register_type): Replace
8529 d10v_register_virtual_type.
8530 (d10v_gdbarch_init): Set register_type instead of
8531 register_virtual_type.
8533 2003-03-01 Andrew Cagney <cagney@redhat.com>
8535 * Makefile.in (ax-gdb.o): Update dependencies.
8536 * ax-gdb.c: Include "regcache.h".
8537 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8538 * findvar.c (value_of_register): Ditto.
8539 * infcmd.c (default_print_registers_info): Ditto.
8541 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8543 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8544 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8546 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8548 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8551 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8553 * Makefile.in (dwarf2loc.o): Update dependencies.
8554 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8555 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8556 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8557 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8558 (locexpr_tracepoint_var_ref): New function.
8559 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8561 2003-02-28 Andrew Cagney <cagney@redhat.com>
8563 * regcache.c (register_size): New function.
8564 * regcache.h (register_size): Declare
8565 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8566 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8568 2003-02-28 David Carlton <carlton@math.stanford.edu>
8570 * linespec.c (decode_compound): Extract code into find_method.
8573 2003-02-28 J. Brobecker <brobecker@gnat.com>
8575 * Makefile.in: Add rules to build and link in observer.o.
8577 2003-02-27 J. Brobecker <brobecker@gnat.com>
8579 * observer.c: Minor comments edits.
8581 2003-02-27 J. Brobecker <brobecker@gnat.com>
8583 * observer.h, observer.c: New file.
8585 2003-02-27 Andrew Cagney <cagney@redhat.com>
8587 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8589 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8591 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8592 (M6812_OP_STS_EXT): Likewise.
8593 (m6811_prologue): Use the above to recognize prologue.
8594 (m6812_prologue): Likewise.
8596 2003-02-27 David Carlton <carlton@math.stanford.edu>
8598 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8600 (compare_psymbols): Ditto.
8601 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8603 2003-02-27 Michael Snyder <msnyder@redhat.com>
8605 * f-lang.c (build_fortran_types): New function.
8606 (_initialize_f_language): Gdbarch-register built-in fortran types.
8607 * doublest.c (extract_floating): Fix warning text.
8609 2003-02-27 Andrew Cagney <cagney@redhat.com>
8611 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8612 predicate. Replaces PUSH_DUMMY_FRAME.
8613 * gdbarch.h, gdbarch.c: Regnerate.
8614 * valops.c (hand_function_call): Update. Call
8615 generic_push_dummy_frame directly.
8616 * vax-tdep.c (vax_gdbarch_init): Update.
8617 * sparc-tdep.c (sparc_gdbarch_init): Update.
8618 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8619 * m68k-tdep.c (m68k_gdbarch_init): Update.
8620 * hppa-tdep.c (hppa_gdbarch_init): Update.
8621 * alpha-tdep.c (alpha_gdbarch_init): Update.
8622 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8623 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8624 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8626 push_dummy_frame to generic_push_dummy_frame.
8627 * v850-tdep.c (v850_gdbarch_init): Ditto.
8628 * sh-tdep.c (sh_gdbarch_init): Ditto.
8629 * s390-tdep.c (s390_gdbarch_init): Ditto.
8630 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8631 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8632 * mips-tdep.c (mips_gdbarch_init): Ditto.
8633 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8634 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8635 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8636 * i386-tdep.c (i386_gdbarch_init): Ditto.
8637 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8638 * frv-tdep.c (frv_gdbarch_init): Ditto.
8639 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8640 * cris-tdep.c (cris_gdbarch_init): Ditto.
8641 * avr-tdep.c (avr_gdbarch_init): Ditto.
8642 * arm-tdep.c (arm_gdbarch_init): Ditto.
8644 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8646 * mips-tdep.c (show_mips_abi): New function.
8647 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8648 command ``show mips abi''.
8650 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8652 From Elena Zannoni <ezannoni@redhat.com>
8653 * dbxread.c (process_one_symbol): Only record line 0 if one or
8654 more sline entries have been seen for the function.
8656 2003-02-26 Michael Chastain <mec@shout.net>
8658 * configure: Regenerate with autoconf 000227.
8660 2003-02-26 Michael Chastain <mec@shout.net>
8663 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8664 for old libc5/glibc.
8665 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8667 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8669 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8670 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8672 2003-02-26 Michael Chastain <mec@shout.net>
8674 * configure.in: New variable HAVE_UINTPTR_T.
8675 * configure, config.in: Regenerated.
8677 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8680 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8682 2003-02-25 Andrew Cagney <cagney@redhat.com>
8684 * frame.c (get_prev_frame): Add comment on check for
8685 inside_entry_func. Only check for inside_entry_file when not a
8686 dummy and not a sentinel. Check that the new frame is not inner
8689 2003-02-25 Andrew Cagney <cagney@redhat.com>
8691 * frame.c (frame_debug): New variable.
8692 (_initialize_frame): Add "set/show debug frame" command.
8693 (get_prev_frame): When frame_debug, print reason why unwind
8696 2003-02-25 Michael Chastain <mec@shout.net>
8698 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8699 to avoid uintptr_t definition problems.
8701 2003-02-25 David Carlton <carlton@math.stanford.edu>
8703 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8704 (SYMBOL_LINKAGE_NAME): Ditto.
8705 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8706 SYMBOL_LINKAGE_NAME.
8707 (struct general_symbol_info): Expand comment.
8708 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8709 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8710 (SYMBOL_MATCHES_REGEXP): Ditto.
8711 * symtab.c (symbol_natural_name): New function.
8712 * objfiles.h: Replace all uses of SYMBOL_NAME by
8713 DEPRECATED_SYMBOL_NAME.
8714 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8715 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8716 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8717 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8718 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8719 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8720 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8721 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8722 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8723 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8725 * ada-exp.y: Update copyright.
8726 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8727 * cp-valprint.c: Ditto.
8729 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8731 * infptrace.c (detach): Do not flag error if ptrace detach fails
8732 and errno is set to ESRCH.
8734 2003-02-24 Andrew Cagney <cagney@redhat.com>
8736 * infptrace.c (udot_info): Change type of udot_off to long. Use
8737 paddr when printing udot_off's value.
8739 2003-02-24 David Carlton <carlton@math.stanford.edu>
8741 * symtab.c (make_symbol_overload_list): Only read in partial
8742 symtabs containing a matching partial symbol.
8744 2003-02-24 David Carlton <carlton@math.stanford.edu>
8746 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8747 do the comparison, not strcmp.
8748 * symfile.c (compare_psymbols): Ditto.
8749 * defs.h: Declare strcmp_iw_ordered.
8750 * utils.c (strcmp_iw_ordered): New function.
8752 2003-02-24 Jim Blandy <jimb@redhat.com>
8754 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8755 support, shared libs): Remove my name from here, to better reflect
8758 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8760 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8761 (target_ops): Add to_have_continuable_watchpoint.
8762 * target.c (update_current_target): Add INHERIT line for
8763 to_have_continuable_watchpoint.
8764 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8765 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8766 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8767 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8769 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8771 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8774 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8776 * solib.c (solib_open): Call target defined search function after
8777 failing with solib-search-path.
8778 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8779 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8781 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8783 * MAINTAINERS: Add myself to Write After section.
8785 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8787 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8789 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8791 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8792 (m68hc11_add_reggroups): New function.
8793 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8794 (m68hc11_gdbarch_init): Install the reggroups.
8795 (_initialize_m68hc11_tdep): Initialize them.
8797 2003-02-21 James E Wilson <wilson@tuliptree.org>
8799 * MAINTAINERS: Update my email address.
8801 2003-02-21 David Carlton <carlton@math.stanford.edu>
8803 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8805 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8807 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8808 * symtab.h: Add opaque declarations of struct axs_value and
8810 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8811 (struct location_funcs): New type.
8812 (struct symbol): Add "loc" to aux_value.
8813 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8814 * dwarf2read.c: Include "dwarf2expr.h".
8815 (dwarf2_symbol_mark_computed): New function.
8816 (read_func_scope): Use it.
8817 (var_decode_location): New function.
8818 (new_symbol): Use it.
8819 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8821 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8822 (dwarf2expr_h, dwarf2loc_h): New variables.
8823 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8824 (dwarf2expr.o, dwarf2loc.o): New rules.
8825 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8826 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8828 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8829 * m2-exp.y (yylex): Likewise.
8830 * printcmd.c (address_info, print_frame_args): Likewise.
8831 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8832 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8833 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8834 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8835 * symtab.c (lookup_block_symbol): Likewise.
8837 2003-02-20 Adam Fedor <fedor@gnu.org>
8839 * symtab.h: Remove objc_specific struct
8840 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8841 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8842 Have language_objc use cplus_specific struct.
8844 2003-02-20 Tom Tromey <tromey@redhat.com>
8846 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8847 TYPE_NAME, when printing a String value. PR java/1075.
8849 2003-02-20 Adam Fedor <fedor@gnu.org>
8851 * objc-lang.h (find_methods): Remove declaration.
8852 * objc-lang.c (find_methods): Make static.
8854 2003-02-20 Christopher Faylor <cgf@redhat.com>
8856 * win32-nat.c (get_image_name): Check return value from
8858 (child_xfer_memory): Ditto.
8860 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8862 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8863 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8864 '${exec_prefix}' (in addition to the expansion thereof) as
8866 * configure: Rebuilt.
8868 2003-02-20 David Carlton <carlton@math.stanford.edu>
8870 * symtab.c (search_symbols): Revert the search_symbols part of my
8871 2002-12-23 patch. Add comment.
8873 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8875 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8876 * dbxread.c (elfstab_build_psymtabs): Don't call
8877 install_minimal_symbols.
8878 (stabsect_build_psymtabs): Likewise.
8879 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8881 * somread.c (som_symfile_read): Call install_minimal_symbols
8882 and do_cleanups earlier.
8883 * nlmread.c (nlm_symfile_read): Likewise.
8884 * mdebugread.c (elfmdebug_build_psymtabs): Call
8885 install_minimal_symbols and make appropriate cleanups.
8887 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8889 * solib.c (reload_shared_libraries): New function.
8890 (_initialize_solib): Add callbacks for ``set solib-search-path''
8891 and ``set solib-absolute-prefix''.
8893 2003-02-20 David Carlton <carlton@math.stanford.edu>
8895 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8897 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8898 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8899 * ada-typeprint.c (ada_typedef_print): Ditto.
8900 * ax-gdb.c (gen_var_ref): Ditto.
8901 * breakpoint.c (print_one_breakpoint): Ditto.
8902 * buildsym.c (finish_block): Ditto.
8903 * c-valprint.c (c_val_print): Ditto.
8904 * expprint.c (print_subexp): Ditto.
8905 * findvar.c (locate_var_value): Ditto.
8906 * infcmd.c (jump_command): Ditto.
8907 * linespec.c (decode_line_2, decode_compound): Ditto.
8908 * maint.c (maintenance_translate_address): Ditto.
8909 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8910 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8912 * p-valprint.c (pascal_val_print): Ditto.
8913 * stabsread.c (define_symbol): Ditto.
8914 * stack.c (print_frame, frame_info, print_block_frame_locals)
8915 (print_frame_arg_vars, return_command): Ditto.
8916 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8917 * symmisc.c (print_symbol): Ditto.
8918 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8919 (compare_search_syms, print_symbol_info, print_msymbol_info)
8920 (rbreak_command): Ditto.
8921 * tracepoint.c (tracepoints_info): Ditto.
8922 * typeprint.c (typedef_print): Ditto.
8923 * valops.c (value_of_variable, hand_function_call): Ditto.
8924 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8925 * ada-typeprint.c: Update Copyright.
8926 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8927 * tracepoint.c, cli/cli-cmds.c: Ditto.
8929 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8931 * frame.c (generic_unwind_get_saved_register): Make non-static.
8932 * frame.h (generic_unwind_get_saved_register): Declare.
8933 * mips-tdep.c (read_next_frame_reg): Fetch register from
8934 current regcache when frame is NULL.
8935 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8937 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8938 instead of frame_register_unwind().
8940 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8942 * remote-sim.c (gdbsim_insert_breakpoint)
8943 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8946 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8948 * remote.c (_initialize_remote): Add commands "set/show remote
8949 hardware-watchpoint-limit" and "set/show remote
8950 hardware-breakpoint-limit".
8951 (remote_hw_watchpoint_limit): Initialize to -1.
8952 (remote_hw_breakpoint_limit): Ditto.
8953 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8955 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8957 * coff-pe-read.c: New file - support reading of minimal symbols from a
8958 portable executable using the export table.
8959 * coff-pe-read.h: New file.
8960 * coffread.c: Include coff-pe-read.h.
8961 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8962 debugging symbols found.
8963 * Makefile.in (SFILES): Add coff-pe-read.o.
8964 (coff_pe_read_h): Define.
8965 (COMMON_OBS): Add coff-pe-read.o.
8966 (coffread.o): Add coff_pe_read_h dependency.
8967 (coff-pe-read.o): New target.
8969 2003-02-19 David Carlton <carlton@math.stanford.edu>
8971 * Makefile.in (SFILES): Add block.c.
8973 (COMMON_OBS): Add block.o.
8975 (x86-64-tdep.o): Add $(block_h).
8976 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8977 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8978 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8979 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8980 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8981 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8982 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8983 * value.h: Add opaque declaration for struct block.
8984 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8985 * ada-lang.h: Ditto.
8986 * x86-64-tdep.c: #include "block.h"
8987 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8988 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8989 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8990 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8991 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8992 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8993 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8994 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8995 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8996 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8997 * symtab.c (block_function): Ditto.
8998 (contained_in): Ditto.
8999 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9000 block.h. Add opaque declaration for struct block.
9001 * symtab.h: Move block_function and contained_in declarations to
9002 block.h. Add opaque declarations for struct block, struct
9004 (struct block): Move to block.h.
9005 (struct blockvector): Ditto.
9006 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9007 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9008 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9009 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9010 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9012 * block.c: New file.
9013 * block.h: New file.
9015 2003-02-19 Theodore A. Roth <troth@openavr.org>
9017 * avr-tdep.c (avr_extract_return_value): Remove function.
9018 (avr_store_return_value): Remove function.
9019 (avr_extract_struct_value_address): Remove function.
9020 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9022 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9024 * rs6000-tdep.c: Include "gdb_assert.h".
9025 (registers_e500): Add "acc" and "spefscr".
9026 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9027 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9028 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9030 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9032 2003-02-18 Keith Seitz <keiths@redhat.com>
9034 * Makefile.in: Add gdbtk-interps.c.
9036 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9038 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9039 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9041 2003-02-18 Andrew Cagney <cagney@redhat.com>
9043 * symtab.h (struct objfile): Add opaque declaration.
9045 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9047 From Jim Ingham <jingham@apple.com>:
9048 * dbxread.c (process_one_symbol): Use last_function_start rather
9049 than function_start_offset to find the real beginning of the
9050 current function. The latter is just the text section offset on
9051 some systems, the former is always the real function start.
9053 2003-02-17 Andrew Cagney <cagney@redhat.com>
9055 * configure.in: Revert ${target} != ${host}.
9057 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9059 * configure.in (Makefile): Use the test ${target} != ${host},
9060 instead of the absence of the "nm.h" file, to determine of the
9061 configuration non-native.
9062 * configure: Regenerate.
9064 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9066 From Brian Ford <ford@vss.fsi.com>
9068 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9069 conditionalize tui_active test.
9070 (lookup_cmd_1): Ditto.
9072 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9074 * configure.in: Add check for _etext.
9075 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9077 * config.in, configure: regenerated.
9079 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9081 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9083 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9085 * main.c (tui_version): Delete variable.
9086 (captured_main): When --tui, set interpreter_p to "tui" instead of
9087 enabling tui_version.
9088 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9090 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9091 * cli/cli-cmds.c (disassemble_command): Ditto.
9092 * defs.h (tui_version): Delete declaration.
9093 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9094 (tui-interp.o): Add rules.
9095 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9097 2003-02-14 Christopher Faylor <cgf@redhat.com>
9099 * win32-nat.c (register_loaded_dll): Correctly set address range for
9102 2003-02-12 Jason Molenda (jmolenda@apple.com)
9104 * symmisc.c (print_objfile_statistics): Include information about
9105 the number of psymtabs and symtabs in each object file.
9107 2003-02-13 Keith R Seitz <keiths@redhat.com>
9109 * main.h (struct captured_main_args): Add interpreter_p.
9110 * main.c (captured_main): Initialize interpreter_p from context.
9111 * gdb.c (main): Set interpreter_p argument.
9112 * Makefile.in (gdb.o): Add dependency for interps.h.
9114 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9116 * event-top.c (cli_command_loop): Delete declaration.
9117 (_initialize_event_loop): Delete function setting event_loop_hook.
9118 * event-top.h (cli_command_loop): Declare. Update copyright.
9119 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9120 * interps.c (current_interp_command_loop): When event_loop_p, call
9123 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9125 * interps.h (interp_command_loop_ftype): Change return type to
9128 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9130 * x86-64-tdep.c (x86_64_extract_return_value)
9131 (x86_64_store_return_value): Use regcache instead of regbuf.
9132 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9133 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9135 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9137 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9138 * aclocal.m4: Regenerate.
9139 * configure: Regenerate.
9141 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9142 TCL_LD_SEARCH_FLAGS.
9144 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9146 * dwarf2cfi.c: Reindented.
9148 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9150 * interps.c (clear_interpreter_hooks): Convert function definition
9153 2003-02-07 David Carlton <carlton@math.stanford.edu>
9155 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9157 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9159 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9160 (struct type): ...to here.
9161 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9163 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9164 (replace_type): Set length on all type variants for a given type.
9166 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9168 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9170 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9172 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9174 * Makefile.in (symm-nat.o): Update dependencies.
9175 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9176 (lynx-nat.o, ia64-linux-nat.): Ditto.
9177 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9178 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9179 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9181 * Makefile.in (inflow_h): Define.
9182 (procfs.o, inflow.o, procfs.o): Update dependencies.
9183 * inftarg.c (child_stop): Delete extern declaration of
9184 inferior_process_group. Include "inflow.h".
9185 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9186 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9187 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9188 (our_process_group, inferior_process_group): Extern declarations.
9190 * procfs.c: Include "gdb_assert.h".
9192 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9193 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9194 * jv-typeprint.c (java_type_print_base): Ditto.
9195 * typeprint.c (typedef_print): Eliminate STREQ.
9196 * cli/cli-script.c (define_command, define_command): Ditto.
9197 * main.c (captured_main): Ditto.
9198 * values.c (lookup_internalvar): Ditto.
9199 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9200 within `if' conditional.
9201 * linespec.c (decode_line_2): Ditto.
9202 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9203 (bfd_openw_with_cleanup): Ditto.
9205 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9207 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9208 legacy_extract_return_value and store_return_value to
9209 legacy_return_value.
9211 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9213 * win32-nat.c (get_relocated_section_addrs): New function. Find
9214 section load addresses for symbol handling in relocated DLLs.
9215 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9217 2003-02-05 Fred Fish <fnf@intrinsity.com>
9219 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9221 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9223 (angel_RDI_info): Ditto.
9224 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9226 (threads_continue_all_with_signals): Ditto.
9228 2003-02-05 Jim Ingham <jingham@apple.com>
9229 Keith Seitz <keiths@redhat.com>
9230 Elena Zannoni <ezannoni@redhat.com>
9231 Andrew Cagney <ac131313@redhat.com>
9233 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9234 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9235 (SUBDIR_MI_OBS): Add "mi-interp.o".
9236 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9237 (SFILES): Add "interps.c".
9238 (COMMON_OBS): Add "interps.o".
9239 (interps_h, mi_main_h): Define.
9240 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9241 (mi-main.o, main.o, event-top.o): Update dependencies.
9242 * cli/cli-interp.c: New file.
9243 * interps.h, interps.c: New files.
9244 * top.c: (gdb_init): Don't install the default interpreter, handed
9246 * main.c: Include "interps.h".
9247 (interpreter_p): Note that it should malloc'ed.
9248 (captured_command_loop): Call current_interp_command_loop.
9249 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9250 xfree and xstrdup when updating interpreter_p. Install the
9251 default interpreter. Add hack to stop mi1's copyright notice
9253 * event-top.h (gdb_setup_readline): Declare.
9254 (gdb_disable_readline): Declare.
9255 * event-top.c: Include "interps.h".
9256 (display_gdb_prompt): Call current_interp_display_prompt_p.
9257 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9258 gdb_stdlog, and gdb_stdtarg.
9259 (_initialize_event_loop): Don't call gdb_setup_readline.
9260 * cli-out.c (cli_out_set_stream): New function.
9261 * cli-out.h (cli_out_set_stream): Declare.
9263 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9265 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9266 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9267 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9268 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9269 config/i386/i386v42mp.mt: Removed.
9271 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9273 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9276 2003-02-05 Michael Chastain <mec@shout.net>
9278 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9279 2.12.1 and earlier versions.
9281 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9283 Remove orphaned hosts, targets and files.
9284 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9285 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9286 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9287 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9288 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9289 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9290 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9291 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9292 * config/sparc/tm-sp64sim.h: Delete.
9293 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9295 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9296 mips*-dec-mach3* targets.
9298 2003-02-04 Michael Chastain <mec@shout.net>
9300 * NEWS: Fix typo: sepcifying -> specifying.
9302 2003-02-04 Michael Chastain <mec@shout.net>
9304 * dwarfread.c: Add documentation on the state of dwarf-1,
9305 looking towards obsoletion.
9307 2003-02-03 Michael Chastain <mec@shout.net>
9309 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9310 gdb/testsuite/gdb.c++/pr-1023.exp.
9312 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9314 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9315 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9317 * utils.c (init_page_info): Delete reference to MPW in comments.
9318 * main.c (captured_main): Delete #ifdef MPW.
9320 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9322 * NEWS: Note that the m32r-*-elf* is obsolete.
9323 * monitor.c (monitor_expect): Obsolete reference to m32r.
9324 * configure.tgt: Mark m32r-*-elf* as obsolete.
9325 * MAINTAINERS: Mark m32k as obsolete.
9326 * m32r-rom.c: Obsolete file.
9327 * config/m32r/m32r.mt: Obsolete file.
9328 * config/m32r/tm-m32r.h: Obsolete file.
9329 * m32r-stub.c: Obsolete file.
9330 * m32r-tdep.c: Obsolete file.
9332 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9334 * NEWS: Mention that the z8k-zilog-none is obsolete.
9335 * MAINTAINERS: Mark z8k as obsolete.
9336 * configure.tgt: Obsolete the z8k-*-coff* target.
9337 * config/z8k/z8k.mt: Obsolete file.
9338 * config/z8k/tm-z8k.h: Obsolete file.
9339 * z8k-tdep.c: Obsolete file.
9341 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9343 * NEWS: Mention that the mn10200-elf is obsolete.
9344 * configure.tgt: Obsolete mn10200-*-* target.
9345 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9346 mention that the mn10200 is obsolete.
9347 * breakpoint.h: Ditto.
9348 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9349 * config/mn10200/mn10200.mt: Obsolete file.
9350 * config/mn10200/tm-mn10200.h: Obsolete file.
9351 * mn10200-tdep.c: Obsolete file.
9353 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9355 * MAINTAINERS: Mark h8500 as obsolete.
9356 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9357 * findvar.c (value_from_register): Ditto.
9358 * h8500-tdep.c: Mark file as obsolete.
9359 * config/h8500/h8500.mt: Ditto.
9360 * config/h8500/tm-h8500.h: Ditto.
9361 * NEWS: Mention that h8500 is obsolete.
9363 2003-02-04 David Carlton <carlton@math.stanford.edu>
9365 * objfiles.c (allocate_objfile): Always set name. Add comment at
9367 * jv-lang.c (get_dynamics_objfile): Add comment.
9369 2003-02-04 David Carlton <carlton@math.stanford.edu>
9371 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9372 * printcmd.c (build_address_symbolic): Replace uses of
9373 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9374 SYMBOL_NAME, and asm_demangle.
9377 2003-02-04 David Carlton <carlton@math.stanford.edu>
9379 * linespec.c (decode_compound): Extract code into
9381 (lookup_prefix_sym): New function.
9383 2003-02-04 David Carlton <carlton@math.stanford.edu>
9385 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9386 FLOAT_COERCION_BADNESS.
9387 * gdbtypes.c (rank_one_type): Replace all uses of
9388 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9390 2003-02-04 Jim Blandy <jimb@redhat.com>
9392 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9393 section, let dwarf_macinfo_section point to it, not
9396 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9398 Pointed out by Anton Blanchard <anton@samba.org>.
9399 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9400 (ppc_linux_at_sigtramp_return_path): Use it.
9402 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9404 * defs.h (streq): Add prototype.
9405 * utils.c (streq): New function.
9407 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9408 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9409 * mdebugread.c (new_symbol): Likewise.
9410 * stabsread.c (define_symbol): Likewise.
9411 * coffread.c (process_coff_symbol): Likewise.
9412 * dwarfread.c (new_symbol): Likewise.
9414 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9415 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9417 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9418 SYMBOL_INIT_DEMANGLED_NAME.
9419 * objfiles.c: Include "hashtab.h".
9420 (allocate_objfile): Call htab_set_functions_ex for the
9421 demangled_names_hash.
9422 (free_objfile): Call htab_delete for the demangled_names_hash.
9423 * objfiles.h (struct htab): Add declaration.
9424 (struct objfile): Add demangled_names_hash.
9425 * symfile.c: Include "hashtab.h".
9426 (reread_symbols): Call htab_delete for the demangled_names_hash.
9427 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9428 SYMBOL_NAME in the bcache.
9429 * symtab.c: Include "hashtab.h". Update comments.
9430 (create_demangled_names_hash, symbol_set_names): New functions.
9431 (symbol_find_demangled_name): New function, broken out from
9432 symbol_init_demangled_names.
9433 (symbol_init_demangled_names): Use it.
9434 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9435 (SYMBOL_SET_NAMES): New macro.
9436 (symbol_set_names): Add prototype.
9438 2003-02-03 Jim Blandy <jimb@redhat.com>
9440 Use a single, consistent representation for an empty minimal
9441 symbol table in an objfile.
9442 * objfiles.c (terminate_minimal_symbol_table): New function.
9443 (allocate_objfile): Call it.
9444 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9445 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9447 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9448 objfile has minimal symbols, compare minimal_symbol_count to zero,
9449 instead of comparing msymbols with NULL.
9450 * objfiles.c (have_minimal_symbols): Same.
9451 * solib-sunos.c (solib_add_common_symbols): Call
9452 terminate_minimal_symbol_table.
9453 * symfile.c (reread_symbols): Same.
9455 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9457 * s390-tdep.c (s390_address_class_type_flags)
9458 (s390_address_class_type_flags_to_name)
9459 (s390_address_class_name_to_type_flags): New functions.
9460 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9461 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9463 2003-02-03 Michael Snyder <msnyder@redhat.com>
9465 * arm-tdep.c: Fix spell-o in comment.
9467 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9469 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9470 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9471 error messages to contain BFD filename.
9473 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9475 Fix PR gdb/742 gdb/743 gdb/877
9476 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9477 (do_mixed_source_and_assembly): Use
9478 make_cleanup_ui_out_tuple_begin_end and
9479 make_cleanup_ui_out_tuple_begin_end.
9480 (do_mixed_source_and_assembly): Ditto.
9481 * thread.c (do_captured_list_thread_ids): Ditto.
9482 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9483 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9484 ui_out_tuple_end): Delete prototypes.
9485 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9486 ui_out_list_end, ui_out_tuple_end): Delete.
9488 From Kevin Buettner <kevinb@redhat.com>:
9489 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9490 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9491 (do_cleanup_table_end): New functions.
9492 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9493 Use cleanups to invoke_ui_out_tuple_end().
9494 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9495 * cli/cli-setshow.c (cmd_show_list): Use
9496 make_cleanup_ui_out_tuple_begin_end.
9498 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9500 * frame.c (frame_unwind_register): New function.
9501 (frame_unwind_unsigned_register): Use.
9502 (frame_unwind_signed_register): Use.
9503 (frame_read_register): New function.
9504 * frame.h (frame_unwind_register): Declare.
9505 (frame_read_register): Declare.
9507 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9508 and frame_unwind_register instead of read_memory, write_register
9509 and deprecated_write_register_bytes.
9511 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9513 * frame.h: Note that namelen can be negative.
9514 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9517 * NEWS: Mention that the d10v's `regs' command is deprecated.
9518 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9519 (d10v_print_registers_info): New function.
9520 (show_regs): Call d10v_print_registers_info.
9521 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9523 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9525 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9526 lost in the previous patch.
9528 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9530 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9531 * stack.c (print_frame_info_base): Output complete FRAME tuple
9532 for synthesized frames.
9534 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9536 * mips-nat.c (zerobuf): Delete.
9537 (fetch_inferior_registers): Alloc local zerobuf.
9538 (fetch_core_registers): Alloc local zerobuf.
9539 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9540 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9541 * thread-db.c (thread_db_store_registers): Ditto.
9542 * sh-tdep.c (sh_do_register): Ditto.
9543 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9544 * remote-sim.c (gdbsim_store_register): Ditto.
9545 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9546 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9547 * monitor.c (monitor_supply_register): Ditto.
9548 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9549 * mips-nat.c (fetch_inferior_registers): Ditto.
9550 * m68klinux-nat.c (fetch_register): Ditto.
9551 * lynx-nat.c (fetch_inferior_registers): Ditto.
9552 (fetch_inferior_registers): Ditto.
9553 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9554 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9555 (hpux_thread_store_registers): Ditto.
9556 * hppah-nat.c (fetch_register): Ditto.
9557 * hppab-nat.c (fetch_register): Ditto.
9558 * hppa-tdep.c (pa_register_look_aside): Ditto.
9559 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9560 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9562 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9564 * gdbarch.sh: Explictly specify all method levels. When a
9565 variable with an empty level, provide a non-multi-arch default.
9566 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9567 * gdbarch.h: Re-generate.
9568 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9569 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9571 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9573 * defs.h (host_pointer_to_address): Delete declaration.
9574 (address_to_host_pointer): Delete declaration.
9575 * utils.c (host_pointer_to_address): Delete function.
9576 (address_to_host_pointer): Delete function.
9577 * procfs.c (procfs_address_to_host_pointer): New function.
9578 * procfs.c (proc_set_watchpoint): Use.
9579 (procfs_can_use_hw_breakpoint): Update comments.
9580 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9581 (som_solib_add): Use.
9582 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9583 * hppa-tdep.c (unwind_command): Use.
9585 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9587 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9590 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9591 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9592 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9593 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9594 (define_symbol): Update.
9595 * symfile.c (generic_load): Remove references to nindy.
9596 * symtab.c: Remove references to nindy.
9598 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9600 * infcmd.c (print_float_info): Delete code conditional on
9602 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9603 * config/m68k/nm-apollo68b.h: Ditto.
9604 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9605 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9606 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9608 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9610 * config/i386/tm-i386os9k.h: Removed.
9612 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9613 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9614 they're identical to i[3456]86-*-sysv* now.
9615 * config/i386/i386v32.mh: Removed.
9616 * config/i386/xm-i386v32.h: Removed.
9617 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9619 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9621 * config/i386/i386dgux.mh: Removed.
9622 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9624 * configure.in: Fix typo.
9625 * configure: Regenerated.
9627 2003-01-31 David Carlton <carlton@math.stanford.edu>
9629 * dwarf2read.c (dwarf2_locate_sections): Set
9630 dwarf_ranges_section.
9632 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9634 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9635 * utils.c: Update comments documenting legitimate uses of PTR.
9637 * utils.c: Re-indent.
9639 * config/djgpp/fnchange.lst: Delete nindy files.
9640 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9641 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9642 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9643 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9644 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9645 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9646 * Makefile.in (init.c): Remove nindy references.
9647 (saber_gdb): Delete rule.
9648 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9649 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9651 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9652 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9653 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9654 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9656 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9657 * saber.suppress: Delete file.
9659 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9661 * dbxread.c (stabs_data): New static variable.
9662 (fill_symbuf): Support an in-memory buffer for stabs data.
9663 (stabs_seek): New function.
9664 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9665 (read_ofile_symtab): Use stabs_seek.
9666 (elfstab_build_psymtabs): Take an asection* instead of
9667 an offset and size. Relocate the stabs data if necessary.
9668 Save the section* for dbx_psymtab_to_symtab.
9669 * dwarf2read.c: Add section variables for each debug section.
9670 (dwarf2_locate_sections): Fill them in.
9671 (dwarf2_read_section): Take an asection* argument.
9672 Relocate the section contents if necessary.
9673 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9674 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9675 it to dwarf2_read_section.
9676 (dwarf2_build_frame_info): Update callers.
9677 * elfread.c (elf_symfile_read): Update call to
9678 elfstab_build_psymtabs.
9679 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9680 (DBX_STAB_SECTION): New macro.
9681 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9682 * symfile.c (symfile_dummy_outputs): New function.
9683 (symfile_relocate_debug_section): New function.
9684 * symfile.h (symfile_relocate_debug_section): Add prototype.
9686 2003-01-31 Richard Henderson <rth@redhat.com>
9688 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9689 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9690 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9691 * alpha-tdep.c (alpha_register_name): Add "unique".
9692 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9693 (ALPHA_UNIQUE_REGNUM): New.
9694 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9696 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9698 * README: Remove reference to Ericsson 1800 monitor.
9699 * Makefile.in (remote-es.o): Delete rule.
9700 (ALLDEPFILES): Delete remote-es.c.
9701 * remote-es.c: Delete file.
9702 * config/m68k/es1800.mt: Delete file.
9703 * config/djgpp/fnchange.lst: Update.
9704 * configure.tgt: Delete m68*-ericsson-* target.
9706 2003-01-31 Adam Fedor <fedor@gnu.org>
9708 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9709 Remove duplicate/shadowing variable of same name.
9711 2003-01-30 Jim Blandy <jimb@redhat.com>
9713 * symfile.c (find_separate_debug_file): Assert that the objfile's
9714 directory name we compute ends with a slash, and then assume that
9715 that's so everywhere we use it.
9717 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9719 * valops.c (value_assign): Flush frame cache after stores to memory
9722 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9724 * Makefile.in (mon960-rom.o): Delete rule.
9725 * mon960-rom.c: Delete file.
9727 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9729 * d10v-tdep.c: Include "frame-unwind.h".
9730 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9732 (next_addr, uses_frame): Delete.
9733 (struct d10v_unwind_cache): Define.
9734 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9735 Use info instead of next_addr and uses_frame globals.
9736 (d10v_frame_init_saved_regs): Delete function.
9737 (d10v_init_extra_frame_info): Delete function.
9738 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9739 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9740 init_frame_pc or frame_saved_pc.
9741 (d10v_pop_frame): Delete function.
9742 (do_d10v_pop_frame): Delete function.
9743 (d10v_frame_chain): Delete function.
9744 (d10v_frame_chain_valid): Delete function.
9745 (d10v_frame_pc_unwind): New function.
9746 (d10v_frame_id_unwind): New function.
9747 (saved_regs_unwinder): New function.
9748 (d10v_frame_register_unwind): New function.
9749 (d10v_frame_pop): New function.
9750 (d10v_frame_unwind): New variable.
9751 (d10v_frame_p): New function.
9752 (d10v_frame_saved_pc): Delete function.
9753 * Makefile.in (d10v-tdep.o): Update dependencies.
9755 2003-01-30 J. Brobecker <brobecker@gnat.com>
9757 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9758 causing some regressions due to a change in the default value
9761 2003-01-29 Richard Henderson <rth@redhat.com>
9762 Elena Zannoni <ezannoni@redhat.com>
9763 Daniel Jacobowitz <drow@mvista.com>
9766 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9768 (RANGES_SECTION): New.
9769 (dwarf_ranges_buffer): New variable.
9770 (struct comp_unit_head): Add member "die".
9771 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9772 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9773 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9774 (dwarf2_locate_sections): Likewise.
9775 (dwarf2_build_psymtabs): Read .debug_ranges.
9776 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9777 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9778 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9779 Look for DW_AT_ranges and return the bounding box.
9781 2003-01-29 Brian Ford <ford@vss.fsi.com>
9783 * win32-nat.c (cygwin_pid): Removed as unused.
9784 (child_attach): Try fall back to Cygwin pid.
9786 2003-01-29 Jim Blandy <jimb@redhat.com>
9788 * objfiles.h (struct objfile): Doc fix.
9790 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9792 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9793 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9794 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9795 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9796 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9797 (FRAME_SAVED_PC): Change to a function with predicate.
9798 * gdbarch.h, gdbarch.c: Re-generate.
9800 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9802 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9804 * complaints.c (complain): Delete function.
9805 * complaints.h (struct deprecated_complaint): Delete definition.
9806 (complain): Delete declaration.
9808 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9810 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9813 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9815 * sentinel-frame.h, sentinel-frame.c: New files.
9816 * Makefile.in (frame.o): Update dependencies.
9817 (SFILES): Add sentinel-frame.c.
9818 (sentinel_frame_h): Define.
9819 (COMMON_OBS): Add sentinel-frame.o.
9820 (sentinel-frame.o): Specify dependencies.
9821 * frame.c: Include "sentinel-frame.h".
9822 (frame_register_unwind): Rewrite assuming that there is always a a
9824 (frame_register, generic_unwind_get_saved_register): Ditto.
9825 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9826 (create_sentinel_frame, unwind_to_current_frame): New functions.
9827 (get_current_frame): Rewrite using create_sentinel_frame and
9828 unwind_to_current_frame. When possible, always create a frame.
9829 (create_new_frame): Set next to the sentinel frame.
9830 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9831 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9832 ID cache when necessary.
9833 (frame_saved_regs_id_unwind): Use frame_relative_level.
9834 (deprecated_generic_get_saved_register): Use frame_relative_level,
9835 get_frame_saved_regs, get_frame_pc, get_frame_base and
9837 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9840 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9842 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9844 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9846 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9847 (maintenance_set_profile_cmd): Use error () instead of warning ().
9849 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9851 * configure.in: Check that -pg works if using --enable-profiling.
9852 Check for monstartup and _mcleanup regardless of --enable-profiling.
9853 * maint.c: Check for monstartup and _mcleanup before using them.
9854 * config.in: Regenerated.
9855 * configure: Regenerated.
9857 2003-01-24 Nick Clifton <nickc@redhat.com>
9861 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9863 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9864 (sh2e_show_regs): New.
9865 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9866 * config/sh/tm-sh.h: Added sh2e to comments.
9868 2003-01-23 Jim Blandy <jimb@redhat.com>
9870 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9871 symbols found)" message here; we haven't checked for a separate
9872 debug info file yet, so we don't know yet.
9873 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9874 we've looked everywhere. Also, there's no need to print a special
9875 message when we're loading the separate debug info file: the one
9876 symbol_file_add prints is fine.
9878 2003-01-23 Alexander Larsson <alexl@redhat.com>
9879 Jim Blandy <jimb@redhat.com>
9881 Add support for executables whose debug info has been separated
9882 out into a separate file, leaving only a link behind.
9883 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9884 and separate_debug_objfile_backlink.
9885 (put_objfile_before): New declaration.
9886 * symfile.c: #include "filenames.h".
9887 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9888 debug info in a separate file, read that, too. Save the addrs
9889 argument, so we can use it again to read the separated debug info;
9890 syms_from_objfile modifies the table we pass it.
9891 (reread_symbols): After re-reading an objfile, call
9892 reread_separate_symbols to refresh its separate debug info
9893 objfile, if it has one.
9894 (reread_separate_symbols, find_separate_debug_file,
9895 get_debug_link_info, separate_debug_file_exists): New functions.
9896 (debug_file_directory): New global var.
9897 (_initialize_symfile): Initialize debug_file_directory, and
9898 provide the new `set debug-file-directory' command to let the user
9900 * objfiles.c (free_objfile): If this objfile has its debug info in
9901 a separate objfile, free that one too. If this is itself a
9902 separate debug info objfile, clear our parent's backlink.
9903 (put_objfile_before): New function.
9904 * utils.c (gnu_debuglink_crc32): New function.
9905 * defs.h (gnu_debuglink_crc32): New declaration.
9906 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9907 * configure.in: Handle --with-separate-debug-dir config option.
9908 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9909 * acconfig.h (DEBUGDIR): New macro.
9910 * configure, aclocal.m4, config.in: Regenerated.
9912 2003-01-22 Jim Blandy <jimb@redhat.com>
9914 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9915 like the old symbol_file_add, but taking new arguments: you can
9916 now pass in either a `struct section_addr_info' list to say where
9917 each section is loaded, or a `struct section_offsets' table. Pass
9918 these new arguments through to syms_from_objfile as appropriate.
9919 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9920 with the appropriate quiescent values for the new arguments.
9922 * symfile.c: #include "gdb_assert.h".
9923 (syms_from_objfile): Add the ability to pass in a section offset
9924 table directly, as an alternative to the section_addr_info table.
9925 Document arguments better.
9926 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9927 * symfile.h (syms_from_objfile): Update declaration.
9928 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9930 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9932 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9934 Original patch by Tom Tromey <tromey@cygnus.com> and
9935 Jason Molenda <jmolenda@apple.com>.
9936 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9937 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9938 * NEWS: Mention profiling.
9939 * configure.in (--enable-gdbtk): Fix typo.
9940 (--enable-profiling): New. Set PROFILE_CFLAGS.
9941 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9943 (profiling_state): New variable.
9944 (mcleanup_wrapper): New function.
9945 (_initialize_maint): Remove NOTYET, fix call to
9946 add_setshow_boolean_cmd for "maint set profile".
9947 * configure: Regenerated.
9949 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9951 * Makefile.in (install-gdbtk): Install PNG images too.
9953 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9955 * exec.c (text_start): Delete global variable.
9956 (exec_file_attach): Make text_start local to the function.
9957 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9958 * valops.c (hand_function_call): Delete code that handles
9959 BEFORE_TEXT_END and AFTER_TEXT_END.
9960 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9961 of CALL_DUMMY_LOCATION.
9962 * gdbarch.c: Regenerate.
9963 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9964 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9965 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9966 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9967 (text_end): Delete extern declaration.
9969 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9971 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9972 * blockframe.c (backtrace_below_main): Move to "frame.c".
9973 (frame_chain_valid): Delete check for backtrace_below_main.
9974 (_initialize_blockframe): Delete initialization, move ``set
9975 backtrace-below-main'' command to "frame.c".
9976 (do_flush_frames_sfunc): Delete function.
9977 * frame.c: Include "command.h" and "gdbcmd.h".
9978 (frame_type_from_pc): New function.
9979 (create_new_frame): Use frame_type_from_pc.
9980 (legacy_get_prev_frame): New function.
9981 (get_prev_frame): Rewrite. When an old style frame, call
9982 legacy_get_prev_frame. Otherwize, unwind the PC first.
9983 (_initialize_frame): Add ``set backtrace-below-main'' command.
9984 * Makefile.in (frame.o): Update dependencies.
9986 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9988 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9989 DEPRECATED_REGISTERS_INFO.
9991 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9993 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9994 Maintainers'. Update `Various Maintainers'.
9996 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9998 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9999 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10000 Suppress actual parameters when `-'.
10001 * gdbarch.h, gdbarch.c: Regenerate.
10003 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10005 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10006 code handling dummy frames.
10008 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10010 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10011 (struct frame_unwind): Add field pop.
10012 * frame.h (frame_pop): Declare.
10013 * frame.c (frame_saved_regs_pop): New function.
10014 (trad_frame_unwinder): Add frame_saved_regs_pop.
10015 (frame_pop): New function.
10016 * dummy-frame.c (dummy_frame_pop): New function.
10017 (discard_innermost_dummy): New function.
10018 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10019 (dummy_frame_unwind): Add dummy_frame_pop.
10020 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10021 * valops.c (hand_function_call): Ditto.
10022 * stack.c (return_command): Ditto.
10024 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10026 * cris-tdep.c: Fix function declaration indentation.
10027 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10028 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10029 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10030 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10031 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10032 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10034 2003-01-18 Michael Chastain <mec@shout.net>
10036 * README (Unpacking and Installation -- quick overview):
10037 Warn against ".../gdb-5.3/gdb/configure".
10039 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10041 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10042 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10043 (struct frame_unwind): Declare opaque.
10044 (dummy_frame_p): Declare function.
10045 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10046 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10047 * dummy-frame.c: Include "frame-unwind.h".
10048 (dummy_frame_p): New function.
10049 (dummy_frame_unwind): New variable.
10050 * frame.c: Include "frame-unwind.h".
10051 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10052 to use the new unwind field.
10053 (set_unwind_by_pc): Delete function.
10054 (create_new_frame, get_prev_frame): Set unwind field using
10055 frame_unwind_find_by_pc.
10056 (trad_frame_unwind, trad_frame_unwinder): New variables.
10057 * frame.h (trad_frame_unwind): Declare variable.
10058 (frame_id_unwind_ftype): Delete declaration.
10059 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10060 (struct frame_unwind): Declare opaque.
10061 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10062 register_unwind with a single unwind pointer.
10063 * frame-unwind.h, frame-unwind.c: New files.
10064 * Makefile.in (SFILES): Add frame-unwind.c.
10065 (frame_unwind_h): Define.
10066 (COMMON_OBS): Add frame-unwind.o.
10067 (frame-unwind.o): Specify dependencies.
10068 (frame.o, dummy-frame.o): Update dependencies.
10070 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10072 * ada-valprint.c: Eliminate PTR.
10073 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10074 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10075 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10076 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10077 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10078 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10079 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10081 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10083 * main.c (captured_main): Don't use PTR.
10084 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10085 * gdbtypes.c (lookup_primitive_typename): Ditto.
10086 (lookup_struct_elt_type): Ditto.
10087 * f-valprint.c (info_common_command): Ditto.
10088 (list_all_visible_commons): Ditto.
10089 * jv-typeprint.c (java_type_print_base): Ditto.
10091 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10092 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10093 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10094 i386-interix-nat.c and i386-interix-tdep.c. Rename
10095 m68klinux-nat.c and m68klinux-tdep.c. Rename
10096 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10097 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10098 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10099 * main.c (captured_main): Use xfree, not free.
10101 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10103 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10104 ID back using a parameter.
10105 * frame.c (frame_id_unwind): Update call.
10106 (frame_saved_regs_id_unwind): Update.
10107 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10108 * dummy-frame.h (struct frame_id): Add opaque declaration.
10109 (dummy_frame_id_unwind): Update declaration.
10111 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10113 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10115 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10117 * MAINTAINERS (Stephen P. Smith): Updated email address.
10119 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10122 * breakpoint.c (until_break_command): Add new argument. Use it to
10123 decide whether to stop only at the current frame or not.
10124 * breakpoint.h (until_break_command): Update prototype.
10125 * infcmd.c (until_command): Add new argument to until_break_command
10127 (advance_command): New function.
10128 (_initialize_infcmd): Update help string for 'until' command.
10129 Add new 'advance' command.
10131 2003-01-14 David Carlton <carlton@math.stanford.edu>
10133 * linespec.c (decode_line_1): Normalize comments.
10134 (set_flags): Ditto.
10135 (locate_first_half): Ditto.
10136 (decode_compound): Ditto.
10137 (symtab_from_filename): Ditto.
10138 (decode_all_digits): Ditto.
10139 (decode_dollar): Ditto.
10140 (find_methods): Ditto.
10141 (find_toplevel_char): Ditto.
10143 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10145 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10146 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10147 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10148 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10149 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10150 * language.c, language.h, m32r-tdep.c: Update copyright.
10151 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10152 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10153 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10154 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10155 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10156 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10158 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10160 * stabsread.h (process_later, resolve_cfront_continuation):
10162 Update copyright years.
10163 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10164 Update copyright year.
10165 * dbxread.c(struct cont_elem): Obsolete.
10166 (process_later, process_now): Obsolete functions.
10167 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10168 Update copyright year.
10169 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10170 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10171 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10172 (parse_partial_symbols): Obsolete cfront support.
10174 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10176 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10177 read_cfront_baseclasses, read_cfront_member_functions,
10178 resolve_cfront_continuation,read_cfront_static_fields,
10179 copy_cfront_struct_fields): Obsolete functions.
10180 (define_symbol, read_one_struct_field): Obsolete cfront support.
10181 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10182 Update Copyright year.
10184 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10186 * stack.c (print_frame_info, print_stack_frame_base_stub,
10187 print_stack_frame_base, show_and_print_stack_frame_stub,
10188 show_and_print_stack_frame, print_only_stack_frame_stub,
10189 print_only_stack_frame): Delete functions.
10190 (print_stack_frame_stub): Call print_frame_info instead of
10191 print_frame_info_base.
10192 (print_frame_info_base): Rename to print_frame_info.
10193 (backtrace_command_1): Call print_frame_info, instead of
10194 print_frame_info_base.
10195 (current_frame_command): Call print_stack_frame, instead of
10196 print_only_stack_frame.
10197 (frame_command): Call print_stack_frame, instead of
10198 show_and_print_stack_frame.
10199 (up_command): Ditto.
10200 (down_command): Ditto.
10201 * frame.h (print_only_stack_frame): Delete prototype.
10202 * infrun.c (normal_stop): Call print_stack_frame, instead of
10203 show_and_print_stack_frame.
10204 * thread.c (info_threads_command): Call print_stack_frame, instead
10205 of print_only_stack_frame.
10207 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10209 * README (Graphical interface to GDB): Update URL. Point at
10212 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10215 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10217 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10220 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10222 * thread-db.c (attach_thread): Prototype.
10223 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10224 thread information (ti), and valid flags (th_valid, ti_valid).
10225 (attach_thread): Move target_pid_to_str call to after the thread
10226 is added to GDB's list. Initialize the cache.
10227 (thread_get_info_callback, thread_db_map_id2thr)
10228 (thread_db_get_info): New functions.
10229 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10230 (thread_db_store_registers, thread_db_thread_alive)
10231 (thread_db_get_thread_local_address): Use them.
10232 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10233 of calling error() for threads in unknown state.
10235 (clear_lwpid_callback): New function.
10236 (thread_db_resume): Use it to clear the cache.
10238 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10240 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10241 (resume_callback): Remove dead code.
10243 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10245 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10247 * gdbarch.h, gdbarch.c: Regenerate.
10248 * stack.c (frame_info): Only initialize the saved registers when
10249 FRAME_INIT_SAVED_REGS_P.
10250 * frame.c (frame_saved_regs_register_unwind): Assert
10251 FRAME_INIT_SAVED_REGS_P.
10252 (deprecated_generic_get_saved_register): Ditto.
10254 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10256 * source.c (openp): Squelch warning about "filename".
10258 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10260 * source.c (openp): If the file does not exist don't necessarily
10263 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10266 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10267 (integer_types_same_name_p): New function.
10268 (rank_one_type): Use it.
10269 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10271 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10273 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10275 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10276 * configure.in: Add --with-sysroot.
10277 * configure: Regenerated.
10278 * main.c (gdb_sysroot): New variable.
10279 (captured_main): Initialize gdb_sysroot.
10280 * defs.h (gdb_sysroot): New extern declaration.
10281 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10283 2003-01-12 Michael Chastain <mec@shout.net>
10285 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10287 2003-01-12 Michael Chastain <mec@shout.net>
10289 * top.c (print_gdb_version): Bump copyright year to 2003.
10291 2003-01-12 David Carlton <carlton@bactrian.org>
10293 * linespec.c (symtab_from_filename): Rename variable 's' to
10296 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10298 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10300 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10302 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10304 * d10v-tdep.c: Include "gdb_assert.h".
10305 (d10v_store_return_value): Rewrite to match current interface.
10306 (d10v_extract_struct_value_address): Ditto.
10307 (d10v_extract_return_value): Ditto.
10308 (d10v_gdbarch_init): Set store_restore_value,
10309 extract_struct_value_address and extract_return_value.
10311 2003-01-12 J. Brobecker <brobecker@gnat.com>
10313 * hpread.c (set_namestring): New procedure replacing the
10314 SET_NAMESTRING macro.
10315 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10316 by calls to set_namestring.
10318 2003-01-11 J. Brobecker <brobecker@gnat.com>
10320 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10321 a compilation warning.
10322 (hpread_process_one_debug_symbol): Likewise.
10324 2003-01-10 David Carlton <carlton@math.stanford.edu>
10326 * linespec.c (decode_line_1): Rename variable 's' to
10328 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10329 (decode_dollar): Ditto.
10330 (decode_variable): Ditto.
10331 (symbol_found): Ditto.
10333 2003-01-09 Michael Chastain <mec@shout.net>
10335 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10337 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10339 * win32-nat.c (set_process_privilege): New function.
10340 (child_attach): Call set_process_privilege() to enable the
10341 SE_DEBUG_NAME user privilege if available in process token.
10343 2003-01-10 J. Brobecker <brobecker@gnat.com>
10345 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10346 compilation error in the previous revision.
10348 2003-01-09 David Carlton <carlton@math.stanford.edu>
10350 * linespec.c: Update copyright.
10352 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10354 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10355 than inferior_ptid.
10356 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10358 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10360 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10362 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10363 (frame_saved_regs_zalloc): Update.
10364 (frame_saved_regs_register_unwind): Update.
10365 (create_new_frame): Update.
10366 (get_prev_frame): Update.
10367 (frame_extra_info_zalloc): Update.
10368 (deprecated_get_frame_saved_regs): Update.
10369 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10370 * cris-tdep.c: Update comment.
10372 * somsolib.h: Fix function indentation.
10373 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10374 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10375 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10376 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10377 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10379 * infrun.c (follow_fork): Use ISO C definition.
10380 * expprint.c (print_subexp): Use xfree instead of free.
10381 * charset.c: Include "gdb_string.h" instead of <string.h>.
10382 (register_iconv_charsets): Use ISO C definition.
10383 (host_charset, target_charset): Ditto.
10384 * Makefile.in (charset.o): Update dependencies.
10385 (mi-cmd-env.o): Update dependencies.
10387 2003-01-08 Andrew Cagney <cagney@redhat.com>
10389 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10392 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10394 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10395 build directories. Save edited gdb output in Mbuild.log. If a
10396 build fails, remove any final GDB executable.
10398 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10400 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10401 replacing hex constants with function names and stripping leading
10402 file name directory prefixes.
10404 2003-01-08 Andrew Cagney <cagney@redhat.com>
10406 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10409 2003-01-08 David Carlton <carlton@math.stanford.edu>
10411 * linespec.c (decode_line_1): Move code into decode_variable.
10412 (decode_variable): New function.
10414 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10416 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10418 2003-01-08 Andrew Cagney <cagney@redhat.com>
10420 * cris-tdep.c (cris_frame_init_saved_regs): Use
10421 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10423 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10424 (sh64_nofp_frame_init_saved_regs): Ditto.
10425 (sh_fp_frame_init_saved_regs): Ditto.
10426 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10427 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10428 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10429 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10431 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10433 * minsyms.c (lookup_minimal_symbol): Update comment.
10434 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10435 (lookup_minimal_symbol_solib_trampoline): Likewise.
10437 2003-01-08 Andrew Cagney <cagney@redhat.com>
10439 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10440 frame_relative_level.
10442 * alpha-tdep.c: Use get_frame_extra_info.
10443 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10444 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10445 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10446 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10448 * alpha-tdep.c: Use get_next_frame.
10449 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10450 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10451 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10452 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10453 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10454 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10455 * xstormy16-tdep.c: Ditto.
10457 2003-01-07 Andrew Cagney <cagney@redhat.com>
10459 * alpha-tdep.c: Use get_frame_base.
10460 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10461 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10462 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10463 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10464 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10465 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10466 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10467 * config/sparc/tm-sparc.h: Ditto.
10469 2003-01-07 Andrew Cagney <cagney@redhat.com>
10471 * frame.c (deprecated_get_frame_context): New function.
10472 (deprecated_set_frame_context): New function.
10473 * frame.h (deprecated_get_frame_context): Declare.
10474 (deprecated_set_frame_context): Declare.
10475 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10476 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10478 2003-01-07 Andrew Cagney <cagney@redhat.com>
10480 * frame.c (deprecated_set_frame_next_hack): New function.
10481 (deprecated_set_frame_prev_hack): New function.
10482 * frame.h (deprecated_set_frame_next_hack): Declare.
10483 (deprecated_set_frame_prev_hack): Declare.
10484 * mcore-tdep.c (analyze_dummy_frame): Use
10485 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10486 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10488 2003-01-07 David Carlton <carlton@math.stanford.edu>
10490 * linespec.c (decode_line_1): Move code into decode_dollar.
10491 (decode_dollar): New function.
10493 2003-01-07 Andrew Cagney <cagney@redhat.com>
10495 * arm-tdep.c (arm_init_extra_frame_info): Use
10496 deprecated_update_frame_base_hack.
10497 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10498 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10499 (fix_frame_pointer): Ditto.
10500 (mn10300_analyze_prologue): Ditto.
10502 2003-01-07 Andrew Cagney <cagney@redhat.com>
10504 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10505 extra_info using frame_extra_info_zalloc.
10506 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10507 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10508 (sh64_init_extra_frame_info): Ditto.
10509 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10510 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10511 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10512 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10513 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10514 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10515 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10516 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10517 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10518 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10519 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10520 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10522 * mn10300-tdep.c (analyze_dummy_frame): Use
10523 deprecated_set_frame_extra_info_hack.
10524 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10526 2003-01-07 J. Brobecker <brobecker@gnat.com>
10528 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10529 class is not scText. These do not define "real" procedures.
10530 (parse_partial_symbols): Likewise.
10532 2003-01-06 Michael Snyder <msnyder@redhat.com>
10534 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10536 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10538 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10539 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10540 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10541 deprecated_frame_xmalloc_with_cleanup.
10542 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10543 deprecated_frame_xmalloc.
10544 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10545 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10547 2003-01-06 Andrew Cagney <cagney@redhat.com>
10549 * x86-64-linux-tdep.c: Include "osabi.h".
10550 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10552 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10554 2003-01-06 Andrew Cagney <cagney@redhat.com>
10556 * MAINTAINERS (Target Instruction Set Architectures): Update
10557 arm-elf. Can be built with -Werror, has been multiarched.
10559 * value.h (unpack_long): Make buffer parameter constant.
10560 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10561 * scm-lang.h (scm_parse): Ditto.
10562 * defs.h (extract_typed_address, extract_address): Ditto.
10563 (extract_long_unsigned_integer): Ditto.
10564 * inferior.h (unsigned_pointer_to_address): Ditto.
10565 (signed_pointer_to_address): Ditto.
10566 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10567 * gdbarch.h, gdbarch.c: Regenerate.
10568 * findvar.c (extract_long_unsigned_integer): Update.
10569 (extract_address): Update.
10570 (extract_typed_address): Update.
10571 (unsigned_pointer_to_address): Update.
10572 * values.c (unpack_long): Update.
10573 (unpack_double): Update.
10574 (unpack_pointer): Update.
10575 (unpack_field_as_long): Update.
10576 * d10v-tdep.c (d10v_pointer_to_address): Update.
10577 * avr-tdep.c (avr_pointer_to_address): Update.
10578 * scm-lang.c (scm_unpack): Update.
10579 * findvar.c (signed_pointer_to_address): Update.
10581 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10583 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10584 since it is in i386-tdep.c.
10586 2003-01-06 J. Brobecker <brobecker@gnat.com>
10588 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10589 failure introduced in the previous change.
10591 2003-01-05 Michael Chastain <mec@shout.net>
10593 * README: Remove references to deleted remote-*.c files:
10594 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10595 remote-nrom.c, remote-os9k.c, remote-udi.c.
10597 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10599 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10600 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10601 i386_get_longjmp_target.
10603 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10605 * arm-tdep.c (prologue_cache): Change to a pointer.
10606 (_initialize_arm_tdep): Allocate prologue_cache.
10607 (check_prologue_cache): Update.
10608 (save_prologue_cache): Update.
10609 (arm_gdbarch_init): Update.
10611 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10613 * stabsread.c (update_method_name_from_physname): Call complaint()
10616 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10618 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10619 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10620 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10622 * blockframe.c: Include "gdbcmd.h" and "command.h".
10623 (backtrace_below_main): New variable.
10624 (file_frame_chain_valid, func_frame_chain_valid)
10625 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10626 (generic_func_frame_chain_valid): Remove functions.
10627 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10628 (_initialize_blockframe): New function.
10629 * Makefile.in (blockframe.o): Update dependencies.
10630 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10631 comment. Call frame_chain_valid ().
10632 * frame.h: Remove old prototypes. Add prototype for
10633 frame_chain_valid and update comments to match.
10634 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10635 Remove old comment.
10636 * gdbarch.h: Regenerated.
10637 * gdbarch.c: Regenerated.
10639 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10640 set_gdbarch_frame_chain_valid.
10641 * avr-tdep.c (avr_gdbarch_init): Likewise.
10642 * cris-tdep.c (cris_gdbarch_init): Likewise.
10643 * frv-tdep.c (frv_gdbarch_init): Likewise.
10644 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10645 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10646 (i386_nw_init_abi): Likewise.
10647 (i386_gdbarch_init): Likewise.
10648 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10650 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10651 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10652 * mips-tdep.c (mips_gdbarch_init): Likewise.
10653 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10654 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10655 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10656 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10657 * s390-tdep.c (s390_gdbarch_init): Likewise.
10658 * sh-tdep.c (sh_gdbarch_init): Likewise.
10659 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10660 * v850-tdep.c (v850_gdbarch_init): Likewise.
10661 * vax-tdep.c (vax_gdbarch_init): Likewise.
10662 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10664 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10665 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10666 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10667 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10668 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10669 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10670 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10671 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10673 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10675 * Makefile.in (acconfig_h): Remove incorrect macro.
10676 (config_h): Define.
10677 (osabi.o): Update dependencies.
10678 * configure.tgt: Set gdb_osabi based on target triplet.
10679 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10680 * configure: Regenerated.
10681 * config.in: Regenerated.
10682 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10683 (GDB_OSABI_DEFAULT): Define if not already defined.
10684 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10685 (set_osabi_string): New variables.
10686 (gdbarch_register_osabi): Add new OS ABI to
10687 gdb_osabi_available_names.
10688 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10689 (set_osabi, show_osabi): New functions.
10690 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10692 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10694 * arch-utils.c (gdbarch_info_init): Set osabi to
10695 GDB_OSABI_UNINITIALIZED.
10696 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10697 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10698 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10699 * gdbarch.c: Regenerated.
10700 * gdbarch.h: Regenerated.
10701 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10703 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10704 * osabi.h (enum gdb_osabi): Move to defs.h.
10705 (gdbarch_init_osabi): Update prototype.
10706 * defs.h (enum gdb_osabi): Moved here.
10707 * Makefile.in: Update dependencies.
10709 * alpha-tdep.h: Don't include "osabi.h".
10710 (struct gdbarch_tdep): Remove osabi member.
10711 * alpha-tdep.c: Include "osabi.h".
10712 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10713 iterate over arches. Update call to gdbarch_init_osabi.
10714 (alpha_dump_tdep): Don't dump osabi.
10715 * alpha-linux-tdep.c: Include "osabi.h".
10716 * alpha-osf1-tdep.c: Include "osabi.h".
10717 * alphafbsd-tdep.c: Include "osabi.h".
10718 * alphanbsd-tdep.c: Include "osabi.h".
10720 * arm-tdep.h: Don't include "osabi.h".
10721 (struct gdbarch_tdep): Remove osabi member.
10722 * arm-tdep.c: Include "osabi.h".
10723 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10724 iterate over arches. Update call to gdbarch_init_osabi.
10725 (arm_dump_tdep): Don't dump osabi.
10726 * arm-linux-tdep.c: Include "osabi.h".
10727 * armnbsd-tdep.c: Include "osabi.h".
10729 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10730 Update call to gdbarch_init_osabi.
10732 * i386-tdep.h: Don't include "osabi.h".
10733 (struct gdbarch_tdep): Remove osabi member.
10734 * i386-tdep.c: Include "osabi.h".
10735 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10736 iterate over arches. Update call to gdbarch_init_osabi.
10737 (i386_dump_tdep): Don't dump osabi.
10738 * i386-linux-tdep.c: Include "osabi.h".
10739 * i386-sol2-tdep.c: Include "osabi.h".
10740 * i386bsd-tdep.c: Include "osabi.h".
10741 * i386gnu-tdep.c: Include "osabi.h".
10742 * i386ly-tdep.c: Include "osabi.h".
10743 * i386nbsd-tdep.c: Include "osabi.h".
10744 * i386obsd-tdep.c: Include "osabi.h".
10746 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10747 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10748 check osabi when iterating over arches. Update call to
10749 gdbarch_init_osabi.
10750 (mips_dump_tdep): Don't dump osabi.
10752 * ns32k-tdep.h: Don't include "osabi.h".
10753 (struct gdbarch_tdep): Remove.
10754 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10755 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10756 allocate tdep. Update call to gdbarch_init_osabi.
10757 (ns32k_dump_tdep): Remove.
10758 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10759 * ns32knbsd-tdep.c: Include "osabi.h".
10761 * ppc-tdep.h: Don't include "osabi.h".
10762 (struct gdbarch_tdep): Remove osabi member.
10763 * rs6000-tdep.c: Include "osabi.h".
10764 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10765 osabi when iterating over arches. Update call to
10766 gdbarch_init_osabi.
10767 (rs6000_dump_tdep): Don't dump osabi.
10768 * ppc-linux-tdep.c: Include "osabi.h".
10769 * ppcnbsd-tdep.c: Include "osabi.h".
10771 * sh-tdep.h: Don't include "osabi.h".
10772 (struct gdbarch_tdep): Remove osabi member.
10773 * sh-tdep.c: Include "osabi.h".
10774 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10775 iterate over arches. Update call to gdbarch_init_osabi.
10776 (sh_dump_tdep): Don't dump osabi.
10777 * shnbsd-tdep.c: Include "osabi.h".
10779 * sparc-tdep.c: Include "osabi.h".
10780 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10781 iterate over arches. Update call to gdbarch_init_osabi.
10782 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10785 * vax-tdep.h: Don't include "osabi.h".
10786 (struct gdbarch_tdep): Remove.
10787 * vax-tdep.c: Include "osabi.h".
10788 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10789 iterate over arches. Don't allocate tdep. Update call
10790 to gdbarch_init_osabi.
10791 (vax_dump_tdep): Remove.
10792 (_initialize_vax_tdep): Update call to gdbarch_register.
10794 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10796 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10798 (breakpoint_re_set_one): Don't fetch the value for a disabled
10801 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10803 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10804 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10805 (COERCE_FLOAT_TO_DOUBLE): Remove.
10806 * gdbarch.c: Regenerate.
10807 * gdbarch.h: Regenerate.
10808 * Makefile.in: Remove value_h from gdbarch_h.
10809 * valops.c (coerce_float_to_double): New variable.
10810 (default_coerce_float_to_double): Remove.
10811 (standard_coerce_float_to_double): Remove.
10812 (value_arg_coerce): Use coerce_float_to_double.
10813 (_initialize_valops): Add "set coerce-float-to-double".
10814 * value.h (default_coerce_float_to_double): Remove prototype.
10815 (standard_coerce_float_to_double): Remove prototype.
10817 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10819 * mdebugread.c (parse_symbol): Likewise.
10820 * stabsread.c (define_symbol): Mark all functions as prototyped.
10822 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10823 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10824 set_gdbarch_coerce_float_to_double.
10825 * arm-tdep.c (arm_gdbarch_init): Likewise.
10826 * frv-tdep.c (frv_gdbarch_init): Likewise.
10827 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10828 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10829 * mips-tdep.c (mips_gdbarch_init): Likewise.
10830 (mips_coerce_float_to_double): Remove.
10831 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10832 (rs6000_coerce_float_to_double): Remove.
10833 * s390-tdep.c (s390_gdbarch_init): Likewise.
10834 * sh-tdep.c (sh_gdbarch_init): Likewise.
10835 (sh_coerce_float_to_double): Remove.
10836 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10837 (sparc_coerce_float_to_double): Remove.
10838 * v850-tdep.c (v850_gdbarch_init): Likewise.
10839 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10840 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10841 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10842 (hppa_coerce_float_to_double): Remove prototype.
10843 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10845 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10847 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10849 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10851 Suggested by Stewart Brown <sb24@avaya.com>:
10852 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10853 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10854 (c_type_print_varspec_suffix): Likewise.
10856 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10858 * configure.in: Don't set and AC_SUBST SUBDIRS.
10859 * configure: Regenerated.
10861 * configure.in: Remove code dealing with shared libraries.
10862 * Makefile.in: Remove HLDFLAGS and HLDENV.
10863 * configure: Regenerated.
10865 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10867 * frame.c (deprecated_frame_xmalloc): New function.
10868 (deprecated_set_frame_saved_regs_hack): New function.
10869 (deprecated_set_frame_extra_info_hack): New function.
10870 * frame.h (deprecated_frame_xmalloc): Declare.
10871 (deprecated_set_frame_saved_regs_hack): Declare.
10872 (deprecated_set_frame_extra_info_hack): Declare.
10874 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10876 * configure.in: Move code that provides the --enable-gdbtk option
10877 right after the code that handles the --enable-tui option, and
10878 polish it somewhat.
10879 * configure: Regenerated.
10881 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10882 AC_CHECK_FUNCS and remove the old check for pread64.
10883 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10884 * acconfig.h (_GNU_SOURCE): Add.
10885 (HAVE_PREAD64): Remove.
10886 * configure, aclocal.m4, config.in: Regenerated.
10888 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10890 * alpha-tdep.c: Use get_frame_saved_regs.
10891 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10892 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10893 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10894 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10895 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10897 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10899 * configure.in: Remove all use of the SUBDIRS variable; add
10900 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10901 code providing the --enable-multi-ice option, and move it right in
10902 front of the code that checks whether gdbserver is supported.
10904 * configure: Regenerated.
10905 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10908 2003-01-03 Andrew Cagney <cagney@redhat.com>
10910 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10911 * avr-tdep.c, cris-tdep.c: Ditto.
10912 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10913 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10915 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10917 * configure.in: Remove --enable-netrom option.
10918 * configure: Regenerated.
10920 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10922 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10923 declaration for `struct re_pattern_buffer' instead.
10924 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10926 2003-01-03 J. Brobecker <brobecker@gnat.com>
10928 * mdebugread.c (parse_symbol): Count until the stEnd matching
10929 the structure name.
10931 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10933 * configure.in: Remove --with-cpu option.
10934 subscripts. Remove evil changequotes here.
10935 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10936 * config.in, configure: Regenerated.
10938 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10939 * configure.in: Cleanup section that sources GDB and BFD configure
10940 subscripts. Remove evil changequotes here.
10941 * config.in, configure: Regenerated.
10943 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10945 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10946 frame accessor methods.
10947 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10948 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10949 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10950 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10951 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10952 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10953 * z8k-tdep.c: Ditto.
10955 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10957 * configure.in: Remove UI_OUT configuration code.
10958 * ada-lang.c: Update assuming UI_OUT is always true.
10959 * Makefile.in (UIOUT_CFLAGS): Remove.
10960 * configure: Regenerated.
10961 * TODO: Remove blurb about elimination of -DUI_OUT.
10963 * configure.in: Move code that provides the --enable-gdbcli,
10964 --enable-gdbmi options right before the code that handles the
10965 --enable-tui option. Polish a bit.
10966 * configure: Regenerated.
10968 * configure.in: Rewrite check for GNU regex and the
10969 --without-included regex option, and move it into the "Checks for
10970 library functions" section. This makes us use the system regex
10971 again by default on systems with version 2 of the GNU C library.
10972 This was apparently broken.
10973 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10974 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10975 * config.in, configure: Regenerated.
10977 * configure.in: Move code that provides the --enable-tui option
10978 before the "Checks for libraries" section. Polish the code
10979 somewhat and set need_curses to yes if we build the TUI. Rewrite
10980 code that looks for a library providing termcap functionality to
10981 match more closely what's done in the Readline library, and move
10982 it into to the "Checks for libraries" section.
10983 * configure: Regenerated.
10984 * Makefile.in (TERMCAP): Remove variable.
10985 * config/i386/go32.mh (TERMCAP): Remove variable.
10987 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10989 * MAINTAINERS: Mention gdb_mbuild.sh.
10990 * gdb_mbuild.sh: Rewrite.
10992 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10994 * configure.in: Fix typo in last change.
10995 * config.in, configure: Regenerated.
10997 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10999 * valarith.c (value_binop): Delete obsolete code and comments.
11000 * configure.host: Ditto.
11001 * buildsym.h (make_blockvector): Ditto.
11002 * buildsym.c (make_blockvector): Ditto.
11003 * defs.h (enum language): Ditto.
11004 (chill_demangle): Ditto.
11005 * elfread.c (elf_symtab_read): Ditto.
11006 * dwarfread.c (CHILL_PRODUCER): Ditto.
11007 (set_cu_language): Ditto.
11008 (handle_producer): Ditto.
11009 * expprint.c (print_subexp): Ditto.
11010 * gdbtypes.c (chill_varying_type): Ditto.
11011 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11012 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11013 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11014 (chill_varying_type): Ditto.
11015 * language.h (_LANG_chill): Ditto.
11016 * language.c (binop_result_type, integral_type): Ditto.
11017 (character_type, string_type, structured_type): Ditto.
11018 (lang_bool_type, binop_type_check): Ditto.
11019 * stabsread.h (os9k_stabs): Ditto.
11020 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11021 (define_symbol, read_type, read_struct_fields): Ditto.
11022 (read_array_type, read_enum_type, read_huge_number): Ditto.
11023 (read_range_type, start_stabs): Ditto.
11024 * symfile.c (init_filename_language_table): Ditto.
11025 (add_psymbol_with_dem_name_to_list): Ditto.
11026 * symtab.c (symbol_init_language_specific): Ditto.
11027 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11028 * symtab.h (struct general_symbol_info): Ditto.
11029 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11030 * typeprint.c (typedef_print): Ditto.
11031 * utils.c (fprintf_symbol_filtered): Ditto.
11032 * valops.c (value_cast, search_struct_field, value_slice): Delete
11034 (varying_to_slice): Delete function.
11035 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11036 (varying_to_slice): Delete declaration.
11037 * MAINTAINERS: Update.
11039 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11041 * configure.in: Reorganize "Checks for library functions section"
11042 a bit. Remove check for `btowc' and `isascii' functions.
11043 * configure: Regenerated.
11045 * acconfig.h (_MSE_INT_H): Remove.
11046 * configure.in: Create "Checks for header files" section, and move
11047 appropriate tests there. Don't check for objlist.h, wchar.h,
11048 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11049 misdetection fix. Also add "Checks for types", "Checks for
11050 compiler characteristics" and "Checks for library functions"
11052 * config.in, configure: Regenerated.
11054 * configure.in: Create "Checks for programs" section, and move
11055 appropriate tests there.
11057 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11059 * configure.in: Create "Checks for libraries" section, and move
11060 appropriate tests there. Cleanup check for wctype in libw. Use
11061 AC_SEARCH_LIBS to see whether we need libsocket.
11062 * configure: Regenerated.
11064 For older changes see ChangeLog-2002
11070 version-control: never