1 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3 * regcache.c (register_buffer): Consitify first argument.
4 (regcache_raw_supply, regcache_raw_collect): New
7 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
9 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
10 by Nathan J. Williams.
12 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
14 * lin-lwp.c (wait_lwp): New function, copied from
15 stop_wait_callback. Clean up.
16 (stop_wait_callback): Use wait_lwp.
18 2003-08-28 Andrew Cagney <cagney@redhat.com>
20 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
21 flavour and disassembler options.
22 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
23 (mips_gdbarch_init): Set "print_insn". Delete initialization of
24 deprecated_tm_print_insn_info.
26 2003-08-27 Andrew Cagney <cagney@redhat.com>
28 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
29 Use target_read_memory.
30 (s390_get_frame_info): Update. Do not reference
31 deprecated_tm_print_insn_info.
32 (s390_check_function_end, s390_is_sigreturn): Ditto.
34 2003-08-27 Andrew Cagney <cagney@redhat.com>
36 * Makefile.in (cris-tdep.o): Update dependencies.
37 * cris-tdep.c: Include "gdb_assert.h".
38 (cris_gdbarch_init): Set print_insn.
39 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
40 (cris_delayed_get_disassembler): Simplify, directly call the
41 disassembler returned by cris_get_disassembler.
42 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
43 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
44 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
45 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
46 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
47 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
48 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
49 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
50 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
51 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
52 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
53 (gdb_print_insn_sparc): Delete function.
54 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
55 deprecated_tm_print_insn_info.
56 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
57 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
58 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
59 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
60 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
61 * s390-tdep.c (gdb_print_insn_s390): Delete function.
62 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
63 (s390_gdbarch_init): Set print_insn.
65 2003-08-27 Andrew Cagney <cagney@redhat.com>
67 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
68 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
69 * infcall.c (call_function_by_hand): Convert the entry point
70 address into a code address.
72 2003-08-27 Andrew Cagney <cagney@redhat.com>
74 * dsrec.c: Include "gdb_string.h".
75 * Makefile.in (dsrec.o): Update dependencies.
77 2003-08-27 Michael Chastain <mec@shout.net>
79 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
81 2003-08-27 Andrew Cagney <cagney@redhat.com>
83 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
84 (alpha_osf1_init_abi): Do not set call_dummy_address.
86 2003-08-27 David Carlton <carlton@kealia.com>
88 From Randolph Chung <tausq@debian.org>:
89 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
90 compiles with -Wformat-nonliteral -Werror.
92 2003-08-26 Jim Blandy <jimb@redhat.com>
94 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
95 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
96 bfd_lookup_symbol, since we only want symbols in code sections.
97 (look_for_base): Pass zero as the SECT_FLAGS argument to
98 bfd_lookup_symbol, since we're not concerned about which section
101 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
103 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
104 we are frameless or the return address register is already known.
106 2003-08-26 Andrew Cagney <cagney@redhat.com>
108 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
109 in size. Add comments.
111 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
113 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
114 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
116 2003-08-26 Jason Merrill <jason@redhat.com>
118 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
119 case out of #ifdef MIPS block.
121 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
124 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
125 available before calling SECT_OFF_TEXT.
126 * PROBLEMS: Remove description of java/1322.
128 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
130 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
131 bof, and nat0-nat127 as pseudo-registers.
132 (ia64_frame_cache): New struct used to cache frame info.
133 (ia64_register_reggroup_p): New routine used to override default
134 register grouping so registers without names are still saved and
136 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
138 (ia64_pseudo_register_read): New routine to read pseudo-registers.
139 (ia64_pseudo_register_write): New routine to write pseudo-registers.
140 (ia64_alloc_frame_cache): New routine to create a new
142 (examine_prologue): Change prototype to add next_frame pointer.
143 Assume frameless until otherwise proven. Verify that the cfm for
144 current frame matches the cfm that should occur for the prologues
145 alloc insn and if equal, mark as not frameless. At end of routine,
146 if not frameless, calculate registers for the previous frame and store
147 in the cache, if a cache is provided.
148 (ia64_skip_prologue): Use new prototype when calling examine_prologue
149 and pass 0 for next_frame.
150 (ia64_store_return_value): Change to use convert_typed_floating()
151 instead of calling ia64_convert_to_raw().
152 (ia64_extract_return_value): Change to use convert_typed_floating()
153 instead of calling ia64_convert_to_virtual().
154 (ia64_frame_cache): New routine to support new frame model.
155 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
156 (ia64_frame_sniffer): Ditto.
157 (ia64_sigtramp_frame_init_saved_regs): Ditto.
158 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
159 (ia64_sigtramp_frame_prev_register): Ditto.
160 (ia64_sigtramp_frame_sniffer): Ditto.
161 (ia64_frame_base_address): Ditto.
162 (ia64_extract_struct_value_address): Change to issue error message.
163 (ia64_frame_align): New routine to align sp.
164 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
165 (ia64_push_arguments): Removed. Logic moved to
166 ia64_push_dummy_call().
167 (ia64_push_return_address): Ditto.
168 (ia64_unwind_dummy_id): New function.
169 (ia64_unwind_pc): Ditto.
170 (ia64_convert_register_p): Ditto.
171 (ia64_register_to_value): Ditto.
172 (ia64_value_to_register): Ditto.
173 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
174 (ia64_register_byte, ia64_register_raw_size): Ditto.
175 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
176 (ia64_saved_pc_after_call): Ditto.
177 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
178 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
179 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
180 (ia64_register_convert_to_raw): Ditto.
181 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
182 (ia64_init_extra_frame_info): Ditto.
183 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
184 (ia64_gdbarch_init): Remove registering of deprecated functions that
185 are no longer used. Add registration of new gdbarch functions.
186 Remove registering deprecated_write_sp. Replace
187 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
188 Delete set_gdbarch_deprecated_register_convertible(),
189 set_gdbarch_deprecated_register_convert_to_virtual(), and
190 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
191 set_gdbarch_deprecated_register_size(),
192 set_gdbarch_deprecated_register_bytes(),
193 set_gdbarch_pcregnum(),
194 set_gdbarch_deprecated_register_byte(),
195 set_gdbarch_deprecated_register_raw_size(),
196 set_gdbarch_deprecated_max_register_raw_size(),
197 set_gdbarch_deprecated_register_virtual_size(),
198 and set_gdbarch_deprecated_max_register_virtual_size() calls.
199 Replace set_gdbarch_deprecated_extract_return_value() with
200 set_gdbarch_extract_return_value(). Remove calls to:
201 set_gdbarch_deprecated_saved_pc_after_call();
202 set_gdbarch_deprecated_frame_chain(),
203 set_gdbarch_deprecated_frame_saved_pc(),
204 set_gdbarch_deprecated_frame_init_saved_regs(),
205 set_gdbarch_deprecated_get_saved_register(),
206 set_gdbarch_deprecated_call_dummy_words(),
207 set_gdbarch_deprecated_sizeof_call_dummy_words(),
208 set_gdbarch_deprecated_init_extra_frame_info(),
209 set_gdbarch_deprecated_frame_args_address(),
210 set_gdbarch_deprecated_frame_locals_address(),
211 and set_gdbarch_deprecated_dummy_write_sp().
212 Add set_gdbarch_convert_register_p(),
213 set_gdbarch_register_to_value(),
214 set_gdbarch_value_to_register(),
215 set_gdbarch_push_dummy_call(),
216 set_gdbarch_frame_align(),
217 set_gdbarch_unwind_dummy_id(),
218 set_gdbarch_unwind_pc(),
219 frame_unwind_append_sniffer(),
220 frame_unwind_append_sniffer(),
221 and frame_base_set_default().
223 2003-08-25 Chris Demetriou <cgd@broadcom.com>
225 * configure.tgt: Document need for special "mipsisa64" handling.
226 (mipsisa64*-*-linux64): Handle as target linux64.
227 (mipsisa64*-*-*): Handle as target embed64.
229 2003-08-18 Michael Chastain <mec@shout.net>
231 * PROBLEMS: Document pr gdb/1322, the Java anonymous
234 2003-08-24 Mark Kettenis <kettenis@gnu.org>
236 * i387-tdep.h: Update copyright date.
237 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
239 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
240 CFLAGS games to reflect reality.
242 2003-08-24 Andrew Cagney <cagney@redhat.com>
244 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
245 GDB_MULTI_ARCH is always non-zero.
246 * osabi.c (_initialize_gdb_osabi): Ditto.
247 (gdbarch_init_osabi): Ditto.
248 * sparc-tdep.c: Ditto for #if code.
250 2003-08-23 Mark Kettenis <kettenis@gnu.org>
252 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
254 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
256 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
257 x86_64_supply_fxsave.
258 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
259 x86_64_supply_fxsave.
260 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
261 x86_64_supply_fxsave.
263 2003-08-23 Andreas Jaeger <aj@suse.de>
265 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
268 2003-08-23 Mark Kettenis <kettenis@gnu.org>
270 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
271 i387_supply_register.
272 (go32_fetch_registers): Adjust call to i387_supply_fsave.
273 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
275 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
277 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
279 * i386bsd-nat.c (supply_fpregset): Adjust call to
281 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
282 call to i387_supply_fxsave. Call i387_supply_fsave instead of
284 (store_inferior_registers): Remove extraneous whitespace. Call
285 i387_fill_fsave instead of fill_fpregset.
286 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
287 (supply_fpregset): Likewise.
288 * i386v4-nat.c (supply_fpregset): Adjust call to
290 * i386-interix-nat.c (supply_fpregset): Adjust call to
292 * i386-linux-nat.c (supply_fpregset): Adjust call to
294 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
295 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
296 i387supply_fsave and i387_supply_fxsave.
297 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
298 Incorporate code from `i387_supply_register.
299 (i387_supply_register): Remove.
300 (i387_supply_fxsave): Add `regnum' argument.
302 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
304 (i387_supply_register): remove prototype.
307 2003-08-22 Michael Chastain <mec@shout.net>
309 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
310 Add lines for files in gdb/testsuite/gdb.cp/* that are
311 still not 8.3 unique.
313 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
315 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
316 TYPE_VPTR_FIELDNO is valid.
318 2003-08-19 Mark Kettenis <kettenis@gnu.org>
320 * utils.c (set_width_command): Remove prototypes.
321 (set_screen_size): New prototype.
322 (init_page_info): Simplify by fetching the screen size from
323 Readline. Call set_screen_size.
324 (set_screen_size): New function.
325 (set_width): Add missing whitespace in comment.
326 (set_width_command): Call set_screen_size.
327 (set_height_command): New function.
328 (initialize_utils): Fix formatting. Make "set height" command
329 call set_height_command. Remove redundant code that turns off
330 pagination if output isn't a terminal. Remove redundant call to
333 2003-08-22 Mark Kettenis <kettenis@gnu.org>
335 * sparc64-tdep.h (sparc64_regnum): Fix comment.
336 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
337 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
338 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
340 (sparc64_register_info): Give the reister with number
341 SPARC64_STATE_REGNUM a name.
342 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
344 (sparc64_push_dummy_call): Take BIAS into account when checking
346 (sparc_software_single_step): Remove assertions that check whether
347 NPC and NNPC were zero.
348 (sparc_supply_rwindow): Make public. Merge functionality with
349 sparc64_supply_rwindow.
350 (sparc_fill_rwindow): Make public. Merge functionality with
351 sparc64_fill_rwindow.
352 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
353 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
354 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
355 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
356 sparc_supply_rwindow instead of sparc64_supply_rwindow.
358 * reggroups.c: Add whitespace after declarations of local
359 variables in functions.
361 2003-08-21 Michael Chastain <mec@shout.net>
363 * gdbtypes.h: Change array bound type from an int to enum.
365 2003-08-21 Andrew Cagney <cagney@redhat.com>
367 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
368 * config/sparc/tm-sparc.h: Ditto.
369 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
371 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
373 2003-07-13 Mark Kettenis <kettenis@gnu.org>
375 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
376 (register_objfile_data, set_objfile_data, objfile_data): New
378 * objfiles.c (objfile_alloc_data, objfile_free_data): New
380 (allocate_objfile): Call objfile_alloc_data.
381 (free_objfile): Call objfile_free_data.
382 (struct objfile_data): New.
383 (struct objfile_data_registration): New.
384 (struct objfile_data_registry): New.
385 (objfile_data_registry): New variable.
386 (register_objfile_data): New function.
387 (objfile_alloc_data, objfile_free_data): New functions.
388 (set_objfile_data, objfile_data): New functions.
389 * dwarf2-frame.c (dwarf2_frame_data): New variable.
390 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
391 (_initialize_dwarf2_frame): New function and prototype.
393 2003-08-21 Andrew Cagney <cagney@redhat.com>
395 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
396 a specific architecture.
397 * arch-utils.h (set_architecture_from_arch_mach): Delete
399 (target_architecture_hook): Delete declaration.
400 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
401 (default_float_format): Assume GDB_MULTI_ARCH.
402 (default_double_format): Assume GDB_MULTI_ARCH.
403 (set_endian_from_file): Delete function.
404 (arch_ok): Delete function.
405 (set_arch): Delete function.
406 (set_architecture_from_arch_mach): Delete function.
407 (set_architecture_from_file): Delete function.
408 (set_architecture): Assume GDB_MULTI_ARCH.
409 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
411 2003-08-21 Mark Kettenis <kettenis@gnu.org>
413 Rewrite FreeBSD/sparc64 native configuration.
414 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
415 * sparc64fbsd-nat.c: New file.
416 * sparc64fbsd-tdep.c: New file.
417 * sparc64-tdep.c sparc64-tdep.h: New files.
418 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
419 sparc64fbsd-tdep.o): New dependencies.
420 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
421 and sparc64fbsd-tdep.c.
422 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
423 * config/sparc/fbsd.mh: Remove copyright notice.
424 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
426 * config/sparc/fbsd.mt: Remove copyright notice.
427 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
428 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
429 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
430 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
431 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
432 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
433 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
434 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
436 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
437 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
439 2003-08-21 Michael Chastain <mec@shout.net>
441 * symtab.h: Add doco on the space critical structures and
442 some measurements of space usage.
444 2003-08-21 Michael Snyder <msnyder@redhat.com>
446 * tracepoint.c (trace_dump_command): Trace break address
447 is subject to DECR_PC_AFTER_BREAK.
448 (set_traceframe_context): Make "trace_line" an int.
449 Fixes suggested by Mark Newman <mark.newman@lmco.com>
451 2003-08-20 Michael Snyder <msnyder@redhat.com>
453 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
454 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
455 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
457 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
458 functions, replace sh_push_dummy_call.
459 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
461 2003-08-20 Michael Chastain <mec@shout.net>
463 * gdbtypes.h (struct main_type): Rearrange to save space.
465 2003-08-20 Michael Snyder <msnyder@redhat.com>
467 * trad-frame.c: Comment typo fix.
469 2003-08-20 Michael Snyder <msnyder@redhat.com>
470 Kevin Buettner <kevinb@redhat.com>
472 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
473 (frv_frame_init_saved_regs): Add declaration.
474 (frame_extra_info): Add new field ``saved_regs''.
475 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
476 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
477 Update frame related code.
478 (frv_extract_struct_value_address): Adjust formatting.
479 * Makefile.in (frv-tdep.o): Update dependencies.
480 * config/frv/tm-frv.h (target_insert_watchpoint)
481 (target_remove_watchpoint, target_insert_hw_breakpoint)
482 (target_remove_hw_breakpoint): Delete these macros.
483 (remote_insert_watchpoint, remote_remove_watchpoint)
484 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
487 2003-08-20 Michael Chastain <mec@shout.net>
489 * defs.h (ENUM_BITFIELD): New macro.
490 * symtab.h (ENUM_BITFIELD): Use it.
491 (BYTE_BITFIELD): Remove old macro, which was already disabled.
493 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
495 * MAINTAINERS (write after approval): Add myself.
497 2003-08-18 Andrew Cagney <cagney@redhat.com>
499 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
500 * gdbarch.h, gdbarch.c: Re-generate.
501 * infcall.c (call_function_by_hand): Adjust the SP by
502 frame_red_zone_size before allocating any stack space.
503 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
504 * x86-64-tdep.c (x86_64_frame_align): New function.
505 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
507 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
508 Remove code adjusting SP so that it skips over the Red Zone.
510 2003-08-18 Mark Kettenis <kettenis@gnu.org>
512 * NEWS (New native configurations): Mention FreeBSD/amd64.
514 2003-08-18 Andrew Cagney <cagney@redhat.com>
516 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
517 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
519 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
521 2003-08-18 Mark Kettenis <kettenis@gnu.org>
523 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
525 2003-08-18 Michal Ludvig <mludvig@suse.cz>
527 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
529 * i386-linux-nat.c: Include "linux-nat.h".
530 (child_post_startup_inferior): New function.
532 2003-08-18 Mark Kettenis <kettenis@gnu.org>
534 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
535 at the start of a frameless function. This probably fixes PR
538 2003-08-17 Michael Chastain <mec@shout.net>
540 * symfile.c (find_sym_fns): Remove special case for apollo target.
542 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
544 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
545 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
546 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
547 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
548 (linux_supports_tracevforkdone): New function.
549 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
551 (child_follow_fork): Handle vfork.
552 (linux_handle_extended_wait): Likewise. Also handle exec.
553 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
554 * NEWS: Mention fork tracing.
556 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
558 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
560 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
562 * Makefile.in (i386-linux-nat.o): Update dependencies.
563 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
564 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
565 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
566 * i386-linux-nat.c: Include "linux-nat.h".
567 (child_post_startup_inferior): New function.
568 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
569 * infptrace.c (kill_inferior): Wrap in #ifdef.
570 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
571 attaching to each LWP.
572 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
573 (init_lin_lwp_ops): Fill in some more operations.
574 * linux-nat.h (linux_enable_event_reporting)
575 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
577 * linux-nat.c (linux_enable_event_reporting): New function.
578 (child_post_attach, linux_child_post_startup_inferior)
579 (child_post_startup_inferior, child_follow_fork)
580 (linux_handle_extended_wait, kill_inferior): New functions.
582 2003-08-16 Andrew Cagney <cagney@redhat.com>
584 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
585 * gdbarch.h, gdbarch.c: Re-generate.
587 2003-08-16 Mark Kettenis <kettenis@gnu.org>
589 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
591 2003-08-16 Andrew Cagney <cagney@redhat.com>
593 * NEWS: Mention that "set prompt-escape-char" was deleted.
594 * top.c (get_prompt_1): Delete function.
596 (init_main): Do not clear "gdb_prompt_escape". Delete "set
597 prompt-escape-char" command.
598 (MAX_PROMPT_SIZE): Delete macro.
599 (get_prompt): Simplify, do not call get_prompt_1.
601 2003-08-16 Andrew Cagney <cagney@redhat.com>
603 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
604 -Werror. -Wformat-nonliteral problems.
606 2003-08-15 J. Brobecker <brobecker@gnat.com>
608 Further multiarching work mostly for hppa64-*-hpux11:
609 * hppa-tdep.h: New file.
610 * hppa-tdep.c: #include hppa-tdep.c.
611 (hppa32_num_regs): Renamed from hppa_num_regs.
612 (hppa64_num_regs): New constant.
613 (hppa64_call_dummy_breakpoint_offset): New constant.
614 (hppa32_call_dummy_length): New constant.
615 (hppa64_call_dummy_length): New constant.
616 (hppa32_stack_align): Make name 32bit explicit.
617 (hppa32_register_virtual_type): Likewise.
618 (hppa32_extract_return_value): Likewise.
619 (hppa32_use_struct_convention): Likewise.
620 (hppa32_store_return_value): Likewise.
621 (hppa64_register_virtual_type): New function.
622 (hppa64_extract_return_value): New function.
623 (hppa64_use_struct_convention): New function.
624 (hppa64_store_return_value): New function.
625 (hppa_frame_locals_address): Remove declaration, function does
627 (hppa_register_byte): Add support for PA64 ABI.
628 (hppa_gdbarch_init): Add support for PA64 ABI.
629 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
630 Make name 32bit explicit.
631 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
632 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
633 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
634 (hppa64_hpux_frame_base_before_sigtramp): New function.
635 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
636 * config/pa/tm-hppa64.h: Remove macros that are no longer
637 necessary now that the gdbarch vector is properly setup.
638 Transform some macros into function calls. Some minor cleanup.
639 * config/pa/tm-hppah.h: Update function calls in macros
640 following the function renaming in hppa-hpux-tdep.c.
641 * Makefile.in (hppa_tdep_h): New variable.
642 (hppa-tdep.o): Add dependency over hppa_tdep_h.
644 2003-08-14 Michael Snyder <msnyder@redhat.com>
646 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
648 2003-08-13 J. Brobecker <brobecker@gnat.com>
650 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
651 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
654 2003-08-13 Michael Snyder <msnyder@redhat.com>
656 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
657 (frv_saved_pc_after_call): Use deprecated ftype.
658 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
659 (frv_remote_translate_xfer_address): Remove.
660 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
662 2003-08-13 J. Brobecker <brobecker@gnat.com>
664 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
665 initialization after the common gdbarch initialization, not before.
667 2003-08-13 J. Brobecker <brobecker@gnat.com>
669 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
670 (ADDR_BITS_REMOVE): Remove, redundant.
672 2003-08-13 J. Brobecker <brobecker@gnat.com>
674 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
675 gdbarch method to clear the 2 low bits of text addresses.
677 2003-08-12 Andrew Cagney <cagney@redhat.com>
679 * Makefile.in (dsrec.o): Update dependencies.
680 * dsrec.c: Include "gdb_assert.h".
681 (make_srec): Use snprintf instead of sprintf, use a literal format
684 2003-08-12 Andrew Cagney <cagney@redhat.com>
686 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
687 FRAME_OBSTACK_ZALLOC.
689 2003-08-12 Kevin Buettner <kevinb@redhat.com>
691 * i386-tdep.c (i386_gdbarch_init): Enable default support for
694 2003-08-10 Mark Kettenis <kettenis@gnu.org>
696 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
697 amd64fbsd_sc_reg_offset): Add extern declarations.
698 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
701 2003-08-11 Ben Elliston <bje@wasabisystems.com>
703 * MAINTAINERS (write after approval): Update my mail address.
705 2003-08-10 Andrew Cagney <cagney@redhat.com>
707 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
709 2003-08-10 Mark Kettenis <kettenis@gnu.org>
711 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
712 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
713 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
714 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
715 i386bsd_sc_reg_offset): Add extern declarations.
716 * i386obsd-nat.c: Include "i386-tdep.h"
717 (_initialize_i386obsd_nat): Remove extern declarations.
718 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
720 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
723 * i386-tdep.c (i386_register_to_value): Use get_frame_register
724 instead of frame_read_register.
725 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
726 instead of frame_read_register. Use I386_ESP_REGNUM instead of
728 (i386_frame_prev_register): Use frame_unwind_register_unsigned
729 instead of frame_unwind_unsigned_register. Use
730 I386_EFLAGS_REGISTER instead of PS_REGNUM.
731 (i386_get_longjmp_target): Use regcache_read_unsigned_register
732 instead of read_register. Use builtin_type_void_data_ptr instead
733 of builtin_type_void_func_ptr when extracting the address of the
735 (i386_extract_return_value, i386_store_return_value,
736 i386_pseudo_register_read, i386_pseudo_register_write): Use
737 register_size instead REGISTER_RAW_SIZE.
739 2003-08-10 Andrew Cagney <cagney@redhat.com>
741 * infcall.c (call_function_by_hand): Use xstrprintf instead of
742 sprintf. Make "name" constant.
744 2003-08-10 Mark Kettenis <kettenis@gnu.org>
746 * i387-tdep.c (i387_register_to_value): Use get_frame_register
747 instead of frame_read_register.
748 (i387_print_float_info): Use get_frame_register and
749 get_frame_register_unsigned instead of frame_register_read.
751 * i386fbsd-nat.c: Include "i386-tdep.h".
752 (child_resume): Make `eflags' an ULONGEST. Use
753 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
754 instead of register_read and register_write.
756 * i386bsd-nat.c (fetch_inferior_registers,
757 store_inferior_registers): Don't use && at the end of a line.
758 (_initialize_i386bsd_nat): Fix typo.
760 * frame.c (_initialize_frame): Add missing backslash.
762 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
763 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
764 and supply_register instead of manipulating the register buffer
767 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
768 * config/i386/nm-i386sol2.h
769 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
771 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
772 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
773 instructions that GCC likes to mingle into the prologue. Fixes
774 gdb/1253 and gdb/1255.
776 2003-08-09 Andrew Cagney <cagney@redhat.com>
779 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
780 * command.h (add_setshow_uinteger_cmd): Declare.
781 * frame.c (set_backtrace_cmd): New function.
782 (show_backtrace_cmd): New function.
783 * frame.c (_initialize_frame): Replace "set/show
784 backtrace-below-main" with "set/show backtrace past-main". Add
785 command "set/show backtrace limit".
786 (backtrace_past_main): Rename "backtrace_below_main".
787 (backtrace_limit): New variable.
788 (get_prev_frame): Update. Check the backtrace_limit.
790 2003-08-09 Andrew Cagney <cagney@redhat.com>
792 * defs.h (xstrprintf): Declare.
793 * utils.c (xstrprintf): New function.
794 * breakpoint.c (insert_breakpoints): Replace sprintf and
795 non-literal format strings, with xstrprintf and cleanups.
796 (delete_breakpoint,breakpoint_re_set): Ditto.
797 (commands_command, insert_breakpoints): Ditto.
798 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
799 (break_at_finish_command_1): Ditto.
801 2003-08-09 Andrew Cagney <cagney@redhat.com>
803 * MAINTAINERS (language support): List Adam Fedor as Objective C
806 2003-08-08 J. Brobecker <brobecker@gnat.com>
808 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
811 2003-08-08 J. Brobecker <brobecker@gnat.com>
813 * config/pa/tm-hppa64.h: Remove lots of macros that are no
814 longer necessary now that hppa64 is partially multiarch'ed.
816 2003-08-08 Andrew Cagney <cagney@redhat.com>
818 * interps.c (interp_set): Check for a NULL "old_interp".
820 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
822 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
823 (install-only): Support DESTDIR.
824 (uninstall): Likewise.
825 (install-gdbtk): Likewise.
827 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
829 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
830 contains something meaningful at all times.
832 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
834 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
836 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
838 * MAINTAINERS (write after approval): Added self.
840 2003-08-07 Andrew Cagney <cagney@redhat.com>
842 * inferior.h (AT_SYMBOL): Define.
843 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
844 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
845 * mips-tdep.c (mips_call_dummy_address): Delete function.
846 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
847 set call_dummy_address.
849 2003-08-07 Andrew Cagney <cagney@redhat.com>
851 * language.c (op_error): Delete function.
852 (binop_type_check): Delete function.
853 * language.h (type_op_error, range_op_error): Delete macros.
854 (op_error): Delete declaration.
856 2003-08-07 Andrew Cagney <cagney@redhat.com>
858 * interps.h (INTERP_MI2, INTERP_MI3): Define.
860 2003-08-07 Michal Ludvig <mludvig@suse.cz>
862 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
863 (x86_64_push_arguments): Skip the red zone.
865 2003-08-05 Andrew Cagney <cagney@redhat.com>
867 * reggroups.c (reggroup_next): Check for the final entry.
869 2003-08-04 Andrew Cagney <cagney@redhat.com>
871 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
872 * cli/cli-script.c (define_command): Call query directly, instead
873 of passing it a buffer.
874 * ocd.c (ocd_error): Pass error a constant format string.
875 * remote-mips.c (mips_error): Use fputs_filtered.
877 * solib-svr4.c (_initialize_svr4_solib): Update
878 register_gdbarch_data call.
879 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
881 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
882 (register_gdbarch_data): Delete "free" parameter. Update
884 * gdbarch.h, gdbarch.c: Re-generate.
885 * reggroups.c (_initialize_reggroup): Update.
886 * gnu-v3-abi.c (init_gnuv3_ops): Update.
887 * frame-base.c (_initialize_frame_base): Update.
888 * frame-unwind.c (_initialize_frame_unwind): Update.
889 * user-regs.c (_initialize_user_regs): Update.
890 * remote.c (_initialize_remote): Update.
891 * regcache.c (_initialize_regcache): Update.
893 * regcache.c (xfree_regcache_descr): Delete function.
894 (_initialize_regcache): Update call to register_gdbarch_data.
895 (init_regcache_descr, init_legacy_regcache_descr): Use
896 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
898 * remote.c (free_remote_state): Delete function.
899 (_initialize_remote): Update register_gdbarch_data.
900 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
901 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
903 2003-08-04 Andrew Cagney <cagney@redhat.com>
905 * reggroups.c (struct reggroup_el): Define.
906 (struct reggroups): Delete field "nr_group". Replace array
907 "group" with a "first" to "last" linked list.
908 (reggroups_init): Update. Allocate using gdbarch's obstack.
909 (reggroups_free): Delete function.
910 (add_group): Update. Add "el" parameter.
911 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
912 (default_groups): Update.
913 (reggroup_next): Replace reggroups.
914 (reggroups_dump): Update.
915 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
916 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
917 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
919 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
921 * Makefile.in (tui-interp.o): Update dependencies.
923 2003-08-04 David Carlton <carlton@kealia.com>
925 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
926 to internal_error call.
927 * source.c (forward_search_command): Add "%s" format argument.
928 (reverse_search_command): Ditto.
929 * top.c (quit_confirm): Ditto.
930 * cli/cli-setshow.c (do_setshow_command): Ditto.
931 * cp-valprint.c (cp_print_class_method): Replace
932 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
933 (cp_print_class_member): Ditto.
934 * event-top.c (command_line_handler): Ditto.
935 * linux-proc.c (linux_info_proc_cmd): Ditto.
936 * p-typeprint.c (pascal_type_print_base): Ditto.
937 * p-valprint.c (pascal_object_print_class_method): Ditto.
938 (pascal_object_print_class_member): Ditto.
939 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
940 * remote.c (remote_cisco_section_offsets): Ditto.
941 * top.c (command_line_input): Ditto.
942 * utils.c (vwarning,error_stream,quit): Ditto.
943 * valprint.c (print_floating,print_binary_chars)
944 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
946 2003-08-04 Andrew Cagney <cagney@redhat.com>
948 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
950 2003-08-02 Andrew Cagney <cagney@redhat.com>
952 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
953 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
956 2003-08-02 Andrew Cagney <cagney@redhat.com>
958 * Makefile.in: Update all dependencies and definitions.
960 2003-08-02 Adam Fedor <fedor@gnu.org>
962 * linespec.c (is_objc_method_format): New function
963 (decode_line_1, locate_first_half): Use it.
966 2003-08-01 Andrew Cagney <cagney@redhat.com>
968 * NEWS: Mention that m32r is multi-arch.
969 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
970 * configure.tgt: Recognize m32r-*-*.
971 * config/m32r/tm-m32r.h: Delete file.
972 * config/m32r/m32r.mt: New file.
973 * m32r-rom.c (m32r_upload_command): Use hostent only when
974 gethostname succeeds, in order to avoid a compilation
976 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
979 2003-08-01 Michael Snyder <msnyder@redhat.com>
981 * sh-tdep.c (sh_frame_align): New gdbarch method.
982 (sh_gdbarch_init): Set up frame_align method.
984 2003-07-31 Michael Snyder <msnyder@redhat.com>
986 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
987 which is already covered by the new frames infrastructure.
989 2003-07-31 Andrew Cagney <cagney@redhat.com>
991 * user-regs.c (struct user_reg): Add "next" link.
992 (struct user_regs): Replace "user" with "first" and "last" links.
993 (append_user_reg): Add pre-allocated "reg" parameter.
994 (builtin_user_regs): Provide initial value for "last".
995 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
996 (user_regs_init): Allocate memory from the gdbarch obstack.
997 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
998 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1000 (usernum_to_user_reg): New function.
1001 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1002 (value_of_user_reg): Use usernum_to_user_reg.
1003 (user_regs_free): Delete function.
1004 (_initialize_user_regs): Update register_gdbarch_data call.
1006 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1008 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1010 2003-07-30 Michael Snyder <msnyder@redhat.com>
1012 * value.h (value_being_returned): Add a struct_addr argument.
1013 * infcall.c (call_function_by_hand): Pass struct_addr to
1014 value_being_returned.
1015 * infcmd.c (print_return_value): Pass zero as struct_addr.
1016 * values.c (value_being_returned): If struct_addr is passed,
1017 use it instead of trying to recover it from the inferior.
1019 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1021 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1022 the prologue analyzer won't need to attempt to extract the pc
1023 value from the woefully incomplete dummy frame.
1024 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1025 possible. Disable code which modifies the frame.
1027 2003-07-28 Andrew Cagney <cagney@redhat.com>
1029 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1031 (annotate_breakpoints_table, annotate_record): Ditto.
1032 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1033 (annotate_field_name_end, annotate_field_value): Ditto.
1034 (annotate_field_end, annotate_frame_source_begin): Ditto.
1035 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1036 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1037 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1038 (annotate_frame_address_end, annotate_frame_address): Ditto.
1039 (annotate_frame_args, annotate_frame_end): Ditto.
1040 (annotate_frame_where, annotate_arg_begin): Ditto.
1041 (annotate_arg_name_end, annotate_arg_value): Ditto.
1042 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1043 (annotate_function_call, annotate_signal_name): Ditto.
1044 (annotate_signal_string, annotate_signal_name_end): Ditto.
1045 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1046 (annotate_value_begin, annotate_value_history_value): Ditto.
1047 (annotate_value_history_end, annotate_value_end): Ditto.
1048 (annotate_display_begin, annotate_display_number_end): Ditto.
1049 (annotate_display_format, annotate_display_expression): Ditto.
1050 (annotate_display_expression_end, annotate_display_value): Ditto.
1051 (annotate_display_end, annotate_array_section_begin): Ditto.
1052 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1053 (annotate_elt, annotate_array_section_end): Ditto.
1055 2003-07-28 Andrew Cagney <cagney@redhat.com>
1057 * regcache.c (struct regcache_descr): Update comments on
1059 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1060 sizeof_raw_register_valid_p.
1061 (init_regcache_descr): Set nr_raw_registers and
1062 sizeof_raw_register_valid_p before calling
1063 init_legacy_regcache_descr.
1065 2003-07-28 Andrew Cagney <cagney@redhat.com>
1067 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1070 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1072 * thread.c (info_threads_command): Use get_selected_frame ().
1073 Check that there is at least one non-sentinel frame.
1075 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1077 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1078 (m68hc11_pop_frame): Remove.
1079 (m68hc11_frame_saved_pc): Remove.
1080 (m68hc11_frame_chain): Remove.
1081 (m68hc11_frame_init_saved_regs): Remove.
1082 (m68hc11_init_extra_frame_info): Remove.
1083 (m68hc11_store_struct_return): Remove.
1084 (m68hc11_saved_pc_after_call): Remove.
1086 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1088 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1089 frame unwind information.
1090 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1091 and adapted for frame unwinding.
1092 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1093 (m68hc11_unwind_pc): New function.
1094 (m68hc11_frame_unwind_cache): New function to analyze frames.
1095 (m68hc11_frame_this_id): New function to create new frame struct.
1096 (m68hc11_frame_prev_register): New function to unwind a register from
1098 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1099 (m68hc11_frame_p): New function for the above.
1100 (m68hc11_frame_base_address): New function to return fp of frame.
1101 (m68hc11_frame_args_address): Update for frame.
1102 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1103 (m68hc11_unwind_sp): New function.
1104 (m68hc11_unwind_dummy_id): New function.
1105 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1108 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1110 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1111 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1112 when we are beyond the current pc.
1114 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1116 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1117 from m68hc11_push_arguments.
1118 (m68hc11_push_arguments): Remove.
1119 (m68hc11_push_return_address): Remove.
1120 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1121 handlers; remove deprecated_extra_stack_alignment_needed.
1123 2003-07-27 Andrew Cagney <cagney@redhat.com>
1125 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1126 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1127 REAL_PC and not the pointer.
1128 * hppa-hpux-tdep.c: Include frame.h
1130 2003-07-27 Andrew Cagney <cagney@redhat.com>
1132 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1133 GDB_MULTI_ACH_PARTIAL.
1135 2003-07-27 Andrew Cagney <cagney@redhat.com>
1137 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1138 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1139 operator at start and not end of line.
1140 (decode_prologue): Ditto.
1141 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1142 frame_unwind_register_unsigned instead of
1143 frame_unwind_unsigned_register.
1144 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1146 (m32r_push_dummy_call): Use register_size instead of
1148 (m32r_frame_sniffer): Replace m32r_frame_p.
1149 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1150 * m32r-rom.c (report_transfer_performance): Delete extern
1152 (m32r_load, m32r_upload_command): Use print_transfer_performance
1153 instead of report_transfer_performance.
1154 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1155 / add_show_from_set.
1157 2003-07-26 Andrew Cagney <cagney@redhat.com>
1159 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1160 store_return_value and extract_struct_value_address.
1162 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1165 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1166 NULL, default to the section containing PC.
1168 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1170 * NEWS: Mention "regs" deprecated for m68hc11 too.
1172 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1173 (m68hc11_print_register): New function to print out one register.
1174 (m68hc11_print_registers_info): New function to print registers.
1175 (show_regs): Deprecate and use the above.
1176 (m68hc11_gdbarch_init): Install the print_registers_info.
1178 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1180 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1181 that we have a SIGTRAP before returning non-zero.
1183 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1184 Elena Zannoni <ezannoni@redhat.com>
1186 * linespec.c (decode_line_2): Avoid crash if
1187 find_function_start_sal() returns empty record.
1189 2003-07-23 Andreas Schwab <schwab@suse.de>
1191 * ia64-tdep.c (ia64_print_insn): New function.
1192 (ia64_gdbarch_init): Set print_insn to it.
1193 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1194 deprecated_tm_print_insn_info.
1196 2003-07-22 Michael Snyder <msnyder@redhat.com>
1198 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1199 handle 8-bit returns (long long).
1200 (h8300h_extract_return_value): Ditto.
1201 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1203 2003-07-22 Andrew Cagney <cagney@redhat.com>
1205 * gdbarch.c Include "gdb_obstack.h".
1206 (struct gdbarch): Add an "obstack".
1207 (alloc_gdbarch_data): Allocate the gdbarch data using
1208 GDBARCH_OBSTACK_CALLOC.
1209 (free_gdbarch_data): Delete function.
1210 (gdbarch_obstack_zalloc): New function.
1211 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1212 Assert that the architecture is not initialized.
1213 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1214 vector from the obstack.
1215 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1216 architecture obstack.
1217 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1218 (set_gdbarch_data): Assert that the data is not initialized.
1219 (struct gdbarch_data): Delete member "free".
1220 (register_gdbarch_data): Do not initialize "free".
1221 * gdbarch.h, gdbarch.c: Re-generate.
1223 2003-07-22 Andrew Cagney <cagney@redhat.com>
1225 * configure.in (build_warnings): Add -Wformat-nonliteral.
1226 * configure: Re-generate.
1228 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1230 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1232 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1234 * findvar.c (read_var_value): Remove case for thread local storage
1235 variables. It is now entirely handled by the dwarf2 location
1237 * printcmd.c (address_info): Ditto.
1238 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1240 (struct symbol): Remove objfile field, which was used by
1241 LOC_THREAD_LOCAL_STATIC only.
1242 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1243 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1244 usage of objfile pointer.
1245 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1246 thread local variables.
1247 Add include of objfiles.h.
1248 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1250 * Makefile.in (dwarf2loc.o): Update dependencies.
1252 2003-07-22 Andrew Cagney <cagney@redhat.com>
1254 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1256 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1257 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1258 (struct value): Add opaque declaration.
1259 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1261 2003-07-21 Andrew Cagney <cagney@redhat.com>
1263 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1264 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1266 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1268 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1269 regcache_cooked_read_unsigned instead of read_register.
1270 (m68hc11_saved_pc_after_call): Likewise.
1271 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1272 instead of write_register.
1273 (m68hc11_register_type): New function.
1274 (m68hc11_register_virtual_type): Remove.
1275 (m68hc11_store_return_value): Convert to use the regcache.
1276 (m68hc11_extract_struct_value_address): Likewise.
1277 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1278 m68hc11_register_type; undeprecate store_return_value and
1279 extract_struct_value_address.
1281 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1283 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1284 and translate to use regcache.
1285 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1287 2003-07-18 Andrew Cagney <cagney@redhat.com>
1289 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1290 * gdbarch.h, gdbarch.c: Re-generate.
1291 * i386-tdep.c (i386_gdbarch_init): Do not set
1292 DWARF2_BUILD_FRAME_INFO.
1293 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1295 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1296 DWARF2_BUILD_FRAME_INFO.
1298 2003-07-18 Andrew Cagney <cagney@redhat.com>
1300 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1301 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1303 2003-07-18 Andrew Cagney <cagney@redhat.com>
1305 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1306 frame_unwind_address_in_block, instead of frame_pc_unwind.
1307 (dwarf2_frame_cache): Ditto.
1309 2003-07-18 Andrew Cagney <cagney@redhat.com>
1311 * user-regs.h (struct gdbarch): Declare opaque.
1312 * ui-out.h (struct ui_file): Declare opaque.
1313 * dwarf2-frame.h (struct frame_info): Declare opaque.
1315 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1317 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1319 (procfs_meminfo): Change strerror to safe_strerror.
1320 (procfs_can_run): Remove K&R badness.
1322 2003-07-17 Michael Snyder <msnyder@redhat.com>
1324 * remote-sim.c: Comment typo fix.
1326 2003-07-17 Andrew Cagney <cagney@redhat.com>
1328 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1330 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1331 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1332 GDB_MULTI_ARCH_PARTIAL.
1334 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1336 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1337 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1338 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1340 2003-07-16 Theodore A. Roth <troth@openavr.org>
1342 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1344 (avr_frame_unwind_cache): Don't unwind FP for main.
1346 Save the computed prev_sp.
1347 (avr_saved_regs_unwinder): Remove function.
1348 (avr_frame_prev_register): Use PC unwind logic from
1349 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1351 2003-07-16 Andrew Cagney <cagney@redhat.com>
1353 * frame-base.h (frame_base_p_ftype): Delete definition.
1354 (frame_base_append_predicate): Delete declaration.
1355 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1356 (frame_unwind_append_predicate): Delete declaration.
1357 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1358 (append_predicate): Delete parameter "p".
1359 (frame_unwind_append_predicate): Delete function.
1360 (frame_unwind_append_sniffer): Update call to append_predicate.
1361 (frame_unwind_free): Delete function.
1362 (_initialize_frame_unwind): Pass NULL as "free" to
1363 register_gdbarch_data.
1364 (frame_unwind_init): Append the dummy_frame_sniffer.
1365 (frame_unwind_find_by_frame): Simplify.
1366 * frame-base.c (struct frame_base_table): Delete field "p".
1367 (append_predicate): Delete parameter "p".
1368 (frame_base_append_predicate): Delete function.
1369 (frame_base_append_sniffer): Update call to append_predicate.
1370 (frame_base_free): Delete function.
1371 (frame_base_find_by_frame): Simplify.
1372 (_initialize_frame_base): Pass NULL as "free" to
1373 register_gdbarch_data.
1374 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1375 (x86_64_sigtramp_frame_sniffer): Replace
1376 "x86_64_sigtramp_frame_p".
1377 (x86_64_init_abi): Set the frame unwind sniffers.
1378 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1379 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1380 (m68k_gdbarch_init): Set the frame unwind sniffers.
1381 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1382 "i386_sigtramp_frame_p".
1383 (i386_frame_sniffer): Replace "i386_frame_p".
1384 (i386_gdbarch_init): Set the frame unwind sniffers.
1385 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1386 (avr_gdbarch_init): Set the frame unwind sniffers.
1387 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1388 "alpha_sigtramp_frame_p"
1389 (alpha_heuristic_frame_sniffer): Replace
1390 "alpha_heuristic_frame_p".
1391 (alpha_gdbarch_init): Set the frame unwind sniffers.
1392 (alpha_dwarf2_init_abi): Ditto.
1393 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1394 "alpha_debug_frame_p".
1395 (alpha_mdebug_frame_base_sniffer): Replace
1396 "alpha_mdebug_frame_base_p".
1397 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1398 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1399 (d10v_gdbarch_init): Set the frame unwind sniffer.
1400 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1401 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1402 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1403 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1404 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1405 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1407 2003-07-16 Michael Snyder <msnyder@redhat.com>
1409 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1410 should go thru sh_dsp_register_sim_regno, else the dsp regs
1411 will not get the right values.
1413 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1415 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1416 deprecated_store_floating by call to store_typed_floating.
1417 (sh_sh4_register_convert_to_raw): Substitute call to
1418 deprecated_extract_floating by call to extract_typed_floating.
1420 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1422 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1424 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1426 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1427 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1428 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1430 (do_pseudo_register): Remove.
1431 (sh_push_dummy_code): New function.
1432 (sh64_store_struct_return): Rename from sh_store_struct_return.
1433 Only called for sh64 now.
1434 (sh_extract_struct_value_address): Regcache'ify.
1435 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1436 and accomodate new tasks.
1437 (sh64_push_return_address): Rename from sh_push_return_address.
1438 Only called for sh64 now.
1439 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1441 (sh3e_sh4_extract_return_value): Regcache'ify.
1442 (sh_default_store_return_value): Ditto.
1443 (sh3e_sh4_store_return_value): Ditto.
1444 (sh_default_register_byte): Remove.
1445 (sh_sh4_register_byte): Remove.
1446 (sh_default_register_raw_size): Remove.
1447 (sh_sh4_register_raw_size): Remove.
1448 (sh_register_virtual_size): Remove.
1449 (sh_sh3e_register_virtual_type): Remove.
1450 (sh_sh3e_register_type): New function.
1451 (sh_sh4_register_virtual_type): Remove.
1452 (sh_sh4_register_type): New function.
1453 (sh_default_register_virtual_type): Remove.
1454 (sh_default_register_type): New function.
1455 (do_fv_register_info): Add parameters to accomodate call from
1456 sh_print_registers_info.
1457 (do_dr_register_info): Ditto.
1458 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1459 Add parameters to accomodate call from sh_print_registers_info.
1460 (sh_do_fp_register): Ditto.
1461 (sh64_do_pseudo_register): Call do_dr_register_info,
1462 do_fv_register_info and sh_do_fp_register with default parameters.
1463 (sh_do_register): Add parameters to accomodate call from
1464 sh_print_registers_info.
1465 (sh_print_register): Ditto.
1466 (sh_print_registers_info): Rename from sh_do_registers_info.
1467 Add parameters to be used as gdbarch_print_registers_info
1468 implementation. Accomodate removed do_pseudo_register function
1470 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1471 function pointer. Call sh_print_register with default parameters.
1472 (sh64_do_registers_info): Call sh_print_registers_info instead of
1473 sh_do_registers_info.
1474 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1475 detection of deprecated vs. non-deprecated functionality.
1476 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1477 function pointer assignments by direct function calls.
1479 2003-07-15 Andrew Cagney <cagney@redhat.com>
1481 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1482 (frame_register_unwind, create_new_frame): Ditto.
1483 (legacy_get_prev_frame, get_frame_type): Ditto.
1484 (get_frame_base_address): Use frame_base_find_by_frame.
1485 (get_frame_locals_address): Use frame_base_find_by_frame.
1486 (get_frame_args_address): Use frame_base_find_by_frame.
1487 * frame-base.h (frame_base_sniffer_ftype): Declare.
1488 (frame_base_append_sniffer): Declare.
1489 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1490 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1491 (frame_base_append_sniffer): New function.
1492 (frame_base_append_predicate): Add a NULL sniffer.
1493 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1494 (struct frame_base_table): Add "sniffer".
1495 (frame_base_free): Free the "sniffer" table.
1496 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1497 (frame_unwind_append_sniffer): Declare.
1498 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1499 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1500 (struct frame_unwind_table): Add "sniffer", delete "middle".
1501 (append_predicate): Add "sniffer" parameter, append the sniffer.
1502 (frame_unwind_init): Update append_predicate call.
1503 (frame_unwind_append_sniffer): New function.
1504 (frame_unwind_append_predicate): Update append_predicate call.
1505 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1507 2003-07-15 Andrew Cagney <cagney@redhat.com>
1509 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1510 before code inhibiting repeated unwind attempts. Add to
1511 commentary on that test's problems.
1512 * blockframe.c (inside_main_func): Look for "main" in the minimal
1514 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1517 2003-07-15 Andrew Cagney <cagney@redhat.com>
1519 * complaints.c (struct explanation): Define.
1520 (struct complaints): Change type of "explanation" to "struct
1522 (symfile_explanations): Convert to a "struct explanation" table.
1523 (vcomplaint): Update.
1525 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1527 * x86-64-linux-nat.c (regmap): Removed.
1528 (supply_gregset, fill_gregset): Call
1529 x86_64_linux_(fill,supply)_gregset functions.
1530 * x86-64-linux-tdep.c (USER_*): New defines.
1531 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1532 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1534 (fetch_core_registers): Ditto.
1535 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1536 * x86-64-linux-tdep.h: New file.
1537 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1539 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1541 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1543 * x86-64-tdep.c (x86_64_store_return_value): Use
1544 regcache_cooked_write_part instead of regcache_cooked_write.
1546 * configure.host: Add x86_64-*-freebsd*.
1547 * configure.tgt: Add x86_64-*-freebsd*.
1548 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1549 * amd64fbsd-nat.c: New file.
1550 * amd64fbsd-tdep.c: New file.
1551 * config/i386/nm-fbsd64.h: New file.
1552 * config/i386/fbsd64.mh: New file.
1553 * config/i386/fbsd64.mt: New file.
1555 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1557 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1558 `sc_regs_offset' and `sc_fpregs_offset'.
1559 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1560 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1561 (alpha_sigtramp_register_address): Rewrite to use new members of
1562 `struct gdbarch_tdep'.
1563 (alpha_gdbarch_init): Initialize new members of struct
1565 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1566 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1567 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1568 (alphafbsd_pc_in_sigtramp): Implement.
1569 (alphafbsd_sigtramp_offset): New function.
1570 (alphafbsd_sigcontext_addr): New function.
1571 (alphafbsd_init_abi): Initialize signal trampoline related members
1572 of `struct gdbarch_tdep'.
1573 (_initialize_alphafbsd_tdep): Add prototype.
1575 2003-07-11 Theodore A. Roth <troth@openavr.org>
1577 * Makefile.in (install-only): Quote sed expression when generating
1580 2003-07-11 Richard Henderson <rth@redhat.com>
1582 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1583 * dwarf2-frame.c: Include complaints.h.
1584 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1585 variable initialization; return NULL on error.
1586 (decode_frame_entry): New.
1588 2003-07-11 Andrew Cagney <cagney@redhat.com>
1590 * frame.h (frame_address_in_block): Delete declaration.
1591 * blockframe.c (frame_address_in_block): Delete function.
1592 (get_frame_block): Use get_frame_address_in_block.
1593 (block_innermost_frame): Ditto.
1594 * stack.c (print_frame, backtrace_command_1): Ditto.
1596 * frame.h (get_frame_address_in_block): Declare.
1597 (frame_unwind_address_in_block): Declare.
1598 * frame.c (frame_unwind_address_in_block): New function.
1599 (get_frame_address_in_block): New function.
1601 2003-07-10 Andrew Cagney <cagney@redhat.com>
1603 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1604 pre-default. Note: re-generate has no effect.
1606 2003-07-10 Andrew Cagney <cagney@redhat.com>
1608 * gdbarch.sh: When a variable, but not a function, compare against
1609 0. Fix problem in previous patch.
1610 * gdbarch.c: Re-generate.
1612 2003-07-10 Andrew Cagney <cagney@redhat.com>
1614 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1615 functions against NULL, not 0.
1616 * gdbarch.c: Re-generate.
1618 2003-07-10 Fred Fish <fnf@ninemoons.com>
1620 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1621 null string instead of a null pointer.
1622 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1624 2003-07-09 Michael Snyder <msnyder@redhat.com>
1626 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1628 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1630 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1631 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1632 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1633 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1634 * x86-64-tdep.c: ... from here.
1636 2003-07-09 Andreas Schwab <schwab@suse.de>
1638 * m68k-tdep.h (enum struct_return): Define.
1639 (struct gdbarch_tdep): Add struct_return.
1640 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1641 bytes are padded to the right, not to the left. Pass struct value
1642 address in register %a1, not on stack.
1643 (m68k_use_struct_convention): New function.
1644 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1645 struct_return in tdep to pcc_struct_return.
1646 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1649 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1651 * somread.c (som_symfile_offsets): Fix compilation error.
1653 2003-07-09 Andrew Cagney <cagney@redhat.com>
1655 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1656 Add comments about the checks.
1658 2003-07-08 Andrew Cagney <cagney@redhat.com>
1660 * Makefile.in: Make dependency section headers consistent.
1661 (config_h): Move to $BUILD headers section.
1662 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1663 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1664 (ada-exp.tab.c): Move to YACC/LEX section.
1665 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1666 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1668 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1670 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1671 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1672 of strerror with safe_strerror, use ISO C function definitions,
1673 and replace instances of sprintf with snprintf.
1675 2003-07-07 Andrew Cagney <cagney@redhat.com>
1677 * frame.c (get_prev_frame): Enable check for identical frames.
1678 Update comments. Update error messages.
1680 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1682 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1684 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1686 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1687 sort_symtab_syms, no longer necessary.
1689 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1691 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1693 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1695 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1696 (mips_register_byte): Likewise.
1698 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1700 * Makefile.in (sparc_tdep_h): New.
1701 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1702 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1703 * sparc-linux-nat.c: Include "sparc-tdep.h".
1704 * sparc-nat.c: Likewise.
1705 * sparc-tdep.c: Likewise.
1706 * sparc64nbsd-nat.c: Likewise.
1707 * sparcnbsd-nat.c: Likewise.
1708 * sparcnbsd-tdep.c: Likewise.
1709 * sparc-tdep.h: New file.
1710 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1711 and sparc_npc_regnum.
1713 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1715 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1716 (mips_linux_cannot_store_register): List supported instead of
1717 unsupported registers.
1719 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1721 * disasm.c (dump_insns): Separate instructions from addresses.
1723 2003-07-07 Andreas Schwab <schwab@suse.de>
1725 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1727 * m68k-tdep.c (NUM_FREGS): Delete.
1728 (SIG_PC_FP_OFFSET): Delete.
1729 (TARGET_M68K): Delete.
1730 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1731 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1732 P_MOVEL_SP, P_MOVEML_SP): Define.
1733 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1735 (m68k_register_raw_size): Delete.
1736 (m68k_register_virtual_size): Delete.
1737 (m68k_register_type): Renamed from m68k_register_virtual_type and
1738 add gdbarch argument.
1739 (m68k_store_struct_return): Delete.
1740 (m68k_deprecated_extract_return_value): Delete.
1741 (m68k_deprecated_extract_struct_value_address): Delete.
1742 (m68k_frame_chain): Delete.
1743 (m68k_frame_saved_pc): Delete.
1744 (m68k_fix_call_dummy): Delete.
1745 (m68k_push_dummy_frame): Delete.
1746 (m68k_pop_frame): Delete.
1747 (m68k_extract_return_value): New function.
1748 (m68k_store_return_value): Rewrite using regcache.
1749 (m68k_extract_struct_value_address): Rewrite using regcache.
1750 (m68k_push_dummy_call): New function.
1751 (struct m68k_frame_cache): Define.
1752 (m68k_alloc_frame_cache): New function.
1753 (m68k_analyze_frame_setup): New function.
1754 (m68k_analyze_register_saves): New function.
1755 (m68k_analyze_prologue): New function.
1756 (m68k_skip_prologue): Rewrite using above functions.
1757 (m68k_unwind_pc): New function.
1758 (m68k_frame_cache): New function.
1759 (m68k_frame_this_id): New function.
1760 (m68k_frame_prev_register): New function.
1761 (m68k_frame_unwind): New variable.
1762 (m68k_frame_p): New function.
1763 (m68k_sigtramp_frame_cache): New function.
1764 (m68k_sigtramp_frame_this_id): New function.
1765 (m68k_sigtramp_frame_prev_register): New function.
1766 (m68k_sigtramp_frame_unwind): New variable.
1767 (m68k_sigtramp_frame_p): New function.
1768 (m68k_frame_base_address): New function.
1769 (m68k_frame_base): New function.
1770 (m68k_unwind_dummy_id): New function.
1771 (fill_gregset): Use regcache_collect.
1772 (fill_fpregset): Likewise.
1773 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1775 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1776 deprecated_init_frame_pc, deprecated_store_struct_return,
1777 deprecated_extract_return_value, deprecated_store_return_value,
1778 deprecated_frame_chain, deprecated_frame_saved_pc,
1779 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1780 deprecated_register_virtual_size,
1781 deprecated_max_register_raw_size,
1782 deprecated_max_register_virtual_size,
1783 deprecated_register_virtual_type, deprecated_register_size,
1784 deprecated_register_byte, deprecated_register_bytes,
1785 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1786 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1787 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1788 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1789 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1790 deprecated_push_dummy_frame, deprecated_pop_frame,
1791 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1792 only if SYSCALL_TRAP is defined. Set extract_return_value,
1793 store_return_value, extract_struct_value_address, register_type,
1794 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1796 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1797 M68K_MAX_REGISTER_SIZE): Define.
1798 (struct m68k_sigtramp_info): Define.
1799 (struct gdbarch_tdep): Add get_sigtramp_info.
1800 * m68klinux-nat.c (fetch_register): Use register_size instead of
1801 REGISTER_RAW_SIZE. Don't put assignment in if.
1802 (store_register): Likewise.
1803 (fetch_inferior_registers): Likewise.
1804 (store_inferior_registers): Likewise.
1805 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1806 (m68k_linux_frame_saved_pc): Delete.
1807 (m68k_linux_sigcontext_reg_offset,
1808 m68k_linux_ucontext_reg_offset): Define.
1809 (m68k_linux_get_sigtramp_info): New function.
1810 (m68k_linux_extract_return_value): Rewrite using regcache.
1811 (m68k_linux_store_return_value): Likewise.
1812 (m68k_linux_extract_struct_value_address): Likewise.
1813 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1814 Don't set deprecated_frame_saved_pc,
1815 deprecated_extract_return_value, deprecated_store_return_value,
1816 deprecated_extract_struct_value_address. Set
1817 extract_return_value, store_return_value,
1818 extract_struct_value_address.
1820 2003-07-07 Andrew Cagney <cagney@redhat.com>
1822 * expprint.c: Include "user-regs.h" instead of "frame.h".
1823 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1824 frame_map_regnum_to_name.
1825 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1826 (frame_map_name_to_regnum): Simplify, call
1827 user_reg_map_name_to_regnum.
1828 (frame_map_regnum_to_name): Simplify, call
1829 user_reg_map_regnum_to_name.
1830 (frame_register_unwind): Update.
1831 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1832 (_initialize_frame_reg): Call user_reg_add_builtin.
1833 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1834 (value_of_register): Use value_of_user_reg.
1835 * eval.c (evaluate_subexp_standard): Update.
1836 * parse.c (write_dollar_variable): Update.
1837 * d10v-tdep.c (d10v_print_registers_info): Update.
1838 * infcmd.c (registers_info): Update.
1839 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1840 (builtin_regs_h): Delete macro.
1841 (user_regs_h): Define.
1842 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1843 (builtin-regs.o): Delete target.
1844 (user-regs.o): Specify dependencies.
1845 (expprint.o): Update dependencies.
1846 (findvar.o): Update dependencies.
1847 (frame.o): Update dependencies.
1848 (std-regs.o): Update dependencies.
1850 2003-07-06 Christopher Faylor <cgf@redhat.com>
1852 * win32-nat.c (solib_symbols_add): Use one variable for all section
1853 address stuff. Pass variable rather than address of variable to
1854 safe_symbol_file_add.
1856 2003-07-06 Andreas Schwab <schwab@suse.de>
1858 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1860 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1862 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1864 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1866 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1868 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1870 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1871 * config/i386/nto.mh: New file.
1872 * config/i386/nm-nto.h: New file.
1873 * configure.host: Add i[3456]86-*-nto*.
1875 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1877 * remote-vx.c (vx_add_symbols): Fix compilation error.
1879 2003-07-03 Andrew Cagney <cagney@redhat.com>
1881 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1882 * gdbarch.h, gdbarch.c: Re-generate.
1883 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1884 (legacy_register_name): Declare.
1885 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1886 (REGISTER_NAME): Define.
1887 * sparc-tdep.c (legacy_register_name): New function.
1888 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1889 (REGISTER_NAME): Define.
1890 (hppa64_register_name): Declare.
1891 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1892 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1893 (hppa64_register_name): New function.
1894 (hppa_register_name): New function.
1895 * arch-utils.c (legacy_register_name): Delete.
1896 * arch-utils.h (legacy_register_name): Delete.
1898 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1900 * cli/cli-interp.c (cli_interpreter_resume): Update the
1901 cli_uiout's stream to gdb_stdout.
1903 2003-07-03 Andrew Cagney <cagney@redhat.com>
1905 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1907 * gdbarch.h, gdbarch.c: Re-generate.
1908 * regcache.c (init_regcache_descr): Use legacy code when either
1909 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1911 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1913 * NEWS: Move "set logging" entry into GDB 6.0 section.
1915 2003-07-02 Jim Blandy <jimb@redhat.com>
1917 * s390-tdep.c (struct frame_extra_info): new member:
1918 'stack_bought_valid'.
1919 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1920 initialize fextra_info->stack_bought.
1921 (s390_frameless_function_invocation): Don't trust the value of
1922 fextra_info_ptr->stack_bought unless
1923 fextra_info->stack_bought_valid is set.
1925 New S390 prologue analyzer.
1926 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1927 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1928 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1929 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1930 compute_x_addr, s390_on_stack, s390_store,
1931 s390_get_signal_frame_info): New functions.
1932 (S390_NUM_SPILL_SLOTS): New macro.
1933 (s390_get_frame_info): Rewritten.
1934 (is_arg_reg): Deleted.
1936 Break out the decoding of S/390 instructions into separate
1937 functions, to make it more legible, and easier to check
1939 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1940 is_rx, is_rxe): New functions.
1941 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1942 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1943 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1944 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1945 enums for opcode values. (Is this an improvement?)
1947 2003-07-02 Andrew Cagney <cagney@redhat.com>
1949 * i386-tdep.c: Revert change committed as part of trad-frame code
1952 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1954 * breakpoint.c (insert_catchpoint): Make static.
1956 2003-07-02 Andreas Schwab <schwab@suse.de>
1958 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1959 former ia64_push_arguments and ia64_push_return_address, and use
1960 regcache functions instead of read/write_register.
1961 (ia64_gdbarch_init): Set push_dummy_call instead of
1962 deprecated_push_arguments and deprecated_push_return_address.
1964 2003-07-01 Andreas Jaeger <aj@suse.de>
1966 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1968 Set %rax only to number of SSE registers used.
1970 2003-07-01 Andrew Cagney <cagney@redhat.com>
1972 * trad-frame.h: Update comments, a -1 .addr is reserved.
1973 (trad_frame_value_p, trad_frame_addr_p): Declare.
1974 (trad_frame_reg_p): Declare.
1975 (trad_frame_set_value): Rename trad_frame_register_value.
1976 (trad_frame_set_unknown): Declare.
1977 * trad-frame.c (trad_frame_realreg_p): New function.
1978 (trad_frame_addr_p, trad_frame_value_p): New function.
1979 (trad_frame_set_unknown): New function.
1980 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1981 (trad_frame_prev_register): Use trad_frame_realreg_p,
1982 trad_frame_addr_p and trad_frame_value_p.
1983 (trad_frame_set_value): Rename trad_frame_register_value.
1984 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1985 and trad_frame_set_value.
1987 2003-06-30 Jim Blandy <jimb@redhat.com>
1989 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1990 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1991 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1992 for 16 registers, and then 32 more bytes.
1993 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1995 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1996 Move up in the file, since it's now used by is_simple_arg.
1997 (is_simple_arg): Don't assume registers are four bytes long.
1998 Exclude all double arguments. Extended floats are not simple
2000 (is_power_of_two): New function.
2001 (pass_by_copy_ref): Call is_power_of_two, and check that the
2002 length fits in a register, rather than listing all the acceptable
2003 sizes. Extended floats are not passed by reference.
2004 (s390_push_arguments): Don't assume registers are four bytes long.
2005 Reserve an argument register to point to the buffer for structures
2006 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2007 S390_STACK_FRAME_OVERHEAD.
2009 2003-06-30 Andreas Schwab <schwab@suse.de>
2011 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2012 format error message.
2014 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2016 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2018 2003-06-30 David Carlton <carlton@kealia.com>
2020 Band-aid for PR c++/1245.
2021 * Makefile.in (cp-support.o): Depend on complaints_h.
2022 * cp-support.c: Include complaints.h. Add declaration for
2023 find_last_component.
2024 (cp_find_first_component): Separate code into
2025 cp_find_first_component_aux.
2026 (cp_find_first_component_aux): Call demangled_name_complaint.
2027 (demangled_name_complaint): New.
2029 2003-06-30 Andrew Cagney <cagney@redhat.com>
2031 * remote.c (remote_write_bytes): Explicitly compute and then use
2032 the payload size. Update comments to reflect. Fixes problem of
2033 GDB not sending small packets as found by Fred Fish.
2035 2003-06-30 Andrew Cagney <cagney@redhat.com>
2037 * remote.c (remote_async_wait): Fix -Wformat problem.
2039 2003-06-29 Andrew Cagney <cagney@redhat.com>
2041 * remote.c (remote_wait): Call error, and not warning, when the
2043 (remote_async_wait): Ditto.
2045 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2047 * sparc-tdep.c (sparc_y_regnum): Make external again.
2049 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2051 * cli/cli-logging.c (pop_output_files): Add void to function
2054 2003-06-29 Andrew Cagney <cagney@redhat.com>
2056 * frame.c (frame_register_unwind): Use unsigned char when dumping
2057 the buffer contents.
2059 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2061 * cli/cli-logging.c: New file.
2062 * cli-out.c (struct ui_out_data): Add original_stream.
2063 (cli_redirect): New function.
2064 (cli_ui_out_impl): Add cli_redirect.
2065 (cli_out_new): Initialize original_stream.
2066 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2067 (uo_redirect, ui_out_redirect): New.
2068 * ui-out.h (struct ui_out_impl): Add redirect member.
2069 (redirect_ftype): New.
2070 (ui_out_redirect): Add prototype.
2071 * Makefile.in: Add rules for cli-logging.c.
2072 * NEWS: Mention "set logging".
2074 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2076 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2078 2003-06-27 Andrew Cagney <cagney@redhat.com>
2080 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2081 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2082 * avr-tdep.c (avr_call_dummy_address): Delete function.
2083 (avr_gdbarch_init): Do not set call_dummy_address.
2085 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2087 * symfile.c (syms_from_objfile): Move variables to inner block.
2088 Move the checks for the non-mainline case a bit earlier to avoid
2089 doing some useless computations.
2091 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2093 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2095 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2097 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2100 2003-06-26 Michael Chastain <mec@shout.net>
2102 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2103 gdb/testsuite/gdb.c++/pr-1210.exp.
2105 2003-06-26 Andrew Cagney <cagney@redhat.com>
2107 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2108 altivec_expression.h and altivec_registers.h.
2110 2003-06-26 Andrew Cagney <cagney@redhat.com>
2112 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2113 info->mach when MIPS16. Patch suggested by Fred Fish.
2115 2003-06-26 Andrew Cagney <cagney@redhat.com>
2117 * utils.c (internal_vproblem): Print the problem to a reason
2118 buffer and then pass to query. Make the msg variable more local.
2120 2003-06-26 Andrew Cagney <cagney@redhat.com>
2122 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2123 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2124 * gdbarch.h, gdbarch.c: Re-generate.
2125 * frame-base.c (default_frame_args_address): Update. Use
2126 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2128 (default_frame_locals_address): Ditto for
2129 DEPRECATED_FRAME_LOCALS_ADDRESS.
2130 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2131 (vax_frame_num_args): Update.
2132 (vax_gdbarch_init): Update.
2133 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2134 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2135 * mcore-tdep.c (mcore_gdbarch_init): Update.
2136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2137 * ia64-tdep.c (ia64_gdbarch_init): Update.
2138 * symtab.h (address_class): Update comments.
2139 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2140 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2141 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2142 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2143 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2144 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2145 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2146 * alpha-mdebug-tdep.c: Update.
2147 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2149 2003-06-26 Andreas Jaeger <aj@suse.de>
2151 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2152 of SSE registers so that varargs functions work. Rework handling
2153 of passing arguments on the stack.
2154 (x86_64_store_return_value): Return double and float values in SSE
2157 2003-06-24 Michael Chastain <mec@shout.net>
2159 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2160 the "constructor breakpoints ignored" bug.
2162 2003-06-25 David Carlton <carlton@kealia.com>
2164 * MAINTAINERS: Update e-mail address.
2166 2003-06-24 Jim Blandy <jimb@redhat.com>
2168 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2170 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2172 (ppc_linux_init_abi): Register it as the
2173 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2175 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2176 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2179 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2180 (ppc64_standard_linkage_target): Use it.
2182 2003-06-23 Andrew Cagney <cagney@redhat.com>
2184 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2185 for 0 "int0" and 4 "int32" sized registers.
2186 * gdbtypes.c (builtin_type_int0): Define.
2187 (build_gdbtypes): Initialize builtin_type_int0.
2188 * gdbtypes.h (builtin_type_int0): Declare.
2190 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2192 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2193 as characters are unsigned.
2195 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2198 * dwarfread.c (struct_type): Skip static fields without crashing.
2200 2003-06-22 Andrew Cagney <cagney@redhat.com>
2202 GDB 6.0 branch created.
2204 * PROBLEMS: Update. Empty.
2207 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2209 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2210 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2212 2003-06-22 Andrew Cagney <cagney@redhat.com>
2214 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2215 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2218 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2220 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2223 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2225 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2226 argument of val_print.
2227 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2228 to the address argument of baseclass_offset or target_read_memory.
2229 Do add it to the argument of cp_print_value_fields.
2231 2003-06-21 Andrew Cagney <cagney@redhat.com>
2233 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2234 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2235 instead of 0..NUM_REGS.
2236 (mips_register_reggroup_p): New function.
2237 (mips_pseudo_register_write): New function.
2238 (mips_pseudo_register_read): New function.
2239 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2240 based on the register's type.
2241 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2243 (mips_get_saved_register): Simplify. Assert that REGNO is a
2245 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2246 (mips_register_type): Replace mips_register_virtual_type. Map
2247 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2249 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2250 that the register is cooked / virtual.
2251 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2252 Only get the extra info when needed.
2253 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2254 (mips32_heuristic_proc_desc): Fetch the cooked register.
2255 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2256 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2257 (mips_print_register): Use gdbarch_register_type, instead of
2258 REGISTER_VIRTUAL_TYPE.
2259 (print_gp_register_row): Use gdbarch_register_type, instead of
2260 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2261 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2262 Print the pseudo / cooked registers.
2263 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2264 Print the pseudo / cooked registers.
2265 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2266 REG_NUM is pseudo / cooked.
2267 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2268 (mips_n32n64_xfer_return_value): Ditto.
2269 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2270 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2271 (mips_register_sim_regno): New function.
2272 (mips_gdbarch_init): Set deprecated_register_byte,
2273 register_group_p, pseudo_register_write, pseudo_register_read,
2274 register_sim_regno, and num_pseudo_regs. Set register_type,
2275 instead of register_virtual_type.
2276 * Makefile.in (mips-tdep.o): Update dependencies.
2277 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2278 REGISTER_VIRTUAL_TYPE.
2279 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2280 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2281 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2282 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2283 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2285 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2287 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2288 * cli/cli-cmds.c: Include "gdb_vfork.h".
2289 (shell_escape): Use vfork.
2291 2003-06-21 Andrew Cagney <cagney@redhat.com>
2293 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2294 32 bit floating-point register saves.
2296 * frame.h (deprecated_unwind_get_saved_register): Delete.
2297 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2298 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2299 and deprecated_get_next_frame_hack instead of
2300 deprecated_unwind_get_saved_register.
2302 * mips-tdep.c (mips_dump_tdep): Do not print
2303 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2305 * frame.c (get_frame_register): New function.
2306 (frame_unwind_register_signed): New function.
2307 (get_frame_register_signed): New function.
2308 (frame_unwind_register_unsigned): New function.
2309 (get_frame_register_unsigned): New function.
2310 * frame.h: Add comments on naming schema.
2311 (get_frame_register, frame_unwind_register_signed): Declare.
2312 (get_frame_register_signed, get_frame_register_signed): Declare.
2313 (frame_unwind_register_unsigned): Declare.
2314 (get_frame_register_unsigned): Declare.
2316 2003-06-20 Theodore A. Roth <troth@openavr.org>
2318 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2320 2003-06-20 Theodore A. Roth <troth@openavr.org>
2322 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2323 (avr_read_sp): Ditto.
2325 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2327 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2328 * config/arm/nm-linux.h: Likewise.
2329 * config/arm/tm-linux.h: Likewise.
2330 * config/ia64/nm-linux.h: Likewise.
2331 * config/ia64/tm-ia64.h: Likewise.
2332 * config/s390/tm-linux.h: Likewise.
2333 * config/s390/tm-s390.h: Likewise.
2334 * s390-nat.c: Likewise.
2335 * s390-tdep.c: Likewise.
2337 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2338 * config/ia64/linux.mt: Likewise.
2339 * config/m68k/linux.mh: Likewise.
2340 * config/mips/linux.mt: Likewise.
2341 * config/powerpc/linux.mh: Likewise.
2342 * config/sh/linux.mt: Likewise.
2344 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2346 * solib.c (solib_open): Change tests for whether to search
2347 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2350 2003-06-19 Theodore A. Roth <troth@openavr.org>
2352 * avr-tdep.c (avr_frame_address): Delete function.
2353 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2354 set_gdbarch_frame_args_address.
2356 2003-06-19 Andrew Cagney <cagney@redhat.com>
2358 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2359 (REGISTER_CONVERT_FROM_TYPE): Delete.
2360 (mips_register_convert_to_type): Delete declaration.
2361 (mips_register_convert_from_type): Delete declaration.
2362 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2365 2003-06-19 Michael Snyder <msnyder@redhat.com>
2367 * linux-nat.h: New file.
2368 * linux-nat.c: Include linux-nat.h.
2369 * lin-lwp.c: Include linux-nat.h.
2370 Move struct lwp_info def to linux-nat.h.
2371 * linux-proc.c: Include linux-nat.h.
2372 (linux_make_note_section): Iterate over lwps instead of threads.
2373 (linux_do_thread_registers): Use lwp instead of merged pid.
2374 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2375 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2376 Add dependency on linux_nat_h.
2378 2003-06-19 Theodore A. Roth <troth@openavr.org>
2380 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2382 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2384 * varobj.c (get_type, get_target_type): Use check_typedef.
2386 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2388 * breakpoint.c (insert_catchpoint): Call internal_error.
2390 2003-06-19 Theodore A. Roth <troth@openavr.org>
2392 * avr-tdep.c (avr_push_dummy_code): Delete function.
2393 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2395 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2397 * arch-utils.c (default_prepare_to_proceed): Remove.
2398 (generic_prepare_to_proceed): Remove.
2399 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2400 (generic_prepare_to_proceed): Remove prototype.
2401 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2402 * gdbarch.c: Regenerate.
2403 * gdbarch.h: Regenerate.
2404 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2405 * hppah-nat.c (hppa_switched_threads): Remove.
2406 * infrun.c (prepare_to_proceed): New static function, copied from
2407 generic_prepare_to_proceed. Remove select_it argument.
2408 (proceed): Call prepare_to_proceed.
2409 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2411 (ptrace_wait): Don't set the removed variables.
2412 (hppa_switched_threads): Remove.
2413 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2414 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2415 (lin_lwp_prepare_to_proceed): Remove prototype.
2416 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2417 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2419 2003-06-18 Theodore A. Roth <troth@openavr.org>
2421 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2423 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2424 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2425 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2426 (AVR_PROLOGUE_*): Enumerate prologue types.
2427 (struct frame_extra_info): Remove.
2428 (struct avr_unwind_cache): Define.
2429 (avr_write_sp): Delete function.
2430 (avr_read_fp): Ditto.
2431 (avr_init_extra_frame_info): Ditto.
2432 (avr_pop_frame): Ditto.
2433 (avr_frame_saved_pc): Ditto.
2434 (avr_saved_pc_after_call): Ditto.
2435 (avr_push_return_address): Ditto.
2436 (avr_frame_chain): Ditto.
2437 (avr_store_struct_return): Ditto.
2438 (avr_push_arguments): Ditto.
2439 (avr_scan_prologue): Update comments. Changed to set up the info for
2440 cache unwinding. Now returns end of prologue PC.
2441 (avr_skip_prologue): Better handling of functions lacking a prologue
2442 by using avr_scan_prologue.
2443 (avr_scan_arg_moves): New function.
2444 (avr_saved_regs_unwinder): Ditto.
2445 (avr_frame_unwind_cache): Ditto.
2446 (avr_unwind_pc): Ditto.
2447 (avr_frame_this_id): Ditto.
2448 (avr_frame_prev_register): Ditto.
2449 (avr_frame_p): Ditto.
2450 (avr_frame_base_address ): Ditto.
2451 (avr_unwind_dummy_id): Ditto.
2452 (avr_push_dummy_code): Ditto.
2453 (push_stack_item): Ditto.
2454 (pop_stack_item): Ditto.
2455 (avr_push_dummy_call): Ditto.
2456 (struct stack_item): Define.
2457 (avr_frame_unwind): Declare structure.
2458 (avr_frame_base): Ditto.
2459 (avr_gdbarch_init): Remove calls to
2460 set_gdbarch_deprecated_init_frame_pc,
2461 set_gdbarch_deprecated_target_read_fp,
2462 set_gdbarch_deprecated_dummy_write_sp,
2463 set_gdbarch_deprecated_fp_regnum,
2464 set_gdbarch_deprecated_push_arguments,
2465 set_gdbarch_deprecated_push_return_address,
2466 set_gdbarch_deprecated_pop_frame,
2467 set_gdbarch_deprecated_store_struct_return,
2468 set_gdbarch_deprecated_frame_init_saved_regs,
2469 set_gdbarch_deprecated_init_extra_frame_info,
2470 set_gdbarch_deprecated_frame_chain,
2471 set_gdbarch_deprecated_frame_saved_pc,
2472 set_gdbarch_deprecated_saved_pc_after_call.
2473 Add calls to set_gdbarch_push_dummy_call,
2474 set_gdbarch_push_dummy_code,
2475 frame_unwind_append_predicate,
2476 frame_base_set_default,
2477 set_gdbarch_unwind_dummy_id,
2478 set_gdbarch_unwind_pc.
2481 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2483 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2484 registers for H8/300S.
2485 (h8300_print_registers_info): Ditto.
2486 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2488 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2490 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2491 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2492 (lin_lwp_wait): Likewise. Update comments.
2493 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2494 (pull_pid_from_list, linux_record_stopped_pid): New.
2496 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2498 * ada-lang.c (scan_discrim_bound): Name first argument.
2499 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2500 declared by ALL_BLOCK_SYMBOLS.
2502 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2504 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2505 ("regcache.h"): Include it.
2506 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2508 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2510 * NEWS: Mention gdbserver detach change and "disconnect" command.
2511 * infcmd.c (disconnect_command): New function.
2512 (_initialize_infcmd): Add ``disconnect'' command.
2513 * remote.c (remote_async_detach): Delete.
2514 (remote_detach): Merge remote_async_detach.
2515 (remote_disconnect): New.
2516 (init_remote_ops): Set to_disconnect.
2517 (init_remote_cisco_ops): Likewise.
2518 (init_remote_async_ops): Likewise. Use remote_detach.
2519 * target.c (cleanup_target): Default to_disconnect.
2520 (update_current_target): Inherit to_disconnect.
2521 (target_disconnect, debug_to_disconnect): New functions.
2522 (setup_target_debug): Set to_disconnect.
2523 * target.h (struct target_ops): Add to_disconnect.
2524 (target_disconnect): Add prototype.
2526 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2528 * breakpoint.c (insert_catchpoint): New function.
2529 (insert_breakpoints): Use catch_exceptions to call
2530 insert_catchpoint. Disable catchpoints if they fail to insert.
2532 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2534 * symfile.c (reread_symbols): Clear sym_private.
2536 2003-06-17 Andrew Cagney <cagney@redhat.com>
2538 * trad-frame.h (struct frame_info): Add opaque declaration.
2539 * remote-fileio.h (struct cmd_list_element): Add opaque
2541 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2544 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2546 * remote.c (remote_prepare_to_store): Replace call to
2547 deprecated_read_register_bytes with multiple regcache_raw_read
2550 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2552 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2553 (nto_find_and_open_solib): Likewise.
2554 (nto_init_solib_absolute_prefix): Likewise.
2555 (_initialize_nto_tdep): Fix indentation.
2557 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2559 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2561 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2563 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2565 2003-06-17 Jim Blandy <jimb@redhat.com>
2567 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2569 2003-06-16 Theodore A. Roth <troth@openavr.org>
2571 * avr-tdep.c (avr_extract_return_value): New function.
2572 (avr_gdbarch_init): Set extract_return_value method.
2574 2003-06-16 Andrew Cagney <cagney@redhat.com>
2576 * frame.h (deprecated_get_next_frame_hack): Declare.
2577 * frame.c (legacy_saved_regs_prev_register): Only require
2578 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2579 there are always saved regs.
2580 (deprecated_generic_get_saved_register): Do not require
2581 DEPRECATED_FRAME_INIT_SAVED_REGS.
2582 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2583 use frame ID unwind instead.
2584 (deprecated_get_next_frame_hack): New function.
2586 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2588 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2589 (h8300_push_dummy_call): ...this function. Some minor optimization.
2590 (h8300_push_return_address): Remove.
2591 (h8300_gdbarch_init): Remove calls to
2592 set_gdbarch_deprecated_dummy_write_sp,
2593 set_gdbarch_deprecated_push_arguments and
2594 set_gdbarch_deprecated_push_return_address.
2595 Add call to set_gdbarch_push_dummy_call.
2597 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2599 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2600 (E_PSEUDO_EXR_REGNUM): Ditto.
2601 (h8300_is_argument_spill): Check for instructions moving argument
2602 registers into safe registers.
2603 (h8300_skip_prologue): Check for stm instruction to push registers
2604 used for register variables onto stack.
2605 (gdb_print_insn_h8300): Remove.
2606 (h8300_examine_prologue): Add a comment.
2607 (h8300_register_name): Take pseudo registers into account.
2608 (h8300s_register_name): Ditto.
2609 (h8300sx_register_name): Ditto.
2610 (h8300_print_register): Ditto.
2611 (h8300_print_registers_info): Define "nice" printing order.
2612 (h8300_saved_pc_after_call): Take pseudo registers into account.
2613 (h8300_register_type): Ditto. Return type used for remote connection
2614 when requesting real CCR or EXR register, return actual type when
2615 requesting pseudo CCR or EXR.
2616 (h8300_pseudo_register_read): New function.
2617 (h8300_pseudo_register_write): Ditto.
2618 (h8300_dbg_reg_to_regnum): Ditto.
2619 (h8300s_dbg_reg_to_regnum): Ditto.
2620 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2621 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2622 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2623 set_gdbarch_print_insn architecture dependent.
2624 Call set_gdbarch_pseudo_register_read and
2625 set_gdbarch_pseudo_register_write.
2626 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2628 2003-06-16 Andrew Cagney <cagney@redhat.com>
2630 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2631 * gdbarch.h, gdbarch.c: Re-generate.
2632 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2633 * s390-tdep.c (s390_gdbarch_init): Update.
2634 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2635 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2636 * mips-tdep.c (mips_gdbarch_init): Update.
2637 * mcore-tdep.c (mcore_gdbarch_init): Update.
2638 * cris-tdep.c (cris_gdbarch_init): Update.
2639 * infcall.c (call_function_by_hand): Update.
2640 * ia64-tdep.c (ia64_push_arguments): Update comment.
2641 * frame.c (legacy_get_prev_frame): Do not assume
2642 SAVE_DUMMY_FRAME_TOS_P.
2643 * dummy-frame.c (find_dummy_frame): Update comment.
2645 2003-06-16 Andrew Cagney <cagney@redhat.com>
2647 * regcache.c (do_cooked_read): Do not use register_valid_p.
2649 2003-06-15 Theodore A. Roth <troth@openavr.org>
2651 * avr-tdep.c (avr_register_type): Remove a blank line.
2652 (avr_scan_prologue): Correct some comments.
2654 2003-06-15 Theodore A. Roth <troth@openavr.org>
2656 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2658 Properly scan prologues generated by gcc with the -mcall-prologues
2660 Add code to scan -mcall-prologues for mega devices.
2662 2003-06-15 Theodore A. Roth <troth@openavr.org>
2664 * avr-tdep.c (avr_register_byte): Delete function.
2665 (avr_register_raw_size): Delete function.
2666 (avr_register_virtual_size): Delete function.
2667 (avr_register_virtual_type): Delete function.
2668 (avr_register_type): New function.
2669 (avr_address_to_pointer): Remove unused code.
2670 (avr_read_fp): Need to read FP as two separate bytes due to change to
2671 avr_register_type() usage.
2672 (avr_gdbarch_init): Don't set deprecated_register_size.
2673 Don't set deprecated_register_bytes.
2674 Don't set deprecated_register_byte.
2675 Don't set deprecated_register_raw_size.
2676 Don't set deprecated_max_register_raw_size.
2677 Don't set deprecated_register_virtual_size.
2678 Don't set deprecated_max_register_virtual_size.
2679 Don't set deprecated_register_virtual_type.
2680 Set register_type method.
2682 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2684 * Makefile.in (linux-nat.o): Add rule.
2685 * linux-nat.c: New file.
2686 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2687 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2688 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2689 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2690 * config/arm/linux.mh (NATDEPFILES): Likewise.
2691 * config/i386/linux.mh (NATDEPFILES): Likewise.
2692 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2693 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2694 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2695 * config/mips/linux.mh (NATDEPFILES): Likewise.
2696 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2697 * config/s390/s390.mh (NATDEPFILES): Likewise.
2698 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2700 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2702 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2703 replace out-of-date comment.
2705 2003-06-15 Andrew Cagney <cagney@redhat.com>
2707 * rdi-share/host.h (Fail): Change to a varargs function.
2708 * remote-rdi.c (Fail): Update.
2710 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2712 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2713 (i386_convert_register_p, i386_register_to_value,
2714 i386_register_from_value): Handle types longer than 8 bytes.
2716 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2718 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2719 Move floating-point code to new function in i387-tdep.c.
2720 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2721 New functions containing code moved here from i386-tdep.c.
2722 * i387-tdep.h: Add opaque declaration for `struct type'.
2723 (i387_register_to_value, i387_value_to_register): New prototypes.
2724 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2725 (x86_64_init_abi): Set convert_register_p, register_to_value and
2726 value_to_register here.
2728 2003-06-14 Andrew Cagney <cagney@redhat.com>
2730 * mips-tdep.c (mips_register_to_value): Make static.
2731 (mips_value_to_register): Make static.
2732 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2733 * ia64-tdep.c (ia64_register_raw_size): Make static.
2734 (ia64_register_virtual_size): Make static.
2735 (ia64_register_byte): Make static.
2736 * i387-tdep.c: Include "i387-tdep.h".
2737 (print_387_control_word): Delete function.
2738 (print_387_status_word): Delete function.
2739 (print_387_status_bits): Delete function.
2740 (print_387_control_bits): Delete function.
2741 * Makefile.in (i387-tdep.o): Update dependencies.
2742 * rdi-share/host.h (Fail): Declare.
2743 * remote-rdi.c (Fail): Update to match declaration.
2745 2003-06-14 Andrew Cagney <cagney@redhat.com>
2747 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2748 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2749 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2750 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2751 * README: Delete reference to remote-array.
2752 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2753 (remote-array.o): Delete target.
2754 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2755 * remote-array.c: Delete file.
2757 2003-06-14 Andrew Cagney <cagney@redhat.com>
2758 Mark Kettenis <kettenis@gnu.org>
2760 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2761 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2762 parameter with "frame".
2763 * gdbarch.h, gdbarch.c: Re-generate.
2764 * frame.h (put_frame_register): Declare.
2765 * frame.c (put_frame_register): New function.
2766 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2767 (legacy_register_to_value): Rewrite, use "frame" to get the
2769 (legacy_value_to_register): Rewrite, use "frame" to find the
2770 register's location before storing.
2771 * arch-utils.h (legacy_convert_register_p): Update.
2772 (legacy_register_to_value, legacy_value_to_register): Update.
2773 * findvar.c (value_from_register): Rewrite, eliminate use of
2774 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2775 "frame" to REGISTER_TO_VALUE.
2776 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2777 lval_reg_frame_relative + lval_register branch of the switch. Do
2778 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2779 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2780 I386_EDI_REGNUM): New defines.
2781 (i386_next_regnum, i386_convert_register_p,
2782 i386_register_to_value, i386_value_to_register): New functions.
2783 (i386_register_convertible, i386_register_convert_to_virtual,
2784 i386_convert_to_raw): Remove functions.
2785 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2786 value_to_register instead of register_convertible,
2787 register_convert_to_virtual and register_convert_to_raw.
2788 * mips-tdep.c (mips_convert_register_p): New function.
2789 (mips_value_to_register): Replace mips_register_convert_from_type.
2790 (mips_register_to_value): Replace mips_register_convert_to_type.
2791 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2793 * alpha-tdep.c (alpha_convert_register_p): Update.
2794 (alpha_value_to_register): Update, store the register.
2795 (alpha_register_to_value): Update, fetch the register.
2797 2003-06-14 Theodore A. Roth <troth@openavr.org>
2799 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2800 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2801 Don't set deprecated_call_dummy_words.
2802 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2803 Don't set remote_translate_xfer_address.
2804 (avr_io_reg_read_command): Remove commented out debug printf.
2807 2003-06-14 Theodore A. Roth <troth@openavr.org>
2809 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2810 causes gdb to seg fault.
2812 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2814 * sparc-nat.c (fetch_inferior_registers): Correct
2815 a reference to "registers".
2817 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2819 * Makefile.in (exc_request_U_h): Define
2820 (exc_request_S_h): Likewise.
2821 (msg_reply_S_h): Likewise.
2822 (msg_U_h): Likewise.
2823 (notify_S_h): Likewise.
2824 (process_reply_S_h): Likewise.
2825 (gnu-nat.o): Depend on gdb_obstack_h
2826 * gnu-nat.c: Include "gdb_obstack.h".
2828 2003-06-13 Andrew Cagney <cagney@redhat.com>
2830 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2831 * gdbarch.h, gdbarch.c: Re-generate.
2833 2003-06-13 Andrew Cagney <cagney@redhat.com>
2835 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2836 when deprecated REGISTER macros can be deleted.
2837 * gdbarch.h, gdbarch.c: Re-generate.
2839 2003-06-13 Jim Blandy <jimb@redhat.com>
2841 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2842 Linux entry point symbols for _dl_debug_state, too.
2844 2003-06-13 Andrew Cagney <cagney@redhat.com>
2846 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2847 available, do not use the FP register, and always save the TOS.
2848 * dummy-frame.c (dummy_frame_this_id): Do not assert
2849 SAVE_DUMMY_FRAME_TOS.
2850 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2851 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2852 (i386_push_dummy_call): Add 8 to the returned SP.
2853 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2854 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2855 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2856 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2857 (x86_64_push_dummy_call): Return "sp + 16".
2858 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2859 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2860 save_dummy_frame_tos.
2862 2003-06-13 Jim Blandy <jimb@redhat.com>
2864 * frv-tdep.c (frv_use_struct_convention): Delete static
2865 declaration for function deleted in my change of 2003-06-12.
2867 2003-06-13 Theodore A. Roth <troth@openavr.org>
2869 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2870 (avr_pointer_to_address): Shift code addrs left 1 bit.
2871 (avr_convert_from_func_ptr_addr): Delete function since operation is
2872 better handled by avr_address_to_pointer and avr_pointer_to_address.
2873 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2875 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2877 From Kelley Cook <kelleycook@wideopenwest.com>:
2878 * configure.host: Accept i[34567]86 variants.
2879 * configure.tgt: Likewise.
2880 * nlm/configure.in: Likewise.
2881 * nlm/configure: Regenerated.
2883 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2885 * arm-tdep.c (solib-svr4.h): Dont' include it.
2886 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2887 * arm-linux-tdep.c: ... here. Make static.
2888 (arm_linux_init_abi): Register it.
2889 (solib-svr4.h): Include it.
2890 * Makefile.in: Update dependencies.
2891 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2892 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2894 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2896 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2897 indicate registers used for return values.
2898 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2899 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2901 (h8300_init_extra_frame_info): Ditto.
2902 (h8300_frame_locals_address): Removed.
2903 (h8300_frame_args_address): Removed.
2904 (h8300_extract_return_value): Use new regcache structure. Only care
2906 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2907 (h8300_store_return_value): Use new regcache structure. Only care
2909 (h8300h_store_return_value): Same function for 32 bit CPUs.
2910 (h8300_store_struct_return): Removed.
2911 (h8300_extract_struct_value_address): Use new regcache structure.
2912 (h8300h_extract_struct_value_address): Removed.
2913 (h8300_push_dummy_code): New function.
2914 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2915 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2916 set_gdbarch_store_return_value architecture dependent.
2917 Call set_gdbarch_push_dummy_code and
2918 set_gdbarch_extract_struct_value_address.
2919 Remove calls to set_gdbarch_frame_args_address,
2920 set_gdbarch_frame_locals_address,
2921 set_gdbarch_deprecated_store_struct_return,
2922 set_gdbarch_deprecated_extract_return_value,
2923 set_gdbarch_deprecated_extract_struct_value_address,
2924 set_gdbarch_deprecated_call_dummy_words and
2925 set_gdbarch_deprecated_sizeof_call_dummy_words.
2927 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2929 * h8300-tdep.c (h8300_register_byte): Remove.
2930 (h8300h_register_byte): Remove.
2931 (h8300_register_virtual_type): Remove. Substitute by...
2932 (h8300_register_type): New function.
2933 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2934 (h8300h_extract_struct_value_address): Ditto.
2935 (h8300_gdbarch_init): Drop calls to
2936 set_gdbarch_deprecated_register_byte and
2937 set_gdbarch_deprecated_register_virtual_type.
2938 Add call to set_gdbarch_register_type.
2940 2003-06-13 Andrew Cagney <cagney@redhat.com>
2942 * gdbarch.sh: Update comments on registers.
2943 (deprecated_register_byte): Rename register_byte.
2944 (deprecated_register_raw_size): Rename register_raw_size.
2945 (deprecated_register_virtual_size): Rename register_virtual_size.
2946 (deprecated_register_virtual_type): Rename register_virtual_type.
2947 * gdbarch.h, gdbarch.c: Re-generate.
2948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2949 * vax-tdep.c (vax_gdbarch_init): Update.
2950 * v850-tdep.c (v850_gdbarch_init): Update.
2951 * sparc-tdep.c (sparc_gdbarch_init): Update.
2952 * sh-tdep.c (sh_gdbarch_init): Update.
2953 * s390-tdep.c (s390_gdbarch_init): Update.
2954 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2955 * ns32k-tdep.c: Update.
2956 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2957 * mips-tdep.c (mips_gdbarch_init): Update.
2958 * mcore-tdep.c (mcore_gdbarch_init): Update.
2959 * m68k-tdep.c (m68k_gdbarch_init): Update.
2960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2961 * ia64-tdep.c (ia64_gdbarch_init): Update.
2962 * hppa-tdep.c (hppa_gdbarch_init): Update.
2963 * h8300-tdep.c (h8300_gdbarch_init): Update.
2964 * frv-tdep.c (frv_gdbarch_init): Update.
2965 * cris-tdep.c (cris_gdbarch_init): Update.
2966 * avr-tdep.c (avr_gdbarch_init): Update.
2967 * alpha-tdep.c (alpha_gdbarch_init): Update.
2968 * arm-tdep.c (arm_gdbarch_init): Update.
2970 2003-06-13 Andrew Cagney <cagney@redhat.com>
2972 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2973 mips_o32_use_struct_convention with always_use_struct_convention.
2975 2003-06-12 David Carlton <carlton@kealia.com>
2977 * cp-namespace.c (cp_set_block_scope): Comment out
2978 processing_has_namespace_info branch.
2980 2003-06-12 Jim Blandy <jimb@redhat.com>
2982 Recognize and skip 64-bit PowerPC Linux linkage functions.
2983 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2984 insn_pattern, insns_match_pattern, d_field, ds_field): New
2985 functions, macros, and types for working with PPC instructions.
2986 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2987 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2988 ppc64_skip_trampoline_code): New functions, variables, and macros
2989 for recognizing and skipping linkage functions.
2990 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2991 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2993 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2994 register offsets for both the 32- and 64-bit interfaces.
2996 Actually finish the job started by my change of 2003-05-29.
2997 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2998 other #definition of this.
2999 (ppc_linux_skip_trampoline_code): Remove declaration.
3000 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3002 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3005 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3006 'long' on ppc64-*-linux*.
3008 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3009 isn't #defined, assume the register doesn't exist: act as if
3010 tdep->ppc_mq_regnum were -1.
3012 * configure.host, configure.tgt: Add entries for
3013 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3015 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3018 * arch-utils.c (always_use_struct_convention): New function.
3019 * arch-utils.h (always_use_struct_convention): New prototype.
3020 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3021 (alpha_gdbarch_init): Register always_use_struct_convention,
3022 instead of alpha_use_struct_convention.
3023 * cris-tdep.c (cris_use_struct_convention): Delete.
3024 (cris_gdbarch_init): Register always_use_struct_convention,
3025 instead of cris_use_struct_convention.
3026 * frv-tdep.c (frv_use_struct_convention): Delete.
3027 (frv_gdbarch_init): Register always_use_struct_convention,
3028 instead of frv_use_struct_convention.
3029 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3030 (h8300_gdbarch_init): Register always_use_struct_convention,
3031 instead of h8300_use_struct_convention.
3032 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3033 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3034 instead of mips_o32_use_struct_convention.
3036 2003-06-12 Andrew Cagney <cagney@redhat.com>
3038 * wince.c: Include "mips-tdep.h".
3039 * mips-tdep.h (mips_next_pc): Declare.
3040 * mcore-tdep.c: Make more local functions static.
3041 * Makefile.in (wince.o): Update dependencies.
3043 2003-06-12 David Carlton <carlton@kealia.com>
3045 * symtab.c (lookup_symbol_aux_minsyms): Replace
3046 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3047 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3048 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3049 SYMBOL_NATURAL_NAME.
3051 2003-06-12 Andreas Schwab <schwab@suse.de>
3053 * Makefile.in (tuiDisassem.o): Update dependencies.
3055 2003-06-12 David Carlton <carlton@bactrian.org>
3057 * symtab.h: Delete declaration of make_symbol_overload_list.
3058 Add declaration of lookup_partial_symbol.
3059 * symtab.c (remove_params): Move to cp-support.c.
3060 (overload_list_add_symbol, make_symbol_overload_list)
3061 (sym_return_val_size, sym_return_val_index): Ditto.
3062 (lookup_partial_symbol): Make extern.
3063 * cp-support.h: Add declaration of make_symbol_overload_list.
3064 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3065 symtab.h, and block.h.
3066 (remove_params): Move here from symtab.c.
3067 (overload_list_add_symbol, make_symbol_overload_list)
3068 (sym_return_val_size, sym_return_val_index): Ditto.
3069 * valops.c: Include cp-support.h.
3070 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3071 frame_h, and block_h.
3072 (valops.o): Depend on cp_support_h.
3074 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3076 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3077 substitute by NUM_REGS throughout.
3078 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3079 (h8300s_register_name): New function for H8S registers.
3080 (h8300sx_register_name): Ditto for H8SX registers.
3081 (h8300_print_register): Revise register printing, avoid depending
3083 (h8300_register_byte): Only care for H8/300 registers.
3084 (h8300h_register_byte): New function for any other architecture.
3085 (h8300_register_raw_size): Remove.
3086 (h8300_register_virtual_type): Revise to return actually useful
3088 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3089 (h8300h_extract_struct_value_address): New function for any other
3091 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3092 set_gdbarch_register_name, set_gdbarch_register_byte,
3093 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3094 Remove calls to set_gdbarch_deprecated_register_size,
3095 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3096 set_gdbarch_deprecated_max_register_raw_size,
3097 set_gdbarch_register_virtual_size and
3098 set_gdbarch_deprecated_max_register_virtual_size entirely.
3099 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3100 set_gdbarch_long_double_bit.
3102 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3104 * doublest.c (convert_doublest_to_floatformat): When dealing
3105 with the implied integer bit, only alter mant_bits if we are
3106 processing a full 32 bits of mantissa.
3108 2003-06-11 David Carlton <carlton@bactrian.org>
3110 * dictionary.h: New.
3111 * dictionary.c: New.
3112 * block.h: Add opaque declaration for struct dictionary.
3113 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3115 (BLOCK_DICT): New macro.
3116 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3117 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3119 (ALL_BLOCK_SYMBOLS): Update definition.
3120 * Makefile.in (SFILES): Add dictionary.c.
3121 (dictionary_h): New.
3122 (COMMON_OBS): Add dictionary.o.
3123 (dictionary.o): New.
3124 (ada-lang.o): Depend on dictionary_h.
3125 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3126 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3127 (mi-cmd-stack.o): Ditto.
3128 (gdbtk-cmds.o): Update dependencies.
3129 (gdbtk-stack.o): Ditto.
3130 * ada-lang.c: Include dictionary.h.
3131 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3132 (fill_in_ada_prototype, debug_print_block): Ditto.
3133 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3134 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3136 * mdebugread.c: Include dictionary.h.
3137 (struct parse_stack): Delete 'maxsyms' member.
3138 (parse_symbol): Update calls to new_block. Delete calls to
3139 shrink_block. Use dictionary methods.
3140 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3141 Update calls to new_symtab. Don't maintain maxsyms data.
3142 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3143 (add_symbol): Just call dict_add_symbol.
3144 (new_symtab): Delete 'maxsyms' argument.
3145 (new_symtab): Update calls to new_block.
3146 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3147 (shrink_block): Delete function.
3148 (fixup_sigtramp): Update call to new_block. Add symbol via
3150 * jv-lang.c: Include dictionary.h.
3151 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3152 appropriately. Set class_symtab->free_func. Make sure the
3153 blockvector is big enough to hold two blocks.
3154 (add_class_symtab_symbol): Use dictionary methods.
3155 (free_class_block): New function.
3156 (type_from_class): Replace explicit iteration by
3158 * symtab.h (struct symtab): Replace 'free_ptr' method by
3160 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3162 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3164 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3165 Include dictionary.h.
3166 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3167 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3169 * objfiles.c: Include dictionary.h.
3170 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3171 * buildsym.c: Include dictionary.h.
3172 (finish_block): Use dictionary methods.
3173 (end_symtab): Set free_func to NULL, not free_ptr.
3174 * tracepoint.c: Include dictionary.h.
3175 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3176 (scope_info): Ditto.
3177 * stack.c: Include dictionary.h.
3178 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3179 (print_block_frame_labels, print_frame_arg_vars)
3180 (print_frame_args): Ditto.
3181 * symmisc.c (free_symtab_block): Use dictionary methods.
3182 (dump_symtab): Ditto.
3183 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3184 Include dictionary.h.
3185 * symfile.h: Delete declarations of sort_block_syms,
3187 * symfile.c (sort_block_syms): Delete.
3188 (sort_symtab_syms): Delete.
3189 * symtab.c: Include dictionary.h.
3190 (lookup_block_symbol): Use dictionary iterators.
3191 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3192 (search_symbols, make_symbol_completion_list): Ditto.
3193 (make_symbol_overload_list): Ditto.
3194 * valops.c (value_of_local): Use dict_empty.
3195 Include dictionary.h.
3197 2003-06-11 J. Brobecker <brobecker@gnat.com>
3199 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3201 2003-06-11 David Carlton <carlton@bactrian.org>
3203 * block.h (BLOCK_SHOULD_SORT): Delete.
3204 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3206 * ada-lang.c (ada_add_block_symbols): Ditto.
3207 * symfile.c (sort_block_syms): Delete.
3208 (sort_symtab_syms): Ditto.
3209 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3211 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3212 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3213 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3214 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3215 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3216 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3217 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3219 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3221 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3224 2003-06-11 Andrew Cagney <cagney@redhat.com>
3226 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3227 REGISTER_CONVERTIBLE.
3228 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3229 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3230 * gdbarch.h, gdbarch.c: Re-generate.
3231 * arch-utils.h (deprecated_register_convertible_not): Rename
3232 generic_register_convertible_not.
3233 * arch-utils.c (deprecated_register_convertible_not): Rename
3234 generic_register_convertible.
3235 (legacy_convert_register_p, legacy_register_to_value): Update.
3236 * sh-tdep.c (sh64_push_arguments): Update.
3237 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3238 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3239 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3240 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3241 * arch-utils.c (legacy_value_to_register): Update.
3242 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3243 (rs6000_register_convert_to_raw): Make parameter "from" const.
3244 * mips-tdep.c (mips_gdbarch_init): Update.
3245 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3246 * infcmd.c (default_print_registers_info): Update.
3247 * ia64-tdep.c (ia64_gdbarch_init): Update.
3248 (ia64_register_convert_to_raw): Make parameter "from" const.
3249 * i386-tdep.c (i386_gdbarch_init): Update.
3250 (i386_register_convert_to_raw): Update.
3252 2003-06-11 Andrew Cagney <cagney@redhat.com>
3254 * remote-fileio.c: Include "remote-fileio.h".
3255 * Makefile.in (remote-fileio.o): Update dependencies.
3256 (remote_fileio_h): Fix typo.
3258 2003-06-11 Andrew Cagney <cagney@redhat.com>
3260 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3261 (xstormy16_save_dummy_frame_tos): Make static.
3262 (_initialize_xstormy16_tdep): Add declaration.
3263 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3264 * v850-tdep.c: Make local functions static.
3265 (_initialize_v850_tdep): Add declaration.
3266 * sparc-tdep.c: Make local functions static.
3267 (_initialize_sparc_tdep): Add declaration.
3268 * sh-tdep.c: Make local functions static.
3269 (_initialize_sh_tdep): Add declaration.
3270 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3271 * s390-tdep.c: Make local functions static.
3272 (_initialize_s390_tdep): Add declaration.
3273 * dbxread.c (find_stab_function_addr): Make static.
3274 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3275 * ocd.c (_initialize_remote_ocd): Add declaration.
3276 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3277 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3278 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3279 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3280 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3281 * remote-array.c (_initialize_array): Add declaration.
3282 (_initialize_remote_monitors): Add declaration.
3283 * remote-mips.c: Make local functions static.
3284 (_initialize_remote_mips): Add declaration.
3285 * mcore-tdep.c: Make all local functions static.
3286 (_initialize_mcore_tdep): Add declaration.
3287 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3288 * abug-rom.c (_initialize_abug_rom): Add declaration.
3289 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3290 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3291 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3292 * remote-est.c (_initialize_est): Add declaration.
3293 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3294 (m68hc11_call_dummy_address): Make static.
3295 * ia64-tdep.c: Make local functions static.
3296 (_initialize_ia64_tdep): Add declaration.
3297 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3298 * monitor.c (monitor_wait_filter): Make static.
3299 (_initialize_remote_monitors): Add declaration.
3300 * remote-hms.c (_initialize_remote_hms): Add declaration.
3301 * remote-e7000.c (fetch_regs_from_dump): Make static.
3302 (expect_n): Make static.
3303 (_initialize_remote_e7000): Add declaration.
3304 * ser-e7kpc.c: Always include "defs.h".
3305 (_initialize_ser_e7000pc): Add declaration.
3306 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3307 * cris-tdep.c: Make all but one function static.
3308 (_initialize_cris_tdep): Add declaration.
3309 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3310 * solib.c (update_solib_list): Make static.
3311 (_initialize_solib): Add declaration.
3312 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3313 (_initialize_avr_tdep): Add declaration.
3314 * remote-rdi.c (voiddummy): Make static.
3315 (_initialize_remote_rdi): Add declaration.
3316 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3317 * remote-rdp.c (send_rdp): Make static.
3318 (_initialize_remote_rdp): Add declaration.
3319 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3321 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3323 * remote-fileio.c: Make ari happy.
3325 2003-06-10 J. Brobecker <brobecker@gnat.com>
3327 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3328 fetching the trailing bytes of the buffer we are about to write.
3330 2003-06-10 Andrew Cagney <cagney@redhat.com>
3332 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3333 * Makefile.in (remote-fileio.o): Update dependencies.
3334 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3335 include <setjmp.h>, or <sys/types.h> conditional on USG.
3336 (remote_fio_jmp_buf): Delete global variable.
3338 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3339 Martin M. Hunt <hunt@redhat.com>
3341 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3342 (SFILES): Add remote-fileio.c.
3343 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3344 dependencies for building remote.o.
3345 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3346 * remote-fileio.h: New header file defining remote File-I/O interface.
3347 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3348 static storage class.
3349 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3351 (_initialize_remote): Call initialize_remote_fileio().
3352 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3353 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3354 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3355 (captured_main): Initialize new ui_files.
3356 * ui-file.c: Add read and fgets input functions.
3357 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3358 (null_file_read): New function.
3359 (ui_file_read): New function.
3360 (set_ui_file_read): New function.
3361 (stdio_file_read): New function.
3362 * ui-file.h: New type ui_file_read_ftype.
3363 (set_ui_file_read): Declare.
3364 (ui_file_read): Declare.
3366 2003-06-09 Andrew Cagney <cagney@redhat.com>
3368 * frame.h (deprecated_unwind_get_saved_register): Rename
3369 generic_unwind_get_saved_register, update comments.
3370 * mips-tdep.c (mips_get_saved_register): Update.
3371 * frame.c (deprecated_unwind_get_saved_register): Update.
3373 2003-06-09 Andrew Cagney <cagney@redhat.com>
3375 * vax-tdep.c (vax_frame_locals_address): Delete function.
3376 (vax_gdbarch_init): Do not set frame_locals_address.
3377 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3378 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3379 * s390-tdep.c (s390_frame_args_address): Delete function.
3380 (s390_gdbarch_init): Do not set frame_args_address or
3381 frame_locals_address.
3382 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3383 (ns32k_gdbarch_init): Do not set frame_locals_address.
3384 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3385 (hppa_frame_locals_address): Delete function.
3386 (hppa_gdbarch_init): Do not set frame_args_address, or
3387 frame_locals_address.
3388 * arm-tdep.c (arm_frame_args_address): Delete.
3389 (arm_frame_locals_address): Delete.
3390 (arm_gdbarch_init): Do not set frame_args_address, or
3391 frame_locals_address.
3393 2003-06-09 Andrew Cagney <cagney@redhat.com>
3395 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3396 * gdbarch.h, gdbarch.c: Re-generate.
3397 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3398 * arch-utils.c (frame_num_args_unknown): Delete function.
3399 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3400 (frame_info): Use FRAME_NUM_ARGS_P.
3401 * arm-tdep.c (arm_frame_num_args): Delete function.
3402 (arm_gdbarch_init): Do not set frame_num_args.
3403 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3404 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3405 (hppa_gdbarch_init): Do not set frame_num_args.
3406 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3408 frame_num_args to default frame_num_args_unknown.
3409 * v850-tdep.c (v850_gdbarch_init): Ditto.
3410 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3411 * sh-tdep.c (sh_gdbarch_init): Ditto.
3412 * s390-tdep.c (s390_gdbarch_init): Ditto.
3413 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3414 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3415 * mips-tdep.c (mips_gdbarch_init): Ditto.
3416 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3417 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3419 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3420 * i386-tdep.c (i386_gdbarch_init): Ditto.
3421 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3422 * frv-tdep.c (frv_gdbarch_init): Ditto.
3423 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3424 * cris-tdep.c (cris_gdbarch_init): Ditto.
3425 * avr-tdep.c (avr_gdbarch_init): Ditto.
3426 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3428 2003-06-09 Andrew Cagney <cagney@redhat.com>
3430 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3431 (print_frame_args): Moved to "stack.c".
3432 * stack.c: Include "gdb_assert.h".
3433 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3434 (print_frame_args): Moved from "printcmd.c".
3435 * frame.h (print_frame_args): Delete declaration.
3436 * Makefile.in (stack.o): Update dependencies.
3438 2003-06-08 Andrew Cagney <cagney@redhat.com>
3440 * frame.c (get_prev_frame): Remove reference to
3441 frame_args_address_correct in comments.
3442 * frame-base.c (default_frame_args_address): Delete code
3443 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3444 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3445 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3446 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3447 (vax_frame_args_address_correct): Delete declaration.
3449 2003-06-08 Andrew Cagney <cagney@redhat.com>
3451 * gdbarch.sh (UNWIND_SP): Add.
3452 * gdbarch.h, gdbarch.c: Re-generate.
3453 * frame.c (frame_sp_unwind): New function.
3454 (get_frame_sp): New function.
3455 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3456 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3457 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3459 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3460 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3462 2003-06-08 Andrew Cagney <cagney@redhat.com>
3464 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3467 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3468 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3469 * config/m68k/tm-sun3.h: Update.
3470 * config/m68k/tm-m68klynx.h: Update.
3471 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3473 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3474 trad_frame". Update comments.
3475 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3476 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3477 (trad_frame_register_value, trad_frame_prev_register): Update.
3479 2003-06-08 Andrew Cagney <cagney@redhat.com>
3481 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3482 from GCC's acinclude.m4.
3483 * configure.in: Check for getopt's delcaration.
3484 * aclocal.m4, config.in, configure: Re-generate.
3485 * main.c (error_init): Delete declaration.
3486 * defs.h (error_init): Declare.
3487 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3488 (rs6000_convert_from_func_ptr_addr): Make static.
3489 (_initialize_rs6000_tdep): Add declaration.
3490 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3491 (show_commands, set_verbose, show_history): Delete declaration.
3492 * top.h (set_verbose): Add declaration.
3493 (show_history, set_history, show_commands): Add declaration.
3494 (do_restore_instream_cleanup): Add declaration.
3495 * objc-lang.c (specialcmp): Make static.
3496 (print_object_command): Make static.
3497 (find_objc_msgsend): Make static.
3498 (find_objc_msgcall_submethod_helper): Make static.
3499 (find_objc_msgcall_submethod): Make static.
3500 (_initialize_objc_language): Add declaration.
3501 (find_implementation_from_class): Make static.
3502 (find_implementation): Make static.
3503 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3504 * objc-lang.h (lookup_struct_typedef): Add declaration.
3505 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3506 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3507 (do_restore_user_call_depth): Make static.
3508 (do_restore_instream_cleanup): Delete declaration.
3509 (dont_repeat): Delete declaration.
3510 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3511 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3512 * reggroups.c (_initialize_reggroup): Add declaration.
3513 * cp-support.c (_initialize_cp_support): Add declaration.
3514 * cp-abi.c (_initialize_cp_abi): Add declaration.
3515 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3516 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3517 (_initialize_gnu_v3_abi): Add declaration.
3518 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3519 (_initialize_gnu_v2_abi): Add declaration.
3520 * frame-base.c (_initialize_frame_base): Add declaration.
3521 * doublest.c (floatformat_from_length): Make static.
3522 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3523 * frame.c (create_sentinel_frame): Make static.
3524 (_initialize_frame): Add declaration.
3525 * top.c (do_catch_errors): Make static.
3526 (gdb_rl_operate_and_get_next_completion): Make static.
3527 * typeprint.c: Include "typeprint.h".
3528 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3529 (sentinel_frame_this_id): Make static.
3530 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3531 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3532 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3533 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3534 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3535 * maint.c (maintenance_print_architecture): Make static.
3536 * signals/signals.c (_initialize_signals): Add declaration.
3537 * std-regs.c (_initialize_frame_reg): Add declaration.
3538 * jv-exp.y (push_variable): ISO C definition.
3539 (push_qualified_expression_name): Ditto.
3540 * memattr.c (_initialize_mem): Add declaration.
3541 * remote.c (remote_check_watch_resources): Make static.
3542 (remote_stopped_by_watchpoint): Make static.
3543 (remote_stopped_data_address): Make static.
3544 * d10v-tdep.c (nr_dmap_regs): Make static.
3545 (a0_regnum): Make static.
3546 (d10v_frame_unwind_cache): Make static.
3547 (d10v_frame_p): Make static.
3548 * osabi.c (show_osabi): Make static.
3549 (_initialize_gdb_osabi): Add extern declaration.
3550 * gdbtypes.c (make_qualified_type): Make static.
3551 (safe_parse_type): Make static.
3552 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3553 * macrotab.c (macro_bcache_free): Make static.
3554 * interps.c (interp_set_quiet): Make static.
3555 (interpreter_exec_cmd): Make static.
3556 * stack.h (select_frame_command): New file.
3557 * stack.c: Include "stack.h".
3558 (select_frame_command_wrapper): Delete function.
3559 (select_frame_command): Make global.
3560 * infcall.c: Include "infcall.h".
3561 * linespec.c: Include "linespec.h".
3562 * symfile.c (sections_overlap): Make static.
3563 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3564 * charset.c (_initialize_charset): Add missing prototype.
3565 * regcache.c (init_legacy_regcache_descr): Make static.
3566 (do_regcache_xfree): Make static.
3567 (regcache_xfer_part): Make static.
3568 (_initialize_regcache): Add missing prototype.
3569 * breakpoint.c (parse_breakpoint_sals): Make static.
3570 (breakpoint_sals_to_pc): Make static.
3571 * interps.h (clear_interpreter_hooks): ISO C declaration.
3572 * Makefile.in (stack_h): Define.
3573 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3574 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3576 2003-06-08 Andrew Cagney <cagney@redhat.com>
3578 * Makefile.in (d10v-tdep.o): Update dependencies.
3579 (SFILES): Add trad-frame.c.
3580 (trad_frame_h): Define.
3581 (COMMON_OBS): Add trad-frame.o.
3582 (trad-frame.o): Specify dependencies.
3583 * d10v-tdep.c: Include "trad-frame.h".
3584 (saved_regs_unwinder): Delete function.
3585 (d10v_frame_prev_register): Use trad_frame_prev_register.
3586 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3587 trad_frame", delete "regs" and "prev_sp".
3588 (prologue_find_regs): Use trad-frame.
3589 * trad-frame.h, trad-frame.c: New files.
3591 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3593 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3595 2003-06-07 Adam Fedor <fedor@gnu.org>
3597 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3598 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3599 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3600 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3601 resolve_msgsend_super, resolve_msgsend_super_stret):
3604 2003-06-07 Andrew Cagney <cagney@redhat.com>
3606 * symfile.h: Re-indent, clean up comments.
3608 2003-06-07 Andrew Cagney <cagney@redhat.com>
3610 * inferior.h (deprecated_write_sp): Replace
3611 generic_target_write_sp.
3612 * regcache.c (deprecated_write_sp): Replace
3613 generic_target_write_sp.
3614 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3615 * vax-tdep.c (vax_gdbarch_init): Update.
3616 * v850-tdep.c (v850_gdbarch_init): Update.
3617 * sparc-tdep.c (sparc_gdbarch_init): Update.
3618 * sh-tdep.c (sh_gdbarch_init): Update.
3619 * s390-tdep.c (s390_gdbarch_init): Update.
3620 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3621 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3622 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3623 * mcore-tdep.c (mcore_gdbarch_init): Update.
3624 * m68k-tdep.c (m68k_gdbarch_init): Update.
3625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3626 * ia64-tdep.c (ia64_gdbarch_init): Update.
3627 * h8300-tdep.c (h8300_gdbarch_init): Update.
3628 * frv-tdep.c (frv_gdbarch_init): Update.
3629 * cris-tdep.c (cris_gdbarch_init): Update.
3630 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3632 2003-06-07 Andrew Cagney <cagney@redhat.com>
3634 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3635 Assert that PC_REGNUM is valid.
3636 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3638 2003-06-07 Andrew Cagney <cagney@redhat.com>
3640 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3641 * gdbarch.h, gdbarch.c: Regenerate.
3642 * mn10300-tdep.c: Include "gdb_assert.h".
3643 (mn10300_read_fp): New function.
3644 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3645 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3646 * ia64-tdep.c: Include "gdb_assert.h".
3647 (ia64_read_fp): New function.
3648 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3649 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3650 * regcache.c (generic_target_read_sp): Delete function.
3651 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3652 * inferior.h (generic_target_read_sp): Delete declaration.
3653 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3654 generic_target_read_sp.
3655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3656 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3657 * sh-tdep.c (sh_gdbarch_init): Ditto.
3658 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3659 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3661 2003-06-07 Andrew Cagney <cagney@redhat.com>
3663 * gdbarch.sh: Comment each field of startup_gdbarch.
3664 * gdbarch.h, gdbarch.c: Re-generate.
3666 2003-06-07 Andrew Cagney <cagney@redhat.com>
3668 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3669 * gdbarch.h, gdbarch.c: Re-generate.
3670 * regcache.c: Update comments on read_pc et.al.
3671 (generic_target_read_pc): Delete function.
3672 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3673 * inferior.h (generic_target_read_pc): Delete declaration.
3674 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3675 generic_target_read_pc.
3676 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3677 * sh-tdep.c (sh_gdbarch_init): Ditto.
3678 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3681 2003-06-07 Andrew Cagney <cagney@redhat.com>
3683 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3684 "index" with "special_local_sect". Use strcmp instead of STREQ.
3685 Append period to coments.
3687 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3689 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3690 (elfstab_offset_sections): Likewise.
3691 * gdb-stabs.h (stab_section_info): Likewise.
3692 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3693 * objfiles.c (objfile_relocate): Likewise.
3694 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3695 * remote.c (get_offsets): Likewise.
3696 (remote_cisco_objfile_relocate): Likewise.
3697 * somread.c (som_symfile_offsets): Likewise.
3698 * symfile.c (alloc_section_addr_info): New function.
3699 (build_section_addr_info_from_section_tab): Use it.
3700 (free_section_addr_info): Adjust.
3701 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3702 (syms_from_objfile): Allocate local_addr dynamically.
3703 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3705 (add_symbol_file_command): Allocate sect_opts dynamically.
3706 (reread_symbols): Avoid use of SECT_OFF_MAX.
3707 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3708 (alloc_section_addr_info): Declare it.
3709 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3710 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3712 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3714 2003-06-06 Andrew Cagney <cagney@redhat.com>
3716 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3717 (d10v_frame_unwind_cache): Do not set "return_pc".
3719 2003-06-06 Michael Snyder <msnyder@redhat.com>
3721 * h8300-tdep.c: Make tidy (long lines).
3723 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3725 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3726 to regcache_collect().
3728 2003-06-05 J. Brobecker <brobecker@gnat.com>
3730 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3731 pc_in_sigtramp multiarch method.
3732 (hppa_hpux_som_init_abi): Use it.
3733 (hppa_hpux_elf_init_abi): Likewise.
3734 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3735 macro has been multiarched.
3736 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3737 macro here, as hppa64 isn't multiarched yet.
3739 2003-06-05 Andrew Cagney <cagney@redhat.com>
3741 * Makefile.in (value_h): Add $(frame_h).
3742 * value.h: Include "frame.h".
3743 (struct value): Replace "frame_addr" with "frame_id".
3744 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3745 * values.c (allocate_value): Use VALUE_FRAME_ID.
3746 (value_copy): Use VALUE_FRAME_ID.
3747 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3748 * valops.c (value_assign): Update. Use frame_find_by_id.
3750 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3752 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3755 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3757 * thread-db.c (check_event): For create/death event breakpoints,
3758 loop through all messages to ensure that we read the message
3759 corresponding to the breakpoint we are at.
3761 2003-06-04 Michael Snyder <msnyder@redhat.com>
3763 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3765 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3767 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3768 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3769 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3770 when handling .eh_frame sections.
3772 2003-06-04 J. Brobecker <brobecker@gnat.com>
3774 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3775 prepare_to_proceed procedure instead of the hppa-specific one.
3776 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3778 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3780 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3781 * config.in: Regenerated.
3782 * configure.in: Add test for syscall function and check for
3783 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3784 * configure: Regenerated.
3785 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3787 (kill_lwp): New function that uses tkill syscall or
3788 uses kill, depending on whether threading model is nptl or not.
3789 All callers of kill() changed to use kill_lwp().
3790 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3791 see if all threads have already exited in the nptl model.
3792 (stop_and_resume_callback): New callback function used by the
3793 lin_lwp_wait thread exit handling code.
3794 (stop_wait_callback): Check for threads already having exited and
3795 delete such threads fromt the lwp list when discovered.
3796 (stop_callback): Don't assert retcode of kill call.
3798 Roland McGrath <roland@redhat.com>
3799 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3802 2003-06-03 Richard Henderson <rth@redhat.com>
3804 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3805 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3806 (alpha_sigtramp_frame_prev_register): Likewise.
3807 (alpha_heuristic_frame_prev_register): Likewise.
3808 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3810 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3811 alpha-specific register id names.
3812 (alpha_mdebug_frame_unwind_cache): Likewise.
3813 (alpha_mdebug_frame_prev_register): Likewise.
3815 2003-06-03 Richard Henderson <rth@redhat.com>
3817 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3818 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3819 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3820 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3822 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3823 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3824 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3826 * alpha-linux-tdep.c: Remove unnecessary includes.
3827 * Makefile.in (alpha-linux-tdep.o): Update.
3829 2003-06-03 Richard Henderson <rth@redhat.com>
3831 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3832 (alphabsd_fill_fpreg): Likewise.
3834 2003-06-03 J. Brobecker <brobecker@gnat.com>
3836 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3837 references to struct frame_info fields by calls to the equivalent
3838 accessors. Necessary now that frame_info is opaque.
3840 2003-06-03 J. Brobecker <brobecker@gnat.com>
3842 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3843 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3844 structure, field no longer exists.
3846 2003-06-03 J. Brobecker <brobecker@gnat.com>
3848 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3849 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3851 2003-06-03 J. Brobecker <brobecker@gnat.com>
3853 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3854 references to struct frame_info fields by calls to the equivalent
3855 accessors. Necessary now that frame_info is opaque.
3857 2003-06-03 J. Brobecker <brobecker@gnat.com>
3859 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3860 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3861 structure, field no longer exists.
3863 2003-06-03 Theodore A. Roth <troth@openavr.org>
3865 * remote.c (init_remote_state): Compute sizeof_g_packet by
3866 accumulation of the size of all registers instead of blindly using
3867 DEPRECATED_REGISTER_BYTES.
3869 2003-06-03 Michael Snyder <msnyder@redhat.com>
3871 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3872 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3875 2003-06-03 J. Brobecker <brobecker@gnat.com>
3877 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3878 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3880 2003-06-03 Andrew Cagney <cagney@redhat.com>
3882 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3883 (sparc_convert_to_raw): Delete function.
3884 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3885 register_convert_to_virtual.
3887 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3889 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3890 layer if not dealing with a statically-linked threaded program.
3892 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3894 * solib.c (solib_open): Update comment to reflect actual search order.
3896 2003-06-03 Andrew Cagney <cagney@redhat.com>
3898 * frame.c (get_frame_memory_signed): New function.
3899 (get_frame_memory, get_frame_memory_unsigned): New function.
3900 (get_frame_arch): New function.
3901 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3902 (get_frame_memory, get_frame_unsigned_memory): Declare.
3903 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3904 get_frame_memory_unsigned and get_frame_arch.
3905 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3907 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3909 * MAINTAINERS (write after approval): Add myself.
3911 2003-06-03 Jim Blandy <jimb@redhat.com>
3913 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3914 elements of gregset_t are 64 bits each, but access registers
3915 are still 32 bits, so they're packed two per gregset_t
3916 element. Unpack/pack them properly.
3918 2003-06-02 David Carlton <carlton@bactrian.org>
3920 * linespec.c (find_methods): Break out code into
3921 add_matching_methods and add_constructors.
3922 (add_matching_methods): New.
3923 (add_constructors): Ditto.
3925 2003-06-02 Andrew Cagney <cagney@redhat.com>
3927 * sparc-tdep.c (sparc_print_registers): Delete call to
3928 REGISTER_CONVERTIBLE.
3929 (sparc_gdbarch_init): Do not set register_convertible.
3930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3931 * frv-tdep.c (frv_gdbarch_init): Ditto.
3932 * cris-tdep.c (cris_gdbarch_init): Ditto.
3934 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3936 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3937 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3938 (syms_from_objfile): Ditto.
3940 2003-06-03 Andreas Schwab <schwab@suse.de>
3942 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3943 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3945 2003-06-02 Richard Henderson <rth@redhat.com>
3947 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3948 a member of all_reggroup.
3950 2003-06-02 Richard Henderson <rth@redhat.com>
3952 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3953 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3954 (alpha_lds, alpha_sts): New.
3955 (alpha_convert_register_p): Change from _register_convertible.
3956 (alpha_register_to_value): Change from _convert_to_virtual;
3957 restructure and fail for type sizes other than 4 or 8.
3958 (alpha_value_to_register): Similarly.
3959 (alpha_extract_return_value): Use alpha_sts.
3960 (alpha_store_return_value): Use alpha_lds.
3961 (alpha_gdbarch_init): Update hooks.
3963 2003-06-02 Richard Henderson <rth@redhat.com>
3965 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3967 (alpha_sigtramp_register_address): Likewise.
3969 2003-06-02 Richard Henderson <rth@redhat.com>
3971 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3972 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3973 * alpha-tdep.h: Declare them.
3975 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3976 Remove zerobuf. Don't error on UNIQUE.
3977 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3978 (ALPHA_REGSET_UNIQUE): Provide default.
3979 (supply_gregset): Use alpha_supply_int_regs.
3980 (fill_gregset): Use alpha_fill_int_regs.
3981 (supply_fpregset): Use alpha_supply_fp_regs.
3982 (fill_fpregset): Use alpha_fill_fp_regs.
3983 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3984 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3985 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3986 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3987 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3988 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3990 2003-06-02 Richard Henderson <rth@redhat.com>
3992 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3994 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3995 (alpha_store_return_value): Likewise.
3997 2003-06-02 David Carlton <carlton@math.stanford.edu>
3999 * block.c (contained_in): Add 'const' to arguments.
4000 (block_function): Ditto.
4001 * block.h: Update declarations for block_function and
4004 2003-06-02 David Carlton <carlton@math.stanford.edu>
4006 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4007 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4008 * p-valprint.c (pascal_val_print): Ditto.
4009 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4011 2003-06-02 Richard Henderson <rth@redhat.com>
4013 * alpha-tdep.c (alpha_push_dummy_call): Use
4014 builtin_type_ieee_double_little instead of builtin_type_double.
4016 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4017 sign-extension of 32-bit values.
4018 (alpha_store_return_value): Similarly.
4020 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4021 (alpha_extract_return_value): Likewise.
4022 (alpha_store_return_value): Likewise.
4024 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4025 (alpha_store_return_value): Error on IEEE Quad floats.
4027 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4028 (alpha_extract_struct_value_address): Likewise.
4029 (alpha_store_return_value): Likewise.
4030 (alpha_store_struct_return): Remove.
4031 (alpha_gdbarch_init): Update hook registration to match.
4033 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4034 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4035 macros where appropriate.
4036 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4037 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4039 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4040 for SP, GP; void_func_ptr for PC; non-language-specific types
4042 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4044 2003-06-02 Richard Henderson <rth@redhat.com>
4046 * top.h (lim_at_start): Declare.
4047 * main.c (captured_main): Set it.
4048 * top.c (lim_at_start): Define.
4049 (command_loop): Use it instead of &environ.
4050 * event-top.c (command_handler): Likewise.
4052 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4054 * mipsnbsd-tdep.c: Update copyright years.
4055 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4057 2003-06-01 Richard Henderson <rth@redhat.com>
4059 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4060 (alpha-linux-tdep.o): Update dependencies.
4061 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4062 * alpha-mdebug-tdep.c: Remove unneeded includes.
4064 2003-06-01 Richard Henderson <rth@redhat.com>
4066 * alpha-tdep.c (alpha_register_reggroup_p): New.
4067 (alpha_gdbarch_init): Register it.
4069 2003-06-02 Andrew Cagney <cagney@redhat.com>
4071 * dwarfread.c: Eliminate "register"
4072 (decode_die_type): Eliminate assignment within "if".
4073 (struct_type, decode_array_element_type): Ditto.
4074 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4075 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4076 (decode_modified_type, completedieinfo): Ditto.
4077 * block.c: Eliminate "register".
4078 (blockvector_for_pc_sect): Eliminate assignment within "if".
4079 * cp-support.h (struct symbol): Opaque declaration.
4080 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4082 2003-06-01 Richard Henderson <rth@redhat.com>
4084 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4085 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4087 2003-06-01 Adam Fedor <fedor@gnu.org>
4089 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4090 * gdbarch.[ch]: Regenerate.
4091 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4092 (hppa_gdbarch_init): Set it in the gdbarch vector.
4093 * i386-tdep.c (i386_fetch_pointer_argument): New
4094 (i386_gdbarch_init): Set it into gdbarch.
4095 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4096 (rs6000_gdbarch_init): Set it in gdbarch.
4097 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4098 (sparc_gdbarch_init): Set it in gdbarch.
4100 2003-06-01 Andrew Cagney <cagney@redhat.com>
4102 * defs.h (extract_address): Delete declaration.
4103 * findvar.c (extract_address): Delete function.
4104 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4105 extract_address with the inline equivalent,
4106 extract_unsigned_integer.
4107 (xstormy16_extract_struct_value_address): Ditto.
4108 (xstormy16_pointer_to_address): Ditto.
4109 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4110 * v850-tdep.c (v850_push_arguments): Ditto.
4111 (v850_extract_return_value): Ditto.
4112 (v850_extract_struct_value_address): Ditto.
4113 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4114 (sparcnbsd_get_longjmp_target_64): Ditto.
4115 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4116 (get_longjmp_target): Ditto.
4117 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4118 (sh64_extract_struct_value_address): Ditto.
4119 (sh_push_arguments): Ditto.
4120 (sh64_push_arguments): Ditto.
4121 * remote-vxsparc.c (vx_read_register): Ditto.
4122 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4123 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4124 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4125 * mipsv4-nat.c (get_longjmp_target): Ditto.
4126 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4127 * mips-nat.c (get_longjmp_target): Ditto.
4128 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4129 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4130 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4131 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4132 * irix5-nat.c (get_longjmp_target): Ditto.
4133 * irix4-nat.c (get_longjmp_target): Ditto.
4134 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4135 (ia64_push_arguments): Ditto.
4136 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4137 * h8300-tdep.c (h8300_push_arguments): Ditto.
4138 (h8300_store_return_value): Ditto.
4139 (h8300_extract_struct_value_address): Ditto.
4140 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4141 (frv_push_arguments): Ditto.
4142 * avr-tdep.c (avr_pointer_to_address): Ditto.
4143 (avr_push_arguments): Ditto.
4144 * arm-tdep.c (arm_push_dummy_call): Ditto.
4145 (arm_get_longjmp_target): Ditto.
4146 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4147 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4148 (alpha_get_longjmp_target): Ditto.
4150 * solib-irix.c (extract_mips_address): Inline extract_address,
4151 replacing it with extract_signed_integer.
4152 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4153 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4154 (first_link_map_member, open_symbol_file_object): Ditto.
4155 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4156 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4157 (LM_NEXT, LM_NAME): Ditto.
4159 2003-06-01 Richard Henderson <rth@redhat.com>
4161 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4162 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4163 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4164 (alpha_cannot_store_register): Likewise.
4165 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4166 * alpha-nat.c (supply_gregset): Likewise.
4167 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4169 2003-06-01 Andrew Cagney <cagney@redhat.com>
4171 * infcall.c (call_function_by_hand): Update comment on
4172 DEPRECATED_DUMMY_WRITE_SP.
4174 * mips-tdep.c (mips_gdbarch_init): Do not set
4175 deprecated_dummy_write_sp.
4176 (mips_eabi_push_dummy_call): Set the SP register.
4177 (mips_o64_push_dummy_call): Set the SP register.
4178 (mips_o32_push_dummy_call): Set the SP register.
4179 (mips_n32n64_push_dummy_call): Set the SP register.
4181 2003-06-01 Richard Henderson <rth@redhat.com>
4183 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4184 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4185 (supply_gregset): Likewise.
4186 * alpha-tdep.c (alpha_store_return_value): Likewise.
4187 (alpha_get_longjmp_target): Likewise.
4188 (alpha_register_name): Constify array.
4189 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4190 deprecated_register_size, deprecated_register_bytes,
4191 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4192 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4193 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4195 2003-06-01 Richard Henderson <rth@redhat.com>
4197 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4198 from arg_reg_buffer to regcache to avoid double conversion.
4200 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4202 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4204 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4205 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4207 2003-06-01 Richard Henderson <rth@redhat.com>
4209 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4210 (decode_frame_entry): Set it. Skip FDE augmentation.
4212 2003-06-01 Richard Henderson <rth@redhat.com>
4214 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4215 not overlapping PC_REGNUM.
4217 2003-06-01 Richard Henderson <rth@redhat.com>
4219 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4220 alpha_push_arguments. Don't dump argument register data to
4221 the target stack. Fix float and 128-bit long double semantics.
4222 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4223 (alpha_fix_call_dummy): Remove.
4224 (alpha_call_dummy_words): Remove.
4225 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4227 2003-06-01 Richard Henderson <rth@redhat.com>
4229 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4231 2003-06-01 Andrew Cagney <cagney@redhat.com>
4233 * mips-tdep.c (is_mips16_addr): New function.
4234 (make_mips16_addr, unmake_mips16_addr): New functions.
4235 (pc_is_mips16, mips_fetch_instruction): Use.
4236 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4237 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4238 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4239 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4241 * config/mips/tm-mips.h: Update copyright.
4242 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4243 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4244 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4245 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4246 (TM_PRINT_INSN_MACH): Delete.
4247 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4249 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4250 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4251 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4252 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4253 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4254 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4255 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4256 mips*-*-riscos* and mips*-*-sysv* onto mips.
4257 * config/mips/mips64.mt: New file.
4258 * config/mips/mips.mt: New file.
4259 * config/mips/littlemips.mt: Delete file.
4260 * config/mips/decstation.mt: Delete file.
4261 * config/mips/vr4300el.mt: Delete file.
4262 * config/mips/vr5000el.mt: Delete file.
4263 * config/mips/vr5000.mt: Delete file.
4264 * config/mips/vr4100.mt: Delete file.
4265 * config/mips/vr4xxxel.mt: Delete file.
4266 * config/mips/vr4300.mt: Delete file.
4267 * config/mips/vr4xxx.mt: Delete file.
4268 * config/mips/bigmips.mt: Delete file.
4269 * config/mips/bigmips64.mt: Delete file.
4270 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4271 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4272 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4273 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4274 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4276 * config/mips/tm-irix3.h: Ditto.
4277 * config/mips/tm-mipsv4.h: Ditto.
4278 * config/mips/tm-embed.h: Ditto.
4279 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4281 * config/mips/tm-vr5000el.h: Delete file.
4282 * config/mips/tm-tx39l.h: Delete file.
4283 * config/mips/tm-vr4300el.h: Delete file.
4284 * config/mips/tm-vr4xxxel.h: Delete file.
4285 * config/mips/tm-vr4300.h: Delete file.
4286 * config/mips/tm-vr4100.h: Delete file.
4287 * config/mips/tm-vr4xxx.h: Delete file.
4288 * config/mips/tm-vr5000.h: Delete file.
4289 * config/mips/tm-embedl64.h: Delete file.
4290 * config/mips/tm-embedl.h: Delete file.
4291 * config/mips/tm-embed64.h: Delete file.
4292 * config/mips/tm-bigmips64.h: Delete file.
4293 * config/mips/tm-bigmips.h: Delete file.
4295 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4298 * shnbsd-nat.c: Include "sh-tdep.h".
4300 From Richard Henderson <rth@redhat.com>:
4301 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4303 2003-05-31 Andrew Cagney <cagney@redhat.com>
4305 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4306 forward declaration.
4307 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4308 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4309 (mips_find_saved_regs): Use set_reg_offset.
4310 (mips_frame_init_saved_regs): Delete function.
4311 (mips_pop_frame): Call mips_find_saved_regs instead of
4312 DEPRECATED_FRAME_INIT_SAVED_REGS.
4314 2003-05-31 Andrew Cagney <cagney@redhat.com>
4316 * mips-tdep.c (mips_gdbarch_init): Do not set
4317 deprecated_max_register_raw_size, register_virtual_size, and
4318 deprecated_max_register_virtual_size.
4320 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4322 * i386-tdep.c: Include "dwarf2-frame.h".
4323 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4324 * Makefile.in (i386-tdep.o): Update dependencies.
4326 * dwarf2-frame.c, dwarf2-frame.h: New files.
4327 * Makefile.in (SFILES): Add dwarf2-frame.c.
4328 (dwarf2_frame_h): Define.
4329 (COMMON_OBS): Add dwarf2-frame.o.
4330 (dwarf2-frame.o): Add dependencies.
4332 2003-05-31 Andreas Jaeger <aj@suse.de>
4334 * x86-64-linux-nat.c: Fix comment.
4336 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4338 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4341 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4342 have a sigcontext_addr handler.
4343 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4344 sigcontext_addr handler.
4346 2003-05-31 Andrew Cagney <cagney@redhat.com>
4348 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4349 (print_fp_register_row): Replace do_fp_register_row.
4350 (mips_print_fp_register): Add "file" and "frame" parameters.
4351 (mips_print_register): Add "file" and "frame" parameters.
4352 (mips_print_registers_info): Replace mips_do_registers_info.
4353 (mips_gdbarch_init): Set print_registers_info instead of
4354 deprecated_do_registers_info.
4355 (mips_read_fp_register_single): Add "frame" parameter.
4356 (mips_read_fp_register_double): Add "frame" parameter.
4358 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4360 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4361 Fixes a bug where GDB would print the wrong register names for
4362 targets without SSE.
4364 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4365 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4368 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4369 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4370 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4373 From Michal Ludvig <mludvig@suse.cz>:
4374 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4376 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4377 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4378 I386_ST0_REGNUM): Move here from...
4379 * i386-tdep.c: ... here.
4380 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4381 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4382 registers if possible.
4383 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4384 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4386 (i386bsd_sc_reg_offset): New variable.
4387 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4388 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4390 (i386fbsd_sc_reg_offset): New variable.
4391 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4393 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4395 (i386fbsd4_sc_reg_offset): New variable.
4396 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4397 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4399 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4400 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4401 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4403 (i386nbsd_sc_reg_offset): New variable.
4404 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4405 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4407 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4409 (i386obsd_sc_reg_offset): New variable.
4410 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4411 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4413 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4414 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4415 for frame pointer offset in `struct sigcontext'.
4417 2003-05-31 Andrew Cagney <cagney@redhat.com>
4419 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4420 architecture methods call_dummy_words, sizeof_call_dummy_words,
4421 push_return_address, store_struct_return, and fix_call_dummy. Set
4422 push_dummy_call instead of deprecated_push_arguments.
4423 (mips_store_struct_return): Delete function.
4424 (mips_fix_call_dummy): Delete function.
4425 (mips_push_return_address): Delete function.
4426 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4427 RA_REGNUM and T9_REGNUM.
4428 (mips_n32n64_push_dummy_call): Ditto for
4429 mips_n32n64_push_arguments.
4430 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4431 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4433 2003-05-31 Andrew Cagney <cagney@redhat.com>
4435 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4436 "dummy_addr" to "bp_addr".
4437 * infcall.c (call_function_by_hand): Pass "funaddr" to
4438 gdbarch_push_dummy_call.
4439 * gdbarch.h, gdbarch.c: Re-generate.
4440 * i386-tdep.c (i386_push_dummy_call): Update.
4441 * arm-tdep.c (arm_push_dummy_call): Update.
4442 * d10v-tdep.c (d10v_push_dummy_call): Update.
4444 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4446 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4447 variable declarations.
4448 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4449 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4450 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4451 x86_64_init_frame_pc, x86_64_init_frame_pc,
4452 x86_64_function_has_prologue): Remove prototypes.
4453 (X86_64_NUM_GREGS): New define.
4454 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4455 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4456 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4457 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4458 XMM1_REGNUM): Remove defines.
4459 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4460 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4461 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4462 X86_64_XMM1_REGNUM): New defines.
4463 (struct x86_64_register_info): Renamed from `struct
4464 register_info'. Remove `size' member.
4465 (x86_64_register_info_table): Remove variable.
4466 (x86_64_register_info): New variable.
4467 (X86_64_NUM_REGS): New define.
4468 (X86_64_NUM_GREGS): Remove define.
4469 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4470 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4472 (x86_54_dwarf2_reg_to_regnum): Remove function.
4473 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4474 (x86_64_dwarf_reg_to_regnum): New function.
4475 (x86_64_register_name): Rewrite.
4476 (x86_64_register_raw_size): Remove function.
4477 (x86_64_register_byte_table): Remove variable.
4478 (x86_64_register_byte): Remove function.
4479 (x86_64_register_virtual_type): Remove function.
4480 (x86_64_register_type): New function.
4481 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4482 x86_64_register_convert_to_raw): Remove functions.
4483 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4484 (x86_64_use_struct_convention): Make static. Adjust for renamed
4486 (x86_64_frame_init_saved_regs): Remove function.
4487 (x86_64_push_arguments): Make static. Change to accept a regcache
4489 (x86_64_store_return_value, x86_64_extract_return_value): Make
4490 static. Rewrite based on i386 counterparts.
4491 (x86_64_push_dummy_call): New function.
4492 (X86_64_NUM_SAVED_REGS): New define.
4493 (x86_64_register_number): Remove function.
4494 (x86_64_store_struct_return): Remove function.
4495 (x86_64_frameless_function_invocation,
4496 x86_64_function_has_prologue): Remove functions.
4497 (PROLOG_BUFSIZE): Remove define.
4498 (struct x86_64_frame_cache): New structure.
4499 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4500 x86_64_frame_cache, x86_64_frame_this_id,
4501 x86_64_frame_prev_register, x86_64_frame_p,
4502 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4503 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4505 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4507 (x86_64_skip_prologue): Rewrite in terms of
4508 x86_64_analyze_prologue.
4509 (x86_64_frame_base_address): New function.
4510 (x86_64_frame_base): New variable.
4511 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4512 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4513 set deprecated_fp_regnum, deprecated_register_size,
4514 deprecated_register_bytes, register_raw_size, register_byte,
4515 register_virtual_type, register_convertiable,
4516 register_convert_to_virtual, convert_to_raw,
4517 deprecated_get_saved_register, deprecated_target_read_fp,
4518 deprecated_push_arguments, deprecated_push_return_address,
4519 deprecated_pop_frame, deprecated_store_struct_return,
4520 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4521 frameless_function_invocation, deprecated_frame_saved_pc,
4522 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4523 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4524 deprecated_init_frame_pc and virtual_frame_pointer. Call
4525 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4526 and x86_64_frame_p. Call frame_base_set_default to register
4528 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4529 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4530 (_initialize_x86_64_tdep): Remove function.
4531 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4532 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4533 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4535 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4536 (x86_64_linux_sigcontext_addr): Rewrite.
4537 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4538 x86_64_linux_frame_saved_pc): Remove functions.
4539 (x86_64_linux_pc_in_sigtramp): Renamed from
4540 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4542 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4544 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4545 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4546 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4547 (x86_64_regmap): Rename to regmap.
4548 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4550 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4552 (x86_64_fxsave_offset): Remove function.
4553 (supply_fpregset): Simply call x86_64_supply_fxsave.
4554 (fill_fpregset): Simply call x86_64_fill_fxsave.
4555 (fetch_inferior_registers, store_inferior_registers): Avoid
4556 asignment in if-statement.
4557 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4558 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4559 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4560 (fetch_core_registers): Remove function.
4561 (linux_elf_core_fns): Remove.
4562 (offsetoff): Don't define.
4563 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4564 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4565 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4567 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4568 protection against multiple includes instead of NM_X86_64_h. Add
4569 various comments. Include "config/nm-linux.h". Don't include
4571 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4572 GET_THREAD_SIGNALS): Remove defines.
4573 (x86_64_register_u_addr, kernel_u_size,
4574 lin_thread_get_thread_signals): Remove prototypes.
4575 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4576 [HAVE_LINK_H]: Don't include "solib.h".
4577 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4578 * config/i386/tm-x86-64linux.h: Fix comments.
4579 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4580 x86-64-tdep.o): Update dependencies.
4582 2003-05-30 Andrew Cagney <cagney@redhat.com>
4584 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4585 Change parameter type to a "struct regcache *".
4587 * gdbarch.sh: Regardless of the multi-arch level, always define
4588 the macro when not already defined.
4589 * gdbarch.h, gdbarch.c: Re-generate.
4591 2003-05-30 Richard Henderson <rth@redhat.com>
4593 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4594 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4595 (alpha_mdebug_frame_this_id): Likewise.
4596 (alpha_mdebug_frame_prev_register): Likewise.
4597 (alpha_mdebug_frame_base_address): Likewise.
4598 (alpha_mdebug_frame_locals_address): Likewise.
4599 (alpha_mdebug_frame_args_address): Likewise.
4600 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4601 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4602 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4604 (alpha_heuristic_frame_this_id): Make static.
4605 (alpha_heuristic_frame_prev_register): Likewise.
4606 (alpha_heuristic_frame_base_address): Likewise.
4607 * alpha-tdep.h: Update.
4609 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4611 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4612 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4614 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4615 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4616 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4617 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4618 I386_ST0_REGNUM): New defines.
4619 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4620 codestream_get): Remove define.
4621 (codestream_next_addr, condestream_addr, condestream_buf,
4622 codestream_off, codestream_cnt): Remove variables.
4623 (codestream_fill, codestream_seek, codestream_read): Remove
4625 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4627 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4628 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4629 i386_frame_saved_pc, i386_saved_pc_after_call,
4630 i386_frame_num_args, i386_frame_init_saved_regs,
4631 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4632 i386_push_arguments): Remove functions.
4633 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4634 functionality. Use i386_analyze_prologue instead of
4635 i386_get_frame_setup.
4636 (I386_NUM_SAVED_REGS): New define.
4637 (struct i386_frame_cache): New structure.
4638 (i386_alloc_frame_cache, i386_analyze_struct_return,
4639 i386_skip_probe, i386_analyze_frame_setup,
4640 i386_analyze_register_saves, i386_analyze_prologue,
4641 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4642 i386_frame_prev_register, i386_sigtramp_frame_cache,
4643 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4644 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4645 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4647 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4649 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4650 I386_EAX_REGNUM and I386_EDX_REGNUM.
4651 (i386_extract_return_value, i386_store_return_value): Use
4652 I386_ST0_REGNUM where appropriate.
4653 (i386_extract_struct_value_address): Rewrite to use extract_address.
4654 (i386_svr4_pc_in_sigtramp): Add comment.
4655 (i386_svr4_sigcontext_addr): Rewrite.
4656 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4658 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4659 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4660 of new defines. Set push_dummy_call, don't set
4661 deprecated_push_arguments, deprecated_push_return_address,
4662 deprecated_pop_frame. Don't set parm_boundary. Don't set
4663 deprecated_frame_chain, deprecated_frame_saved_pc,
4664 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4665 save_dummy_frame_tos, unwind_pc. Call
4666 frame_unwind_append_predicate and frame_base_set_default. Don't
4667 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4668 Don't set frameless_function_invocation. Don't set
4669 deprecated_register_bytes, deprecated_register_size,
4670 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4671 * i386-linux-tdep.c: Fix formatting in some comments.
4672 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4673 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4674 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4675 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4676 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4677 redundant parentheses.
4678 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4679 (i386_linux_sigcontext_addr): Use it. Rewrite.
4680 (find_minsym_and_objfile): Change name of second argument.
4681 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4682 changed. Use frame_pc_unwind instead of
4683 DEPRECATED_SAVED_PC_AFTER_CALL.
4684 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4685 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4686 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4688 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4690 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4691 (_initialize_i386_cygwin_tdep): New prototype.
4692 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4693 deprecated_frame_chain_valid.
4694 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4695 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4696 Rely on the SVR4 defaults.
4697 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4698 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4700 2003-05-30 Andrew Cagney <cagney@redhat.com>
4702 * infcall.c (call_function_by_hand): Always call
4703 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4705 2003-05-30 Richard Henderson <rth@redhat.com>
4707 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4710 2003-05-29 Jim Blandy <jimb@redhat.com>
4712 Use gdbarch methods for solib stuff on PowerPC Linux.
4713 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4714 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4716 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4717 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4718 giving the same effect as the #definitions above.
4720 2003-05-29 Adam Fedor <fedor@gnu.org>
4722 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4723 (find_implementation_from_class): Replace it with the standard
4724 case i.e. do nothing.
4726 2003-05-29 Richard Henderson <rth@redhat.com>
4728 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4729 (alpha_linux_sigtramp_offset): Use it. Make static.
4730 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4731 update for new frame model.
4732 * alpha-mdebug-tdep.c: New file.
4733 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4734 (alpha_osf1_init_abi): Install it.
4735 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4736 (linked_proc_desc_table): Remove.
4737 (alpha_frame_past_sigtramp_frame): Remove.
4738 (alpha_dynamic_sigtramp_offset): Remove.
4739 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4740 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4741 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4742 (push_sigtramp_desc): Remove.
4743 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4744 (alpha_cannot_store_register): Likewise.
4745 (alpha_sigcontext_addr): Remove.
4746 (alpha_find_saved_regs): Remove.
4747 (alpha_frame_init_saved_regs): Remove.
4748 (alpha_init_frame_pc_first): Remove.
4749 (read_next_frame_reg): Remove.
4750 (alpha_frame_saved_pc): Remove.
4751 (alpha_saved_pc_after_call): Remove.
4752 (temp_proc_desc, temp_saved_regs): Remove.
4753 (alpha_about_to_return): Remove.
4754 (cached_proc_desc): Remove.
4755 (alpha_frame_chain): Remove.
4756 (alpha_print_extra_frame_info): Remove.
4757 (alpha_init_extra_frame_info): Remove.
4758 (alpha_frame_locals_address): Remove.
4759 (alpha_frame_args_address): Remove.
4760 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4761 (alpha_push_dummy_frame): Remove.
4762 (alpha_pop_frame): Remove.
4763 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4764 (alpha_read_insn): New.
4765 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4766 for different insn encodings.
4767 (alpha_in_lenient_prologue): Remove.
4768 (struct alpha_sigtramp_unwind_cache): New.
4769 (alpha_sigtramp_frame_unwind_cache): New.
4770 (alpha_sigtramp_register_address): New.
4771 (alpha_sigtramp_frame_this_id): New.
4772 (alpha_sigtramp_frame_prev_register): New.
4773 (alpha_sigtramp_frame_unwind): New.
4774 (alpha_sigtramp_frame_p): New.
4775 (struct alpha_heuristic_unwind_cache): New.
4776 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4777 don't count nop insns that occur between functions.
4778 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4779 heuristic_proc_desc, but without the mdebug wrapping.
4780 (alpha_heuristic_frame_this_id): New.
4781 (alpha_heuristic_frame_prev_register): New.
4782 (alpha_heuristic_frame_unwind): New.
4783 (alpha_heuristic_frame_p): New.
4784 (alpha_heuristic_frame_base_address): New.
4785 (alpha_heuristic_frame_base): New.
4786 (alpha_unwind_dummy_id): New.
4787 (alpha_unwind_pc): New.
4788 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4789 frame related deprecated initializations; install replacements.
4790 (alpha_dump_tdep): Remove.
4791 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4792 (alpha_read_insn, alpha_after_prologue,
4793 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4794 alpha_heuristic_frame_prev_register,
4795 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4796 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4797 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4798 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4800 2003-05-29 Andrew Cagney <cagney@redhat.com>
4802 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4803 dependant on the availability of ASSERT_FUNCTION.
4804 (ASSERT_FUNCTION): Do not define when there is no function name.
4806 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4808 From Jimi X <jimix@watson.ibm.com>:
4809 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4811 2003-05-28 Jim Blandy <jimb@redhat.com>
4813 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4814 argument to ptrace to int; the system headers should give it the
4815 right type, and pointers don't fit in ints on powerpc64-*-*.
4817 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4819 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4822 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4824 * stabsread.c (dbx_lookup_type): Make static.
4826 (add_undefined_type): Ditto.
4827 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4830 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4832 * hpread.c (hpread_has_name): Make static.
4833 (hpread_psymtab_to_symtab): Ditto.
4834 (file_exists): Ditto.
4835 (hpread_call_pxdb): Ditto.
4836 (hpread_pxdb_needed): Ditto.
4837 (hpread_quick_traverse): Ditto.
4838 (hpread_get_header): Ditto.
4839 (hpread_get_lntt): Ditto.
4840 (hpread_get_slt): Ditto.
4843 2003-05-25 Andreas Schwab <schwab@suse.de>
4845 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4846 stack_align and deprecated_extra_stack_alignment_needed.
4847 (m68k_stack_align): Delete.
4849 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4850 (m68k_register_virtual_size): Likewise.
4851 (altos_skip_prologue): Remove obsolete function.
4852 (isi_frame_num_args): Likewise.
4853 (news_frame_num_args): Likewise.
4854 (m68k_fix_call_dummy): Make static.
4855 (m68k_push_dummy_frame): Likewise.
4856 (m68k_pop_frame): Likewise.
4857 (m68k_skip_prologue): Likewise.
4858 (m68k_frame_init_saved_regs): Likewise.
4859 (m68k_saved_pc_after_call): Likewise.
4860 (m68k_get_longjmp_target): Make multi-arch.
4861 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4862 structure. Register m68k_get_longjmp_target if enabled.
4863 * m68k-tdep.h (struct gdbarch_tdep): Define.
4864 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4866 * Makefile.in (config.status): Also depend on configure.tgt
4868 (m68klinux-tdep.o): Update dependencies.
4869 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4870 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4871 (M68K_LINUX_JB_PC): Define.
4872 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4873 and take additional parameter.
4874 (m68k_linux_sigtramp_saved_pc): Update.
4875 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4876 m68k_linux_pc_in_sigtramp, in_plt_section,
4877 find_solib_trampoline_target.
4878 * config/m68k/tm-linux.h: Don't include any tm headers.
4879 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4880 (JB_ELEMENT_SIZE): Likewise.
4882 (GET_LONGJMP_TARGET): Likewise.
4883 (IN_SIGTRAMP): Likewise.
4884 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4886 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4888 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4889 (sparc32_push_arguments): Re-implement by calling
4890 sparc32_do_push_arguments.
4892 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4894 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4895 SPARC_O1_REGNUM): New defines.
4896 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4897 (sparc32_store_return_value): New function.
4898 (sparc_extract_struct_value_address): Rewrite to operate on a
4900 (sparc_gdbarch_init): Don't set
4901 deprecated_extract_struct_value_address. Set
4902 extract_struct_value_address instead. Don't set
4903 deprecated_extract_return_value and deprecated_store_return_value
4904 for 32-bit targets. Set extract_return_value and
4905 store_return_value instead.
4906 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4907 DEPRECTAED_EXTRACT_RETURN_VALUE,
4908 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4909 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4910 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4911 (sparc_store_return_value): Remove prototype.
4912 (sparc32_store_return_value): New prototype.
4913 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4916 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4918 * sparcnbsd-tdep.c: Include "gdb_string.h".
4920 2003-05-23 Andrew Cagney <cagney@redhat.com>
4922 * p-valprint.c (pascal_val_print): Replace extract_address with
4923 the inline equivalent extract_unsigned_integer.
4924 * jv-valprint.c (java_value_print): Ditto.
4925 * ada-valprint.c (ada_val_print_1): Ditto.
4926 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4928 2003-05-23 Theodore A. Roth <troth@openavr.org>
4930 * blockframe.c (frameless_look_for_prologue): Remove unused
4931 after_prologue variable.
4933 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4935 * blockframe.c (get_pc_function_start): Rewrite to avoid
4936 asignments in if-statements.
4938 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4940 Committed by Elena Zannoni <ezannoni@redhat.com>.
4941 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4942 files, don't relocate absolute symbols (and do use mst_abs).
4944 2003-05-23 Andrew Cagney <cagney@redhat.com>
4946 * objc-lang.c: Include "gdb_assert.h".
4947 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4948 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4949 (gdb_check, gdb_check_fatal): Delete functions.
4950 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4952 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4953 * Makefile.in (objc-lang.o): Update dependencies.
4955 2003-05-22 Ian Lance Taylor <ian@airs.com>
4957 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4958 with fprintf_filtered, not fprintf_unfiltered.
4960 2003-05-22 Andrew Cagney <cagney@redhat.com>
4962 * stack.c (frame_info): Inline extract_address, replacing it with
4963 extract_unsigned_integer.
4964 * findvar.c (unsigned_pointer_to_address): Ditto.
4965 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4966 * dwarf2expr.c (dwarf2_read_address): Ditto.
4967 * frame.c (frame_pc_unwind): Update comment.
4968 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4970 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4972 * infptrace.c (detach): Call print_sys_errmsg rather than
4973 perror_with_name to issue warning message when errno is non-zero
4974 after calling ptrace detach.
4976 2003-05-21 J. Brobecker <brobecker@gnat.com>
4978 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4979 macro definitions from here...
4980 * hppa-tdep.c: ...to there.
4982 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4984 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4985 register_ptrace_addr(). Fix all callers.
4987 2003-05-21 Andreas Schwab <schwab@suse.de>
4989 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4991 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4993 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4994 (_initialize_m68k_linux_tdep): New function.
4995 (m68k_linux_frame_saved_pc): Make static.
4996 (m68k_linux_extract_return_value): Likewise.
4997 (m68k_linux_store_return_value): Likewise.
4998 (m68k_linux_extract_struct_value_address): Likewise.
4999 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5001 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5002 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5003 (DEPRECATED_FRAME_SAVED_PC): Remove.
5005 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5007 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5008 regset numbering rather than our own.
5010 2003-05-19 David Carlton <carlton@bactrian.org>
5012 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5014 2003-05-19 David Carlton <carlton@bactrian.org>
5016 Partial fix for PR c++/827.
5017 * cp-support.h: Include symtab.h.
5018 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5019 * cp-namespace.c: Update contributors.
5020 (cp_lookup_symbol_nonlocal): New.
5021 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5022 (lookup_symbol_file): Ditto.
5023 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5024 * block.h: Declare block_scope, block_using, block_global_block.
5025 * block.c (block_scope): New.
5026 (block_using, block_global_block): Ditto.
5027 * Makefile.in (cp_support_h): Depend on symtab_h.
5028 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5030 2003-05-19 David Carlton <carlton@bactrian.org>
5032 * language.h (struct language_defn): Add 'la_value_of_this'
5033 and 'la_lookup_symbol_nonlocal' members.
5034 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5035 lookup_symbol_static, lookup_symbol_global,
5036 lookup_symbol_aux_block.
5037 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5038 if we should search fields of this and how to do static/global
5040 (lookup_symbol_aux_block): Make extern.
5041 (basic_lookup_symbol_nonlocal): New.
5042 (lookup_symbol_static, lookup_symbol_global): Ditto.
5043 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5044 'la_lookup_symbol_nonlocal' members.
5045 * c-lang.c (c_language_defn, cplus_language_defn)
5046 (asm_language_defn, minimal_language_defn): Ditto.
5047 * jv-lang.c (java_language_defn): Ditto.
5048 * language.c (unknown_language_defn, auto_language_defn)
5049 (local_language_defn): Ditto.
5050 * m2-lang.c (m2_language_defn): Ditto.
5051 * objc-lang.c (objc_language_defn): Ditto.
5052 * scm-lang.c (scm_language_defn): Ditto.
5053 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5054 * p-lang.c (pascal_language_defn): Ditto for both.
5055 * Makefile.in (f-lang.o): Depend on value_h.
5058 2003-05-19 David Carlton <carlton@bactrian.org>
5060 * block.h: Declare block_static_block.
5061 * block.c (block_static_block): New.
5062 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5063 lookup_symbol_aux_local, calling block_static_block instead.
5064 (lookup_symbol_aux_local): Delete 'static_block' argument.
5066 2003-05-19 David Carlton <carlton@bactrian.org>
5068 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5070 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5072 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5073 register numbers mapping.
5075 2003-05-18 Adam Fedor <fedor@gnu.org>
5077 * symtab.c (completion_list_objc_symbol): New function.
5078 (make_symbol_completion_list): Use it to add ObjC symbols
5079 when looking though the list.
5080 (language_search_unquoted_string): New function.
5081 (make_file_symbol_completion_list): Use it.
5083 2003-05-18 Andreas Schwab <schwab@suse.de>
5085 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5087 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5088 as m68k_linux_extract_return_value.
5089 (DEPRECATED_STORE_RETURN_VALUE): Define as
5090 m68k_linux_store_return_value.
5091 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5092 m68k_linux_extract_struct_value_address.
5093 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5094 get_next_frame, get_frame_base, get_frame_pc.
5095 (m68k_linux_frame_saved_pc): Use get_frame_base.
5096 (m68k_linux_extract_return_value): New function.
5097 (m68k_linux_store_return_value): New function.
5098 (m68k_linux_extract_struct_value_address): New function.
5099 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5101 * c-exp.y (typebase): Remove duplicate occurence of
5102 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5103 of lookup_signed_typename.
5105 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5107 * dwarf2loc.c (find_location_expression): Change type of second
5108 argument to `size_t *'.
5109 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5112 2003-05-18 David Carlton <carlton@bactrian.org>
5114 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5115 'linkage_name'. Add comment.
5116 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5118 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5119 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5120 (lookup_block_symbol): Ditto.
5122 2003-05-16 Andrew Cagney <cagney@redhat.com>
5124 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5125 * gdbarch.h, gdbarch.c: Re-generate.
5126 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5127 * TODO (REGISTER_BYTES): Delete reference.
5128 * alpha-tdep.c (alpha_gdbarch_init): Update.
5129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5130 * x86-64-tdep.c (x86_64_init_abi): Update.
5131 * vax-tdep.c (vax_gdbarch_init): Update.
5132 * v850-tdep.c (v850_gdbarch_init): Update.
5133 * sparc-tdep.c (sparc_gdbarch_init): Update.
5134 * sh-tdep.c (sh_gdbarch_init): Update.
5135 * s390-tdep.c (s390_gdbarch_init): Update.
5136 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5137 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5138 (ns32k_gdbarch_init_32382): Update.
5139 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5140 * mcore-tdep.c (mcore_gdbarch_init): Update.
5141 * m68k-tdep.c (m68k_gdbarch_init): Update.
5142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5143 * ia64-tdep.c (ia64_gdbarch_init): Update.
5144 * i386-tdep.c (i386_gdbarch_init): Update.
5145 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5146 * hppa-tdep.c (hppa_gdbarch_init): Update.
5147 * h8300-tdep.c (h8300_gdbarch_init): Update.
5148 * frv-tdep.c (frv_gdbarch_init): Update.
5149 * cris-tdep.c (cris_gdbarch_init): Update.
5150 * avr-tdep.c (avr_gdbarch_init): Update.
5151 * arm-tdep.c (arm_gdbarch_init): Update.
5152 * sparc-tdep.c (sparc_pop_frame): Update.
5153 * rs6000-tdep.c (rs6000_pop_frame): Update.
5154 * remote.c (init_remote_state): Update.
5155 (remote_prepare_to_store): Update.
5156 * remote-vx.c (vx_prepare_to_store): Update.
5157 * remote-sds.c (sds_fetch_registers): Update.
5158 (sds_prepare_to_store): Update.
5159 * remote-array.c: Update.
5160 * regcache.c (init_legacy_regcache_descr): Update.
5161 (init_regcache_descr): Update.
5162 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5163 (mips_o64_extract_return_value): Update.
5164 * irix5-nat.c (fetch_core_registers): Update.
5165 * irix4-nat.c (fetch_core_registers): Update.
5166 * i386-tdep.h: Update.
5167 * hppa-tdep.c (pa_do_registers_info): Update.
5168 (pa_do_strcat_registers_info): Update.
5169 * cris-tdep.c (cris_register_bytes_ok): Update.
5170 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5171 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5172 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5173 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5174 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5175 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5176 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5177 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5178 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5179 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5180 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5181 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5182 (REGISTER_BYTES_OK): Update.
5183 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5184 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5186 2003-05-16 Ian Lance Taylor <ian@airs.com>
5188 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5189 (vax_print_insn, print_insn_arg): Remove static functions.
5190 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5191 print_insn_vax from opcodes library.
5192 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5194 2003-05-15 Andrew Cagney <cagney@redhat.com>
5196 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5197 * target.h (memory_breakpoint_from_pc): Delete declaration.
5198 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5199 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5200 * monitor.c (monitor_insert_breakpoint): Use
5201 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5202 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5203 * gdbarch.h, gdbarch.c: Re-generate.
5204 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5205 (sparc_gdbarch_init): Set breakpoint_from_pc to
5206 sparc_breakpoint_from_pc.
5207 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5208 (BREAKPOINT_FROM_PC): Define.
5209 (sparc_breakpoint_from_pc): Declare.
5210 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5211 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5212 (BREAKPOINT_FROM_PC): Define.
5213 (BREAKPOINT): Delete macro.
5214 * target.h: Update comment.
5215 * s390-tdep.c (s390_gdbarch_init): Update comments.
5216 * remote.c: Update comments.
5217 * remote-mips.c: Update comments.
5218 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5219 * mem-break.c: Update comment.
5220 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5221 (ia64_memory_insert_breakpoint): Update.
5222 * config/sparc/tm-sparc.h: Update comment.
5223 * config/pa/tm-hppa64.h: Update comment.
5224 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5225 (rs6000_breakpoint_from_pc): Update.
5226 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5227 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5228 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5229 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5230 (mips_breakpoint_from_pc): Update.
5231 (mips_dump_tdep): Update.
5233 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5234 * minsyms.c (lookup_minimal_symbol): Inline
5235 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5237 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5238 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5239 * p-lang.c (pascal_printstr): Ditto.
5240 * objc-lang.c (objc_printstr): Ditto.
5241 * m2-lang.c (m2_printstr): Ditto.
5242 * jv-valprint.c (java_print_value_fields): Ditto.
5243 * f-lang.c (f_printstr): Ditto.
5244 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5245 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5246 for repeat_count_threshold.
5247 * Makefile.in (cp-valprint.o): Update dependencies.
5249 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5251 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5252 (examine_prologue): Support looking through leaf functions, knowing
5253 they start with mov r2,r12. Support skipping over indirect stores
5254 of the input registers. Upon hitting a non-nop branch instruction
5255 or predicated instruction, bail out by setting lim_pc to the current
5256 pc value in the loop. At the end, if the lim_pc value is still
5257 beyond our calculated value and we have trust_limit set,
5258 use the lim_pc value.
5260 2003-05-15 Andrew Cagney <cagney@redhat.com>
5262 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5263 generic_find_dummy_frame.
5264 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5265 (deprecated_generic_find_dummy_frame): Update.
5266 (deprecated_read_register_dummy): Update.
5267 * frame.c (deprecated_generic_get_saved_register): Update.
5269 2003-05-15 Theodore A. Roth <troth@openavr.org>
5271 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5272 (avr_gdbarch_init): Set breakpoint_from_pc method.
5274 2003-05-15 Andrew Cagney <cagney@redhat.com>
5276 * regcache.c (build_regcache): Set deprecated_register_valid
5278 (deprecated_grub_regcache_for_register_valid): Delete function.
5279 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5282 2003-05-15 David Carlton <carlton@bactrian.org>
5284 Committed by Elena Zannoni <ezannoni@redhat.com>
5285 * symtab.c (lookup_symbol_aux): Delete calls to
5286 lookup_symbol_aux_minsyms.
5287 (lookup_symbol_aux_minsyms): Comment out function and
5288 prototype. Delete lookup by mangled name.
5290 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5292 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5293 correctly indicate an empty stack and ``stack_allocated'' to the
5294 indicate the number of elements initially allocated.
5295 (dwarf_expr_grow_stack): Simplify method for computing new
5296 stack size. Don't loop infinitely if ``stack_len'' is zero.
5297 (execute_stack_op): Move ``ctx->in_reg'' initialization
5298 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5299 be used in conjuction with DW_OP_piece. Revise error message
5302 2003-05-14 Theodore A. Roth <troth@openavr.org>
5304 * MAINTAINERS: Update my email address.
5305 * avr-tdep.c: Ditto.
5307 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5309 * symtab.h (enum domain_enum): Rename from namespace_enum.
5310 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5311 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5312 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5313 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5314 TYPES_NAMESPACE, METHODS_NAMESPACE.
5315 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5316 (struct symbol, struct partial_symbol): Rename field
5317 'namespace_enum namespace' to 'domain_enum domain'.
5318 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5319 Delete old define kludge for namespace.
5321 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5322 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5323 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5324 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5325 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5326 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5327 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5328 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5329 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5330 occurrences of the above.
5332 2003-05-14 Ian Lance Taylor <ian@airs.com>
5334 * Makefile.in (install-only): Use $(SHELL) when running
5337 2003-05-13 Ian Lance Taylor <ian@airs.com>
5339 * MAINTAINERS (write after approval): Add myself.
5341 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5342 second and third arguments.
5343 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5344 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5346 2003-05-13 Andrew Cagney <cagney@redhat.com>
5348 * defs.h (store_address): Delete declaration.
5349 findvar.c (store_address): Delete function.
5350 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5351 store_unsigned_integer.
5352 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5353 * v850-tdep.c (v850_push_arguments): Ditto.
5354 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5355 * sh-tdep.c (sh64_get_saved_register): Ditto.
5356 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5357 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5358 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5359 (mips_get_saved_register): Ditto.
5360 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5361 (find_func_descr, ia64_push_arguments): Ditto.
5362 * i386-tdep.c (i386_push_arguments): Ditto.
5363 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5364 * frv-tdep.c (frv_push_arguments): Ditto.
5365 * frame.c (legacy_saved_regs_prev_register): Ditto.
5366 (deprecated_generic_get_saved_register): Ditto.
5367 * findvar.c (unsigned_address_to_pointer): Ditto.
5368 * dwarf2read.c (dwarf2_const_value): Ditto.
5369 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5370 * alpha-tdep.c (alpha_push_arguments): Ditto.
5372 2003-05-12 J. Brobecker <brobecker@gnat.com>
5374 * NEWS: Mention that the hppa-hpux port has been partially
5375 multiarched (32bit ABIT only, so far).
5377 2003-05-11 Andrew Cagney <cagney@redhat.com>
5379 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5380 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5381 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5382 sim/testsuite/sim/arm/misaligned2.ms, and
5383 sim/testsuite/sim/arm/misaligned3.ms.
5384 * disasm.h (struct ui_file): Add opaque struct declaration.
5385 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5386 * frame.h (struct ui_file): Ditto.
5388 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5390 * value.h: Pretty print.
5392 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5394 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5396 2003-05-08 Andrew Cagney <cagney@redhat.com>
5398 * regcache.h (max_register_size): Delete declaration.
5399 * regcache.c (max_register_size): Delete function.
5400 (struct regcache_descr): Delete field "max_register_size".
5401 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5402 registers fit in MAX_REGISTER_SIZE.
5403 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5404 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5405 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5406 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5407 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5408 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5409 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5410 * dve3900-rom.c, hppa-tdep.c: Ditto.
5412 2003-05-08 David Carlton <carlton@math.stanford.edu>
5414 * valops.c (push_word): Fix typo.
5416 2003-05-08 Andrew Cagney <cagney@redhat.com>
5418 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5419 * gdbarch.h: Re-generate.
5420 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5421 (legacy_max_register_raw_size): Delete declaration.
5422 * regcache.c (legacy_max_register_raw_size): Delete function.
5423 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5424 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5425 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5426 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5427 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5428 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5429 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5430 * findvar.c, dwarf2cfi.c: Ditto.
5432 2003-05-08 Andrew Cagney <cagney@redhat.com>
5434 * mips-tdep.c (read_signed_register): New function, moved to here
5436 (read_signed_register_pid): Ditto.
5437 * regcache.c (read_signed_register_pid): Delete function, moved to
5439 (read_signed_register): Ditto.
5440 * regcache.h (read_signed_register): Delete declaration.
5441 (read_signed_register_pid): Delete declaration.
5443 2003-05-08 Andrew Cagney <cagney@redhat.com>
5445 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5446 * gdbarch.h: Re-generate.
5447 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5448 (legacy_max_register_virtual_size): Delete declaration.
5449 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5450 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5451 * tracepoint.c (memrange_sortmerge): Ditto.
5452 * sparc-tdep.c (sparc_print_registers): Ditto.
5453 * regcache.c (legacy_max_register_virtual_size): Delete function.
5455 2002-05-08 J. Brobecker <brobecker@gnat.com>
5457 * fork-child.c (escape_bang_in_quoted_argument): New function.
5458 (fork_inferior): Escape '!' characters in quoted arguments
5461 2003-05-08 J. Brobecker <brobecker@gnat.com>
5463 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5464 the language of the CU is not currently supported by GDB.
5466 2003-05-08 J. Brobecker <brobecker@gnat.com>
5468 * defs.h (language): Add language_minimal enum value.
5469 * c-lang.c (minimal_language_defn): New language definition.
5470 (_initialize_c_language): Add the new minimal language to the list
5471 of languages known to GDB.
5473 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5475 * frame.c (get_frame_type): Don't attempt to lazily initialize
5476 frame's unwinder for legacy frames.
5478 2003-05-07 Andrew Cagney <cagney@redhat.com>
5480 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5481 and "regcache" parameters.
5482 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5484 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5486 * dwarf2read.c (dwarf_decode_lines): Only use output of
5487 check_cu_functions() when calling record_line(). Do not update
5488 the current address.
5490 2003-05-07 Andrew Cagney <cagney@redhat.com>
5492 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5495 2003-05-07 Jim Blandy <jimb@redhat.com>
5497 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5498 'maint info symtabs' and 'maint info psymtabs'.
5499 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5500 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5501 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5502 Declarations updated.
5503 * maint.c (maintenance_list_command): Delete.
5504 (_initialize_maint_cmds): Update calls to add_cmd.
5505 * gdbcmd.h (maintenancelistlist): Delete declaration.
5506 * cli/cli-cmds.c (maintenancelistlist): Delete.
5507 (init_cmd_lists): Don't initialize it.
5508 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5510 2003-05-07 Andrew Cagney <cagney@redhat.com>
5512 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5514 (d10v_print_registers_info): Update.
5515 (d10v_dmap_register, d10v_imap_register): Delete functions.
5516 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5517 and "imap_register".
5518 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5519 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5520 * arch-utils.c (generic_remote_translate_xfer_address): Add
5521 "regcache" and "gdbarch" parameters.
5522 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5523 parameter. Change class to multi-arch.
5524 * gdbarch.h, gdbarch.c: Re-generate.
5525 * remote.c (remote_xfer_memory): Use
5526 gdbarch_remote_translate_xfer_address.
5528 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5530 * infrun.c (prev_pc): Move declaration ahead of proceed().
5531 (proceed): Refresh prev_pc value before resuming.
5532 (stop_stepping): Remove code to refresh prev_pc.
5534 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5536 * nto-tdep.c: Removed stray comment.
5538 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5540 * i386-nto-tdep.c: Fix old K&R function definitions.
5541 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5542 Also change add_show_from_set() call to add_setshow_cmd().
5543 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5545 2003-05-05 Andrew Cagney <cagney@redhat.com>
5547 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5548 (fprint_dummy_frames): New function.
5549 (maintenance_print_dummy_frames): New function.
5550 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5551 * frame.c (fprint_frame_id): Make global.
5552 * frame.h (fprint_frame_id): Declare.
5553 * Makefile.in (dummy-frame.o): Update dependencies.
5555 2003-05-05 Andrew Cagney <cagney@redhat.com>
5557 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5558 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5559 SIZEOF_CALL_DUMMY_WORDS.
5560 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5561 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5562 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5563 CALL_DUMMY_BREAKPOINT_OFFSET.
5564 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5565 CALL_DUMMY_START_OFFSET.
5566 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5567 * gdbarch.h, gdbarch.c: Re-generate.
5568 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5569 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5570 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5571 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5572 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5573 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5574 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5575 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5576 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5577 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5578 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5579 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5580 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5581 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5582 * config/sparc/tm-sparc.h: Update.
5584 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5586 * configure.tgt: Add i[3456]86-*-nto*.
5587 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5588 * nto-tdep.c: New file. Neutrino target support routines.
5589 * nto-tdep.h: New file. Neutrino target header.
5590 * config/tm-qnxnto.h: New file.
5591 * config/i386/i386nto.mt: New file.
5592 * config/i386/tm-i386nto.h: New file.
5594 2003-05-04 Andrew Cagney <cagney@redhat.com>
5596 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5597 (load_infrun_state): Ditto.
5598 (struct thread_info): Drop "prev_func_name" field.
5599 * thread.c (load_infrun_state): Update.
5600 (save_infrun_state): Update.
5601 * infrun.c (prev_func_name): Delete variable.
5602 (init_wait_for_inferior): Do not clear prev_func_name.
5603 (stop_stepping, keep_going, context_switch): Do not swap
5605 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5606 instead of PC_IN_SIGTRAMP.
5608 2003-05-04 Andrew Cagney <cagney@redhat.com>
5610 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5611 REGISTER_BYTE with register_offset_hack.
5612 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5613 that REGISTER_BYTE is consistent with the regcache.
5614 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5615 * gdbarch.h, gdbarch.c: Regenerate.
5617 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5619 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5620 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5622 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5624 2003-05-03 J. Brobecker <brobecker@gnat.com>
5626 From Thierry Schneider <tpschneider1@yahoo.com>
5627 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5628 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5629 (mi-cmd-symbol.o): Add rule.
5631 2003-05-03 Andrew Cagney <cagney@redhat.com>
5633 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5634 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5635 * gdbarch.h, gdbarch.c: Re-generate.
5636 * d10v-tdep.c (d10v_push_dummy_code): New function.
5637 (d10v_gdbarch_init): Set push_dummy_code.
5638 * infcall.c (legacy_push_dummy_code): New function.
5639 (generic_push_dummy_code): New function.
5640 (push_dummy_code): New function.
5641 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5642 instead of dummy_addr, to push_dummy_call. Move call to
5643 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5645 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5647 2003-05-03 Andrew Cagney <cagney@redhat.com>
5649 * disasm.h (print_insn): Declare.
5650 * disasm.c (init_gdb_disassemble_info): New function.
5651 (gdb_disassembly): Call init_gdb_disassemble_info.
5652 (gdb_print_insn): New function.
5653 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5654 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5655 * mcore-tdep.c: Include "disasm.h"
5656 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5657 * d10v-tdep.c: Include "disasm.h".
5658 (display_trace): Call gdb_print_insn, instead of print_insn.
5659 (print_insn): Delete function.
5660 * printcmd.c: Include "disasm.h".
5661 (print_insn): Delete function.
5662 (print_formatted): Call gdb_print_insn, instead of print_insn.
5663 * Makefile.in (printcmd.o): Update dependencies.
5664 (mcore-tdep.o, d10v-tdep.o): Ditto.
5666 2003-05-02 Andrew Cagney <cagney@redhat.com>
5668 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5669 PC_REGNUM, re-indent.
5670 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5671 PC_REGNUM isn't set.
5673 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5674 * gdbarch.h, gdbarch.c: Re-generate.
5675 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5676 register_virtual_size, pc_regnum, or register_bytes.
5677 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5678 (d10v_register_type): Use D10V_PC_REGNUM.
5679 (d10v_print_registers_info, d10v_read_pc): Ditto.
5680 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5681 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5683 2003-05-02 David Carlton <carlton@bactrian.org>
5685 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5686 the name with mstrsave.
5688 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5690 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5691 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5692 (host_charset_name, target_charset_name): New vars for use by
5694 (host_charset_enum, target_charset_enum): New enums for set/show
5696 (set_charset_sfunc, set_host_charset_sfunc,
5697 set_target_charset_sfunc): New functions.
5698 (set_host_charset, set_target_charset): Make static.
5699 (list_charsets, set_host_charset_command,
5700 set_target_charset_command): Delete functions.
5701 (show_charset_command): Rewrite as....
5702 (show_charset): Hook this up with the set/show command mechanism.
5703 (_initialize_charset): Change names of charsets to match the
5704 set/show enums. Use host_charset_name and target_charset_name.
5705 Use set/show mechanism for charset, host-charset, target-charset
5706 commands. Do not make 'show host-charset' and 'show
5707 target-charset' be aliases of 'show charset'.
5709 * charset.h (set_host_charset, set_target_charset): Don't export,
5710 they are not used outside the file.
5712 2003-05-01 Andrew Cagney <cagney@redhat.com>
5714 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5715 (gdb_disassembly): Make "di" non static, always initialize and
5716 cleanup. Always use dis_asm_read_memory.
5717 (gdb_dis_asm_read_memory): Delete function.
5719 2003-05-01 Andrew Cagney <cagney@redhat.com>
5721 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5722 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5724 2003-04-30 Andrew Cagney <cagney@redhat.com>
5726 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5727 "tm_print_insn_info".
5728 (TARGET_PRINT_INSN_INFO): Delete macro.
5729 (dis_asm_read_memory): Delete function declaration.
5730 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5731 (tm_print_insn_info): Delete variable definition.
5732 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5733 * gdbarch.h, gdbarch.c: Re-generate.
5734 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5735 "deprecated_tm_print_insn_info".
5736 * mcore-tdep.c (mcore_dump_insn): Ditto.
5737 * mips-tdep.c (mips_gdbarch_init): Ditto.
5738 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5739 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5740 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5741 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5742 instead of TARGET_PRINT_INSN_INFO, add comment.
5743 * s390-tdep.c (s390_get_frame_info): Instead of
5744 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5745 (s390_check_function_end, s390_is_sigreturn): Ditto.
5746 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5747 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5748 * disasm.c: Include "gdbcore.h".
5749 (_initialize_disasm): New function, initialize
5750 "deprecated_tm_print_insn_info".
5751 (deprecated_tm_print_insn_info): New variable.
5752 (dis_asm_read_memory): Moved from "corefile.c", made static.
5753 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5754 * Makefile.in (disasm.o): Update dependencies.
5756 2003-04-30 Andrew Cagney <cagney@redhat.com>
5758 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5760 2003-04-29 Adam Fedor <fedor@gnu.org>
5762 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5763 * infcall.c (find_function_addr): Make non-static.
5764 * infcall.h (find_function_addr): Declare.
5765 * Makefile.in (eval.o): Update dependencies.
5767 2003-04-28 Adam Fedor <fedor@gnu.org>
5769 * symtab.c (symbol_find_demangled_name): Check for and demangle
5771 (symbol_init_demangled_name): Init for language_objc as well.
5773 2003-04-28 Andrew Cagney <cagney@redhat.com>
5775 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5776 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5777 * gdbarch.h, gdbarch.c: Re-generate.
5778 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5779 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5780 * inferior.h (deprecated_read_fp): Rename read_fp.
5781 (generic_target_read_fp): Delete declaration.
5782 * regcache.c (generic_target_read_fp): Delete function.
5783 (deprecated_read_fp): Replace read_fp, use
5784 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5785 * d10v-tdep.c (d10v_read_fp): Delete function.
5786 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5788 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5789 deprecated_target_read_fp to generic_target_read_fp.
5790 * sh-tdep.c (sh_gdbarch_init): Ditto.
5791 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5792 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5793 * frv-tdep.c (frv_gdbarch_init): Ditto.
5795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5796 deprecated_fp_regnum.
5797 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5798 * vax-tdep.c (vax_gdbarch_init): Ditto.
5799 * v850-tdep.c (v850_gdbarch_init): Ditto.
5800 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5801 * sh-tdep.c (sh_gdbarch_init): Ditto.
5802 * s390-tdep.c (s390_gdbarch_init): Ditto.
5803 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5804 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5805 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5806 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5808 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5809 * i386-tdep.c (i386_gdbarch_init): Ditto.
5810 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5811 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5812 * frv-tdep.c (frv_gdbarch_init): Ditto.
5813 * cris-tdep.c (cris_gdbarch_init): Ditto.
5814 * avr-tdep.c (avr_gdbarch_init): Ditto.
5815 * arm-tdep.c (arm_gdbarch_init): Ditto.
5816 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5818 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5819 * v850-tdep.c (v850_gdbarch_init): Ditto.
5820 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5821 * sh-tdep.c (sh_gdbarch_init): Ditto.
5822 * s390-tdep.c (s390_gdbarch_init): Ditto.
5823 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5825 * mips-tdep.c (mips_gdbarch_init): Ditto.
5826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5827 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5828 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5829 * frv-tdep.c (frv_gdbarch_init): Ditto.
5830 * avr-tdep.c (avr_gdbarch_init): Ditto.
5831 * arm-tdep.c (arm_gdbarch_init): Ditto.
5833 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5834 DEPRECATED_FP_REGNUM.
5835 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5836 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5837 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5838 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5839 (sparc32_register_virtual_type): Ditto.
5840 * sh-tdep.c (sh64_frame_chain): Ditto.
5841 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5842 (sh_nofp_frame_init_saved_regs): Ditto.
5843 (sh64_nofp_frame_init_saved_regs): Ditto.
5844 (sh_fp_frame_init_saved_regs): Ditto.
5845 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5846 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5847 * procfs.c (procfs_fetch_registers): Ditto.
5848 (procfs_store_registers): Ditto.
5849 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5850 (store_inferior_registers, fetch_core_registers): Ditto.
5851 (fetch_kcore_registers, clear_regs): Ditto.
5852 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5853 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5854 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5855 * nlm/i386.c (do_status): Ditto.
5856 * mipsv4-nat.c (supply_gregset): Ditto.
5857 * mips-tdep.c: Ditto for comments.
5858 * mips-nat.c (fetch_inferior_registers): Ditto.
5859 (store_inferior_registers, fetch_core_registers): Ditto.
5860 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5861 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5862 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5863 (i386_do_pop_frame, i386_register_type): Ditto.
5864 * hppa-tdep.c (hppa_frame_chain): Ditto.
5865 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5866 (hppa_pop_frame, hppa_read_fp): Ditto.
5867 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5868 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5869 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5870 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5871 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5872 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5873 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5874 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5875 * blockframe.c: Ditto for comments.
5876 * arch-utils.h: Ditto for comments.
5877 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5878 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5879 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5880 * alpha-tdep.h: Ditto for comments.
5881 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5882 (alpha_cannot_store_register): Ditto.
5883 (alpha_push_dummy_frame): Ditto.
5884 * alpha-nat.c (supply_gregset): Ditto.
5886 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5887 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5888 * config/sparc/tm-sparc.h: Update comment.
5890 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5891 deprecated_read_fp instead of TARGET_READ_FP.
5892 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5893 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5894 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5895 deprecated_read_fp instead of read_fp.
5896 * s390-tdep.c (s390_push_arguments): Ditto.
5897 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5898 * frame.h: Ditto in comments.
5899 * frame.c (legacy_get_prev_frame): Ditto.
5900 * dummy-frame.c (dummy_frame_this_id): Ditto.
5901 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5903 2003-04-28 Andrew Cagney <cagney@redhat.com>
5905 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5906 * gdbarch.h, gdbarch.c: Re-generate.
5907 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5908 * vax-tdep.c (_initialize_vax_tdep): Update.
5909 * v850-tdep.c (_initialize_v850_tdep): Update.
5910 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5911 * s390-tdep.c (_initialize_s390_tdep): Update.
5912 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5913 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5914 * mips-tdep.c (_initialize_mips_tdep): Update.
5915 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5916 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5917 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5918 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5919 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5920 * frv-tdep.c (_initialize_frv_tdep): Update.
5921 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5922 (_initialize_cris_tdep): Update.
5923 * arch-utils.c (legacy_print_insn): Update.
5924 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5926 2003-04-26 Adam Fedor <fedor@gnu.org>
5928 * linespec.c (decode_objc): New function to decode ObjC calls
5929 (decode_line_1): Check for ObjC calls (using decode_objc)
5930 * Makefile (linespec.o): Update dependencies.
5932 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5934 * breakpoint.h (struct breakpoint_ops): New.
5935 (struct breakpoint): Add ops member.
5937 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5938 (mention): Use new breakpoint ops member.
5939 (set_raw_breakpoint): Initialize ops field to NULL.
5940 (print_exception_catchpoint, print_one_exception_catchpoint)
5941 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5942 (gnu_v3_exception_catchpoint_ops): New.
5943 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5945 2003-04-25 Adam Fedor <fedor@gnu.org>
5947 * Makefile.in (COMMON_OBS): Add objc-lang.o
5949 2003-04-25 Andrew Cagney <cagney@redhat.com>
5951 * d10v-tdep.c (print_insn): Delete function.
5952 (display_trace): Use TARGET_PRINT_INSN.
5953 (_initialize_d10v_tdep): Do not set tm_print_insn.
5954 (d10v_gdbarch_init): Set print_insn.
5956 2003-04-25 Andrew Cagney <cagney@redhat.com>
5958 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5959 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5960 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5961 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5962 (nr_dmap_regs, a0_regnum): ... new functions.
5963 (d10v_print_registers_info): Use a0_regnum, use register_size.
5964 (d10v_register_byte): Delete function.
5965 (d10v_register_raw_size): Delete function.
5966 (d10v_register_type): Use a0_regnum.
5967 (d10v_print_registers_info): Use a0_regnum.
5968 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5969 (d10v_gdbarch_init): Do not set register_byte or
5970 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5971 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5973 (trace_command): Use XCALLOC.
5974 (print_insn): Delete reference to tm_print_insn.
5975 (saved_regs_unwinder): Use store_unsigned_integer instead of
5977 * frame.h (FRAME_OBSTACK_CALLOC): Define
5979 2003-04-25 David Carlton <carlton@bactrian.org>
5981 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5983 2003-04-24 Adam Fedor <fedor@gnu.org>
5985 * objc-lang.c: Include "valprint.h"
5986 * Makefile.in (objc-lang.o): Update dependencies.
5988 2003-04-24 Adam Fedor <fedor@gnu.org>
5990 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5991 architecture dependant compilation and mark as unimplemented
5992 (until they get put in the gdbarch vector).
5994 2003-04-23 David Carlton <carlton@bactrian.org>
5996 * cp-support.c (cp_find_first_component): Accept 'operator' in
5999 2003-04-23 Andrew Cagney <cagney@redhat.com>
6001 * infcall.c (call_function_by_hand): Eliminate redundant
6002 indentation. Move "saved_async" and "old_cleanups" to where they
6005 2003-04-23 Andrew Cagney <cagney@redhat.com>
6007 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6008 and "buffer". Move the "name" code to where it is needed.
6010 2003-04-23 Andrew Cagney <cagney@redhat.com>
6012 * infcall.c (call_function_by_hand): Move variables "start_sp",
6013 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6014 code to ON_STACK switch branch.
6016 2003-04-23 Andrew Cagney <cagney@redhat.com>
6018 * infcall.c (call_function_by_hand): Make declaration of "i",
6019 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6022 2003-04-23 Andrew Cagney <cagney@redhat.com>
6024 * infcall.c (call_function_by_hand): Delete variable
6025 "n_method_args". Localize "param_type"'s declaration to the loop
6026 that it is used. Reinstate code assigning to said variable -
6027 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6028 Rationalize code using "param_type".
6030 2003-04-22 Andrew Cagney <cagney@redhat.com>
6032 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6033 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6034 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6035 to DEPRECATED_PUSH_RETURN_ADDRESS.
6037 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6039 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6040 on the DWARF2 register number prior to fetching a register.
6042 2003-04-22 J. Brobecker <brobecker@gnat.com>
6044 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6045 Update all the tests using SOFT_FLOAT considering the fact that
6046 this macro was always set to 0.
6047 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6048 considering the fact that this macro was always set to 0.
6049 * hppa-tdep.h (hppa_store_return_value): Likewise.
6050 (hppa_extract_return_value): Likewise.
6052 2003-04-22 J. Brobecker <brobecker@gnat.com>
6054 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6055 the hppa-pro target only.
6057 2003-04-21 J. Brobecker <brobecker@gnat.com>
6059 Ongoing multi-arch conversion effort for HP/UX:
6060 * config/pa/tm-hppa.h: Move all macro that are no longer
6061 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6062 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6064 2003-04-21 J. Brobecker <brobecker@gnat.com>
6066 * config/pa/tm-hppa.h: Obsolete a section that was only used
6069 2003-04-21 J. Brobecker <brobecker@gnat.com>
6071 Ongoing multi-arch conversion for HP/UX.
6072 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6073 if already defined (allows hppa64 to stay non-multiarched for now).
6074 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6076 2003-04-21 Andrew Cagney <cagney@redhat.com>
6078 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6080 2003-04-21 Andrew Cagney <cagney@redhat.com>
6082 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6083 "i386_num_mmx_regs".
6085 2003-04-21 Andrew Cagney <cagney@redhat.com>
6087 * infcall.c: New file.
6088 * infcall.h: New file.
6089 * valarith.c: Include "infcall.h".
6090 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6091 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6092 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6093 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6094 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6095 (SFILES): Add "infcall.c"
6096 (COMMON_OBS): Add "infcall.o".
6097 (infcall.o): Specify dependencies.
6098 * value.h (call_function_by_hand): Delete declaration.
6099 * inferior.h (run_stack_dummy): Delete declaration.
6100 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6101 (run_stack_dummy): Move to "infcall.c", merged into
6102 call_function_by_hand.
6103 * valops.c (call_function_by_hand): Moved to "infcall.c".
6104 (find_function_addr, value_arg_coerce): Ditto.
6105 (unwindonsignal_p, coerce_float_to_double): Ditto.
6106 (_initialize_valops): Move "set/show coerce-float-to-double", and
6107 "set/show unwindonsignal" commands to "infcall.c".
6108 * v850-tdep.c, target.h: Update comments.
6109 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6110 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6111 (sh64_init_extra_frame_info): Update comments.
6112 * mn10300-tdep.c: Update comments.
6113 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6114 * config/sparc/tm-sparc.h: Update comments.
6115 * breakpoint.h: Update comments.
6116 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6117 * arm-tdep.c: Update comment.
6119 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6121 * i386-tdep.c (i386_num_register_names): New variable.
6122 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6123 (MM0_REGNUM): Remove redundant parentheses in define.
6124 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6125 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6126 i386_mxcsr_regnum_p): Remove redundant parentheses.
6127 (i386_register_name): Use i386_num_register_names.
6129 * i386-tdep.c (i386_extract_return_value,
6130 i386_store_return_value): Correct check for availability of
6131 floating-point registers.
6133 * i386-tdep.c (i386_frame_num_args): Remove function.
6134 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6136 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6137 mmx_regnum_to_fp_regnum. Adjust all callers.
6139 * i386-tdep.c (i386_get_longjmp_target): Use
6140 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6141 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6144 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6146 * core-regset.c: Update comments to reflect reality. Re-order
6148 (fetch_core_registers): Use switch instead of if. Remove
6149 redundant prototype.
6151 2003-04-18 Jim Blandy <jimb@redhat.com>
6153 * s390-tdep.c (s390_frame_align): New function.
6154 (s390_gdbarch_init): Register it with the gdbarch object.
6156 2003-04-17 Richard Henderson <rth@redhat.com>
6158 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6160 2003-04-17 Michael Snyder <msnyder@redhat.com>
6161 Karen Bennet <bennet@redhat.com>
6163 Committed by Elena Zannoni <ezannoni@redhat.com>
6164 * gdb_gcore.sh: New script to create a core dump of a process.
6166 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6168 * values.c (value_being_returned): Don't fetch the return
6169 value if the return type is void.
6171 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6173 * thread-db.c: Reindented.
6175 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6177 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6178 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6205 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6207 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6208 the size of ``long double'' to 16, instead of 8.
6210 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6212 * i386-linux-nat.c: Add some whitespace to make things more
6214 (fetch_register, store_register, fetch_inferior_registers,
6215 store_inferior_registers): Get rid of assignment in if-statement.
6216 (store_register): Fix typo in error message.
6218 2003-04-16 Andrew Cagney <cagney@redhat.com>
6220 * utils.c (xmmalloc): Always allocate something, matches
6221 libiberty/xmalloc's semantics.
6222 (xmrealloc, xmcalloc): Ditto.
6224 2003-04-16 Andrew Cagney <cagney@redhat.com>
6226 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6228 (get_frame_type): Initialize unwind and type when needed.
6229 (get_frame_id, frame_register_unwind): Ditto.
6231 2003-04-16 Andrew Cagney <cagney@redhat.com>
6233 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6235 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6236 * sparcl-stub.c: Obsolete file.
6237 * config/sparc/tm-sparclet.h: Obsolete file.
6238 * sparclet-stub.c: Obsolete file.
6239 * sparclet-rom.c: Obsolete file.
6240 * sparcl-tdep.c: Obsolete file.
6241 * config/sparc/tm-sparclite.h: Obsolete file.
6242 * config/sparc/sparclite.mt: Obsolete file.
6243 * config/sparc/sparclet.mt: Obsolete file.
6244 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6245 sparc86x-*-* obsolete.
6247 2003-04-15 David Carlton <carlton@math.stanford.edu>
6249 * Makefile.in (SFILES): Add cp-namespace.c.
6250 (COMMON_OBS): Add cp-namespace.o.
6251 (block.o): Depend on gdb_obstack_h and cp_support_h.
6252 (buildsym.o): Depend on cp_support_h.
6253 (cp-namespace.o): New.
6254 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6255 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6256 (dwarf2read.o): Depend on cp_support_h.
6257 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6258 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6259 processing_current_namespace.
6260 (read_namespace): Update processing_current_namespace; check for
6261 anonymous namespaces.
6262 (dwarf2_name): New function.
6263 (dwarf2_extension): Ditto.
6264 * cp-support.h: Update copyright, contributors.
6265 Add inclusion guards.
6266 Add opaque declaration for structs obstack, block, symbol.
6267 (struct using_direct): New struct.
6268 Add declarations for cp_find_first_component,
6269 cp_entire_prefix_len, processing_has_namespace_info,
6270 processing_current_namespace, cp_is_anonymous,
6271 cp_add_using_directive, cp_initialize_namespace,
6272 cp_finalize_namespace, cp_set_block_scope,
6273 cp_scan_for_anonymous_namespaces.
6274 * cp-namespace.c: New file.
6275 * cp-support.c: Update copyright.
6276 Include ctype.h, gdb_assert.h, gdbcmd.h.
6277 New variable maint_cplus_cmd_list.
6278 (cp_find_first_component): New function.
6279 (cp_entire_prefix_len, maint_cplus_command)
6280 (first_component_command, _initialize_cp_support): Ditto.
6281 * buildsym.c: Include cp-support.h.
6282 New variable using_list.
6283 (add_symbol_to_list): Check for anonymous namespaces.
6284 (finish_block): Set block's scope.
6285 (start_symtab): Initialize C++ namespace support.
6286 (end_symtab): Finalize C++ namespace support.
6287 * block.h: Add opaque declarations for structs
6288 block_namespace_info, using_direct, and obstack.
6289 Add declarations for block_set_scope and block_set_using.
6290 (struct block): Add 'language_specific' member.
6291 (BLOCK_NAMESPACE): New macro.
6292 * block.c: Include gdb_obstack.h and cp-support.h.
6293 (struct block_namespace_info): New struct.
6294 (block_set_scope): New function.
6295 (block_set_using, block_initialize_namespace): Ditto.
6297 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6299 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6300 (locate_base): Return early if there aren't any link map offsets.
6301 (svr4_solib_create_inferior_hook): Warn if shared library support
6304 2003-04-14 David Carlton <carlton@math.stanford.edu>
6306 * symtab.c (symbol_set_names): Add prefix when storing Java names
6307 in hash table. Fix for PR java/1039.
6309 2003-04-14 David Carlton <carlton@math.stanford.edu>
6311 * symtab.c (symbol_set_names): Rename 'name' arg to
6312 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6313 * symtab.h: Change 'name' argument in declaration of
6314 symbol_set_names to 'linkage_name'.
6315 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6317 2003-04-14 Andrew Cagney <cagney@redhat.com>
6319 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6320 return the fully sign-extended register value.
6321 (get_frame_pointer): Ditto.
6322 (mips_pop_frame): Initialize "proc_desc" after checking for a
6325 2003-04-14 Andrew Cagney <cagney@redhat.com>
6327 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6328 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6329 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6330 (mips_push_register): Delete function.
6331 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6334 2003-04-14 Jim Blandy <jimb@redhat.com>
6336 * symmisc.c: #include "gdb_regex.h".
6337 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6339 * maint.c (maintenance_list_command): New function.
6340 (_initialize_maint_cmds): Register the above as commands.
6341 * symtab.h (maintenance_list_symtabs,
6342 maintenance_list_psymtabs): New declarations.
6343 * cli/cli-cmds.c (maintenancelistlist): New variable.
6344 (init_cmd_lists): Initialize it.
6345 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6346 * gdbcmd.h (maintenancelistlist): New declaration.
6347 * Makefile.in (symmisc.o): Update dependencies.
6349 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6351 * s390-nat.c: Include asm/types.h for addr_t.
6353 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6355 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6356 actually incoming type.
6358 2003-04-13 Andrew Cagney <cagney@redhat.com>
6360 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6361 get_next_frame and get_frame_saved_regs.
6363 2003-04-13 Andrew Cagney <cagney@redhat.com>
6365 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6366 of gdbarch_num_regs.
6368 2003-04-13 Andrew Cagney <cagney@redhat.com>
6370 * frame.h: Mention what replaced what in "struct frame_info".
6371 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6372 deprecated_update_frame_base_hack and
6373 deprecated_update_frame_pc_hack.
6374 * hppa-tdep.c: Ditto.
6376 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6378 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6379 to read_reg and update its comment. Remove regnum member.
6380 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6381 Don't call read_reg when setting in_reg. Call read_reg to get
6382 the frame base if it's in a register. Return the register number
6383 on the stack instead of in the context. Remove extra arguments
6385 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6386 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6387 the register number on the expression stack.
6388 (needs_frame_read_reg): Remove extra arguments.
6390 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6392 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6394 (execute_stack_op): All callers updated.
6395 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6396 * dwarf2loc.c (find_location_expression): New function.
6397 (dwarf_expr_frame_base): Call it.
6398 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6399 (dwarf2_tracepoint_var_ref): New function, broken out from
6400 locexpr_tracepoint_var_ref.
6401 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6403 (loclist_read_variable, loclist_read_needs_frame): New functions.
6404 (loclist_describe_location, loclist_tracepoint_var_ref): New
6406 (dwarf2_loclist_funcs): New struct location_funcs.
6407 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6408 (struct dwarf2_locexpr_baton): Add comments.
6409 (dwarf2_loclist_funcs): New extern.
6410 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6411 base_address and base_known.
6412 (dwarf_loc_buffer): New variable.
6413 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6414 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6415 (dwarf2_has_info): Initialize dwarf_loc_offset.
6416 (dwarf2_build_psymtabs): Read in .debug_loc.
6417 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6419 (psymtab_to_symtab_1): Likewise. Move base address calculation
6421 (dwarf2_get_pc_bounds): ... here. Use the base address from
6423 (dwarf2_symbol_mark_computed): Handle location lists.
6425 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6427 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6428 if the linkage name demangled successfully.
6430 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6432 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6433 disassmbly_flavour): Removed.
6435 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6437 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6439 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6441 2003-04-12 Andrew Cagney <cagney@redhat.com>
6443 * frame.h (struct frame_info): Move definition from here ...
6444 * frame.c (struct frame_info): ... to here.
6446 2003-04-12 Andrew Cagney <cagney@redhat.com>
6448 * gdbthread.h (save_infrun_state): Delete parameter
6450 (struct thread_info): Delete field "prev_func_start".
6451 (load_infrun_state): Ditto.
6452 * thread.c (load_infrun_state, save_infrun_state): Update.
6453 * infrun.c (prev_func_start): Delete variable.
6454 (context_switch, init_wait_for_inferior): Update.
6455 (stop_stepping, keep_going): Update.
6457 2003-04-12 Andrew Cagney <cagney@redhat.com>
6459 * gdbarch.sh: Add missing opaque declarations.
6460 * gdbarch.h: Regnerate.
6461 * symtab.h: Add missing opaque declarations.
6462 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6463 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6464 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6465 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6466 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6467 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6468 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6469 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6470 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6471 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6472 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6473 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6474 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6476 2003-04-11 Andrew Cagney <cagney@redhat.com>
6478 * frame.c (get_frame_id): Return this frame's "id".
6479 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6481 (legacy_saved_regs_this_id): Replace function body with
6483 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6484 FRAME_OBSTACK_ZALLOC.
6485 (create_new_frame): Mark the frame ID as valid.
6487 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6489 * Makefile.in (libbfd_h): Added missing setting.
6490 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6491 according to the selected ABI.
6493 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6495 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6497 2003-04-11 Andrew Cagney <cagney@redhat.com>
6499 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6500 SAVED_PC_AFTER_CALL.
6501 * gdbarch.h, gdbarch.c: Regenerate.
6502 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6503 * x86-64-tdep.c (x86_64_init_abi): Update.
6504 * vax-tdep.c (vax_gdbarch_init): Update.
6505 * v850-tdep.c (v850_gdbarch_init): Update.
6506 * sparc-tdep.c (sparc_gdbarch_init): Update.
6507 * sh-tdep.c (sh_gdbarch_init): Update.
6508 * s390-tdep.c (s390_gdbarch_init): Update.
6509 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6510 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6511 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6512 * mips-tdep.c (mips_gdbarch_init): Update.
6513 * mcore-tdep.c (mcore_gdbarch_init): Update.
6514 * m68k-tdep.c (m68k_gdbarch_init): Update.
6515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6516 * ia64-tdep.c (ia64_gdbarch_init): Update.
6517 (ia64_saved_pc_after_call): Update declaration.
6518 * i386ly-tdep.c (i386lynx_init_abi): Update.
6519 * i386-tdep.c (i386_gdbarch_init): Update.
6520 * hppa-tdep.c (hppa_gdbarch_init): Update.
6521 * h8300-tdep.c (h8300_gdbarch_init): Update.
6522 * frv-tdep.c (frv_gdbarch_init): Update.
6523 * cris-tdep.c (cris_gdbarch_init): Update.
6524 * avr-tdep.c (avr_gdbarch_init): Update.
6525 * arm-tdep.c (arm_gdbarch_init): Update.
6526 * alpha-tdep.c (alpha_gdbarch_init): Update.
6527 * ns32knbsd-nat.c (frame_num_args): Update.
6528 * ns32k-tdep.c (umax_frame_num_args): Update.
6529 * mips-tdep.c (mips_init_frame_pc_first): Update.
6530 * infrun.c (step_over_function): Update.
6531 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6532 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6533 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6534 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6535 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6536 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6537 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6538 * arch-utils.c (init_frame_pc_default): Update.
6539 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6540 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6543 2003-04-11 Andrew Cagney <cagney@redhat.com>
6545 * i387-tdep.c: Update copyright.
6546 (i387_to_double): Delete function.
6547 (double_to_i387): Delete function.
6549 2003-04-10 Andrew Cagney <cagney@redhat.com>
6551 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6552 frame's function's address. Simplify.
6553 (d10v_frame_unwind_cache): Check that the frame's function is
6556 2003-04-10 Jim Blandy <jimb@redhat.com>
6558 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6559 call to set_gdbarch_deprecated_push_arguments.
6561 2003-04-10 Andrew Cagney <cagney@redhat.com>
6563 * frame.c (fprint_frame_id): New function.
6564 (fprint_frame_type, fprint_frame): New function.
6565 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6566 (create_sentinel_frame, get_frame_id): Ditto.
6567 (frame_id_p, frame_id_eq): Ditto.
6568 (frame_id_inner, create_new_frame): Ditto.
6569 (legacy_get_prev_frame, get_prev_frame): Ditto.
6570 (deprecated_update_frame_pc_hack): Ditto.
6571 (frame_register_unwind): Ditto.
6572 (deprecated_update_frame_base_hack): Ditto.
6574 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6576 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6577 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6578 frame_chain function.
6579 * Makefile.in: Add dependencies due to above change.
6581 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6583 * blockframe.c (legacy_frame_chain_valid): Move call to
6584 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6587 2003-04-09 Andrew Cagney <cagney@redhat.com>
6589 * frame.h (struct frame_id): Replace "pc" and "base" with
6590 "stack_addr" and "code_addr". Update comments.
6591 (frame_id_build): Update parameter names and comment.
6592 (struct frame_info): Replace "id_p" and "id" with "this_id".
6593 * dummy-frame.c (dummy_frame_this_id): Update.
6594 * breakpoint.c (print_one_breakpoint): Update.
6595 * frame.c (get_frame_id): Update.
6596 (get_frame_base, frame_id_build): Update.
6597 (create_sentinel_frame, legacy_get_prev_frame): Update.
6598 (deprecated_update_frame_base_hack): Update.
6599 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6600 (frame_id_inner): Ditto.
6602 2003-04-09 Andrew Cagney <cagney@redhat.com>
6604 * defs.h (gdb_print_host_address): Make "addr" parameter a
6606 * utils.c (gdb_print_host_address): Update.
6608 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6610 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6611 register number for R0 is 0.
6613 2003-04-09 J. Brobecker <brobecker@gnat.com>
6615 * frame.h (struct gdbarch): Add opaque structure definition
6616 to avoid a compilation warning on LynxOS 4.0.
6618 2003-04-09 Andrew Cagney <cagney@redhat.com>
6620 * frame.h (struct frame_info): Delete field "pc". Replace
6621 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6623 * frame.c (frame_pc_unwind): Update.
6624 (create_sentinel_frame): Do not set "pc".
6625 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6626 (get_frame_pc): Call frame_pc_unwind.
6627 (deprecated_update_frame_pc_hack): Update.
6628 (create_new_frame): Use "pc" not "->pc".
6630 2003-04-09 Andrew Cagney <cagney@redhat.com>
6632 * frame.c (get_frame_id): Eliminate code updating "frame".
6633 (legacy_get_prev_frame): Ditto.
6634 (get_frame_base): Return id.base directly.
6635 (deprecated_update_frame_base_hack): Update "id.base".
6636 * frame.h (struct frame_info): Delete field "frame".
6638 2003-04-09 Andrew Cagney <cagney@redhat.com>
6640 * NEWS: Mention that the "Sequent family" is obsolete.
6641 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6642 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6643 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6644 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6645 * config/i386/tm-ptx4.h: Obsolete file.
6646 * config/i386/tm-ptx.h: Obsolete file.
6647 * symm-tdep.c: Obsolete file.
6648 * config/i386/symmetry.mt: Obsolete file.
6649 * config/i386/tm-symmetry.h: Obsolete file.
6650 * symm-nat.c: Obsolete file.
6651 * config/i386/nm-symmetry.h: Obsolete file.
6652 * config/i386/xm-symmetry.h: Obsolete file.
6653 * config/i386/symmetry.mh: Obsolete file.
6654 * config/i386/nm-ptx4.h: Obsolete file.
6655 * config/i386/ptx4.mh: Obsolete file.
6656 * config/i386/ptx.mt: Obsolete file.
6657 * config/i386/ptx.mh: Obsolete file.
6658 * config/i386/xm-ptx4.h: Obsolete file.
6659 * config/i386/xm-ptx.h: Obsolete file.
6661 2003-04-09 Andrew Cagney <cagney@redhat.com>
6663 Obsolete mips*-*-mach3*.
6664 * NEWS: Mention that mips*-*-mach3* is obsolete.
6665 * m3-nat.c: Obsolete file.
6666 * config/nm-m3.h: Obsolete file.
6667 * config/mips/tm-mipsm3.h: Obsolete file.
6668 * config/mips/mipsm3.mt: Obsolete file.
6669 * config/mips/mipsm3.mh: Obsolete file.
6670 * config/mips/xm-mipsm3.h: Obsolete file.
6671 * mipsm3-nat.c: Obsolete file.
6672 * configure.host: Obsolete mips-dec-mach3*.
6673 * configure.tgt: Obsolete mips*-*-mach3*.
6675 2003-04-09 Andrew Cagney <cagney@redhat.com>
6677 * doublest.h: Update copyright.
6678 (deprecated_store_floating, deprecated_extract_floating): Rename
6679 store_floating and extract_floating. Update comments.
6680 * doublest.c: Update copyright.
6681 (extract_floating_by_length): Replace extract_floating.
6682 (store_floating_by_length): Replace store_floating.
6683 (deprecated_extract_floating): New function.
6684 (deprecated_store_floating): New function.
6685 (extract_typed_floating): Call extract_floating_by_length.
6686 (store_typed_floating): Call store_floating_by_length.
6687 * x86-64-tdep.c (x86_64_store_return_value): Update.
6688 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6689 (sh64_extract_return_value): Update.
6690 (sh_sh4_register_convert_to_virtual): Update.
6691 (sh_sh64_register_convert_to_virtual): Update.
6692 (sh_sh4_register_convert_to_raw): Update.
6693 (sh_sh64_register_convert_to_raw): Update.
6694 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6695 (rs6000_register_convert_to_raw): Update.
6696 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6697 (ia64_register_convert_to_raw): Update.
6698 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6699 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6700 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6701 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6702 (alpha_register_convert_to_raw): Update.
6704 2003-04-08 Andrew Cagney <cagney@redhat.com>
6706 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6707 * gdbarch.h, gdbarch.c: Re-generate.
6708 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6709 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6710 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6711 conditionally, use frame_pc_unwind as an alternative. Add
6713 * arch-utils.c (init_frame_pc_default): Only call
6714 SAVED_PC_AFTER_CALL when available.
6716 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6718 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6719 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6720 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6721 (start_remote): Ditto.
6722 (handle_inferior_event): Ditto.
6723 (save_inferior_status): Ditto.
6724 (restore_inferior_status): Ditto.
6725 * infcmd.c (attach_command): Ditto.
6726 * fork-child.c (startup_inferior): Ditto.
6727 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6728 * alpha-tdep.c (heuristic_proc_start): Ditto.
6729 * mips-tdep.c (heuristic_proc_start): Ditto.
6730 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6731 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6732 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6733 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6734 * remote-vx.c (vx_create_inferior): Ditto.
6736 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6738 * infrun.c (stop_soon_quietly): Make it an enum, to better
6739 override the default behavior of handle_inferior_event.
6740 (clear_proceed_status): Update uses of stop_soon_quietly to
6741 reflect that it is now an enum.
6742 (start_remote): Ditto.
6743 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6744 is set to handle the new GNU/Linux kernel behavior for
6745 attach/sigstop. Update uses of stop_soon_quietly.
6746 * inferior.h (enum stop_kind): New enum.
6747 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6748 Reset normal handle_inferior_event behavior, afterwards.
6749 * fork-child.c (startup_inferior): Update.
6750 * alpha-tdep.c (heuristic_proc_start): Update.
6751 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6752 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6753 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6754 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6755 * remote-vx.c (vx_create_inferior): Update.
6756 * mips-tdep.c (heuristic_proc_start): Update.
6758 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6760 * disasm.c (dump_insns): Move variables inside loop, or they will
6761 be freed more than once, causing wild memory corruptions.
6762 (gdb_disassembly): Look for the substring "-thread",
6763 instead of "-threads" in the target name, to make sure to find
6764 the 'multi-thread' target. Also, make sure we do the right thing
6765 with the "core" target.
6767 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6769 * mips-tdep.c (mips_print_fp_register): New function, created from
6770 do_fp_register_row(). Registers are now (also) printed as hex.
6771 Only one register is printed per row.
6772 (mips_print_register, do_fp_register_row): Print floating point
6773 registers with mips_print_fp_register().
6775 2003-04-06 Andrew Cagney <cagney@redhat.com>
6777 * valprint.h (inspect_it): Add extern declaration.
6778 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6779 (selectors_info, classes_info): Ditto.
6780 (find_objc_msgcall): Fix indentation.
6781 (objc_printstr): Delete extern declarations.
6783 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6785 2003-04-06 Andrew Cagney <cagney@redhat.com>
6787 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6789 * frame.c (legacy_saved_regs_this_id): Update.
6790 (legacy_get_prev_frame): Update.
6791 * xstormy16-tdep.c: Update comment.
6792 * sparc-tdep.c (sparc_frame_chain): Update comment.
6793 * blockframe.c (legacy_frame_chain_valid): Update.
6795 2003-04-06 Andrew Cagney <cagney@redhat.com>
6797 * valprint.c (val_print_type_code_int): Delete #ifdef
6798 PRINT_TYPELESS_INTEGER code.
6800 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6801 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6802 multi-arch definition.
6803 * gdbarch.h: Re-generate.
6805 2003-04-05 Andrew Cagney <cagney@redhat.com>
6807 Eliminate FRAME_FIND_SAVED_REGS.
6808 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6809 Change FSR parameter to a pointer.
6810 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6811 Assume FSR parameter is a pointer.
6812 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6814 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6815 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6816 saved_regs a pointer.
6817 (hppa_frame_saved_pc): Ditto.
6818 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6819 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6821 (restore_pc_queue): Make fsr a pointer.
6822 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6823 (hppa_frame_chain): Make saved_regs a pointer, call
6824 hppa_frame_init_saved_regs.
6825 * sparc-tdep.c: Include "gdb_assert.h".
6826 (sparc_frame_find_saved_regs): Replace internal_error with
6828 * remote-vxsparc.c (vx_read_register): Delete reference to
6829 FRAME_FIND_SAVED_REGS.
6830 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6831 * gdbarch.h: Regenerate.
6832 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6833 (deprecated_get_frame_saved_regs): Delete declaration.
6834 (struct frame_saved_regs): Delete definition.
6835 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6836 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6837 (hppa_frame_find_saved_regs): Delete declaration.
6838 (FRAME_FIND_SAVED_REGS): Delete macro.
6839 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6840 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6841 FRAME_FIND_SAVED_REGS in comment.
6843 2003-04-05 Andrew Cagney <cagney@redhat.com>
6845 * frame.c (frame_func_unwind, get_frame_func): New functions.
6846 * frame.h (get_frame_func, frame_func_unwind): Declare.
6847 (struct frame_info): Add field "prev_func" for caching the
6848 previous frame's function address.
6849 * arm-tdep.c (arm_frameless_function_invocation): Combine
6850 get_pc_function_start and get_frame_pc into get_frame_func.
6851 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6852 (sh64_nofp_frame_init_saved_regs): Ditto.
6853 * s390-tdep.c (s390_function_start): Ditto.
6854 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6855 (rs6000_frameless_function_invocation): Ditto.
6856 (rs6000_frame_saved_pc): Ditto.
6857 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6858 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6859 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6860 (i386_frame_init_saved_regs): Ditto.
6861 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6862 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6863 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6864 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6865 * blockframe.c (frameless_look_for_prologue): Ditto.
6867 2003-04-05 Andrew Cagney <cagney@redhat.com>
6869 * frame.c (legacy_get_prev_frame): Link prev to next at the
6870 function start. Update comments.
6872 2003-04-05 Andrew Cagney <cagney@redhat.com>
6874 * frame.c (get_frame_id): Update comment.
6875 (legacy_get_prev_frame): Update comment.
6876 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6877 * gdbarch.h: Regenerate.
6878 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6879 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6881 2003-04-05 Andrew Cagney <cagney@redhat.com>
6883 * stack.c (print_frame_info): Use get_frame_pc.
6885 2003-04-04 Andrew Cagney <cagney@redhat.com>
6887 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6888 the frame's type from the unwinder.
6889 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6890 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6891 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6892 (get_frame_base_address): Use get_frame_type.
6893 (get_frame_locals_address, get_frame_args_address): Ditto.
6894 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6895 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6896 (struct frame_info): Add comment explaining why the frame contains
6898 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6899 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6900 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6902 * frame-unwind.h: Include "frame.h".
6903 (struct frame_unwind): Add "type" field.
6904 * Makefile.in (frame_unwind_h): Add $(frame_h).
6906 2003-04-04 Andrew Cagney <cagney@redhat.com>
6908 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6909 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6910 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6912 (d10v_unwind_dummy_id): Use frame_id_build.
6913 * frame.c (find_frame_sal): Use get_frame_pc.
6914 (create_new_frame): Use deprecated_update_frame_pc_hack and
6915 deprecated_update_frame_base_hack.
6916 (create_sentinel_frame): Add comment about ->pc going away.
6917 (get_prev_frame): Add comment about ->pc going away.
6918 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6919 frame_id_build, deprecated_update_frame_pc_hack and
6920 deprecated_update_frame_base_hack.
6921 (select_frame): Use get_frame_pc.
6922 (legacy_saved_regs_this_id): Use frame_id_build.
6924 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6926 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6927 signed integer case.
6928 (classify_argument): Handle enumerations and references.
6930 2003-04-04 Andrew Cagney <cagney@redhat.com>
6932 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6935 2003-04-01 Adam Fedor <fedor@gnu.org>
6937 * gdb/objc-lang.c (selectors_info): Replace calls to
6938 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6939 SYMBOL_NATURAL_NAME.
6940 (classes_info, find_methods): Likewise.
6942 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6944 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6945 ``mach'' to the value determined by bfd_default_set_arch_mach().
6947 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6949 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6950 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6951 (mi-cmd-file.o): Update dependencies.
6953 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6955 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6956 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6958 2003-04-01 Adam Fedor <fedor@gnu.org>
6960 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6961 * language.h (struct language_defn): Add la_demangle.
6962 (language_demangle): Declare.
6963 * language.c (language_demangle): New function.
6964 (unk_lang_demangle): Likewise.
6965 (unknown_language_defn, auto_language_defn, local_language_defn):
6966 Add ukn_lang_demangle.
6967 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6968 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6969 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6970 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6971 * jv-lang.c (java_demangle): New function
6972 (java_language_defn): Use it for la_demangle element.
6973 * objc-lang.c (objc_demangle): Add options argument
6974 (objc_language_defn): Use objc_demangle for la_demangle element.
6975 * maint.c (maintenance_demangle): Replace switch with
6976 call to language_demangle.
6977 * utils.c (fprintf_symbol_filtered): Likewise.
6979 2003-04-01 Andrew Cagney <cagney@redhat.com>
6981 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6982 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6983 PRINT_TYPELESS_INTEGER.
6984 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6985 PUSH_RETURN_ADDRESS.
6987 2003-04-01 Andrew Cagney <cagney@redhat.com>
6989 * Makefile.in (d10v-tdep.o): Update dependencies.
6990 * d10v-tdep.c: Include "frame-base.h".
6991 (d10v_frame_unwind): Make constant.
6992 (d10v_frame_base_address): New function.
6993 (d10v_frame_base): New variable.
6994 (d10v_gdbarch_init): Set frame_base default.
6995 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6997 (d10v_frame_unwind_cache): Set and use "prev_sp".
6998 (d10v_frame_this_id): Use the previous frame's inner most stack
6999 address and this frame's func address for the frame ID. Use
7000 frame_id_build. Don't analyze beyond the current instruction.
7002 2003-04-01 Andrew Cagney <cagney@redhat.com>
7004 * frame.h (get_frame_locals_address, get_frame_args_address):
7005 Refer to the base address, instead of the address of the first
7008 2003-04-01 Andrew Cagney <cagney@redhat.com>
7010 Add frame debug info addresses:
7011 * frame-base.c: New file.
7012 * frame-base.h: New file.
7013 * frame.h (struct frame_base): Add opaque declaration.
7014 (get_frame_base): Update comment.
7015 (get_frame_base_address): Declare.
7016 (get_frame_locals_address): Declare.
7017 (get_frame_args_address): Declare.
7018 (struct frame_info): Add "base" and "base_cache". Update
7019 comments on the unwinder.
7020 * frame.c: Include "frame-base.h".
7021 (get_frame_locals_address): New function.
7022 (get_frame_base_address): New function.
7023 (get_frame_args_address): New function.
7024 * findvar.c (read_var_value): Use get_frame_locals_address and
7025 get_frame_args_address.
7026 * stack.c (frame_info): Use get_frame_locals_address and
7027 get_frame_args_address.
7028 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7029 moved to "frame-base.c".
7030 * printcmd.c (print_frame_nameless_args): Ditto.
7031 * symtab.h (address_class): Update comments.
7032 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7033 get_frame_base_address.
7034 * dwarf2expr.c (execute_stack_op): Ditto.
7035 * Makefile.in (frame_base_h): Define.
7036 (frame.o): Update dependencies.
7037 (frame-base.o): Add dependencies.
7038 (SFILES): Add frame-base.c.
7039 (COMMON_OBS): Add frame-base.o.
7041 2003-04-01 Andrew Cagney <cagney@redhat.com>
7043 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7044 CALL_DUMMY_LENGTH): Ditto.
7045 * gdbarch.c: Re-generate.
7046 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7047 (CALL_DUMMY_LENGTH): Delete macro.
7048 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7049 * arm-tdep.c (arm_gdbarch_init): Ditto.
7050 * avr-tdep.c (avr_gdbarch_init): Ditto.
7051 * cris-tdep.c (cris_gdbarch_init): Ditto.
7052 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7053 * frv-tdep.c (frv_gdbarch_init): Ditto.
7054 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7055 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7056 * i386-tdep.c (i386_gdbarch_init): Ditto.
7057 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7059 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7060 * mips-tdep.c (mips_gdbarch_init): Ditto.
7061 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7062 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7063 * s390-tdep.c (s390_gdbarch_init): Ditto.
7064 * sh-tdep.c (sh_gdbarch_init): Ditto.
7065 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7066 * v850-tdep.c (v850_gdbarch_init): Ditto.
7067 * vax-tdep.c (vax_gdbarch_init): Ditto.
7068 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7070 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7072 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7074 2003-04-01 Andrew Cagney <cagney@redhat.com>
7076 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7077 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7078 * gdbarch.h, gdbarch.c: Re-generate.
7079 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7080 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7081 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7082 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7083 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7084 * infcmd.c (run_stack_dummy): Simplify assuming
7085 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7086 * infrun.c (handle_inferior_event): Ditto.
7087 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7088 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7089 * arm-tdep.c (arm_gdbarch_init): Ditto.
7090 * avr-tdep.c (avr_gdbarch_init): Ditto.
7091 * cris-tdep.c (cris_gdbarch_init): Ditto.
7092 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7093 * frv-tdep.c (frv_gdbarch_init): Ditto.
7094 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7095 * i386-tdep.c (i386_gdbarch_init): Ditto.
7096 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7097 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7098 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7099 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7100 * mips-tdep.c (mips_gdbarch_init): Ditto.
7101 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7102 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7103 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7104 * s390-tdep.c (s390_gdbarch_init): Ditto.
7105 * sh-tdep.c (sh_gdbarch_init): Ditto.
7106 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7107 * v850-tdep.c (v850_gdbarch_init): Ditto.
7108 * vax-tdep.c (vax_gdbarch_init): Ditto.
7109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7111 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7113 * symfile.c (symfile_relocate_debug_section): Update call to
7114 bfd_simple_get_relocated_section_contents.
7116 2003-03-31 Andrew Cagney <cagney@redhat.com>
7118 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7119 * gdbarch.h, gdbarch.c: Regenerate.
7120 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7121 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7123 * frame.h (generic_fix_call_dummy): Delete declaration.
7124 * dummy-frame.h: Update comment.
7125 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7126 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7128 * sh-tdep.c (sh_gdbarch_init): Ditto.
7129 * s390-tdep.c (s390_gdbarch_init): Ditto.
7130 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7131 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7133 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7134 * i386-tdep.c (i386_gdbarch_init): Ditto.
7135 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7136 * frv-tdep.c (frv_gdbarch_init): Ditto.
7137 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7138 * cris-tdep.c (cris_gdbarch_init): Ditto.
7139 * avr-tdep.c (avr_gdbarch_init): Ditto.
7140 * arm-tdep.c (arm_gdbarch_init): Ditto.
7142 2003-03-31 J. Brobecker <brobecker@gnat.com>
7144 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7145 (INIT_FRAME_AP): Likewise.
7146 (EXTRA_FRAME_INFO): Likewise.
7148 2003-03-31 Andrew Cagney <cagney@redhat.com>
7150 * gdbarch.sh: Include "symfile.h".
7151 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7152 * gdbarch.h, gdbarch.c: Re-generate.
7153 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7155 call_dummy_address, the default is at entry_point_address.
7156 * v850-tdep.c (v850_gdbarch_init): Ditto.
7157 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7158 * sh-tdep.c (sh_gdbarch_init): Ditto.
7159 * s390-tdep.c (s390_gdbarch_init): Ditto.
7160 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7163 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7164 * i386-tdep.c (i386_gdbarch_init): Ditto.
7165 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7166 * frv-tdep.c (frv_gdbarch_init): Ditto.
7167 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7168 * cris-tdep.c (cris_gdbarch_init): Ditto.
7169 * arm-tdep.c (arm_gdbarch_init): Ditto.
7171 2003-03-31 Andrew Cagney <cagney@redhat.com>
7173 * gdbarch.sh (CALL_DUMMY_P): Delete.
7174 * gdbarch.h, gdbarch.c: Re-generate.
7175 * inferior.h (CALL_DUMMY_P): Delete macro.
7176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7177 * vax-tdep.c (vax_gdbarch_init): Update.
7178 * v850-tdep.c (v850_gdbarch_init): Update.
7179 * sparc-tdep.c (sparc_gdbarch_init): Update.
7180 * sh-tdep.c (sh_gdbarch_init): Update.
7181 * s390-tdep.c (s390_gdbarch_init): Update.
7182 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7183 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7184 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7185 * mips-tdep.c (mips_gdbarch_init): Update.
7186 * mcore-tdep.c (mcore_gdbarch_init): Update.
7187 * m68k-tdep.c (m68k_gdbarch_init): Update.
7188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7189 * ia64-tdep.c (ia64_gdbarch_init): Update.
7190 * i386-tdep.c (i386_gdbarch_init): Update.
7191 * h8300-tdep.c (h8300_gdbarch_init): Update.
7192 * frv-tdep.c (frv_gdbarch_init): Update.
7193 * d10v-tdep.c (d10v_gdbarch_init): Update.
7194 * cris-tdep.c (cris_gdbarch_init): Update.
7195 * breakpoint.c (deprecated_frame_in_dummy): Update.
7196 * avr-tdep.c (avr_gdbarch_init): Update.
7197 * alpha-tdep.c (alpha_gdbarch_init): Update.
7198 * arm-tdep.c (arm_gdbarch_init): Update.
7199 * dummy-frame.c (dummy_frame_this_id): Update comments.
7200 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7201 * frame.c (legacy_get_prev_frame): Ditto.
7202 * valops.c (call_function_by_hand): Delete function.
7203 (hand_function_call): Rename to call_function_by_hand
7205 2003-03-30 Andrew Cagney <cagney@redhat.com>
7207 2002-11-10 Klee Dienes <kdienes@apple.com>
7208 * value.h (struct value): Update comment.
7210 2003-03-30 Andrew Cagney <cagney@redhat.com>
7212 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7214 (d10v_gdbarch_init): Do not set fp_regnum.
7216 * frame.c (get_frame_base): Force ID initialization.
7217 (get_prev_frame): Move computation of the frame ID from here ...
7218 (get_frame_id): ... to here.
7219 (legacy_get_prev_frame): Mark the frame ID as valid.
7220 * frame.h (struct frame_info): Add field "id_p".
7222 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7224 * i386-tdep.c (i386_store_struct_return): Removed.
7225 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7227 2003-03-30 Andrew Cagney <cagney@redhat.com>
7229 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7230 * gdbarch.h, gdbarch.c: Regenerate.
7231 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7233 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7234 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7235 * i386-tdep.c (i386_gdbarch_init): Ditto.
7236 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7237 * cris-tdep.c (cris_gdbarch_init): Ditto.
7238 * vax-tdep.c (vax_gdbarch_init): Ditto.
7239 * s390-tdep.c (s390_gdbarch_init): Ditto.
7240 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7241 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7242 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7243 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7244 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7245 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7246 * sparc-tdep.c (sparc_gdbarch_init): Update.
7247 * sh-tdep.c (sh_gdbarch_init): Update.
7248 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7249 * mips-tdep.c (mips_gdbarch_init): Update.
7250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7251 * ia64-tdep.c (ia64_gdbarch_init): Update.
7252 * frv-tdep.c (frv_gdbarch_init): Update.
7253 * avr-tdep.c (avr_gdbarch_init): Update.
7254 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7255 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7256 instead of when push_dummy_call is not available.
7258 2003-03-30 Andrew Cagney <cagney@redhat.com>
7260 * infttrace.c: Include "gdbthread.h".
7261 (parent_attach_all): Fix function signature.
7262 (call_ptrace): Update call.
7263 * Makefile.in (infttrace.o): Update dependencies.
7265 2003-03-30 Andrew Cagney <cagney@redhat.com>
7267 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7268 PUSH_RETURN_ADDRESS.
7269 * gdbarch.h, gdbarch.c: Regenerate.
7270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7271 * x86-64-tdep.c (x86_64_init_abi): Update.
7272 * v850-tdep.c (v850_gdbarch_init): Update.
7273 * sparc-tdep.c (sparc_gdbarch_init): Update.
7274 * sh-tdep.c (sh_gdbarch_init): Update.
7275 * s390-tdep.c (s390_gdbarch_init): Update.
7276 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7277 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7278 * mips-tdep.c (mips_gdbarch_init): Update.
7279 * mcore-tdep.c (mcore_gdbarch_init): Update.
7280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7281 * ia64-tdep.c (ia64_gdbarch_init): Update.
7282 * i386-tdep.c (i386_gdbarch_init): Update.
7283 * h8300-tdep.c (h8300_gdbarch_init): Update.
7284 * frv-tdep.c (frv_gdbarch_init): Update.
7285 * cris-tdep.c (cris_gdbarch_init): Update.
7286 * avr-tdep.c (avr_gdbarch_init): Update.
7287 * arm-tdep.c (arm_gdbarch_init): Update.
7288 * valops.c (hand_function_call): Update.
7290 2003-03-29 Andrew Cagney <cagney@redhat.com>
7292 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7293 sizeof_call_dummy_words.
7294 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7296 * gdbarch.h: Regenerate.
7298 2003-03-29 Andrew Cagney <cagney@redhat.com>
7300 * infttrace.h: New file.
7301 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7302 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7303 (hpread_read_doc_function_type): Detect an initialized type1.
7304 (hpread_quick_traverse): Initialize mod_name_string.
7305 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7306 (som_solib_get_solib_by_pc): Declare.
7307 (so_lib_thread_start_addr): Declare.
7308 (no_shared_libraries): Declare.
7309 * somread.c (init_import_symbols): Make static. Add forward
7311 * config/pa/nm-hppah.h: Include "infttrace.h" for
7313 (hppa_insert_hw_watchpoint): Declare.
7314 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7315 * hppah-nat.c: Include "gdb_string.h".
7316 (parent_attach_all): Delete extern declaration, moved to
7318 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7320 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7321 * Makefile.in (infttrace_h): Define.
7322 (hpread.o): Update dependencies.
7323 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7324 * hppa-hpux-tdep.c: Include "gdb_string.h".
7325 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7326 * infrun.c (handle_inferior_event): Always initialize
7327 stepped_after_stopped_by_watchpoint. Add default and remove
7328 fallthrough in switch statement.
7329 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7331 (hppa_remove_hw_watchpoint): Ditto.
7333 2003-03-29 Andrew Cagney <cagney@redhat.com>
7335 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7338 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7340 * arm-tdep.c (arm_push_arguments): Delete.
7341 (struct stack_item): New type.
7342 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7343 (arm_store_struct_return): Delte.
7344 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7345 arm_push_arguments or arm_store_struct_return.
7347 2003-03-28 Andrew Cagney <cagney@redhat.com>
7349 * Makefile.in (d10v-tdep.o): Update dependencies.
7350 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7351 * d10v-tdep.c: Include "remote.h".
7352 (target_resume_hook): Delete extern declaration.
7353 (target_wait_loop_hook): Ditto.
7354 (tdisassemble_command): Eliminate assignment in "if" conditional.
7355 (d10v_ts2_register_sim_regno): Eliminate call to
7356 legacy_register_sim_regno.
7357 (d10v_ts3_register_sim_regno): Ditto.
7359 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7361 * thread.c: Reindented.
7363 * linux-proc.c: Ditto.
7365 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7367 * MAINTAINERS (write after approval): Add myself.
7369 2003-03-27 Theodore A. Roth <troth@openavr.org>
7371 * objc-exp.y: Add missing semi-colons.
7373 2003-03-27 Andrew Cagney <cagney@redhat.com>
7375 * regcache.c (write_sp): Delete function and references.
7376 * inferior.h (write_sp): Delete declaration.
7377 * valops.c (hand_function_call): Replace write_sp with
7379 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7380 (sparc_pop_frame): Ditto.
7382 2003-03-27 Andrew Cagney <cagney@redhat.com>
7384 * NEWS: Mention removal of support for hppa*-*-bsd* and
7385 hppa*-*-osf* natives, and hppa*-*-pro* target.
7386 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7387 * config/pa/xm-pa.h: Obsolete file.
7388 * config/pa/xm-hppab.h: Obsolete file.
7389 * config/pa/nm-hppab.h: Obsolete file.
7390 * config/pa/tm-hppab.h: Obsolete file.
7391 * config/pa/tm-hppao.h: Obsolete file.
7392 * config/pa/nm-hppao.h: Obsolete file.
7393 * config/pa/tm-pro.h: Obsolete file.
7394 * config/pa/hppaosf.mt: Obsolete file.
7395 * config/pa/hppaosf.mh: Obsolete file.
7396 * config/pa/hppapro.mt: Obsolete file.
7397 * config/pa/hppabsd.mt: Obsolete file.
7398 * config/pa/hppabsd.mh: Obsolete file.
7399 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7400 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7403 2003-03-27 Andrew Cagney <cagney@redhat.com>
7405 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7406 push_arguments. Don't set push_return_address or write_sp.
7407 (d10v_push_dummy_call): Replace d10v_push_arguments.
7408 (d10v_push_return_address, d10v_write_sp): Delete function,
7409 handled by push_dummy_call.
7411 2003-03-26 Andrew Cagney <cagney@redhat.com>
7413 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7414 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7415 regcache and dummy_addr parameters.
7416 * gdbarch.h, gdbarch.c: Re-generate.
7417 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7418 available; assume it will handle stack alignment and return
7419 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7420 legacy_push_arguments.
7421 (legacy_push_arguments): Rename default_push_arguments.
7422 * value.h (legacy_push_arguments): Rename default_push_arguments.
7423 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7424 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7425 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7426 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7427 * config/i386/tm-symmetry.h: Update.
7428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7429 * x86-64-tdep.c (x86_64_init_abi): Update.
7430 * v850-tdep.c (v850_gdbarch_init): Update.
7431 * sparc-tdep.c (sparc_gdbarch_init): Update.
7432 * sh-tdep.c (sh_gdbarch_init): Update.
7433 * s390-tdep.c (s390_gdbarch_init): Update.
7434 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7435 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7436 * mips-tdep.c (mips_gdbarch_init): Update.
7437 * mcore-tdep.c (mcore_gdbarch_init): Update.
7438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7439 * ia64-tdep.c (ia64_gdbarch_init): Update.
7440 * i386-tdep.c (i386_gdbarch_init): Update.
7441 * hppa-tdep.c (hppa_gdbarch_init): Update.
7442 * h8300-tdep.c (h8300_gdbarch_init): Update.
7443 * frv-tdep.c (frv_gdbarch_init): Update.
7444 * d10v-tdep.c (d10v_gdbarch_init): Update.
7445 * cris-tdep.c (cris_gdbarch_init): Update.
7446 * avr-tdep.c (avr_gdbarch_init): Update.
7447 * arm-tdep.c (arm_gdbarch_init): Update.
7448 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7449 * alpha-tdep.c (alpha_gdbarch_init): Update.
7451 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7453 * signals/signals.c (do_target_signal_to_host): Correct realtime
7456 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7458 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7459 (struct sal_chain, map_catch_names): Remove.
7460 (catch_exception_command_1): Don't call
7461 handle_gnu_4_16_catch_command.
7463 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7465 From Mark Dettinger <dettinge@de.ibm.com>:
7466 * dwarf2cfi.c (read_2u): Increment pointer by two.
7468 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7470 * signals/signals.c: Fix typos in last change.
7472 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7474 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7475 not already defined. Use __SIGRTMIN if available.
7476 (target_signal_from_host): Remove SIGRTMIN block.
7477 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7478 the signal is within the realtime range.
7480 2003-03-25 Adam Fedor <fedor@gnu.org>
7482 * Makefile.in (infrun.o): Add $(language_h)
7483 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7484 for language specific trampolines.
7485 * language.h (struct language_defn): Add skip_trampoline.
7486 (skip_language_trampoline): Declare.
7487 * language.c (unk_lang_trampoline, skip_language_trampoline):
7489 (unknown_language_defn, auto_language_defn, local_language_defn):
7490 Add ukn_lang_trampoline.
7491 * ada-lang.c (ada_language_defn): Add NULL for language
7492 specific skip_trampoline.
7493 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7494 scm-lang.c: Likewise.
7495 * objc-lang.c (objc_skip_trampoline): New function.
7496 (objc_language_defn): Add objc_skip_trampoline.
7498 2003-03-25 Andrew Cagney <cagney@redhat.com>
7500 * frame.c (get_prev_frame): Delay validating a frame's ID -
7501 non-NULL, didn't go backwards - until an attempt to unwind it to
7504 2003-03-25 Andrew Cagney <cagney@redhat.com>
7506 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7507 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7508 * gdbarch.h, gdbarch.c: Re-generate.
7509 * config/sparc/tm-sparc.h
7510 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7511 * sparc-tdep.c (sparc_gdbarch_init): Set
7512 deprecated_extra_stack_alignment_needed.
7513 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7514 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7515 extra_stack_alignment_needed.
7516 * v850-tdep.c (v850_gdbarch_init): Ditto.
7517 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7518 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7519 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7520 * cris-tdep.c (cris_gdbarch_init): Ditto.
7521 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7524 2003-03-25 Andrew Cagney <cagney@redhat.com>
7526 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7527 STORE_STRUCT_RETURN.
7528 * gdbarch.h, gdbarch.c: Regenerate.
7529 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7530 (d10v_push_arguments): Set the struct return register.
7531 (d10v_gdbarch_init): Update.
7532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7533 * x86-64-tdep.c (x86_64_init_abi): Update.
7534 * vax-tdep.c (vax_gdbarch_init): Update.
7535 * v850-tdep.c (v850_gdbarch_init): Update.
7536 * sparc-tdep.c (sparc_gdbarch_init): Update.
7537 * sh-tdep.c (sh_gdbarch_init): Update.
7538 * s390-tdep.c (s390_gdbarch_init): Update.
7539 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7540 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7541 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7542 * mips-tdep.c (mips_gdbarch_init): Update.
7543 * mcore-tdep.c (mcore_gdbarch_init): Update.
7544 * m68k-tdep.c (m68k_gdbarch_init): Update.
7545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7546 * ia64-tdep.c (ia64_gdbarch_init): Update.
7547 * i386-tdep.c (i386_gdbarch_init): Update.
7548 * hppa-tdep.c (hppa_gdbarch_init): Update.
7549 * h8300-tdep.c (h8300_gdbarch_init): Update.
7550 * frv-tdep.c (frv_gdbarch_init): Update.
7551 * cris-tdep.c (cris_gdbarch_init): Update.
7552 * avr-tdep.c (avr_gdbarch_init): Update.
7553 * arm-tdep.c (arm_gdbarch_init): Update.
7554 * alpha-tdep.c (alpha_gdbarch_init): Update.
7556 2003-03-25 Andrew Cagney <cagney@redhat.com>
7558 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7559 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7560 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7561 * gdbarch.h, gdbarch.c: Regenerate.
7562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7563 call_dummy_stack_adjust_p.
7564 * vax-tdep.c (vax_gdbarch_init): Ditto.
7565 * v850-tdep.c (v850_gdbarch_init): Ditto.
7566 * sh-tdep.c (sh_gdbarch_init): Ditto.
7567 * s390-tdep.c (s390_gdbarch_init): Ditto.
7568 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7569 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7570 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7571 * mips-tdep.c (mips_gdbarch_init): Ditto.
7572 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7573 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7574 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7575 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7576 * i386-tdep.c (i386_gdbarch_init): Ditto.
7577 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7578 * frv-tdep.c (frv_gdbarch_init): Ditto.
7579 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7580 * cris-tdep.c (cris_gdbarch_init): Ditto.
7581 * avr-tdep.c (avr_gdbarch_init): Ditto.
7582 * arm-tdep.c (arm_gdbarch_init): Ditto.
7583 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7584 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7585 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7586 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7587 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7588 call_dummy_stack_adjust_p.
7589 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7590 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7591 * sparc-tdep.c (sparc32_push_arguments): Update.
7592 * valops.c (hand_function_call): Update.
7594 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7597 set_gdbarch_char_signed.
7599 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7602 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7604 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7606 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7607 (_initialize_arm_tdep): Don't set tm_print_insn.
7609 2003-03-24 Adam Fedor <fedor@gnu.org>
7611 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7612 * objc-lang.h: Add multiple inclusion protection.
7613 (start_msglist, add_msglist, end_msglist): Additional declarations.
7615 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7617 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7618 value was renamed to ARM_FLOAT_SOFT_FPA.
7620 2003-03-23 Andrew Cagney <cagney@redhat.com>
7622 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7623 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7624 * gdbarch.h, gdbarch.c: Regenerate.
7625 * valops.c (hand_function_call): Update.
7626 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7627 * frame.c (legacy_saved_regs_this_id): Update.
7628 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7629 * dummy-frame.h: Update.
7630 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7631 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7632 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7633 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7634 * config/m68k/tm-sun3.h: Update.
7635 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7637 * x86-64-tdep.c (x86_64_init_abi): Update.
7638 * vax-tdep.c (vax_gdbarch_init): Update.
7639 * v850-tdep.c (v850_gdbarch_init): Update.
7640 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7641 * sh-tdep.c (sh_gdbarch_init): Update.
7642 * s390-tdep.c (s390_gdbarch_init): Update.
7643 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7644 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7645 (frame_get_saved_regs): Update.
7646 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7647 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7648 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7649 * mips-tdep.c (mips_gdbarch_init): Update.
7650 * mcore-tdep.c (mcore_gdbarch_init): Update.
7651 * m68k-tdep.c (m68k_gdbarch_init): Update.
7652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7653 * ia64-tdep.c (ia64_gdbarch_init): Update.
7654 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7655 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7656 (i386_interix_back_one_frame): Update.
7657 * hppa-tdep.c (hppa_gdbarch_init): Update.
7658 (hppa_init_extra_frame_info): Update.
7659 * h8300-tdep.c (h8300_gdbarch_init): Update.
7660 * frv-tdep.c (frv_gdbarch_init): Update.
7661 * cris-tdep.c (cris_gdbarch_init): Update.
7662 * avr-tdep.c (avr_gdbarch_init): Update.
7663 * arm-tdep.c (arm_gdbarch_init): Update.
7664 * alpha-tdep.c (alpha_gdbarch_init): Update.
7666 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7668 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7669 (arm_get_fp_model): Declare.
7670 * arm-tdep.c (fp_model_strings): New string array.
7671 (arm_fp_model, current_fp_model): New variables.
7672 (arm_get_fp_model): New function.
7673 (arm_set_fp): New function.
7674 (set_fp_model_sfunc): New function.
7675 (show_fp_model): New function.
7676 (_initialize_arm_tdep): Add new command to set/show the FPU.
7677 (arm_extract_return_value): Use arm_get_fp_model.
7678 (arm_store_return_value): Likewise.
7679 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7680 to initialize the floating-point data types.
7681 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7684 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7686 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7687 the current setting of each value.
7688 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7689 new_set and new_show. Use add_setshow_cmd_full and
7690 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7691 commands and add new version as subcommands of "set/show arm".
7693 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7695 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7696 (set_arm_command, show_arm_command): New functions.
7697 (_initialize_arm_tdep): Add them.
7698 (num_disassembly_options): Renamed from num_flavor_options.
7699 (valid_disassembly_styles): Renamed from valid_flavors.
7700 (disassembly_style): Renamed from disassembly_flavor.
7701 (set_disassembly_style_sfunc): Renamed from
7702 set_disassembly_flavor_sfunc.
7703 (set_disassembly_style): Renamed from set_disassembly_flavor.
7704 (arm_othernames): Updated.
7705 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7706 command. Add "set/show arm disassembly" commands. Deprecate
7707 "othernames" command.
7709 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7711 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7712 (arm-tdep.o): Depend on elf_arm_h.
7714 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7716 * Makefile.in (coff_internal_h): Define.
7717 (arm-tdep.o): Update dependencies.
7719 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7721 * arm-tdep.c (prologue_cache): Delete.
7722 (check_prologue_cache, save_prologue_cache): Delete.
7723 (arm_scan_prologue): Don't check or update the prologue_cache.
7724 (arm_gdb_arch_init): Don't initialize it.
7725 (_initialize_arm_tdep): Likewise.
7727 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7729 * MAINTAINERS (tui): Maintainer of tui code.
7731 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7733 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7734 (i386-cygwin-tdep.o): Add dependencies.
7735 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7736 * i386-cygwin-tdep.c: New file.
7737 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7738 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7740 2003-03-20 Andrew Cagney <cagney@redhat.com>
7742 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7743 (handle_inferior_event): Remove code calling
7744 DYNAMIC_TRAMPOLINE_NEXTPC.
7746 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7747 already has a full path.
7749 * main.c (gdb_main): Return 1.
7750 (captured_main): Call error to report an invalid interpreter.
7752 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7753 * alpha-osf1-tdep.c: Include "gdb_string.h".
7755 2003-03-19 J. Brobecker <brobecker@gnat.com>
7757 Continuing work to convert the hppa targets to multiarch partial.
7759 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7760 method, now that hppa_push_dummy_frame has a conformant prototype.
7761 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7762 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7763 for the switch to multiarch partial.
7765 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7767 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7768 when iss is issNull.
7770 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7772 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7773 NUM_REGS bounds check.
7775 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7777 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7778 * mips-tdep.c (gdb_assert.h): Include.
7779 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7780 (mips_register_name): Handle integer registers explicitly. Add
7782 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7783 (mips_lsi33k_reg_names): Don't list integer registers; they're
7784 handled by mips_register_name() now.
7785 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7786 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7787 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7788 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7789 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7791 2003-03-18 Andrew Cagney <cagney@redhat.com>
7793 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7795 * gdbtypes.h (print_scalar_formatted): Update declaration.
7796 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7798 2003-03-18 J. Brobecker <brobecker@gnat.com>
7800 * infrun.c (observer.h): Add #include.
7801 (normal_stop): Add call to observer_notify_normal_stop.
7802 * Makefile.in (infrun.o): Add dependency on observer.h.
7804 2003-03-18 J. Brobecker <brobecker@gnat.com>
7806 Continuing work to convert the hppa targets to multiarch partial.
7807 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7808 parameter. Reformat comment.
7809 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7810 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7811 to match new profile.
7813 2003-03-18 J. Brobecker <brobecker@gnat.com>
7815 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7816 appear to be working in any case.
7818 2003-03-18 J. Brobecker <brobecker@gnat.com>
7820 * observer.c (observer_test_first_observer): New static variable.
7821 (observer_test_second_observer): Likewise.
7822 (observer_test_third_observer): Likewise.
7823 (observer_test_first_notification_function): New static function.
7824 (observer_test_second_notification_function): Likewise.
7825 (observer_test_third_notification_function): Likewise.
7827 2003-03-17 J. Brobecker <brobecker@gnat.com>
7829 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7830 * somsolib.c (gdb_assert.h): Likewise.
7831 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7832 (somsolib.o): Likewise.
7834 2003-03-17 Andrew Cagney <cagney@redhat.com>
7836 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7837 BFD. Simplify setting of di.endian.
7839 2003-03-17 Andrew Cagney <cagney@redhat.com>
7841 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7842 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7844 From Elena Zannoni <ezannoni@redhat.com>
7845 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7846 vector and floating-point parameters.
7847 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7849 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7851 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7853 * MAINTAINERS: Remove my name from several maintainership roles.
7855 2003-03-17 Andrew Cagney <cagney@redhat.com>
7857 Fix frame off-by-one bug.
7858 * frame-unwind.h (frame_this_id_ftype): Replace
7859 frame_unwind_id_ftype.
7860 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7861 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7862 with "prev_register".
7863 * frame-unwind.c (frame_unwind_find_by_pc): Return
7864 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7866 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7867 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7868 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7869 (dummy_frame_unwind): Update.
7870 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7871 sentinel_frame_register_unwind.
7872 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7873 (sentinel_frame_unwinder): Update.
7874 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7875 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7876 * frame.c (create_sentinel_frame): Update. Initialize
7877 "prologue_cache" instead of "unwind_cache".
7878 (frame_register_unwind): Call this frame's prev_register with the
7879 next frame and this frame's prologue cache.
7880 (get_prev_frame): Simplify. Always call prev frame's this_id with
7881 this frame and prev frame's prologue cache. Document that this
7882 call is shifted one to the left when compared to the
7883 frame_register_unwind call.
7884 (legacy_saved_regs_prev_register): Replace
7885 frame_saved_regs_register_unwind.
7886 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7887 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7888 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7889 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7890 (d10v_frame_unwind): Update.
7891 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7892 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7893 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7894 "saved_regs" with "this_saved_regs".
7896 2003-03-16 Andrew Cagney <cagney@redhat.com>
7898 * frame.c (frame_pop): Don't call target_store_registers. Fix
7899 problem reported by Mark Kettenis.
7901 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7903 * i386-tdep.c (i386_register_type): Renamed from
7904 i386_register_virtual_type. Adjust function signature.
7905 (i386_gdbarch_init): Set register_type instead of
7906 deprecated_max_register_raw_size,
7907 deprecated_max_register_virtual_size and register_virtual_type.
7909 2003-03-14 Andrew Cagney <cagney@redhat.com>
7911 * frame.c (get_prev_frame): When a legacy frame, always call
7912 legacy_get_prev_frame. Simplify unwind code using assumption that
7913 the unwinder is new.
7914 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7915 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7916 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7918 2003-03-14 Andrew Cagney <cagney@redhat.com>
7920 * frame.c (get_saved_register): Delete function.
7921 * frame.h (get_saved_register): Delete declaration.
7922 * xstormy16-tdep.c: Update comment.
7923 * regcache.h: Update comments.
7924 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7925 get_saved_register and extract_address, use
7926 frame_read_unsigned_register.
7927 (sparc_frame_saved_pc): Ditto.
7928 (sparc_get_saved_register): Instead of get_saved_register, use
7930 (sparc_pop_frame): Ditto.
7931 * findvar.c: Update comments.
7932 (value_of_register): Call frame_register instead of
7934 (value_from_register): Ditto.
7935 * config/sparc/tm-sparc.h: Update comment.
7936 * breakpoint.c: Update comment.
7938 2003-03-14 Andrew Cagney <cagney@redhat.com>
7940 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7942 * gdbarch.h, gdbarch.c: Re-generate.
7943 * frame.h: Update comments.
7944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7945 * x86-64-tdep.c (x86_64_init_abi): Update.
7946 * sparc-tdep.c (sparc_gdbarch_init): Update.
7947 * sh-tdep.c (sh_gdbarch_init): Update.
7948 * mips-tdep.c (mips_gdbarch_init): Update.
7949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7950 * cris-tdep.c (cris_gdbarch_init): Update.
7951 * ia64-tdep.c (ia64_gdbarch_init): Update.
7952 * frame.c (frame_register): Update.
7953 (get_saved_register): Update.
7954 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7956 2003-03-13 Andrew Cagney <cagney@redhat.com>
7958 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7959 * gdbarch.h, gdbarch.c: Regenerate.
7960 * valops.c (hand_function_call): Update comment.
7961 * stack.c (return_command): Update comment.
7962 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7963 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7965 * x86-64-tdep.c (x86_64_init_abi): Update.
7966 * vax-tdep.c (vax_gdbarch_init): Update.
7967 * v850-tdep.c (v850_gdbarch_init): Update.
7968 * sparc-tdep.c (sparc_gdbarch_init): Update.
7969 * sh-tdep.c (sh_gdbarch_init): Update.
7970 * s390-tdep.c (s390_gdbarch_init): Update.
7971 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7972 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7973 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7974 * mips-tdep.c (mips_gdbarch_init): Update.
7975 * mcore-tdep.c (mcore_gdbarch_init): Update.
7976 * m68k-tdep.c (m68k_gdbarch_init): Update.
7977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7978 * ia64-tdep.c (ia64_gdbarch_init): Update.
7979 * i386-tdep.c (i386_gdbarch_init): Update.
7980 * hppa-tdep.c (hppa_gdbarch_init): Update.
7981 * h8300-tdep.c (h8300_gdbarch_init): Update.
7982 * frv-tdep.c (frv_gdbarch_init): Update.
7983 * cris-tdep.c (cris_gdbarch_init): Update.
7984 * avr-tdep.c (avr_gdbarch_init): Update.
7985 * arm-tdep.c (arm_gdbarch_init): Update.
7986 * alpha-tdep.c (alpha_gdbarch_init): Update.
7988 2003-03-13 Andrew Cagney <cagney@redhat.com>
7990 * frame.c (legacy_frame_p): New function.
7991 (get_prev_frame): Use legacy_frame_p.
7992 * frame.h (legacy_frame_p): Declare.
7994 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7996 * MAINTAINERS (write after approval): Alphabetically
7999 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8001 * MAINTAINERS (write after approval): Add myself.
8003 2003-03-12 Andrew Cagney <cagney@redhat.com>
8005 * frame.c (get_prev_frame): Rename the frame parameter to
8007 (get_next_frame, legacy_get_prev_frame): Ditto.
8009 2003-03-12 Andrew Cagney <cagney@redhat.com>
8011 * frame.c (get_current_frame): Check target_has_registers before
8012 checking target_has_stack.
8013 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8014 instead of deprecated_selected_frame.
8015 * findvar.c (value_of_register): Pass "frame", not
8016 deprecated_selected_frame, to value_of_builtin_reg.
8018 2003-03-12 Andrew Cagney <cagney@redhat.com>
8020 * regcache.c (regcache_cooked_write_signed): New function.
8021 (regcache_cooked_write_unsigned): New function.
8022 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8023 (regcache_cooked_read_signed): Fix regnum in range assertion.
8024 * regcache.h (regcache_cooked_write_signed): Declare.
8025 (regcache_cooked_write_unsigned): Declare.
8027 2003-03-12 Andrew Cagney <cagney@redhat.com>
8029 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8030 * gdbarch.h, gdbarch.c: Re-generate.
8031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8032 * x86-64-tdep.h: Update.
8033 * x86-64-tdep.c (x86_64_init_abi): Update.
8034 * v850-tdep.c (v850_gdbarch_init): Update.
8035 * sparc-tdep.c (sparc_gdbarch_init): Update.
8036 * sh-tdep.c (sh_gdbarch_init): Update.
8037 * s390-tdep.c (s390_gdbarch_init): Update.
8038 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8039 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8040 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8041 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8042 * mips-tdep.c (mips_gdbarch_init): Update.
8043 * mcore-tdep.c (mcore_gdbarch_init): Update.
8044 * m68k-tdep.c (m68k_gdbarch_init): Update.
8045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8046 * ia64-tdep.c (ia64_gdbarch_init): Update.
8047 * i386-tdep.c (i386_gdbarch_init): Update.
8048 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8049 * hppa-tdep.c (hppa_gdbarch_init): Update.
8050 * h8300-tdep.c (h8300_gdbarch_init): Update.
8051 * frv-tdep.c (frv_gdbarch_init): Update.
8052 * cris-tdep.c (cris_gdbarch_init): Update.
8053 * avr-tdep.c (avr_gdbarch_init): Update.
8054 * arm-tdep.c (arm_gdbarch_init): Update.
8055 * alpha-tdep.c (alpha_gdbarch_init): Update.
8056 * sh-tdep.c (sh_init_extra_frame_info): Update.
8057 (sh64_init_extra_frame_info): Update.
8058 * ns32knbsd-nat.c (frame_num_args): Update.
8059 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8060 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8061 (xstormy16_frame_chain_valid): Update.
8062 * vax-tdep.c (vax_saved_pc_after_call): Update.
8063 * v850-tdep.c (v850_frame_chain): Update.
8064 (v850_pop_frame): Update.
8065 (v850_init_extra_frame_info): Update.
8066 * sparc-tdep.c (setup_arbitrary_frame): Update.
8067 * ns32k-tdep.c (umax_frame_num_args): Update.
8068 * s390-tdep.c (s390_pop_frame_regular): Update.
8069 * mn10300-tdep.c (mn10300_frame_chain): Update.
8070 (mn10300_pop_frame_regular): Update.
8071 (mn10300_init_extra_frame_info): Update.
8072 * mips-tdep.c (mips_init_frame_pc_first): Update.
8073 (mips_frame_chain): Update.
8074 (mips_pop_frame): Update.
8075 * mcore-tdep.c (mcore_frame_chain): Update.
8076 (mcore_pop_frame): Update.
8077 (mcore_init_extra_frame_info): Update.
8078 * arch-utils.c (init_frame_pc_default): Update.
8079 * m68k-tdep.c (isi_frame_num_args): Update.
8080 (delta68_frame_num_args): Update.
8081 (news_frame_num_args): Update.
8082 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8083 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8084 (alpha_frame_chain): Update.
8085 (alpha_pop_frame): Update.
8086 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8087 (hppa_init_extra_frame_info): Update.
8088 (hppa_frame_chain): Update.
8089 (hppa_frame_chain_valid): Update.
8090 * cris-tdep.c (cris_init_extra_frame_info): Update.
8091 * avr-tdep.c (avr_init_extra_frame_info): Update.
8092 * arm-tdep.c (arm_frame_chain_valid): Update.
8093 (arm_init_extra_frame_info): Update.
8094 (arm_pop_frame): Update.
8095 * frame.c (frame_pc_unwind): Update.
8096 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8097 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8098 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8099 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8100 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8101 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8103 2003-03-12 Andrew Cagney <cagney@redhat.com>
8105 Eliminate the need for POP_FRAME.
8106 * frame.c (do_frame_unwind_register): New function.
8107 (frame_pop): When no POP_FRAME, pop the frame using register
8108 unwind and a scratch regcache.
8109 (frame_saved_regs_pop): Delete function.
8110 (trad_frame_unwinder): Update.
8111 * d10v-tdep.c (d10v_frame_pop): Delete function.
8112 (d10v_frame_unwind): Update.
8113 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8114 (sentinel_frame_unwinder): Update.
8115 * dummy-frame.c (dummy_frame_pop): Delete function.
8116 (dummy_frame_unwind): Update.
8117 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8118 (struct frame_unwind): Update.
8120 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8122 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8123 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8124 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8125 Do range checks on register number obtained from debugging info.
8126 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8127 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8128 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8130 (do_fp_register_row): Fix typo which caused double type to be
8131 used when attempting to unpack a float.
8133 2003-03-11 J. Brobecker <brobecker@gnat.com>
8135 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8137 2003-03-11 Andrew Cagney <cagney@redhat.com>
8139 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8140 frame. Problem found by Corinna Vinschen.
8142 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8144 * doublest.c (floatformat_from_length): Accept also
8145 the real size of 'long double' type.
8147 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8149 From Klee Dienes <kdienes@apple.com>:
8150 * breakpoint.c (bpstat_copy): Copy the command lines as well
8151 as the old value, to match what is freed in bpstat_clear.
8153 2003-03-10 David Carlton <carlton@math.stanford.edu>
8155 * minsyms.c (add_minsym_to_hash_table): Replace
8156 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8157 (compare_minimal_symbols, compact_minimal_symbols)
8158 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8159 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8160 of DEPRECATED_SYMBOL_MATCHES_NAME.
8161 (lookup_minimal_symbol_solib_trampoline): Ditto.
8163 2003-03-10 Andrew Cagney <cagney@redhat.com>
8165 * regcache.h (regcache_cooked_read_ftype): Define.
8166 (regcache_save, regcache_restore): Add a cooked_read parameter.
8167 * regcache.c (regcache_save, regcache_restore): Update.
8168 (do_cooked_read): New function.
8169 (regcache_cpy): Pass do_cooked_read to regcache_save and
8172 2003-03-10 Andrew Cagney <cagney@redhat.com>
8174 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8175 * gdbarch.h, gdbarch.c: Re-generate.
8176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8177 * x86-64-tdep.h: Update.
8178 * x86-64-tdep.c (x86_64_init_abi): Update.
8179 * v850-tdep.c (v850_gdbarch_init): Update.
8180 * sparc-tdep.c (sparc_gdbarch_init): Update.
8181 * sh-tdep.c (sh_gdbarch_init): Update.
8182 * s390-tdep.c (s390_gdbarch_init): Update.
8183 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8184 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8185 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8186 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8187 * mips-tdep.c (mips_gdbarch_init): Update.
8188 * mcore-tdep.c (mcore_gdbarch_init): Update.
8189 * m68k-tdep.c (m68k_gdbarch_init): Update.
8190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8191 * ia64-tdep.c (ia64_gdbarch_init): Update.
8192 * i386-tdep.c (i386_gdbarch_init): Update.
8193 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8194 * hppa-tdep.c (hppa_gdbarch_init): Update.
8195 * h8300-tdep.c (h8300_gdbarch_init): Update.
8196 * frv-tdep.c (frv_gdbarch_init): Update.
8197 * cris-tdep.c (cris_gdbarch_init): Update.
8198 * avr-tdep.c (avr_gdbarch_init): Update.
8199 * arm-tdep.c (arm_gdbarch_init): Update.
8200 * alpha-tdep.c (alpha_gdbarch_init): Update.
8201 * sh-tdep.c (sh_init_extra_frame_info): Update.
8202 (sh64_init_extra_frame_info): Update.
8203 * ns32knbsd-nat.c (frame_num_args): Update.
8204 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8205 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8206 (xstormy16_frame_chain_valid): Update.
8207 * vax-tdep.c (vax_saved_pc_after_call): Update.
8208 * v850-tdep.c (v850_frame_chain): Update.
8209 (v850_pop_frame): Update.
8210 (v850_init_extra_frame_info): Update.
8211 * sparc-tdep.c (setup_arbitrary_frame): Update.
8212 * ns32k-tdep.c (umax_frame_num_args): Update.
8213 * s390-tdep.c (s390_pop_frame_regular): Update.
8214 * mn10300-tdep.c (mn10300_frame_chain): Update.
8215 (mn10300_pop_frame_regular): Update.
8216 (mn10300_init_extra_frame_info): Update.
8217 * mips-tdep.c (mips_init_frame_pc_first): Update.
8218 (mips_frame_chain): Update.
8219 (mips_pop_frame): Update.
8220 * mcore-tdep.c (mcore_frame_chain): Update.
8221 (mcore_pop_frame): Update.
8222 (mcore_init_extra_frame_info): Update.
8223 * arch-utils.c (init_frame_pc_default): Update.
8224 * m68k-tdep.c (isi_frame_num_args): Update.
8225 (delta68_frame_num_args): Update.
8226 (news_frame_num_args): Update.
8227 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8228 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8229 (alpha_frame_chain): Update.
8230 (alpha_pop_frame): Update.
8231 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8232 (hppa_init_extra_frame_info): Update.
8233 (hppa_frame_chain): Update.
8234 (hppa_frame_chain_valid): Update.
8235 * cris-tdep.c (cris_init_extra_frame_info): Update.
8236 * avr-tdep.c (avr_init_extra_frame_info): Update.
8237 * arm-tdep.c (arm_frame_chain_valid): Update.
8238 (arm_init_extra_frame_info): Update.
8239 (arm_pop_frame): Update.
8240 * frame.c (frame_pc_unwind): Update.
8241 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8242 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8243 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8244 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8245 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8246 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8248 2003-03-10 Andrew Cagney <cagney@redhat.com>
8250 * gdbarch.sh (gdbarch_unwind_pc): New method.
8251 * gdbarch.h, gdbarch.c: Regenerate.
8252 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8253 but use read_pc and FRAME_SAVED_PC as fall backs.
8254 (frame_saved_regs_pc_unwind): Delete function.
8255 (trad_frame_unwinder): Update.
8256 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8257 (struct frame_unwind): Update.
8258 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8259 (dummy_frame_unwind): Update.
8260 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8261 (sentinel_frame_unwinder): Update.
8262 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8263 (d10v_frame_unwind): Update.
8264 (d10v_unwind_pc): New function.
8265 (d10v_gdbarch_init): Set unwind_pc.
8267 2003-03-10 Andrew Cagney <cagney@redhat.com>
8269 * gdbarch.h: Re-generate.
8271 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8273 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8276 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8278 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8280 2003-03-08 Andrew Cagney <cagney@redhat.com>
8282 * cli-out.c: Update copyright.
8283 (cli_out_data): Define typedef. Use instead of ui_out_data.
8285 2003-03-08 Andrew Cagney <cagney@redhat.com>
8287 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8290 2003-03-07 Andrew Cagney <cagney@redhat.com>
8292 * gdbarch.sh: Don't generate two macro definitions when an
8293 undefined macro taking no arguments.
8294 * gdbarch.h: Regenerate.
8296 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8298 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8299 (x86_64_unwind_dummy_id): New functions.
8300 (x86_64_init_abi): Register these two new functions.
8302 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8304 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8305 (x86_64_skip_prologue): Move prologue detection to
8307 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8309 2003-03-05 Andrew Cagney <cagney@redhat.com>
8311 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8312 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8313 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8314 to use unwind_dummy_id when a dummy frame.
8315 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8317 * gdbarch.h, gdbarch.c: Regneerate.
8319 2003-03-05 Andrew Cagney <cagney@redhat.com>
8321 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8322 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8323 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8326 2003-03-05 Andrew Cagney <cagney@redhat.com>
8328 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8329 (struct d10v_unwind_cache): Delete field "frameless". Replace
8330 "next_addr" with "sp_offset". Add "r11_offset".
8331 (d10v_frame_unwind_cache): Update.
8332 (prologue_find_regs): Update. When "mv r11, sp", save the
8333 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8334 RN was saved in r11_offset.
8336 2003-03-05 Andrew Cagney <cagney@redhat.com>
8338 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8339 cached PC value in the next frame.
8341 2003-03-05 Andrew Cagney <cagney@redhat.com>
8343 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8344 "id_unwind_cache" with "id".
8345 (frame_id_unwind): Delete declaration.
8346 * frame.c (frame_id_unwind): Delete function.
8347 (get_prev_frame): Call the frame id unwind method directly. Store
8348 the returned next frame's ID value in NEXT_FRAME. Note that there
8349 is a problem with the wrong unwind ID being called with the wrong
8352 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8354 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8356 2003-03-05 James Ingham <jingham@apple.com>
8357 Daniel Jacobowitz <drow@mvista.com>
8359 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8360 (auto_cp_abi): New variable.
8361 (current_cp_abi, num_cp_abis): Make static.
8362 (CP_ABI_MAX): Define.
8363 (cp_abis): Turn into an array.
8364 (value_virtual_fn_field): Fix formatting.
8365 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8367 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8368 (list_cp_abis, _initialize_cp_abi): New functions.
8369 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8370 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8371 switch_to_cp_abi. Update prototype for register_cp_abi.
8372 * Makefile.in (cp-abi.o): Update dependencies.
8373 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8374 instead of switch_to_cp_abi.
8375 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8377 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8379 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8381 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8383 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8384 * dwarf2loc.c: Include "regcache.h".
8385 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8387 * Makefile.in (dwarf2loc.o): Update dependencies.
8389 2003-03-04 Theodore A. Roth <troth@openavr.org>
8391 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8392 number of io registers reported by remote target is not a multiple of
8395 2003-03-04 David Carlton <carlton@math.stanford.edu>
8397 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8398 (lookup_symbol_aux_psymtabs): Update call to
8399 lookup_partial_symbol.
8400 (lookup_transparent_type, find_main_psymtab)
8401 (make_symbol_overload_list): Ditto.
8403 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8405 * MAINTAINERS (Write after approval): Update my email address.
8407 2003-03-03 Andrew Cagney <cagney@redhat.com>
8409 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8410 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8411 predicate. Replace MAX_REGISTER_RAW_SIZE.
8412 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8413 MAX_REGISTER_VIRTUAL_SIZE.
8414 * regcache.c (legacy_max_register_raw_size): New function.
8415 (legacy_max_register_virtual_size): New function.
8416 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8417 (MAX_REGISTER_RAW_SIZE): Define.
8418 (legacy_max_register_raw_size): Declare.
8419 (legacy_max_register_virtual_size): Declare.
8420 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8421 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8422 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8423 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8424 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8425 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8426 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8427 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8428 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8430 * vax-tdep.c (vax_gdbarch_init): Update.
8431 * v850-tdep.c (v850_gdbarch_init): Update.
8432 * sparc-tdep.c (sparc_gdbarch_init): Update.
8433 * sh-tdep.c (sh_gdbarch_init): Update.
8434 * s390-tdep.c (s390_gdbarch_init): Update.
8435 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8436 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8437 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8438 * mips-tdep.c (mips_gdbarch_init): Update.
8439 * mcore-tdep.c (mcore_gdbarch_init): Update.
8440 * m68k-tdep.c (m68k_gdbarch_init): Update.
8441 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8442 * ia64-tdep.c (ia64_gdbarch_init): Update.
8443 * i386-tdep.c (i386_gdbarch_init): Update.
8444 * hppa-tdep.c (hppa_gdbarch_init): Update.
8445 * h8300-tdep.c (h8300_gdbarch_init): Update.
8446 * frv-tdep.c (frv_gdbarch_init): Update.
8447 * cris-tdep.c (cris_gdbarch_init): Update.
8448 * avr-tdep.c (avr_gdbarch_init): Update.
8449 * arm-tdep.c (arm_gdbarch_init): Update.
8450 * alpha-tdep.c (alpha_gdbarch_init): Update.
8451 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8452 max_register_raw_size or max_register_virtual_size.
8454 2003-03-03 David Carlton <carlton@math.stanford.edu>
8456 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8457 SYMBOL_MATCHES_NAME, add comment.
8458 (SYMBOL_MATCHES_NATURAL_NAME): New.
8459 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8460 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8461 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8462 * symtab.c (lookup_partial_symbol): Use
8463 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8465 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8466 SYMBOL_MATCHES_NAME.
8469 2003-03-03 David Carlton <carlton@math.stanford.edu>
8471 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8472 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8473 by regexp matching against SYMBOL_NATURAL_NAME.
8475 2003-03-03 David Carlton <carlton@math.stanford.edu>
8477 * linespec.c (find_method): Extract code into collect_methods.
8478 (collect_methods): New.
8480 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8482 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8485 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8486 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8488 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8490 * arch-utils.c (generic_register_byte): Fix to use the loop index
8491 and not regnum when summing the size of all registers up to regnum.
8493 2003-03-01 Andrew Cagney <cagney@redhat.com>
8495 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8496 FRAME_INIT_SAVED_REGS.
8497 * gdbarch.h, gdbarch.c: Regenerate.
8498 * stack.c (frame_info): Update.
8499 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8500 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8501 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8502 * ns32k-tdep.c (ns32k_pop_frame): Update.
8503 * mips-tdep.c (mips_pop_frame): Update.
8504 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8505 * ia64-tdep.c (ia64_frame_chain): Update.
8506 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8507 (ia64_frameless_function_invocation): Update.
8508 (ia64_init_extra_frame_info): Update.
8509 (ia64_pop_frame_regular): Update.
8510 * frame.h (struct frame_info): Update comment.
8511 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8512 * frame.c (frame_saved_regs_register_unwind): Update.
8513 (frame_saved_regs_register_unwind): Update.
8514 (deprecated_generic_get_saved_register): Update.
8515 * cris-tdep.c: Update comment.
8516 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8519 * x86-64-tdep.c (x86_64_init_abi): Update.
8520 * vax-tdep.c (vax_gdbarch_init): Update.
8521 * v850-tdep.c (v850_gdbarch_init): Update.
8522 * sparc-tdep.c (sparc_gdbarch_init): Update.
8523 * sh-tdep.c (sh_gdbarch_init): Update.
8524 * s390-tdep.c (s390_gdbarch_init): Update.
8525 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8526 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8527 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8528 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8529 * mips-tdep.c (mips_gdbarch_init): Update.
8530 * mcore-tdep.c (mcore_gdbarch_init): Update.
8531 * m68k-tdep.c (m68k_gdbarch_init): Update.
8532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8533 * ia64-tdep.c (ia64_gdbarch_init): Update.
8534 * i386-tdep.c (i386_gdbarch_init): Update.
8535 * frv-tdep.c (frv_gdbarch_init): Update.
8536 * avr-tdep.c (avr_gdbarch_init): Update.
8537 * arm-tdep.c (arm_gdbarch_init): Update.
8538 * alpha-tdep.c (alpha_gdbarch_init): Update.
8540 2003-03-01 Andrew Cagney <cagney@redhat.com>
8542 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8543 option enum and switch. When no windows, set the interpreter to
8546 2003-03-01 Andrew Cagney <cagney@redhat.com>
8548 * main.c (captured_main): Replace magic option characters with an
8551 2003-03-01 Andrew Cagney <cagney@redhat.com>
8553 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8554 INIT_EXTRA_FRAME_INFO.
8555 * gdbarch.h, gdbarch.c: Regenerate.
8556 * arm-tdep.c: Update comments.
8557 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8558 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8559 * frame.h, avr-tdep.c: Ditto.
8560 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8561 (create_new_frame, legacy_get_prev_frame): Ditto.
8562 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8563 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8565 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8566 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8567 * v850-tdep.c (v850_gdbarch_init): Ditto.
8568 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8569 * sh-tdep.c (sh_gdbarch_init): Ditto.
8570 * s390-tdep.c (s390_gdbarch_init): Ditto.
8571 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8572 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8573 * mips-tdep.c (mips_gdbarch_init): Ditto.
8574 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8576 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8577 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8578 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8579 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8580 * frv-tdep.c (frv_gdbarch_init): Ditto.
8581 * cris-tdep.c (cris_gdbarch_init): Ditto.
8582 * avr-tdep.c (avr_gdbarch_init): Ditto.
8583 * arm-tdep.c (arm_gdbarch_init): Ditto.
8584 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8585 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8587 2003-03-01 Andrew Cagney <cagney@redhat.com>
8589 * gdbarch.sh (register_type): New function with predicate.
8590 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8591 * gdbarch.h, gdbarch.c: Re-generate.
8592 * arch-utils.c (generic_register_byte): Use generic_register_size.
8593 (generic_register_size): When available, use
8594 gdbarch_register_type.
8595 * regcache.c (init_regcache_descr): When available, initialize the
8596 register type array using gdbarch_register_type. If the
8597 architecture supplies gdbarch_register_type, do not use the legacy
8599 * d10v-tdep.c (d10v_register_type): Replace
8600 d10v_register_virtual_type.
8601 (d10v_gdbarch_init): Set register_type instead of
8602 register_virtual_type.
8604 2003-03-01 Andrew Cagney <cagney@redhat.com>
8606 * Makefile.in (ax-gdb.o): Update dependencies.
8607 * ax-gdb.c: Include "regcache.h".
8608 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8609 * findvar.c (value_of_register): Ditto.
8610 * infcmd.c (default_print_registers_info): Ditto.
8612 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8614 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8615 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8617 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8619 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8622 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8624 * Makefile.in (dwarf2loc.o): Update dependencies.
8625 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8626 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8627 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8628 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8629 (locexpr_tracepoint_var_ref): New function.
8630 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8632 2003-02-28 Andrew Cagney <cagney@redhat.com>
8634 * regcache.c (register_size): New function.
8635 * regcache.h (register_size): Declare
8636 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8637 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8639 2003-02-28 David Carlton <carlton@math.stanford.edu>
8641 * linespec.c (decode_compound): Extract code into find_method.
8644 2003-02-28 J. Brobecker <brobecker@gnat.com>
8646 * Makefile.in: Add rules to build and link in observer.o.
8648 2003-02-27 J. Brobecker <brobecker@gnat.com>
8650 * observer.c: Minor comments edits.
8652 2003-02-27 J. Brobecker <brobecker@gnat.com>
8654 * observer.h, observer.c: New file.
8656 2003-02-27 Andrew Cagney <cagney@redhat.com>
8658 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8660 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8662 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8663 (M6812_OP_STS_EXT): Likewise.
8664 (m6811_prologue): Use the above to recognize prologue.
8665 (m6812_prologue): Likewise.
8667 2003-02-27 David Carlton <carlton@math.stanford.edu>
8669 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8671 (compare_psymbols): Ditto.
8672 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8674 2003-02-27 Michael Snyder <msnyder@redhat.com>
8676 * f-lang.c (build_fortran_types): New function.
8677 (_initialize_f_language): Gdbarch-register built-in fortran types.
8678 * doublest.c (extract_floating): Fix warning text.
8680 2003-02-27 Andrew Cagney <cagney@redhat.com>
8682 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8683 predicate. Replaces PUSH_DUMMY_FRAME.
8684 * gdbarch.h, gdbarch.c: Regnerate.
8685 * valops.c (hand_function_call): Update. Call
8686 generic_push_dummy_frame directly.
8687 * vax-tdep.c (vax_gdbarch_init): Update.
8688 * sparc-tdep.c (sparc_gdbarch_init): Update.
8689 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8690 * m68k-tdep.c (m68k_gdbarch_init): Update.
8691 * hppa-tdep.c (hppa_gdbarch_init): Update.
8692 * alpha-tdep.c (alpha_gdbarch_init): Update.
8693 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8694 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8695 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8697 push_dummy_frame to generic_push_dummy_frame.
8698 * v850-tdep.c (v850_gdbarch_init): Ditto.
8699 * sh-tdep.c (sh_gdbarch_init): Ditto.
8700 * s390-tdep.c (s390_gdbarch_init): Ditto.
8701 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8702 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8703 * mips-tdep.c (mips_gdbarch_init): Ditto.
8704 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8706 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8707 * i386-tdep.c (i386_gdbarch_init): Ditto.
8708 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8709 * frv-tdep.c (frv_gdbarch_init): Ditto.
8710 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8711 * cris-tdep.c (cris_gdbarch_init): Ditto.
8712 * avr-tdep.c (avr_gdbarch_init): Ditto.
8713 * arm-tdep.c (arm_gdbarch_init): Ditto.
8715 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8717 * mips-tdep.c (show_mips_abi): New function.
8718 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8719 command ``show mips abi''.
8721 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8723 From Elena Zannoni <ezannoni@redhat.com>
8724 * dbxread.c (process_one_symbol): Only record line 0 if one or
8725 more sline entries have been seen for the function.
8727 2003-02-26 Michael Chastain <mec@shout.net>
8729 * configure: Regenerate with autoconf 000227.
8731 2003-02-26 Michael Chastain <mec@shout.net>
8734 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8735 for old libc5/glibc.
8736 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8738 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8740 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8741 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8743 2003-02-26 Michael Chastain <mec@shout.net>
8745 * configure.in: New variable HAVE_UINTPTR_T.
8746 * configure, config.in: Regenerated.
8748 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8751 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8753 2003-02-25 Andrew Cagney <cagney@redhat.com>
8755 * frame.c (get_prev_frame): Add comment on check for
8756 inside_entry_func. Only check for inside_entry_file when not a
8757 dummy and not a sentinel. Check that the new frame is not inner
8760 2003-02-25 Andrew Cagney <cagney@redhat.com>
8762 * frame.c (frame_debug): New variable.
8763 (_initialize_frame): Add "set/show debug frame" command.
8764 (get_prev_frame): When frame_debug, print reason why unwind
8767 2003-02-25 Michael Chastain <mec@shout.net>
8769 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8770 to avoid uintptr_t definition problems.
8772 2003-02-25 David Carlton <carlton@math.stanford.edu>
8774 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8775 (SYMBOL_LINKAGE_NAME): Ditto.
8776 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8777 SYMBOL_LINKAGE_NAME.
8778 (struct general_symbol_info): Expand comment.
8779 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8780 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8781 (SYMBOL_MATCHES_REGEXP): Ditto.
8782 * symtab.c (symbol_natural_name): New function.
8783 * objfiles.h: Replace all uses of SYMBOL_NAME by
8784 DEPRECATED_SYMBOL_NAME.
8785 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8786 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8787 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8788 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8789 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8790 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8791 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8792 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8793 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8794 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8796 * ada-exp.y: Update copyright.
8797 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8798 * cp-valprint.c: Ditto.
8800 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8802 * infptrace.c (detach): Do not flag error if ptrace detach fails
8803 and errno is set to ESRCH.
8805 2003-02-24 Andrew Cagney <cagney@redhat.com>
8807 * infptrace.c (udot_info): Change type of udot_off to long. Use
8808 paddr when printing udot_off's value.
8810 2003-02-24 David Carlton <carlton@math.stanford.edu>
8812 * symtab.c (make_symbol_overload_list): Only read in partial
8813 symtabs containing a matching partial symbol.
8815 2003-02-24 David Carlton <carlton@math.stanford.edu>
8817 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8818 do the comparison, not strcmp.
8819 * symfile.c (compare_psymbols): Ditto.
8820 * defs.h: Declare strcmp_iw_ordered.
8821 * utils.c (strcmp_iw_ordered): New function.
8823 2003-02-24 Jim Blandy <jimb@redhat.com>
8825 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8826 support, shared libs): Remove my name from here, to better reflect
8829 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8831 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8832 (target_ops): Add to_have_continuable_watchpoint.
8833 * target.c (update_current_target): Add INHERIT line for
8834 to_have_continuable_watchpoint.
8835 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8836 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8837 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8838 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8840 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8842 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8845 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8847 * solib.c (solib_open): Call target defined search function after
8848 failing with solib-search-path.
8849 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8850 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8852 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8854 * MAINTAINERS: Add myself to Write After section.
8856 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8858 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8860 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8862 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8863 (m68hc11_add_reggroups): New function.
8864 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8865 (m68hc11_gdbarch_init): Install the reggroups.
8866 (_initialize_m68hc11_tdep): Initialize them.
8868 2003-02-21 James E Wilson <wilson@tuliptree.org>
8870 * MAINTAINERS: Update my email address.
8872 2003-02-21 David Carlton <carlton@math.stanford.edu>
8874 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8876 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8878 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8879 * symtab.h: Add opaque declarations of struct axs_value and
8881 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8882 (struct location_funcs): New type.
8883 (struct symbol): Add "loc" to aux_value.
8884 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8885 * dwarf2read.c: Include "dwarf2expr.h".
8886 (dwarf2_symbol_mark_computed): New function.
8887 (read_func_scope): Use it.
8888 (var_decode_location): New function.
8889 (new_symbol): Use it.
8890 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8892 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8893 (dwarf2expr_h, dwarf2loc_h): New variables.
8894 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8895 (dwarf2expr.o, dwarf2loc.o): New rules.
8896 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8897 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8899 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8900 * m2-exp.y (yylex): Likewise.
8901 * printcmd.c (address_info, print_frame_args): Likewise.
8902 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8903 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8904 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8905 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8906 * symtab.c (lookup_block_symbol): Likewise.
8908 2003-02-20 Adam Fedor <fedor@gnu.org>
8910 * symtab.h: Remove objc_specific struct
8911 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8912 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8913 Have language_objc use cplus_specific struct.
8915 2003-02-20 Tom Tromey <tromey@redhat.com>
8917 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8918 TYPE_NAME, when printing a String value. PR java/1075.
8920 2003-02-20 Adam Fedor <fedor@gnu.org>
8922 * objc-lang.h (find_methods): Remove declaration.
8923 * objc-lang.c (find_methods): Make static.
8925 2003-02-20 Christopher Faylor <cgf@redhat.com>
8927 * win32-nat.c (get_image_name): Check return value from
8929 (child_xfer_memory): Ditto.
8931 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8933 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8934 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8935 '${exec_prefix}' (in addition to the expansion thereof) as
8937 * configure: Rebuilt.
8939 2003-02-20 David Carlton <carlton@math.stanford.edu>
8941 * symtab.c (search_symbols): Revert the search_symbols part of my
8942 2002-12-23 patch. Add comment.
8944 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8946 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8947 * dbxread.c (elfstab_build_psymtabs): Don't call
8948 install_minimal_symbols.
8949 (stabsect_build_psymtabs): Likewise.
8950 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8952 * somread.c (som_symfile_read): Call install_minimal_symbols
8953 and do_cleanups earlier.
8954 * nlmread.c (nlm_symfile_read): Likewise.
8955 * mdebugread.c (elfmdebug_build_psymtabs): Call
8956 install_minimal_symbols and make appropriate cleanups.
8958 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8960 * solib.c (reload_shared_libraries): New function.
8961 (_initialize_solib): Add callbacks for ``set solib-search-path''
8962 and ``set solib-absolute-prefix''.
8964 2003-02-20 David Carlton <carlton@math.stanford.edu>
8966 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8968 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8969 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8970 * ada-typeprint.c (ada_typedef_print): Ditto.
8971 * ax-gdb.c (gen_var_ref): Ditto.
8972 * breakpoint.c (print_one_breakpoint): Ditto.
8973 * buildsym.c (finish_block): Ditto.
8974 * c-valprint.c (c_val_print): Ditto.
8975 * expprint.c (print_subexp): Ditto.
8976 * findvar.c (locate_var_value): Ditto.
8977 * infcmd.c (jump_command): Ditto.
8978 * linespec.c (decode_line_2, decode_compound): Ditto.
8979 * maint.c (maintenance_translate_address): Ditto.
8980 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8981 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8983 * p-valprint.c (pascal_val_print): Ditto.
8984 * stabsread.c (define_symbol): Ditto.
8985 * stack.c (print_frame, frame_info, print_block_frame_locals)
8986 (print_frame_arg_vars, return_command): Ditto.
8987 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8988 * symmisc.c (print_symbol): Ditto.
8989 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8990 (compare_search_syms, print_symbol_info, print_msymbol_info)
8991 (rbreak_command): Ditto.
8992 * tracepoint.c (tracepoints_info): Ditto.
8993 * typeprint.c (typedef_print): Ditto.
8994 * valops.c (value_of_variable, hand_function_call): Ditto.
8995 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8996 * ada-typeprint.c: Update Copyright.
8997 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8998 * tracepoint.c, cli/cli-cmds.c: Ditto.
9000 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9002 * frame.c (generic_unwind_get_saved_register): Make non-static.
9003 * frame.h (generic_unwind_get_saved_register): Declare.
9004 * mips-tdep.c (read_next_frame_reg): Fetch register from
9005 current regcache when frame is NULL.
9006 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9008 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9009 instead of frame_register_unwind().
9011 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9013 * remote-sim.c (gdbsim_insert_breakpoint)
9014 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9017 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9019 * remote.c (_initialize_remote): Add commands "set/show remote
9020 hardware-watchpoint-limit" and "set/show remote
9021 hardware-breakpoint-limit".
9022 (remote_hw_watchpoint_limit): Initialize to -1.
9023 (remote_hw_breakpoint_limit): Ditto.
9024 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9026 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9028 * coff-pe-read.c: New file - support reading of minimal symbols from a
9029 portable executable using the export table.
9030 * coff-pe-read.h: New file.
9031 * coffread.c: Include coff-pe-read.h.
9032 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9033 debugging symbols found.
9034 * Makefile.in (SFILES): Add coff-pe-read.o.
9035 (coff_pe_read_h): Define.
9036 (COMMON_OBS): Add coff-pe-read.o.
9037 (coffread.o): Add coff_pe_read_h dependency.
9038 (coff-pe-read.o): New target.
9040 2003-02-19 David Carlton <carlton@math.stanford.edu>
9042 * Makefile.in (SFILES): Add block.c.
9044 (COMMON_OBS): Add block.o.
9046 (x86-64-tdep.o): Add $(block_h).
9047 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9048 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9049 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9050 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9051 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9052 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9053 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9054 * value.h: Add opaque declaration for struct block.
9055 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9056 * ada-lang.h: Ditto.
9057 * x86-64-tdep.c: #include "block.h"
9058 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9059 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9060 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9061 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9062 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9063 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9064 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9065 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9066 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9067 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9068 * symtab.c (block_function): Ditto.
9069 (contained_in): Ditto.
9070 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9071 block.h. Add opaque declaration for struct block.
9072 * symtab.h: Move block_function and contained_in declarations to
9073 block.h. Add opaque declarations for struct block, struct
9075 (struct block): Move to block.h.
9076 (struct blockvector): Ditto.
9077 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9078 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9079 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9080 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9081 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9083 * block.c: New file.
9084 * block.h: New file.
9086 2003-02-19 Theodore A. Roth <troth@openavr.org>
9088 * avr-tdep.c (avr_extract_return_value): Remove function.
9089 (avr_store_return_value): Remove function.
9090 (avr_extract_struct_value_address): Remove function.
9091 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9093 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9095 * rs6000-tdep.c: Include "gdb_assert.h".
9096 (registers_e500): Add "acc" and "spefscr".
9097 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9098 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9099 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9101 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9103 2003-02-18 Keith Seitz <keiths@redhat.com>
9105 * Makefile.in: Add gdbtk-interps.c.
9107 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9109 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9110 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9112 2003-02-18 Andrew Cagney <cagney@redhat.com>
9114 * symtab.h (struct objfile): Add opaque declaration.
9116 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9118 From Jim Ingham <jingham@apple.com>:
9119 * dbxread.c (process_one_symbol): Use last_function_start rather
9120 than function_start_offset to find the real beginning of the
9121 current function. The latter is just the text section offset on
9122 some systems, the former is always the real function start.
9124 2003-02-17 Andrew Cagney <cagney@redhat.com>
9126 * configure.in: Revert ${target} != ${host}.
9128 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9130 * configure.in (Makefile): Use the test ${target} != ${host},
9131 instead of the absence of the "nm.h" file, to determine of the
9132 configuration non-native.
9133 * configure: Regenerate.
9135 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9137 From Brian Ford <ford@vss.fsi.com>
9139 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9140 conditionalize tui_active test.
9141 (lookup_cmd_1): Ditto.
9143 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9145 * configure.in: Add check for _etext.
9146 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9148 * config.in, configure: regenerated.
9150 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9152 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9154 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9156 * main.c (tui_version): Delete variable.
9157 (captured_main): When --tui, set interpreter_p to "tui" instead of
9158 enabling tui_version.
9159 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9161 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9162 * cli/cli-cmds.c (disassemble_command): Ditto.
9163 * defs.h (tui_version): Delete declaration.
9164 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9165 (tui-interp.o): Add rules.
9166 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9168 2003-02-14 Christopher Faylor <cgf@redhat.com>
9170 * win32-nat.c (register_loaded_dll): Correctly set address range for
9173 2003-02-12 Jason Molenda (jmolenda@apple.com)
9175 * symmisc.c (print_objfile_statistics): Include information about
9176 the number of psymtabs and symtabs in each object file.
9178 2003-02-13 Keith R Seitz <keiths@redhat.com>
9180 * main.h (struct captured_main_args): Add interpreter_p.
9181 * main.c (captured_main): Initialize interpreter_p from context.
9182 * gdb.c (main): Set interpreter_p argument.
9183 * Makefile.in (gdb.o): Add dependency for interps.h.
9185 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9187 * event-top.c (cli_command_loop): Delete declaration.
9188 (_initialize_event_loop): Delete function setting event_loop_hook.
9189 * event-top.h (cli_command_loop): Declare. Update copyright.
9190 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9191 * interps.c (current_interp_command_loop): When event_loop_p, call
9194 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9196 * interps.h (interp_command_loop_ftype): Change return type to
9199 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9201 * x86-64-tdep.c (x86_64_extract_return_value)
9202 (x86_64_store_return_value): Use regcache instead of regbuf.
9203 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9204 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9206 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9208 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9209 * aclocal.m4: Regenerate.
9210 * configure: Regenerate.
9212 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9213 TCL_LD_SEARCH_FLAGS.
9215 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9217 * dwarf2cfi.c: Reindented.
9219 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9221 * interps.c (clear_interpreter_hooks): Convert function definition
9224 2003-02-07 David Carlton <carlton@math.stanford.edu>
9226 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9228 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9230 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9231 (struct type): ...to here.
9232 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9234 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9235 (replace_type): Set length on all type variants for a given type.
9237 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9239 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9241 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9243 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9245 * Makefile.in (symm-nat.o): Update dependencies.
9246 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9247 (lynx-nat.o, ia64-linux-nat.): Ditto.
9248 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9249 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9250 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9252 * Makefile.in (inflow_h): Define.
9253 (procfs.o, inflow.o, procfs.o): Update dependencies.
9254 * inftarg.c (child_stop): Delete extern declaration of
9255 inferior_process_group. Include "inflow.h".
9256 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9257 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9258 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9259 (our_process_group, inferior_process_group): Extern declarations.
9261 * procfs.c: Include "gdb_assert.h".
9263 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9264 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9265 * jv-typeprint.c (java_type_print_base): Ditto.
9266 * typeprint.c (typedef_print): Eliminate STREQ.
9267 * cli/cli-script.c (define_command, define_command): Ditto.
9268 * main.c (captured_main): Ditto.
9269 * values.c (lookup_internalvar): Ditto.
9270 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9271 within `if' conditional.
9272 * linespec.c (decode_line_2): Ditto.
9273 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9274 (bfd_openw_with_cleanup): Ditto.
9276 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9278 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9279 legacy_extract_return_value and store_return_value to
9280 legacy_return_value.
9282 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9284 * win32-nat.c (get_relocated_section_addrs): New function. Find
9285 section load addresses for symbol handling in relocated DLLs.
9286 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9288 2003-02-05 Fred Fish <fnf@intrinsity.com>
9290 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9292 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9294 (angel_RDI_info): Ditto.
9295 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9297 (threads_continue_all_with_signals): Ditto.
9299 2003-02-05 Jim Ingham <jingham@apple.com>
9300 Keith Seitz <keiths@redhat.com>
9301 Elena Zannoni <ezannoni@redhat.com>
9302 Andrew Cagney <ac131313@redhat.com>
9304 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9305 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9306 (SUBDIR_MI_OBS): Add "mi-interp.o".
9307 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9308 (SFILES): Add "interps.c".
9309 (COMMON_OBS): Add "interps.o".
9310 (interps_h, mi_main_h): Define.
9311 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9312 (mi-main.o, main.o, event-top.o): Update dependencies.
9313 * cli/cli-interp.c: New file.
9314 * interps.h, interps.c: New files.
9315 * top.c: (gdb_init): Don't install the default interpreter, handed
9317 * main.c: Include "interps.h".
9318 (interpreter_p): Note that it should malloc'ed.
9319 (captured_command_loop): Call current_interp_command_loop.
9320 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9321 xfree and xstrdup when updating interpreter_p. Install the
9322 default interpreter. Add hack to stop mi1's copyright notice
9324 * event-top.h (gdb_setup_readline): Declare.
9325 (gdb_disable_readline): Declare.
9326 * event-top.c: Include "interps.h".
9327 (display_gdb_prompt): Call current_interp_display_prompt_p.
9328 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9329 gdb_stdlog, and gdb_stdtarg.
9330 (_initialize_event_loop): Don't call gdb_setup_readline.
9331 * cli-out.c (cli_out_set_stream): New function.
9332 * cli-out.h (cli_out_set_stream): Declare.
9334 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9336 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9337 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9338 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9339 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9340 config/i386/i386v42mp.mt: Removed.
9342 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9344 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9347 2003-02-05 Michael Chastain <mec@shout.net>
9349 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9350 2.12.1 and earlier versions.
9352 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9354 Remove orphaned hosts, targets and files.
9355 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9356 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9357 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9358 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9359 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9360 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9361 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9362 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9363 * config/sparc/tm-sp64sim.h: Delete.
9364 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9366 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9367 mips*-dec-mach3* targets.
9369 2003-02-04 Michael Chastain <mec@shout.net>
9371 * NEWS: Fix typo: sepcifying -> specifying.
9373 2003-02-04 Michael Chastain <mec@shout.net>
9375 * dwarfread.c: Add documentation on the state of dwarf-1,
9376 looking towards obsoletion.
9378 2003-02-03 Michael Chastain <mec@shout.net>
9380 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9381 gdb/testsuite/gdb.c++/pr-1023.exp.
9383 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9385 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9386 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9388 * utils.c (init_page_info): Delete reference to MPW in comments.
9389 * main.c (captured_main): Delete #ifdef MPW.
9391 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9393 * NEWS: Note that the m32r-*-elf* is obsolete.
9394 * monitor.c (monitor_expect): Obsolete reference to m32r.
9395 * configure.tgt: Mark m32r-*-elf* as obsolete.
9396 * MAINTAINERS: Mark m32k as obsolete.
9397 * m32r-rom.c: Obsolete file.
9398 * config/m32r/m32r.mt: Obsolete file.
9399 * config/m32r/tm-m32r.h: Obsolete file.
9400 * m32r-stub.c: Obsolete file.
9401 * m32r-tdep.c: Obsolete file.
9403 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9405 * NEWS: Mention that the z8k-zilog-none is obsolete.
9406 * MAINTAINERS: Mark z8k as obsolete.
9407 * configure.tgt: Obsolete the z8k-*-coff* target.
9408 * config/z8k/z8k.mt: Obsolete file.
9409 * config/z8k/tm-z8k.h: Obsolete file.
9410 * z8k-tdep.c: Obsolete file.
9412 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9414 * NEWS: Mention that the mn10200-elf is obsolete.
9415 * configure.tgt: Obsolete mn10200-*-* target.
9416 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9417 mention that the mn10200 is obsolete.
9418 * breakpoint.h: Ditto.
9419 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9420 * config/mn10200/mn10200.mt: Obsolete file.
9421 * config/mn10200/tm-mn10200.h: Obsolete file.
9422 * mn10200-tdep.c: Obsolete file.
9424 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9426 * MAINTAINERS: Mark h8500 as obsolete.
9427 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9428 * findvar.c (value_from_register): Ditto.
9429 * h8500-tdep.c: Mark file as obsolete.
9430 * config/h8500/h8500.mt: Ditto.
9431 * config/h8500/tm-h8500.h: Ditto.
9432 * NEWS: Mention that h8500 is obsolete.
9434 2003-02-04 David Carlton <carlton@math.stanford.edu>
9436 * objfiles.c (allocate_objfile): Always set name. Add comment at
9438 * jv-lang.c (get_dynamics_objfile): Add comment.
9440 2003-02-04 David Carlton <carlton@math.stanford.edu>
9442 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9443 * printcmd.c (build_address_symbolic): Replace uses of
9444 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9445 SYMBOL_NAME, and asm_demangle.
9448 2003-02-04 David Carlton <carlton@math.stanford.edu>
9450 * linespec.c (decode_compound): Extract code into
9452 (lookup_prefix_sym): New function.
9454 2003-02-04 David Carlton <carlton@math.stanford.edu>
9456 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9457 FLOAT_COERCION_BADNESS.
9458 * gdbtypes.c (rank_one_type): Replace all uses of
9459 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9461 2003-02-04 Jim Blandy <jimb@redhat.com>
9463 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9464 section, let dwarf_macinfo_section point to it, not
9467 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9469 Pointed out by Anton Blanchard <anton@samba.org>.
9470 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9471 (ppc_linux_at_sigtramp_return_path): Use it.
9473 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9475 * defs.h (streq): Add prototype.
9476 * utils.c (streq): New function.
9478 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9479 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9480 * mdebugread.c (new_symbol): Likewise.
9481 * stabsread.c (define_symbol): Likewise.
9482 * coffread.c (process_coff_symbol): Likewise.
9483 * dwarfread.c (new_symbol): Likewise.
9485 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9486 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9488 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9489 SYMBOL_INIT_DEMANGLED_NAME.
9490 * objfiles.c: Include "hashtab.h".
9491 (allocate_objfile): Call htab_set_functions_ex for the
9492 demangled_names_hash.
9493 (free_objfile): Call htab_delete for the demangled_names_hash.
9494 * objfiles.h (struct htab): Add declaration.
9495 (struct objfile): Add demangled_names_hash.
9496 * symfile.c: Include "hashtab.h".
9497 (reread_symbols): Call htab_delete for the demangled_names_hash.
9498 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9499 SYMBOL_NAME in the bcache.
9500 * symtab.c: Include "hashtab.h". Update comments.
9501 (create_demangled_names_hash, symbol_set_names): New functions.
9502 (symbol_find_demangled_name): New function, broken out from
9503 symbol_init_demangled_names.
9504 (symbol_init_demangled_names): Use it.
9505 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9506 (SYMBOL_SET_NAMES): New macro.
9507 (symbol_set_names): Add prototype.
9509 2003-02-03 Jim Blandy <jimb@redhat.com>
9511 Use a single, consistent representation for an empty minimal
9512 symbol table in an objfile.
9513 * objfiles.c (terminate_minimal_symbol_table): New function.
9514 (allocate_objfile): Call it.
9515 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9516 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9518 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9519 objfile has minimal symbols, compare minimal_symbol_count to zero,
9520 instead of comparing msymbols with NULL.
9521 * objfiles.c (have_minimal_symbols): Same.
9522 * solib-sunos.c (solib_add_common_symbols): Call
9523 terminate_minimal_symbol_table.
9524 * symfile.c (reread_symbols): Same.
9526 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9528 * s390-tdep.c (s390_address_class_type_flags)
9529 (s390_address_class_type_flags_to_name)
9530 (s390_address_class_name_to_type_flags): New functions.
9531 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9532 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9534 2003-02-03 Michael Snyder <msnyder@redhat.com>
9536 * arm-tdep.c: Fix spell-o in comment.
9538 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9540 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9541 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9542 error messages to contain BFD filename.
9544 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9546 Fix PR gdb/742 gdb/743 gdb/877
9547 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9548 (do_mixed_source_and_assembly): Use
9549 make_cleanup_ui_out_tuple_begin_end and
9550 make_cleanup_ui_out_tuple_begin_end.
9551 (do_mixed_source_and_assembly): Ditto.
9552 * thread.c (do_captured_list_thread_ids): Ditto.
9553 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9554 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9555 ui_out_tuple_end): Delete prototypes.
9556 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9557 ui_out_list_end, ui_out_tuple_end): Delete.
9559 From Kevin Buettner <kevinb@redhat.com>:
9560 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9561 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9562 (do_cleanup_table_end): New functions.
9563 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9564 Use cleanups to invoke_ui_out_tuple_end().
9565 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9566 * cli/cli-setshow.c (cmd_show_list): Use
9567 make_cleanup_ui_out_tuple_begin_end.
9569 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9571 * frame.c (frame_unwind_register): New function.
9572 (frame_unwind_unsigned_register): Use.
9573 (frame_unwind_signed_register): Use.
9574 (frame_read_register): New function.
9575 * frame.h (frame_unwind_register): Declare.
9576 (frame_read_register): Declare.
9578 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9579 and frame_unwind_register instead of read_memory, write_register
9580 and deprecated_write_register_bytes.
9582 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9584 * frame.h: Note that namelen can be negative.
9585 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9588 * NEWS: Mention that the d10v's `regs' command is deprecated.
9589 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9590 (d10v_print_registers_info): New function.
9591 (show_regs): Call d10v_print_registers_info.
9592 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9594 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9596 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9597 lost in the previous patch.
9599 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9601 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9602 * stack.c (print_frame_info_base): Output complete FRAME tuple
9603 for synthesized frames.
9605 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9607 * mips-nat.c (zerobuf): Delete.
9608 (fetch_inferior_registers): Alloc local zerobuf.
9609 (fetch_core_registers): Alloc local zerobuf.
9610 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9611 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9612 * thread-db.c (thread_db_store_registers): Ditto.
9613 * sh-tdep.c (sh_do_register): Ditto.
9614 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9615 * remote-sim.c (gdbsim_store_register): Ditto.
9616 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9617 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9618 * monitor.c (monitor_supply_register): Ditto.
9619 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9620 * mips-nat.c (fetch_inferior_registers): Ditto.
9621 * m68klinux-nat.c (fetch_register): Ditto.
9622 * lynx-nat.c (fetch_inferior_registers): Ditto.
9623 (fetch_inferior_registers): Ditto.
9624 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9625 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9626 (hpux_thread_store_registers): Ditto.
9627 * hppah-nat.c (fetch_register): Ditto.
9628 * hppab-nat.c (fetch_register): Ditto.
9629 * hppa-tdep.c (pa_register_look_aside): Ditto.
9630 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9631 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9633 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9635 * gdbarch.sh: Explictly specify all method levels. When a
9636 variable with an empty level, provide a non-multi-arch default.
9637 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9638 * gdbarch.h: Re-generate.
9639 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9640 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9642 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9644 * defs.h (host_pointer_to_address): Delete declaration.
9645 (address_to_host_pointer): Delete declaration.
9646 * utils.c (host_pointer_to_address): Delete function.
9647 (address_to_host_pointer): Delete function.
9648 * procfs.c (procfs_address_to_host_pointer): New function.
9649 * procfs.c (proc_set_watchpoint): Use.
9650 (procfs_can_use_hw_breakpoint): Update comments.
9651 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9652 (som_solib_add): Use.
9653 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9654 * hppa-tdep.c (unwind_command): Use.
9656 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9658 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9661 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9662 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9663 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9664 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9665 (define_symbol): Update.
9666 * symfile.c (generic_load): Remove references to nindy.
9667 * symtab.c: Remove references to nindy.
9669 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9671 * infcmd.c (print_float_info): Delete code conditional on
9673 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9674 * config/m68k/nm-apollo68b.h: Ditto.
9675 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9676 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9677 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9679 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9681 * config/i386/tm-i386os9k.h: Removed.
9683 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9684 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9685 they're identical to i[3456]86-*-sysv* now.
9686 * config/i386/i386v32.mh: Removed.
9687 * config/i386/xm-i386v32.h: Removed.
9688 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9690 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9692 * config/i386/i386dgux.mh: Removed.
9693 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9695 * configure.in: Fix typo.
9696 * configure: Regenerated.
9698 2003-01-31 David Carlton <carlton@math.stanford.edu>
9700 * dwarf2read.c (dwarf2_locate_sections): Set
9701 dwarf_ranges_section.
9703 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9705 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9706 * utils.c: Update comments documenting legitimate uses of PTR.
9708 * utils.c: Re-indent.
9710 * config/djgpp/fnchange.lst: Delete nindy files.
9711 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9712 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9713 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9714 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9715 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9716 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9717 * Makefile.in (init.c): Remove nindy references.
9718 (saber_gdb): Delete rule.
9719 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9720 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9722 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9723 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9724 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9725 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9727 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9728 * saber.suppress: Delete file.
9730 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9732 * dbxread.c (stabs_data): New static variable.
9733 (fill_symbuf): Support an in-memory buffer for stabs data.
9734 (stabs_seek): New function.
9735 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9736 (read_ofile_symtab): Use stabs_seek.
9737 (elfstab_build_psymtabs): Take an asection* instead of
9738 an offset and size. Relocate the stabs data if necessary.
9739 Save the section* for dbx_psymtab_to_symtab.
9740 * dwarf2read.c: Add section variables for each debug section.
9741 (dwarf2_locate_sections): Fill them in.
9742 (dwarf2_read_section): Take an asection* argument.
9743 Relocate the section contents if necessary.
9744 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9745 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9746 it to dwarf2_read_section.
9747 (dwarf2_build_frame_info): Update callers.
9748 * elfread.c (elf_symfile_read): Update call to
9749 elfstab_build_psymtabs.
9750 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9751 (DBX_STAB_SECTION): New macro.
9752 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9753 * symfile.c (symfile_dummy_outputs): New function.
9754 (symfile_relocate_debug_section): New function.
9755 * symfile.h (symfile_relocate_debug_section): Add prototype.
9757 2003-01-31 Richard Henderson <rth@redhat.com>
9759 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9760 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9761 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9762 * alpha-tdep.c (alpha_register_name): Add "unique".
9763 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9764 (ALPHA_UNIQUE_REGNUM): New.
9765 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9767 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9769 * README: Remove reference to Ericsson 1800 monitor.
9770 * Makefile.in (remote-es.o): Delete rule.
9771 (ALLDEPFILES): Delete remote-es.c.
9772 * remote-es.c: Delete file.
9773 * config/m68k/es1800.mt: Delete file.
9774 * config/djgpp/fnchange.lst: Update.
9775 * configure.tgt: Delete m68*-ericsson-* target.
9777 2003-01-31 Adam Fedor <fedor@gnu.org>
9779 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9780 Remove duplicate/shadowing variable of same name.
9782 2003-01-30 Jim Blandy <jimb@redhat.com>
9784 * symfile.c (find_separate_debug_file): Assert that the objfile's
9785 directory name we compute ends with a slash, and then assume that
9786 that's so everywhere we use it.
9788 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9790 * valops.c (value_assign): Flush frame cache after stores to memory
9793 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9795 * Makefile.in (mon960-rom.o): Delete rule.
9796 * mon960-rom.c: Delete file.
9798 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9800 * d10v-tdep.c: Include "frame-unwind.h".
9801 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9803 (next_addr, uses_frame): Delete.
9804 (struct d10v_unwind_cache): Define.
9805 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9806 Use info instead of next_addr and uses_frame globals.
9807 (d10v_frame_init_saved_regs): Delete function.
9808 (d10v_init_extra_frame_info): Delete function.
9809 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9810 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9811 init_frame_pc or frame_saved_pc.
9812 (d10v_pop_frame): Delete function.
9813 (do_d10v_pop_frame): Delete function.
9814 (d10v_frame_chain): Delete function.
9815 (d10v_frame_chain_valid): Delete function.
9816 (d10v_frame_pc_unwind): New function.
9817 (d10v_frame_id_unwind): New function.
9818 (saved_regs_unwinder): New function.
9819 (d10v_frame_register_unwind): New function.
9820 (d10v_frame_pop): New function.
9821 (d10v_frame_unwind): New variable.
9822 (d10v_frame_p): New function.
9823 (d10v_frame_saved_pc): Delete function.
9824 * Makefile.in (d10v-tdep.o): Update dependencies.
9826 2003-01-30 J. Brobecker <brobecker@gnat.com>
9828 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9829 causing some regressions due to a change in the default value
9832 2003-01-29 Richard Henderson <rth@redhat.com>
9833 Elena Zannoni <ezannoni@redhat.com>
9834 Daniel Jacobowitz <drow@mvista.com>
9837 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9839 (RANGES_SECTION): New.
9840 (dwarf_ranges_buffer): New variable.
9841 (struct comp_unit_head): Add member "die".
9842 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9843 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9844 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9845 (dwarf2_locate_sections): Likewise.
9846 (dwarf2_build_psymtabs): Read .debug_ranges.
9847 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9848 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9849 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9850 Look for DW_AT_ranges and return the bounding box.
9852 2003-01-29 Brian Ford <ford@vss.fsi.com>
9854 * win32-nat.c (cygwin_pid): Removed as unused.
9855 (child_attach): Try fall back to Cygwin pid.
9857 2003-01-29 Jim Blandy <jimb@redhat.com>
9859 * objfiles.h (struct objfile): Doc fix.
9861 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9863 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9864 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9865 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9866 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9867 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9868 (FRAME_SAVED_PC): Change to a function with predicate.
9869 * gdbarch.h, gdbarch.c: Re-generate.
9871 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9873 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9875 * complaints.c (complain): Delete function.
9876 * complaints.h (struct deprecated_complaint): Delete definition.
9877 (complain): Delete declaration.
9879 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9881 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9884 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9886 * sentinel-frame.h, sentinel-frame.c: New files.
9887 * Makefile.in (frame.o): Update dependencies.
9888 (SFILES): Add sentinel-frame.c.
9889 (sentinel_frame_h): Define.
9890 (COMMON_OBS): Add sentinel-frame.o.
9891 (sentinel-frame.o): Specify dependencies.
9892 * frame.c: Include "sentinel-frame.h".
9893 (frame_register_unwind): Rewrite assuming that there is always a a
9895 (frame_register, generic_unwind_get_saved_register): Ditto.
9896 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9897 (create_sentinel_frame, unwind_to_current_frame): New functions.
9898 (get_current_frame): Rewrite using create_sentinel_frame and
9899 unwind_to_current_frame. When possible, always create a frame.
9900 (create_new_frame): Set next to the sentinel frame.
9901 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9902 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9903 ID cache when necessary.
9904 (frame_saved_regs_id_unwind): Use frame_relative_level.
9905 (deprecated_generic_get_saved_register): Use frame_relative_level,
9906 get_frame_saved_regs, get_frame_pc, get_frame_base and
9908 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9911 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9913 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9915 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9917 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9918 (maintenance_set_profile_cmd): Use error () instead of warning ().
9920 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9922 * configure.in: Check that -pg works if using --enable-profiling.
9923 Check for monstartup and _mcleanup regardless of --enable-profiling.
9924 * maint.c: Check for monstartup and _mcleanup before using them.
9925 * config.in: Regenerated.
9926 * configure: Regenerated.
9928 2003-01-24 Nick Clifton <nickc@redhat.com>
9932 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9934 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9935 (sh2e_show_regs): New.
9936 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9937 * config/sh/tm-sh.h: Added sh2e to comments.
9939 2003-01-23 Jim Blandy <jimb@redhat.com>
9941 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9942 symbols found)" message here; we haven't checked for a separate
9943 debug info file yet, so we don't know yet.
9944 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9945 we've looked everywhere. Also, there's no need to print a special
9946 message when we're loading the separate debug info file: the one
9947 symbol_file_add prints is fine.
9949 2003-01-23 Alexander Larsson <alexl@redhat.com>
9950 Jim Blandy <jimb@redhat.com>
9952 Add support for executables whose debug info has been separated
9953 out into a separate file, leaving only a link behind.
9954 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9955 and separate_debug_objfile_backlink.
9956 (put_objfile_before): New declaration.
9957 * symfile.c: #include "filenames.h".
9958 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9959 debug info in a separate file, read that, too. Save the addrs
9960 argument, so we can use it again to read the separated debug info;
9961 syms_from_objfile modifies the table we pass it.
9962 (reread_symbols): After re-reading an objfile, call
9963 reread_separate_symbols to refresh its separate debug info
9964 objfile, if it has one.
9965 (reread_separate_symbols, find_separate_debug_file,
9966 get_debug_link_info, separate_debug_file_exists): New functions.
9967 (debug_file_directory): New global var.
9968 (_initialize_symfile): Initialize debug_file_directory, and
9969 provide the new `set debug-file-directory' command to let the user
9971 * objfiles.c (free_objfile): If this objfile has its debug info in
9972 a separate objfile, free that one too. If this is itself a
9973 separate debug info objfile, clear our parent's backlink.
9974 (put_objfile_before): New function.
9975 * utils.c (gnu_debuglink_crc32): New function.
9976 * defs.h (gnu_debuglink_crc32): New declaration.
9977 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9978 * configure.in: Handle --with-separate-debug-dir config option.
9979 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9980 * acconfig.h (DEBUGDIR): New macro.
9981 * configure, aclocal.m4, config.in: Regenerated.
9983 2003-01-22 Jim Blandy <jimb@redhat.com>
9985 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9986 like the old symbol_file_add, but taking new arguments: you can
9987 now pass in either a `struct section_addr_info' list to say where
9988 each section is loaded, or a `struct section_offsets' table. Pass
9989 these new arguments through to syms_from_objfile as appropriate.
9990 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9991 with the appropriate quiescent values for the new arguments.
9993 * symfile.c: #include "gdb_assert.h".
9994 (syms_from_objfile): Add the ability to pass in a section offset
9995 table directly, as an alternative to the section_addr_info table.
9996 Document arguments better.
9997 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9998 * symfile.h (syms_from_objfile): Update declaration.
9999 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10001 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10003 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10005 Original patch by Tom Tromey <tromey@cygnus.com> and
10006 Jason Molenda <jmolenda@apple.com>.
10007 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10008 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10009 * NEWS: Mention profiling.
10010 * configure.in (--enable-gdbtk): Fix typo.
10011 (--enable-profiling): New. Set PROFILE_CFLAGS.
10012 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10014 (profiling_state): New variable.
10015 (mcleanup_wrapper): New function.
10016 (_initialize_maint): Remove NOTYET, fix call to
10017 add_setshow_boolean_cmd for "maint set profile".
10018 * configure: Regenerated.
10020 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10022 * Makefile.in (install-gdbtk): Install PNG images too.
10024 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10026 * exec.c (text_start): Delete global variable.
10027 (exec_file_attach): Make text_start local to the function.
10028 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10029 * valops.c (hand_function_call): Delete code that handles
10030 BEFORE_TEXT_END and AFTER_TEXT_END.
10031 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10032 of CALL_DUMMY_LOCATION.
10033 * gdbarch.c: Regenerate.
10034 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10035 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10036 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10037 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10038 (text_end): Delete extern declaration.
10040 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10042 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10043 * blockframe.c (backtrace_below_main): Move to "frame.c".
10044 (frame_chain_valid): Delete check for backtrace_below_main.
10045 (_initialize_blockframe): Delete initialization, move ``set
10046 backtrace-below-main'' command to "frame.c".
10047 (do_flush_frames_sfunc): Delete function.
10048 * frame.c: Include "command.h" and "gdbcmd.h".
10049 (frame_type_from_pc): New function.
10050 (create_new_frame): Use frame_type_from_pc.
10051 (legacy_get_prev_frame): New function.
10052 (get_prev_frame): Rewrite. When an old style frame, call
10053 legacy_get_prev_frame. Otherwize, unwind the PC first.
10054 (_initialize_frame): Add ``set backtrace-below-main'' command.
10055 * Makefile.in (frame.o): Update dependencies.
10057 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10059 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10060 DEPRECATED_REGISTERS_INFO.
10062 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10064 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10065 Maintainers'. Update `Various Maintainers'.
10067 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10069 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10070 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10071 Suppress actual parameters when `-'.
10072 * gdbarch.h, gdbarch.c: Regenerate.
10074 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10076 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10077 code handling dummy frames.
10079 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10081 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10082 (struct frame_unwind): Add field pop.
10083 * frame.h (frame_pop): Declare.
10084 * frame.c (frame_saved_regs_pop): New function.
10085 (trad_frame_unwinder): Add frame_saved_regs_pop.
10086 (frame_pop): New function.
10087 * dummy-frame.c (dummy_frame_pop): New function.
10088 (discard_innermost_dummy): New function.
10089 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10090 (dummy_frame_unwind): Add dummy_frame_pop.
10091 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10092 * valops.c (hand_function_call): Ditto.
10093 * stack.c (return_command): Ditto.
10095 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10097 * cris-tdep.c: Fix function declaration indentation.
10098 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10099 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10100 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10101 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10102 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10103 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10105 2003-01-18 Michael Chastain <mec@shout.net>
10107 * README (Unpacking and Installation -- quick overview):
10108 Warn against ".../gdb-5.3/gdb/configure".
10110 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10112 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10113 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10114 (struct frame_unwind): Declare opaque.
10115 (dummy_frame_p): Declare function.
10116 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10117 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10118 * dummy-frame.c: Include "frame-unwind.h".
10119 (dummy_frame_p): New function.
10120 (dummy_frame_unwind): New variable.
10121 * frame.c: Include "frame-unwind.h".
10122 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10123 to use the new unwind field.
10124 (set_unwind_by_pc): Delete function.
10125 (create_new_frame, get_prev_frame): Set unwind field using
10126 frame_unwind_find_by_pc.
10127 (trad_frame_unwind, trad_frame_unwinder): New variables.
10128 * frame.h (trad_frame_unwind): Declare variable.
10129 (frame_id_unwind_ftype): Delete declaration.
10130 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10131 (struct frame_unwind): Declare opaque.
10132 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10133 register_unwind with a single unwind pointer.
10134 * frame-unwind.h, frame-unwind.c: New files.
10135 * Makefile.in (SFILES): Add frame-unwind.c.
10136 (frame_unwind_h): Define.
10137 (COMMON_OBS): Add frame-unwind.o.
10138 (frame-unwind.o): Specify dependencies.
10139 (frame.o, dummy-frame.o): Update dependencies.
10141 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10143 * ada-valprint.c: Eliminate PTR.
10144 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10145 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10146 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10147 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10148 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10149 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10150 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10152 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10154 * main.c (captured_main): Don't use PTR.
10155 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10156 * gdbtypes.c (lookup_primitive_typename): Ditto.
10157 (lookup_struct_elt_type): Ditto.
10158 * f-valprint.c (info_common_command): Ditto.
10159 (list_all_visible_commons): Ditto.
10160 * jv-typeprint.c (java_type_print_base): Ditto.
10162 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10163 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10164 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10165 i386-interix-nat.c and i386-interix-tdep.c. Rename
10166 m68klinux-nat.c and m68klinux-tdep.c. Rename
10167 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10168 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10169 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10170 * main.c (captured_main): Use xfree, not free.
10172 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10174 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10175 ID back using a parameter.
10176 * frame.c (frame_id_unwind): Update call.
10177 (frame_saved_regs_id_unwind): Update.
10178 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10179 * dummy-frame.h (struct frame_id): Add opaque declaration.
10180 (dummy_frame_id_unwind): Update declaration.
10182 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10184 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10186 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10188 * MAINTAINERS (Stephen P. Smith): Updated email address.
10190 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10193 * breakpoint.c (until_break_command): Add new argument. Use it to
10194 decide whether to stop only at the current frame or not.
10195 * breakpoint.h (until_break_command): Update prototype.
10196 * infcmd.c (until_command): Add new argument to until_break_command
10198 (advance_command): New function.
10199 (_initialize_infcmd): Update help string for 'until' command.
10200 Add new 'advance' command.
10202 2003-01-14 David Carlton <carlton@math.stanford.edu>
10204 * linespec.c (decode_line_1): Normalize comments.
10205 (set_flags): Ditto.
10206 (locate_first_half): Ditto.
10207 (decode_compound): Ditto.
10208 (symtab_from_filename): Ditto.
10209 (decode_all_digits): Ditto.
10210 (decode_dollar): Ditto.
10211 (find_methods): Ditto.
10212 (find_toplevel_char): Ditto.
10214 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10216 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10217 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10218 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10219 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10220 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10221 * language.c, language.h, m32r-tdep.c: Update copyright.
10222 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10223 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10224 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10225 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10226 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10227 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10229 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10231 * stabsread.h (process_later, resolve_cfront_continuation):
10233 Update copyright years.
10234 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10235 Update copyright year.
10236 * dbxread.c(struct cont_elem): Obsolete.
10237 (process_later, process_now): Obsolete functions.
10238 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10239 Update copyright year.
10240 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10241 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10242 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10243 (parse_partial_symbols): Obsolete cfront support.
10245 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10247 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10248 read_cfront_baseclasses, read_cfront_member_functions,
10249 resolve_cfront_continuation,read_cfront_static_fields,
10250 copy_cfront_struct_fields): Obsolete functions.
10251 (define_symbol, read_one_struct_field): Obsolete cfront support.
10252 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10253 Update Copyright year.
10255 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10257 * stack.c (print_frame_info, print_stack_frame_base_stub,
10258 print_stack_frame_base, show_and_print_stack_frame_stub,
10259 show_and_print_stack_frame, print_only_stack_frame_stub,
10260 print_only_stack_frame): Delete functions.
10261 (print_stack_frame_stub): Call print_frame_info instead of
10262 print_frame_info_base.
10263 (print_frame_info_base): Rename to print_frame_info.
10264 (backtrace_command_1): Call print_frame_info, instead of
10265 print_frame_info_base.
10266 (current_frame_command): Call print_stack_frame, instead of
10267 print_only_stack_frame.
10268 (frame_command): Call print_stack_frame, instead of
10269 show_and_print_stack_frame.
10270 (up_command): Ditto.
10271 (down_command): Ditto.
10272 * frame.h (print_only_stack_frame): Delete prototype.
10273 * infrun.c (normal_stop): Call print_stack_frame, instead of
10274 show_and_print_stack_frame.
10275 * thread.c (info_threads_command): Call print_stack_frame, instead
10276 of print_only_stack_frame.
10278 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10280 * README (Graphical interface to GDB): Update URL. Point at
10283 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10286 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10288 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10291 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10293 * thread-db.c (attach_thread): Prototype.
10294 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10295 thread information (ti), and valid flags (th_valid, ti_valid).
10296 (attach_thread): Move target_pid_to_str call to after the thread
10297 is added to GDB's list. Initialize the cache.
10298 (thread_get_info_callback, thread_db_map_id2thr)
10299 (thread_db_get_info): New functions.
10300 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10301 (thread_db_store_registers, thread_db_thread_alive)
10302 (thread_db_get_thread_local_address): Use them.
10303 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10304 of calling error() for threads in unknown state.
10306 (clear_lwpid_callback): New function.
10307 (thread_db_resume): Use it to clear the cache.
10309 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10311 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10312 (resume_callback): Remove dead code.
10314 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10316 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10318 * gdbarch.h, gdbarch.c: Regenerate.
10319 * stack.c (frame_info): Only initialize the saved registers when
10320 FRAME_INIT_SAVED_REGS_P.
10321 * frame.c (frame_saved_regs_register_unwind): Assert
10322 FRAME_INIT_SAVED_REGS_P.
10323 (deprecated_generic_get_saved_register): Ditto.
10325 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10327 * source.c (openp): Squelch warning about "filename".
10329 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10331 * source.c (openp): If the file does not exist don't necessarily
10334 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10337 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10338 (integer_types_same_name_p): New function.
10339 (rank_one_type): Use it.
10340 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10342 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10344 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10346 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10347 * configure.in: Add --with-sysroot.
10348 * configure: Regenerated.
10349 * main.c (gdb_sysroot): New variable.
10350 (captured_main): Initialize gdb_sysroot.
10351 * defs.h (gdb_sysroot): New extern declaration.
10352 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10354 2003-01-12 Michael Chastain <mec@shout.net>
10356 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10358 2003-01-12 Michael Chastain <mec@shout.net>
10360 * top.c (print_gdb_version): Bump copyright year to 2003.
10362 2003-01-12 David Carlton <carlton@bactrian.org>
10364 * linespec.c (symtab_from_filename): Rename variable 's' to
10367 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10369 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10371 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10373 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10375 * d10v-tdep.c: Include "gdb_assert.h".
10376 (d10v_store_return_value): Rewrite to match current interface.
10377 (d10v_extract_struct_value_address): Ditto.
10378 (d10v_extract_return_value): Ditto.
10379 (d10v_gdbarch_init): Set store_restore_value,
10380 extract_struct_value_address and extract_return_value.
10382 2003-01-12 J. Brobecker <brobecker@gnat.com>
10384 * hpread.c (set_namestring): New procedure replacing the
10385 SET_NAMESTRING macro.
10386 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10387 by calls to set_namestring.
10389 2003-01-11 J. Brobecker <brobecker@gnat.com>
10391 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10392 a compilation warning.
10393 (hpread_process_one_debug_symbol): Likewise.
10395 2003-01-10 David Carlton <carlton@math.stanford.edu>
10397 * linespec.c (decode_line_1): Rename variable 's' to
10399 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10400 (decode_dollar): Ditto.
10401 (decode_variable): Ditto.
10402 (symbol_found): Ditto.
10404 2003-01-09 Michael Chastain <mec@shout.net>
10406 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10408 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10410 * win32-nat.c (set_process_privilege): New function.
10411 (child_attach): Call set_process_privilege() to enable the
10412 SE_DEBUG_NAME user privilege if available in process token.
10414 2003-01-10 J. Brobecker <brobecker@gnat.com>
10416 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10417 compilation error in the previous revision.
10419 2003-01-09 David Carlton <carlton@math.stanford.edu>
10421 * linespec.c: Update copyright.
10423 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10425 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10426 than inferior_ptid.
10427 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10429 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10431 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10433 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10434 (frame_saved_regs_zalloc): Update.
10435 (frame_saved_regs_register_unwind): Update.
10436 (create_new_frame): Update.
10437 (get_prev_frame): Update.
10438 (frame_extra_info_zalloc): Update.
10439 (deprecated_get_frame_saved_regs): Update.
10440 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10441 * cris-tdep.c: Update comment.
10443 * somsolib.h: Fix function indentation.
10444 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10445 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10446 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10447 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10448 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10450 * infrun.c (follow_fork): Use ISO C definition.
10451 * expprint.c (print_subexp): Use xfree instead of free.
10452 * charset.c: Include "gdb_string.h" instead of <string.h>.
10453 (register_iconv_charsets): Use ISO C definition.
10454 (host_charset, target_charset): Ditto.
10455 * Makefile.in (charset.o): Update dependencies.
10456 (mi-cmd-env.o): Update dependencies.
10458 2003-01-08 Andrew Cagney <cagney@redhat.com>
10460 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10463 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10465 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10466 build directories. Save edited gdb output in Mbuild.log. If a
10467 build fails, remove any final GDB executable.
10469 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10471 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10472 replacing hex constants with function names and stripping leading
10473 file name directory prefixes.
10475 2003-01-08 Andrew Cagney <cagney@redhat.com>
10477 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10480 2003-01-08 David Carlton <carlton@math.stanford.edu>
10482 * linespec.c (decode_line_1): Move code into decode_variable.
10483 (decode_variable): New function.
10485 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10487 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10489 2003-01-08 Andrew Cagney <cagney@redhat.com>
10491 * cris-tdep.c (cris_frame_init_saved_regs): Use
10492 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10494 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10495 (sh64_nofp_frame_init_saved_regs): Ditto.
10496 (sh_fp_frame_init_saved_regs): Ditto.
10497 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10498 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10499 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10500 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10502 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10504 * minsyms.c (lookup_minimal_symbol): Update comment.
10505 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10506 (lookup_minimal_symbol_solib_trampoline): Likewise.
10508 2003-01-08 Andrew Cagney <cagney@redhat.com>
10510 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10511 frame_relative_level.
10513 * alpha-tdep.c: Use get_frame_extra_info.
10514 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10515 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10516 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10517 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10519 * alpha-tdep.c: Use get_next_frame.
10520 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10521 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10522 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10523 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10524 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10525 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10526 * xstormy16-tdep.c: Ditto.
10528 2003-01-07 Andrew Cagney <cagney@redhat.com>
10530 * alpha-tdep.c: Use get_frame_base.
10531 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10532 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10533 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10534 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10535 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10536 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10537 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10538 * config/sparc/tm-sparc.h: Ditto.
10540 2003-01-07 Andrew Cagney <cagney@redhat.com>
10542 * frame.c (deprecated_get_frame_context): New function.
10543 (deprecated_set_frame_context): New function.
10544 * frame.h (deprecated_get_frame_context): Declare.
10545 (deprecated_set_frame_context): Declare.
10546 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10547 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10549 2003-01-07 Andrew Cagney <cagney@redhat.com>
10551 * frame.c (deprecated_set_frame_next_hack): New function.
10552 (deprecated_set_frame_prev_hack): New function.
10553 * frame.h (deprecated_set_frame_next_hack): Declare.
10554 (deprecated_set_frame_prev_hack): Declare.
10555 * mcore-tdep.c (analyze_dummy_frame): Use
10556 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10557 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10559 2003-01-07 David Carlton <carlton@math.stanford.edu>
10561 * linespec.c (decode_line_1): Move code into decode_dollar.
10562 (decode_dollar): New function.
10564 2003-01-07 Andrew Cagney <cagney@redhat.com>
10566 * arm-tdep.c (arm_init_extra_frame_info): Use
10567 deprecated_update_frame_base_hack.
10568 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10569 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10570 (fix_frame_pointer): Ditto.
10571 (mn10300_analyze_prologue): Ditto.
10573 2003-01-07 Andrew Cagney <cagney@redhat.com>
10575 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10576 extra_info using frame_extra_info_zalloc.
10577 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10578 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10579 (sh64_init_extra_frame_info): Ditto.
10580 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10581 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10582 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10583 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10584 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10585 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10586 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10587 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10588 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10589 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10590 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10591 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10593 * mn10300-tdep.c (analyze_dummy_frame): Use
10594 deprecated_set_frame_extra_info_hack.
10595 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10597 2003-01-07 J. Brobecker <brobecker@gnat.com>
10599 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10600 class is not scText. These do not define "real" procedures.
10601 (parse_partial_symbols): Likewise.
10603 2003-01-06 Michael Snyder <msnyder@redhat.com>
10605 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10607 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10609 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10610 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10611 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10612 deprecated_frame_xmalloc_with_cleanup.
10613 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10614 deprecated_frame_xmalloc.
10615 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10616 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10618 2003-01-06 Andrew Cagney <cagney@redhat.com>
10620 * x86-64-linux-tdep.c: Include "osabi.h".
10621 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10623 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10625 2003-01-06 Andrew Cagney <cagney@redhat.com>
10627 * MAINTAINERS (Target Instruction Set Architectures): Update
10628 arm-elf. Can be built with -Werror, has been multiarched.
10630 * value.h (unpack_long): Make buffer parameter constant.
10631 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10632 * scm-lang.h (scm_parse): Ditto.
10633 * defs.h (extract_typed_address, extract_address): Ditto.
10634 (extract_long_unsigned_integer): Ditto.
10635 * inferior.h (unsigned_pointer_to_address): Ditto.
10636 (signed_pointer_to_address): Ditto.
10637 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10638 * gdbarch.h, gdbarch.c: Regenerate.
10639 * findvar.c (extract_long_unsigned_integer): Update.
10640 (extract_address): Update.
10641 (extract_typed_address): Update.
10642 (unsigned_pointer_to_address): Update.
10643 * values.c (unpack_long): Update.
10644 (unpack_double): Update.
10645 (unpack_pointer): Update.
10646 (unpack_field_as_long): Update.
10647 * d10v-tdep.c (d10v_pointer_to_address): Update.
10648 * avr-tdep.c (avr_pointer_to_address): Update.
10649 * scm-lang.c (scm_unpack): Update.
10650 * findvar.c (signed_pointer_to_address): Update.
10652 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10654 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10655 since it is in i386-tdep.c.
10657 2003-01-06 J. Brobecker <brobecker@gnat.com>
10659 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10660 failure introduced in the previous change.
10662 2003-01-05 Michael Chastain <mec@shout.net>
10664 * README: Remove references to deleted remote-*.c files:
10665 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10666 remote-nrom.c, remote-os9k.c, remote-udi.c.
10668 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10670 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10671 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10672 i386_get_longjmp_target.
10674 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10676 * arm-tdep.c (prologue_cache): Change to a pointer.
10677 (_initialize_arm_tdep): Allocate prologue_cache.
10678 (check_prologue_cache): Update.
10679 (save_prologue_cache): Update.
10680 (arm_gdbarch_init): Update.
10682 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10684 * stabsread.c (update_method_name_from_physname): Call complaint()
10687 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10689 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10690 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10691 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10693 * blockframe.c: Include "gdbcmd.h" and "command.h".
10694 (backtrace_below_main): New variable.
10695 (file_frame_chain_valid, func_frame_chain_valid)
10696 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10697 (generic_func_frame_chain_valid): Remove functions.
10698 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10699 (_initialize_blockframe): New function.
10700 * Makefile.in (blockframe.o): Update dependencies.
10701 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10702 comment. Call frame_chain_valid ().
10703 * frame.h: Remove old prototypes. Add prototype for
10704 frame_chain_valid and update comments to match.
10705 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10706 Remove old comment.
10707 * gdbarch.h: Regenerated.
10708 * gdbarch.c: Regenerated.
10710 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10711 set_gdbarch_frame_chain_valid.
10712 * avr-tdep.c (avr_gdbarch_init): Likewise.
10713 * cris-tdep.c (cris_gdbarch_init): Likewise.
10714 * frv-tdep.c (frv_gdbarch_init): Likewise.
10715 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10716 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10717 (i386_nw_init_abi): Likewise.
10718 (i386_gdbarch_init): Likewise.
10719 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10721 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10722 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10723 * mips-tdep.c (mips_gdbarch_init): Likewise.
10724 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10725 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10726 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10727 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10728 * s390-tdep.c (s390_gdbarch_init): Likewise.
10729 * sh-tdep.c (sh_gdbarch_init): Likewise.
10730 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10731 * v850-tdep.c (v850_gdbarch_init): Likewise.
10732 * vax-tdep.c (vax_gdbarch_init): Likewise.
10733 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10735 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10736 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10737 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10738 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10739 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10740 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10741 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10742 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10744 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10746 * Makefile.in (acconfig_h): Remove incorrect macro.
10747 (config_h): Define.
10748 (osabi.o): Update dependencies.
10749 * configure.tgt: Set gdb_osabi based on target triplet.
10750 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10751 * configure: Regenerated.
10752 * config.in: Regenerated.
10753 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10754 (GDB_OSABI_DEFAULT): Define if not already defined.
10755 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10756 (set_osabi_string): New variables.
10757 (gdbarch_register_osabi): Add new OS ABI to
10758 gdb_osabi_available_names.
10759 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10760 (set_osabi, show_osabi): New functions.
10761 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10763 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10765 * arch-utils.c (gdbarch_info_init): Set osabi to
10766 GDB_OSABI_UNINITIALIZED.
10767 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10768 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10769 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10770 * gdbarch.c: Regenerated.
10771 * gdbarch.h: Regenerated.
10772 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10774 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10775 * osabi.h (enum gdb_osabi): Move to defs.h.
10776 (gdbarch_init_osabi): Update prototype.
10777 * defs.h (enum gdb_osabi): Moved here.
10778 * Makefile.in: Update dependencies.
10780 * alpha-tdep.h: Don't include "osabi.h".
10781 (struct gdbarch_tdep): Remove osabi member.
10782 * alpha-tdep.c: Include "osabi.h".
10783 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10784 iterate over arches. Update call to gdbarch_init_osabi.
10785 (alpha_dump_tdep): Don't dump osabi.
10786 * alpha-linux-tdep.c: Include "osabi.h".
10787 * alpha-osf1-tdep.c: Include "osabi.h".
10788 * alphafbsd-tdep.c: Include "osabi.h".
10789 * alphanbsd-tdep.c: Include "osabi.h".
10791 * arm-tdep.h: Don't include "osabi.h".
10792 (struct gdbarch_tdep): Remove osabi member.
10793 * arm-tdep.c: Include "osabi.h".
10794 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10795 iterate over arches. Update call to gdbarch_init_osabi.
10796 (arm_dump_tdep): Don't dump osabi.
10797 * arm-linux-tdep.c: Include "osabi.h".
10798 * armnbsd-tdep.c: Include "osabi.h".
10800 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10801 Update call to gdbarch_init_osabi.
10803 * i386-tdep.h: Don't include "osabi.h".
10804 (struct gdbarch_tdep): Remove osabi member.
10805 * i386-tdep.c: Include "osabi.h".
10806 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10807 iterate over arches. Update call to gdbarch_init_osabi.
10808 (i386_dump_tdep): Don't dump osabi.
10809 * i386-linux-tdep.c: Include "osabi.h".
10810 * i386-sol2-tdep.c: Include "osabi.h".
10811 * i386bsd-tdep.c: Include "osabi.h".
10812 * i386gnu-tdep.c: Include "osabi.h".
10813 * i386ly-tdep.c: Include "osabi.h".
10814 * i386nbsd-tdep.c: Include "osabi.h".
10815 * i386obsd-tdep.c: Include "osabi.h".
10817 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10818 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10819 check osabi when iterating over arches. Update call to
10820 gdbarch_init_osabi.
10821 (mips_dump_tdep): Don't dump osabi.
10823 * ns32k-tdep.h: Don't include "osabi.h".
10824 (struct gdbarch_tdep): Remove.
10825 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10826 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10827 allocate tdep. Update call to gdbarch_init_osabi.
10828 (ns32k_dump_tdep): Remove.
10829 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10830 * ns32knbsd-tdep.c: Include "osabi.h".
10832 * ppc-tdep.h: Don't include "osabi.h".
10833 (struct gdbarch_tdep): Remove osabi member.
10834 * rs6000-tdep.c: Include "osabi.h".
10835 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10836 osabi when iterating over arches. Update call to
10837 gdbarch_init_osabi.
10838 (rs6000_dump_tdep): Don't dump osabi.
10839 * ppc-linux-tdep.c: Include "osabi.h".
10840 * ppcnbsd-tdep.c: Include "osabi.h".
10842 * sh-tdep.h: Don't include "osabi.h".
10843 (struct gdbarch_tdep): Remove osabi member.
10844 * sh-tdep.c: Include "osabi.h".
10845 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10846 iterate over arches. Update call to gdbarch_init_osabi.
10847 (sh_dump_tdep): Don't dump osabi.
10848 * shnbsd-tdep.c: Include "osabi.h".
10850 * sparc-tdep.c: Include "osabi.h".
10851 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10852 iterate over arches. Update call to gdbarch_init_osabi.
10853 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10856 * vax-tdep.h: Don't include "osabi.h".
10857 (struct gdbarch_tdep): Remove.
10858 * vax-tdep.c: Include "osabi.h".
10859 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10860 iterate over arches. Don't allocate tdep. Update call
10861 to gdbarch_init_osabi.
10862 (vax_dump_tdep): Remove.
10863 (_initialize_vax_tdep): Update call to gdbarch_register.
10865 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10867 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10869 (breakpoint_re_set_one): Don't fetch the value for a disabled
10872 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10874 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10875 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10876 (COERCE_FLOAT_TO_DOUBLE): Remove.
10877 * gdbarch.c: Regenerate.
10878 * gdbarch.h: Regenerate.
10879 * Makefile.in: Remove value_h from gdbarch_h.
10880 * valops.c (coerce_float_to_double): New variable.
10881 (default_coerce_float_to_double): Remove.
10882 (standard_coerce_float_to_double): Remove.
10883 (value_arg_coerce): Use coerce_float_to_double.
10884 (_initialize_valops): Add "set coerce-float-to-double".
10885 * value.h (default_coerce_float_to_double): Remove prototype.
10886 (standard_coerce_float_to_double): Remove prototype.
10888 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10890 * mdebugread.c (parse_symbol): Likewise.
10891 * stabsread.c (define_symbol): Mark all functions as prototyped.
10893 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10894 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10895 set_gdbarch_coerce_float_to_double.
10896 * arm-tdep.c (arm_gdbarch_init): Likewise.
10897 * frv-tdep.c (frv_gdbarch_init): Likewise.
10898 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10899 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10900 * mips-tdep.c (mips_gdbarch_init): Likewise.
10901 (mips_coerce_float_to_double): Remove.
10902 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10903 (rs6000_coerce_float_to_double): Remove.
10904 * s390-tdep.c (s390_gdbarch_init): Likewise.
10905 * sh-tdep.c (sh_gdbarch_init): Likewise.
10906 (sh_coerce_float_to_double): Remove.
10907 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10908 (sparc_coerce_float_to_double): Remove.
10909 * v850-tdep.c (v850_gdbarch_init): Likewise.
10910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10911 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10912 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10913 (hppa_coerce_float_to_double): Remove prototype.
10914 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10916 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10918 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10920 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10922 Suggested by Stewart Brown <sb24@avaya.com>:
10923 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10924 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10925 (c_type_print_varspec_suffix): Likewise.
10927 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10929 * configure.in: Don't set and AC_SUBST SUBDIRS.
10930 * configure: Regenerated.
10932 * configure.in: Remove code dealing with shared libraries.
10933 * Makefile.in: Remove HLDFLAGS and HLDENV.
10934 * configure: Regenerated.
10936 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10938 * frame.c (deprecated_frame_xmalloc): New function.
10939 (deprecated_set_frame_saved_regs_hack): New function.
10940 (deprecated_set_frame_extra_info_hack): New function.
10941 * frame.h (deprecated_frame_xmalloc): Declare.
10942 (deprecated_set_frame_saved_regs_hack): Declare.
10943 (deprecated_set_frame_extra_info_hack): Declare.
10945 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10947 * configure.in: Move code that provides the --enable-gdbtk option
10948 right after the code that handles the --enable-tui option, and
10949 polish it somewhat.
10950 * configure: Regenerated.
10952 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10953 AC_CHECK_FUNCS and remove the old check for pread64.
10954 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10955 * acconfig.h (_GNU_SOURCE): Add.
10956 (HAVE_PREAD64): Remove.
10957 * configure, aclocal.m4, config.in: Regenerated.
10959 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10961 * alpha-tdep.c: Use get_frame_saved_regs.
10962 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10963 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10964 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10965 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10966 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10968 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10970 * configure.in: Remove all use of the SUBDIRS variable; add
10971 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10972 code providing the --enable-multi-ice option, and move it right in
10973 front of the code that checks whether gdbserver is supported.
10975 * configure: Regenerated.
10976 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10979 2003-01-03 Andrew Cagney <cagney@redhat.com>
10981 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10982 * avr-tdep.c, cris-tdep.c: Ditto.
10983 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10984 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10986 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10988 * configure.in: Remove --enable-netrom option.
10989 * configure: Regenerated.
10991 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10993 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10994 declaration for `struct re_pattern_buffer' instead.
10995 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10997 2003-01-03 J. Brobecker <brobecker@gnat.com>
10999 * mdebugread.c (parse_symbol): Count until the stEnd matching
11000 the structure name.
11002 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11004 * configure.in: Remove --with-cpu option.
11005 subscripts. Remove evil changequotes here.
11006 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11007 * config.in, configure: Regenerated.
11009 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11010 * configure.in: Cleanup section that sources GDB and BFD configure
11011 subscripts. Remove evil changequotes here.
11012 * config.in, configure: Regenerated.
11014 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11016 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11017 frame accessor methods.
11018 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11019 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11020 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11021 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11022 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11023 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11024 * z8k-tdep.c: Ditto.
11026 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11028 * configure.in: Remove UI_OUT configuration code.
11029 * ada-lang.c: Update assuming UI_OUT is always true.
11030 * Makefile.in (UIOUT_CFLAGS): Remove.
11031 * configure: Regenerated.
11032 * TODO: Remove blurb about elimination of -DUI_OUT.
11034 * configure.in: Move code that provides the --enable-gdbcli,
11035 --enable-gdbmi options right before the code that handles the
11036 --enable-tui option. Polish a bit.
11037 * configure: Regenerated.
11039 * configure.in: Rewrite check for GNU regex and the
11040 --without-included regex option, and move it into the "Checks for
11041 library functions" section. This makes us use the system regex
11042 again by default on systems with version 2 of the GNU C library.
11043 This was apparently broken.
11044 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11045 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11046 * config.in, configure: Regenerated.
11048 * configure.in: Move code that provides the --enable-tui option
11049 before the "Checks for libraries" section. Polish the code
11050 somewhat and set need_curses to yes if we build the TUI. Rewrite
11051 code that looks for a library providing termcap functionality to
11052 match more closely what's done in the Readline library, and move
11053 it into to the "Checks for libraries" section.
11054 * configure: Regenerated.
11055 * Makefile.in (TERMCAP): Remove variable.
11056 * config/i386/go32.mh (TERMCAP): Remove variable.
11058 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11060 * MAINTAINERS: Mention gdb_mbuild.sh.
11061 * gdb_mbuild.sh: Rewrite.
11063 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11065 * configure.in: Fix typo in last change.
11066 * config.in, configure: Regenerated.
11068 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11070 * valarith.c (value_binop): Delete obsolete code and comments.
11071 * configure.host: Ditto.
11072 * buildsym.h (make_blockvector): Ditto.
11073 * buildsym.c (make_blockvector): Ditto.
11074 * defs.h (enum language): Ditto.
11075 (chill_demangle): Ditto.
11076 * elfread.c (elf_symtab_read): Ditto.
11077 * dwarfread.c (CHILL_PRODUCER): Ditto.
11078 (set_cu_language): Ditto.
11079 (handle_producer): Ditto.
11080 * expprint.c (print_subexp): Ditto.
11081 * gdbtypes.c (chill_varying_type): Ditto.
11082 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11083 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11084 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11085 (chill_varying_type): Ditto.
11086 * language.h (_LANG_chill): Ditto.
11087 * language.c (binop_result_type, integral_type): Ditto.
11088 (character_type, string_type, structured_type): Ditto.
11089 (lang_bool_type, binop_type_check): Ditto.
11090 * stabsread.h (os9k_stabs): Ditto.
11091 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11092 (define_symbol, read_type, read_struct_fields): Ditto.
11093 (read_array_type, read_enum_type, read_huge_number): Ditto.
11094 (read_range_type, start_stabs): Ditto.
11095 * symfile.c (init_filename_language_table): Ditto.
11096 (add_psymbol_with_dem_name_to_list): Ditto.
11097 * symtab.c (symbol_init_language_specific): Ditto.
11098 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11099 * symtab.h (struct general_symbol_info): Ditto.
11100 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11101 * typeprint.c (typedef_print): Ditto.
11102 * utils.c (fprintf_symbol_filtered): Ditto.
11103 * valops.c (value_cast, search_struct_field, value_slice): Delete
11105 (varying_to_slice): Delete function.
11106 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11107 (varying_to_slice): Delete declaration.
11108 * MAINTAINERS: Update.
11110 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11112 * configure.in: Reorganize "Checks for library functions section"
11113 a bit. Remove check for `btowc' and `isascii' functions.
11114 * configure: Regenerated.
11116 * acconfig.h (_MSE_INT_H): Remove.
11117 * configure.in: Create "Checks for header files" section, and move
11118 appropriate tests there. Don't check for objlist.h, wchar.h,
11119 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11120 misdetection fix. Also add "Checks for types", "Checks for
11121 compiler characteristics" and "Checks for library functions"
11123 * config.in, configure: Regenerated.
11125 * configure.in: Create "Checks for programs" section, and move
11126 appropriate tests there.
11128 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11130 * configure.in: Create "Checks for libraries" section, and move
11131 appropriate tests there. Cleanup check for wctype in libw. Use
11132 AC_SEARCH_LIBS to see whether we need libsocket.
11133 * configure: Regenerated.
11135 For older changes see ChangeLog-2002
11141 version-control: never