1 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
5 (go32_fetch_registers): Adjust call to i387_supply_fsave.
6 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
8 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
10 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
12 * i386bsd-nat.c (supply_fpregset): Adjust call to
14 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
15 call to i387_supply_fxsave. Call i387_supply_fsave instead of
17 (store_inferior_registers): Remove extraneous whitespace. Call
18 i387_fill_fsave instead of fill_fpregset.
19 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
20 (supply_fpregset): Likewise.
21 * i386v4-nat.c (supply_fpregset): Adjust call to
23 * i386-interix-nat.c (supply_fpregset): Adjust call to
25 * i386-linux-nat.c (supply_fpregset): Adjust call to
27 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
28 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
29 i387supply_fsave and i387_supply_fxsave.
30 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
31 Incorporate code from `i387_supply_register.
32 (i387_supply_register): Remove.
33 (i387_supply_fxsave): Add `regnum' argument.
35 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
37 (i387_supply_register): remove prototype.
40 2003-08-22 Michael Chastain <mec@shout.net>
42 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
43 Add lines for files in gdb/testsuite/gdb.cp/* that are
46 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
48 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
49 TYPE_VPTR_FIELDNO is valid.
51 2003-08-19 Mark Kettenis <kettenis@gnu.org>
53 * utils.c (set_width_command): Remove prototypes.
54 (set_screen_size): New prototype.
55 (init_page_info): Simplify by fetching the screen size from
56 Readline. Call set_screen_size.
57 (set_screen_size): New function.
58 (set_width): Add missing whitespace in comment.
59 (set_width_command): Call set_screen_size.
60 (set_height_command): New function.
61 (initialize_utils): Fix formatting. Make "set height" command
62 call set_height_command. Remove redundant code that turns off
63 pagination if output isn't a terminal. Remove redundant call to
66 2003-08-22 Mark Kettenis <kettenis@gnu.org>
68 * sparc64-tdep.h (sparc64_regnum): Fix comment.
69 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
70 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
71 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
73 (sparc64_register_info): Give the reister with number
74 SPARC64_STATE_REGNUM a name.
75 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
77 (sparc64_push_dummy_call): Take BIAS into account when checking
79 (sparc_software_single_step): Remove assertions that check whether
80 NPC and NNPC were zero.
81 (sparc_supply_rwindow): Make public. Merge functionality with
82 sparc64_supply_rwindow.
83 (sparc_fill_rwindow): Make public. Merge functionality with
85 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
86 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
87 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
88 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
89 sparc_supply_rwindow instead of sparc64_supply_rwindow.
91 * reggroups.c: Add whitespace after declarations of local
92 variables in functions.
94 2003-08-21 Michael Chastain <mec@shout.net>
96 * gdbtypes.h: Change array bound type from an int to enum.
98 2003-08-21 Andrew Cagney <cagney@redhat.com>
100 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
101 * config/sparc/tm-sparc.h: Ditto.
102 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
104 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
106 2003-07-13 Mark Kettenis <kettenis@gnu.org>
108 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
109 (register_objfile_data, set_objfile_data, objfile_data): New
111 * objfiles.c (objfile_alloc_data, objfile_free_data): New
113 (allocate_objfile): Call objfile_alloc_data.
114 (free_objfile): Call objfile_free_data.
115 (struct objfile_data): New.
116 (struct objfile_data_registration): New.
117 (struct objfile_data_registry): New.
118 (objfile_data_registry): New variable.
119 (register_objfile_data): New function.
120 (objfile_alloc_data, objfile_free_data): New functions.
121 (set_objfile_data, objfile_data): New functions.
122 * dwarf2-frame.c (dwarf2_frame_data): New variable.
123 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
124 (_initialize_dwarf2_frame): New function and prototype.
126 2003-08-21 Andrew Cagney <cagney@redhat.com>
128 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
129 a specific architecture.
130 * arch-utils.h (set_architecture_from_arch_mach): Delete
132 (target_architecture_hook): Delete declaration.
133 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
134 (default_float_format): Assume GDB_MULTI_ARCH.
135 (default_double_format): Assume GDB_MULTI_ARCH.
136 (set_endian_from_file): Delete function.
137 (arch_ok): Delete function.
138 (set_arch): Delete function.
139 (set_architecture_from_arch_mach): Delete function.
140 (set_architecture_from_file): Delete function.
141 (set_architecture): Assume GDB_MULTI_ARCH.
142 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
144 2003-08-21 Mark Kettenis <kettenis@gnu.org>
146 Rewrite FreeBSD/sparc64 native configuration.
147 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
148 * sparc64fbsd-nat.c: New file.
149 * sparc64fbsd-tdep.c: New file.
150 * sparc64-tdep.c sparc64-tdep.h: New files.
151 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
152 sparc64fbsd-tdep.o): New dependencies.
153 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
154 and sparc64fbsd-tdep.c.
155 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
156 * config/sparc/fbsd.mh: Remove copyright notice.
157 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
159 * config/sparc/fbsd.mt: Remove copyright notice.
160 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
161 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
162 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
163 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
164 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
165 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
166 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
167 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
169 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
170 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
172 2003-08-21 Michael Chastain <mec@shout.net>
174 * symtab.h: Add doco on the space critical structures and
175 some measurements of space usage.
177 2003-08-21 Michael Snyder <msnyder@redhat.com>
179 * tracepoint.c (trace_dump_command): Trace break address
180 is subject to DECR_PC_AFTER_BREAK.
181 (set_traceframe_context): Make "trace_line" an int.
182 Fixes suggested by Mark Newman <mark.newman@lmco.com>
184 2003-08-20 Michael Snyder <msnyder@redhat.com>
186 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
187 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
188 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
190 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
191 functions, replace sh_push_dummy_call.
192 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
194 2003-08-20 Michael Chastain <mec@shout.net>
196 * gdbtypes.h (struct main_type): Rearrange to save space.
198 2003-08-20 Michael Snyder <msnyder@redhat.com>
200 * trad-frame.c: Comment typo fix.
202 2003-08-20 Michael Snyder <msnyder@redhat.com>
203 Kevin Buettner <kevinb@redhat.com>
205 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
206 (frv_frame_init_saved_regs): Add declaration.
207 (frame_extra_info): Add new field ``saved_regs''.
208 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
209 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
210 Update frame related code.
211 (frv_extract_struct_value_address): Adjust formatting.
212 * Makefile.in (frv-tdep.o): Update dependencies.
213 * config/frv/tm-frv.h (target_insert_watchpoint)
214 (target_remove_watchpoint, target_insert_hw_breakpoint)
215 (target_remove_hw_breakpoint): Delete these macros.
216 (remote_insert_watchpoint, remote_remove_watchpoint)
217 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
220 2003-08-20 Michael Chastain <mec@shout.net>
222 * defs.h (ENUM_BITFIELD): New macro.
223 * symtab.h (ENUM_BITFIELD): Use it.
224 (BYTE_BITFIELD): Remove old macro, which was already disabled.
226 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
228 * MAINTAINERS (write after approval): Add myself.
230 2003-08-18 Andrew Cagney <cagney@redhat.com>
232 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
233 * gdbarch.h, gdbarch.c: Re-generate.
234 * infcall.c (call_function_by_hand): Adjust the SP by
235 frame_red_zone_size before allocating any stack space.
236 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
237 * x86-64-tdep.c (x86_64_frame_align): New function.
238 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
240 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
241 Remove code adjusting SP so that it skips over the Red Zone.
243 2003-08-18 Mark Kettenis <kettenis@gnu.org>
245 * NEWS (New native configurations): Mention FreeBSD/amd64.
247 2003-08-18 Andrew Cagney <cagney@redhat.com>
249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
250 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
252 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
254 2003-08-18 Mark Kettenis <kettenis@gnu.org>
256 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
258 2003-08-18 Michal Ludvig <mludvig@suse.cz>
260 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
262 * i386-linux-nat.c: Include "linux-nat.h".
263 (child_post_startup_inferior): New function.
265 2003-08-18 Mark Kettenis <kettenis@gnu.org>
267 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
268 at the start of a frameless function. This probably fixes PR
271 2003-08-17 Michael Chastain <mec@shout.net>
273 * symfile.c (find_sym_fns): Remove special case for apollo target.
275 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
277 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
278 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
279 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
280 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
281 (linux_supports_tracevforkdone): New function.
282 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
284 (child_follow_fork): Handle vfork.
285 (linux_handle_extended_wait): Likewise. Also handle exec.
286 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
287 * NEWS: Mention fork tracing.
289 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
291 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
293 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
295 * Makefile.in (i386-linux-nat.o): Update dependencies.
296 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
297 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
298 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
299 * i386-linux-nat.c: Include "linux-nat.h".
300 (child_post_startup_inferior): New function.
301 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
302 * infptrace.c (kill_inferior): Wrap in #ifdef.
303 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
304 attaching to each LWP.
305 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
306 (init_lin_lwp_ops): Fill in some more operations.
307 * linux-nat.h (linux_enable_event_reporting)
308 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
310 * linux-nat.c (linux_enable_event_reporting): New function.
311 (child_post_attach, linux_child_post_startup_inferior)
312 (child_post_startup_inferior, child_follow_fork)
313 (linux_handle_extended_wait, kill_inferior): New functions.
315 2003-08-16 Andrew Cagney <cagney@redhat.com>
317 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
318 * gdbarch.h, gdbarch.c: Re-generate.
320 2003-08-16 Mark Kettenis <kettenis@gnu.org>
322 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
324 2003-08-16 Andrew Cagney <cagney@redhat.com>
326 * NEWS: Mention that "set prompt-escape-char" was deleted.
327 * top.c (get_prompt_1): Delete function.
329 (init_main): Do not clear "gdb_prompt_escape". Delete "set
330 prompt-escape-char" command.
331 (MAX_PROMPT_SIZE): Delete macro.
332 (get_prompt): Simplify, do not call get_prompt_1.
334 2003-08-16 Andrew Cagney <cagney@redhat.com>
336 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
337 -Werror. -Wformat-nonliteral problems.
339 2003-08-15 J. Brobecker <brobecker@gnat.com>
341 Further multiarching work mostly for hppa64-*-hpux11:
342 * hppa-tdep.h: New file.
343 * hppa-tdep.c: #include hppa-tdep.c.
344 (hppa32_num_regs): Renamed from hppa_num_regs.
345 (hppa64_num_regs): New constant.
346 (hppa64_call_dummy_breakpoint_offset): New constant.
347 (hppa32_call_dummy_length): New constant.
348 (hppa64_call_dummy_length): New constant.
349 (hppa32_stack_align): Make name 32bit explicit.
350 (hppa32_register_virtual_type): Likewise.
351 (hppa32_extract_return_value): Likewise.
352 (hppa32_use_struct_convention): Likewise.
353 (hppa32_store_return_value): Likewise.
354 (hppa64_register_virtual_type): New function.
355 (hppa64_extract_return_value): New function.
356 (hppa64_use_struct_convention): New function.
357 (hppa64_store_return_value): New function.
358 (hppa_frame_locals_address): Remove declaration, function does
360 (hppa_register_byte): Add support for PA64 ABI.
361 (hppa_gdbarch_init): Add support for PA64 ABI.
362 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
363 Make name 32bit explicit.
364 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
365 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
366 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
367 (hppa64_hpux_frame_base_before_sigtramp): New function.
368 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
369 * config/pa/tm-hppa64.h: Remove macros that are no longer
370 necessary now that the gdbarch vector is properly setup.
371 Transform some macros into function calls. Some minor cleanup.
372 * config/pa/tm-hppah.h: Update function calls in macros
373 following the function renaming in hppa-hpux-tdep.c.
374 * Makefile.in (hppa_tdep_h): New variable.
375 (hppa-tdep.o): Add dependency over hppa_tdep_h.
377 2003-08-14 Michael Snyder <msnyder@redhat.com>
379 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
381 2003-08-13 J. Brobecker <brobecker@gnat.com>
383 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
384 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
387 2003-08-13 Michael Snyder <msnyder@redhat.com>
389 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
390 (frv_saved_pc_after_call): Use deprecated ftype.
391 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
392 (frv_remote_translate_xfer_address): Remove.
393 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
395 2003-08-13 J. Brobecker <brobecker@gnat.com>
397 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
398 initialization after the common gdbarch initialization, not before.
400 2003-08-13 J. Brobecker <brobecker@gnat.com>
402 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
403 (ADDR_BITS_REMOVE): Remove, redundant.
405 2003-08-13 J. Brobecker <brobecker@gnat.com>
407 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
408 gdbarch method to clear the 2 low bits of text addresses.
410 2003-08-12 Andrew Cagney <cagney@redhat.com>
412 * Makefile.in (dsrec.o): Update dependencies.
413 * dsrec.c: Include "gdb_assert.h".
414 (make_srec): Use snprintf instead of sprintf, use a literal format
417 2003-08-12 Andrew Cagney <cagney@redhat.com>
419 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
420 FRAME_OBSTACK_ZALLOC.
422 2003-08-12 Kevin Buettner <kevinb@redhat.com>
424 * i386-tdep.c (i386_gdbarch_init): Enable default support for
427 2003-08-10 Mark Kettenis <kettenis@gnu.org>
429 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
430 amd64fbsd_sc_reg_offset): Add extern declarations.
431 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
434 2003-08-11 Ben Elliston <bje@wasabisystems.com>
436 * MAINTAINERS (write after approval): Update my mail address.
438 2003-08-10 Andrew Cagney <cagney@redhat.com>
440 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
442 2003-08-10 Mark Kettenis <kettenis@gnu.org>
444 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
445 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
446 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
447 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
448 i386bsd_sc_reg_offset): Add extern declarations.
449 * i386obsd-nat.c: Include "i386-tdep.h"
450 (_initialize_i386obsd_nat): Remove extern declarations.
451 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
453 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
456 * i386-tdep.c (i386_register_to_value): Use get_frame_register
457 instead of frame_read_register.
458 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
459 instead of frame_read_register. Use I386_ESP_REGNUM instead of
461 (i386_frame_prev_register): Use frame_unwind_register_unsigned
462 instead of frame_unwind_unsigned_register. Use
463 I386_EFLAGS_REGISTER instead of PS_REGNUM.
464 (i386_get_longjmp_target): Use regcache_read_unsigned_register
465 instead of read_register. Use builtin_type_void_data_ptr instead
466 of builtin_type_void_func_ptr when extracting the address of the
468 (i386_extract_return_value, i386_store_return_value,
469 i386_pseudo_register_read, i386_pseudo_register_write): Use
470 register_size instead REGISTER_RAW_SIZE.
472 2003-08-10 Andrew Cagney <cagney@redhat.com>
474 * infcall.c (call_function_by_hand): Use xstrprintf instead of
475 sprintf. Make "name" constant.
477 2003-08-10 Mark Kettenis <kettenis@gnu.org>
479 * i387-tdep.c (i387_register_to_value): Use get_frame_register
480 instead of frame_read_register.
481 (i387_print_float_info): Use get_frame_register and
482 get_frame_register_unsigned instead of frame_register_read.
484 * i386fbsd-nat.c: Include "i386-tdep.h".
485 (child_resume): Make `eflags' an ULONGEST. Use
486 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
487 instead of register_read and register_write.
489 * i386bsd-nat.c (fetch_inferior_registers,
490 store_inferior_registers): Don't use && at the end of a line.
491 (_initialize_i386bsd_nat): Fix typo.
493 * frame.c (_initialize_frame): Add missing backslash.
495 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
496 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
497 and supply_register instead of manipulating the register buffer
500 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
501 * config/i386/nm-i386sol2.h
502 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
504 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
505 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
506 instructions that GCC likes to mingle into the prologue. Fixes
507 gdb/1253 and gdb/1255.
509 2003-08-09 Andrew Cagney <cagney@redhat.com>
512 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
513 * command.h (add_setshow_uinteger_cmd): Declare.
514 * frame.c (set_backtrace_cmd): New function.
515 (show_backtrace_cmd): New function.
516 * frame.c (_initialize_frame): Replace "set/show
517 backtrace-below-main" with "set/show backtrace past-main". Add
518 command "set/show backtrace limit".
519 (backtrace_past_main): Rename "backtrace_below_main".
520 (backtrace_limit): New variable.
521 (get_prev_frame): Update. Check the backtrace_limit.
523 2003-08-09 Andrew Cagney <cagney@redhat.com>
525 * defs.h (xstrprintf): Declare.
526 * utils.c (xstrprintf): New function.
527 * breakpoint.c (insert_breakpoints): Replace sprintf and
528 non-literal format strings, with xstrprintf and cleanups.
529 (delete_breakpoint,breakpoint_re_set): Ditto.
530 (commands_command, insert_breakpoints): Ditto.
531 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
532 (break_at_finish_command_1): Ditto.
534 2003-08-09 Andrew Cagney <cagney@redhat.com>
536 * MAINTAINERS (language support): List Adam Fedor as Objective C
539 2003-08-08 J. Brobecker <brobecker@gnat.com>
541 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
544 2003-08-08 J. Brobecker <brobecker@gnat.com>
546 * config/pa/tm-hppa64.h: Remove lots of macros that are no
547 longer necessary now that hppa64 is partially multiarch'ed.
549 2003-08-08 Andrew Cagney <cagney@redhat.com>
551 * interps.c (interp_set): Check for a NULL "old_interp".
553 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
555 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
556 (install-only): Support DESTDIR.
557 (uninstall): Likewise.
558 (install-gdbtk): Likewise.
560 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
562 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
563 contains something meaningful at all times.
565 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
567 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
569 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
571 * MAINTAINERS (write after approval): Added self.
573 2003-08-07 Andrew Cagney <cagney@redhat.com>
575 * inferior.h (AT_SYMBOL): Define.
576 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
577 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
578 * mips-tdep.c (mips_call_dummy_address): Delete function.
579 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
580 set call_dummy_address.
582 2003-08-07 Andrew Cagney <cagney@redhat.com>
584 * language.c (op_error): Delete function.
585 (binop_type_check): Delete function.
586 * language.h (type_op_error, range_op_error): Delete macros.
587 (op_error): Delete declaration.
589 2003-08-07 Andrew Cagney <cagney@redhat.com>
591 * interps.h (INTERP_MI2, INTERP_MI3): Define.
593 2003-08-07 Michal Ludvig <mludvig@suse.cz>
595 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
596 (x86_64_push_arguments): Skip the red zone.
598 2003-08-05 Andrew Cagney <cagney@redhat.com>
600 * reggroups.c (reggroup_next): Check for the final entry.
602 2003-08-04 Andrew Cagney <cagney@redhat.com>
604 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
605 * cli/cli-script.c (define_command): Call query directly, instead
606 of passing it a buffer.
607 * ocd.c (ocd_error): Pass error a constant format string.
608 * remote-mips.c (mips_error): Use fputs_filtered.
610 * solib-svr4.c (_initialize_svr4_solib): Update
611 register_gdbarch_data call.
612 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
614 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
615 (register_gdbarch_data): Delete "free" parameter. Update
617 * gdbarch.h, gdbarch.c: Re-generate.
618 * reggroups.c (_initialize_reggroup): Update.
619 * gnu-v3-abi.c (init_gnuv3_ops): Update.
620 * frame-base.c (_initialize_frame_base): Update.
621 * frame-unwind.c (_initialize_frame_unwind): Update.
622 * user-regs.c (_initialize_user_regs): Update.
623 * remote.c (_initialize_remote): Update.
624 * regcache.c (_initialize_regcache): Update.
626 * regcache.c (xfree_regcache_descr): Delete function.
627 (_initialize_regcache): Update call to register_gdbarch_data.
628 (init_regcache_descr, init_legacy_regcache_descr): Use
629 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
631 * remote.c (free_remote_state): Delete function.
632 (_initialize_remote): Update register_gdbarch_data.
633 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
634 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
636 2003-08-04 Andrew Cagney <cagney@redhat.com>
638 * reggroups.c (struct reggroup_el): Define.
639 (struct reggroups): Delete field "nr_group". Replace array
640 "group" with a "first" to "last" linked list.
641 (reggroups_init): Update. Allocate using gdbarch's obstack.
642 (reggroups_free): Delete function.
643 (add_group): Update. Add "el" parameter.
644 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
645 (default_groups): Update.
646 (reggroup_next): Replace reggroups.
647 (reggroups_dump): Update.
648 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
649 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
650 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
652 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
654 * Makefile.in (tui-interp.o): Update dependencies.
656 2003-08-04 David Carlton <carlton@kealia.com>
658 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
659 to internal_error call.
660 * source.c (forward_search_command): Add "%s" format argument.
661 (reverse_search_command): Ditto.
662 * top.c (quit_confirm): Ditto.
663 * cli/cli-setshow.c (do_setshow_command): Ditto.
664 * cp-valprint.c (cp_print_class_method): Replace
665 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
666 (cp_print_class_member): Ditto.
667 * event-top.c (command_line_handler): Ditto.
668 * linux-proc.c (linux_info_proc_cmd): Ditto.
669 * p-typeprint.c (pascal_type_print_base): Ditto.
670 * p-valprint.c (pascal_object_print_class_method): Ditto.
671 (pascal_object_print_class_member): Ditto.
672 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
673 * remote.c (remote_cisco_section_offsets): Ditto.
674 * top.c (command_line_input): Ditto.
675 * utils.c (vwarning,error_stream,quit): Ditto.
676 * valprint.c (print_floating,print_binary_chars)
677 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
679 2003-08-04 Andrew Cagney <cagney@redhat.com>
681 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
683 2003-08-02 Andrew Cagney <cagney@redhat.com>
685 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
686 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
689 2003-08-02 Andrew Cagney <cagney@redhat.com>
691 * Makefile.in: Update all dependencies and definitions.
693 2003-08-02 Adam Fedor <fedor@gnu.org>
695 * linespec.c (is_objc_method_format): New function
696 (decode_line_1, locate_first_half): Use it.
699 2003-08-01 Andrew Cagney <cagney@redhat.com>
701 * NEWS: Mention that m32r is multi-arch.
702 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
703 * configure.tgt: Recognize m32r-*-*.
704 * config/m32r/tm-m32r.h: Delete file.
705 * config/m32r/m32r.mt: New file.
706 * m32r-rom.c (m32r_upload_command): Use hostent only when
707 gethostname succeeds, in order to avoid a compilation
709 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
712 2003-08-01 Michael Snyder <msnyder@redhat.com>
714 * sh-tdep.c (sh_frame_align): New gdbarch method.
715 (sh_gdbarch_init): Set up frame_align method.
717 2003-07-31 Michael Snyder <msnyder@redhat.com>
719 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
720 which is already covered by the new frames infrastructure.
722 2003-07-31 Andrew Cagney <cagney@redhat.com>
724 * user-regs.c (struct user_reg): Add "next" link.
725 (struct user_regs): Replace "user" with "first" and "last" links.
726 (append_user_reg): Add pre-allocated "reg" parameter.
727 (builtin_user_regs): Provide initial value for "last".
728 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
729 (user_regs_init): Allocate memory from the gdbarch obstack.
730 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
731 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
733 (usernum_to_user_reg): New function.
734 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
735 (value_of_user_reg): Use usernum_to_user_reg.
736 (user_regs_free): Delete function.
737 (_initialize_user_regs): Update register_gdbarch_data call.
739 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
741 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
743 2003-07-30 Michael Snyder <msnyder@redhat.com>
745 * value.h (value_being_returned): Add a struct_addr argument.
746 * infcall.c (call_function_by_hand): Pass struct_addr to
747 value_being_returned.
748 * infcmd.c (print_return_value): Pass zero as struct_addr.
749 * values.c (value_being_returned): If struct_addr is passed,
750 use it instead of trying to recover it from the inferior.
752 2003-07-30 Kevin Buettner <kevinb@redhat.com>
754 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
755 the prologue analyzer won't need to attempt to extract the pc
756 value from the woefully incomplete dummy frame.
757 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
758 possible. Disable code which modifies the frame.
760 2003-07-28 Andrew Cagney <cagney@redhat.com>
762 * annotate.c (annotate_breakpoints_headers): Restrict annotation
764 (annotate_breakpoints_table, annotate_record): Ditto.
765 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
766 (annotate_field_name_end, annotate_field_value): Ditto.
767 (annotate_field_end, annotate_frame_source_begin): Ditto.
768 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
769 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
770 (annotate_frame_begin, annotate_frame_function_name): Ditto.
771 (annotate_frame_address_end, annotate_frame_address): Ditto.
772 (annotate_frame_args, annotate_frame_end): Ditto.
773 (annotate_frame_where, annotate_arg_begin): Ditto.
774 (annotate_arg_name_end, annotate_arg_value): Ditto.
775 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
776 (annotate_function_call, annotate_signal_name): Ditto.
777 (annotate_signal_string, annotate_signal_name_end): Ditto.
778 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
779 (annotate_value_begin, annotate_value_history_value): Ditto.
780 (annotate_value_history_end, annotate_value_end): Ditto.
781 (annotate_display_begin, annotate_display_number_end): Ditto.
782 (annotate_display_format, annotate_display_expression): Ditto.
783 (annotate_display_expression_end, annotate_display_value): Ditto.
784 (annotate_display_end, annotate_array_section_begin): Ditto.
785 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
786 (annotate_elt, annotate_array_section_end): Ditto.
788 2003-07-28 Andrew Cagney <cagney@redhat.com>
790 * regcache.c (struct regcache_descr): Update comments on
792 (init_legacy_regcache_descr): Don't set nr_raw_registers or
793 sizeof_raw_register_valid_p.
794 (init_regcache_descr): Set nr_raw_registers and
795 sizeof_raw_register_valid_p before calling
796 init_legacy_regcache_descr.
798 2003-07-28 Andrew Cagney <cagney@redhat.com>
800 * mips-tdep.c (print_gp_register_row): Print the GPR's register
803 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
805 * thread.c (info_threads_command): Use get_selected_frame ().
806 Check that there is at least one non-sentinel frame.
808 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
810 * m68hc11-tdep.c (struct frame_extra_info): Remove.
811 (m68hc11_pop_frame): Remove.
812 (m68hc11_frame_saved_pc): Remove.
813 (m68hc11_frame_chain): Remove.
814 (m68hc11_frame_init_saved_regs): Remove.
815 (m68hc11_init_extra_frame_info): Remove.
816 (m68hc11_store_struct_return): Remove.
817 (m68hc11_saved_pc_after_call): Remove.
819 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
821 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
822 frame unwind information.
823 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
824 and adapted for frame unwinding.
825 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
826 (m68hc11_unwind_pc): New function.
827 (m68hc11_frame_unwind_cache): New function to analyze frames.
828 (m68hc11_frame_this_id): New function to create new frame struct.
829 (m68hc11_frame_prev_register): New function to unwind a register from
831 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
832 (m68hc11_frame_p): New function for the above.
833 (m68hc11_frame_base_address): New function to return fp of frame.
834 (m68hc11_frame_args_address): Update for frame.
835 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
836 (m68hc11_unwind_sp): New function.
837 (m68hc11_unwind_dummy_id): New function.
838 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
841 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
843 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
844 (m68hc11_guess_from_prologue): Advance the pc and frame size only
845 when we are beyond the current pc.
847 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
849 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
850 from m68hc11_push_arguments.
851 (m68hc11_push_arguments): Remove.
852 (m68hc11_push_return_address): Remove.
853 (m68hc11_gdbarch_init): Install the above; remove above deprecated
854 handlers; remove deprecated_extra_stack_alignment_needed.
856 2003-07-27 Andrew Cagney <cagney@redhat.com>
858 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
859 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
860 REAL_PC and not the pointer.
861 * hppa-hpux-tdep.c: Include frame.h
863 2003-07-27 Andrew Cagney <cagney@redhat.com>
865 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
866 GDB_MULTI_ACH_PARTIAL.
868 2003-07-27 Andrew Cagney <cagney@redhat.com>
870 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
871 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
872 operator at start and not end of line.
873 (decode_prologue): Ditto.
874 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
875 frame_unwind_register_unsigned instead of
876 frame_unwind_unsigned_register.
877 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
879 (m32r_push_dummy_call): Use register_size instead of
881 (m32r_frame_sniffer): Replace m32r_frame_p.
882 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
883 * m32r-rom.c (report_transfer_performance): Delete extern
885 (m32r_load, m32r_upload_command): Use print_transfer_performance
886 instead of report_transfer_performance.
887 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
890 2003-07-26 Andrew Cagney <cagney@redhat.com>
892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
893 store_return_value and extract_struct_value_address.
895 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
898 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
899 NULL, default to the section containing PC.
901 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
903 * NEWS: Mention "regs" deprecated for m68hc11 too.
905 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
906 (m68hc11_print_register): New function to print out one register.
907 (m68hc11_print_registers_info): New function to print registers.
908 (show_regs): Deprecate and use the above.
909 (m68hc11_gdbarch_init): Install the print_registers_info.
911 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
913 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
914 that we have a SIGTRAP before returning non-zero.
916 2003-07-23 Michal Ludvig <mludvig@suse.cz>
917 Elena Zannoni <ezannoni@redhat.com>
919 * linespec.c (decode_line_2): Avoid crash if
920 find_function_start_sal() returns empty record.
922 2003-07-23 Andreas Schwab <schwab@suse.de>
924 * ia64-tdep.c (ia64_print_insn): New function.
925 (ia64_gdbarch_init): Set print_insn to it.
926 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
927 deprecated_tm_print_insn_info.
929 2003-07-22 Michael Snyder <msnyder@redhat.com>
931 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
932 handle 8-bit returns (long long).
933 (h8300h_extract_return_value): Ditto.
934 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
936 2003-07-22 Andrew Cagney <cagney@redhat.com>
938 * gdbarch.c Include "gdb_obstack.h".
939 (struct gdbarch): Add an "obstack".
940 (alloc_gdbarch_data): Allocate the gdbarch data using
941 GDBARCH_OBSTACK_CALLOC.
942 (free_gdbarch_data): Delete function.
943 (gdbarch_obstack_zalloc): New function.
944 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
945 Assert that the architecture is not initialized.
946 (gdbarch_alloc): Allocate an obstack, allocate the architecture
947 vector from the obstack.
948 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
949 architecture obstack.
950 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
951 (set_gdbarch_data): Assert that the data is not initialized.
952 (struct gdbarch_data): Delete member "free".
953 (register_gdbarch_data): Do not initialize "free".
954 * gdbarch.h, gdbarch.c: Re-generate.
956 2003-07-22 Andrew Cagney <cagney@redhat.com>
958 * configure.in (build_warnings): Add -Wformat-nonliteral.
959 * configure: Re-generate.
961 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
963 * dwarf2loc.c (locexpr_describe_location): Fix typos.
965 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
967 * findvar.c (read_var_value): Remove case for thread local storage
968 variables. It is now entirely handled by the dwarf2 location
970 * printcmd.c (address_info): Ditto.
971 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
973 (struct symbol): Remove objfile field, which was used by
974 LOC_THREAD_LOCAL_STATIC only.
975 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
976 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
977 usage of objfile pointer.
978 * dwarf2loc.c (locexpr_describe_location): Add case to handle
979 thread local variables.
980 Add include of objfiles.h.
981 * dwarf2expr.c (execute_stack_op): Add comments about thread local
983 * Makefile.in (dwarf2loc.o): Update dependencies.
985 2003-07-22 Andrew Cagney <cagney@redhat.com>
987 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
989 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
990 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
991 (struct value): Add opaque declaration.
992 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
994 2003-07-21 Andrew Cagney <cagney@redhat.com>
996 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
997 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
999 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1001 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1002 regcache_cooked_read_unsigned instead of read_register.
1003 (m68hc11_saved_pc_after_call): Likewise.
1004 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1005 instead of write_register.
1006 (m68hc11_register_type): New function.
1007 (m68hc11_register_virtual_type): Remove.
1008 (m68hc11_store_return_value): Convert to use the regcache.
1009 (m68hc11_extract_struct_value_address): Likewise.
1010 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1011 m68hc11_register_type; undeprecate store_return_value and
1012 extract_struct_value_address.
1014 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1016 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1017 and translate to use regcache.
1018 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1020 2003-07-18 Andrew Cagney <cagney@redhat.com>
1022 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1023 * gdbarch.h, gdbarch.c: Re-generate.
1024 * i386-tdep.c (i386_gdbarch_init): Do not set
1025 DWARF2_BUILD_FRAME_INFO.
1026 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1028 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1029 DWARF2_BUILD_FRAME_INFO.
1031 2003-07-18 Andrew Cagney <cagney@redhat.com>
1033 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1034 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1036 2003-07-18 Andrew Cagney <cagney@redhat.com>
1038 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1039 frame_unwind_address_in_block, instead of frame_pc_unwind.
1040 (dwarf2_frame_cache): Ditto.
1042 2003-07-18 Andrew Cagney <cagney@redhat.com>
1044 * user-regs.h (struct gdbarch): Declare opaque.
1045 * ui-out.h (struct ui_file): Declare opaque.
1046 * dwarf2-frame.h (struct frame_info): Declare opaque.
1048 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1050 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1052 (procfs_meminfo): Change strerror to safe_strerror.
1053 (procfs_can_run): Remove K&R badness.
1055 2003-07-17 Michael Snyder <msnyder@redhat.com>
1057 * remote-sim.c: Comment typo fix.
1059 2003-07-17 Andrew Cagney <cagney@redhat.com>
1061 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1063 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1064 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1065 GDB_MULTI_ARCH_PARTIAL.
1067 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1069 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1070 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1071 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1073 2003-07-16 Theodore A. Roth <troth@openavr.org>
1075 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1077 (avr_frame_unwind_cache): Don't unwind FP for main.
1079 Save the computed prev_sp.
1080 (avr_saved_regs_unwinder): Remove function.
1081 (avr_frame_prev_register): Use PC unwind logic from
1082 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1084 2003-07-16 Andrew Cagney <cagney@redhat.com>
1086 * frame-base.h (frame_base_p_ftype): Delete definition.
1087 (frame_base_append_predicate): Delete declaration.
1088 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1089 (frame_unwind_append_predicate): Delete declaration.
1090 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1091 (append_predicate): Delete parameter "p".
1092 (frame_unwind_append_predicate): Delete function.
1093 (frame_unwind_append_sniffer): Update call to append_predicate.
1094 (frame_unwind_free): Delete function.
1095 (_initialize_frame_unwind): Pass NULL as "free" to
1096 register_gdbarch_data.
1097 (frame_unwind_init): Append the dummy_frame_sniffer.
1098 (frame_unwind_find_by_frame): Simplify.
1099 * frame-base.c (struct frame_base_table): Delete field "p".
1100 (append_predicate): Delete parameter "p".
1101 (frame_base_append_predicate): Delete function.
1102 (frame_base_append_sniffer): Update call to append_predicate.
1103 (frame_base_free): Delete function.
1104 (frame_base_find_by_frame): Simplify.
1105 (_initialize_frame_base): Pass NULL as "free" to
1106 register_gdbarch_data.
1107 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1108 (x86_64_sigtramp_frame_sniffer): Replace
1109 "x86_64_sigtramp_frame_p".
1110 (x86_64_init_abi): Set the frame unwind sniffers.
1111 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1112 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1113 (m68k_gdbarch_init): Set the frame unwind sniffers.
1114 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1115 "i386_sigtramp_frame_p".
1116 (i386_frame_sniffer): Replace "i386_frame_p".
1117 (i386_gdbarch_init): Set the frame unwind sniffers.
1118 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1119 (avr_gdbarch_init): Set the frame unwind sniffers.
1120 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1121 "alpha_sigtramp_frame_p"
1122 (alpha_heuristic_frame_sniffer): Replace
1123 "alpha_heuristic_frame_p".
1124 (alpha_gdbarch_init): Set the frame unwind sniffers.
1125 (alpha_dwarf2_init_abi): Ditto.
1126 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1127 "alpha_debug_frame_p".
1128 (alpha_mdebug_frame_base_sniffer): Replace
1129 "alpha_mdebug_frame_base_p".
1130 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1131 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1132 (d10v_gdbarch_init): Set the frame unwind sniffer.
1133 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1134 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1135 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1136 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1137 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1138 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1140 2003-07-16 Michael Snyder <msnyder@redhat.com>
1142 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1143 should go thru sh_dsp_register_sim_regno, else the dsp regs
1144 will not get the right values.
1146 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1148 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1149 deprecated_store_floating by call to store_typed_floating.
1150 (sh_sh4_register_convert_to_raw): Substitute call to
1151 deprecated_extract_floating by call to extract_typed_floating.
1153 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1155 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1157 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1159 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1160 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1161 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1163 (do_pseudo_register): Remove.
1164 (sh_push_dummy_code): New function.
1165 (sh64_store_struct_return): Rename from sh_store_struct_return.
1166 Only called for sh64 now.
1167 (sh_extract_struct_value_address): Regcache'ify.
1168 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1169 and accomodate new tasks.
1170 (sh64_push_return_address): Rename from sh_push_return_address.
1171 Only called for sh64 now.
1172 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1174 (sh3e_sh4_extract_return_value): Regcache'ify.
1175 (sh_default_store_return_value): Ditto.
1176 (sh3e_sh4_store_return_value): Ditto.
1177 (sh_default_register_byte): Remove.
1178 (sh_sh4_register_byte): Remove.
1179 (sh_default_register_raw_size): Remove.
1180 (sh_sh4_register_raw_size): Remove.
1181 (sh_register_virtual_size): Remove.
1182 (sh_sh3e_register_virtual_type): Remove.
1183 (sh_sh3e_register_type): New function.
1184 (sh_sh4_register_virtual_type): Remove.
1185 (sh_sh4_register_type): New function.
1186 (sh_default_register_virtual_type): Remove.
1187 (sh_default_register_type): New function.
1188 (do_fv_register_info): Add parameters to accomodate call from
1189 sh_print_registers_info.
1190 (do_dr_register_info): Ditto.
1191 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1192 Add parameters to accomodate call from sh_print_registers_info.
1193 (sh_do_fp_register): Ditto.
1194 (sh64_do_pseudo_register): Call do_dr_register_info,
1195 do_fv_register_info and sh_do_fp_register with default parameters.
1196 (sh_do_register): Add parameters to accomodate call from
1197 sh_print_registers_info.
1198 (sh_print_register): Ditto.
1199 (sh_print_registers_info): Rename from sh_do_registers_info.
1200 Add parameters to be used as gdbarch_print_registers_info
1201 implementation. Accomodate removed do_pseudo_register function
1203 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1204 function pointer. Call sh_print_register with default parameters.
1205 (sh64_do_registers_info): Call sh_print_registers_info instead of
1206 sh_do_registers_info.
1207 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1208 detection of deprecated vs. non-deprecated functionality.
1209 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1210 function pointer assignments by direct function calls.
1212 2003-07-15 Andrew Cagney <cagney@redhat.com>
1214 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1215 (frame_register_unwind, create_new_frame): Ditto.
1216 (legacy_get_prev_frame, get_frame_type): Ditto.
1217 (get_frame_base_address): Use frame_base_find_by_frame.
1218 (get_frame_locals_address): Use frame_base_find_by_frame.
1219 (get_frame_args_address): Use frame_base_find_by_frame.
1220 * frame-base.h (frame_base_sniffer_ftype): Declare.
1221 (frame_base_append_sniffer): Declare.
1222 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1223 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1224 (frame_base_append_sniffer): New function.
1225 (frame_base_append_predicate): Add a NULL sniffer.
1226 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1227 (struct frame_base_table): Add "sniffer".
1228 (frame_base_free): Free the "sniffer" table.
1229 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1230 (frame_unwind_append_sniffer): Declare.
1231 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1232 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1233 (struct frame_unwind_table): Add "sniffer", delete "middle".
1234 (append_predicate): Add "sniffer" parameter, append the sniffer.
1235 (frame_unwind_init): Update append_predicate call.
1236 (frame_unwind_append_sniffer): New function.
1237 (frame_unwind_append_predicate): Update append_predicate call.
1238 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1240 2003-07-15 Andrew Cagney <cagney@redhat.com>
1242 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1243 before code inhibiting repeated unwind attempts. Add to
1244 commentary on that test's problems.
1245 * blockframe.c (inside_main_func): Look for "main" in the minimal
1247 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1250 2003-07-15 Andrew Cagney <cagney@redhat.com>
1252 * complaints.c (struct explanation): Define.
1253 (struct complaints): Change type of "explanation" to "struct
1255 (symfile_explanations): Convert to a "struct explanation" table.
1256 (vcomplaint): Update.
1258 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1260 * x86-64-linux-nat.c (regmap): Removed.
1261 (supply_gregset, fill_gregset): Call
1262 x86_64_linux_(fill,supply)_gregset functions.
1263 * x86-64-linux-tdep.c (USER_*): New defines.
1264 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1265 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1267 (fetch_core_registers): Ditto.
1268 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1269 * x86-64-linux-tdep.h: New file.
1270 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1272 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1274 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1276 * x86-64-tdep.c (x86_64_store_return_value): Use
1277 regcache_cooked_write_part instead of regcache_cooked_write.
1279 * configure.host: Add x86_64-*-freebsd*.
1280 * configure.tgt: Add x86_64-*-freebsd*.
1281 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1282 * amd64fbsd-nat.c: New file.
1283 * amd64fbsd-tdep.c: New file.
1284 * config/i386/nm-fbsd64.h: New file.
1285 * config/i386/fbsd64.mh: New file.
1286 * config/i386/fbsd64.mt: New file.
1288 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1290 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1291 `sc_regs_offset' and `sc_fpregs_offset'.
1292 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1293 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1294 (alpha_sigtramp_register_address): Rewrite to use new members of
1295 `struct gdbarch_tdep'.
1296 (alpha_gdbarch_init): Initialize new members of struct
1298 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1299 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1300 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1301 (alphafbsd_pc_in_sigtramp): Implement.
1302 (alphafbsd_sigtramp_offset): New function.
1303 (alphafbsd_sigcontext_addr): New function.
1304 (alphafbsd_init_abi): Initialize signal trampoline related members
1305 of `struct gdbarch_tdep'.
1306 (_initialize_alphafbsd_tdep): Add prototype.
1308 2003-07-11 Theodore A. Roth <troth@openavr.org>
1310 * Makefile.in (install-only): Quote sed expression when generating
1313 2003-07-11 Richard Henderson <rth@redhat.com>
1315 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1316 * dwarf2-frame.c: Include complaints.h.
1317 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1318 variable initialization; return NULL on error.
1319 (decode_frame_entry): New.
1321 2003-07-11 Andrew Cagney <cagney@redhat.com>
1323 * frame.h (frame_address_in_block): Delete declaration.
1324 * blockframe.c (frame_address_in_block): Delete function.
1325 (get_frame_block): Use get_frame_address_in_block.
1326 (block_innermost_frame): Ditto.
1327 * stack.c (print_frame, backtrace_command_1): Ditto.
1329 * frame.h (get_frame_address_in_block): Declare.
1330 (frame_unwind_address_in_block): Declare.
1331 * frame.c (frame_unwind_address_in_block): New function.
1332 (get_frame_address_in_block): New function.
1334 2003-07-10 Andrew Cagney <cagney@redhat.com>
1336 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1337 pre-default. Note: re-generate has no effect.
1339 2003-07-10 Andrew Cagney <cagney@redhat.com>
1341 * gdbarch.sh: When a variable, but not a function, compare against
1342 0. Fix problem in previous patch.
1343 * gdbarch.c: Re-generate.
1345 2003-07-10 Andrew Cagney <cagney@redhat.com>
1347 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1348 functions against NULL, not 0.
1349 * gdbarch.c: Re-generate.
1351 2003-07-10 Fred Fish <fnf@ninemoons.com>
1353 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1354 null string instead of a null pointer.
1355 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1357 2003-07-09 Michael Snyder <msnyder@redhat.com>
1359 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1361 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1363 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1364 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1365 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1366 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1367 * x86-64-tdep.c: ... from here.
1369 2003-07-09 Andreas Schwab <schwab@suse.de>
1371 * m68k-tdep.h (enum struct_return): Define.
1372 (struct gdbarch_tdep): Add struct_return.
1373 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1374 bytes are padded to the right, not to the left. Pass struct value
1375 address in register %a1, not on stack.
1376 (m68k_use_struct_convention): New function.
1377 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1378 struct_return in tdep to pcc_struct_return.
1379 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1382 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1384 * somread.c (som_symfile_offsets): Fix compilation error.
1386 2003-07-09 Andrew Cagney <cagney@redhat.com>
1388 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1389 Add comments about the checks.
1391 2003-07-08 Andrew Cagney <cagney@redhat.com>
1393 * Makefile.in: Make dependency section headers consistent.
1394 (config_h): Move to $BUILD headers section.
1395 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1396 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1397 (ada-exp.tab.c): Move to YACC/LEX section.
1398 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1399 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1401 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1403 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1404 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1405 of strerror with safe_strerror, use ISO C function definitions,
1406 and replace instances of sprintf with snprintf.
1408 2003-07-07 Andrew Cagney <cagney@redhat.com>
1410 * frame.c (get_prev_frame): Enable check for identical frames.
1411 Update comments. Update error messages.
1413 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1415 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1417 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1419 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1420 sort_symtab_syms, no longer necessary.
1422 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1424 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1426 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1428 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1429 (mips_register_byte): Likewise.
1431 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1433 * Makefile.in (sparc_tdep_h): New.
1434 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1435 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1436 * sparc-linux-nat.c: Include "sparc-tdep.h".
1437 * sparc-nat.c: Likewise.
1438 * sparc-tdep.c: Likewise.
1439 * sparc64nbsd-nat.c: Likewise.
1440 * sparcnbsd-nat.c: Likewise.
1441 * sparcnbsd-tdep.c: Likewise.
1442 * sparc-tdep.h: New file.
1443 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1444 and sparc_npc_regnum.
1446 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1448 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1449 (mips_linux_cannot_store_register): List supported instead of
1450 unsupported registers.
1452 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1454 * disasm.c (dump_insns): Separate instructions from addresses.
1456 2003-07-07 Andreas Schwab <schwab@suse.de>
1458 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1460 * m68k-tdep.c (NUM_FREGS): Delete.
1461 (SIG_PC_FP_OFFSET): Delete.
1462 (TARGET_M68K): Delete.
1463 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1464 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1465 P_MOVEL_SP, P_MOVEML_SP): Define.
1466 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1468 (m68k_register_raw_size): Delete.
1469 (m68k_register_virtual_size): Delete.
1470 (m68k_register_type): Renamed from m68k_register_virtual_type and
1471 add gdbarch argument.
1472 (m68k_store_struct_return): Delete.
1473 (m68k_deprecated_extract_return_value): Delete.
1474 (m68k_deprecated_extract_struct_value_address): Delete.
1475 (m68k_frame_chain): Delete.
1476 (m68k_frame_saved_pc): Delete.
1477 (m68k_fix_call_dummy): Delete.
1478 (m68k_push_dummy_frame): Delete.
1479 (m68k_pop_frame): Delete.
1480 (m68k_extract_return_value): New function.
1481 (m68k_store_return_value): Rewrite using regcache.
1482 (m68k_extract_struct_value_address): Rewrite using regcache.
1483 (m68k_push_dummy_call): New function.
1484 (struct m68k_frame_cache): Define.
1485 (m68k_alloc_frame_cache): New function.
1486 (m68k_analyze_frame_setup): New function.
1487 (m68k_analyze_register_saves): New function.
1488 (m68k_analyze_prologue): New function.
1489 (m68k_skip_prologue): Rewrite using above functions.
1490 (m68k_unwind_pc): New function.
1491 (m68k_frame_cache): New function.
1492 (m68k_frame_this_id): New function.
1493 (m68k_frame_prev_register): New function.
1494 (m68k_frame_unwind): New variable.
1495 (m68k_frame_p): New function.
1496 (m68k_sigtramp_frame_cache): New function.
1497 (m68k_sigtramp_frame_this_id): New function.
1498 (m68k_sigtramp_frame_prev_register): New function.
1499 (m68k_sigtramp_frame_unwind): New variable.
1500 (m68k_sigtramp_frame_p): New function.
1501 (m68k_frame_base_address): New function.
1502 (m68k_frame_base): New function.
1503 (m68k_unwind_dummy_id): New function.
1504 (fill_gregset): Use regcache_collect.
1505 (fill_fpregset): Likewise.
1506 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1508 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1509 deprecated_init_frame_pc, deprecated_store_struct_return,
1510 deprecated_extract_return_value, deprecated_store_return_value,
1511 deprecated_frame_chain, deprecated_frame_saved_pc,
1512 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1513 deprecated_register_virtual_size,
1514 deprecated_max_register_raw_size,
1515 deprecated_max_register_virtual_size,
1516 deprecated_register_virtual_type, deprecated_register_size,
1517 deprecated_register_byte, deprecated_register_bytes,
1518 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1519 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1520 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1521 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1522 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1523 deprecated_push_dummy_frame, deprecated_pop_frame,
1524 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1525 only if SYSCALL_TRAP is defined. Set extract_return_value,
1526 store_return_value, extract_struct_value_address, register_type,
1527 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1529 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1530 M68K_MAX_REGISTER_SIZE): Define.
1531 (struct m68k_sigtramp_info): Define.
1532 (struct gdbarch_tdep): Add get_sigtramp_info.
1533 * m68klinux-nat.c (fetch_register): Use register_size instead of
1534 REGISTER_RAW_SIZE. Don't put assignment in if.
1535 (store_register): Likewise.
1536 (fetch_inferior_registers): Likewise.
1537 (store_inferior_registers): Likewise.
1538 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1539 (m68k_linux_frame_saved_pc): Delete.
1540 (m68k_linux_sigcontext_reg_offset,
1541 m68k_linux_ucontext_reg_offset): Define.
1542 (m68k_linux_get_sigtramp_info): New function.
1543 (m68k_linux_extract_return_value): Rewrite using regcache.
1544 (m68k_linux_store_return_value): Likewise.
1545 (m68k_linux_extract_struct_value_address): Likewise.
1546 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1547 Don't set deprecated_frame_saved_pc,
1548 deprecated_extract_return_value, deprecated_store_return_value,
1549 deprecated_extract_struct_value_address. Set
1550 extract_return_value, store_return_value,
1551 extract_struct_value_address.
1553 2003-07-07 Andrew Cagney <cagney@redhat.com>
1555 * expprint.c: Include "user-regs.h" instead of "frame.h".
1556 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1557 frame_map_regnum_to_name.
1558 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1559 (frame_map_name_to_regnum): Simplify, call
1560 user_reg_map_name_to_regnum.
1561 (frame_map_regnum_to_name): Simplify, call
1562 user_reg_map_regnum_to_name.
1563 (frame_register_unwind): Update.
1564 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1565 (_initialize_frame_reg): Call user_reg_add_builtin.
1566 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1567 (value_of_register): Use value_of_user_reg.
1568 * eval.c (evaluate_subexp_standard): Update.
1569 * parse.c (write_dollar_variable): Update.
1570 * d10v-tdep.c (d10v_print_registers_info): Update.
1571 * infcmd.c (registers_info): Update.
1572 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1573 (builtin_regs_h): Delete macro.
1574 (user_regs_h): Define.
1575 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1576 (builtin-regs.o): Delete target.
1577 (user-regs.o): Specify dependencies.
1578 (expprint.o): Update dependencies.
1579 (findvar.o): Update dependencies.
1580 (frame.o): Update dependencies.
1581 (std-regs.o): Update dependencies.
1583 2003-07-06 Christopher Faylor <cgf@redhat.com>
1585 * win32-nat.c (solib_symbols_add): Use one variable for all section
1586 address stuff. Pass variable rather than address of variable to
1587 safe_symbol_file_add.
1589 2003-07-06 Andreas Schwab <schwab@suse.de>
1591 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1593 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1595 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1597 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1599 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1601 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1603 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1604 * config/i386/nto.mh: New file.
1605 * config/i386/nm-nto.h: New file.
1606 * configure.host: Add i[3456]86-*-nto*.
1608 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1610 * remote-vx.c (vx_add_symbols): Fix compilation error.
1612 2003-07-03 Andrew Cagney <cagney@redhat.com>
1614 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1615 * gdbarch.h, gdbarch.c: Re-generate.
1616 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1617 (legacy_register_name): Declare.
1618 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1619 (REGISTER_NAME): Define.
1620 * sparc-tdep.c (legacy_register_name): New function.
1621 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1622 (REGISTER_NAME): Define.
1623 (hppa64_register_name): Declare.
1624 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1625 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1626 (hppa64_register_name): New function.
1627 (hppa_register_name): New function.
1628 * arch-utils.c (legacy_register_name): Delete.
1629 * arch-utils.h (legacy_register_name): Delete.
1631 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1633 * cli/cli-interp.c (cli_interpreter_resume): Update the
1634 cli_uiout's stream to gdb_stdout.
1636 2003-07-03 Andrew Cagney <cagney@redhat.com>
1638 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1640 * gdbarch.h, gdbarch.c: Re-generate.
1641 * regcache.c (init_regcache_descr): Use legacy code when either
1642 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1644 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1646 * NEWS: Move "set logging" entry into GDB 6.0 section.
1648 2003-07-02 Jim Blandy <jimb@redhat.com>
1650 * s390-tdep.c (struct frame_extra_info): new member:
1651 'stack_bought_valid'.
1652 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1653 initialize fextra_info->stack_bought.
1654 (s390_frameless_function_invocation): Don't trust the value of
1655 fextra_info_ptr->stack_bought unless
1656 fextra_info->stack_bought_valid is set.
1658 New S390 prologue analyzer.
1659 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1660 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1661 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1662 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1663 compute_x_addr, s390_on_stack, s390_store,
1664 s390_get_signal_frame_info): New functions.
1665 (S390_NUM_SPILL_SLOTS): New macro.
1666 (s390_get_frame_info): Rewritten.
1667 (is_arg_reg): Deleted.
1669 Break out the decoding of S/390 instructions into separate
1670 functions, to make it more legible, and easier to check
1672 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1673 is_rx, is_rxe): New functions.
1674 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1675 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1676 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1677 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1678 enums for opcode values. (Is this an improvement?)
1680 2003-07-02 Andrew Cagney <cagney@redhat.com>
1682 * i386-tdep.c: Revert change committed as part of trad-frame code
1685 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1687 * breakpoint.c (insert_catchpoint): Make static.
1689 2003-07-02 Andreas Schwab <schwab@suse.de>
1691 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1692 former ia64_push_arguments and ia64_push_return_address, and use
1693 regcache functions instead of read/write_register.
1694 (ia64_gdbarch_init): Set push_dummy_call instead of
1695 deprecated_push_arguments and deprecated_push_return_address.
1697 2003-07-01 Andreas Jaeger <aj@suse.de>
1699 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1701 Set %rax only to number of SSE registers used.
1703 2003-07-01 Andrew Cagney <cagney@redhat.com>
1705 * trad-frame.h: Update comments, a -1 .addr is reserved.
1706 (trad_frame_value_p, trad_frame_addr_p): Declare.
1707 (trad_frame_reg_p): Declare.
1708 (trad_frame_set_value): Rename trad_frame_register_value.
1709 (trad_frame_set_unknown): Declare.
1710 * trad-frame.c (trad_frame_realreg_p): New function.
1711 (trad_frame_addr_p, trad_frame_value_p): New function.
1712 (trad_frame_set_unknown): New function.
1713 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1714 (trad_frame_prev_register): Use trad_frame_realreg_p,
1715 trad_frame_addr_p and trad_frame_value_p.
1716 (trad_frame_set_value): Rename trad_frame_register_value.
1717 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1718 and trad_frame_set_value.
1720 2003-06-30 Jim Blandy <jimb@redhat.com>
1722 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1723 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1724 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1725 for 16 registers, and then 32 more bytes.
1726 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1728 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1729 Move up in the file, since it's now used by is_simple_arg.
1730 (is_simple_arg): Don't assume registers are four bytes long.
1731 Exclude all double arguments. Extended floats are not simple
1733 (is_power_of_two): New function.
1734 (pass_by_copy_ref): Call is_power_of_two, and check that the
1735 length fits in a register, rather than listing all the acceptable
1736 sizes. Extended floats are not passed by reference.
1737 (s390_push_arguments): Don't assume registers are four bytes long.
1738 Reserve an argument register to point to the buffer for structures
1739 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1740 S390_STACK_FRAME_OVERHEAD.
1742 2003-06-30 Andreas Schwab <schwab@suse.de>
1744 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1745 format error message.
1747 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1749 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1751 2003-06-30 David Carlton <carlton@kealia.com>
1753 Band-aid for PR c++/1245.
1754 * Makefile.in (cp-support.o): Depend on complaints_h.
1755 * cp-support.c: Include complaints.h. Add declaration for
1756 find_last_component.
1757 (cp_find_first_component): Separate code into
1758 cp_find_first_component_aux.
1759 (cp_find_first_component_aux): Call demangled_name_complaint.
1760 (demangled_name_complaint): New.
1762 2003-06-30 Andrew Cagney <cagney@redhat.com>
1764 * remote.c (remote_write_bytes): Explicitly compute and then use
1765 the payload size. Update comments to reflect. Fixes problem of
1766 GDB not sending small packets as found by Fred Fish.
1768 2003-06-30 Andrew Cagney <cagney@redhat.com>
1770 * remote.c (remote_async_wait): Fix -Wformat problem.
1772 2003-06-29 Andrew Cagney <cagney@redhat.com>
1774 * remote.c (remote_wait): Call error, and not warning, when the
1776 (remote_async_wait): Ditto.
1778 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1780 * sparc-tdep.c (sparc_y_regnum): Make external again.
1782 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1784 * cli/cli-logging.c (pop_output_files): Add void to function
1787 2003-06-29 Andrew Cagney <cagney@redhat.com>
1789 * frame.c (frame_register_unwind): Use unsigned char when dumping
1790 the buffer contents.
1792 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1794 * cli/cli-logging.c: New file.
1795 * cli-out.c (struct ui_out_data): Add original_stream.
1796 (cli_redirect): New function.
1797 (cli_ui_out_impl): Add cli_redirect.
1798 (cli_out_new): Initialize original_stream.
1799 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1800 (uo_redirect, ui_out_redirect): New.
1801 * ui-out.h (struct ui_out_impl): Add redirect member.
1802 (redirect_ftype): New.
1803 (ui_out_redirect): Add prototype.
1804 * Makefile.in: Add rules for cli-logging.c.
1805 * NEWS: Mention "set logging".
1807 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1809 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1811 2003-06-27 Andrew Cagney <cagney@redhat.com>
1813 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1814 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1815 * avr-tdep.c (avr_call_dummy_address): Delete function.
1816 (avr_gdbarch_init): Do not set call_dummy_address.
1818 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1820 * symfile.c (syms_from_objfile): Move variables to inner block.
1821 Move the checks for the non-mainline case a bit earlier to avoid
1822 doing some useless computations.
1824 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1826 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1828 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1830 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1833 2003-06-26 Michael Chastain <mec@shout.net>
1835 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1836 gdb/testsuite/gdb.c++/pr-1210.exp.
1838 2003-06-26 Andrew Cagney <cagney@redhat.com>
1840 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1841 altivec_expression.h and altivec_registers.h.
1843 2003-06-26 Andrew Cagney <cagney@redhat.com>
1845 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1846 info->mach when MIPS16. Patch suggested by Fred Fish.
1848 2003-06-26 Andrew Cagney <cagney@redhat.com>
1850 * utils.c (internal_vproblem): Print the problem to a reason
1851 buffer and then pass to query. Make the msg variable more local.
1853 2003-06-26 Andrew Cagney <cagney@redhat.com>
1855 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1856 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1857 * gdbarch.h, gdbarch.c: Re-generate.
1858 * frame-base.c (default_frame_args_address): Update. Use
1859 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1861 (default_frame_locals_address): Ditto for
1862 DEPRECATED_FRAME_LOCALS_ADDRESS.
1863 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1864 (vax_frame_num_args): Update.
1865 (vax_gdbarch_init): Update.
1866 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1867 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1868 * mcore-tdep.c (mcore_gdbarch_init): Update.
1869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1870 * ia64-tdep.c (ia64_gdbarch_init): Update.
1871 * symtab.h (address_class): Update comments.
1872 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1873 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1874 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1875 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1876 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1877 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1878 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1879 * alpha-mdebug-tdep.c: Update.
1880 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1882 2003-06-26 Andreas Jaeger <aj@suse.de>
1884 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1885 of SSE registers so that varargs functions work. Rework handling
1886 of passing arguments on the stack.
1887 (x86_64_store_return_value): Return double and float values in SSE
1890 2003-06-24 Michael Chastain <mec@shout.net>
1892 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1893 the "constructor breakpoints ignored" bug.
1895 2003-06-25 David Carlton <carlton@kealia.com>
1897 * MAINTAINERS: Update e-mail address.
1899 2003-06-24 Jim Blandy <jimb@redhat.com>
1901 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1903 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1905 (ppc_linux_init_abi): Register it as the
1906 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1908 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1909 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1912 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1913 (ppc64_standard_linkage_target): Use it.
1915 2003-06-23 Andrew Cagney <cagney@redhat.com>
1917 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1918 for 0 "int0" and 4 "int32" sized registers.
1919 * gdbtypes.c (builtin_type_int0): Define.
1920 (build_gdbtypes): Initialize builtin_type_int0.
1921 * gdbtypes.h (builtin_type_int0): Declare.
1923 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1926 as characters are unsigned.
1928 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1931 * dwarfread.c (struct_type): Skip static fields without crashing.
1933 2003-06-22 Andrew Cagney <cagney@redhat.com>
1935 GDB 6.0 branch created.
1937 * PROBLEMS: Update. Empty.
1940 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1942 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1943 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1945 2003-06-22 Andrew Cagney <cagney@redhat.com>
1947 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1948 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1951 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1953 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1956 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1958 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1959 argument of val_print.
1960 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1961 to the address argument of baseclass_offset or target_read_memory.
1962 Do add it to the argument of cp_print_value_fields.
1964 2003-06-21 Andrew Cagney <cagney@redhat.com>
1966 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1967 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1968 instead of 0..NUM_REGS.
1969 (mips_register_reggroup_p): New function.
1970 (mips_pseudo_register_write): New function.
1971 (mips_pseudo_register_read): New function.
1972 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1973 based on the register's type.
1974 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1976 (mips_get_saved_register): Simplify. Assert that REGNO is a
1978 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1979 (mips_register_type): Replace mips_register_virtual_type. Map
1980 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1982 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1983 that the register is cooked / virtual.
1984 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1985 Only get the extra info when needed.
1986 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1987 (mips32_heuristic_proc_desc): Fetch the cooked register.
1988 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1989 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1990 (mips_print_register): Use gdbarch_register_type, instead of
1991 REGISTER_VIRTUAL_TYPE.
1992 (print_gp_register_row): Use gdbarch_register_type, instead of
1993 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1994 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1995 Print the pseudo / cooked registers.
1996 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1997 Print the pseudo / cooked registers.
1998 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1999 REG_NUM is pseudo / cooked.
2000 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2001 (mips_n32n64_xfer_return_value): Ditto.
2002 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2003 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2004 (mips_register_sim_regno): New function.
2005 (mips_gdbarch_init): Set deprecated_register_byte,
2006 register_group_p, pseudo_register_write, pseudo_register_read,
2007 register_sim_regno, and num_pseudo_regs. Set register_type,
2008 instead of register_virtual_type.
2009 * Makefile.in (mips-tdep.o): Update dependencies.
2010 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2011 REGISTER_VIRTUAL_TYPE.
2012 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2013 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2014 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2015 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2016 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2018 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2020 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2021 * cli/cli-cmds.c: Include "gdb_vfork.h".
2022 (shell_escape): Use vfork.
2024 2003-06-21 Andrew Cagney <cagney@redhat.com>
2026 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2027 32 bit floating-point register saves.
2029 * frame.h (deprecated_unwind_get_saved_register): Delete.
2030 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2031 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2032 and deprecated_get_next_frame_hack instead of
2033 deprecated_unwind_get_saved_register.
2035 * mips-tdep.c (mips_dump_tdep): Do not print
2036 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2038 * frame.c (get_frame_register): New function.
2039 (frame_unwind_register_signed): New function.
2040 (get_frame_register_signed): New function.
2041 (frame_unwind_register_unsigned): New function.
2042 (get_frame_register_unsigned): New function.
2043 * frame.h: Add comments on naming schema.
2044 (get_frame_register, frame_unwind_register_signed): Declare.
2045 (get_frame_register_signed, get_frame_register_signed): Declare.
2046 (frame_unwind_register_unsigned): Declare.
2047 (get_frame_register_unsigned): Declare.
2049 2003-06-20 Theodore A. Roth <troth@openavr.org>
2051 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2053 2003-06-20 Theodore A. Roth <troth@openavr.org>
2055 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2056 (avr_read_sp): Ditto.
2058 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2060 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2061 * config/arm/nm-linux.h: Likewise.
2062 * config/arm/tm-linux.h: Likewise.
2063 * config/ia64/nm-linux.h: Likewise.
2064 * config/ia64/tm-ia64.h: Likewise.
2065 * config/s390/tm-linux.h: Likewise.
2066 * config/s390/tm-s390.h: Likewise.
2067 * s390-nat.c: Likewise.
2068 * s390-tdep.c: Likewise.
2070 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2071 * config/ia64/linux.mt: Likewise.
2072 * config/m68k/linux.mh: Likewise.
2073 * config/mips/linux.mt: Likewise.
2074 * config/powerpc/linux.mh: Likewise.
2075 * config/sh/linux.mt: Likewise.
2077 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2079 * solib.c (solib_open): Change tests for whether to search
2080 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2083 2003-06-19 Theodore A. Roth <troth@openavr.org>
2085 * avr-tdep.c (avr_frame_address): Delete function.
2086 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2087 set_gdbarch_frame_args_address.
2089 2003-06-19 Andrew Cagney <cagney@redhat.com>
2091 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2092 (REGISTER_CONVERT_FROM_TYPE): Delete.
2093 (mips_register_convert_to_type): Delete declaration.
2094 (mips_register_convert_from_type): Delete declaration.
2095 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2098 2003-06-19 Michael Snyder <msnyder@redhat.com>
2100 * linux-nat.h: New file.
2101 * linux-nat.c: Include linux-nat.h.
2102 * lin-lwp.c: Include linux-nat.h.
2103 Move struct lwp_info def to linux-nat.h.
2104 * linux-proc.c: Include linux-nat.h.
2105 (linux_make_note_section): Iterate over lwps instead of threads.
2106 (linux_do_thread_registers): Use lwp instead of merged pid.
2107 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2108 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2109 Add dependency on linux_nat_h.
2111 2003-06-19 Theodore A. Roth <troth@openavr.org>
2113 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2115 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2117 * varobj.c (get_type, get_target_type): Use check_typedef.
2119 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2121 * breakpoint.c (insert_catchpoint): Call internal_error.
2123 2003-06-19 Theodore A. Roth <troth@openavr.org>
2125 * avr-tdep.c (avr_push_dummy_code): Delete function.
2126 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2128 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2130 * arch-utils.c (default_prepare_to_proceed): Remove.
2131 (generic_prepare_to_proceed): Remove.
2132 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2133 (generic_prepare_to_proceed): Remove prototype.
2134 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2135 * gdbarch.c: Regenerate.
2136 * gdbarch.h: Regenerate.
2137 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2138 * hppah-nat.c (hppa_switched_threads): Remove.
2139 * infrun.c (prepare_to_proceed): New static function, copied from
2140 generic_prepare_to_proceed. Remove select_it argument.
2141 (proceed): Call prepare_to_proceed.
2142 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2144 (ptrace_wait): Don't set the removed variables.
2145 (hppa_switched_threads): Remove.
2146 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2147 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2148 (lin_lwp_prepare_to_proceed): Remove prototype.
2149 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2150 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2152 2003-06-18 Theodore A. Roth <troth@openavr.org>
2154 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2156 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2157 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2158 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2159 (AVR_PROLOGUE_*): Enumerate prologue types.
2160 (struct frame_extra_info): Remove.
2161 (struct avr_unwind_cache): Define.
2162 (avr_write_sp): Delete function.
2163 (avr_read_fp): Ditto.
2164 (avr_init_extra_frame_info): Ditto.
2165 (avr_pop_frame): Ditto.
2166 (avr_frame_saved_pc): Ditto.
2167 (avr_saved_pc_after_call): Ditto.
2168 (avr_push_return_address): Ditto.
2169 (avr_frame_chain): Ditto.
2170 (avr_store_struct_return): Ditto.
2171 (avr_push_arguments): Ditto.
2172 (avr_scan_prologue): Update comments. Changed to set up the info for
2173 cache unwinding. Now returns end of prologue PC.
2174 (avr_skip_prologue): Better handling of functions lacking a prologue
2175 by using avr_scan_prologue.
2176 (avr_scan_arg_moves): New function.
2177 (avr_saved_regs_unwinder): Ditto.
2178 (avr_frame_unwind_cache): Ditto.
2179 (avr_unwind_pc): Ditto.
2180 (avr_frame_this_id): Ditto.
2181 (avr_frame_prev_register): Ditto.
2182 (avr_frame_p): Ditto.
2183 (avr_frame_base_address ): Ditto.
2184 (avr_unwind_dummy_id): Ditto.
2185 (avr_push_dummy_code): Ditto.
2186 (push_stack_item): Ditto.
2187 (pop_stack_item): Ditto.
2188 (avr_push_dummy_call): Ditto.
2189 (struct stack_item): Define.
2190 (avr_frame_unwind): Declare structure.
2191 (avr_frame_base): Ditto.
2192 (avr_gdbarch_init): Remove calls to
2193 set_gdbarch_deprecated_init_frame_pc,
2194 set_gdbarch_deprecated_target_read_fp,
2195 set_gdbarch_deprecated_dummy_write_sp,
2196 set_gdbarch_deprecated_fp_regnum,
2197 set_gdbarch_deprecated_push_arguments,
2198 set_gdbarch_deprecated_push_return_address,
2199 set_gdbarch_deprecated_pop_frame,
2200 set_gdbarch_deprecated_store_struct_return,
2201 set_gdbarch_deprecated_frame_init_saved_regs,
2202 set_gdbarch_deprecated_init_extra_frame_info,
2203 set_gdbarch_deprecated_frame_chain,
2204 set_gdbarch_deprecated_frame_saved_pc,
2205 set_gdbarch_deprecated_saved_pc_after_call.
2206 Add calls to set_gdbarch_push_dummy_call,
2207 set_gdbarch_push_dummy_code,
2208 frame_unwind_append_predicate,
2209 frame_base_set_default,
2210 set_gdbarch_unwind_dummy_id,
2211 set_gdbarch_unwind_pc.
2214 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2216 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2217 registers for H8/300S.
2218 (h8300_print_registers_info): Ditto.
2219 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2221 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2223 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2224 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2225 (lin_lwp_wait): Likewise. Update comments.
2226 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2227 (pull_pid_from_list, linux_record_stopped_pid): New.
2229 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2231 * ada-lang.c (scan_discrim_bound): Name first argument.
2232 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2233 declared by ALL_BLOCK_SYMBOLS.
2235 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2237 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2238 ("regcache.h"): Include it.
2239 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2241 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2243 * NEWS: Mention gdbserver detach change and "disconnect" command.
2244 * infcmd.c (disconnect_command): New function.
2245 (_initialize_infcmd): Add ``disconnect'' command.
2246 * remote.c (remote_async_detach): Delete.
2247 (remote_detach): Merge remote_async_detach.
2248 (remote_disconnect): New.
2249 (init_remote_ops): Set to_disconnect.
2250 (init_remote_cisco_ops): Likewise.
2251 (init_remote_async_ops): Likewise. Use remote_detach.
2252 * target.c (cleanup_target): Default to_disconnect.
2253 (update_current_target): Inherit to_disconnect.
2254 (target_disconnect, debug_to_disconnect): New functions.
2255 (setup_target_debug): Set to_disconnect.
2256 * target.h (struct target_ops): Add to_disconnect.
2257 (target_disconnect): Add prototype.
2259 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2261 * breakpoint.c (insert_catchpoint): New function.
2262 (insert_breakpoints): Use catch_exceptions to call
2263 insert_catchpoint. Disable catchpoints if they fail to insert.
2265 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2267 * symfile.c (reread_symbols): Clear sym_private.
2269 2003-06-17 Andrew Cagney <cagney@redhat.com>
2271 * trad-frame.h (struct frame_info): Add opaque declaration.
2272 * remote-fileio.h (struct cmd_list_element): Add opaque
2274 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2277 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2279 * remote.c (remote_prepare_to_store): Replace call to
2280 deprecated_read_register_bytes with multiple regcache_raw_read
2283 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2285 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2286 (nto_find_and_open_solib): Likewise.
2287 (nto_init_solib_absolute_prefix): Likewise.
2288 (_initialize_nto_tdep): Fix indentation.
2290 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2292 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2294 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2296 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2298 2003-06-17 Jim Blandy <jimb@redhat.com>
2300 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2302 2003-06-16 Theodore A. Roth <troth@openavr.org>
2304 * avr-tdep.c (avr_extract_return_value): New function.
2305 (avr_gdbarch_init): Set extract_return_value method.
2307 2003-06-16 Andrew Cagney <cagney@redhat.com>
2309 * frame.h (deprecated_get_next_frame_hack): Declare.
2310 * frame.c (legacy_saved_regs_prev_register): Only require
2311 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2312 there are always saved regs.
2313 (deprecated_generic_get_saved_register): Do not require
2314 DEPRECATED_FRAME_INIT_SAVED_REGS.
2315 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2316 use frame ID unwind instead.
2317 (deprecated_get_next_frame_hack): New function.
2319 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2321 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2322 (h8300_push_dummy_call): ...this function. Some minor optimization.
2323 (h8300_push_return_address): Remove.
2324 (h8300_gdbarch_init): Remove calls to
2325 set_gdbarch_deprecated_dummy_write_sp,
2326 set_gdbarch_deprecated_push_arguments and
2327 set_gdbarch_deprecated_push_return_address.
2328 Add call to set_gdbarch_push_dummy_call.
2330 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2332 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2333 (E_PSEUDO_EXR_REGNUM): Ditto.
2334 (h8300_is_argument_spill): Check for instructions moving argument
2335 registers into safe registers.
2336 (h8300_skip_prologue): Check for stm instruction to push registers
2337 used for register variables onto stack.
2338 (gdb_print_insn_h8300): Remove.
2339 (h8300_examine_prologue): Add a comment.
2340 (h8300_register_name): Take pseudo registers into account.
2341 (h8300s_register_name): Ditto.
2342 (h8300sx_register_name): Ditto.
2343 (h8300_print_register): Ditto.
2344 (h8300_print_registers_info): Define "nice" printing order.
2345 (h8300_saved_pc_after_call): Take pseudo registers into account.
2346 (h8300_register_type): Ditto. Return type used for remote connection
2347 when requesting real CCR or EXR register, return actual type when
2348 requesting pseudo CCR or EXR.
2349 (h8300_pseudo_register_read): New function.
2350 (h8300_pseudo_register_write): Ditto.
2351 (h8300_dbg_reg_to_regnum): Ditto.
2352 (h8300s_dbg_reg_to_regnum): Ditto.
2353 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2354 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2355 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2356 set_gdbarch_print_insn architecture dependent.
2357 Call set_gdbarch_pseudo_register_read and
2358 set_gdbarch_pseudo_register_write.
2359 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2361 2003-06-16 Andrew Cagney <cagney@redhat.com>
2363 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2364 * gdbarch.h, gdbarch.c: Re-generate.
2365 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2366 * s390-tdep.c (s390_gdbarch_init): Update.
2367 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2368 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2369 * mips-tdep.c (mips_gdbarch_init): Update.
2370 * mcore-tdep.c (mcore_gdbarch_init): Update.
2371 * cris-tdep.c (cris_gdbarch_init): Update.
2372 * infcall.c (call_function_by_hand): Update.
2373 * ia64-tdep.c (ia64_push_arguments): Update comment.
2374 * frame.c (legacy_get_prev_frame): Do not assume
2375 SAVE_DUMMY_FRAME_TOS_P.
2376 * dummy-frame.c (find_dummy_frame): Update comment.
2378 2003-06-16 Andrew Cagney <cagney@redhat.com>
2380 * regcache.c (do_cooked_read): Do not use register_valid_p.
2382 2003-06-15 Theodore A. Roth <troth@openavr.org>
2384 * avr-tdep.c (avr_register_type): Remove a blank line.
2385 (avr_scan_prologue): Correct some comments.
2387 2003-06-15 Theodore A. Roth <troth@openavr.org>
2389 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2391 Properly scan prologues generated by gcc with the -mcall-prologues
2393 Add code to scan -mcall-prologues for mega devices.
2395 2003-06-15 Theodore A. Roth <troth@openavr.org>
2397 * avr-tdep.c (avr_register_byte): Delete function.
2398 (avr_register_raw_size): Delete function.
2399 (avr_register_virtual_size): Delete function.
2400 (avr_register_virtual_type): Delete function.
2401 (avr_register_type): New function.
2402 (avr_address_to_pointer): Remove unused code.
2403 (avr_read_fp): Need to read FP as two separate bytes due to change to
2404 avr_register_type() usage.
2405 (avr_gdbarch_init): Don't set deprecated_register_size.
2406 Don't set deprecated_register_bytes.
2407 Don't set deprecated_register_byte.
2408 Don't set deprecated_register_raw_size.
2409 Don't set deprecated_max_register_raw_size.
2410 Don't set deprecated_register_virtual_size.
2411 Don't set deprecated_max_register_virtual_size.
2412 Don't set deprecated_register_virtual_type.
2413 Set register_type method.
2415 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2417 * Makefile.in (linux-nat.o): Add rule.
2418 * linux-nat.c: New file.
2419 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2420 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2421 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2422 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2423 * config/arm/linux.mh (NATDEPFILES): Likewise.
2424 * config/i386/linux.mh (NATDEPFILES): Likewise.
2425 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2426 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2427 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2428 * config/mips/linux.mh (NATDEPFILES): Likewise.
2429 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2430 * config/s390/s390.mh (NATDEPFILES): Likewise.
2431 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2433 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2435 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2436 replace out-of-date comment.
2438 2003-06-15 Andrew Cagney <cagney@redhat.com>
2440 * rdi-share/host.h (Fail): Change to a varargs function.
2441 * remote-rdi.c (Fail): Update.
2443 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2445 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2446 (i386_convert_register_p, i386_register_to_value,
2447 i386_register_from_value): Handle types longer than 8 bytes.
2449 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2451 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2452 Move floating-point code to new function in i387-tdep.c.
2453 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2454 New functions containing code moved here from i386-tdep.c.
2455 * i387-tdep.h: Add opaque declaration for `struct type'.
2456 (i387_register_to_value, i387_value_to_register): New prototypes.
2457 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2458 (x86_64_init_abi): Set convert_register_p, register_to_value and
2459 value_to_register here.
2461 2003-06-14 Andrew Cagney <cagney@redhat.com>
2463 * mips-tdep.c (mips_register_to_value): Make static.
2464 (mips_value_to_register): Make static.
2465 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2466 * ia64-tdep.c (ia64_register_raw_size): Make static.
2467 (ia64_register_virtual_size): Make static.
2468 (ia64_register_byte): Make static.
2469 * i387-tdep.c: Include "i387-tdep.h".
2470 (print_387_control_word): Delete function.
2471 (print_387_status_word): Delete function.
2472 (print_387_status_bits): Delete function.
2473 (print_387_control_bits): Delete function.
2474 * Makefile.in (i387-tdep.o): Update dependencies.
2475 * rdi-share/host.h (Fail): Declare.
2476 * remote-rdi.c (Fail): Update to match declaration.
2478 2003-06-14 Andrew Cagney <cagney@redhat.com>
2480 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2481 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2482 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2483 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2484 * README: Delete reference to remote-array.
2485 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2486 (remote-array.o): Delete target.
2487 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2488 * remote-array.c: Delete file.
2490 2003-06-14 Andrew Cagney <cagney@redhat.com>
2491 Mark Kettenis <kettenis@gnu.org>
2493 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2494 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2495 parameter with "frame".
2496 * gdbarch.h, gdbarch.c: Re-generate.
2497 * frame.h (put_frame_register): Declare.
2498 * frame.c (put_frame_register): New function.
2499 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2500 (legacy_register_to_value): Rewrite, use "frame" to get the
2502 (legacy_value_to_register): Rewrite, use "frame" to find the
2503 register's location before storing.
2504 * arch-utils.h (legacy_convert_register_p): Update.
2505 (legacy_register_to_value, legacy_value_to_register): Update.
2506 * findvar.c (value_from_register): Rewrite, eliminate use of
2507 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2508 "frame" to REGISTER_TO_VALUE.
2509 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2510 lval_reg_frame_relative + lval_register branch of the switch. Do
2511 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2512 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2513 I386_EDI_REGNUM): New defines.
2514 (i386_next_regnum, i386_convert_register_p,
2515 i386_register_to_value, i386_value_to_register): New functions.
2516 (i386_register_convertible, i386_register_convert_to_virtual,
2517 i386_convert_to_raw): Remove functions.
2518 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2519 value_to_register instead of register_convertible,
2520 register_convert_to_virtual and register_convert_to_raw.
2521 * mips-tdep.c (mips_convert_register_p): New function.
2522 (mips_value_to_register): Replace mips_register_convert_from_type.
2523 (mips_register_to_value): Replace mips_register_convert_to_type.
2524 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2526 * alpha-tdep.c (alpha_convert_register_p): Update.
2527 (alpha_value_to_register): Update, store the register.
2528 (alpha_register_to_value): Update, fetch the register.
2530 2003-06-14 Theodore A. Roth <troth@openavr.org>
2532 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2533 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2534 Don't set deprecated_call_dummy_words.
2535 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2536 Don't set remote_translate_xfer_address.
2537 (avr_io_reg_read_command): Remove commented out debug printf.
2540 2003-06-14 Theodore A. Roth <troth@openavr.org>
2542 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2543 causes gdb to seg fault.
2545 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2547 * sparc-nat.c (fetch_inferior_registers): Correct
2548 a reference to "registers".
2550 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2552 * Makefile.in (exc_request_U_h): Define
2553 (exc_request_S_h): Likewise.
2554 (msg_reply_S_h): Likewise.
2555 (msg_U_h): Likewise.
2556 (notify_S_h): Likewise.
2557 (process_reply_S_h): Likewise.
2558 (gnu-nat.o): Depend on gdb_obstack_h
2559 * gnu-nat.c: Include "gdb_obstack.h".
2561 2003-06-13 Andrew Cagney <cagney@redhat.com>
2563 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2564 * gdbarch.h, gdbarch.c: Re-generate.
2566 2003-06-13 Andrew Cagney <cagney@redhat.com>
2568 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2569 when deprecated REGISTER macros can be deleted.
2570 * gdbarch.h, gdbarch.c: Re-generate.
2572 2003-06-13 Jim Blandy <jimb@redhat.com>
2574 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2575 Linux entry point symbols for _dl_debug_state, too.
2577 2003-06-13 Andrew Cagney <cagney@redhat.com>
2579 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2580 available, do not use the FP register, and always save the TOS.
2581 * dummy-frame.c (dummy_frame_this_id): Do not assert
2582 SAVE_DUMMY_FRAME_TOS.
2583 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2584 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2585 (i386_push_dummy_call): Add 8 to the returned SP.
2586 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2587 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2588 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2589 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2590 (x86_64_push_dummy_call): Return "sp + 16".
2591 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2592 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2593 save_dummy_frame_tos.
2595 2003-06-13 Jim Blandy <jimb@redhat.com>
2597 * frv-tdep.c (frv_use_struct_convention): Delete static
2598 declaration for function deleted in my change of 2003-06-12.
2600 2003-06-13 Theodore A. Roth <troth@openavr.org>
2602 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2603 (avr_pointer_to_address): Shift code addrs left 1 bit.
2604 (avr_convert_from_func_ptr_addr): Delete function since operation is
2605 better handled by avr_address_to_pointer and avr_pointer_to_address.
2606 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2608 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2610 From Kelley Cook <kelleycook@wideopenwest.com>:
2611 * configure.host: Accept i[34567]86 variants.
2612 * configure.tgt: Likewise.
2613 * nlm/configure.in: Likewise.
2614 * nlm/configure: Regenerated.
2616 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2618 * arm-tdep.c (solib-svr4.h): Dont' include it.
2619 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2620 * arm-linux-tdep.c: ... here. Make static.
2621 (arm_linux_init_abi): Register it.
2622 (solib-svr4.h): Include it.
2623 * Makefile.in: Update dependencies.
2624 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2625 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2627 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2629 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2630 indicate registers used for return values.
2631 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2632 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2634 (h8300_init_extra_frame_info): Ditto.
2635 (h8300_frame_locals_address): Removed.
2636 (h8300_frame_args_address): Removed.
2637 (h8300_extract_return_value): Use new regcache structure. Only care
2639 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2640 (h8300_store_return_value): Use new regcache structure. Only care
2642 (h8300h_store_return_value): Same function for 32 bit CPUs.
2643 (h8300_store_struct_return): Removed.
2644 (h8300_extract_struct_value_address): Use new regcache structure.
2645 (h8300h_extract_struct_value_address): Removed.
2646 (h8300_push_dummy_code): New function.
2647 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2648 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2649 set_gdbarch_store_return_value architecture dependent.
2650 Call set_gdbarch_push_dummy_code and
2651 set_gdbarch_extract_struct_value_address.
2652 Remove calls to set_gdbarch_frame_args_address,
2653 set_gdbarch_frame_locals_address,
2654 set_gdbarch_deprecated_store_struct_return,
2655 set_gdbarch_deprecated_extract_return_value,
2656 set_gdbarch_deprecated_extract_struct_value_address,
2657 set_gdbarch_deprecated_call_dummy_words and
2658 set_gdbarch_deprecated_sizeof_call_dummy_words.
2660 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2662 * h8300-tdep.c (h8300_register_byte): Remove.
2663 (h8300h_register_byte): Remove.
2664 (h8300_register_virtual_type): Remove. Substitute by...
2665 (h8300_register_type): New function.
2666 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2667 (h8300h_extract_struct_value_address): Ditto.
2668 (h8300_gdbarch_init): Drop calls to
2669 set_gdbarch_deprecated_register_byte and
2670 set_gdbarch_deprecated_register_virtual_type.
2671 Add call to set_gdbarch_register_type.
2673 2003-06-13 Andrew Cagney <cagney@redhat.com>
2675 * gdbarch.sh: Update comments on registers.
2676 (deprecated_register_byte): Rename register_byte.
2677 (deprecated_register_raw_size): Rename register_raw_size.
2678 (deprecated_register_virtual_size): Rename register_virtual_size.
2679 (deprecated_register_virtual_type): Rename register_virtual_type.
2680 * gdbarch.h, gdbarch.c: Re-generate.
2681 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2682 * vax-tdep.c (vax_gdbarch_init): Update.
2683 * v850-tdep.c (v850_gdbarch_init): Update.
2684 * sparc-tdep.c (sparc_gdbarch_init): Update.
2685 * sh-tdep.c (sh_gdbarch_init): Update.
2686 * s390-tdep.c (s390_gdbarch_init): Update.
2687 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2688 * ns32k-tdep.c: Update.
2689 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2690 * mips-tdep.c (mips_gdbarch_init): Update.
2691 * mcore-tdep.c (mcore_gdbarch_init): Update.
2692 * m68k-tdep.c (m68k_gdbarch_init): Update.
2693 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2694 * ia64-tdep.c (ia64_gdbarch_init): Update.
2695 * hppa-tdep.c (hppa_gdbarch_init): Update.
2696 * h8300-tdep.c (h8300_gdbarch_init): Update.
2697 * frv-tdep.c (frv_gdbarch_init): Update.
2698 * cris-tdep.c (cris_gdbarch_init): Update.
2699 * avr-tdep.c (avr_gdbarch_init): Update.
2700 * alpha-tdep.c (alpha_gdbarch_init): Update.
2701 * arm-tdep.c (arm_gdbarch_init): Update.
2703 2003-06-13 Andrew Cagney <cagney@redhat.com>
2705 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2706 mips_o32_use_struct_convention with always_use_struct_convention.
2708 2003-06-12 David Carlton <carlton@kealia.com>
2710 * cp-namespace.c (cp_set_block_scope): Comment out
2711 processing_has_namespace_info branch.
2713 2003-06-12 Jim Blandy <jimb@redhat.com>
2715 Recognize and skip 64-bit PowerPC Linux linkage functions.
2716 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2717 insn_pattern, insns_match_pattern, d_field, ds_field): New
2718 functions, macros, and types for working with PPC instructions.
2719 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2720 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2721 ppc64_skip_trampoline_code): New functions, variables, and macros
2722 for recognizing and skipping linkage functions.
2723 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2724 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2726 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2727 register offsets for both the 32- and 64-bit interfaces.
2729 Actually finish the job started by my change of 2003-05-29.
2730 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2731 other #definition of this.
2732 (ppc_linux_skip_trampoline_code): Remove declaration.
2733 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2735 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2738 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2739 'long' on ppc64-*-linux*.
2741 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2742 isn't #defined, assume the register doesn't exist: act as if
2743 tdep->ppc_mq_regnum were -1.
2745 * configure.host, configure.tgt: Add entries for
2746 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2748 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2751 * arch-utils.c (always_use_struct_convention): New function.
2752 * arch-utils.h (always_use_struct_convention): New prototype.
2753 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2754 (alpha_gdbarch_init): Register always_use_struct_convention,
2755 instead of alpha_use_struct_convention.
2756 * cris-tdep.c (cris_use_struct_convention): Delete.
2757 (cris_gdbarch_init): Register always_use_struct_convention,
2758 instead of cris_use_struct_convention.
2759 * frv-tdep.c (frv_use_struct_convention): Delete.
2760 (frv_gdbarch_init): Register always_use_struct_convention,
2761 instead of frv_use_struct_convention.
2762 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2763 (h8300_gdbarch_init): Register always_use_struct_convention,
2764 instead of h8300_use_struct_convention.
2765 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2766 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2767 instead of mips_o32_use_struct_convention.
2769 2003-06-12 Andrew Cagney <cagney@redhat.com>
2771 * wince.c: Include "mips-tdep.h".
2772 * mips-tdep.h (mips_next_pc): Declare.
2773 * mcore-tdep.c: Make more local functions static.
2774 * Makefile.in (wince.o): Update dependencies.
2776 2003-06-12 David Carlton <carlton@kealia.com>
2778 * symtab.c (lookup_symbol_aux_minsyms): Replace
2779 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2780 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2781 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2782 SYMBOL_NATURAL_NAME.
2784 2003-06-12 Andreas Schwab <schwab@suse.de>
2786 * Makefile.in (tuiDisassem.o): Update dependencies.
2788 2003-06-12 David Carlton <carlton@bactrian.org>
2790 * symtab.h: Delete declaration of make_symbol_overload_list.
2791 Add declaration of lookup_partial_symbol.
2792 * symtab.c (remove_params): Move to cp-support.c.
2793 (overload_list_add_symbol, make_symbol_overload_list)
2794 (sym_return_val_size, sym_return_val_index): Ditto.
2795 (lookup_partial_symbol): Make extern.
2796 * cp-support.h: Add declaration of make_symbol_overload_list.
2797 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2798 symtab.h, and block.h.
2799 (remove_params): Move here from symtab.c.
2800 (overload_list_add_symbol, make_symbol_overload_list)
2801 (sym_return_val_size, sym_return_val_index): Ditto.
2802 * valops.c: Include cp-support.h.
2803 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2804 frame_h, and block_h.
2805 (valops.o): Depend on cp_support_h.
2807 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2809 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2810 substitute by NUM_REGS throughout.
2811 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2812 (h8300s_register_name): New function for H8S registers.
2813 (h8300sx_register_name): Ditto for H8SX registers.
2814 (h8300_print_register): Revise register printing, avoid depending
2816 (h8300_register_byte): Only care for H8/300 registers.
2817 (h8300h_register_byte): New function for any other architecture.
2818 (h8300_register_raw_size): Remove.
2819 (h8300_register_virtual_type): Revise to return actually useful
2821 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2822 (h8300h_extract_struct_value_address): New function for any other
2824 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2825 set_gdbarch_register_name, set_gdbarch_register_byte,
2826 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2827 Remove calls to set_gdbarch_deprecated_register_size,
2828 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2829 set_gdbarch_deprecated_max_register_raw_size,
2830 set_gdbarch_register_virtual_size and
2831 set_gdbarch_deprecated_max_register_virtual_size entirely.
2832 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2833 set_gdbarch_long_double_bit.
2835 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2837 * doublest.c (convert_doublest_to_floatformat): When dealing
2838 with the implied integer bit, only alter mant_bits if we are
2839 processing a full 32 bits of mantissa.
2841 2003-06-11 David Carlton <carlton@bactrian.org>
2843 * dictionary.h: New.
2844 * dictionary.c: New.
2845 * block.h: Add opaque declaration for struct dictionary.
2846 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2848 (BLOCK_DICT): New macro.
2849 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2850 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2852 (ALL_BLOCK_SYMBOLS): Update definition.
2853 * Makefile.in (SFILES): Add dictionary.c.
2854 (dictionary_h): New.
2855 (COMMON_OBS): Add dictionary.o.
2856 (dictionary.o): New.
2857 (ada-lang.o): Depend on dictionary_h.
2858 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2859 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2860 (mi-cmd-stack.o): Ditto.
2861 (gdbtk-cmds.o): Update dependencies.
2862 (gdbtk-stack.o): Ditto.
2863 * ada-lang.c: Include dictionary.h.
2864 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2865 (fill_in_ada_prototype, debug_print_block): Ditto.
2866 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2867 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2869 * mdebugread.c: Include dictionary.h.
2870 (struct parse_stack): Delete 'maxsyms' member.
2871 (parse_symbol): Update calls to new_block. Delete calls to
2872 shrink_block. Use dictionary methods.
2873 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2874 Update calls to new_symtab. Don't maintain maxsyms data.
2875 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2876 (add_symbol): Just call dict_add_symbol.
2877 (new_symtab): Delete 'maxsyms' argument.
2878 (new_symtab): Update calls to new_block.
2879 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2880 (shrink_block): Delete function.
2881 (fixup_sigtramp): Update call to new_block. Add symbol via
2883 * jv-lang.c: Include dictionary.h.
2884 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2885 appropriately. Set class_symtab->free_func. Make sure the
2886 blockvector is big enough to hold two blocks.
2887 (add_class_symtab_symbol): Use dictionary methods.
2888 (free_class_block): New function.
2889 (type_from_class): Replace explicit iteration by
2891 * symtab.h (struct symtab): Replace 'free_ptr' method by
2893 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2895 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2897 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2898 Include dictionary.h.
2899 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2900 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2902 * objfiles.c: Include dictionary.h.
2903 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2904 * buildsym.c: Include dictionary.h.
2905 (finish_block): Use dictionary methods.
2906 (end_symtab): Set free_func to NULL, not free_ptr.
2907 * tracepoint.c: Include dictionary.h.
2908 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2909 (scope_info): Ditto.
2910 * stack.c: Include dictionary.h.
2911 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2912 (print_block_frame_labels, print_frame_arg_vars)
2913 (print_frame_args): Ditto.
2914 * symmisc.c (free_symtab_block): Use dictionary methods.
2915 (dump_symtab): Ditto.
2916 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2917 Include dictionary.h.
2918 * symfile.h: Delete declarations of sort_block_syms,
2920 * symfile.c (sort_block_syms): Delete.
2921 (sort_symtab_syms): Delete.
2922 * symtab.c: Include dictionary.h.
2923 (lookup_block_symbol): Use dictionary iterators.
2924 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2925 (search_symbols, make_symbol_completion_list): Ditto.
2926 (make_symbol_overload_list): Ditto.
2927 * valops.c (value_of_local): Use dict_empty.
2928 Include dictionary.h.
2930 2003-06-11 J. Brobecker <brobecker@gnat.com>
2932 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2934 2003-06-11 David Carlton <carlton@bactrian.org>
2936 * block.h (BLOCK_SHOULD_SORT): Delete.
2937 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2939 * ada-lang.c (ada_add_block_symbols): Ditto.
2940 * symfile.c (sort_block_syms): Delete.
2941 (sort_symtab_syms): Ditto.
2942 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2944 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2945 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2946 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2947 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2948 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2949 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2950 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2952 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2954 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2957 2003-06-11 Andrew Cagney <cagney@redhat.com>
2959 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2960 REGISTER_CONVERTIBLE.
2961 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2962 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2963 * gdbarch.h, gdbarch.c: Re-generate.
2964 * arch-utils.h (deprecated_register_convertible_not): Rename
2965 generic_register_convertible_not.
2966 * arch-utils.c (deprecated_register_convertible_not): Rename
2967 generic_register_convertible.
2968 (legacy_convert_register_p, legacy_register_to_value): Update.
2969 * sh-tdep.c (sh64_push_arguments): Update.
2970 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2971 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2972 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2973 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2974 * arch-utils.c (legacy_value_to_register): Update.
2975 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2976 (rs6000_register_convert_to_raw): Make parameter "from" const.
2977 * mips-tdep.c (mips_gdbarch_init): Update.
2978 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2979 * infcmd.c (default_print_registers_info): Update.
2980 * ia64-tdep.c (ia64_gdbarch_init): Update.
2981 (ia64_register_convert_to_raw): Make parameter "from" const.
2982 * i386-tdep.c (i386_gdbarch_init): Update.
2983 (i386_register_convert_to_raw): Update.
2985 2003-06-11 Andrew Cagney <cagney@redhat.com>
2987 * remote-fileio.c: Include "remote-fileio.h".
2988 * Makefile.in (remote-fileio.o): Update dependencies.
2989 (remote_fileio_h): Fix typo.
2991 2003-06-11 Andrew Cagney <cagney@redhat.com>
2993 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2994 (xstormy16_save_dummy_frame_tos): Make static.
2995 (_initialize_xstormy16_tdep): Add declaration.
2996 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2997 * v850-tdep.c: Make local functions static.
2998 (_initialize_v850_tdep): Add declaration.
2999 * sparc-tdep.c: Make local functions static.
3000 (_initialize_sparc_tdep): Add declaration.
3001 * sh-tdep.c: Make local functions static.
3002 (_initialize_sh_tdep): Add declaration.
3003 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3004 * s390-tdep.c: Make local functions static.
3005 (_initialize_s390_tdep): Add declaration.
3006 * dbxread.c (find_stab_function_addr): Make static.
3007 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3008 * ocd.c (_initialize_remote_ocd): Add declaration.
3009 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3010 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3011 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3012 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3013 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3014 * remote-array.c (_initialize_array): Add declaration.
3015 (_initialize_remote_monitors): Add declaration.
3016 * remote-mips.c: Make local functions static.
3017 (_initialize_remote_mips): Add declaration.
3018 * mcore-tdep.c: Make all local functions static.
3019 (_initialize_mcore_tdep): Add declaration.
3020 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3021 * abug-rom.c (_initialize_abug_rom): Add declaration.
3022 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3023 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3024 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3025 * remote-est.c (_initialize_est): Add declaration.
3026 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3027 (m68hc11_call_dummy_address): Make static.
3028 * ia64-tdep.c: Make local functions static.
3029 (_initialize_ia64_tdep): Add declaration.
3030 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3031 * monitor.c (monitor_wait_filter): Make static.
3032 (_initialize_remote_monitors): Add declaration.
3033 * remote-hms.c (_initialize_remote_hms): Add declaration.
3034 * remote-e7000.c (fetch_regs_from_dump): Make static.
3035 (expect_n): Make static.
3036 (_initialize_remote_e7000): Add declaration.
3037 * ser-e7kpc.c: Always include "defs.h".
3038 (_initialize_ser_e7000pc): Add declaration.
3039 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3040 * cris-tdep.c: Make all but one function static.
3041 (_initialize_cris_tdep): Add declaration.
3042 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3043 * solib.c (update_solib_list): Make static.
3044 (_initialize_solib): Add declaration.
3045 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3046 (_initialize_avr_tdep): Add declaration.
3047 * remote-rdi.c (voiddummy): Make static.
3048 (_initialize_remote_rdi): Add declaration.
3049 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3050 * remote-rdp.c (send_rdp): Make static.
3051 (_initialize_remote_rdp): Add declaration.
3052 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3054 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3056 * remote-fileio.c: Make ari happy.
3058 2003-06-10 J. Brobecker <brobecker@gnat.com>
3060 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3061 fetching the trailing bytes of the buffer we are about to write.
3063 2003-06-10 Andrew Cagney <cagney@redhat.com>
3065 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3066 * Makefile.in (remote-fileio.o): Update dependencies.
3067 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3068 include <setjmp.h>, or <sys/types.h> conditional on USG.
3069 (remote_fio_jmp_buf): Delete global variable.
3071 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3072 Martin M. Hunt <hunt@redhat.com>
3074 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3075 (SFILES): Add remote-fileio.c.
3076 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3077 dependencies for building remote.o.
3078 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3079 * remote-fileio.h: New header file defining remote File-I/O interface.
3080 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3081 static storage class.
3082 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3084 (_initialize_remote): Call initialize_remote_fileio().
3085 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3086 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3087 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3088 (captured_main): Initialize new ui_files.
3089 * ui-file.c: Add read and fgets input functions.
3090 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3091 (null_file_read): New function.
3092 (ui_file_read): New function.
3093 (set_ui_file_read): New function.
3094 (stdio_file_read): New function.
3095 * ui-file.h: New type ui_file_read_ftype.
3096 (set_ui_file_read): Declare.
3097 (ui_file_read): Declare.
3099 2003-06-09 Andrew Cagney <cagney@redhat.com>
3101 * frame.h (deprecated_unwind_get_saved_register): Rename
3102 generic_unwind_get_saved_register, update comments.
3103 * mips-tdep.c (mips_get_saved_register): Update.
3104 * frame.c (deprecated_unwind_get_saved_register): Update.
3106 2003-06-09 Andrew Cagney <cagney@redhat.com>
3108 * vax-tdep.c (vax_frame_locals_address): Delete function.
3109 (vax_gdbarch_init): Do not set frame_locals_address.
3110 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3111 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3112 * s390-tdep.c (s390_frame_args_address): Delete function.
3113 (s390_gdbarch_init): Do not set frame_args_address or
3114 frame_locals_address.
3115 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3116 (ns32k_gdbarch_init): Do not set frame_locals_address.
3117 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3118 (hppa_frame_locals_address): Delete function.
3119 (hppa_gdbarch_init): Do not set frame_args_address, or
3120 frame_locals_address.
3121 * arm-tdep.c (arm_frame_args_address): Delete.
3122 (arm_frame_locals_address): Delete.
3123 (arm_gdbarch_init): Do not set frame_args_address, or
3124 frame_locals_address.
3126 2003-06-09 Andrew Cagney <cagney@redhat.com>
3128 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3129 * gdbarch.h, gdbarch.c: Re-generate.
3130 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3131 * arch-utils.c (frame_num_args_unknown): Delete function.
3132 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3133 (frame_info): Use FRAME_NUM_ARGS_P.
3134 * arm-tdep.c (arm_frame_num_args): Delete function.
3135 (arm_gdbarch_init): Do not set frame_num_args.
3136 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3137 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3138 (hppa_gdbarch_init): Do not set frame_num_args.
3139 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3141 frame_num_args to default frame_num_args_unknown.
3142 * v850-tdep.c (v850_gdbarch_init): Ditto.
3143 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3144 * sh-tdep.c (sh_gdbarch_init): Ditto.
3145 * s390-tdep.c (s390_gdbarch_init): Ditto.
3146 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3147 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3148 * mips-tdep.c (mips_gdbarch_init): Ditto.
3149 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3150 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3152 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3153 * i386-tdep.c (i386_gdbarch_init): Ditto.
3154 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3155 * frv-tdep.c (frv_gdbarch_init): Ditto.
3156 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3157 * cris-tdep.c (cris_gdbarch_init): Ditto.
3158 * avr-tdep.c (avr_gdbarch_init): Ditto.
3159 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3161 2003-06-09 Andrew Cagney <cagney@redhat.com>
3163 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3164 (print_frame_args): Moved to "stack.c".
3165 * stack.c: Include "gdb_assert.h".
3166 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3167 (print_frame_args): Moved from "printcmd.c".
3168 * frame.h (print_frame_args): Delete declaration.
3169 * Makefile.in (stack.o): Update dependencies.
3171 2003-06-08 Andrew Cagney <cagney@redhat.com>
3173 * frame.c (get_prev_frame): Remove reference to
3174 frame_args_address_correct in comments.
3175 * frame-base.c (default_frame_args_address): Delete code
3176 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3177 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3178 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3179 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3180 (vax_frame_args_address_correct): Delete declaration.
3182 2003-06-08 Andrew Cagney <cagney@redhat.com>
3184 * gdbarch.sh (UNWIND_SP): Add.
3185 * gdbarch.h, gdbarch.c: Re-generate.
3186 * frame.c (frame_sp_unwind): New function.
3187 (get_frame_sp): New function.
3188 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3189 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3190 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3192 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3193 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3195 2003-06-08 Andrew Cagney <cagney@redhat.com>
3197 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3200 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3201 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3202 * config/m68k/tm-sun3.h: Update.
3203 * config/m68k/tm-m68klynx.h: Update.
3204 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3206 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3207 trad_frame". Update comments.
3208 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3209 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3210 (trad_frame_register_value, trad_frame_prev_register): Update.
3212 2003-06-08 Andrew Cagney <cagney@redhat.com>
3214 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3215 from GCC's acinclude.m4.
3216 * configure.in: Check for getopt's delcaration.
3217 * aclocal.m4, config.in, configure: Re-generate.
3218 * main.c (error_init): Delete declaration.
3219 * defs.h (error_init): Declare.
3220 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3221 (rs6000_convert_from_func_ptr_addr): Make static.
3222 (_initialize_rs6000_tdep): Add declaration.
3223 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3224 (show_commands, set_verbose, show_history): Delete declaration.
3225 * top.h (set_verbose): Add declaration.
3226 (show_history, set_history, show_commands): Add declaration.
3227 (do_restore_instream_cleanup): Add declaration.
3228 * objc-lang.c (specialcmp): Make static.
3229 (print_object_command): Make static.
3230 (find_objc_msgsend): Make static.
3231 (find_objc_msgcall_submethod_helper): Make static.
3232 (find_objc_msgcall_submethod): Make static.
3233 (_initialize_objc_language): Add declaration.
3234 (find_implementation_from_class): Make static.
3235 (find_implementation): Make static.
3236 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3237 * objc-lang.h (lookup_struct_typedef): Add declaration.
3238 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3239 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3240 (do_restore_user_call_depth): Make static.
3241 (do_restore_instream_cleanup): Delete declaration.
3242 (dont_repeat): Delete declaration.
3243 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3244 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3245 * reggroups.c (_initialize_reggroup): Add declaration.
3246 * cp-support.c (_initialize_cp_support): Add declaration.
3247 * cp-abi.c (_initialize_cp_abi): Add declaration.
3248 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3249 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3250 (_initialize_gnu_v3_abi): Add declaration.
3251 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3252 (_initialize_gnu_v2_abi): Add declaration.
3253 * frame-base.c (_initialize_frame_base): Add declaration.
3254 * doublest.c (floatformat_from_length): Make static.
3255 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3256 * frame.c (create_sentinel_frame): Make static.
3257 (_initialize_frame): Add declaration.
3258 * top.c (do_catch_errors): Make static.
3259 (gdb_rl_operate_and_get_next_completion): Make static.
3260 * typeprint.c: Include "typeprint.h".
3261 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3262 (sentinel_frame_this_id): Make static.
3263 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3264 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3265 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3266 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3267 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3268 * maint.c (maintenance_print_architecture): Make static.
3269 * signals/signals.c (_initialize_signals): Add declaration.
3270 * std-regs.c (_initialize_frame_reg): Add declaration.
3271 * jv-exp.y (push_variable): ISO C definition.
3272 (push_qualified_expression_name): Ditto.
3273 * memattr.c (_initialize_mem): Add declaration.
3274 * remote.c (remote_check_watch_resources): Make static.
3275 (remote_stopped_by_watchpoint): Make static.
3276 (remote_stopped_data_address): Make static.
3277 * d10v-tdep.c (nr_dmap_regs): Make static.
3278 (a0_regnum): Make static.
3279 (d10v_frame_unwind_cache): Make static.
3280 (d10v_frame_p): Make static.
3281 * osabi.c (show_osabi): Make static.
3282 (_initialize_gdb_osabi): Add extern declaration.
3283 * gdbtypes.c (make_qualified_type): Make static.
3284 (safe_parse_type): Make static.
3285 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3286 * macrotab.c (macro_bcache_free): Make static.
3287 * interps.c (interp_set_quiet): Make static.
3288 (interpreter_exec_cmd): Make static.
3289 * stack.h (select_frame_command): New file.
3290 * stack.c: Include "stack.h".
3291 (select_frame_command_wrapper): Delete function.
3292 (select_frame_command): Make global.
3293 * infcall.c: Include "infcall.h".
3294 * linespec.c: Include "linespec.h".
3295 * symfile.c (sections_overlap): Make static.
3296 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3297 * charset.c (_initialize_charset): Add missing prototype.
3298 * regcache.c (init_legacy_regcache_descr): Make static.
3299 (do_regcache_xfree): Make static.
3300 (regcache_xfer_part): Make static.
3301 (_initialize_regcache): Add missing prototype.
3302 * breakpoint.c (parse_breakpoint_sals): Make static.
3303 (breakpoint_sals_to_pc): Make static.
3304 * interps.h (clear_interpreter_hooks): ISO C declaration.
3305 * Makefile.in (stack_h): Define.
3306 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3307 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3309 2003-06-08 Andrew Cagney <cagney@redhat.com>
3311 * Makefile.in (d10v-tdep.o): Update dependencies.
3312 (SFILES): Add trad-frame.c.
3313 (trad_frame_h): Define.
3314 (COMMON_OBS): Add trad-frame.o.
3315 (trad-frame.o): Specify dependencies.
3316 * d10v-tdep.c: Include "trad-frame.h".
3317 (saved_regs_unwinder): Delete function.
3318 (d10v_frame_prev_register): Use trad_frame_prev_register.
3319 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3320 trad_frame", delete "regs" and "prev_sp".
3321 (prologue_find_regs): Use trad-frame.
3322 * trad-frame.h, trad-frame.c: New files.
3324 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3326 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3328 2003-06-07 Adam Fedor <fedor@gnu.org>
3330 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3331 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3332 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3333 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3334 resolve_msgsend_super, resolve_msgsend_super_stret):
3337 2003-06-07 Andrew Cagney <cagney@redhat.com>
3339 * symfile.h: Re-indent, clean up comments.
3341 2003-06-07 Andrew Cagney <cagney@redhat.com>
3343 * inferior.h (deprecated_write_sp): Replace
3344 generic_target_write_sp.
3345 * regcache.c (deprecated_write_sp): Replace
3346 generic_target_write_sp.
3347 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3348 * vax-tdep.c (vax_gdbarch_init): Update.
3349 * v850-tdep.c (v850_gdbarch_init): Update.
3350 * sparc-tdep.c (sparc_gdbarch_init): Update.
3351 * sh-tdep.c (sh_gdbarch_init): Update.
3352 * s390-tdep.c (s390_gdbarch_init): Update.
3353 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3354 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3355 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3356 * mcore-tdep.c (mcore_gdbarch_init): Update.
3357 * m68k-tdep.c (m68k_gdbarch_init): Update.
3358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3359 * ia64-tdep.c (ia64_gdbarch_init): Update.
3360 * h8300-tdep.c (h8300_gdbarch_init): Update.
3361 * frv-tdep.c (frv_gdbarch_init): Update.
3362 * cris-tdep.c (cris_gdbarch_init): Update.
3363 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3365 2003-06-07 Andrew Cagney <cagney@redhat.com>
3367 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3368 Assert that PC_REGNUM is valid.
3369 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3371 2003-06-07 Andrew Cagney <cagney@redhat.com>
3373 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3374 * gdbarch.h, gdbarch.c: Regenerate.
3375 * mn10300-tdep.c: Include "gdb_assert.h".
3376 (mn10300_read_fp): New function.
3377 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3378 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3379 * ia64-tdep.c: Include "gdb_assert.h".
3380 (ia64_read_fp): New function.
3381 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3382 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3383 * regcache.c (generic_target_read_sp): Delete function.
3384 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3385 * inferior.h (generic_target_read_sp): Delete declaration.
3386 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3387 generic_target_read_sp.
3388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3389 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3390 * sh-tdep.c (sh_gdbarch_init): Ditto.
3391 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3392 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3394 2003-06-07 Andrew Cagney <cagney@redhat.com>
3396 * gdbarch.sh: Comment each field of startup_gdbarch.
3397 * gdbarch.h, gdbarch.c: Re-generate.
3399 2003-06-07 Andrew Cagney <cagney@redhat.com>
3401 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3402 * gdbarch.h, gdbarch.c: Re-generate.
3403 * regcache.c: Update comments on read_pc et.al.
3404 (generic_target_read_pc): Delete function.
3405 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3406 * inferior.h (generic_target_read_pc): Delete declaration.
3407 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3408 generic_target_read_pc.
3409 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3410 * sh-tdep.c (sh_gdbarch_init): Ditto.
3411 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3414 2003-06-07 Andrew Cagney <cagney@redhat.com>
3416 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3417 "index" with "special_local_sect". Use strcmp instead of STREQ.
3418 Append period to coments.
3420 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3422 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3423 (elfstab_offset_sections): Likewise.
3424 * gdb-stabs.h (stab_section_info): Likewise.
3425 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3426 * objfiles.c (objfile_relocate): Likewise.
3427 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3428 * remote.c (get_offsets): Likewise.
3429 (remote_cisco_objfile_relocate): Likewise.
3430 * somread.c (som_symfile_offsets): Likewise.
3431 * symfile.c (alloc_section_addr_info): New function.
3432 (build_section_addr_info_from_section_tab): Use it.
3433 (free_section_addr_info): Adjust.
3434 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3435 (syms_from_objfile): Allocate local_addr dynamically.
3436 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3438 (add_symbol_file_command): Allocate sect_opts dynamically.
3439 (reread_symbols): Avoid use of SECT_OFF_MAX.
3440 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3441 (alloc_section_addr_info): Declare it.
3442 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3443 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3445 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3447 2003-06-06 Andrew Cagney <cagney@redhat.com>
3449 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3450 (d10v_frame_unwind_cache): Do not set "return_pc".
3452 2003-06-06 Michael Snyder <msnyder@redhat.com>
3454 * h8300-tdep.c: Make tidy (long lines).
3456 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3458 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3459 to regcache_collect().
3461 2003-06-05 J. Brobecker <brobecker@gnat.com>
3463 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3464 pc_in_sigtramp multiarch method.
3465 (hppa_hpux_som_init_abi): Use it.
3466 (hppa_hpux_elf_init_abi): Likewise.
3467 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3468 macro has been multiarched.
3469 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3470 macro here, as hppa64 isn't multiarched yet.
3472 2003-06-05 Andrew Cagney <cagney@redhat.com>
3474 * Makefile.in (value_h): Add $(frame_h).
3475 * value.h: Include "frame.h".
3476 (struct value): Replace "frame_addr" with "frame_id".
3477 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3478 * values.c (allocate_value): Use VALUE_FRAME_ID.
3479 (value_copy): Use VALUE_FRAME_ID.
3480 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3481 * valops.c (value_assign): Update. Use frame_find_by_id.
3483 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3485 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3488 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3490 * thread-db.c (check_event): For create/death event breakpoints,
3491 loop through all messages to ensure that we read the message
3492 corresponding to the breakpoint we are at.
3494 2003-06-04 Michael Snyder <msnyder@redhat.com>
3496 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3498 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3500 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3501 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3502 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3503 when handling .eh_frame sections.
3505 2003-06-04 J. Brobecker <brobecker@gnat.com>
3507 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3508 prepare_to_proceed procedure instead of the hppa-specific one.
3509 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3511 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3513 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3514 * config.in: Regenerated.
3515 * configure.in: Add test for syscall function and check for
3516 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3517 * configure: Regenerated.
3518 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3520 (kill_lwp): New function that uses tkill syscall or
3521 uses kill, depending on whether threading model is nptl or not.
3522 All callers of kill() changed to use kill_lwp().
3523 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3524 see if all threads have already exited in the nptl model.
3525 (stop_and_resume_callback): New callback function used by the
3526 lin_lwp_wait thread exit handling code.
3527 (stop_wait_callback): Check for threads already having exited and
3528 delete such threads fromt the lwp list when discovered.
3529 (stop_callback): Don't assert retcode of kill call.
3531 Roland McGrath <roland@redhat.com>
3532 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3535 2003-06-03 Richard Henderson <rth@redhat.com>
3537 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3538 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3539 (alpha_sigtramp_frame_prev_register): Likewise.
3540 (alpha_heuristic_frame_prev_register): Likewise.
3541 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3543 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3544 alpha-specific register id names.
3545 (alpha_mdebug_frame_unwind_cache): Likewise.
3546 (alpha_mdebug_frame_prev_register): Likewise.
3548 2003-06-03 Richard Henderson <rth@redhat.com>
3550 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3551 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3552 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3553 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3555 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3556 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3557 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3559 * alpha-linux-tdep.c: Remove unnecessary includes.
3560 * Makefile.in (alpha-linux-tdep.o): Update.
3562 2003-06-03 Richard Henderson <rth@redhat.com>
3564 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3565 (alphabsd_fill_fpreg): Likewise.
3567 2003-06-03 J. Brobecker <brobecker@gnat.com>
3569 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3570 references to struct frame_info fields by calls to the equivalent
3571 accessors. Necessary now that frame_info is opaque.
3573 2003-06-03 J. Brobecker <brobecker@gnat.com>
3575 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3576 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3577 structure, field no longer exists.
3579 2003-06-03 J. Brobecker <brobecker@gnat.com>
3581 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3582 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3584 2003-06-03 J. Brobecker <brobecker@gnat.com>
3586 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3587 references to struct frame_info fields by calls to the equivalent
3588 accessors. Necessary now that frame_info is opaque.
3590 2003-06-03 J. Brobecker <brobecker@gnat.com>
3592 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3593 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3594 structure, field no longer exists.
3596 2003-06-03 Theodore A. Roth <troth@openavr.org>
3598 * remote.c (init_remote_state): Compute sizeof_g_packet by
3599 accumulation of the size of all registers instead of blindly using
3600 DEPRECATED_REGISTER_BYTES.
3602 2003-06-03 Michael Snyder <msnyder@redhat.com>
3604 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3605 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3608 2003-06-03 J. Brobecker <brobecker@gnat.com>
3610 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3611 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3613 2003-06-03 Andrew Cagney <cagney@redhat.com>
3615 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3616 (sparc_convert_to_raw): Delete function.
3617 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3618 register_convert_to_virtual.
3620 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3622 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3623 layer if not dealing with a statically-linked threaded program.
3625 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3627 * solib.c (solib_open): Update comment to reflect actual search order.
3629 2003-06-03 Andrew Cagney <cagney@redhat.com>
3631 * frame.c (get_frame_memory_signed): New function.
3632 (get_frame_memory, get_frame_memory_unsigned): New function.
3633 (get_frame_arch): New function.
3634 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3635 (get_frame_memory, get_frame_unsigned_memory): Declare.
3636 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3637 get_frame_memory_unsigned and get_frame_arch.
3638 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3640 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3642 * MAINTAINERS (write after approval): Add myself.
3644 2003-06-03 Jim Blandy <jimb@redhat.com>
3646 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3647 elements of gregset_t are 64 bits each, but access registers
3648 are still 32 bits, so they're packed two per gregset_t
3649 element. Unpack/pack them properly.
3651 2003-06-02 David Carlton <carlton@bactrian.org>
3653 * linespec.c (find_methods): Break out code into
3654 add_matching_methods and add_constructors.
3655 (add_matching_methods): New.
3656 (add_constructors): Ditto.
3658 2003-06-02 Andrew Cagney <cagney@redhat.com>
3660 * sparc-tdep.c (sparc_print_registers): Delete call to
3661 REGISTER_CONVERTIBLE.
3662 (sparc_gdbarch_init): Do not set register_convertible.
3663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3664 * frv-tdep.c (frv_gdbarch_init): Ditto.
3665 * cris-tdep.c (cris_gdbarch_init): Ditto.
3667 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3669 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3670 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3671 (syms_from_objfile): Ditto.
3673 2003-06-03 Andreas Schwab <schwab@suse.de>
3675 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3676 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3678 2003-06-02 Richard Henderson <rth@redhat.com>
3680 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3681 a member of all_reggroup.
3683 2003-06-02 Richard Henderson <rth@redhat.com>
3685 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3686 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3687 (alpha_lds, alpha_sts): New.
3688 (alpha_convert_register_p): Change from _register_convertible.
3689 (alpha_register_to_value): Change from _convert_to_virtual;
3690 restructure and fail for type sizes other than 4 or 8.
3691 (alpha_value_to_register): Similarly.
3692 (alpha_extract_return_value): Use alpha_sts.
3693 (alpha_store_return_value): Use alpha_lds.
3694 (alpha_gdbarch_init): Update hooks.
3696 2003-06-02 Richard Henderson <rth@redhat.com>
3698 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3700 (alpha_sigtramp_register_address): Likewise.
3702 2003-06-02 Richard Henderson <rth@redhat.com>
3704 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3705 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3706 * alpha-tdep.h: Declare them.
3708 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3709 Remove zerobuf. Don't error on UNIQUE.
3710 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3711 (ALPHA_REGSET_UNIQUE): Provide default.
3712 (supply_gregset): Use alpha_supply_int_regs.
3713 (fill_gregset): Use alpha_fill_int_regs.
3714 (supply_fpregset): Use alpha_supply_fp_regs.
3715 (fill_fpregset): Use alpha_fill_fp_regs.
3716 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3717 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3718 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3719 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3720 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3721 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3723 2003-06-02 Richard Henderson <rth@redhat.com>
3725 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3727 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3728 (alpha_store_return_value): Likewise.
3730 2003-06-02 David Carlton <carlton@math.stanford.edu>
3732 * block.c (contained_in): Add 'const' to arguments.
3733 (block_function): Ditto.
3734 * block.h: Update declarations for block_function and
3737 2003-06-02 David Carlton <carlton@math.stanford.edu>
3739 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3740 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3741 * p-valprint.c (pascal_val_print): Ditto.
3742 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3744 2003-06-02 Richard Henderson <rth@redhat.com>
3746 * alpha-tdep.c (alpha_push_dummy_call): Use
3747 builtin_type_ieee_double_little instead of builtin_type_double.
3749 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3750 sign-extension of 32-bit values.
3751 (alpha_store_return_value): Similarly.
3753 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3754 (alpha_extract_return_value): Likewise.
3755 (alpha_store_return_value): Likewise.
3757 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3758 (alpha_store_return_value): Error on IEEE Quad floats.
3760 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3761 (alpha_extract_struct_value_address): Likewise.
3762 (alpha_store_return_value): Likewise.
3763 (alpha_store_struct_return): Remove.
3764 (alpha_gdbarch_init): Update hook registration to match.
3766 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3767 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3768 macros where appropriate.
3769 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3770 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3772 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3773 for SP, GP; void_func_ptr for PC; non-language-specific types
3775 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3777 2003-06-02 Richard Henderson <rth@redhat.com>
3779 * top.h (lim_at_start): Declare.
3780 * main.c (captured_main): Set it.
3781 * top.c (lim_at_start): Define.
3782 (command_loop): Use it instead of &environ.
3783 * event-top.c (command_handler): Likewise.
3785 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3787 * mipsnbsd-tdep.c: Update copyright years.
3788 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3790 2003-06-01 Richard Henderson <rth@redhat.com>
3792 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3793 (alpha-linux-tdep.o): Update dependencies.
3794 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3795 * alpha-mdebug-tdep.c: Remove unneeded includes.
3797 2003-06-01 Richard Henderson <rth@redhat.com>
3799 * alpha-tdep.c (alpha_register_reggroup_p): New.
3800 (alpha_gdbarch_init): Register it.
3802 2003-06-02 Andrew Cagney <cagney@redhat.com>
3804 * dwarfread.c: Eliminate "register"
3805 (decode_die_type): Eliminate assignment within "if".
3806 (struct_type, decode_array_element_type): Ditto.
3807 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3808 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3809 (decode_modified_type, completedieinfo): Ditto.
3810 * block.c: Eliminate "register".
3811 (blockvector_for_pc_sect): Eliminate assignment within "if".
3812 * cp-support.h (struct symbol): Opaque declaration.
3813 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3815 2003-06-01 Richard Henderson <rth@redhat.com>
3817 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3818 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3820 2003-06-01 Adam Fedor <fedor@gnu.org>
3822 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3823 * gdbarch.[ch]: Regenerate.
3824 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3825 (hppa_gdbarch_init): Set it in the gdbarch vector.
3826 * i386-tdep.c (i386_fetch_pointer_argument): New
3827 (i386_gdbarch_init): Set it into gdbarch.
3828 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3829 (rs6000_gdbarch_init): Set it in gdbarch.
3830 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3831 (sparc_gdbarch_init): Set it in gdbarch.
3833 2003-06-01 Andrew Cagney <cagney@redhat.com>
3835 * defs.h (extract_address): Delete declaration.
3836 * findvar.c (extract_address): Delete function.
3837 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3838 extract_address with the inline equivalent,
3839 extract_unsigned_integer.
3840 (xstormy16_extract_struct_value_address): Ditto.
3841 (xstormy16_pointer_to_address): Ditto.
3842 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3843 * v850-tdep.c (v850_push_arguments): Ditto.
3844 (v850_extract_return_value): Ditto.
3845 (v850_extract_struct_value_address): Ditto.
3846 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3847 (sparcnbsd_get_longjmp_target_64): Ditto.
3848 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3849 (get_longjmp_target): Ditto.
3850 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3851 (sh64_extract_struct_value_address): Ditto.
3852 (sh_push_arguments): Ditto.
3853 (sh64_push_arguments): Ditto.
3854 * remote-vxsparc.c (vx_read_register): Ditto.
3855 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3856 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3857 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3858 * mipsv4-nat.c (get_longjmp_target): Ditto.
3859 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3860 * mips-nat.c (get_longjmp_target): Ditto.
3861 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3862 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3863 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3864 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3865 * irix5-nat.c (get_longjmp_target): Ditto.
3866 * irix4-nat.c (get_longjmp_target): Ditto.
3867 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3868 (ia64_push_arguments): Ditto.
3869 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3870 * h8300-tdep.c (h8300_push_arguments): Ditto.
3871 (h8300_store_return_value): Ditto.
3872 (h8300_extract_struct_value_address): Ditto.
3873 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3874 (frv_push_arguments): Ditto.
3875 * avr-tdep.c (avr_pointer_to_address): Ditto.
3876 (avr_push_arguments): Ditto.
3877 * arm-tdep.c (arm_push_dummy_call): Ditto.
3878 (arm_get_longjmp_target): Ditto.
3879 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3880 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3881 (alpha_get_longjmp_target): Ditto.
3883 * solib-irix.c (extract_mips_address): Inline extract_address,
3884 replacing it with extract_signed_integer.
3885 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3886 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3887 (first_link_map_member, open_symbol_file_object): Ditto.
3888 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3889 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3890 (LM_NEXT, LM_NAME): Ditto.
3892 2003-06-01 Richard Henderson <rth@redhat.com>
3894 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3895 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3896 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3897 (alpha_cannot_store_register): Likewise.
3898 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3899 * alpha-nat.c (supply_gregset): Likewise.
3900 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3902 2003-06-01 Andrew Cagney <cagney@redhat.com>
3904 * infcall.c (call_function_by_hand): Update comment on
3905 DEPRECATED_DUMMY_WRITE_SP.
3907 * mips-tdep.c (mips_gdbarch_init): Do not set
3908 deprecated_dummy_write_sp.
3909 (mips_eabi_push_dummy_call): Set the SP register.
3910 (mips_o64_push_dummy_call): Set the SP register.
3911 (mips_o32_push_dummy_call): Set the SP register.
3912 (mips_n32n64_push_dummy_call): Set the SP register.
3914 2003-06-01 Richard Henderson <rth@redhat.com>
3916 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3917 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3918 (supply_gregset): Likewise.
3919 * alpha-tdep.c (alpha_store_return_value): Likewise.
3920 (alpha_get_longjmp_target): Likewise.
3921 (alpha_register_name): Constify array.
3922 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3923 deprecated_register_size, deprecated_register_bytes,
3924 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3925 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3926 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3928 2003-06-01 Richard Henderson <rth@redhat.com>
3930 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3931 from arg_reg_buffer to regcache to avoid double conversion.
3933 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3935 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3937 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3938 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3940 2003-06-01 Richard Henderson <rth@redhat.com>
3942 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3943 (decode_frame_entry): Set it. Skip FDE augmentation.
3945 2003-06-01 Richard Henderson <rth@redhat.com>
3947 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3948 not overlapping PC_REGNUM.
3950 2003-06-01 Richard Henderson <rth@redhat.com>
3952 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3953 alpha_push_arguments. Don't dump argument register data to
3954 the target stack. Fix float and 128-bit long double semantics.
3955 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3956 (alpha_fix_call_dummy): Remove.
3957 (alpha_call_dummy_words): Remove.
3958 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3960 2003-06-01 Richard Henderson <rth@redhat.com>
3962 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3964 2003-06-01 Andrew Cagney <cagney@redhat.com>
3966 * mips-tdep.c (is_mips16_addr): New function.
3967 (make_mips16_addr, unmake_mips16_addr): New functions.
3968 (pc_is_mips16, mips_fetch_instruction): Use.
3969 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3970 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3971 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3972 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3974 * config/mips/tm-mips.h: Update copyright.
3975 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3976 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3977 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3978 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3979 (TM_PRINT_INSN_MACH): Delete.
3980 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3982 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3983 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3984 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3985 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3986 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3987 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3988 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3989 mips*-*-riscos* and mips*-*-sysv* onto mips.
3990 * config/mips/mips64.mt: New file.
3991 * config/mips/mips.mt: New file.
3992 * config/mips/littlemips.mt: Delete file.
3993 * config/mips/decstation.mt: Delete file.
3994 * config/mips/vr4300el.mt: Delete file.
3995 * config/mips/vr5000el.mt: Delete file.
3996 * config/mips/vr5000.mt: Delete file.
3997 * config/mips/vr4100.mt: Delete file.
3998 * config/mips/vr4xxxel.mt: Delete file.
3999 * config/mips/vr4300.mt: Delete file.
4000 * config/mips/vr4xxx.mt: Delete file.
4001 * config/mips/bigmips.mt: Delete file.
4002 * config/mips/bigmips64.mt: Delete file.
4003 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4004 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4005 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4006 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4007 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4009 * config/mips/tm-irix3.h: Ditto.
4010 * config/mips/tm-mipsv4.h: Ditto.
4011 * config/mips/tm-embed.h: Ditto.
4012 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4014 * config/mips/tm-vr5000el.h: Delete file.
4015 * config/mips/tm-tx39l.h: Delete file.
4016 * config/mips/tm-vr4300el.h: Delete file.
4017 * config/mips/tm-vr4xxxel.h: Delete file.
4018 * config/mips/tm-vr4300.h: Delete file.
4019 * config/mips/tm-vr4100.h: Delete file.
4020 * config/mips/tm-vr4xxx.h: Delete file.
4021 * config/mips/tm-vr5000.h: Delete file.
4022 * config/mips/tm-embedl64.h: Delete file.
4023 * config/mips/tm-embedl.h: Delete file.
4024 * config/mips/tm-embed64.h: Delete file.
4025 * config/mips/tm-bigmips64.h: Delete file.
4026 * config/mips/tm-bigmips.h: Delete file.
4028 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4031 * shnbsd-nat.c: Include "sh-tdep.h".
4033 From Richard Henderson <rth@redhat.com>:
4034 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4036 2003-05-31 Andrew Cagney <cagney@redhat.com>
4038 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4039 forward declaration.
4040 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4041 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4042 (mips_find_saved_regs): Use set_reg_offset.
4043 (mips_frame_init_saved_regs): Delete function.
4044 (mips_pop_frame): Call mips_find_saved_regs instead of
4045 DEPRECATED_FRAME_INIT_SAVED_REGS.
4047 2003-05-31 Andrew Cagney <cagney@redhat.com>
4049 * mips-tdep.c (mips_gdbarch_init): Do not set
4050 deprecated_max_register_raw_size, register_virtual_size, and
4051 deprecated_max_register_virtual_size.
4053 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4055 * i386-tdep.c: Include "dwarf2-frame.h".
4056 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4057 * Makefile.in (i386-tdep.o): Update dependencies.
4059 * dwarf2-frame.c, dwarf2-frame.h: New files.
4060 * Makefile.in (SFILES): Add dwarf2-frame.c.
4061 (dwarf2_frame_h): Define.
4062 (COMMON_OBS): Add dwarf2-frame.o.
4063 (dwarf2-frame.o): Add dependencies.
4065 2003-05-31 Andreas Jaeger <aj@suse.de>
4067 * x86-64-linux-nat.c: Fix comment.
4069 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4071 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4074 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4075 have a sigcontext_addr handler.
4076 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4077 sigcontext_addr handler.
4079 2003-05-31 Andrew Cagney <cagney@redhat.com>
4081 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4082 (print_fp_register_row): Replace do_fp_register_row.
4083 (mips_print_fp_register): Add "file" and "frame" parameters.
4084 (mips_print_register): Add "file" and "frame" parameters.
4085 (mips_print_registers_info): Replace mips_do_registers_info.
4086 (mips_gdbarch_init): Set print_registers_info instead of
4087 deprecated_do_registers_info.
4088 (mips_read_fp_register_single): Add "frame" parameter.
4089 (mips_read_fp_register_double): Add "frame" parameter.
4091 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4093 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4094 Fixes a bug where GDB would print the wrong register names for
4095 targets without SSE.
4097 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4098 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4101 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4102 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4103 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4106 From Michal Ludvig <mludvig@suse.cz>:
4107 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4109 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4110 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4111 I386_ST0_REGNUM): Move here from...
4112 * i386-tdep.c: ... here.
4113 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4114 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4115 registers if possible.
4116 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4117 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4119 (i386bsd_sc_reg_offset): New variable.
4120 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4121 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4123 (i386fbsd_sc_reg_offset): New variable.
4124 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4126 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4128 (i386fbsd4_sc_reg_offset): New variable.
4129 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4130 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4132 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4133 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4134 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4136 (i386nbsd_sc_reg_offset): New variable.
4137 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4138 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4140 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4142 (i386obsd_sc_reg_offset): New variable.
4143 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4144 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4146 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4147 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4148 for frame pointer offset in `struct sigcontext'.
4150 2003-05-31 Andrew Cagney <cagney@redhat.com>
4152 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4153 architecture methods call_dummy_words, sizeof_call_dummy_words,
4154 push_return_address, store_struct_return, and fix_call_dummy. Set
4155 push_dummy_call instead of deprecated_push_arguments.
4156 (mips_store_struct_return): Delete function.
4157 (mips_fix_call_dummy): Delete function.
4158 (mips_push_return_address): Delete function.
4159 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4160 RA_REGNUM and T9_REGNUM.
4161 (mips_n32n64_push_dummy_call): Ditto for
4162 mips_n32n64_push_arguments.
4163 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4164 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4166 2003-05-31 Andrew Cagney <cagney@redhat.com>
4168 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4169 "dummy_addr" to "bp_addr".
4170 * infcall.c (call_function_by_hand): Pass "funaddr" to
4171 gdbarch_push_dummy_call.
4172 * gdbarch.h, gdbarch.c: Re-generate.
4173 * i386-tdep.c (i386_push_dummy_call): Update.
4174 * arm-tdep.c (arm_push_dummy_call): Update.
4175 * d10v-tdep.c (d10v_push_dummy_call): Update.
4177 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4179 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4180 variable declarations.
4181 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4182 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4183 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4184 x86_64_init_frame_pc, x86_64_init_frame_pc,
4185 x86_64_function_has_prologue): Remove prototypes.
4186 (X86_64_NUM_GREGS): New define.
4187 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4188 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4189 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4190 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4191 XMM1_REGNUM): Remove defines.
4192 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4193 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4194 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4195 X86_64_XMM1_REGNUM): New defines.
4196 (struct x86_64_register_info): Renamed from `struct
4197 register_info'. Remove `size' member.
4198 (x86_64_register_info_table): Remove variable.
4199 (x86_64_register_info): New variable.
4200 (X86_64_NUM_REGS): New define.
4201 (X86_64_NUM_GREGS): Remove define.
4202 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4203 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4205 (x86_54_dwarf2_reg_to_regnum): Remove function.
4206 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4207 (x86_64_dwarf_reg_to_regnum): New function.
4208 (x86_64_register_name): Rewrite.
4209 (x86_64_register_raw_size): Remove function.
4210 (x86_64_register_byte_table): Remove variable.
4211 (x86_64_register_byte): Remove function.
4212 (x86_64_register_virtual_type): Remove function.
4213 (x86_64_register_type): New function.
4214 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4215 x86_64_register_convert_to_raw): Remove functions.
4216 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4217 (x86_64_use_struct_convention): Make static. Adjust for renamed
4219 (x86_64_frame_init_saved_regs): Remove function.
4220 (x86_64_push_arguments): Make static. Change to accept a regcache
4222 (x86_64_store_return_value, x86_64_extract_return_value): Make
4223 static. Rewrite based on i386 counterparts.
4224 (x86_64_push_dummy_call): New function.
4225 (X86_64_NUM_SAVED_REGS): New define.
4226 (x86_64_register_number): Remove function.
4227 (x86_64_store_struct_return): Remove function.
4228 (x86_64_frameless_function_invocation,
4229 x86_64_function_has_prologue): Remove functions.
4230 (PROLOG_BUFSIZE): Remove define.
4231 (struct x86_64_frame_cache): New structure.
4232 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4233 x86_64_frame_cache, x86_64_frame_this_id,
4234 x86_64_frame_prev_register, x86_64_frame_p,
4235 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4236 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4238 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4240 (x86_64_skip_prologue): Rewrite in terms of
4241 x86_64_analyze_prologue.
4242 (x86_64_frame_base_address): New function.
4243 (x86_64_frame_base): New variable.
4244 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4245 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4246 set deprecated_fp_regnum, deprecated_register_size,
4247 deprecated_register_bytes, register_raw_size, register_byte,
4248 register_virtual_type, register_convertiable,
4249 register_convert_to_virtual, convert_to_raw,
4250 deprecated_get_saved_register, deprecated_target_read_fp,
4251 deprecated_push_arguments, deprecated_push_return_address,
4252 deprecated_pop_frame, deprecated_store_struct_return,
4253 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4254 frameless_function_invocation, deprecated_frame_saved_pc,
4255 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4256 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4257 deprecated_init_frame_pc and virtual_frame_pointer. Call
4258 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4259 and x86_64_frame_p. Call frame_base_set_default to register
4261 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4262 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4263 (_initialize_x86_64_tdep): Remove function.
4264 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4265 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4266 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4268 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4269 (x86_64_linux_sigcontext_addr): Rewrite.
4270 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4271 x86_64_linux_frame_saved_pc): Remove functions.
4272 (x86_64_linux_pc_in_sigtramp): Renamed from
4273 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4275 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4277 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4278 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4279 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4280 (x86_64_regmap): Rename to regmap.
4281 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4283 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4285 (x86_64_fxsave_offset): Remove function.
4286 (supply_fpregset): Simply call x86_64_supply_fxsave.
4287 (fill_fpregset): Simply call x86_64_fill_fxsave.
4288 (fetch_inferior_registers, store_inferior_registers): Avoid
4289 asignment in if-statement.
4290 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4291 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4292 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4293 (fetch_core_registers): Remove function.
4294 (linux_elf_core_fns): Remove.
4295 (offsetoff): Don't define.
4296 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4297 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4298 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4300 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4301 protection against multiple includes instead of NM_X86_64_h. Add
4302 various comments. Include "config/nm-linux.h". Don't include
4304 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4305 GET_THREAD_SIGNALS): Remove defines.
4306 (x86_64_register_u_addr, kernel_u_size,
4307 lin_thread_get_thread_signals): Remove prototypes.
4308 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4309 [HAVE_LINK_H]: Don't include "solib.h".
4310 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4311 * config/i386/tm-x86-64linux.h: Fix comments.
4312 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4313 x86-64-tdep.o): Update dependencies.
4315 2003-05-30 Andrew Cagney <cagney@redhat.com>
4317 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4318 Change parameter type to a "struct regcache *".
4320 * gdbarch.sh: Regardless of the multi-arch level, always define
4321 the macro when not already defined.
4322 * gdbarch.h, gdbarch.c: Re-generate.
4324 2003-05-30 Richard Henderson <rth@redhat.com>
4326 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4327 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4328 (alpha_mdebug_frame_this_id): Likewise.
4329 (alpha_mdebug_frame_prev_register): Likewise.
4330 (alpha_mdebug_frame_base_address): Likewise.
4331 (alpha_mdebug_frame_locals_address): Likewise.
4332 (alpha_mdebug_frame_args_address): Likewise.
4333 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4334 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4335 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4337 (alpha_heuristic_frame_this_id): Make static.
4338 (alpha_heuristic_frame_prev_register): Likewise.
4339 (alpha_heuristic_frame_base_address): Likewise.
4340 * alpha-tdep.h: Update.
4342 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4344 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4345 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4347 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4348 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4349 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4350 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4351 I386_ST0_REGNUM): New defines.
4352 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4353 codestream_get): Remove define.
4354 (codestream_next_addr, condestream_addr, condestream_buf,
4355 codestream_off, codestream_cnt): Remove variables.
4356 (codestream_fill, codestream_seek, codestream_read): Remove
4358 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4360 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4361 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4362 i386_frame_saved_pc, i386_saved_pc_after_call,
4363 i386_frame_num_args, i386_frame_init_saved_regs,
4364 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4365 i386_push_arguments): Remove functions.
4366 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4367 functionality. Use i386_analyze_prologue instead of
4368 i386_get_frame_setup.
4369 (I386_NUM_SAVED_REGS): New define.
4370 (struct i386_frame_cache): New structure.
4371 (i386_alloc_frame_cache, i386_analyze_struct_return,
4372 i386_skip_probe, i386_analyze_frame_setup,
4373 i386_analyze_register_saves, i386_analyze_prologue,
4374 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4375 i386_frame_prev_register, i386_sigtramp_frame_cache,
4376 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4377 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4378 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4380 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4382 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4383 I386_EAX_REGNUM and I386_EDX_REGNUM.
4384 (i386_extract_return_value, i386_store_return_value): Use
4385 I386_ST0_REGNUM where appropriate.
4386 (i386_extract_struct_value_address): Rewrite to use extract_address.
4387 (i386_svr4_pc_in_sigtramp): Add comment.
4388 (i386_svr4_sigcontext_addr): Rewrite.
4389 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4391 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4392 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4393 of new defines. Set push_dummy_call, don't set
4394 deprecated_push_arguments, deprecated_push_return_address,
4395 deprecated_pop_frame. Don't set parm_boundary. Don't set
4396 deprecated_frame_chain, deprecated_frame_saved_pc,
4397 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4398 save_dummy_frame_tos, unwind_pc. Call
4399 frame_unwind_append_predicate and frame_base_set_default. Don't
4400 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4401 Don't set frameless_function_invocation. Don't set
4402 deprecated_register_bytes, deprecated_register_size,
4403 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4404 * i386-linux-tdep.c: Fix formatting in some comments.
4405 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4406 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4407 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4408 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4409 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4410 redundant parentheses.
4411 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4412 (i386_linux_sigcontext_addr): Use it. Rewrite.
4413 (find_minsym_and_objfile): Change name of second argument.
4414 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4415 changed. Use frame_pc_unwind instead of
4416 DEPRECATED_SAVED_PC_AFTER_CALL.
4417 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4418 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4419 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4421 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4423 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4424 (_initialize_i386_cygwin_tdep): New prototype.
4425 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4426 deprecated_frame_chain_valid.
4427 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4428 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4429 Rely on the SVR4 defaults.
4430 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4431 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4433 2003-05-30 Andrew Cagney <cagney@redhat.com>
4435 * infcall.c (call_function_by_hand): Always call
4436 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4438 2003-05-30 Richard Henderson <rth@redhat.com>
4440 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4443 2003-05-29 Jim Blandy <jimb@redhat.com>
4445 Use gdbarch methods for solib stuff on PowerPC Linux.
4446 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4447 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4449 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4450 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4451 giving the same effect as the #definitions above.
4453 2003-05-29 Adam Fedor <fedor@gnu.org>
4455 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4456 (find_implementation_from_class): Replace it with the standard
4457 case i.e. do nothing.
4459 2003-05-29 Richard Henderson <rth@redhat.com>
4461 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4462 (alpha_linux_sigtramp_offset): Use it. Make static.
4463 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4464 update for new frame model.
4465 * alpha-mdebug-tdep.c: New file.
4466 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4467 (alpha_osf1_init_abi): Install it.
4468 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4469 (linked_proc_desc_table): Remove.
4470 (alpha_frame_past_sigtramp_frame): Remove.
4471 (alpha_dynamic_sigtramp_offset): Remove.
4472 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4473 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4474 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4475 (push_sigtramp_desc): Remove.
4476 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4477 (alpha_cannot_store_register): Likewise.
4478 (alpha_sigcontext_addr): Remove.
4479 (alpha_find_saved_regs): Remove.
4480 (alpha_frame_init_saved_regs): Remove.
4481 (alpha_init_frame_pc_first): Remove.
4482 (read_next_frame_reg): Remove.
4483 (alpha_frame_saved_pc): Remove.
4484 (alpha_saved_pc_after_call): Remove.
4485 (temp_proc_desc, temp_saved_regs): Remove.
4486 (alpha_about_to_return): Remove.
4487 (cached_proc_desc): Remove.
4488 (alpha_frame_chain): Remove.
4489 (alpha_print_extra_frame_info): Remove.
4490 (alpha_init_extra_frame_info): Remove.
4491 (alpha_frame_locals_address): Remove.
4492 (alpha_frame_args_address): Remove.
4493 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4494 (alpha_push_dummy_frame): Remove.
4495 (alpha_pop_frame): Remove.
4496 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4497 (alpha_read_insn): New.
4498 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4499 for different insn encodings.
4500 (alpha_in_lenient_prologue): Remove.
4501 (struct alpha_sigtramp_unwind_cache): New.
4502 (alpha_sigtramp_frame_unwind_cache): New.
4503 (alpha_sigtramp_register_address): New.
4504 (alpha_sigtramp_frame_this_id): New.
4505 (alpha_sigtramp_frame_prev_register): New.
4506 (alpha_sigtramp_frame_unwind): New.
4507 (alpha_sigtramp_frame_p): New.
4508 (struct alpha_heuristic_unwind_cache): New.
4509 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4510 don't count nop insns that occur between functions.
4511 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4512 heuristic_proc_desc, but without the mdebug wrapping.
4513 (alpha_heuristic_frame_this_id): New.
4514 (alpha_heuristic_frame_prev_register): New.
4515 (alpha_heuristic_frame_unwind): New.
4516 (alpha_heuristic_frame_p): New.
4517 (alpha_heuristic_frame_base_address): New.
4518 (alpha_heuristic_frame_base): New.
4519 (alpha_unwind_dummy_id): New.
4520 (alpha_unwind_pc): New.
4521 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4522 frame related deprecated initializations; install replacements.
4523 (alpha_dump_tdep): Remove.
4524 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4525 (alpha_read_insn, alpha_after_prologue,
4526 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4527 alpha_heuristic_frame_prev_register,
4528 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4529 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4530 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4531 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4533 2003-05-29 Andrew Cagney <cagney@redhat.com>
4535 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4536 dependant on the availability of ASSERT_FUNCTION.
4537 (ASSERT_FUNCTION): Do not define when there is no function name.
4539 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4541 From Jimi X <jimix@watson.ibm.com>:
4542 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4544 2003-05-28 Jim Blandy <jimb@redhat.com>
4546 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4547 argument to ptrace to int; the system headers should give it the
4548 right type, and pointers don't fit in ints on powerpc64-*-*.
4550 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4552 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4555 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4557 * stabsread.c (dbx_lookup_type): Make static.
4559 (add_undefined_type): Ditto.
4560 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4563 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4565 * hpread.c (hpread_has_name): Make static.
4566 (hpread_psymtab_to_symtab): Ditto.
4567 (file_exists): Ditto.
4568 (hpread_call_pxdb): Ditto.
4569 (hpread_pxdb_needed): Ditto.
4570 (hpread_quick_traverse): Ditto.
4571 (hpread_get_header): Ditto.
4572 (hpread_get_lntt): Ditto.
4573 (hpread_get_slt): Ditto.
4576 2003-05-25 Andreas Schwab <schwab@suse.de>
4578 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4579 stack_align and deprecated_extra_stack_alignment_needed.
4580 (m68k_stack_align): Delete.
4582 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4583 (m68k_register_virtual_size): Likewise.
4584 (altos_skip_prologue): Remove obsolete function.
4585 (isi_frame_num_args): Likewise.
4586 (news_frame_num_args): Likewise.
4587 (m68k_fix_call_dummy): Make static.
4588 (m68k_push_dummy_frame): Likewise.
4589 (m68k_pop_frame): Likewise.
4590 (m68k_skip_prologue): Likewise.
4591 (m68k_frame_init_saved_regs): Likewise.
4592 (m68k_saved_pc_after_call): Likewise.
4593 (m68k_get_longjmp_target): Make multi-arch.
4594 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4595 structure. Register m68k_get_longjmp_target if enabled.
4596 * m68k-tdep.h (struct gdbarch_tdep): Define.
4597 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4599 * Makefile.in (config.status): Also depend on configure.tgt
4601 (m68klinux-tdep.o): Update dependencies.
4602 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4603 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4604 (M68K_LINUX_JB_PC): Define.
4605 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4606 and take additional parameter.
4607 (m68k_linux_sigtramp_saved_pc): Update.
4608 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4609 m68k_linux_pc_in_sigtramp, in_plt_section,
4610 find_solib_trampoline_target.
4611 * config/m68k/tm-linux.h: Don't include any tm headers.
4612 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4613 (JB_ELEMENT_SIZE): Likewise.
4615 (GET_LONGJMP_TARGET): Likewise.
4616 (IN_SIGTRAMP): Likewise.
4617 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4619 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4621 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4622 (sparc32_push_arguments): Re-implement by calling
4623 sparc32_do_push_arguments.
4625 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4627 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4628 SPARC_O1_REGNUM): New defines.
4629 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4630 (sparc32_store_return_value): New function.
4631 (sparc_extract_struct_value_address): Rewrite to operate on a
4633 (sparc_gdbarch_init): Don't set
4634 deprecated_extract_struct_value_address. Set
4635 extract_struct_value_address instead. Don't set
4636 deprecated_extract_return_value and deprecated_store_return_value
4637 for 32-bit targets. Set extract_return_value and
4638 store_return_value instead.
4639 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4640 DEPRECTAED_EXTRACT_RETURN_VALUE,
4641 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4642 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4643 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4644 (sparc_store_return_value): Remove prototype.
4645 (sparc32_store_return_value): New prototype.
4646 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4649 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4651 * sparcnbsd-tdep.c: Include "gdb_string.h".
4653 2003-05-23 Andrew Cagney <cagney@redhat.com>
4655 * p-valprint.c (pascal_val_print): Replace extract_address with
4656 the inline equivalent extract_unsigned_integer.
4657 * jv-valprint.c (java_value_print): Ditto.
4658 * ada-valprint.c (ada_val_print_1): Ditto.
4659 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4661 2003-05-23 Theodore A. Roth <troth@openavr.org>
4663 * blockframe.c (frameless_look_for_prologue): Remove unused
4664 after_prologue variable.
4666 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4668 * blockframe.c (get_pc_function_start): Rewrite to avoid
4669 asignments in if-statements.
4671 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4673 Committed by Elena Zannoni <ezannoni@redhat.com>.
4674 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4675 files, don't relocate absolute symbols (and do use mst_abs).
4677 2003-05-23 Andrew Cagney <cagney@redhat.com>
4679 * objc-lang.c: Include "gdb_assert.h".
4680 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4681 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4682 (gdb_check, gdb_check_fatal): Delete functions.
4683 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4685 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4686 * Makefile.in (objc-lang.o): Update dependencies.
4688 2003-05-22 Ian Lance Taylor <ian@airs.com>
4690 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4691 with fprintf_filtered, not fprintf_unfiltered.
4693 2003-05-22 Andrew Cagney <cagney@redhat.com>
4695 * stack.c (frame_info): Inline extract_address, replacing it with
4696 extract_unsigned_integer.
4697 * findvar.c (unsigned_pointer_to_address): Ditto.
4698 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4699 * dwarf2expr.c (dwarf2_read_address): Ditto.
4700 * frame.c (frame_pc_unwind): Update comment.
4701 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4703 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4705 * infptrace.c (detach): Call print_sys_errmsg rather than
4706 perror_with_name to issue warning message when errno is non-zero
4707 after calling ptrace detach.
4709 2003-05-21 J. Brobecker <brobecker@gnat.com>
4711 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4712 macro definitions from here...
4713 * hppa-tdep.c: ...to there.
4715 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4717 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4718 register_ptrace_addr(). Fix all callers.
4720 2003-05-21 Andreas Schwab <schwab@suse.de>
4722 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4724 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4726 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4727 (_initialize_m68k_linux_tdep): New function.
4728 (m68k_linux_frame_saved_pc): Make static.
4729 (m68k_linux_extract_return_value): Likewise.
4730 (m68k_linux_store_return_value): Likewise.
4731 (m68k_linux_extract_struct_value_address): Likewise.
4732 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4734 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4735 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4736 (DEPRECATED_FRAME_SAVED_PC): Remove.
4738 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4740 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4741 regset numbering rather than our own.
4743 2003-05-19 David Carlton <carlton@bactrian.org>
4745 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4747 2003-05-19 David Carlton <carlton@bactrian.org>
4749 Partial fix for PR c++/827.
4750 * cp-support.h: Include symtab.h.
4751 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4752 * cp-namespace.c: Update contributors.
4753 (cp_lookup_symbol_nonlocal): New.
4754 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4755 (lookup_symbol_file): Ditto.
4756 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4757 * block.h: Declare block_scope, block_using, block_global_block.
4758 * block.c (block_scope): New.
4759 (block_using, block_global_block): Ditto.
4760 * Makefile.in (cp_support_h): Depend on symtab_h.
4761 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4763 2003-05-19 David Carlton <carlton@bactrian.org>
4765 * language.h (struct language_defn): Add 'la_value_of_this'
4766 and 'la_lookup_symbol_nonlocal' members.
4767 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4768 lookup_symbol_static, lookup_symbol_global,
4769 lookup_symbol_aux_block.
4770 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4771 if we should search fields of this and how to do static/global
4773 (lookup_symbol_aux_block): Make extern.
4774 (basic_lookup_symbol_nonlocal): New.
4775 (lookup_symbol_static, lookup_symbol_global): Ditto.
4776 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4777 'la_lookup_symbol_nonlocal' members.
4778 * c-lang.c (c_language_defn, cplus_language_defn)
4779 (asm_language_defn, minimal_language_defn): Ditto.
4780 * jv-lang.c (java_language_defn): Ditto.
4781 * language.c (unknown_language_defn, auto_language_defn)
4782 (local_language_defn): Ditto.
4783 * m2-lang.c (m2_language_defn): Ditto.
4784 * objc-lang.c (objc_language_defn): Ditto.
4785 * scm-lang.c (scm_language_defn): Ditto.
4786 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4787 * p-lang.c (pascal_language_defn): Ditto for both.
4788 * Makefile.in (f-lang.o): Depend on value_h.
4791 2003-05-19 David Carlton <carlton@bactrian.org>
4793 * block.h: Declare block_static_block.
4794 * block.c (block_static_block): New.
4795 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4796 lookup_symbol_aux_local, calling block_static_block instead.
4797 (lookup_symbol_aux_local): Delete 'static_block' argument.
4799 2003-05-19 David Carlton <carlton@bactrian.org>
4801 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4803 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4805 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4806 register numbers mapping.
4808 2003-05-18 Adam Fedor <fedor@gnu.org>
4810 * symtab.c (completion_list_objc_symbol): New function.
4811 (make_symbol_completion_list): Use it to add ObjC symbols
4812 when looking though the list.
4813 (language_search_unquoted_string): New function.
4814 (make_file_symbol_completion_list): Use it.
4816 2003-05-18 Andreas Schwab <schwab@suse.de>
4818 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4820 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4821 as m68k_linux_extract_return_value.
4822 (DEPRECATED_STORE_RETURN_VALUE): Define as
4823 m68k_linux_store_return_value.
4824 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4825 m68k_linux_extract_struct_value_address.
4826 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4827 get_next_frame, get_frame_base, get_frame_pc.
4828 (m68k_linux_frame_saved_pc): Use get_frame_base.
4829 (m68k_linux_extract_return_value): New function.
4830 (m68k_linux_store_return_value): New function.
4831 (m68k_linux_extract_struct_value_address): New function.
4832 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4834 * c-exp.y (typebase): Remove duplicate occurence of
4835 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4836 of lookup_signed_typename.
4838 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4840 * dwarf2loc.c (find_location_expression): Change type of second
4841 argument to `size_t *'.
4842 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4845 2003-05-18 David Carlton <carlton@bactrian.org>
4847 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4848 'linkage_name'. Add comment.
4849 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4851 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4852 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4853 (lookup_block_symbol): Ditto.
4855 2003-05-16 Andrew Cagney <cagney@redhat.com>
4857 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4858 * gdbarch.h, gdbarch.c: Re-generate.
4859 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4860 * TODO (REGISTER_BYTES): Delete reference.
4861 * alpha-tdep.c (alpha_gdbarch_init): Update.
4862 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4863 * x86-64-tdep.c (x86_64_init_abi): Update.
4864 * vax-tdep.c (vax_gdbarch_init): Update.
4865 * v850-tdep.c (v850_gdbarch_init): Update.
4866 * sparc-tdep.c (sparc_gdbarch_init): Update.
4867 * sh-tdep.c (sh_gdbarch_init): Update.
4868 * s390-tdep.c (s390_gdbarch_init): Update.
4869 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4870 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4871 (ns32k_gdbarch_init_32382): Update.
4872 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4873 * mcore-tdep.c (mcore_gdbarch_init): Update.
4874 * m68k-tdep.c (m68k_gdbarch_init): Update.
4875 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4876 * ia64-tdep.c (ia64_gdbarch_init): Update.
4877 * i386-tdep.c (i386_gdbarch_init): Update.
4878 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4879 * hppa-tdep.c (hppa_gdbarch_init): Update.
4880 * h8300-tdep.c (h8300_gdbarch_init): Update.
4881 * frv-tdep.c (frv_gdbarch_init): Update.
4882 * cris-tdep.c (cris_gdbarch_init): Update.
4883 * avr-tdep.c (avr_gdbarch_init): Update.
4884 * arm-tdep.c (arm_gdbarch_init): Update.
4885 * sparc-tdep.c (sparc_pop_frame): Update.
4886 * rs6000-tdep.c (rs6000_pop_frame): Update.
4887 * remote.c (init_remote_state): Update.
4888 (remote_prepare_to_store): Update.
4889 * remote-vx.c (vx_prepare_to_store): Update.
4890 * remote-sds.c (sds_fetch_registers): Update.
4891 (sds_prepare_to_store): Update.
4892 * remote-array.c: Update.
4893 * regcache.c (init_legacy_regcache_descr): Update.
4894 (init_regcache_descr): Update.
4895 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4896 (mips_o64_extract_return_value): Update.
4897 * irix5-nat.c (fetch_core_registers): Update.
4898 * irix4-nat.c (fetch_core_registers): Update.
4899 * i386-tdep.h: Update.
4900 * hppa-tdep.c (pa_do_registers_info): Update.
4901 (pa_do_strcat_registers_info): Update.
4902 * cris-tdep.c (cris_register_bytes_ok): Update.
4903 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4904 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4905 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4906 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4907 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4908 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4909 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4910 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4911 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4912 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4913 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4914 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4915 (REGISTER_BYTES_OK): Update.
4916 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4917 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4919 2003-05-16 Ian Lance Taylor <ian@airs.com>
4921 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4922 (vax_print_insn, print_insn_arg): Remove static functions.
4923 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4924 print_insn_vax from opcodes library.
4925 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4927 2003-05-15 Andrew Cagney <cagney@redhat.com>
4929 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4930 * target.h (memory_breakpoint_from_pc): Delete declaration.
4931 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4932 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4933 * monitor.c (monitor_insert_breakpoint): Use
4934 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4935 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4936 * gdbarch.h, gdbarch.c: Re-generate.
4937 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4938 (sparc_gdbarch_init): Set breakpoint_from_pc to
4939 sparc_breakpoint_from_pc.
4940 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4941 (BREAKPOINT_FROM_PC): Define.
4942 (sparc_breakpoint_from_pc): Declare.
4943 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4944 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4945 (BREAKPOINT_FROM_PC): Define.
4946 (BREAKPOINT): Delete macro.
4947 * target.h: Update comment.
4948 * s390-tdep.c (s390_gdbarch_init): Update comments.
4949 * remote.c: Update comments.
4950 * remote-mips.c: Update comments.
4951 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4952 * mem-break.c: Update comment.
4953 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4954 (ia64_memory_insert_breakpoint): Update.
4955 * config/sparc/tm-sparc.h: Update comment.
4956 * config/pa/tm-hppa64.h: Update comment.
4957 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4958 (rs6000_breakpoint_from_pc): Update.
4959 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4960 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4961 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4962 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4963 (mips_breakpoint_from_pc): Update.
4964 (mips_dump_tdep): Update.
4966 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4967 * minsyms.c (lookup_minimal_symbol): Inline
4968 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4970 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4971 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4972 * p-lang.c (pascal_printstr): Ditto.
4973 * objc-lang.c (objc_printstr): Ditto.
4974 * m2-lang.c (m2_printstr): Ditto.
4975 * jv-valprint.c (java_print_value_fields): Ditto.
4976 * f-lang.c (f_printstr): Ditto.
4977 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4978 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4979 for repeat_count_threshold.
4980 * Makefile.in (cp-valprint.o): Update dependencies.
4982 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4984 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4985 (examine_prologue): Support looking through leaf functions, knowing
4986 they start with mov r2,r12. Support skipping over indirect stores
4987 of the input registers. Upon hitting a non-nop branch instruction
4988 or predicated instruction, bail out by setting lim_pc to the current
4989 pc value in the loop. At the end, if the lim_pc value is still
4990 beyond our calculated value and we have trust_limit set,
4991 use the lim_pc value.
4993 2003-05-15 Andrew Cagney <cagney@redhat.com>
4995 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4996 generic_find_dummy_frame.
4997 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4998 (deprecated_generic_find_dummy_frame): Update.
4999 (deprecated_read_register_dummy): Update.
5000 * frame.c (deprecated_generic_get_saved_register): Update.
5002 2003-05-15 Theodore A. Roth <troth@openavr.org>
5004 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5005 (avr_gdbarch_init): Set breakpoint_from_pc method.
5007 2003-05-15 Andrew Cagney <cagney@redhat.com>
5009 * regcache.c (build_regcache): Set deprecated_register_valid
5011 (deprecated_grub_regcache_for_register_valid): Delete function.
5012 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5015 2003-05-15 David Carlton <carlton@bactrian.org>
5017 Committed by Elena Zannoni <ezannoni@redhat.com>
5018 * symtab.c (lookup_symbol_aux): Delete calls to
5019 lookup_symbol_aux_minsyms.
5020 (lookup_symbol_aux_minsyms): Comment out function and
5021 prototype. Delete lookup by mangled name.
5023 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5025 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5026 correctly indicate an empty stack and ``stack_allocated'' to the
5027 indicate the number of elements initially allocated.
5028 (dwarf_expr_grow_stack): Simplify method for computing new
5029 stack size. Don't loop infinitely if ``stack_len'' is zero.
5030 (execute_stack_op): Move ``ctx->in_reg'' initialization
5031 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5032 be used in conjuction with DW_OP_piece. Revise error message
5035 2003-05-14 Theodore A. Roth <troth@openavr.org>
5037 * MAINTAINERS: Update my email address.
5038 * avr-tdep.c: Ditto.
5040 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5042 * symtab.h (enum domain_enum): Rename from namespace_enum.
5043 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5044 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5045 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5046 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5047 TYPES_NAMESPACE, METHODS_NAMESPACE.
5048 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5049 (struct symbol, struct partial_symbol): Rename field
5050 'namespace_enum namespace' to 'domain_enum domain'.
5051 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5052 Delete old define kludge for namespace.
5054 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5055 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5056 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5057 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5058 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5059 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5060 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5061 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5062 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5063 occurrences of the above.
5065 2003-05-14 Ian Lance Taylor <ian@airs.com>
5067 * Makefile.in (install-only): Use $(SHELL) when running
5070 2003-05-13 Ian Lance Taylor <ian@airs.com>
5072 * MAINTAINERS (write after approval): Add myself.
5074 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5075 second and third arguments.
5076 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5077 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5079 2003-05-13 Andrew Cagney <cagney@redhat.com>
5081 * defs.h (store_address): Delete declaration.
5082 findvar.c (store_address): Delete function.
5083 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5084 store_unsigned_integer.
5085 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5086 * v850-tdep.c (v850_push_arguments): Ditto.
5087 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5088 * sh-tdep.c (sh64_get_saved_register): Ditto.
5089 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5090 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5091 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5092 (mips_get_saved_register): Ditto.
5093 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5094 (find_func_descr, ia64_push_arguments): Ditto.
5095 * i386-tdep.c (i386_push_arguments): Ditto.
5096 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5097 * frv-tdep.c (frv_push_arguments): Ditto.
5098 * frame.c (legacy_saved_regs_prev_register): Ditto.
5099 (deprecated_generic_get_saved_register): Ditto.
5100 * findvar.c (unsigned_address_to_pointer): Ditto.
5101 * dwarf2read.c (dwarf2_const_value): Ditto.
5102 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5103 * alpha-tdep.c (alpha_push_arguments): Ditto.
5105 2003-05-12 J. Brobecker <brobecker@gnat.com>
5107 * NEWS: Mention that the hppa-hpux port has been partially
5108 multiarched (32bit ABIT only, so far).
5110 2003-05-11 Andrew Cagney <cagney@redhat.com>
5112 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5113 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5114 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5115 sim/testsuite/sim/arm/misaligned2.ms, and
5116 sim/testsuite/sim/arm/misaligned3.ms.
5117 * disasm.h (struct ui_file): Add opaque struct declaration.
5118 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5119 * frame.h (struct ui_file): Ditto.
5121 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5123 * value.h: Pretty print.
5125 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5127 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5129 2003-05-08 Andrew Cagney <cagney@redhat.com>
5131 * regcache.h (max_register_size): Delete declaration.
5132 * regcache.c (max_register_size): Delete function.
5133 (struct regcache_descr): Delete field "max_register_size".
5134 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5135 registers fit in MAX_REGISTER_SIZE.
5136 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5137 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5138 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5139 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5140 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5141 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5142 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5143 * dve3900-rom.c, hppa-tdep.c: Ditto.
5145 2003-05-08 David Carlton <carlton@math.stanford.edu>
5147 * valops.c (push_word): Fix typo.
5149 2003-05-08 Andrew Cagney <cagney@redhat.com>
5151 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5152 * gdbarch.h: Re-generate.
5153 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5154 (legacy_max_register_raw_size): Delete declaration.
5155 * regcache.c (legacy_max_register_raw_size): Delete function.
5156 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5157 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5158 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5159 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5160 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5161 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5162 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5163 * findvar.c, dwarf2cfi.c: Ditto.
5165 2003-05-08 Andrew Cagney <cagney@redhat.com>
5167 * mips-tdep.c (read_signed_register): New function, moved to here
5169 (read_signed_register_pid): Ditto.
5170 * regcache.c (read_signed_register_pid): Delete function, moved to
5172 (read_signed_register): Ditto.
5173 * regcache.h (read_signed_register): Delete declaration.
5174 (read_signed_register_pid): Delete declaration.
5176 2003-05-08 Andrew Cagney <cagney@redhat.com>
5178 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5179 * gdbarch.h: Re-generate.
5180 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5181 (legacy_max_register_virtual_size): Delete declaration.
5182 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5183 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5184 * tracepoint.c (memrange_sortmerge): Ditto.
5185 * sparc-tdep.c (sparc_print_registers): Ditto.
5186 * regcache.c (legacy_max_register_virtual_size): Delete function.
5188 2002-05-08 J. Brobecker <brobecker@gnat.com>
5190 * fork-child.c (escape_bang_in_quoted_argument): New function.
5191 (fork_inferior): Escape '!' characters in quoted arguments
5194 2003-05-08 J. Brobecker <brobecker@gnat.com>
5196 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5197 the language of the CU is not currently supported by GDB.
5199 2003-05-08 J. Brobecker <brobecker@gnat.com>
5201 * defs.h (language): Add language_minimal enum value.
5202 * c-lang.c (minimal_language_defn): New language definition.
5203 (_initialize_c_language): Add the new minimal language to the list
5204 of languages known to GDB.
5206 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5208 * frame.c (get_frame_type): Don't attempt to lazily initialize
5209 frame's unwinder for legacy frames.
5211 2003-05-07 Andrew Cagney <cagney@redhat.com>
5213 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5214 and "regcache" parameters.
5215 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5217 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5219 * dwarf2read.c (dwarf_decode_lines): Only use output of
5220 check_cu_functions() when calling record_line(). Do not update
5221 the current address.
5223 2003-05-07 Andrew Cagney <cagney@redhat.com>
5225 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5228 2003-05-07 Jim Blandy <jimb@redhat.com>
5230 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5231 'maint info symtabs' and 'maint info psymtabs'.
5232 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5233 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5234 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5235 Declarations updated.
5236 * maint.c (maintenance_list_command): Delete.
5237 (_initialize_maint_cmds): Update calls to add_cmd.
5238 * gdbcmd.h (maintenancelistlist): Delete declaration.
5239 * cli/cli-cmds.c (maintenancelistlist): Delete.
5240 (init_cmd_lists): Don't initialize it.
5241 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5243 2003-05-07 Andrew Cagney <cagney@redhat.com>
5245 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5247 (d10v_print_registers_info): Update.
5248 (d10v_dmap_register, d10v_imap_register): Delete functions.
5249 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5250 and "imap_register".
5251 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5252 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5253 * arch-utils.c (generic_remote_translate_xfer_address): Add
5254 "regcache" and "gdbarch" parameters.
5255 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5256 parameter. Change class to multi-arch.
5257 * gdbarch.h, gdbarch.c: Re-generate.
5258 * remote.c (remote_xfer_memory): Use
5259 gdbarch_remote_translate_xfer_address.
5261 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5263 * infrun.c (prev_pc): Move declaration ahead of proceed().
5264 (proceed): Refresh prev_pc value before resuming.
5265 (stop_stepping): Remove code to refresh prev_pc.
5267 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5269 * nto-tdep.c: Removed stray comment.
5271 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5273 * i386-nto-tdep.c: Fix old K&R function definitions.
5274 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5275 Also change add_show_from_set() call to add_setshow_cmd().
5276 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5278 2003-05-05 Andrew Cagney <cagney@redhat.com>
5280 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5281 (fprint_dummy_frames): New function.
5282 (maintenance_print_dummy_frames): New function.
5283 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5284 * frame.c (fprint_frame_id): Make global.
5285 * frame.h (fprint_frame_id): Declare.
5286 * Makefile.in (dummy-frame.o): Update dependencies.
5288 2003-05-05 Andrew Cagney <cagney@redhat.com>
5290 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5291 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5292 SIZEOF_CALL_DUMMY_WORDS.
5293 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5294 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5295 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5296 CALL_DUMMY_BREAKPOINT_OFFSET.
5297 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5298 CALL_DUMMY_START_OFFSET.
5299 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5300 * gdbarch.h, gdbarch.c: Re-generate.
5301 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5302 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5303 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5304 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5305 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5306 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5307 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5308 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5309 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5310 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5311 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5312 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5313 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5314 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5315 * config/sparc/tm-sparc.h: Update.
5317 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5319 * configure.tgt: Add i[3456]86-*-nto*.
5320 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5321 * nto-tdep.c: New file. Neutrino target support routines.
5322 * nto-tdep.h: New file. Neutrino target header.
5323 * config/tm-qnxnto.h: New file.
5324 * config/i386/i386nto.mt: New file.
5325 * config/i386/tm-i386nto.h: New file.
5327 2003-05-04 Andrew Cagney <cagney@redhat.com>
5329 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5330 (load_infrun_state): Ditto.
5331 (struct thread_info): Drop "prev_func_name" field.
5332 * thread.c (load_infrun_state): Update.
5333 (save_infrun_state): Update.
5334 * infrun.c (prev_func_name): Delete variable.
5335 (init_wait_for_inferior): Do not clear prev_func_name.
5336 (stop_stepping, keep_going, context_switch): Do not swap
5338 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5339 instead of PC_IN_SIGTRAMP.
5341 2003-05-04 Andrew Cagney <cagney@redhat.com>
5343 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5344 REGISTER_BYTE with register_offset_hack.
5345 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5346 that REGISTER_BYTE is consistent with the regcache.
5347 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5348 * gdbarch.h, gdbarch.c: Regenerate.
5350 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5352 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5353 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5355 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5357 2003-05-03 J. Brobecker <brobecker@gnat.com>
5359 From Thierry Schneider <tpschneider1@yahoo.com>
5360 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5361 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5362 (mi-cmd-symbol.o): Add rule.
5364 2003-05-03 Andrew Cagney <cagney@redhat.com>
5366 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5367 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5368 * gdbarch.h, gdbarch.c: Re-generate.
5369 * d10v-tdep.c (d10v_push_dummy_code): New function.
5370 (d10v_gdbarch_init): Set push_dummy_code.
5371 * infcall.c (legacy_push_dummy_code): New function.
5372 (generic_push_dummy_code): New function.
5373 (push_dummy_code): New function.
5374 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5375 instead of dummy_addr, to push_dummy_call. Move call to
5376 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5378 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5380 2003-05-03 Andrew Cagney <cagney@redhat.com>
5382 * disasm.h (print_insn): Declare.
5383 * disasm.c (init_gdb_disassemble_info): New function.
5384 (gdb_disassembly): Call init_gdb_disassemble_info.
5385 (gdb_print_insn): New function.
5386 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5387 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5388 * mcore-tdep.c: Include "disasm.h"
5389 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5390 * d10v-tdep.c: Include "disasm.h".
5391 (display_trace): Call gdb_print_insn, instead of print_insn.
5392 (print_insn): Delete function.
5393 * printcmd.c: Include "disasm.h".
5394 (print_insn): Delete function.
5395 (print_formatted): Call gdb_print_insn, instead of print_insn.
5396 * Makefile.in (printcmd.o): Update dependencies.
5397 (mcore-tdep.o, d10v-tdep.o): Ditto.
5399 2003-05-02 Andrew Cagney <cagney@redhat.com>
5401 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5402 PC_REGNUM, re-indent.
5403 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5404 PC_REGNUM isn't set.
5406 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5407 * gdbarch.h, gdbarch.c: Re-generate.
5408 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5409 register_virtual_size, pc_regnum, or register_bytes.
5410 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5411 (d10v_register_type): Use D10V_PC_REGNUM.
5412 (d10v_print_registers_info, d10v_read_pc): Ditto.
5413 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5414 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5416 2003-05-02 David Carlton <carlton@bactrian.org>
5418 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5419 the name with mstrsave.
5421 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5423 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5424 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5425 (host_charset_name, target_charset_name): New vars for use by
5427 (host_charset_enum, target_charset_enum): New enums for set/show
5429 (set_charset_sfunc, set_host_charset_sfunc,
5430 set_target_charset_sfunc): New functions.
5431 (set_host_charset, set_target_charset): Make static.
5432 (list_charsets, set_host_charset_command,
5433 set_target_charset_command): Delete functions.
5434 (show_charset_command): Rewrite as....
5435 (show_charset): Hook this up with the set/show command mechanism.
5436 (_initialize_charset): Change names of charsets to match the
5437 set/show enums. Use host_charset_name and target_charset_name.
5438 Use set/show mechanism for charset, host-charset, target-charset
5439 commands. Do not make 'show host-charset' and 'show
5440 target-charset' be aliases of 'show charset'.
5442 * charset.h (set_host_charset, set_target_charset): Don't export,
5443 they are not used outside the file.
5445 2003-05-01 Andrew Cagney <cagney@redhat.com>
5447 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5448 (gdb_disassembly): Make "di" non static, always initialize and
5449 cleanup. Always use dis_asm_read_memory.
5450 (gdb_dis_asm_read_memory): Delete function.
5452 2003-05-01 Andrew Cagney <cagney@redhat.com>
5454 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5455 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5457 2003-04-30 Andrew Cagney <cagney@redhat.com>
5459 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5460 "tm_print_insn_info".
5461 (TARGET_PRINT_INSN_INFO): Delete macro.
5462 (dis_asm_read_memory): Delete function declaration.
5463 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5464 (tm_print_insn_info): Delete variable definition.
5465 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5466 * gdbarch.h, gdbarch.c: Re-generate.
5467 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5468 "deprecated_tm_print_insn_info".
5469 * mcore-tdep.c (mcore_dump_insn): Ditto.
5470 * mips-tdep.c (mips_gdbarch_init): Ditto.
5471 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5472 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5473 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5474 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5475 instead of TARGET_PRINT_INSN_INFO, add comment.
5476 * s390-tdep.c (s390_get_frame_info): Instead of
5477 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5478 (s390_check_function_end, s390_is_sigreturn): Ditto.
5479 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5480 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5481 * disasm.c: Include "gdbcore.h".
5482 (_initialize_disasm): New function, initialize
5483 "deprecated_tm_print_insn_info".
5484 (deprecated_tm_print_insn_info): New variable.
5485 (dis_asm_read_memory): Moved from "corefile.c", made static.
5486 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5487 * Makefile.in (disasm.o): Update dependencies.
5489 2003-04-30 Andrew Cagney <cagney@redhat.com>
5491 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5493 2003-04-29 Adam Fedor <fedor@gnu.org>
5495 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5496 * infcall.c (find_function_addr): Make non-static.
5497 * infcall.h (find_function_addr): Declare.
5498 * Makefile.in (eval.o): Update dependencies.
5500 2003-04-28 Adam Fedor <fedor@gnu.org>
5502 * symtab.c (symbol_find_demangled_name): Check for and demangle
5504 (symbol_init_demangled_name): Init for language_objc as well.
5506 2003-04-28 Andrew Cagney <cagney@redhat.com>
5508 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5509 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5510 * gdbarch.h, gdbarch.c: Re-generate.
5511 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5512 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5513 * inferior.h (deprecated_read_fp): Rename read_fp.
5514 (generic_target_read_fp): Delete declaration.
5515 * regcache.c (generic_target_read_fp): Delete function.
5516 (deprecated_read_fp): Replace read_fp, use
5517 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5518 * d10v-tdep.c (d10v_read_fp): Delete function.
5519 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5521 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5522 deprecated_target_read_fp to generic_target_read_fp.
5523 * sh-tdep.c (sh_gdbarch_init): Ditto.
5524 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5526 * frv-tdep.c (frv_gdbarch_init): Ditto.
5528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5529 deprecated_fp_regnum.
5530 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5531 * vax-tdep.c (vax_gdbarch_init): Ditto.
5532 * v850-tdep.c (v850_gdbarch_init): Ditto.
5533 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5534 * sh-tdep.c (sh_gdbarch_init): Ditto.
5535 * s390-tdep.c (s390_gdbarch_init): Ditto.
5536 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5537 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5538 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5539 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5541 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5542 * i386-tdep.c (i386_gdbarch_init): Ditto.
5543 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5544 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5545 * frv-tdep.c (frv_gdbarch_init): Ditto.
5546 * cris-tdep.c (cris_gdbarch_init): Ditto.
5547 * avr-tdep.c (avr_gdbarch_init): Ditto.
5548 * arm-tdep.c (arm_gdbarch_init): Ditto.
5549 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5551 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5552 * v850-tdep.c (v850_gdbarch_init): Ditto.
5553 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5554 * sh-tdep.c (sh_gdbarch_init): Ditto.
5555 * s390-tdep.c (s390_gdbarch_init): Ditto.
5556 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5557 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5558 * mips-tdep.c (mips_gdbarch_init): Ditto.
5559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5560 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5561 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5562 * frv-tdep.c (frv_gdbarch_init): Ditto.
5563 * avr-tdep.c (avr_gdbarch_init): Ditto.
5564 * arm-tdep.c (arm_gdbarch_init): Ditto.
5566 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5567 DEPRECATED_FP_REGNUM.
5568 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5569 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5570 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5571 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5572 (sparc32_register_virtual_type): Ditto.
5573 * sh-tdep.c (sh64_frame_chain): Ditto.
5574 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5575 (sh_nofp_frame_init_saved_regs): Ditto.
5576 (sh64_nofp_frame_init_saved_regs): Ditto.
5577 (sh_fp_frame_init_saved_regs): Ditto.
5578 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5579 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5580 * procfs.c (procfs_fetch_registers): Ditto.
5581 (procfs_store_registers): Ditto.
5582 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5583 (store_inferior_registers, fetch_core_registers): Ditto.
5584 (fetch_kcore_registers, clear_regs): Ditto.
5585 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5586 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5587 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5588 * nlm/i386.c (do_status): Ditto.
5589 * mipsv4-nat.c (supply_gregset): Ditto.
5590 * mips-tdep.c: Ditto for comments.
5591 * mips-nat.c (fetch_inferior_registers): Ditto.
5592 (store_inferior_registers, fetch_core_registers): Ditto.
5593 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5594 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5595 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5596 (i386_do_pop_frame, i386_register_type): Ditto.
5597 * hppa-tdep.c (hppa_frame_chain): Ditto.
5598 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5599 (hppa_pop_frame, hppa_read_fp): Ditto.
5600 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5601 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5602 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5603 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5604 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5605 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5606 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5607 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5608 * blockframe.c: Ditto for comments.
5609 * arch-utils.h: Ditto for comments.
5610 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5611 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5612 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5613 * alpha-tdep.h: Ditto for comments.
5614 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5615 (alpha_cannot_store_register): Ditto.
5616 (alpha_push_dummy_frame): Ditto.
5617 * alpha-nat.c (supply_gregset): Ditto.
5619 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5620 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5621 * config/sparc/tm-sparc.h: Update comment.
5623 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5624 deprecated_read_fp instead of TARGET_READ_FP.
5625 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5626 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5627 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5628 deprecated_read_fp instead of read_fp.
5629 * s390-tdep.c (s390_push_arguments): Ditto.
5630 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5631 * frame.h: Ditto in comments.
5632 * frame.c (legacy_get_prev_frame): Ditto.
5633 * dummy-frame.c (dummy_frame_this_id): Ditto.
5634 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5636 2003-04-28 Andrew Cagney <cagney@redhat.com>
5638 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5639 * gdbarch.h, gdbarch.c: Re-generate.
5640 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5641 * vax-tdep.c (_initialize_vax_tdep): Update.
5642 * v850-tdep.c (_initialize_v850_tdep): Update.
5643 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5644 * s390-tdep.c (_initialize_s390_tdep): Update.
5645 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5646 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5647 * mips-tdep.c (_initialize_mips_tdep): Update.
5648 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5649 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5650 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5651 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5652 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5653 * frv-tdep.c (_initialize_frv_tdep): Update.
5654 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5655 (_initialize_cris_tdep): Update.
5656 * arch-utils.c (legacy_print_insn): Update.
5657 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5659 2003-04-26 Adam Fedor <fedor@gnu.org>
5661 * linespec.c (decode_objc): New function to decode ObjC calls
5662 (decode_line_1): Check for ObjC calls (using decode_objc)
5663 * Makefile (linespec.o): Update dependencies.
5665 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5667 * breakpoint.h (struct breakpoint_ops): New.
5668 (struct breakpoint): Add ops member.
5670 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5671 (mention): Use new breakpoint ops member.
5672 (set_raw_breakpoint): Initialize ops field to NULL.
5673 (print_exception_catchpoint, print_one_exception_catchpoint)
5674 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5675 (gnu_v3_exception_catchpoint_ops): New.
5676 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5678 2003-04-25 Adam Fedor <fedor@gnu.org>
5680 * Makefile.in (COMMON_OBS): Add objc-lang.o
5682 2003-04-25 Andrew Cagney <cagney@redhat.com>
5684 * d10v-tdep.c (print_insn): Delete function.
5685 (display_trace): Use TARGET_PRINT_INSN.
5686 (_initialize_d10v_tdep): Do not set tm_print_insn.
5687 (d10v_gdbarch_init): Set print_insn.
5689 2003-04-25 Andrew Cagney <cagney@redhat.com>
5691 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5692 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5693 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5694 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5695 (nr_dmap_regs, a0_regnum): ... new functions.
5696 (d10v_print_registers_info): Use a0_regnum, use register_size.
5697 (d10v_register_byte): Delete function.
5698 (d10v_register_raw_size): Delete function.
5699 (d10v_register_type): Use a0_regnum.
5700 (d10v_print_registers_info): Use a0_regnum.
5701 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5702 (d10v_gdbarch_init): Do not set register_byte or
5703 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5704 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5706 (trace_command): Use XCALLOC.
5707 (print_insn): Delete reference to tm_print_insn.
5708 (saved_regs_unwinder): Use store_unsigned_integer instead of
5710 * frame.h (FRAME_OBSTACK_CALLOC): Define
5712 2003-04-25 David Carlton <carlton@bactrian.org>
5714 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5716 2003-04-24 Adam Fedor <fedor@gnu.org>
5718 * objc-lang.c: Include "valprint.h"
5719 * Makefile.in (objc-lang.o): Update dependencies.
5721 2003-04-24 Adam Fedor <fedor@gnu.org>
5723 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5724 architecture dependant compilation and mark as unimplemented
5725 (until they get put in the gdbarch vector).
5727 2003-04-23 David Carlton <carlton@bactrian.org>
5729 * cp-support.c (cp_find_first_component): Accept 'operator' in
5732 2003-04-23 Andrew Cagney <cagney@redhat.com>
5734 * infcall.c (call_function_by_hand): Eliminate redundant
5735 indentation. Move "saved_async" and "old_cleanups" to where they
5738 2003-04-23 Andrew Cagney <cagney@redhat.com>
5740 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5741 and "buffer". Move the "name" code to where it is needed.
5743 2003-04-23 Andrew Cagney <cagney@redhat.com>
5745 * infcall.c (call_function_by_hand): Move variables "start_sp",
5746 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5747 code to ON_STACK switch branch.
5749 2003-04-23 Andrew Cagney <cagney@redhat.com>
5751 * infcall.c (call_function_by_hand): Make declaration of "i",
5752 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5755 2003-04-23 Andrew Cagney <cagney@redhat.com>
5757 * infcall.c (call_function_by_hand): Delete variable
5758 "n_method_args". Localize "param_type"'s declaration to the loop
5759 that it is used. Reinstate code assigning to said variable -
5760 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5761 Rationalize code using "param_type".
5763 2003-04-22 Andrew Cagney <cagney@redhat.com>
5765 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5766 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5767 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5768 to DEPRECATED_PUSH_RETURN_ADDRESS.
5770 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5772 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5773 on the DWARF2 register number prior to fetching a register.
5775 2003-04-22 J. Brobecker <brobecker@gnat.com>
5777 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5778 Update all the tests using SOFT_FLOAT considering the fact that
5779 this macro was always set to 0.
5780 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5781 considering the fact that this macro was always set to 0.
5782 * hppa-tdep.h (hppa_store_return_value): Likewise.
5783 (hppa_extract_return_value): Likewise.
5785 2003-04-22 J. Brobecker <brobecker@gnat.com>
5787 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5788 the hppa-pro target only.
5790 2003-04-21 J. Brobecker <brobecker@gnat.com>
5792 Ongoing multi-arch conversion effort for HP/UX:
5793 * config/pa/tm-hppa.h: Move all macro that are no longer
5794 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5795 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5797 2003-04-21 J. Brobecker <brobecker@gnat.com>
5799 * config/pa/tm-hppa.h: Obsolete a section that was only used
5802 2003-04-21 J. Brobecker <brobecker@gnat.com>
5804 Ongoing multi-arch conversion for HP/UX.
5805 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5806 if already defined (allows hppa64 to stay non-multiarched for now).
5807 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5809 2003-04-21 Andrew Cagney <cagney@redhat.com>
5811 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5813 2003-04-21 Andrew Cagney <cagney@redhat.com>
5815 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5816 "i386_num_mmx_regs".
5818 2003-04-21 Andrew Cagney <cagney@redhat.com>
5820 * infcall.c: New file.
5821 * infcall.h: New file.
5822 * valarith.c: Include "infcall.h".
5823 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5824 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5825 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5826 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5827 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5828 (SFILES): Add "infcall.c"
5829 (COMMON_OBS): Add "infcall.o".
5830 (infcall.o): Specify dependencies.
5831 * value.h (call_function_by_hand): Delete declaration.
5832 * inferior.h (run_stack_dummy): Delete declaration.
5833 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5834 (run_stack_dummy): Move to "infcall.c", merged into
5835 call_function_by_hand.
5836 * valops.c (call_function_by_hand): Moved to "infcall.c".
5837 (find_function_addr, value_arg_coerce): Ditto.
5838 (unwindonsignal_p, coerce_float_to_double): Ditto.
5839 (_initialize_valops): Move "set/show coerce-float-to-double", and
5840 "set/show unwindonsignal" commands to "infcall.c".
5841 * v850-tdep.c, target.h: Update comments.
5842 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5843 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5844 (sh64_init_extra_frame_info): Update comments.
5845 * mn10300-tdep.c: Update comments.
5846 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5847 * config/sparc/tm-sparc.h: Update comments.
5848 * breakpoint.h: Update comments.
5849 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5850 * arm-tdep.c: Update comment.
5852 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5854 * i386-tdep.c (i386_num_register_names): New variable.
5855 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5856 (MM0_REGNUM): Remove redundant parentheses in define.
5857 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5858 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5859 i386_mxcsr_regnum_p): Remove redundant parentheses.
5860 (i386_register_name): Use i386_num_register_names.
5862 * i386-tdep.c (i386_extract_return_value,
5863 i386_store_return_value): Correct check for availability of
5864 floating-point registers.
5866 * i386-tdep.c (i386_frame_num_args): Remove function.
5867 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5869 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5870 mmx_regnum_to_fp_regnum. Adjust all callers.
5872 * i386-tdep.c (i386_get_longjmp_target): Use
5873 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5874 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5877 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5879 * core-regset.c: Update comments to reflect reality. Re-order
5881 (fetch_core_registers): Use switch instead of if. Remove
5882 redundant prototype.
5884 2003-04-18 Jim Blandy <jimb@redhat.com>
5886 * s390-tdep.c (s390_frame_align): New function.
5887 (s390_gdbarch_init): Register it with the gdbarch object.
5889 2003-04-17 Richard Henderson <rth@redhat.com>
5891 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5893 2003-04-17 Michael Snyder <msnyder@redhat.com>
5894 Karen Bennet <bennet@redhat.com>
5896 Committed by Elena Zannoni <ezannoni@redhat.com>
5897 * gdb_gcore.sh: New script to create a core dump of a process.
5899 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5901 * values.c (value_being_returned): Don't fetch the return
5902 value if the return type is void.
5904 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5906 * thread-db.c: Reindented.
5908 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5910 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5911 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5938 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5940 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5941 the size of ``long double'' to 16, instead of 8.
5943 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5945 * i386-linux-nat.c: Add some whitespace to make things more
5947 (fetch_register, store_register, fetch_inferior_registers,
5948 store_inferior_registers): Get rid of assignment in if-statement.
5949 (store_register): Fix typo in error message.
5951 2003-04-16 Andrew Cagney <cagney@redhat.com>
5953 * utils.c (xmmalloc): Always allocate something, matches
5954 libiberty/xmalloc's semantics.
5955 (xmrealloc, xmcalloc): Ditto.
5957 2003-04-16 Andrew Cagney <cagney@redhat.com>
5959 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5961 (get_frame_type): Initialize unwind and type when needed.
5962 (get_frame_id, frame_register_unwind): Ditto.
5964 2003-04-16 Andrew Cagney <cagney@redhat.com>
5966 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5968 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5969 * sparcl-stub.c: Obsolete file.
5970 * config/sparc/tm-sparclet.h: Obsolete file.
5971 * sparclet-stub.c: Obsolete file.
5972 * sparclet-rom.c: Obsolete file.
5973 * sparcl-tdep.c: Obsolete file.
5974 * config/sparc/tm-sparclite.h: Obsolete file.
5975 * config/sparc/sparclite.mt: Obsolete file.
5976 * config/sparc/sparclet.mt: Obsolete file.
5977 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5978 sparc86x-*-* obsolete.
5980 2003-04-15 David Carlton <carlton@math.stanford.edu>
5982 * Makefile.in (SFILES): Add cp-namespace.c.
5983 (COMMON_OBS): Add cp-namespace.o.
5984 (block.o): Depend on gdb_obstack_h and cp_support_h.
5985 (buildsym.o): Depend on cp_support_h.
5986 (cp-namespace.o): New.
5987 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5988 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5989 (dwarf2read.o): Depend on cp_support_h.
5990 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5991 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5992 processing_current_namespace.
5993 (read_namespace): Update processing_current_namespace; check for
5994 anonymous namespaces.
5995 (dwarf2_name): New function.
5996 (dwarf2_extension): Ditto.
5997 * cp-support.h: Update copyright, contributors.
5998 Add inclusion guards.
5999 Add opaque declaration for structs obstack, block, symbol.
6000 (struct using_direct): New struct.
6001 Add declarations for cp_find_first_component,
6002 cp_entire_prefix_len, processing_has_namespace_info,
6003 processing_current_namespace, cp_is_anonymous,
6004 cp_add_using_directive, cp_initialize_namespace,
6005 cp_finalize_namespace, cp_set_block_scope,
6006 cp_scan_for_anonymous_namespaces.
6007 * cp-namespace.c: New file.
6008 * cp-support.c: Update copyright.
6009 Include ctype.h, gdb_assert.h, gdbcmd.h.
6010 New variable maint_cplus_cmd_list.
6011 (cp_find_first_component): New function.
6012 (cp_entire_prefix_len, maint_cplus_command)
6013 (first_component_command, _initialize_cp_support): Ditto.
6014 * buildsym.c: Include cp-support.h.
6015 New variable using_list.
6016 (add_symbol_to_list): Check for anonymous namespaces.
6017 (finish_block): Set block's scope.
6018 (start_symtab): Initialize C++ namespace support.
6019 (end_symtab): Finalize C++ namespace support.
6020 * block.h: Add opaque declarations for structs
6021 block_namespace_info, using_direct, and obstack.
6022 Add declarations for block_set_scope and block_set_using.
6023 (struct block): Add 'language_specific' member.
6024 (BLOCK_NAMESPACE): New macro.
6025 * block.c: Include gdb_obstack.h and cp-support.h.
6026 (struct block_namespace_info): New struct.
6027 (block_set_scope): New function.
6028 (block_set_using, block_initialize_namespace): Ditto.
6030 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6032 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6033 (locate_base): Return early if there aren't any link map offsets.
6034 (svr4_solib_create_inferior_hook): Warn if shared library support
6037 2003-04-14 David Carlton <carlton@math.stanford.edu>
6039 * symtab.c (symbol_set_names): Add prefix when storing Java names
6040 in hash table. Fix for PR java/1039.
6042 2003-04-14 David Carlton <carlton@math.stanford.edu>
6044 * symtab.c (symbol_set_names): Rename 'name' arg to
6045 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6046 * symtab.h: Change 'name' argument in declaration of
6047 symbol_set_names to 'linkage_name'.
6048 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6050 2003-04-14 Andrew Cagney <cagney@redhat.com>
6052 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6053 return the fully sign-extended register value.
6054 (get_frame_pointer): Ditto.
6055 (mips_pop_frame): Initialize "proc_desc" after checking for a
6058 2003-04-14 Andrew Cagney <cagney@redhat.com>
6060 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6061 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6062 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6063 (mips_push_register): Delete function.
6064 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6067 2003-04-14 Jim Blandy <jimb@redhat.com>
6069 * symmisc.c: #include "gdb_regex.h".
6070 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6072 * maint.c (maintenance_list_command): New function.
6073 (_initialize_maint_cmds): Register the above as commands.
6074 * symtab.h (maintenance_list_symtabs,
6075 maintenance_list_psymtabs): New declarations.
6076 * cli/cli-cmds.c (maintenancelistlist): New variable.
6077 (init_cmd_lists): Initialize it.
6078 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6079 * gdbcmd.h (maintenancelistlist): New declaration.
6080 * Makefile.in (symmisc.o): Update dependencies.
6082 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6084 * s390-nat.c: Include asm/types.h for addr_t.
6086 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6088 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6089 actually incoming type.
6091 2003-04-13 Andrew Cagney <cagney@redhat.com>
6093 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6094 get_next_frame and get_frame_saved_regs.
6096 2003-04-13 Andrew Cagney <cagney@redhat.com>
6098 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6099 of gdbarch_num_regs.
6101 2003-04-13 Andrew Cagney <cagney@redhat.com>
6103 * frame.h: Mention what replaced what in "struct frame_info".
6104 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6105 deprecated_update_frame_base_hack and
6106 deprecated_update_frame_pc_hack.
6107 * hppa-tdep.c: Ditto.
6109 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6111 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6112 to read_reg and update its comment. Remove regnum member.
6113 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6114 Don't call read_reg when setting in_reg. Call read_reg to get
6115 the frame base if it's in a register. Return the register number
6116 on the stack instead of in the context. Remove extra arguments
6118 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6119 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6120 the register number on the expression stack.
6121 (needs_frame_read_reg): Remove extra arguments.
6123 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6125 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6127 (execute_stack_op): All callers updated.
6128 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6129 * dwarf2loc.c (find_location_expression): New function.
6130 (dwarf_expr_frame_base): Call it.
6131 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6132 (dwarf2_tracepoint_var_ref): New function, broken out from
6133 locexpr_tracepoint_var_ref.
6134 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6136 (loclist_read_variable, loclist_read_needs_frame): New functions.
6137 (loclist_describe_location, loclist_tracepoint_var_ref): New
6139 (dwarf2_loclist_funcs): New struct location_funcs.
6140 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6141 (struct dwarf2_locexpr_baton): Add comments.
6142 (dwarf2_loclist_funcs): New extern.
6143 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6144 base_address and base_known.
6145 (dwarf_loc_buffer): New variable.
6146 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6147 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6148 (dwarf2_has_info): Initialize dwarf_loc_offset.
6149 (dwarf2_build_psymtabs): Read in .debug_loc.
6150 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6152 (psymtab_to_symtab_1): Likewise. Move base address calculation
6154 (dwarf2_get_pc_bounds): ... here. Use the base address from
6156 (dwarf2_symbol_mark_computed): Handle location lists.
6158 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6160 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6161 if the linkage name demangled successfully.
6163 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6165 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6166 disassmbly_flavour): Removed.
6168 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6170 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6172 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6174 2003-04-12 Andrew Cagney <cagney@redhat.com>
6176 * frame.h (struct frame_info): Move definition from here ...
6177 * frame.c (struct frame_info): ... to here.
6179 2003-04-12 Andrew Cagney <cagney@redhat.com>
6181 * gdbthread.h (save_infrun_state): Delete parameter
6183 (struct thread_info): Delete field "prev_func_start".
6184 (load_infrun_state): Ditto.
6185 * thread.c (load_infrun_state, save_infrun_state): Update.
6186 * infrun.c (prev_func_start): Delete variable.
6187 (context_switch, init_wait_for_inferior): Update.
6188 (stop_stepping, keep_going): Update.
6190 2003-04-12 Andrew Cagney <cagney@redhat.com>
6192 * gdbarch.sh: Add missing opaque declarations.
6193 * gdbarch.h: Regnerate.
6194 * symtab.h: Add missing opaque declarations.
6195 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6196 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6197 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6198 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6199 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6200 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6201 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6202 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6203 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6204 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6205 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6206 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6207 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6209 2003-04-11 Andrew Cagney <cagney@redhat.com>
6211 * frame.c (get_frame_id): Return this frame's "id".
6212 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6214 (legacy_saved_regs_this_id): Replace function body with
6216 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6217 FRAME_OBSTACK_ZALLOC.
6218 (create_new_frame): Mark the frame ID as valid.
6220 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6222 * Makefile.in (libbfd_h): Added missing setting.
6223 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6224 according to the selected ABI.
6226 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6228 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6230 2003-04-11 Andrew Cagney <cagney@redhat.com>
6232 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6233 SAVED_PC_AFTER_CALL.
6234 * gdbarch.h, gdbarch.c: Regenerate.
6235 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6236 * x86-64-tdep.c (x86_64_init_abi): Update.
6237 * vax-tdep.c (vax_gdbarch_init): Update.
6238 * v850-tdep.c (v850_gdbarch_init): Update.
6239 * sparc-tdep.c (sparc_gdbarch_init): Update.
6240 * sh-tdep.c (sh_gdbarch_init): Update.
6241 * s390-tdep.c (s390_gdbarch_init): Update.
6242 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6243 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6244 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6245 * mips-tdep.c (mips_gdbarch_init): Update.
6246 * mcore-tdep.c (mcore_gdbarch_init): Update.
6247 * m68k-tdep.c (m68k_gdbarch_init): Update.
6248 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6249 * ia64-tdep.c (ia64_gdbarch_init): Update.
6250 (ia64_saved_pc_after_call): Update declaration.
6251 * i386ly-tdep.c (i386lynx_init_abi): Update.
6252 * i386-tdep.c (i386_gdbarch_init): Update.
6253 * hppa-tdep.c (hppa_gdbarch_init): Update.
6254 * h8300-tdep.c (h8300_gdbarch_init): Update.
6255 * frv-tdep.c (frv_gdbarch_init): Update.
6256 * cris-tdep.c (cris_gdbarch_init): Update.
6257 * avr-tdep.c (avr_gdbarch_init): Update.
6258 * arm-tdep.c (arm_gdbarch_init): Update.
6259 * alpha-tdep.c (alpha_gdbarch_init): Update.
6260 * ns32knbsd-nat.c (frame_num_args): Update.
6261 * ns32k-tdep.c (umax_frame_num_args): Update.
6262 * mips-tdep.c (mips_init_frame_pc_first): Update.
6263 * infrun.c (step_over_function): Update.
6264 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6265 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6266 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6267 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6268 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6269 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6270 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6271 * arch-utils.c (init_frame_pc_default): Update.
6272 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6273 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6276 2003-04-11 Andrew Cagney <cagney@redhat.com>
6278 * i387-tdep.c: Update copyright.
6279 (i387_to_double): Delete function.
6280 (double_to_i387): Delete function.
6282 2003-04-10 Andrew Cagney <cagney@redhat.com>
6284 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6285 frame's function's address. Simplify.
6286 (d10v_frame_unwind_cache): Check that the frame's function is
6289 2003-04-10 Jim Blandy <jimb@redhat.com>
6291 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6292 call to set_gdbarch_deprecated_push_arguments.
6294 2003-04-10 Andrew Cagney <cagney@redhat.com>
6296 * frame.c (fprint_frame_id): New function.
6297 (fprint_frame_type, fprint_frame): New function.
6298 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6299 (create_sentinel_frame, get_frame_id): Ditto.
6300 (frame_id_p, frame_id_eq): Ditto.
6301 (frame_id_inner, create_new_frame): Ditto.
6302 (legacy_get_prev_frame, get_prev_frame): Ditto.
6303 (deprecated_update_frame_pc_hack): Ditto.
6304 (frame_register_unwind): Ditto.
6305 (deprecated_update_frame_base_hack): Ditto.
6307 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6309 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6310 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6311 frame_chain function.
6312 * Makefile.in: Add dependencies due to above change.
6314 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6316 * blockframe.c (legacy_frame_chain_valid): Move call to
6317 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6320 2003-04-09 Andrew Cagney <cagney@redhat.com>
6322 * frame.h (struct frame_id): Replace "pc" and "base" with
6323 "stack_addr" and "code_addr". Update comments.
6324 (frame_id_build): Update parameter names and comment.
6325 (struct frame_info): Replace "id_p" and "id" with "this_id".
6326 * dummy-frame.c (dummy_frame_this_id): Update.
6327 * breakpoint.c (print_one_breakpoint): Update.
6328 * frame.c (get_frame_id): Update.
6329 (get_frame_base, frame_id_build): Update.
6330 (create_sentinel_frame, legacy_get_prev_frame): Update.
6331 (deprecated_update_frame_base_hack): Update.
6332 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6333 (frame_id_inner): Ditto.
6335 2003-04-09 Andrew Cagney <cagney@redhat.com>
6337 * defs.h (gdb_print_host_address): Make "addr" parameter a
6339 * utils.c (gdb_print_host_address): Update.
6341 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6343 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6344 register number for R0 is 0.
6346 2003-04-09 J. Brobecker <brobecker@gnat.com>
6348 * frame.h (struct gdbarch): Add opaque structure definition
6349 to avoid a compilation warning on LynxOS 4.0.
6351 2003-04-09 Andrew Cagney <cagney@redhat.com>
6353 * frame.h (struct frame_info): Delete field "pc". Replace
6354 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6356 * frame.c (frame_pc_unwind): Update.
6357 (create_sentinel_frame): Do not set "pc".
6358 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6359 (get_frame_pc): Call frame_pc_unwind.
6360 (deprecated_update_frame_pc_hack): Update.
6361 (create_new_frame): Use "pc" not "->pc".
6363 2003-04-09 Andrew Cagney <cagney@redhat.com>
6365 * frame.c (get_frame_id): Eliminate code updating "frame".
6366 (legacy_get_prev_frame): Ditto.
6367 (get_frame_base): Return id.base directly.
6368 (deprecated_update_frame_base_hack): Update "id.base".
6369 * frame.h (struct frame_info): Delete field "frame".
6371 2003-04-09 Andrew Cagney <cagney@redhat.com>
6373 * NEWS: Mention that the "Sequent family" is obsolete.
6374 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6375 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6376 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6377 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6378 * config/i386/tm-ptx4.h: Obsolete file.
6379 * config/i386/tm-ptx.h: Obsolete file.
6380 * symm-tdep.c: Obsolete file.
6381 * config/i386/symmetry.mt: Obsolete file.
6382 * config/i386/tm-symmetry.h: Obsolete file.
6383 * symm-nat.c: Obsolete file.
6384 * config/i386/nm-symmetry.h: Obsolete file.
6385 * config/i386/xm-symmetry.h: Obsolete file.
6386 * config/i386/symmetry.mh: Obsolete file.
6387 * config/i386/nm-ptx4.h: Obsolete file.
6388 * config/i386/ptx4.mh: Obsolete file.
6389 * config/i386/ptx.mt: Obsolete file.
6390 * config/i386/ptx.mh: Obsolete file.
6391 * config/i386/xm-ptx4.h: Obsolete file.
6392 * config/i386/xm-ptx.h: Obsolete file.
6394 2003-04-09 Andrew Cagney <cagney@redhat.com>
6396 Obsolete mips*-*-mach3*.
6397 * NEWS: Mention that mips*-*-mach3* is obsolete.
6398 * m3-nat.c: Obsolete file.
6399 * config/nm-m3.h: Obsolete file.
6400 * config/mips/tm-mipsm3.h: Obsolete file.
6401 * config/mips/mipsm3.mt: Obsolete file.
6402 * config/mips/mipsm3.mh: Obsolete file.
6403 * config/mips/xm-mipsm3.h: Obsolete file.
6404 * mipsm3-nat.c: Obsolete file.
6405 * configure.host: Obsolete mips-dec-mach3*.
6406 * configure.tgt: Obsolete mips*-*-mach3*.
6408 2003-04-09 Andrew Cagney <cagney@redhat.com>
6410 * doublest.h: Update copyright.
6411 (deprecated_store_floating, deprecated_extract_floating): Rename
6412 store_floating and extract_floating. Update comments.
6413 * doublest.c: Update copyright.
6414 (extract_floating_by_length): Replace extract_floating.
6415 (store_floating_by_length): Replace store_floating.
6416 (deprecated_extract_floating): New function.
6417 (deprecated_store_floating): New function.
6418 (extract_typed_floating): Call extract_floating_by_length.
6419 (store_typed_floating): Call store_floating_by_length.
6420 * x86-64-tdep.c (x86_64_store_return_value): Update.
6421 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6422 (sh64_extract_return_value): Update.
6423 (sh_sh4_register_convert_to_virtual): Update.
6424 (sh_sh64_register_convert_to_virtual): Update.
6425 (sh_sh4_register_convert_to_raw): Update.
6426 (sh_sh64_register_convert_to_raw): Update.
6427 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6428 (rs6000_register_convert_to_raw): Update.
6429 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6430 (ia64_register_convert_to_raw): Update.
6431 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6432 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6433 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6434 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6435 (alpha_register_convert_to_raw): Update.
6437 2003-04-08 Andrew Cagney <cagney@redhat.com>
6439 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6440 * gdbarch.h, gdbarch.c: Re-generate.
6441 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6442 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6443 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6444 conditionally, use frame_pc_unwind as an alternative. Add
6446 * arch-utils.c (init_frame_pc_default): Only call
6447 SAVED_PC_AFTER_CALL when available.
6449 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6451 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6452 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6453 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6454 (start_remote): Ditto.
6455 (handle_inferior_event): Ditto.
6456 (save_inferior_status): Ditto.
6457 (restore_inferior_status): Ditto.
6458 * infcmd.c (attach_command): Ditto.
6459 * fork-child.c (startup_inferior): Ditto.
6460 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6461 * alpha-tdep.c (heuristic_proc_start): Ditto.
6462 * mips-tdep.c (heuristic_proc_start): Ditto.
6463 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6464 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6465 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6466 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6467 * remote-vx.c (vx_create_inferior): Ditto.
6469 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6471 * infrun.c (stop_soon_quietly): Make it an enum, to better
6472 override the default behavior of handle_inferior_event.
6473 (clear_proceed_status): Update uses of stop_soon_quietly to
6474 reflect that it is now an enum.
6475 (start_remote): Ditto.
6476 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6477 is set to handle the new GNU/Linux kernel behavior for
6478 attach/sigstop. Update uses of stop_soon_quietly.
6479 * inferior.h (enum stop_kind): New enum.
6480 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6481 Reset normal handle_inferior_event behavior, afterwards.
6482 * fork-child.c (startup_inferior): Update.
6483 * alpha-tdep.c (heuristic_proc_start): Update.
6484 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6485 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6486 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6487 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6488 * remote-vx.c (vx_create_inferior): Update.
6489 * mips-tdep.c (heuristic_proc_start): Update.
6491 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6493 * disasm.c (dump_insns): Move variables inside loop, or they will
6494 be freed more than once, causing wild memory corruptions.
6495 (gdb_disassembly): Look for the substring "-thread",
6496 instead of "-threads" in the target name, to make sure to find
6497 the 'multi-thread' target. Also, make sure we do the right thing
6498 with the "core" target.
6500 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6502 * mips-tdep.c (mips_print_fp_register): New function, created from
6503 do_fp_register_row(). Registers are now (also) printed as hex.
6504 Only one register is printed per row.
6505 (mips_print_register, do_fp_register_row): Print floating point
6506 registers with mips_print_fp_register().
6508 2003-04-06 Andrew Cagney <cagney@redhat.com>
6510 * valprint.h (inspect_it): Add extern declaration.
6511 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6512 (selectors_info, classes_info): Ditto.
6513 (find_objc_msgcall): Fix indentation.
6514 (objc_printstr): Delete extern declarations.
6516 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6518 2003-04-06 Andrew Cagney <cagney@redhat.com>
6520 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6522 * frame.c (legacy_saved_regs_this_id): Update.
6523 (legacy_get_prev_frame): Update.
6524 * xstormy16-tdep.c: Update comment.
6525 * sparc-tdep.c (sparc_frame_chain): Update comment.
6526 * blockframe.c (legacy_frame_chain_valid): Update.
6528 2003-04-06 Andrew Cagney <cagney@redhat.com>
6530 * valprint.c (val_print_type_code_int): Delete #ifdef
6531 PRINT_TYPELESS_INTEGER code.
6533 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6534 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6535 multi-arch definition.
6536 * gdbarch.h: Re-generate.
6538 2003-04-05 Andrew Cagney <cagney@redhat.com>
6540 Eliminate FRAME_FIND_SAVED_REGS.
6541 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6542 Change FSR parameter to a pointer.
6543 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6544 Assume FSR parameter is a pointer.
6545 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6547 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6548 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6549 saved_regs a pointer.
6550 (hppa_frame_saved_pc): Ditto.
6551 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6552 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6554 (restore_pc_queue): Make fsr a pointer.
6555 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6556 (hppa_frame_chain): Make saved_regs a pointer, call
6557 hppa_frame_init_saved_regs.
6558 * sparc-tdep.c: Include "gdb_assert.h".
6559 (sparc_frame_find_saved_regs): Replace internal_error with
6561 * remote-vxsparc.c (vx_read_register): Delete reference to
6562 FRAME_FIND_SAVED_REGS.
6563 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6564 * gdbarch.h: Regenerate.
6565 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6566 (deprecated_get_frame_saved_regs): Delete declaration.
6567 (struct frame_saved_regs): Delete definition.
6568 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6569 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6570 (hppa_frame_find_saved_regs): Delete declaration.
6571 (FRAME_FIND_SAVED_REGS): Delete macro.
6572 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6573 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6574 FRAME_FIND_SAVED_REGS in comment.
6576 2003-04-05 Andrew Cagney <cagney@redhat.com>
6578 * frame.c (frame_func_unwind, get_frame_func): New functions.
6579 * frame.h (get_frame_func, frame_func_unwind): Declare.
6580 (struct frame_info): Add field "prev_func" for caching the
6581 previous frame's function address.
6582 * arm-tdep.c (arm_frameless_function_invocation): Combine
6583 get_pc_function_start and get_frame_pc into get_frame_func.
6584 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6585 (sh64_nofp_frame_init_saved_regs): Ditto.
6586 * s390-tdep.c (s390_function_start): Ditto.
6587 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6588 (rs6000_frameless_function_invocation): Ditto.
6589 (rs6000_frame_saved_pc): Ditto.
6590 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6591 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6592 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6593 (i386_frame_init_saved_regs): Ditto.
6594 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6595 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6596 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6597 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6598 * blockframe.c (frameless_look_for_prologue): Ditto.
6600 2003-04-05 Andrew Cagney <cagney@redhat.com>
6602 * frame.c (legacy_get_prev_frame): Link prev to next at the
6603 function start. Update comments.
6605 2003-04-05 Andrew Cagney <cagney@redhat.com>
6607 * frame.c (get_frame_id): Update comment.
6608 (legacy_get_prev_frame): Update comment.
6609 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6610 * gdbarch.h: Regenerate.
6611 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6612 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6614 2003-04-05 Andrew Cagney <cagney@redhat.com>
6616 * stack.c (print_frame_info): Use get_frame_pc.
6618 2003-04-04 Andrew Cagney <cagney@redhat.com>
6620 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6621 the frame's type from the unwinder.
6622 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6623 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6624 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6625 (get_frame_base_address): Use get_frame_type.
6626 (get_frame_locals_address, get_frame_args_address): Ditto.
6627 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6628 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6629 (struct frame_info): Add comment explaining why the frame contains
6631 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6632 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6633 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6635 * frame-unwind.h: Include "frame.h".
6636 (struct frame_unwind): Add "type" field.
6637 * Makefile.in (frame_unwind_h): Add $(frame_h).
6639 2003-04-04 Andrew Cagney <cagney@redhat.com>
6641 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6642 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6643 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6645 (d10v_unwind_dummy_id): Use frame_id_build.
6646 * frame.c (find_frame_sal): Use get_frame_pc.
6647 (create_new_frame): Use deprecated_update_frame_pc_hack and
6648 deprecated_update_frame_base_hack.
6649 (create_sentinel_frame): Add comment about ->pc going away.
6650 (get_prev_frame): Add comment about ->pc going away.
6651 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6652 frame_id_build, deprecated_update_frame_pc_hack and
6653 deprecated_update_frame_base_hack.
6654 (select_frame): Use get_frame_pc.
6655 (legacy_saved_regs_this_id): Use frame_id_build.
6657 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6659 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6660 signed integer case.
6661 (classify_argument): Handle enumerations and references.
6663 2003-04-04 Andrew Cagney <cagney@redhat.com>
6665 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6668 2003-04-01 Adam Fedor <fedor@gnu.org>
6670 * gdb/objc-lang.c (selectors_info): Replace calls to
6671 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6672 SYMBOL_NATURAL_NAME.
6673 (classes_info, find_methods): Likewise.
6675 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6677 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6678 ``mach'' to the value determined by bfd_default_set_arch_mach().
6680 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6682 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6683 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6684 (mi-cmd-file.o): Update dependencies.
6686 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6688 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6689 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6691 2003-04-01 Adam Fedor <fedor@gnu.org>
6693 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6694 * language.h (struct language_defn): Add la_demangle.
6695 (language_demangle): Declare.
6696 * language.c (language_demangle): New function.
6697 (unk_lang_demangle): Likewise.
6698 (unknown_language_defn, auto_language_defn, local_language_defn):
6699 Add ukn_lang_demangle.
6700 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6701 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6702 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6703 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6704 * jv-lang.c (java_demangle): New function
6705 (java_language_defn): Use it for la_demangle element.
6706 * objc-lang.c (objc_demangle): Add options argument
6707 (objc_language_defn): Use objc_demangle for la_demangle element.
6708 * maint.c (maintenance_demangle): Replace switch with
6709 call to language_demangle.
6710 * utils.c (fprintf_symbol_filtered): Likewise.
6712 2003-04-01 Andrew Cagney <cagney@redhat.com>
6714 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6715 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6716 PRINT_TYPELESS_INTEGER.
6717 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6718 PUSH_RETURN_ADDRESS.
6720 2003-04-01 Andrew Cagney <cagney@redhat.com>
6722 * Makefile.in (d10v-tdep.o): Update dependencies.
6723 * d10v-tdep.c: Include "frame-base.h".
6724 (d10v_frame_unwind): Make constant.
6725 (d10v_frame_base_address): New function.
6726 (d10v_frame_base): New variable.
6727 (d10v_gdbarch_init): Set frame_base default.
6728 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6730 (d10v_frame_unwind_cache): Set and use "prev_sp".
6731 (d10v_frame_this_id): Use the previous frame's inner most stack
6732 address and this frame's func address for the frame ID. Use
6733 frame_id_build. Don't analyze beyond the current instruction.
6735 2003-04-01 Andrew Cagney <cagney@redhat.com>
6737 * frame.h (get_frame_locals_address, get_frame_args_address):
6738 Refer to the base address, instead of the address of the first
6741 2003-04-01 Andrew Cagney <cagney@redhat.com>
6743 Add frame debug info addresses:
6744 * frame-base.c: New file.
6745 * frame-base.h: New file.
6746 * frame.h (struct frame_base): Add opaque declaration.
6747 (get_frame_base): Update comment.
6748 (get_frame_base_address): Declare.
6749 (get_frame_locals_address): Declare.
6750 (get_frame_args_address): Declare.
6751 (struct frame_info): Add "base" and "base_cache". Update
6752 comments on the unwinder.
6753 * frame.c: Include "frame-base.h".
6754 (get_frame_locals_address): New function.
6755 (get_frame_base_address): New function.
6756 (get_frame_args_address): New function.
6757 * findvar.c (read_var_value): Use get_frame_locals_address and
6758 get_frame_args_address.
6759 * stack.c (frame_info): Use get_frame_locals_address and
6760 get_frame_args_address.
6761 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6762 moved to "frame-base.c".
6763 * printcmd.c (print_frame_nameless_args): Ditto.
6764 * symtab.h (address_class): Update comments.
6765 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6766 get_frame_base_address.
6767 * dwarf2expr.c (execute_stack_op): Ditto.
6768 * Makefile.in (frame_base_h): Define.
6769 (frame.o): Update dependencies.
6770 (frame-base.o): Add dependencies.
6771 (SFILES): Add frame-base.c.
6772 (COMMON_OBS): Add frame-base.o.
6774 2003-04-01 Andrew Cagney <cagney@redhat.com>
6776 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6777 CALL_DUMMY_LENGTH): Ditto.
6778 * gdbarch.c: Re-generate.
6779 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6780 (CALL_DUMMY_LENGTH): Delete macro.
6781 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6782 * arm-tdep.c (arm_gdbarch_init): Ditto.
6783 * avr-tdep.c (avr_gdbarch_init): Ditto.
6784 * cris-tdep.c (cris_gdbarch_init): Ditto.
6785 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6786 * frv-tdep.c (frv_gdbarch_init): Ditto.
6787 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6788 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6789 * i386-tdep.c (i386_gdbarch_init): Ditto.
6790 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6792 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6793 * mips-tdep.c (mips_gdbarch_init): Ditto.
6794 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6795 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6796 * s390-tdep.c (s390_gdbarch_init): Ditto.
6797 * sh-tdep.c (sh_gdbarch_init): Ditto.
6798 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6799 * v850-tdep.c (v850_gdbarch_init): Ditto.
6800 * vax-tdep.c (vax_gdbarch_init): Ditto.
6801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6803 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6805 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6807 2003-04-01 Andrew Cagney <cagney@redhat.com>
6809 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6810 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6811 * gdbarch.h, gdbarch.c: Re-generate.
6812 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6813 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6814 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6815 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6816 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6817 * infcmd.c (run_stack_dummy): Simplify assuming
6818 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6819 * infrun.c (handle_inferior_event): Ditto.
6820 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6821 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6822 * arm-tdep.c (arm_gdbarch_init): Ditto.
6823 * avr-tdep.c (avr_gdbarch_init): Ditto.
6824 * cris-tdep.c (cris_gdbarch_init): Ditto.
6825 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6826 * frv-tdep.c (frv_gdbarch_init): Ditto.
6827 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6828 * i386-tdep.c (i386_gdbarch_init): Ditto.
6829 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6831 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6832 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6833 * mips-tdep.c (mips_gdbarch_init): Ditto.
6834 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6835 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6836 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6837 * s390-tdep.c (s390_gdbarch_init): Ditto.
6838 * sh-tdep.c (sh_gdbarch_init): Ditto.
6839 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6840 * v850-tdep.c (v850_gdbarch_init): Ditto.
6841 * vax-tdep.c (vax_gdbarch_init): Ditto.
6842 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6844 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6846 * symfile.c (symfile_relocate_debug_section): Update call to
6847 bfd_simple_get_relocated_section_contents.
6849 2003-03-31 Andrew Cagney <cagney@redhat.com>
6851 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6852 * gdbarch.h, gdbarch.c: Regenerate.
6853 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6854 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6856 * frame.h (generic_fix_call_dummy): Delete declaration.
6857 * dummy-frame.h: Update comment.
6858 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6859 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6861 * sh-tdep.c (sh_gdbarch_init): Ditto.
6862 * s390-tdep.c (s390_gdbarch_init): Ditto.
6863 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6864 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6866 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6867 * i386-tdep.c (i386_gdbarch_init): Ditto.
6868 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6869 * frv-tdep.c (frv_gdbarch_init): Ditto.
6870 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6871 * cris-tdep.c (cris_gdbarch_init): Ditto.
6872 * avr-tdep.c (avr_gdbarch_init): Ditto.
6873 * arm-tdep.c (arm_gdbarch_init): Ditto.
6875 2003-03-31 J. Brobecker <brobecker@gnat.com>
6877 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6878 (INIT_FRAME_AP): Likewise.
6879 (EXTRA_FRAME_INFO): Likewise.
6881 2003-03-31 Andrew Cagney <cagney@redhat.com>
6883 * gdbarch.sh: Include "symfile.h".
6884 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6885 * gdbarch.h, gdbarch.c: Re-generate.
6886 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6887 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6888 call_dummy_address, the default is at entry_point_address.
6889 * v850-tdep.c (v850_gdbarch_init): Ditto.
6890 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6891 * sh-tdep.c (sh_gdbarch_init): Ditto.
6892 * s390-tdep.c (s390_gdbarch_init): Ditto.
6893 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6894 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6895 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6896 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6897 * i386-tdep.c (i386_gdbarch_init): Ditto.
6898 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6899 * frv-tdep.c (frv_gdbarch_init): Ditto.
6900 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6901 * cris-tdep.c (cris_gdbarch_init): Ditto.
6902 * arm-tdep.c (arm_gdbarch_init): Ditto.
6904 2003-03-31 Andrew Cagney <cagney@redhat.com>
6906 * gdbarch.sh (CALL_DUMMY_P): Delete.
6907 * gdbarch.h, gdbarch.c: Re-generate.
6908 * inferior.h (CALL_DUMMY_P): Delete macro.
6909 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6910 * vax-tdep.c (vax_gdbarch_init): Update.
6911 * v850-tdep.c (v850_gdbarch_init): Update.
6912 * sparc-tdep.c (sparc_gdbarch_init): Update.
6913 * sh-tdep.c (sh_gdbarch_init): Update.
6914 * s390-tdep.c (s390_gdbarch_init): Update.
6915 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6916 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6917 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6918 * mips-tdep.c (mips_gdbarch_init): Update.
6919 * mcore-tdep.c (mcore_gdbarch_init): Update.
6920 * m68k-tdep.c (m68k_gdbarch_init): Update.
6921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6922 * ia64-tdep.c (ia64_gdbarch_init): Update.
6923 * i386-tdep.c (i386_gdbarch_init): Update.
6924 * h8300-tdep.c (h8300_gdbarch_init): Update.
6925 * frv-tdep.c (frv_gdbarch_init): Update.
6926 * d10v-tdep.c (d10v_gdbarch_init): Update.
6927 * cris-tdep.c (cris_gdbarch_init): Update.
6928 * breakpoint.c (deprecated_frame_in_dummy): Update.
6929 * avr-tdep.c (avr_gdbarch_init): Update.
6930 * alpha-tdep.c (alpha_gdbarch_init): Update.
6931 * arm-tdep.c (arm_gdbarch_init): Update.
6932 * dummy-frame.c (dummy_frame_this_id): Update comments.
6933 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6934 * frame.c (legacy_get_prev_frame): Ditto.
6935 * valops.c (call_function_by_hand): Delete function.
6936 (hand_function_call): Rename to call_function_by_hand
6938 2003-03-30 Andrew Cagney <cagney@redhat.com>
6940 2002-11-10 Klee Dienes <kdienes@apple.com>
6941 * value.h (struct value): Update comment.
6943 2003-03-30 Andrew Cagney <cagney@redhat.com>
6945 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6947 (d10v_gdbarch_init): Do not set fp_regnum.
6949 * frame.c (get_frame_base): Force ID initialization.
6950 (get_prev_frame): Move computation of the frame ID from here ...
6951 (get_frame_id): ... to here.
6952 (legacy_get_prev_frame): Mark the frame ID as valid.
6953 * frame.h (struct frame_info): Add field "id_p".
6955 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6957 * i386-tdep.c (i386_store_struct_return): Removed.
6958 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6960 2003-03-30 Andrew Cagney <cagney@redhat.com>
6962 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6963 * gdbarch.h, gdbarch.c: Regenerate.
6964 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6965 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6966 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6967 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6968 * i386-tdep.c (i386_gdbarch_init): Ditto.
6969 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6970 * cris-tdep.c (cris_gdbarch_init): Ditto.
6971 * vax-tdep.c (vax_gdbarch_init): Ditto.
6972 * s390-tdep.c (s390_gdbarch_init): Ditto.
6973 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6974 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6975 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6976 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6977 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6978 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6979 * sparc-tdep.c (sparc_gdbarch_init): Update.
6980 * sh-tdep.c (sh_gdbarch_init): Update.
6981 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6982 * mips-tdep.c (mips_gdbarch_init): Update.
6983 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6984 * ia64-tdep.c (ia64_gdbarch_init): Update.
6985 * frv-tdep.c (frv_gdbarch_init): Update.
6986 * avr-tdep.c (avr_gdbarch_init): Update.
6987 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6988 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6989 instead of when push_dummy_call is not available.
6991 2003-03-30 Andrew Cagney <cagney@redhat.com>
6993 * infttrace.c: Include "gdbthread.h".
6994 (parent_attach_all): Fix function signature.
6995 (call_ptrace): Update call.
6996 * Makefile.in (infttrace.o): Update dependencies.
6998 2003-03-30 Andrew Cagney <cagney@redhat.com>
7000 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7001 PUSH_RETURN_ADDRESS.
7002 * gdbarch.h, gdbarch.c: Regenerate.
7003 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7004 * x86-64-tdep.c (x86_64_init_abi): Update.
7005 * v850-tdep.c (v850_gdbarch_init): Update.
7006 * sparc-tdep.c (sparc_gdbarch_init): Update.
7007 * sh-tdep.c (sh_gdbarch_init): Update.
7008 * s390-tdep.c (s390_gdbarch_init): Update.
7009 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7010 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7011 * mips-tdep.c (mips_gdbarch_init): Update.
7012 * mcore-tdep.c (mcore_gdbarch_init): Update.
7013 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7014 * ia64-tdep.c (ia64_gdbarch_init): Update.
7015 * i386-tdep.c (i386_gdbarch_init): Update.
7016 * h8300-tdep.c (h8300_gdbarch_init): Update.
7017 * frv-tdep.c (frv_gdbarch_init): Update.
7018 * cris-tdep.c (cris_gdbarch_init): Update.
7019 * avr-tdep.c (avr_gdbarch_init): Update.
7020 * arm-tdep.c (arm_gdbarch_init): Update.
7021 * valops.c (hand_function_call): Update.
7023 2003-03-29 Andrew Cagney <cagney@redhat.com>
7025 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7026 sizeof_call_dummy_words.
7027 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7029 * gdbarch.h: Regenerate.
7031 2003-03-29 Andrew Cagney <cagney@redhat.com>
7033 * infttrace.h: New file.
7034 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7035 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7036 (hpread_read_doc_function_type): Detect an initialized type1.
7037 (hpread_quick_traverse): Initialize mod_name_string.
7038 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7039 (som_solib_get_solib_by_pc): Declare.
7040 (so_lib_thread_start_addr): Declare.
7041 (no_shared_libraries): Declare.
7042 * somread.c (init_import_symbols): Make static. Add forward
7044 * config/pa/nm-hppah.h: Include "infttrace.h" for
7046 (hppa_insert_hw_watchpoint): Declare.
7047 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7048 * hppah-nat.c: Include "gdb_string.h".
7049 (parent_attach_all): Delete extern declaration, moved to
7051 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7053 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7054 * Makefile.in (infttrace_h): Define.
7055 (hpread.o): Update dependencies.
7056 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7057 * hppa-hpux-tdep.c: Include "gdb_string.h".
7058 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7059 * infrun.c (handle_inferior_event): Always initialize
7060 stepped_after_stopped_by_watchpoint. Add default and remove
7061 fallthrough in switch statement.
7062 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7064 (hppa_remove_hw_watchpoint): Ditto.
7066 2003-03-29 Andrew Cagney <cagney@redhat.com>
7068 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7071 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7073 * arm-tdep.c (arm_push_arguments): Delete.
7074 (struct stack_item): New type.
7075 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7076 (arm_store_struct_return): Delte.
7077 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7078 arm_push_arguments or arm_store_struct_return.
7080 2003-03-28 Andrew Cagney <cagney@redhat.com>
7082 * Makefile.in (d10v-tdep.o): Update dependencies.
7083 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7084 * d10v-tdep.c: Include "remote.h".
7085 (target_resume_hook): Delete extern declaration.
7086 (target_wait_loop_hook): Ditto.
7087 (tdisassemble_command): Eliminate assignment in "if" conditional.
7088 (d10v_ts2_register_sim_regno): Eliminate call to
7089 legacy_register_sim_regno.
7090 (d10v_ts3_register_sim_regno): Ditto.
7092 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7094 * thread.c: Reindented.
7096 * linux-proc.c: Ditto.
7098 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7100 * MAINTAINERS (write after approval): Add myself.
7102 2003-03-27 Theodore A. Roth <troth@openavr.org>
7104 * objc-exp.y: Add missing semi-colons.
7106 2003-03-27 Andrew Cagney <cagney@redhat.com>
7108 * regcache.c (write_sp): Delete function and references.
7109 * inferior.h (write_sp): Delete declaration.
7110 * valops.c (hand_function_call): Replace write_sp with
7112 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7113 (sparc_pop_frame): Ditto.
7115 2003-03-27 Andrew Cagney <cagney@redhat.com>
7117 * NEWS: Mention removal of support for hppa*-*-bsd* and
7118 hppa*-*-osf* natives, and hppa*-*-pro* target.
7119 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7120 * config/pa/xm-pa.h: Obsolete file.
7121 * config/pa/xm-hppab.h: Obsolete file.
7122 * config/pa/nm-hppab.h: Obsolete file.
7123 * config/pa/tm-hppab.h: Obsolete file.
7124 * config/pa/tm-hppao.h: Obsolete file.
7125 * config/pa/nm-hppao.h: Obsolete file.
7126 * config/pa/tm-pro.h: Obsolete file.
7127 * config/pa/hppaosf.mt: Obsolete file.
7128 * config/pa/hppaosf.mh: Obsolete file.
7129 * config/pa/hppapro.mt: Obsolete file.
7130 * config/pa/hppabsd.mt: Obsolete file.
7131 * config/pa/hppabsd.mh: Obsolete file.
7132 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7133 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7136 2003-03-27 Andrew Cagney <cagney@redhat.com>
7138 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7139 push_arguments. Don't set push_return_address or write_sp.
7140 (d10v_push_dummy_call): Replace d10v_push_arguments.
7141 (d10v_push_return_address, d10v_write_sp): Delete function,
7142 handled by push_dummy_call.
7144 2003-03-26 Andrew Cagney <cagney@redhat.com>
7146 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7147 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7148 regcache and dummy_addr parameters.
7149 * gdbarch.h, gdbarch.c: Re-generate.
7150 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7151 available; assume it will handle stack alignment and return
7152 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7153 legacy_push_arguments.
7154 (legacy_push_arguments): Rename default_push_arguments.
7155 * value.h (legacy_push_arguments): Rename default_push_arguments.
7156 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7157 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7158 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7159 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7160 * config/i386/tm-symmetry.h: Update.
7161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7162 * x86-64-tdep.c (x86_64_init_abi): Update.
7163 * v850-tdep.c (v850_gdbarch_init): Update.
7164 * sparc-tdep.c (sparc_gdbarch_init): Update.
7165 * sh-tdep.c (sh_gdbarch_init): Update.
7166 * s390-tdep.c (s390_gdbarch_init): Update.
7167 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7168 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7169 * mips-tdep.c (mips_gdbarch_init): Update.
7170 * mcore-tdep.c (mcore_gdbarch_init): Update.
7171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7172 * ia64-tdep.c (ia64_gdbarch_init): Update.
7173 * i386-tdep.c (i386_gdbarch_init): Update.
7174 * hppa-tdep.c (hppa_gdbarch_init): Update.
7175 * h8300-tdep.c (h8300_gdbarch_init): Update.
7176 * frv-tdep.c (frv_gdbarch_init): Update.
7177 * d10v-tdep.c (d10v_gdbarch_init): Update.
7178 * cris-tdep.c (cris_gdbarch_init): Update.
7179 * avr-tdep.c (avr_gdbarch_init): Update.
7180 * arm-tdep.c (arm_gdbarch_init): Update.
7181 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7182 * alpha-tdep.c (alpha_gdbarch_init): Update.
7184 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7186 * signals/signals.c (do_target_signal_to_host): Correct realtime
7189 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7191 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7192 (struct sal_chain, map_catch_names): Remove.
7193 (catch_exception_command_1): Don't call
7194 handle_gnu_4_16_catch_command.
7196 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7198 From Mark Dettinger <dettinge@de.ibm.com>:
7199 * dwarf2cfi.c (read_2u): Increment pointer by two.
7201 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7203 * signals/signals.c: Fix typos in last change.
7205 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7207 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7208 not already defined. Use __SIGRTMIN if available.
7209 (target_signal_from_host): Remove SIGRTMIN block.
7210 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7211 the signal is within the realtime range.
7213 2003-03-25 Adam Fedor <fedor@gnu.org>
7215 * Makefile.in (infrun.o): Add $(language_h)
7216 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7217 for language specific trampolines.
7218 * language.h (struct language_defn): Add skip_trampoline.
7219 (skip_language_trampoline): Declare.
7220 * language.c (unk_lang_trampoline, skip_language_trampoline):
7222 (unknown_language_defn, auto_language_defn, local_language_defn):
7223 Add ukn_lang_trampoline.
7224 * ada-lang.c (ada_language_defn): Add NULL for language
7225 specific skip_trampoline.
7226 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7227 scm-lang.c: Likewise.
7228 * objc-lang.c (objc_skip_trampoline): New function.
7229 (objc_language_defn): Add objc_skip_trampoline.
7231 2003-03-25 Andrew Cagney <cagney@redhat.com>
7233 * frame.c (get_prev_frame): Delay validating a frame's ID -
7234 non-NULL, didn't go backwards - until an attempt to unwind it to
7237 2003-03-25 Andrew Cagney <cagney@redhat.com>
7239 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7240 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7241 * gdbarch.h, gdbarch.c: Re-generate.
7242 * config/sparc/tm-sparc.h
7243 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7244 * sparc-tdep.c (sparc_gdbarch_init): Set
7245 deprecated_extra_stack_alignment_needed.
7246 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7248 extra_stack_alignment_needed.
7249 * v850-tdep.c (v850_gdbarch_init): Ditto.
7250 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7251 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7252 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7253 * cris-tdep.c (cris_gdbarch_init): Ditto.
7254 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7257 2003-03-25 Andrew Cagney <cagney@redhat.com>
7259 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7260 STORE_STRUCT_RETURN.
7261 * gdbarch.h, gdbarch.c: Regenerate.
7262 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7263 (d10v_push_arguments): Set the struct return register.
7264 (d10v_gdbarch_init): Update.
7265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7266 * x86-64-tdep.c (x86_64_init_abi): Update.
7267 * vax-tdep.c (vax_gdbarch_init): Update.
7268 * v850-tdep.c (v850_gdbarch_init): Update.
7269 * sparc-tdep.c (sparc_gdbarch_init): Update.
7270 * sh-tdep.c (sh_gdbarch_init): Update.
7271 * s390-tdep.c (s390_gdbarch_init): Update.
7272 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7273 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7275 * mips-tdep.c (mips_gdbarch_init): Update.
7276 * mcore-tdep.c (mcore_gdbarch_init): Update.
7277 * m68k-tdep.c (m68k_gdbarch_init): Update.
7278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7279 * ia64-tdep.c (ia64_gdbarch_init): Update.
7280 * i386-tdep.c (i386_gdbarch_init): Update.
7281 * hppa-tdep.c (hppa_gdbarch_init): Update.
7282 * h8300-tdep.c (h8300_gdbarch_init): Update.
7283 * frv-tdep.c (frv_gdbarch_init): Update.
7284 * cris-tdep.c (cris_gdbarch_init): Update.
7285 * avr-tdep.c (avr_gdbarch_init): Update.
7286 * arm-tdep.c (arm_gdbarch_init): Update.
7287 * alpha-tdep.c (alpha_gdbarch_init): Update.
7289 2003-03-25 Andrew Cagney <cagney@redhat.com>
7291 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7292 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7293 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7294 * gdbarch.h, gdbarch.c: Regenerate.
7295 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7296 call_dummy_stack_adjust_p.
7297 * vax-tdep.c (vax_gdbarch_init): Ditto.
7298 * v850-tdep.c (v850_gdbarch_init): Ditto.
7299 * sh-tdep.c (sh_gdbarch_init): Ditto.
7300 * s390-tdep.c (s390_gdbarch_init): Ditto.
7301 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7302 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7303 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7304 * mips-tdep.c (mips_gdbarch_init): Ditto.
7305 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7306 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7307 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7308 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7309 * i386-tdep.c (i386_gdbarch_init): Ditto.
7310 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7311 * frv-tdep.c (frv_gdbarch_init): Ditto.
7312 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7313 * cris-tdep.c (cris_gdbarch_init): Ditto.
7314 * avr-tdep.c (avr_gdbarch_init): Ditto.
7315 * arm-tdep.c (arm_gdbarch_init): Ditto.
7316 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7317 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7318 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7319 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7320 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7321 call_dummy_stack_adjust_p.
7322 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7323 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7324 * sparc-tdep.c (sparc32_push_arguments): Update.
7325 * valops.c (hand_function_call): Update.
7327 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7329 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7330 set_gdbarch_char_signed.
7332 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7335 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7337 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7339 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7340 (_initialize_arm_tdep): Don't set tm_print_insn.
7342 2003-03-24 Adam Fedor <fedor@gnu.org>
7344 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7345 * objc-lang.h: Add multiple inclusion protection.
7346 (start_msglist, add_msglist, end_msglist): Additional declarations.
7348 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7350 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7351 value was renamed to ARM_FLOAT_SOFT_FPA.
7353 2003-03-23 Andrew Cagney <cagney@redhat.com>
7355 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7356 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7357 * gdbarch.h, gdbarch.c: Regenerate.
7358 * valops.c (hand_function_call): Update.
7359 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7360 * frame.c (legacy_saved_regs_this_id): Update.
7361 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7362 * dummy-frame.h: Update.
7363 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7364 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7365 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7366 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7367 * config/m68k/tm-sun3.h: Update.
7368 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7370 * x86-64-tdep.c (x86_64_init_abi): Update.
7371 * vax-tdep.c (vax_gdbarch_init): Update.
7372 * v850-tdep.c (v850_gdbarch_init): Update.
7373 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7374 * sh-tdep.c (sh_gdbarch_init): Update.
7375 * s390-tdep.c (s390_gdbarch_init): Update.
7376 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7377 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7378 (frame_get_saved_regs): Update.
7379 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7380 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7381 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7382 * mips-tdep.c (mips_gdbarch_init): Update.
7383 * mcore-tdep.c (mcore_gdbarch_init): Update.
7384 * m68k-tdep.c (m68k_gdbarch_init): Update.
7385 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7386 * ia64-tdep.c (ia64_gdbarch_init): Update.
7387 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7388 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7389 (i386_interix_back_one_frame): Update.
7390 * hppa-tdep.c (hppa_gdbarch_init): Update.
7391 (hppa_init_extra_frame_info): Update.
7392 * h8300-tdep.c (h8300_gdbarch_init): Update.
7393 * frv-tdep.c (frv_gdbarch_init): Update.
7394 * cris-tdep.c (cris_gdbarch_init): Update.
7395 * avr-tdep.c (avr_gdbarch_init): Update.
7396 * arm-tdep.c (arm_gdbarch_init): Update.
7397 * alpha-tdep.c (alpha_gdbarch_init): Update.
7399 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7401 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7402 (arm_get_fp_model): Declare.
7403 * arm-tdep.c (fp_model_strings): New string array.
7404 (arm_fp_model, current_fp_model): New variables.
7405 (arm_get_fp_model): New function.
7406 (arm_set_fp): New function.
7407 (set_fp_model_sfunc): New function.
7408 (show_fp_model): New function.
7409 (_initialize_arm_tdep): Add new command to set/show the FPU.
7410 (arm_extract_return_value): Use arm_get_fp_model.
7411 (arm_store_return_value): Likewise.
7412 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7413 to initialize the floating-point data types.
7414 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7417 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7419 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7420 the current setting of each value.
7421 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7422 new_set and new_show. Use add_setshow_cmd_full and
7423 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7424 commands and add new version as subcommands of "set/show arm".
7426 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7428 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7429 (set_arm_command, show_arm_command): New functions.
7430 (_initialize_arm_tdep): Add them.
7431 (num_disassembly_options): Renamed from num_flavor_options.
7432 (valid_disassembly_styles): Renamed from valid_flavors.
7433 (disassembly_style): Renamed from disassembly_flavor.
7434 (set_disassembly_style_sfunc): Renamed from
7435 set_disassembly_flavor_sfunc.
7436 (set_disassembly_style): Renamed from set_disassembly_flavor.
7437 (arm_othernames): Updated.
7438 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7439 command. Add "set/show arm disassembly" commands. Deprecate
7440 "othernames" command.
7442 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7444 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7445 (arm-tdep.o): Depend on elf_arm_h.
7447 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7449 * Makefile.in (coff_internal_h): Define.
7450 (arm-tdep.o): Update dependencies.
7452 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7454 * arm-tdep.c (prologue_cache): Delete.
7455 (check_prologue_cache, save_prologue_cache): Delete.
7456 (arm_scan_prologue): Don't check or update the prologue_cache.
7457 (arm_gdb_arch_init): Don't initialize it.
7458 (_initialize_arm_tdep): Likewise.
7460 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7462 * MAINTAINERS (tui): Maintainer of tui code.
7464 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7466 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7467 (i386-cygwin-tdep.o): Add dependencies.
7468 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7469 * i386-cygwin-tdep.c: New file.
7470 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7471 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7473 2003-03-20 Andrew Cagney <cagney@redhat.com>
7475 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7476 (handle_inferior_event): Remove code calling
7477 DYNAMIC_TRAMPOLINE_NEXTPC.
7479 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7480 already has a full path.
7482 * main.c (gdb_main): Return 1.
7483 (captured_main): Call error to report an invalid interpreter.
7485 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7486 * alpha-osf1-tdep.c: Include "gdb_string.h".
7488 2003-03-19 J. Brobecker <brobecker@gnat.com>
7490 Continuing work to convert the hppa targets to multiarch partial.
7492 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7493 method, now that hppa_push_dummy_frame has a conformant prototype.
7494 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7495 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7496 for the switch to multiarch partial.
7498 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7500 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7501 when iss is issNull.
7503 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7505 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7506 NUM_REGS bounds check.
7508 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7510 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7511 * mips-tdep.c (gdb_assert.h): Include.
7512 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7513 (mips_register_name): Handle integer registers explicitly. Add
7515 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7516 (mips_lsi33k_reg_names): Don't list integer registers; they're
7517 handled by mips_register_name() now.
7518 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7519 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7520 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7521 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7522 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7524 2003-03-18 Andrew Cagney <cagney@redhat.com>
7526 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7528 * gdbtypes.h (print_scalar_formatted): Update declaration.
7529 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7531 2003-03-18 J. Brobecker <brobecker@gnat.com>
7533 * infrun.c (observer.h): Add #include.
7534 (normal_stop): Add call to observer_notify_normal_stop.
7535 * Makefile.in (infrun.o): Add dependency on observer.h.
7537 2003-03-18 J. Brobecker <brobecker@gnat.com>
7539 Continuing work to convert the hppa targets to multiarch partial.
7540 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7541 parameter. Reformat comment.
7542 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7543 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7544 to match new profile.
7546 2003-03-18 J. Brobecker <brobecker@gnat.com>
7548 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7549 appear to be working in any case.
7551 2003-03-18 J. Brobecker <brobecker@gnat.com>
7553 * observer.c (observer_test_first_observer): New static variable.
7554 (observer_test_second_observer): Likewise.
7555 (observer_test_third_observer): Likewise.
7556 (observer_test_first_notification_function): New static function.
7557 (observer_test_second_notification_function): Likewise.
7558 (observer_test_third_notification_function): Likewise.
7560 2003-03-17 J. Brobecker <brobecker@gnat.com>
7562 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7563 * somsolib.c (gdb_assert.h): Likewise.
7564 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7565 (somsolib.o): Likewise.
7567 2003-03-17 Andrew Cagney <cagney@redhat.com>
7569 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7570 BFD. Simplify setting of di.endian.
7572 2003-03-17 Andrew Cagney <cagney@redhat.com>
7574 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7575 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7577 From Elena Zannoni <ezannoni@redhat.com>
7578 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7579 vector and floating-point parameters.
7580 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7582 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7584 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7586 * MAINTAINERS: Remove my name from several maintainership roles.
7588 2003-03-17 Andrew Cagney <cagney@redhat.com>
7590 Fix frame off-by-one bug.
7591 * frame-unwind.h (frame_this_id_ftype): Replace
7592 frame_unwind_id_ftype.
7593 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7594 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7595 with "prev_register".
7596 * frame-unwind.c (frame_unwind_find_by_pc): Return
7597 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7599 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7600 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7601 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7602 (dummy_frame_unwind): Update.
7603 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7604 sentinel_frame_register_unwind.
7605 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7606 (sentinel_frame_unwinder): Update.
7607 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7608 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7609 * frame.c (create_sentinel_frame): Update. Initialize
7610 "prologue_cache" instead of "unwind_cache".
7611 (frame_register_unwind): Call this frame's prev_register with the
7612 next frame and this frame's prologue cache.
7613 (get_prev_frame): Simplify. Always call prev frame's this_id with
7614 this frame and prev frame's prologue cache. Document that this
7615 call is shifted one to the left when compared to the
7616 frame_register_unwind call.
7617 (legacy_saved_regs_prev_register): Replace
7618 frame_saved_regs_register_unwind.
7619 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7620 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7621 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7622 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7623 (d10v_frame_unwind): Update.
7624 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7625 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7626 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7627 "saved_regs" with "this_saved_regs".
7629 2003-03-16 Andrew Cagney <cagney@redhat.com>
7631 * frame.c (frame_pop): Don't call target_store_registers. Fix
7632 problem reported by Mark Kettenis.
7634 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7636 * i386-tdep.c (i386_register_type): Renamed from
7637 i386_register_virtual_type. Adjust function signature.
7638 (i386_gdbarch_init): Set register_type instead of
7639 deprecated_max_register_raw_size,
7640 deprecated_max_register_virtual_size and register_virtual_type.
7642 2003-03-14 Andrew Cagney <cagney@redhat.com>
7644 * frame.c (get_prev_frame): When a legacy frame, always call
7645 legacy_get_prev_frame. Simplify unwind code using assumption that
7646 the unwinder is new.
7647 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7648 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7649 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7651 2003-03-14 Andrew Cagney <cagney@redhat.com>
7653 * frame.c (get_saved_register): Delete function.
7654 * frame.h (get_saved_register): Delete declaration.
7655 * xstormy16-tdep.c: Update comment.
7656 * regcache.h: Update comments.
7657 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7658 get_saved_register and extract_address, use
7659 frame_read_unsigned_register.
7660 (sparc_frame_saved_pc): Ditto.
7661 (sparc_get_saved_register): Instead of get_saved_register, use
7663 (sparc_pop_frame): Ditto.
7664 * findvar.c: Update comments.
7665 (value_of_register): Call frame_register instead of
7667 (value_from_register): Ditto.
7668 * config/sparc/tm-sparc.h: Update comment.
7669 * breakpoint.c: Update comment.
7671 2003-03-14 Andrew Cagney <cagney@redhat.com>
7673 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7675 * gdbarch.h, gdbarch.c: Re-generate.
7676 * frame.h: Update comments.
7677 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7678 * x86-64-tdep.c (x86_64_init_abi): Update.
7679 * sparc-tdep.c (sparc_gdbarch_init): Update.
7680 * sh-tdep.c (sh_gdbarch_init): Update.
7681 * mips-tdep.c (mips_gdbarch_init): Update.
7682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7683 * cris-tdep.c (cris_gdbarch_init): Update.
7684 * ia64-tdep.c (ia64_gdbarch_init): Update.
7685 * frame.c (frame_register): Update.
7686 (get_saved_register): Update.
7687 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7689 2003-03-13 Andrew Cagney <cagney@redhat.com>
7691 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7692 * gdbarch.h, gdbarch.c: Regenerate.
7693 * valops.c (hand_function_call): Update comment.
7694 * stack.c (return_command): Update comment.
7695 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7696 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7697 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7698 * x86-64-tdep.c (x86_64_init_abi): Update.
7699 * vax-tdep.c (vax_gdbarch_init): Update.
7700 * v850-tdep.c (v850_gdbarch_init): Update.
7701 * sparc-tdep.c (sparc_gdbarch_init): Update.
7702 * sh-tdep.c (sh_gdbarch_init): Update.
7703 * s390-tdep.c (s390_gdbarch_init): Update.
7704 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7705 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7706 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7707 * mips-tdep.c (mips_gdbarch_init): Update.
7708 * mcore-tdep.c (mcore_gdbarch_init): Update.
7709 * m68k-tdep.c (m68k_gdbarch_init): Update.
7710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7711 * ia64-tdep.c (ia64_gdbarch_init): Update.
7712 * i386-tdep.c (i386_gdbarch_init): Update.
7713 * hppa-tdep.c (hppa_gdbarch_init): Update.
7714 * h8300-tdep.c (h8300_gdbarch_init): Update.
7715 * frv-tdep.c (frv_gdbarch_init): Update.
7716 * cris-tdep.c (cris_gdbarch_init): Update.
7717 * avr-tdep.c (avr_gdbarch_init): Update.
7718 * arm-tdep.c (arm_gdbarch_init): Update.
7719 * alpha-tdep.c (alpha_gdbarch_init): Update.
7721 2003-03-13 Andrew Cagney <cagney@redhat.com>
7723 * frame.c (legacy_frame_p): New function.
7724 (get_prev_frame): Use legacy_frame_p.
7725 * frame.h (legacy_frame_p): Declare.
7727 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7729 * MAINTAINERS (write after approval): Alphabetically
7732 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7734 * MAINTAINERS (write after approval): Add myself.
7736 2003-03-12 Andrew Cagney <cagney@redhat.com>
7738 * frame.c (get_prev_frame): Rename the frame parameter to
7740 (get_next_frame, legacy_get_prev_frame): Ditto.
7742 2003-03-12 Andrew Cagney <cagney@redhat.com>
7744 * frame.c (get_current_frame): Check target_has_registers before
7745 checking target_has_stack.
7746 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7747 instead of deprecated_selected_frame.
7748 * findvar.c (value_of_register): Pass "frame", not
7749 deprecated_selected_frame, to value_of_builtin_reg.
7751 2003-03-12 Andrew Cagney <cagney@redhat.com>
7753 * regcache.c (regcache_cooked_write_signed): New function.
7754 (regcache_cooked_write_unsigned): New function.
7755 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7756 (regcache_cooked_read_signed): Fix regnum in range assertion.
7757 * regcache.h (regcache_cooked_write_signed): Declare.
7758 (regcache_cooked_write_unsigned): Declare.
7760 2003-03-12 Andrew Cagney <cagney@redhat.com>
7762 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7763 * gdbarch.h, gdbarch.c: Re-generate.
7764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7765 * x86-64-tdep.h: Update.
7766 * x86-64-tdep.c (x86_64_init_abi): Update.
7767 * v850-tdep.c (v850_gdbarch_init): Update.
7768 * sparc-tdep.c (sparc_gdbarch_init): Update.
7769 * sh-tdep.c (sh_gdbarch_init): Update.
7770 * s390-tdep.c (s390_gdbarch_init): Update.
7771 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7772 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7773 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7774 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7775 * mips-tdep.c (mips_gdbarch_init): Update.
7776 * mcore-tdep.c (mcore_gdbarch_init): Update.
7777 * m68k-tdep.c (m68k_gdbarch_init): Update.
7778 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7779 * ia64-tdep.c (ia64_gdbarch_init): Update.
7780 * i386-tdep.c (i386_gdbarch_init): Update.
7781 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7782 * hppa-tdep.c (hppa_gdbarch_init): Update.
7783 * h8300-tdep.c (h8300_gdbarch_init): Update.
7784 * frv-tdep.c (frv_gdbarch_init): Update.
7785 * cris-tdep.c (cris_gdbarch_init): Update.
7786 * avr-tdep.c (avr_gdbarch_init): Update.
7787 * arm-tdep.c (arm_gdbarch_init): Update.
7788 * alpha-tdep.c (alpha_gdbarch_init): Update.
7789 * sh-tdep.c (sh_init_extra_frame_info): Update.
7790 (sh64_init_extra_frame_info): Update.
7791 * ns32knbsd-nat.c (frame_num_args): Update.
7792 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7793 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7794 (xstormy16_frame_chain_valid): Update.
7795 * vax-tdep.c (vax_saved_pc_after_call): Update.
7796 * v850-tdep.c (v850_frame_chain): Update.
7797 (v850_pop_frame): Update.
7798 (v850_init_extra_frame_info): Update.
7799 * sparc-tdep.c (setup_arbitrary_frame): Update.
7800 * ns32k-tdep.c (umax_frame_num_args): Update.
7801 * s390-tdep.c (s390_pop_frame_regular): Update.
7802 * mn10300-tdep.c (mn10300_frame_chain): Update.
7803 (mn10300_pop_frame_regular): Update.
7804 (mn10300_init_extra_frame_info): Update.
7805 * mips-tdep.c (mips_init_frame_pc_first): Update.
7806 (mips_frame_chain): Update.
7807 (mips_pop_frame): Update.
7808 * mcore-tdep.c (mcore_frame_chain): Update.
7809 (mcore_pop_frame): Update.
7810 (mcore_init_extra_frame_info): Update.
7811 * arch-utils.c (init_frame_pc_default): Update.
7812 * m68k-tdep.c (isi_frame_num_args): Update.
7813 (delta68_frame_num_args): Update.
7814 (news_frame_num_args): Update.
7815 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7816 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7817 (alpha_frame_chain): Update.
7818 (alpha_pop_frame): Update.
7819 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7820 (hppa_init_extra_frame_info): Update.
7821 (hppa_frame_chain): Update.
7822 (hppa_frame_chain_valid): Update.
7823 * cris-tdep.c (cris_init_extra_frame_info): Update.
7824 * avr-tdep.c (avr_init_extra_frame_info): Update.
7825 * arm-tdep.c (arm_frame_chain_valid): Update.
7826 (arm_init_extra_frame_info): Update.
7827 (arm_pop_frame): Update.
7828 * frame.c (frame_pc_unwind): Update.
7829 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7830 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7831 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7832 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7833 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7834 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7836 2003-03-12 Andrew Cagney <cagney@redhat.com>
7838 Eliminate the need for POP_FRAME.
7839 * frame.c (do_frame_unwind_register): New function.
7840 (frame_pop): When no POP_FRAME, pop the frame using register
7841 unwind and a scratch regcache.
7842 (frame_saved_regs_pop): Delete function.
7843 (trad_frame_unwinder): Update.
7844 * d10v-tdep.c (d10v_frame_pop): Delete function.
7845 (d10v_frame_unwind): Update.
7846 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7847 (sentinel_frame_unwinder): Update.
7848 * dummy-frame.c (dummy_frame_pop): Delete function.
7849 (dummy_frame_unwind): Update.
7850 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7851 (struct frame_unwind): Update.
7853 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7855 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7856 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7857 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7858 Do range checks on register number obtained from debugging info.
7859 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7860 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7861 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7863 (do_fp_register_row): Fix typo which caused double type to be
7864 used when attempting to unpack a float.
7866 2003-03-11 J. Brobecker <brobecker@gnat.com>
7868 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7870 2003-03-11 Andrew Cagney <cagney@redhat.com>
7872 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7873 frame. Problem found by Corinna Vinschen.
7875 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7877 * doublest.c (floatformat_from_length): Accept also
7878 the real size of 'long double' type.
7880 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7882 From Klee Dienes <kdienes@apple.com>:
7883 * breakpoint.c (bpstat_copy): Copy the command lines as well
7884 as the old value, to match what is freed in bpstat_clear.
7886 2003-03-10 David Carlton <carlton@math.stanford.edu>
7888 * minsyms.c (add_minsym_to_hash_table): Replace
7889 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7890 (compare_minimal_symbols, compact_minimal_symbols)
7891 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7892 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7893 of DEPRECATED_SYMBOL_MATCHES_NAME.
7894 (lookup_minimal_symbol_solib_trampoline): Ditto.
7896 2003-03-10 Andrew Cagney <cagney@redhat.com>
7898 * regcache.h (regcache_cooked_read_ftype): Define.
7899 (regcache_save, regcache_restore): Add a cooked_read parameter.
7900 * regcache.c (regcache_save, regcache_restore): Update.
7901 (do_cooked_read): New function.
7902 (regcache_cpy): Pass do_cooked_read to regcache_save and
7905 2003-03-10 Andrew Cagney <cagney@redhat.com>
7907 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7908 * gdbarch.h, gdbarch.c: Re-generate.
7909 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7910 * x86-64-tdep.h: Update.
7911 * x86-64-tdep.c (x86_64_init_abi): Update.
7912 * v850-tdep.c (v850_gdbarch_init): Update.
7913 * sparc-tdep.c (sparc_gdbarch_init): Update.
7914 * sh-tdep.c (sh_gdbarch_init): Update.
7915 * s390-tdep.c (s390_gdbarch_init): Update.
7916 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7917 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7918 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7919 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7920 * mips-tdep.c (mips_gdbarch_init): Update.
7921 * mcore-tdep.c (mcore_gdbarch_init): Update.
7922 * m68k-tdep.c (m68k_gdbarch_init): Update.
7923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7924 * ia64-tdep.c (ia64_gdbarch_init): Update.
7925 * i386-tdep.c (i386_gdbarch_init): Update.
7926 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7927 * hppa-tdep.c (hppa_gdbarch_init): Update.
7928 * h8300-tdep.c (h8300_gdbarch_init): Update.
7929 * frv-tdep.c (frv_gdbarch_init): Update.
7930 * cris-tdep.c (cris_gdbarch_init): Update.
7931 * avr-tdep.c (avr_gdbarch_init): Update.
7932 * arm-tdep.c (arm_gdbarch_init): Update.
7933 * alpha-tdep.c (alpha_gdbarch_init): Update.
7934 * sh-tdep.c (sh_init_extra_frame_info): Update.
7935 (sh64_init_extra_frame_info): Update.
7936 * ns32knbsd-nat.c (frame_num_args): Update.
7937 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7938 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7939 (xstormy16_frame_chain_valid): Update.
7940 * vax-tdep.c (vax_saved_pc_after_call): Update.
7941 * v850-tdep.c (v850_frame_chain): Update.
7942 (v850_pop_frame): Update.
7943 (v850_init_extra_frame_info): Update.
7944 * sparc-tdep.c (setup_arbitrary_frame): Update.
7945 * ns32k-tdep.c (umax_frame_num_args): Update.
7946 * s390-tdep.c (s390_pop_frame_regular): Update.
7947 * mn10300-tdep.c (mn10300_frame_chain): Update.
7948 (mn10300_pop_frame_regular): Update.
7949 (mn10300_init_extra_frame_info): Update.
7950 * mips-tdep.c (mips_init_frame_pc_first): Update.
7951 (mips_frame_chain): Update.
7952 (mips_pop_frame): Update.
7953 * mcore-tdep.c (mcore_frame_chain): Update.
7954 (mcore_pop_frame): Update.
7955 (mcore_init_extra_frame_info): Update.
7956 * arch-utils.c (init_frame_pc_default): Update.
7957 * m68k-tdep.c (isi_frame_num_args): Update.
7958 (delta68_frame_num_args): Update.
7959 (news_frame_num_args): Update.
7960 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7961 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7962 (alpha_frame_chain): Update.
7963 (alpha_pop_frame): Update.
7964 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7965 (hppa_init_extra_frame_info): Update.
7966 (hppa_frame_chain): Update.
7967 (hppa_frame_chain_valid): Update.
7968 * cris-tdep.c (cris_init_extra_frame_info): Update.
7969 * avr-tdep.c (avr_init_extra_frame_info): Update.
7970 * arm-tdep.c (arm_frame_chain_valid): Update.
7971 (arm_init_extra_frame_info): Update.
7972 (arm_pop_frame): Update.
7973 * frame.c (frame_pc_unwind): Update.
7974 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7975 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7976 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7977 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7978 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7979 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7981 2003-03-10 Andrew Cagney <cagney@redhat.com>
7983 * gdbarch.sh (gdbarch_unwind_pc): New method.
7984 * gdbarch.h, gdbarch.c: Regenerate.
7985 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7986 but use read_pc and FRAME_SAVED_PC as fall backs.
7987 (frame_saved_regs_pc_unwind): Delete function.
7988 (trad_frame_unwinder): Update.
7989 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7990 (struct frame_unwind): Update.
7991 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7992 (dummy_frame_unwind): Update.
7993 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7994 (sentinel_frame_unwinder): Update.
7995 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7996 (d10v_frame_unwind): Update.
7997 (d10v_unwind_pc): New function.
7998 (d10v_gdbarch_init): Set unwind_pc.
8000 2003-03-10 Andrew Cagney <cagney@redhat.com>
8002 * gdbarch.h: Re-generate.
8004 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8006 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8009 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8011 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8013 2003-03-08 Andrew Cagney <cagney@redhat.com>
8015 * cli-out.c: Update copyright.
8016 (cli_out_data): Define typedef. Use instead of ui_out_data.
8018 2003-03-08 Andrew Cagney <cagney@redhat.com>
8020 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8023 2003-03-07 Andrew Cagney <cagney@redhat.com>
8025 * gdbarch.sh: Don't generate two macro definitions when an
8026 undefined macro taking no arguments.
8027 * gdbarch.h: Regenerate.
8029 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8031 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8032 (x86_64_unwind_dummy_id): New functions.
8033 (x86_64_init_abi): Register these two new functions.
8035 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8037 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8038 (x86_64_skip_prologue): Move prologue detection to
8040 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8042 2003-03-05 Andrew Cagney <cagney@redhat.com>
8044 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8045 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8046 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8047 to use unwind_dummy_id when a dummy frame.
8048 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8050 * gdbarch.h, gdbarch.c: Regneerate.
8052 2003-03-05 Andrew Cagney <cagney@redhat.com>
8054 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8055 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8056 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8059 2003-03-05 Andrew Cagney <cagney@redhat.com>
8061 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8062 (struct d10v_unwind_cache): Delete field "frameless". Replace
8063 "next_addr" with "sp_offset". Add "r11_offset".
8064 (d10v_frame_unwind_cache): Update.
8065 (prologue_find_regs): Update. When "mv r11, sp", save the
8066 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8067 RN was saved in r11_offset.
8069 2003-03-05 Andrew Cagney <cagney@redhat.com>
8071 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8072 cached PC value in the next frame.
8074 2003-03-05 Andrew Cagney <cagney@redhat.com>
8076 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8077 "id_unwind_cache" with "id".
8078 (frame_id_unwind): Delete declaration.
8079 * frame.c (frame_id_unwind): Delete function.
8080 (get_prev_frame): Call the frame id unwind method directly. Store
8081 the returned next frame's ID value in NEXT_FRAME. Note that there
8082 is a problem with the wrong unwind ID being called with the wrong
8085 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8087 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8089 2003-03-05 James Ingham <jingham@apple.com>
8090 Daniel Jacobowitz <drow@mvista.com>
8092 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8093 (auto_cp_abi): New variable.
8094 (current_cp_abi, num_cp_abis): Make static.
8095 (CP_ABI_MAX): Define.
8096 (cp_abis): Turn into an array.
8097 (value_virtual_fn_field): Fix formatting.
8098 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8100 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8101 (list_cp_abis, _initialize_cp_abi): New functions.
8102 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8103 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8104 switch_to_cp_abi. Update prototype for register_cp_abi.
8105 * Makefile.in (cp-abi.o): Update dependencies.
8106 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8107 instead of switch_to_cp_abi.
8108 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8110 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8112 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8114 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8116 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8117 * dwarf2loc.c: Include "regcache.h".
8118 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8120 * Makefile.in (dwarf2loc.o): Update dependencies.
8122 2003-03-04 Theodore A. Roth <troth@openavr.org>
8124 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8125 number of io registers reported by remote target is not a multiple of
8128 2003-03-04 David Carlton <carlton@math.stanford.edu>
8130 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8131 (lookup_symbol_aux_psymtabs): Update call to
8132 lookup_partial_symbol.
8133 (lookup_transparent_type, find_main_psymtab)
8134 (make_symbol_overload_list): Ditto.
8136 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8138 * MAINTAINERS (Write after approval): Update my email address.
8140 2003-03-03 Andrew Cagney <cagney@redhat.com>
8142 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8143 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8144 predicate. Replace MAX_REGISTER_RAW_SIZE.
8145 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8146 MAX_REGISTER_VIRTUAL_SIZE.
8147 * regcache.c (legacy_max_register_raw_size): New function.
8148 (legacy_max_register_virtual_size): New function.
8149 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8150 (MAX_REGISTER_RAW_SIZE): Define.
8151 (legacy_max_register_raw_size): Declare.
8152 (legacy_max_register_virtual_size): Declare.
8153 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8154 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8155 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8156 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8157 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8158 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8159 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8160 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8161 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8163 * vax-tdep.c (vax_gdbarch_init): Update.
8164 * v850-tdep.c (v850_gdbarch_init): Update.
8165 * sparc-tdep.c (sparc_gdbarch_init): Update.
8166 * sh-tdep.c (sh_gdbarch_init): Update.
8167 * s390-tdep.c (s390_gdbarch_init): Update.
8168 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8169 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8170 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8171 * mips-tdep.c (mips_gdbarch_init): Update.
8172 * mcore-tdep.c (mcore_gdbarch_init): Update.
8173 * m68k-tdep.c (m68k_gdbarch_init): Update.
8174 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8175 * ia64-tdep.c (ia64_gdbarch_init): Update.
8176 * i386-tdep.c (i386_gdbarch_init): Update.
8177 * hppa-tdep.c (hppa_gdbarch_init): Update.
8178 * h8300-tdep.c (h8300_gdbarch_init): Update.
8179 * frv-tdep.c (frv_gdbarch_init): Update.
8180 * cris-tdep.c (cris_gdbarch_init): Update.
8181 * avr-tdep.c (avr_gdbarch_init): Update.
8182 * arm-tdep.c (arm_gdbarch_init): Update.
8183 * alpha-tdep.c (alpha_gdbarch_init): Update.
8184 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8185 max_register_raw_size or max_register_virtual_size.
8187 2003-03-03 David Carlton <carlton@math.stanford.edu>
8189 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8190 SYMBOL_MATCHES_NAME, add comment.
8191 (SYMBOL_MATCHES_NATURAL_NAME): New.
8192 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8193 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8194 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8195 * symtab.c (lookup_partial_symbol): Use
8196 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8198 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8199 SYMBOL_MATCHES_NAME.
8202 2003-03-03 David Carlton <carlton@math.stanford.edu>
8204 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8205 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8206 by regexp matching against SYMBOL_NATURAL_NAME.
8208 2003-03-03 David Carlton <carlton@math.stanford.edu>
8210 * linespec.c (find_method): Extract code into collect_methods.
8211 (collect_methods): New.
8213 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8215 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8218 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8219 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8221 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8223 * arch-utils.c (generic_register_byte): Fix to use the loop index
8224 and not regnum when summing the size of all registers up to regnum.
8226 2003-03-01 Andrew Cagney <cagney@redhat.com>
8228 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8229 FRAME_INIT_SAVED_REGS.
8230 * gdbarch.h, gdbarch.c: Regenerate.
8231 * stack.c (frame_info): Update.
8232 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8233 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8234 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8235 * ns32k-tdep.c (ns32k_pop_frame): Update.
8236 * mips-tdep.c (mips_pop_frame): Update.
8237 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8238 * ia64-tdep.c (ia64_frame_chain): Update.
8239 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8240 (ia64_frameless_function_invocation): Update.
8241 (ia64_init_extra_frame_info): Update.
8242 (ia64_pop_frame_regular): Update.
8243 * frame.h (struct frame_info): Update comment.
8244 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8245 * frame.c (frame_saved_regs_register_unwind): Update.
8246 (frame_saved_regs_register_unwind): Update.
8247 (deprecated_generic_get_saved_register): Update.
8248 * cris-tdep.c: Update comment.
8249 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8251 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8252 * x86-64-tdep.c (x86_64_init_abi): Update.
8253 * vax-tdep.c (vax_gdbarch_init): Update.
8254 * v850-tdep.c (v850_gdbarch_init): Update.
8255 * sparc-tdep.c (sparc_gdbarch_init): Update.
8256 * sh-tdep.c (sh_gdbarch_init): Update.
8257 * s390-tdep.c (s390_gdbarch_init): Update.
8258 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8259 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8260 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8261 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8262 * mips-tdep.c (mips_gdbarch_init): Update.
8263 * mcore-tdep.c (mcore_gdbarch_init): Update.
8264 * m68k-tdep.c (m68k_gdbarch_init): Update.
8265 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8266 * ia64-tdep.c (ia64_gdbarch_init): Update.
8267 * i386-tdep.c (i386_gdbarch_init): Update.
8268 * frv-tdep.c (frv_gdbarch_init): Update.
8269 * avr-tdep.c (avr_gdbarch_init): Update.
8270 * arm-tdep.c (arm_gdbarch_init): Update.
8271 * alpha-tdep.c (alpha_gdbarch_init): Update.
8273 2003-03-01 Andrew Cagney <cagney@redhat.com>
8275 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8276 option enum and switch. When no windows, set the interpreter to
8279 2003-03-01 Andrew Cagney <cagney@redhat.com>
8281 * main.c (captured_main): Replace magic option characters with an
8284 2003-03-01 Andrew Cagney <cagney@redhat.com>
8286 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8287 INIT_EXTRA_FRAME_INFO.
8288 * gdbarch.h, gdbarch.c: Regenerate.
8289 * arm-tdep.c: Update comments.
8290 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8291 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8292 * frame.h, avr-tdep.c: Ditto.
8293 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8294 (create_new_frame, legacy_get_prev_frame): Ditto.
8295 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8296 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8298 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8299 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8300 * v850-tdep.c (v850_gdbarch_init): Ditto.
8301 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8302 * sh-tdep.c (sh_gdbarch_init): Ditto.
8303 * s390-tdep.c (s390_gdbarch_init): Ditto.
8304 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8305 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8306 * mips-tdep.c (mips_gdbarch_init): Ditto.
8307 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8309 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8310 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8311 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8312 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8313 * frv-tdep.c (frv_gdbarch_init): Ditto.
8314 * cris-tdep.c (cris_gdbarch_init): Ditto.
8315 * avr-tdep.c (avr_gdbarch_init): Ditto.
8316 * arm-tdep.c (arm_gdbarch_init): Ditto.
8317 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8318 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8320 2003-03-01 Andrew Cagney <cagney@redhat.com>
8322 * gdbarch.sh (register_type): New function with predicate.
8323 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8324 * gdbarch.h, gdbarch.c: Re-generate.
8325 * arch-utils.c (generic_register_byte): Use generic_register_size.
8326 (generic_register_size): When available, use
8327 gdbarch_register_type.
8328 * regcache.c (init_regcache_descr): When available, initialize the
8329 register type array using gdbarch_register_type. If the
8330 architecture supplies gdbarch_register_type, do not use the legacy
8332 * d10v-tdep.c (d10v_register_type): Replace
8333 d10v_register_virtual_type.
8334 (d10v_gdbarch_init): Set register_type instead of
8335 register_virtual_type.
8337 2003-03-01 Andrew Cagney <cagney@redhat.com>
8339 * Makefile.in (ax-gdb.o): Update dependencies.
8340 * ax-gdb.c: Include "regcache.h".
8341 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8342 * findvar.c (value_of_register): Ditto.
8343 * infcmd.c (default_print_registers_info): Ditto.
8345 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8347 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8348 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8350 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8352 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8355 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8357 * Makefile.in (dwarf2loc.o): Update dependencies.
8358 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8359 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8360 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8361 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8362 (locexpr_tracepoint_var_ref): New function.
8363 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8365 2003-02-28 Andrew Cagney <cagney@redhat.com>
8367 * regcache.c (register_size): New function.
8368 * regcache.h (register_size): Declare
8369 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8370 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8372 2003-02-28 David Carlton <carlton@math.stanford.edu>
8374 * linespec.c (decode_compound): Extract code into find_method.
8377 2003-02-28 J. Brobecker <brobecker@gnat.com>
8379 * Makefile.in: Add rules to build and link in observer.o.
8381 2003-02-27 J. Brobecker <brobecker@gnat.com>
8383 * observer.c: Minor comments edits.
8385 2003-02-27 J. Brobecker <brobecker@gnat.com>
8387 * observer.h, observer.c: New file.
8389 2003-02-27 Andrew Cagney <cagney@redhat.com>
8391 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8393 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8395 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8396 (M6812_OP_STS_EXT): Likewise.
8397 (m6811_prologue): Use the above to recognize prologue.
8398 (m6812_prologue): Likewise.
8400 2003-02-27 David Carlton <carlton@math.stanford.edu>
8402 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8404 (compare_psymbols): Ditto.
8405 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8407 2003-02-27 Michael Snyder <msnyder@redhat.com>
8409 * f-lang.c (build_fortran_types): New function.
8410 (_initialize_f_language): Gdbarch-register built-in fortran types.
8411 * doublest.c (extract_floating): Fix warning text.
8413 2003-02-27 Andrew Cagney <cagney@redhat.com>
8415 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8416 predicate. Replaces PUSH_DUMMY_FRAME.
8417 * gdbarch.h, gdbarch.c: Regnerate.
8418 * valops.c (hand_function_call): Update. Call
8419 generic_push_dummy_frame directly.
8420 * vax-tdep.c (vax_gdbarch_init): Update.
8421 * sparc-tdep.c (sparc_gdbarch_init): Update.
8422 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8423 * m68k-tdep.c (m68k_gdbarch_init): Update.
8424 * hppa-tdep.c (hppa_gdbarch_init): Update.
8425 * alpha-tdep.c (alpha_gdbarch_init): Update.
8426 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8427 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8428 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8430 push_dummy_frame to generic_push_dummy_frame.
8431 * v850-tdep.c (v850_gdbarch_init): Ditto.
8432 * sh-tdep.c (sh_gdbarch_init): Ditto.
8433 * s390-tdep.c (s390_gdbarch_init): Ditto.
8434 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8435 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8436 * mips-tdep.c (mips_gdbarch_init): Ditto.
8437 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8439 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8440 * i386-tdep.c (i386_gdbarch_init): Ditto.
8441 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8442 * frv-tdep.c (frv_gdbarch_init): Ditto.
8443 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8444 * cris-tdep.c (cris_gdbarch_init): Ditto.
8445 * avr-tdep.c (avr_gdbarch_init): Ditto.
8446 * arm-tdep.c (arm_gdbarch_init): Ditto.
8448 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8450 * mips-tdep.c (show_mips_abi): New function.
8451 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8452 command ``show mips abi''.
8454 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8456 From Elena Zannoni <ezannoni@redhat.com>
8457 * dbxread.c (process_one_symbol): Only record line 0 if one or
8458 more sline entries have been seen for the function.
8460 2003-02-26 Michael Chastain <mec@shout.net>
8462 * configure: Regenerate with autoconf 000227.
8464 2003-02-26 Michael Chastain <mec@shout.net>
8467 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8468 for old libc5/glibc.
8469 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8471 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8473 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8474 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8476 2003-02-26 Michael Chastain <mec@shout.net>
8478 * configure.in: New variable HAVE_UINTPTR_T.
8479 * configure, config.in: Regenerated.
8481 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8484 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8486 2003-02-25 Andrew Cagney <cagney@redhat.com>
8488 * frame.c (get_prev_frame): Add comment on check for
8489 inside_entry_func. Only check for inside_entry_file when not a
8490 dummy and not a sentinel. Check that the new frame is not inner
8493 2003-02-25 Andrew Cagney <cagney@redhat.com>
8495 * frame.c (frame_debug): New variable.
8496 (_initialize_frame): Add "set/show debug frame" command.
8497 (get_prev_frame): When frame_debug, print reason why unwind
8500 2003-02-25 Michael Chastain <mec@shout.net>
8502 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8503 to avoid uintptr_t definition problems.
8505 2003-02-25 David Carlton <carlton@math.stanford.edu>
8507 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8508 (SYMBOL_LINKAGE_NAME): Ditto.
8509 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8510 SYMBOL_LINKAGE_NAME.
8511 (struct general_symbol_info): Expand comment.
8512 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8513 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8514 (SYMBOL_MATCHES_REGEXP): Ditto.
8515 * symtab.c (symbol_natural_name): New function.
8516 * objfiles.h: Replace all uses of SYMBOL_NAME by
8517 DEPRECATED_SYMBOL_NAME.
8518 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8519 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8520 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8521 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8522 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8523 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8524 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8525 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8526 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8527 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8529 * ada-exp.y: Update copyright.
8530 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8531 * cp-valprint.c: Ditto.
8533 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8535 * infptrace.c (detach): Do not flag error if ptrace detach fails
8536 and errno is set to ESRCH.
8538 2003-02-24 Andrew Cagney <cagney@redhat.com>
8540 * infptrace.c (udot_info): Change type of udot_off to long. Use
8541 paddr when printing udot_off's value.
8543 2003-02-24 David Carlton <carlton@math.stanford.edu>
8545 * symtab.c (make_symbol_overload_list): Only read in partial
8546 symtabs containing a matching partial symbol.
8548 2003-02-24 David Carlton <carlton@math.stanford.edu>
8550 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8551 do the comparison, not strcmp.
8552 * symfile.c (compare_psymbols): Ditto.
8553 * defs.h: Declare strcmp_iw_ordered.
8554 * utils.c (strcmp_iw_ordered): New function.
8556 2003-02-24 Jim Blandy <jimb@redhat.com>
8558 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8559 support, shared libs): Remove my name from here, to better reflect
8562 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8564 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8565 (target_ops): Add to_have_continuable_watchpoint.
8566 * target.c (update_current_target): Add INHERIT line for
8567 to_have_continuable_watchpoint.
8568 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8569 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8570 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8571 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8573 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8575 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8578 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8580 * solib.c (solib_open): Call target defined search function after
8581 failing with solib-search-path.
8582 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8583 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8585 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8587 * MAINTAINERS: Add myself to Write After section.
8589 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8591 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8593 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8595 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8596 (m68hc11_add_reggroups): New function.
8597 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8598 (m68hc11_gdbarch_init): Install the reggroups.
8599 (_initialize_m68hc11_tdep): Initialize them.
8601 2003-02-21 James E Wilson <wilson@tuliptree.org>
8603 * MAINTAINERS: Update my email address.
8605 2003-02-21 David Carlton <carlton@math.stanford.edu>
8607 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8609 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8611 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8612 * symtab.h: Add opaque declarations of struct axs_value and
8614 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8615 (struct location_funcs): New type.
8616 (struct symbol): Add "loc" to aux_value.
8617 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8618 * dwarf2read.c: Include "dwarf2expr.h".
8619 (dwarf2_symbol_mark_computed): New function.
8620 (read_func_scope): Use it.
8621 (var_decode_location): New function.
8622 (new_symbol): Use it.
8623 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8625 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8626 (dwarf2expr_h, dwarf2loc_h): New variables.
8627 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8628 (dwarf2expr.o, dwarf2loc.o): New rules.
8629 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8630 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8632 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8633 * m2-exp.y (yylex): Likewise.
8634 * printcmd.c (address_info, print_frame_args): Likewise.
8635 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8636 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8637 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8638 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8639 * symtab.c (lookup_block_symbol): Likewise.
8641 2003-02-20 Adam Fedor <fedor@gnu.org>
8643 * symtab.h: Remove objc_specific struct
8644 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8645 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8646 Have language_objc use cplus_specific struct.
8648 2003-02-20 Tom Tromey <tromey@redhat.com>
8650 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8651 TYPE_NAME, when printing a String value. PR java/1075.
8653 2003-02-20 Adam Fedor <fedor@gnu.org>
8655 * objc-lang.h (find_methods): Remove declaration.
8656 * objc-lang.c (find_methods): Make static.
8658 2003-02-20 Christopher Faylor <cgf@redhat.com>
8660 * win32-nat.c (get_image_name): Check return value from
8662 (child_xfer_memory): Ditto.
8664 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8666 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8667 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8668 '${exec_prefix}' (in addition to the expansion thereof) as
8670 * configure: Rebuilt.
8672 2003-02-20 David Carlton <carlton@math.stanford.edu>
8674 * symtab.c (search_symbols): Revert the search_symbols part of my
8675 2002-12-23 patch. Add comment.
8677 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8679 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8680 * dbxread.c (elfstab_build_psymtabs): Don't call
8681 install_minimal_symbols.
8682 (stabsect_build_psymtabs): Likewise.
8683 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8685 * somread.c (som_symfile_read): Call install_minimal_symbols
8686 and do_cleanups earlier.
8687 * nlmread.c (nlm_symfile_read): Likewise.
8688 * mdebugread.c (elfmdebug_build_psymtabs): Call
8689 install_minimal_symbols and make appropriate cleanups.
8691 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8693 * solib.c (reload_shared_libraries): New function.
8694 (_initialize_solib): Add callbacks for ``set solib-search-path''
8695 and ``set solib-absolute-prefix''.
8697 2003-02-20 David Carlton <carlton@math.stanford.edu>
8699 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8701 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8702 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8703 * ada-typeprint.c (ada_typedef_print): Ditto.
8704 * ax-gdb.c (gen_var_ref): Ditto.
8705 * breakpoint.c (print_one_breakpoint): Ditto.
8706 * buildsym.c (finish_block): Ditto.
8707 * c-valprint.c (c_val_print): Ditto.
8708 * expprint.c (print_subexp): Ditto.
8709 * findvar.c (locate_var_value): Ditto.
8710 * infcmd.c (jump_command): Ditto.
8711 * linespec.c (decode_line_2, decode_compound): Ditto.
8712 * maint.c (maintenance_translate_address): Ditto.
8713 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8714 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8716 * p-valprint.c (pascal_val_print): Ditto.
8717 * stabsread.c (define_symbol): Ditto.
8718 * stack.c (print_frame, frame_info, print_block_frame_locals)
8719 (print_frame_arg_vars, return_command): Ditto.
8720 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8721 * symmisc.c (print_symbol): Ditto.
8722 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8723 (compare_search_syms, print_symbol_info, print_msymbol_info)
8724 (rbreak_command): Ditto.
8725 * tracepoint.c (tracepoints_info): Ditto.
8726 * typeprint.c (typedef_print): Ditto.
8727 * valops.c (value_of_variable, hand_function_call): Ditto.
8728 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8729 * ada-typeprint.c: Update Copyright.
8730 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8731 * tracepoint.c, cli/cli-cmds.c: Ditto.
8733 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8735 * frame.c (generic_unwind_get_saved_register): Make non-static.
8736 * frame.h (generic_unwind_get_saved_register): Declare.
8737 * mips-tdep.c (read_next_frame_reg): Fetch register from
8738 current regcache when frame is NULL.
8739 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8741 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8742 instead of frame_register_unwind().
8744 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8746 * remote-sim.c (gdbsim_insert_breakpoint)
8747 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8750 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8752 * remote.c (_initialize_remote): Add commands "set/show remote
8753 hardware-watchpoint-limit" and "set/show remote
8754 hardware-breakpoint-limit".
8755 (remote_hw_watchpoint_limit): Initialize to -1.
8756 (remote_hw_breakpoint_limit): Ditto.
8757 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8759 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8761 * coff-pe-read.c: New file - support reading of minimal symbols from a
8762 portable executable using the export table.
8763 * coff-pe-read.h: New file.
8764 * coffread.c: Include coff-pe-read.h.
8765 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8766 debugging symbols found.
8767 * Makefile.in (SFILES): Add coff-pe-read.o.
8768 (coff_pe_read_h): Define.
8769 (COMMON_OBS): Add coff-pe-read.o.
8770 (coffread.o): Add coff_pe_read_h dependency.
8771 (coff-pe-read.o): New target.
8773 2003-02-19 David Carlton <carlton@math.stanford.edu>
8775 * Makefile.in (SFILES): Add block.c.
8777 (COMMON_OBS): Add block.o.
8779 (x86-64-tdep.o): Add $(block_h).
8780 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8781 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8782 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8783 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8784 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8785 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8786 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8787 * value.h: Add opaque declaration for struct block.
8788 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8789 * ada-lang.h: Ditto.
8790 * x86-64-tdep.c: #include "block.h"
8791 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8792 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8793 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8794 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8795 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8796 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8797 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8798 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8799 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8800 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8801 * symtab.c (block_function): Ditto.
8802 (contained_in): Ditto.
8803 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8804 block.h. Add opaque declaration for struct block.
8805 * symtab.h: Move block_function and contained_in declarations to
8806 block.h. Add opaque declarations for struct block, struct
8808 (struct block): Move to block.h.
8809 (struct blockvector): Ditto.
8810 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8811 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8812 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8813 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8814 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8816 * block.c: New file.
8817 * block.h: New file.
8819 2003-02-19 Theodore A. Roth <troth@openavr.org>
8821 * avr-tdep.c (avr_extract_return_value): Remove function.
8822 (avr_store_return_value): Remove function.
8823 (avr_extract_struct_value_address): Remove function.
8824 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8826 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8828 * rs6000-tdep.c: Include "gdb_assert.h".
8829 (registers_e500): Add "acc" and "spefscr".
8830 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8831 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8832 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8834 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8836 2003-02-18 Keith Seitz <keiths@redhat.com>
8838 * Makefile.in: Add gdbtk-interps.c.
8840 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8842 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8843 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8845 2003-02-18 Andrew Cagney <cagney@redhat.com>
8847 * symtab.h (struct objfile): Add opaque declaration.
8849 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8851 From Jim Ingham <jingham@apple.com>:
8852 * dbxread.c (process_one_symbol): Use last_function_start rather
8853 than function_start_offset to find the real beginning of the
8854 current function. The latter is just the text section offset on
8855 some systems, the former is always the real function start.
8857 2003-02-17 Andrew Cagney <cagney@redhat.com>
8859 * configure.in: Revert ${target} != ${host}.
8861 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8863 * configure.in (Makefile): Use the test ${target} != ${host},
8864 instead of the absence of the "nm.h" file, to determine of the
8865 configuration non-native.
8866 * configure: Regenerate.
8868 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8870 From Brian Ford <ford@vss.fsi.com>
8872 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8873 conditionalize tui_active test.
8874 (lookup_cmd_1): Ditto.
8876 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8878 * configure.in: Add check for _etext.
8879 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8881 * config.in, configure: regenerated.
8883 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8885 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8887 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8889 * main.c (tui_version): Delete variable.
8890 (captured_main): When --tui, set interpreter_p to "tui" instead of
8891 enabling tui_version.
8892 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8894 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8895 * cli/cli-cmds.c (disassemble_command): Ditto.
8896 * defs.h (tui_version): Delete declaration.
8897 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8898 (tui-interp.o): Add rules.
8899 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8901 2003-02-14 Christopher Faylor <cgf@redhat.com>
8903 * win32-nat.c (register_loaded_dll): Correctly set address range for
8906 2003-02-12 Jason Molenda (jmolenda@apple.com)
8908 * symmisc.c (print_objfile_statistics): Include information about
8909 the number of psymtabs and symtabs in each object file.
8911 2003-02-13 Keith R Seitz <keiths@redhat.com>
8913 * main.h (struct captured_main_args): Add interpreter_p.
8914 * main.c (captured_main): Initialize interpreter_p from context.
8915 * gdb.c (main): Set interpreter_p argument.
8916 * Makefile.in (gdb.o): Add dependency for interps.h.
8918 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8920 * event-top.c (cli_command_loop): Delete declaration.
8921 (_initialize_event_loop): Delete function setting event_loop_hook.
8922 * event-top.h (cli_command_loop): Declare. Update copyright.
8923 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8924 * interps.c (current_interp_command_loop): When event_loop_p, call
8927 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8929 * interps.h (interp_command_loop_ftype): Change return type to
8932 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8934 * x86-64-tdep.c (x86_64_extract_return_value)
8935 (x86_64_store_return_value): Use regcache instead of regbuf.
8936 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8937 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8939 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8941 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8942 * aclocal.m4: Regenerate.
8943 * configure: Regenerate.
8945 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8946 TCL_LD_SEARCH_FLAGS.
8948 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8950 * dwarf2cfi.c: Reindented.
8952 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8954 * interps.c (clear_interpreter_hooks): Convert function definition
8957 2003-02-07 David Carlton <carlton@math.stanford.edu>
8959 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8961 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8963 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8964 (struct type): ...to here.
8965 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8967 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8968 (replace_type): Set length on all type variants for a given type.
8970 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8972 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8974 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8976 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8978 * Makefile.in (symm-nat.o): Update dependencies.
8979 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8980 (lynx-nat.o, ia64-linux-nat.): Ditto.
8981 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8982 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8983 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8985 * Makefile.in (inflow_h): Define.
8986 (procfs.o, inflow.o, procfs.o): Update dependencies.
8987 * inftarg.c (child_stop): Delete extern declaration of
8988 inferior_process_group. Include "inflow.h".
8989 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8990 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8991 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8992 (our_process_group, inferior_process_group): Extern declarations.
8994 * procfs.c: Include "gdb_assert.h".
8996 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8997 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8998 * jv-typeprint.c (java_type_print_base): Ditto.
8999 * typeprint.c (typedef_print): Eliminate STREQ.
9000 * cli/cli-script.c (define_command, define_command): Ditto.
9001 * main.c (captured_main): Ditto.
9002 * values.c (lookup_internalvar): Ditto.
9003 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9004 within `if' conditional.
9005 * linespec.c (decode_line_2): Ditto.
9006 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9007 (bfd_openw_with_cleanup): Ditto.
9009 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9011 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9012 legacy_extract_return_value and store_return_value to
9013 legacy_return_value.
9015 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9017 * win32-nat.c (get_relocated_section_addrs): New function. Find
9018 section load addresses for symbol handling in relocated DLLs.
9019 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9021 2003-02-05 Fred Fish <fnf@intrinsity.com>
9023 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9025 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9027 (angel_RDI_info): Ditto.
9028 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9030 (threads_continue_all_with_signals): Ditto.
9032 2003-02-05 Jim Ingham <jingham@apple.com>
9033 Keith Seitz <keiths@redhat.com>
9034 Elena Zannoni <ezannoni@redhat.com>
9035 Andrew Cagney <ac131313@redhat.com>
9037 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9038 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9039 (SUBDIR_MI_OBS): Add "mi-interp.o".
9040 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9041 (SFILES): Add "interps.c".
9042 (COMMON_OBS): Add "interps.o".
9043 (interps_h, mi_main_h): Define.
9044 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9045 (mi-main.o, main.o, event-top.o): Update dependencies.
9046 * cli/cli-interp.c: New file.
9047 * interps.h, interps.c: New files.
9048 * top.c: (gdb_init): Don't install the default interpreter, handed
9050 * main.c: Include "interps.h".
9051 (interpreter_p): Note that it should malloc'ed.
9052 (captured_command_loop): Call current_interp_command_loop.
9053 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9054 xfree and xstrdup when updating interpreter_p. Install the
9055 default interpreter. Add hack to stop mi1's copyright notice
9057 * event-top.h (gdb_setup_readline): Declare.
9058 (gdb_disable_readline): Declare.
9059 * event-top.c: Include "interps.h".
9060 (display_gdb_prompt): Call current_interp_display_prompt_p.
9061 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9062 gdb_stdlog, and gdb_stdtarg.
9063 (_initialize_event_loop): Don't call gdb_setup_readline.
9064 * cli-out.c (cli_out_set_stream): New function.
9065 * cli-out.h (cli_out_set_stream): Declare.
9067 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9069 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9070 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9071 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9072 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9073 config/i386/i386v42mp.mt: Removed.
9075 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9077 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9080 2003-02-05 Michael Chastain <mec@shout.net>
9082 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9083 2.12.1 and earlier versions.
9085 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9087 Remove orphaned hosts, targets and files.
9088 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9089 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9090 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9091 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9092 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9093 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9094 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9095 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9096 * config/sparc/tm-sp64sim.h: Delete.
9097 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9099 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9100 mips*-dec-mach3* targets.
9102 2003-02-04 Michael Chastain <mec@shout.net>
9104 * NEWS: Fix typo: sepcifying -> specifying.
9106 2003-02-04 Michael Chastain <mec@shout.net>
9108 * dwarfread.c: Add documentation on the state of dwarf-1,
9109 looking towards obsoletion.
9111 2003-02-03 Michael Chastain <mec@shout.net>
9113 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9114 gdb/testsuite/gdb.c++/pr-1023.exp.
9116 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9118 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9119 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9121 * utils.c (init_page_info): Delete reference to MPW in comments.
9122 * main.c (captured_main): Delete #ifdef MPW.
9124 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9126 * NEWS: Note that the m32r-*-elf* is obsolete.
9127 * monitor.c (monitor_expect): Obsolete reference to m32r.
9128 * configure.tgt: Mark m32r-*-elf* as obsolete.
9129 * MAINTAINERS: Mark m32k as obsolete.
9130 * m32r-rom.c: Obsolete file.
9131 * config/m32r/m32r.mt: Obsolete file.
9132 * config/m32r/tm-m32r.h: Obsolete file.
9133 * m32r-stub.c: Obsolete file.
9134 * m32r-tdep.c: Obsolete file.
9136 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9138 * NEWS: Mention that the z8k-zilog-none is obsolete.
9139 * MAINTAINERS: Mark z8k as obsolete.
9140 * configure.tgt: Obsolete the z8k-*-coff* target.
9141 * config/z8k/z8k.mt: Obsolete file.
9142 * config/z8k/tm-z8k.h: Obsolete file.
9143 * z8k-tdep.c: Obsolete file.
9145 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9147 * NEWS: Mention that the mn10200-elf is obsolete.
9148 * configure.tgt: Obsolete mn10200-*-* target.
9149 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9150 mention that the mn10200 is obsolete.
9151 * breakpoint.h: Ditto.
9152 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9153 * config/mn10200/mn10200.mt: Obsolete file.
9154 * config/mn10200/tm-mn10200.h: Obsolete file.
9155 * mn10200-tdep.c: Obsolete file.
9157 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9159 * MAINTAINERS: Mark h8500 as obsolete.
9160 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9161 * findvar.c (value_from_register): Ditto.
9162 * h8500-tdep.c: Mark file as obsolete.
9163 * config/h8500/h8500.mt: Ditto.
9164 * config/h8500/tm-h8500.h: Ditto.
9165 * NEWS: Mention that h8500 is obsolete.
9167 2003-02-04 David Carlton <carlton@math.stanford.edu>
9169 * objfiles.c (allocate_objfile): Always set name. Add comment at
9171 * jv-lang.c (get_dynamics_objfile): Add comment.
9173 2003-02-04 David Carlton <carlton@math.stanford.edu>
9175 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9176 * printcmd.c (build_address_symbolic): Replace uses of
9177 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9178 SYMBOL_NAME, and asm_demangle.
9181 2003-02-04 David Carlton <carlton@math.stanford.edu>
9183 * linespec.c (decode_compound): Extract code into
9185 (lookup_prefix_sym): New function.
9187 2003-02-04 David Carlton <carlton@math.stanford.edu>
9189 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9190 FLOAT_COERCION_BADNESS.
9191 * gdbtypes.c (rank_one_type): Replace all uses of
9192 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9194 2003-02-04 Jim Blandy <jimb@redhat.com>
9196 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9197 section, let dwarf_macinfo_section point to it, not
9200 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9202 Pointed out by Anton Blanchard <anton@samba.org>.
9203 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9204 (ppc_linux_at_sigtramp_return_path): Use it.
9206 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9208 * defs.h (streq): Add prototype.
9209 * utils.c (streq): New function.
9211 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9212 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9213 * mdebugread.c (new_symbol): Likewise.
9214 * stabsread.c (define_symbol): Likewise.
9215 * coffread.c (process_coff_symbol): Likewise.
9216 * dwarfread.c (new_symbol): Likewise.
9218 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9219 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9221 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9222 SYMBOL_INIT_DEMANGLED_NAME.
9223 * objfiles.c: Include "hashtab.h".
9224 (allocate_objfile): Call htab_set_functions_ex for the
9225 demangled_names_hash.
9226 (free_objfile): Call htab_delete for the demangled_names_hash.
9227 * objfiles.h (struct htab): Add declaration.
9228 (struct objfile): Add demangled_names_hash.
9229 * symfile.c: Include "hashtab.h".
9230 (reread_symbols): Call htab_delete for the demangled_names_hash.
9231 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9232 SYMBOL_NAME in the bcache.
9233 * symtab.c: Include "hashtab.h". Update comments.
9234 (create_demangled_names_hash, symbol_set_names): New functions.
9235 (symbol_find_demangled_name): New function, broken out from
9236 symbol_init_demangled_names.
9237 (symbol_init_demangled_names): Use it.
9238 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9239 (SYMBOL_SET_NAMES): New macro.
9240 (symbol_set_names): Add prototype.
9242 2003-02-03 Jim Blandy <jimb@redhat.com>
9244 Use a single, consistent representation for an empty minimal
9245 symbol table in an objfile.
9246 * objfiles.c (terminate_minimal_symbol_table): New function.
9247 (allocate_objfile): Call it.
9248 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9249 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9251 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9252 objfile has minimal symbols, compare minimal_symbol_count to zero,
9253 instead of comparing msymbols with NULL.
9254 * objfiles.c (have_minimal_symbols): Same.
9255 * solib-sunos.c (solib_add_common_symbols): Call
9256 terminate_minimal_symbol_table.
9257 * symfile.c (reread_symbols): Same.
9259 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9261 * s390-tdep.c (s390_address_class_type_flags)
9262 (s390_address_class_type_flags_to_name)
9263 (s390_address_class_name_to_type_flags): New functions.
9264 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9265 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9267 2003-02-03 Michael Snyder <msnyder@redhat.com>
9269 * arm-tdep.c: Fix spell-o in comment.
9271 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9273 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9274 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9275 error messages to contain BFD filename.
9277 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9279 Fix PR gdb/742 gdb/743 gdb/877
9280 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9281 (do_mixed_source_and_assembly): Use
9282 make_cleanup_ui_out_tuple_begin_end and
9283 make_cleanup_ui_out_tuple_begin_end.
9284 (do_mixed_source_and_assembly): Ditto.
9285 * thread.c (do_captured_list_thread_ids): Ditto.
9286 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9287 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9288 ui_out_tuple_end): Delete prototypes.
9289 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9290 ui_out_list_end, ui_out_tuple_end): Delete.
9292 From Kevin Buettner <kevinb@redhat.com>:
9293 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9294 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9295 (do_cleanup_table_end): New functions.
9296 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9297 Use cleanups to invoke_ui_out_tuple_end().
9298 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9299 * cli/cli-setshow.c (cmd_show_list): Use
9300 make_cleanup_ui_out_tuple_begin_end.
9302 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9304 * frame.c (frame_unwind_register): New function.
9305 (frame_unwind_unsigned_register): Use.
9306 (frame_unwind_signed_register): Use.
9307 (frame_read_register): New function.
9308 * frame.h (frame_unwind_register): Declare.
9309 (frame_read_register): Declare.
9311 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9312 and frame_unwind_register instead of read_memory, write_register
9313 and deprecated_write_register_bytes.
9315 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9317 * frame.h: Note that namelen can be negative.
9318 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9321 * NEWS: Mention that the d10v's `regs' command is deprecated.
9322 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9323 (d10v_print_registers_info): New function.
9324 (show_regs): Call d10v_print_registers_info.
9325 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9327 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9329 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9330 lost in the previous patch.
9332 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9334 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9335 * stack.c (print_frame_info_base): Output complete FRAME tuple
9336 for synthesized frames.
9338 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9340 * mips-nat.c (zerobuf): Delete.
9341 (fetch_inferior_registers): Alloc local zerobuf.
9342 (fetch_core_registers): Alloc local zerobuf.
9343 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9344 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9345 * thread-db.c (thread_db_store_registers): Ditto.
9346 * sh-tdep.c (sh_do_register): Ditto.
9347 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9348 * remote-sim.c (gdbsim_store_register): Ditto.
9349 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9350 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9351 * monitor.c (monitor_supply_register): Ditto.
9352 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9353 * mips-nat.c (fetch_inferior_registers): Ditto.
9354 * m68klinux-nat.c (fetch_register): Ditto.
9355 * lynx-nat.c (fetch_inferior_registers): Ditto.
9356 (fetch_inferior_registers): Ditto.
9357 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9358 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9359 (hpux_thread_store_registers): Ditto.
9360 * hppah-nat.c (fetch_register): Ditto.
9361 * hppab-nat.c (fetch_register): Ditto.
9362 * hppa-tdep.c (pa_register_look_aside): Ditto.
9363 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9364 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9366 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9368 * gdbarch.sh: Explictly specify all method levels. When a
9369 variable with an empty level, provide a non-multi-arch default.
9370 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9371 * gdbarch.h: Re-generate.
9372 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9373 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9375 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9377 * defs.h (host_pointer_to_address): Delete declaration.
9378 (address_to_host_pointer): Delete declaration.
9379 * utils.c (host_pointer_to_address): Delete function.
9380 (address_to_host_pointer): Delete function.
9381 * procfs.c (procfs_address_to_host_pointer): New function.
9382 * procfs.c (proc_set_watchpoint): Use.
9383 (procfs_can_use_hw_breakpoint): Update comments.
9384 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9385 (som_solib_add): Use.
9386 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9387 * hppa-tdep.c (unwind_command): Use.
9389 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9391 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9394 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9395 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9396 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9397 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9398 (define_symbol): Update.
9399 * symfile.c (generic_load): Remove references to nindy.
9400 * symtab.c: Remove references to nindy.
9402 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9404 * infcmd.c (print_float_info): Delete code conditional on
9406 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9407 * config/m68k/nm-apollo68b.h: Ditto.
9408 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9409 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9410 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9412 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9414 * config/i386/tm-i386os9k.h: Removed.
9416 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9417 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9418 they're identical to i[3456]86-*-sysv* now.
9419 * config/i386/i386v32.mh: Removed.
9420 * config/i386/xm-i386v32.h: Removed.
9421 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9423 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9425 * config/i386/i386dgux.mh: Removed.
9426 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9428 * configure.in: Fix typo.
9429 * configure: Regenerated.
9431 2003-01-31 David Carlton <carlton@math.stanford.edu>
9433 * dwarf2read.c (dwarf2_locate_sections): Set
9434 dwarf_ranges_section.
9436 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9438 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9439 * utils.c: Update comments documenting legitimate uses of PTR.
9441 * utils.c: Re-indent.
9443 * config/djgpp/fnchange.lst: Delete nindy files.
9444 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9445 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9446 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9447 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9448 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9449 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9450 * Makefile.in (init.c): Remove nindy references.
9451 (saber_gdb): Delete rule.
9452 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9453 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9455 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9456 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9457 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9458 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9460 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9461 * saber.suppress: Delete file.
9463 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9465 * dbxread.c (stabs_data): New static variable.
9466 (fill_symbuf): Support an in-memory buffer for stabs data.
9467 (stabs_seek): New function.
9468 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9469 (read_ofile_symtab): Use stabs_seek.
9470 (elfstab_build_psymtabs): Take an asection* instead of
9471 an offset and size. Relocate the stabs data if necessary.
9472 Save the section* for dbx_psymtab_to_symtab.
9473 * dwarf2read.c: Add section variables for each debug section.
9474 (dwarf2_locate_sections): Fill them in.
9475 (dwarf2_read_section): Take an asection* argument.
9476 Relocate the section contents if necessary.
9477 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9478 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9479 it to dwarf2_read_section.
9480 (dwarf2_build_frame_info): Update callers.
9481 * elfread.c (elf_symfile_read): Update call to
9482 elfstab_build_psymtabs.
9483 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9484 (DBX_STAB_SECTION): New macro.
9485 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9486 * symfile.c (symfile_dummy_outputs): New function.
9487 (symfile_relocate_debug_section): New function.
9488 * symfile.h (symfile_relocate_debug_section): Add prototype.
9490 2003-01-31 Richard Henderson <rth@redhat.com>
9492 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9493 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9494 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9495 * alpha-tdep.c (alpha_register_name): Add "unique".
9496 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9497 (ALPHA_UNIQUE_REGNUM): New.
9498 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9500 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9502 * README: Remove reference to Ericsson 1800 monitor.
9503 * Makefile.in (remote-es.o): Delete rule.
9504 (ALLDEPFILES): Delete remote-es.c.
9505 * remote-es.c: Delete file.
9506 * config/m68k/es1800.mt: Delete file.
9507 * config/djgpp/fnchange.lst: Update.
9508 * configure.tgt: Delete m68*-ericsson-* target.
9510 2003-01-31 Adam Fedor <fedor@gnu.org>
9512 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9513 Remove duplicate/shadowing variable of same name.
9515 2003-01-30 Jim Blandy <jimb@redhat.com>
9517 * symfile.c (find_separate_debug_file): Assert that the objfile's
9518 directory name we compute ends with a slash, and then assume that
9519 that's so everywhere we use it.
9521 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9523 * valops.c (value_assign): Flush frame cache after stores to memory
9526 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9528 * Makefile.in (mon960-rom.o): Delete rule.
9529 * mon960-rom.c: Delete file.
9531 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9533 * d10v-tdep.c: Include "frame-unwind.h".
9534 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9536 (next_addr, uses_frame): Delete.
9537 (struct d10v_unwind_cache): Define.
9538 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9539 Use info instead of next_addr and uses_frame globals.
9540 (d10v_frame_init_saved_regs): Delete function.
9541 (d10v_init_extra_frame_info): Delete function.
9542 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9543 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9544 init_frame_pc or frame_saved_pc.
9545 (d10v_pop_frame): Delete function.
9546 (do_d10v_pop_frame): Delete function.
9547 (d10v_frame_chain): Delete function.
9548 (d10v_frame_chain_valid): Delete function.
9549 (d10v_frame_pc_unwind): New function.
9550 (d10v_frame_id_unwind): New function.
9551 (saved_regs_unwinder): New function.
9552 (d10v_frame_register_unwind): New function.
9553 (d10v_frame_pop): New function.
9554 (d10v_frame_unwind): New variable.
9555 (d10v_frame_p): New function.
9556 (d10v_frame_saved_pc): Delete function.
9557 * Makefile.in (d10v-tdep.o): Update dependencies.
9559 2003-01-30 J. Brobecker <brobecker@gnat.com>
9561 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9562 causing some regressions due to a change in the default value
9565 2003-01-29 Richard Henderson <rth@redhat.com>
9566 Elena Zannoni <ezannoni@redhat.com>
9567 Daniel Jacobowitz <drow@mvista.com>
9570 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9572 (RANGES_SECTION): New.
9573 (dwarf_ranges_buffer): New variable.
9574 (struct comp_unit_head): Add member "die".
9575 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9576 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9577 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9578 (dwarf2_locate_sections): Likewise.
9579 (dwarf2_build_psymtabs): Read .debug_ranges.
9580 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9581 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9582 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9583 Look for DW_AT_ranges and return the bounding box.
9585 2003-01-29 Brian Ford <ford@vss.fsi.com>
9587 * win32-nat.c (cygwin_pid): Removed as unused.
9588 (child_attach): Try fall back to Cygwin pid.
9590 2003-01-29 Jim Blandy <jimb@redhat.com>
9592 * objfiles.h (struct objfile): Doc fix.
9594 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9596 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9597 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9598 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9599 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9600 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9601 (FRAME_SAVED_PC): Change to a function with predicate.
9602 * gdbarch.h, gdbarch.c: Re-generate.
9604 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9606 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9608 * complaints.c (complain): Delete function.
9609 * complaints.h (struct deprecated_complaint): Delete definition.
9610 (complain): Delete declaration.
9612 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9614 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9617 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9619 * sentinel-frame.h, sentinel-frame.c: New files.
9620 * Makefile.in (frame.o): Update dependencies.
9621 (SFILES): Add sentinel-frame.c.
9622 (sentinel_frame_h): Define.
9623 (COMMON_OBS): Add sentinel-frame.o.
9624 (sentinel-frame.o): Specify dependencies.
9625 * frame.c: Include "sentinel-frame.h".
9626 (frame_register_unwind): Rewrite assuming that there is always a a
9628 (frame_register, generic_unwind_get_saved_register): Ditto.
9629 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9630 (create_sentinel_frame, unwind_to_current_frame): New functions.
9631 (get_current_frame): Rewrite using create_sentinel_frame and
9632 unwind_to_current_frame. When possible, always create a frame.
9633 (create_new_frame): Set next to the sentinel frame.
9634 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9635 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9636 ID cache when necessary.
9637 (frame_saved_regs_id_unwind): Use frame_relative_level.
9638 (deprecated_generic_get_saved_register): Use frame_relative_level,
9639 get_frame_saved_regs, get_frame_pc, get_frame_base and
9641 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9644 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9646 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9648 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9650 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9651 (maintenance_set_profile_cmd): Use error () instead of warning ().
9653 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9655 * configure.in: Check that -pg works if using --enable-profiling.
9656 Check for monstartup and _mcleanup regardless of --enable-profiling.
9657 * maint.c: Check for monstartup and _mcleanup before using them.
9658 * config.in: Regenerated.
9659 * configure: Regenerated.
9661 2003-01-24 Nick Clifton <nickc@redhat.com>
9665 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9667 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9668 (sh2e_show_regs): New.
9669 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9670 * config/sh/tm-sh.h: Added sh2e to comments.
9672 2003-01-23 Jim Blandy <jimb@redhat.com>
9674 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9675 symbols found)" message here; we haven't checked for a separate
9676 debug info file yet, so we don't know yet.
9677 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9678 we've looked everywhere. Also, there's no need to print a special
9679 message when we're loading the separate debug info file: the one
9680 symbol_file_add prints is fine.
9682 2003-01-23 Alexander Larsson <alexl@redhat.com>
9683 Jim Blandy <jimb@redhat.com>
9685 Add support for executables whose debug info has been separated
9686 out into a separate file, leaving only a link behind.
9687 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9688 and separate_debug_objfile_backlink.
9689 (put_objfile_before): New declaration.
9690 * symfile.c: #include "filenames.h".
9691 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9692 debug info in a separate file, read that, too. Save the addrs
9693 argument, so we can use it again to read the separated debug info;
9694 syms_from_objfile modifies the table we pass it.
9695 (reread_symbols): After re-reading an objfile, call
9696 reread_separate_symbols to refresh its separate debug info
9697 objfile, if it has one.
9698 (reread_separate_symbols, find_separate_debug_file,
9699 get_debug_link_info, separate_debug_file_exists): New functions.
9700 (debug_file_directory): New global var.
9701 (_initialize_symfile): Initialize debug_file_directory, and
9702 provide the new `set debug-file-directory' command to let the user
9704 * objfiles.c (free_objfile): If this objfile has its debug info in
9705 a separate objfile, free that one too. If this is itself a
9706 separate debug info objfile, clear our parent's backlink.
9707 (put_objfile_before): New function.
9708 * utils.c (gnu_debuglink_crc32): New function.
9709 * defs.h (gnu_debuglink_crc32): New declaration.
9710 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9711 * configure.in: Handle --with-separate-debug-dir config option.
9712 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9713 * acconfig.h (DEBUGDIR): New macro.
9714 * configure, aclocal.m4, config.in: Regenerated.
9716 2003-01-22 Jim Blandy <jimb@redhat.com>
9718 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9719 like the old symbol_file_add, but taking new arguments: you can
9720 now pass in either a `struct section_addr_info' list to say where
9721 each section is loaded, or a `struct section_offsets' table. Pass
9722 these new arguments through to syms_from_objfile as appropriate.
9723 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9724 with the appropriate quiescent values for the new arguments.
9726 * symfile.c: #include "gdb_assert.h".
9727 (syms_from_objfile): Add the ability to pass in a section offset
9728 table directly, as an alternative to the section_addr_info table.
9729 Document arguments better.
9730 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9731 * symfile.h (syms_from_objfile): Update declaration.
9732 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9734 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9736 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9738 Original patch by Tom Tromey <tromey@cygnus.com> and
9739 Jason Molenda <jmolenda@apple.com>.
9740 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9741 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9742 * NEWS: Mention profiling.
9743 * configure.in (--enable-gdbtk): Fix typo.
9744 (--enable-profiling): New. Set PROFILE_CFLAGS.
9745 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9747 (profiling_state): New variable.
9748 (mcleanup_wrapper): New function.
9749 (_initialize_maint): Remove NOTYET, fix call to
9750 add_setshow_boolean_cmd for "maint set profile".
9751 * configure: Regenerated.
9753 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9755 * Makefile.in (install-gdbtk): Install PNG images too.
9757 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9759 * exec.c (text_start): Delete global variable.
9760 (exec_file_attach): Make text_start local to the function.
9761 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9762 * valops.c (hand_function_call): Delete code that handles
9763 BEFORE_TEXT_END and AFTER_TEXT_END.
9764 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9765 of CALL_DUMMY_LOCATION.
9766 * gdbarch.c: Regenerate.
9767 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9768 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9769 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9770 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9771 (text_end): Delete extern declaration.
9773 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9775 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9776 * blockframe.c (backtrace_below_main): Move to "frame.c".
9777 (frame_chain_valid): Delete check for backtrace_below_main.
9778 (_initialize_blockframe): Delete initialization, move ``set
9779 backtrace-below-main'' command to "frame.c".
9780 (do_flush_frames_sfunc): Delete function.
9781 * frame.c: Include "command.h" and "gdbcmd.h".
9782 (frame_type_from_pc): New function.
9783 (create_new_frame): Use frame_type_from_pc.
9784 (legacy_get_prev_frame): New function.
9785 (get_prev_frame): Rewrite. When an old style frame, call
9786 legacy_get_prev_frame. Otherwize, unwind the PC first.
9787 (_initialize_frame): Add ``set backtrace-below-main'' command.
9788 * Makefile.in (frame.o): Update dependencies.
9790 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9792 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9793 DEPRECATED_REGISTERS_INFO.
9795 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9797 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9798 Maintainers'. Update `Various Maintainers'.
9800 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9802 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9803 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9804 Suppress actual parameters when `-'.
9805 * gdbarch.h, gdbarch.c: Regenerate.
9807 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9809 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9810 code handling dummy frames.
9812 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9814 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9815 (struct frame_unwind): Add field pop.
9816 * frame.h (frame_pop): Declare.
9817 * frame.c (frame_saved_regs_pop): New function.
9818 (trad_frame_unwinder): Add frame_saved_regs_pop.
9819 (frame_pop): New function.
9820 * dummy-frame.c (dummy_frame_pop): New function.
9821 (discard_innermost_dummy): New function.
9822 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9823 (dummy_frame_unwind): Add dummy_frame_pop.
9824 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9825 * valops.c (hand_function_call): Ditto.
9826 * stack.c (return_command): Ditto.
9828 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9830 * cris-tdep.c: Fix function declaration indentation.
9831 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9832 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9833 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9834 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9835 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9836 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9838 2003-01-18 Michael Chastain <mec@shout.net>
9840 * README (Unpacking and Installation -- quick overview):
9841 Warn against ".../gdb-5.3/gdb/configure".
9843 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9845 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9846 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9847 (struct frame_unwind): Declare opaque.
9848 (dummy_frame_p): Declare function.
9849 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9850 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9851 * dummy-frame.c: Include "frame-unwind.h".
9852 (dummy_frame_p): New function.
9853 (dummy_frame_unwind): New variable.
9854 * frame.c: Include "frame-unwind.h".
9855 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9856 to use the new unwind field.
9857 (set_unwind_by_pc): Delete function.
9858 (create_new_frame, get_prev_frame): Set unwind field using
9859 frame_unwind_find_by_pc.
9860 (trad_frame_unwind, trad_frame_unwinder): New variables.
9861 * frame.h (trad_frame_unwind): Declare variable.
9862 (frame_id_unwind_ftype): Delete declaration.
9863 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9864 (struct frame_unwind): Declare opaque.
9865 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9866 register_unwind with a single unwind pointer.
9867 * frame-unwind.h, frame-unwind.c: New files.
9868 * Makefile.in (SFILES): Add frame-unwind.c.
9869 (frame_unwind_h): Define.
9870 (COMMON_OBS): Add frame-unwind.o.
9871 (frame-unwind.o): Specify dependencies.
9872 (frame.o, dummy-frame.o): Update dependencies.
9874 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9876 * ada-valprint.c: Eliminate PTR.
9877 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9878 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9879 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9880 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9881 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9882 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9883 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9885 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9887 * main.c (captured_main): Don't use PTR.
9888 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9889 * gdbtypes.c (lookup_primitive_typename): Ditto.
9890 (lookup_struct_elt_type): Ditto.
9891 * f-valprint.c (info_common_command): Ditto.
9892 (list_all_visible_commons): Ditto.
9893 * jv-typeprint.c (java_type_print_base): Ditto.
9895 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9896 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9897 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9898 i386-interix-nat.c and i386-interix-tdep.c. Rename
9899 m68klinux-nat.c and m68klinux-tdep.c. Rename
9900 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9901 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9902 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9903 * main.c (captured_main): Use xfree, not free.
9905 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9907 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9908 ID back using a parameter.
9909 * frame.c (frame_id_unwind): Update call.
9910 (frame_saved_regs_id_unwind): Update.
9911 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9912 * dummy-frame.h (struct frame_id): Add opaque declaration.
9913 (dummy_frame_id_unwind): Update declaration.
9915 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9917 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9919 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9921 * MAINTAINERS (Stephen P. Smith): Updated email address.
9923 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9926 * breakpoint.c (until_break_command): Add new argument. Use it to
9927 decide whether to stop only at the current frame or not.
9928 * breakpoint.h (until_break_command): Update prototype.
9929 * infcmd.c (until_command): Add new argument to until_break_command
9931 (advance_command): New function.
9932 (_initialize_infcmd): Update help string for 'until' command.
9933 Add new 'advance' command.
9935 2003-01-14 David Carlton <carlton@math.stanford.edu>
9937 * linespec.c (decode_line_1): Normalize comments.
9939 (locate_first_half): Ditto.
9940 (decode_compound): Ditto.
9941 (symtab_from_filename): Ditto.
9942 (decode_all_digits): Ditto.
9943 (decode_dollar): Ditto.
9944 (find_methods): Ditto.
9945 (find_toplevel_char): Ditto.
9947 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9949 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9950 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9951 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9952 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9953 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9954 * language.c, language.h, m32r-tdep.c: Update copyright.
9955 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9956 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9957 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9958 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9959 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9960 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9962 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9964 * stabsread.h (process_later, resolve_cfront_continuation):
9966 Update copyright years.
9967 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9968 Update copyright year.
9969 * dbxread.c(struct cont_elem): Obsolete.
9970 (process_later, process_now): Obsolete functions.
9971 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9972 Update copyright year.
9973 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9974 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9975 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9976 (parse_partial_symbols): Obsolete cfront support.
9978 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9980 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9981 read_cfront_baseclasses, read_cfront_member_functions,
9982 resolve_cfront_continuation,read_cfront_static_fields,
9983 copy_cfront_struct_fields): Obsolete functions.
9984 (define_symbol, read_one_struct_field): Obsolete cfront support.
9985 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9986 Update Copyright year.
9988 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9990 * stack.c (print_frame_info, print_stack_frame_base_stub,
9991 print_stack_frame_base, show_and_print_stack_frame_stub,
9992 show_and_print_stack_frame, print_only_stack_frame_stub,
9993 print_only_stack_frame): Delete functions.
9994 (print_stack_frame_stub): Call print_frame_info instead of
9995 print_frame_info_base.
9996 (print_frame_info_base): Rename to print_frame_info.
9997 (backtrace_command_1): Call print_frame_info, instead of
9998 print_frame_info_base.
9999 (current_frame_command): Call print_stack_frame, instead of
10000 print_only_stack_frame.
10001 (frame_command): Call print_stack_frame, instead of
10002 show_and_print_stack_frame.
10003 (up_command): Ditto.
10004 (down_command): Ditto.
10005 * frame.h (print_only_stack_frame): Delete prototype.
10006 * infrun.c (normal_stop): Call print_stack_frame, instead of
10007 show_and_print_stack_frame.
10008 * thread.c (info_threads_command): Call print_stack_frame, instead
10009 of print_only_stack_frame.
10011 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10013 * README (Graphical interface to GDB): Update URL. Point at
10016 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10019 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10021 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10024 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10026 * thread-db.c (attach_thread): Prototype.
10027 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10028 thread information (ti), and valid flags (th_valid, ti_valid).
10029 (attach_thread): Move target_pid_to_str call to after the thread
10030 is added to GDB's list. Initialize the cache.
10031 (thread_get_info_callback, thread_db_map_id2thr)
10032 (thread_db_get_info): New functions.
10033 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10034 (thread_db_store_registers, thread_db_thread_alive)
10035 (thread_db_get_thread_local_address): Use them.
10036 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10037 of calling error() for threads in unknown state.
10039 (clear_lwpid_callback): New function.
10040 (thread_db_resume): Use it to clear the cache.
10042 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10044 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10045 (resume_callback): Remove dead code.
10047 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10049 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10051 * gdbarch.h, gdbarch.c: Regenerate.
10052 * stack.c (frame_info): Only initialize the saved registers when
10053 FRAME_INIT_SAVED_REGS_P.
10054 * frame.c (frame_saved_regs_register_unwind): Assert
10055 FRAME_INIT_SAVED_REGS_P.
10056 (deprecated_generic_get_saved_register): Ditto.
10058 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10060 * source.c (openp): Squelch warning about "filename".
10062 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10064 * source.c (openp): If the file does not exist don't necessarily
10067 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10070 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10071 (integer_types_same_name_p): New function.
10072 (rank_one_type): Use it.
10073 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10075 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10077 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10079 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10080 * configure.in: Add --with-sysroot.
10081 * configure: Regenerated.
10082 * main.c (gdb_sysroot): New variable.
10083 (captured_main): Initialize gdb_sysroot.
10084 * defs.h (gdb_sysroot): New extern declaration.
10085 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10087 2003-01-12 Michael Chastain <mec@shout.net>
10089 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10091 2003-01-12 Michael Chastain <mec@shout.net>
10093 * top.c (print_gdb_version): Bump copyright year to 2003.
10095 2003-01-12 David Carlton <carlton@bactrian.org>
10097 * linespec.c (symtab_from_filename): Rename variable 's' to
10100 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10102 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10104 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10106 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10108 * d10v-tdep.c: Include "gdb_assert.h".
10109 (d10v_store_return_value): Rewrite to match current interface.
10110 (d10v_extract_struct_value_address): Ditto.
10111 (d10v_extract_return_value): Ditto.
10112 (d10v_gdbarch_init): Set store_restore_value,
10113 extract_struct_value_address and extract_return_value.
10115 2003-01-12 J. Brobecker <brobecker@gnat.com>
10117 * hpread.c (set_namestring): New procedure replacing the
10118 SET_NAMESTRING macro.
10119 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10120 by calls to set_namestring.
10122 2003-01-11 J. Brobecker <brobecker@gnat.com>
10124 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10125 a compilation warning.
10126 (hpread_process_one_debug_symbol): Likewise.
10128 2003-01-10 David Carlton <carlton@math.stanford.edu>
10130 * linespec.c (decode_line_1): Rename variable 's' to
10132 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10133 (decode_dollar): Ditto.
10134 (decode_variable): Ditto.
10135 (symbol_found): Ditto.
10137 2003-01-09 Michael Chastain <mec@shout.net>
10139 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10141 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10143 * win32-nat.c (set_process_privilege): New function.
10144 (child_attach): Call set_process_privilege() to enable the
10145 SE_DEBUG_NAME user privilege if available in process token.
10147 2003-01-10 J. Brobecker <brobecker@gnat.com>
10149 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10150 compilation error in the previous revision.
10152 2003-01-09 David Carlton <carlton@math.stanford.edu>
10154 * linespec.c: Update copyright.
10156 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10158 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10159 than inferior_ptid.
10160 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10162 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10164 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10166 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10167 (frame_saved_regs_zalloc): Update.
10168 (frame_saved_regs_register_unwind): Update.
10169 (create_new_frame): Update.
10170 (get_prev_frame): Update.
10171 (frame_extra_info_zalloc): Update.
10172 (deprecated_get_frame_saved_regs): Update.
10173 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10174 * cris-tdep.c: Update comment.
10176 * somsolib.h: Fix function indentation.
10177 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10178 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10179 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10180 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10181 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10183 * infrun.c (follow_fork): Use ISO C definition.
10184 * expprint.c (print_subexp): Use xfree instead of free.
10185 * charset.c: Include "gdb_string.h" instead of <string.h>.
10186 (register_iconv_charsets): Use ISO C definition.
10187 (host_charset, target_charset): Ditto.
10188 * Makefile.in (charset.o): Update dependencies.
10189 (mi-cmd-env.o): Update dependencies.
10191 2003-01-08 Andrew Cagney <cagney@redhat.com>
10193 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10196 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10198 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10199 build directories. Save edited gdb output in Mbuild.log. If a
10200 build fails, remove any final GDB executable.
10202 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10204 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10205 replacing hex constants with function names and stripping leading
10206 file name directory prefixes.
10208 2003-01-08 Andrew Cagney <cagney@redhat.com>
10210 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10213 2003-01-08 David Carlton <carlton@math.stanford.edu>
10215 * linespec.c (decode_line_1): Move code into decode_variable.
10216 (decode_variable): New function.
10218 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10220 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10222 2003-01-08 Andrew Cagney <cagney@redhat.com>
10224 * cris-tdep.c (cris_frame_init_saved_regs): Use
10225 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10227 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10228 (sh64_nofp_frame_init_saved_regs): Ditto.
10229 (sh_fp_frame_init_saved_regs): Ditto.
10230 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10231 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10232 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10233 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10235 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10237 * minsyms.c (lookup_minimal_symbol): Update comment.
10238 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10239 (lookup_minimal_symbol_solib_trampoline): Likewise.
10241 2003-01-08 Andrew Cagney <cagney@redhat.com>
10243 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10244 frame_relative_level.
10246 * alpha-tdep.c: Use get_frame_extra_info.
10247 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10248 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10249 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10250 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10252 * alpha-tdep.c: Use get_next_frame.
10253 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10254 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10255 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10256 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10257 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10258 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10259 * xstormy16-tdep.c: Ditto.
10261 2003-01-07 Andrew Cagney <cagney@redhat.com>
10263 * alpha-tdep.c: Use get_frame_base.
10264 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10265 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10266 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10267 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10268 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10269 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10270 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10271 * config/sparc/tm-sparc.h: Ditto.
10273 2003-01-07 Andrew Cagney <cagney@redhat.com>
10275 * frame.c (deprecated_get_frame_context): New function.
10276 (deprecated_set_frame_context): New function.
10277 * frame.h (deprecated_get_frame_context): Declare.
10278 (deprecated_set_frame_context): Declare.
10279 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10280 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10282 2003-01-07 Andrew Cagney <cagney@redhat.com>
10284 * frame.c (deprecated_set_frame_next_hack): New function.
10285 (deprecated_set_frame_prev_hack): New function.
10286 * frame.h (deprecated_set_frame_next_hack): Declare.
10287 (deprecated_set_frame_prev_hack): Declare.
10288 * mcore-tdep.c (analyze_dummy_frame): Use
10289 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10290 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10292 2003-01-07 David Carlton <carlton@math.stanford.edu>
10294 * linespec.c (decode_line_1): Move code into decode_dollar.
10295 (decode_dollar): New function.
10297 2003-01-07 Andrew Cagney <cagney@redhat.com>
10299 * arm-tdep.c (arm_init_extra_frame_info): Use
10300 deprecated_update_frame_base_hack.
10301 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10302 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10303 (fix_frame_pointer): Ditto.
10304 (mn10300_analyze_prologue): Ditto.
10306 2003-01-07 Andrew Cagney <cagney@redhat.com>
10308 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10309 extra_info using frame_extra_info_zalloc.
10310 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10311 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10312 (sh64_init_extra_frame_info): Ditto.
10313 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10314 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10315 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10316 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10317 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10318 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10319 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10320 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10321 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10322 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10323 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10324 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10326 * mn10300-tdep.c (analyze_dummy_frame): Use
10327 deprecated_set_frame_extra_info_hack.
10328 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10330 2003-01-07 J. Brobecker <brobecker@gnat.com>
10332 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10333 class is not scText. These do not define "real" procedures.
10334 (parse_partial_symbols): Likewise.
10336 2003-01-06 Michael Snyder <msnyder@redhat.com>
10338 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10340 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10342 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10343 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10344 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10345 deprecated_frame_xmalloc_with_cleanup.
10346 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10347 deprecated_frame_xmalloc.
10348 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10349 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10351 2003-01-06 Andrew Cagney <cagney@redhat.com>
10353 * x86-64-linux-tdep.c: Include "osabi.h".
10354 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10356 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10358 2003-01-06 Andrew Cagney <cagney@redhat.com>
10360 * MAINTAINERS (Target Instruction Set Architectures): Update
10361 arm-elf. Can be built with -Werror, has been multiarched.
10363 * value.h (unpack_long): Make buffer parameter constant.
10364 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10365 * scm-lang.h (scm_parse): Ditto.
10366 * defs.h (extract_typed_address, extract_address): Ditto.
10367 (extract_long_unsigned_integer): Ditto.
10368 * inferior.h (unsigned_pointer_to_address): Ditto.
10369 (signed_pointer_to_address): Ditto.
10370 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10371 * gdbarch.h, gdbarch.c: Regenerate.
10372 * findvar.c (extract_long_unsigned_integer): Update.
10373 (extract_address): Update.
10374 (extract_typed_address): Update.
10375 (unsigned_pointer_to_address): Update.
10376 * values.c (unpack_long): Update.
10377 (unpack_double): Update.
10378 (unpack_pointer): Update.
10379 (unpack_field_as_long): Update.
10380 * d10v-tdep.c (d10v_pointer_to_address): Update.
10381 * avr-tdep.c (avr_pointer_to_address): Update.
10382 * scm-lang.c (scm_unpack): Update.
10383 * findvar.c (signed_pointer_to_address): Update.
10385 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10387 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10388 since it is in i386-tdep.c.
10390 2003-01-06 J. Brobecker <brobecker@gnat.com>
10392 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10393 failure introduced in the previous change.
10395 2003-01-05 Michael Chastain <mec@shout.net>
10397 * README: Remove references to deleted remote-*.c files:
10398 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10399 remote-nrom.c, remote-os9k.c, remote-udi.c.
10401 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10403 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10404 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10405 i386_get_longjmp_target.
10407 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10409 * arm-tdep.c (prologue_cache): Change to a pointer.
10410 (_initialize_arm_tdep): Allocate prologue_cache.
10411 (check_prologue_cache): Update.
10412 (save_prologue_cache): Update.
10413 (arm_gdbarch_init): Update.
10415 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10417 * stabsread.c (update_method_name_from_physname): Call complaint()
10420 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10422 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10423 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10424 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10426 * blockframe.c: Include "gdbcmd.h" and "command.h".
10427 (backtrace_below_main): New variable.
10428 (file_frame_chain_valid, func_frame_chain_valid)
10429 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10430 (generic_func_frame_chain_valid): Remove functions.
10431 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10432 (_initialize_blockframe): New function.
10433 * Makefile.in (blockframe.o): Update dependencies.
10434 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10435 comment. Call frame_chain_valid ().
10436 * frame.h: Remove old prototypes. Add prototype for
10437 frame_chain_valid and update comments to match.
10438 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10439 Remove old comment.
10440 * gdbarch.h: Regenerated.
10441 * gdbarch.c: Regenerated.
10443 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10444 set_gdbarch_frame_chain_valid.
10445 * avr-tdep.c (avr_gdbarch_init): Likewise.
10446 * cris-tdep.c (cris_gdbarch_init): Likewise.
10447 * frv-tdep.c (frv_gdbarch_init): Likewise.
10448 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10449 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10450 (i386_nw_init_abi): Likewise.
10451 (i386_gdbarch_init): Likewise.
10452 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10453 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10454 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10455 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10456 * mips-tdep.c (mips_gdbarch_init): Likewise.
10457 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10458 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10459 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10460 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10461 * s390-tdep.c (s390_gdbarch_init): Likewise.
10462 * sh-tdep.c (sh_gdbarch_init): Likewise.
10463 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10464 * v850-tdep.c (v850_gdbarch_init): Likewise.
10465 * vax-tdep.c (vax_gdbarch_init): Likewise.
10466 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10468 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10469 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10470 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10471 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10472 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10473 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10474 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10475 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10477 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10479 * Makefile.in (acconfig_h): Remove incorrect macro.
10480 (config_h): Define.
10481 (osabi.o): Update dependencies.
10482 * configure.tgt: Set gdb_osabi based on target triplet.
10483 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10484 * configure: Regenerated.
10485 * config.in: Regenerated.
10486 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10487 (GDB_OSABI_DEFAULT): Define if not already defined.
10488 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10489 (set_osabi_string): New variables.
10490 (gdbarch_register_osabi): Add new OS ABI to
10491 gdb_osabi_available_names.
10492 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10493 (set_osabi, show_osabi): New functions.
10494 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10496 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10498 * arch-utils.c (gdbarch_info_init): Set osabi to
10499 GDB_OSABI_UNINITIALIZED.
10500 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10501 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10502 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10503 * gdbarch.c: Regenerated.
10504 * gdbarch.h: Regenerated.
10505 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10507 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10508 * osabi.h (enum gdb_osabi): Move to defs.h.
10509 (gdbarch_init_osabi): Update prototype.
10510 * defs.h (enum gdb_osabi): Moved here.
10511 * Makefile.in: Update dependencies.
10513 * alpha-tdep.h: Don't include "osabi.h".
10514 (struct gdbarch_tdep): Remove osabi member.
10515 * alpha-tdep.c: Include "osabi.h".
10516 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10517 iterate over arches. Update call to gdbarch_init_osabi.
10518 (alpha_dump_tdep): Don't dump osabi.
10519 * alpha-linux-tdep.c: Include "osabi.h".
10520 * alpha-osf1-tdep.c: Include "osabi.h".
10521 * alphafbsd-tdep.c: Include "osabi.h".
10522 * alphanbsd-tdep.c: Include "osabi.h".
10524 * arm-tdep.h: Don't include "osabi.h".
10525 (struct gdbarch_tdep): Remove osabi member.
10526 * arm-tdep.c: Include "osabi.h".
10527 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10528 iterate over arches. Update call to gdbarch_init_osabi.
10529 (arm_dump_tdep): Don't dump osabi.
10530 * arm-linux-tdep.c: Include "osabi.h".
10531 * armnbsd-tdep.c: Include "osabi.h".
10533 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10534 Update call to gdbarch_init_osabi.
10536 * i386-tdep.h: Don't include "osabi.h".
10537 (struct gdbarch_tdep): Remove osabi member.
10538 * i386-tdep.c: Include "osabi.h".
10539 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10540 iterate over arches. Update call to gdbarch_init_osabi.
10541 (i386_dump_tdep): Don't dump osabi.
10542 * i386-linux-tdep.c: Include "osabi.h".
10543 * i386-sol2-tdep.c: Include "osabi.h".
10544 * i386bsd-tdep.c: Include "osabi.h".
10545 * i386gnu-tdep.c: Include "osabi.h".
10546 * i386ly-tdep.c: Include "osabi.h".
10547 * i386nbsd-tdep.c: Include "osabi.h".
10548 * i386obsd-tdep.c: Include "osabi.h".
10550 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10551 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10552 check osabi when iterating over arches. Update call to
10553 gdbarch_init_osabi.
10554 (mips_dump_tdep): Don't dump osabi.
10556 * ns32k-tdep.h: Don't include "osabi.h".
10557 (struct gdbarch_tdep): Remove.
10558 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10559 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10560 allocate tdep. Update call to gdbarch_init_osabi.
10561 (ns32k_dump_tdep): Remove.
10562 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10563 * ns32knbsd-tdep.c: Include "osabi.h".
10565 * ppc-tdep.h: Don't include "osabi.h".
10566 (struct gdbarch_tdep): Remove osabi member.
10567 * rs6000-tdep.c: Include "osabi.h".
10568 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10569 osabi when iterating over arches. Update call to
10570 gdbarch_init_osabi.
10571 (rs6000_dump_tdep): Don't dump osabi.
10572 * ppc-linux-tdep.c: Include "osabi.h".
10573 * ppcnbsd-tdep.c: Include "osabi.h".
10575 * sh-tdep.h: Don't include "osabi.h".
10576 (struct gdbarch_tdep): Remove osabi member.
10577 * sh-tdep.c: Include "osabi.h".
10578 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10579 iterate over arches. Update call to gdbarch_init_osabi.
10580 (sh_dump_tdep): Don't dump osabi.
10581 * shnbsd-tdep.c: Include "osabi.h".
10583 * sparc-tdep.c: Include "osabi.h".
10584 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10585 iterate over arches. Update call to gdbarch_init_osabi.
10586 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10589 * vax-tdep.h: Don't include "osabi.h".
10590 (struct gdbarch_tdep): Remove.
10591 * vax-tdep.c: Include "osabi.h".
10592 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10593 iterate over arches. Don't allocate tdep. Update call
10594 to gdbarch_init_osabi.
10595 (vax_dump_tdep): Remove.
10596 (_initialize_vax_tdep): Update call to gdbarch_register.
10598 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10600 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10602 (breakpoint_re_set_one): Don't fetch the value for a disabled
10605 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10607 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10608 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10609 (COERCE_FLOAT_TO_DOUBLE): Remove.
10610 * gdbarch.c: Regenerate.
10611 * gdbarch.h: Regenerate.
10612 * Makefile.in: Remove value_h from gdbarch_h.
10613 * valops.c (coerce_float_to_double): New variable.
10614 (default_coerce_float_to_double): Remove.
10615 (standard_coerce_float_to_double): Remove.
10616 (value_arg_coerce): Use coerce_float_to_double.
10617 (_initialize_valops): Add "set coerce-float-to-double".
10618 * value.h (default_coerce_float_to_double): Remove prototype.
10619 (standard_coerce_float_to_double): Remove prototype.
10621 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10623 * mdebugread.c (parse_symbol): Likewise.
10624 * stabsread.c (define_symbol): Mark all functions as prototyped.
10626 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10627 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10628 set_gdbarch_coerce_float_to_double.
10629 * arm-tdep.c (arm_gdbarch_init): Likewise.
10630 * frv-tdep.c (frv_gdbarch_init): Likewise.
10631 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10632 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10633 * mips-tdep.c (mips_gdbarch_init): Likewise.
10634 (mips_coerce_float_to_double): Remove.
10635 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10636 (rs6000_coerce_float_to_double): Remove.
10637 * s390-tdep.c (s390_gdbarch_init): Likewise.
10638 * sh-tdep.c (sh_gdbarch_init): Likewise.
10639 (sh_coerce_float_to_double): Remove.
10640 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10641 (sparc_coerce_float_to_double): Remove.
10642 * v850-tdep.c (v850_gdbarch_init): Likewise.
10643 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10644 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10645 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10646 (hppa_coerce_float_to_double): Remove prototype.
10647 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10649 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10651 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10653 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10655 Suggested by Stewart Brown <sb24@avaya.com>:
10656 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10657 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10658 (c_type_print_varspec_suffix): Likewise.
10660 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10662 * configure.in: Don't set and AC_SUBST SUBDIRS.
10663 * configure: Regenerated.
10665 * configure.in: Remove code dealing with shared libraries.
10666 * Makefile.in: Remove HLDFLAGS and HLDENV.
10667 * configure: Regenerated.
10669 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10671 * frame.c (deprecated_frame_xmalloc): New function.
10672 (deprecated_set_frame_saved_regs_hack): New function.
10673 (deprecated_set_frame_extra_info_hack): New function.
10674 * frame.h (deprecated_frame_xmalloc): Declare.
10675 (deprecated_set_frame_saved_regs_hack): Declare.
10676 (deprecated_set_frame_extra_info_hack): Declare.
10678 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10680 * configure.in: Move code that provides the --enable-gdbtk option
10681 right after the code that handles the --enable-tui option, and
10682 polish it somewhat.
10683 * configure: Regenerated.
10685 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10686 AC_CHECK_FUNCS and remove the old check for pread64.
10687 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10688 * acconfig.h (_GNU_SOURCE): Add.
10689 (HAVE_PREAD64): Remove.
10690 * configure, aclocal.m4, config.in: Regenerated.
10692 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10694 * alpha-tdep.c: Use get_frame_saved_regs.
10695 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10696 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10697 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10698 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10699 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10701 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10703 * configure.in: Remove all use of the SUBDIRS variable; add
10704 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10705 code providing the --enable-multi-ice option, and move it right in
10706 front of the code that checks whether gdbserver is supported.
10708 * configure: Regenerated.
10709 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10712 2003-01-03 Andrew Cagney <cagney@redhat.com>
10714 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10715 * avr-tdep.c, cris-tdep.c: Ditto.
10716 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10717 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10719 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10721 * configure.in: Remove --enable-netrom option.
10722 * configure: Regenerated.
10724 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10726 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10727 declaration for `struct re_pattern_buffer' instead.
10728 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10730 2003-01-03 J. Brobecker <brobecker@gnat.com>
10732 * mdebugread.c (parse_symbol): Count until the stEnd matching
10733 the structure name.
10735 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10737 * configure.in: Remove --with-cpu option.
10738 subscripts. Remove evil changequotes here.
10739 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10740 * config.in, configure: Regenerated.
10742 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10743 * configure.in: Cleanup section that sources GDB and BFD configure
10744 subscripts. Remove evil changequotes here.
10745 * config.in, configure: Regenerated.
10747 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10749 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10750 frame accessor methods.
10751 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10752 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10753 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10754 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10755 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10756 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10757 * z8k-tdep.c: Ditto.
10759 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10761 * configure.in: Remove UI_OUT configuration code.
10762 * ada-lang.c: Update assuming UI_OUT is always true.
10763 * Makefile.in (UIOUT_CFLAGS): Remove.
10764 * configure: Regenerated.
10765 * TODO: Remove blurb about elimination of -DUI_OUT.
10767 * configure.in: Move code that provides the --enable-gdbcli,
10768 --enable-gdbmi options right before the code that handles the
10769 --enable-tui option. Polish a bit.
10770 * configure: Regenerated.
10772 * configure.in: Rewrite check for GNU regex and the
10773 --without-included regex option, and move it into the "Checks for
10774 library functions" section. This makes us use the system regex
10775 again by default on systems with version 2 of the GNU C library.
10776 This was apparently broken.
10777 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10778 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10779 * config.in, configure: Regenerated.
10781 * configure.in: Move code that provides the --enable-tui option
10782 before the "Checks for libraries" section. Polish the code
10783 somewhat and set need_curses to yes if we build the TUI. Rewrite
10784 code that looks for a library providing termcap functionality to
10785 match more closely what's done in the Readline library, and move
10786 it into to the "Checks for libraries" section.
10787 * configure: Regenerated.
10788 * Makefile.in (TERMCAP): Remove variable.
10789 * config/i386/go32.mh (TERMCAP): Remove variable.
10791 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10793 * MAINTAINERS: Mention gdb_mbuild.sh.
10794 * gdb_mbuild.sh: Rewrite.
10796 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10798 * configure.in: Fix typo in last change.
10799 * config.in, configure: Regenerated.
10801 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10803 * valarith.c (value_binop): Delete obsolete code and comments.
10804 * configure.host: Ditto.
10805 * buildsym.h (make_blockvector): Ditto.
10806 * buildsym.c (make_blockvector): Ditto.
10807 * defs.h (enum language): Ditto.
10808 (chill_demangle): Ditto.
10809 * elfread.c (elf_symtab_read): Ditto.
10810 * dwarfread.c (CHILL_PRODUCER): Ditto.
10811 (set_cu_language): Ditto.
10812 (handle_producer): Ditto.
10813 * expprint.c (print_subexp): Ditto.
10814 * gdbtypes.c (chill_varying_type): Ditto.
10815 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10816 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10817 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10818 (chill_varying_type): Ditto.
10819 * language.h (_LANG_chill): Ditto.
10820 * language.c (binop_result_type, integral_type): Ditto.
10821 (character_type, string_type, structured_type): Ditto.
10822 (lang_bool_type, binop_type_check): Ditto.
10823 * stabsread.h (os9k_stabs): Ditto.
10824 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10825 (define_symbol, read_type, read_struct_fields): Ditto.
10826 (read_array_type, read_enum_type, read_huge_number): Ditto.
10827 (read_range_type, start_stabs): Ditto.
10828 * symfile.c (init_filename_language_table): Ditto.
10829 (add_psymbol_with_dem_name_to_list): Ditto.
10830 * symtab.c (symbol_init_language_specific): Ditto.
10831 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10832 * symtab.h (struct general_symbol_info): Ditto.
10833 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10834 * typeprint.c (typedef_print): Ditto.
10835 * utils.c (fprintf_symbol_filtered): Ditto.
10836 * valops.c (value_cast, search_struct_field, value_slice): Delete
10838 (varying_to_slice): Delete function.
10839 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10840 (varying_to_slice): Delete declaration.
10841 * MAINTAINERS: Update.
10843 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10845 * configure.in: Reorganize "Checks for library functions section"
10846 a bit. Remove check for `btowc' and `isascii' functions.
10847 * configure: Regenerated.
10849 * acconfig.h (_MSE_INT_H): Remove.
10850 * configure.in: Create "Checks for header files" section, and move
10851 appropriate tests there. Don't check for objlist.h, wchar.h,
10852 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10853 misdetection fix. Also add "Checks for types", "Checks for
10854 compiler characteristics" and "Checks for library functions"
10856 * config.in, configure: Regenerated.
10858 * configure.in: Create "Checks for programs" section, and move
10859 appropriate tests there.
10861 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10863 * configure.in: Create "Checks for libraries" section, and move
10864 appropriate tests there. Cleanup check for wctype in libw. Use
10865 AC_SEARCH_LIBS to see whether we need libsocket.
10866 * configure: Regenerated.
10868 For older changes see ChangeLog-2002
10874 version-control: never