1 2003-09-04 Andrew Cagney <cagney@redhat.com>
3 * hppa-tdep.c (hppa_gdbarch_init): Set
4 "have_nonsteppable_watchpoint".
5 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
6 * mips-tdep.c (mips_dump_tdep): Do not print
7 HAVE_NONSTEPPABLE_WATCHPOINT.
8 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
9 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
10 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
11 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
13 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
15 * breakpoint.c (watchpoint_check): Remove accidentally checked in
16 unused code. Add comment.
18 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
20 * breakpoint.c (watchpoint_check): Check for pc being in an
21 epilogue if watchpoint frame couldn't be found.
23 2003-09-04 Andrew Cagney <cagney@redhat.com>
25 * Makefile.in: Re-generate all dependencies.
27 2003-09-03 Andrew Cagney <cagney@redhat.com>
29 * arch-utils.h (legacy_print_insn): Delete declaration.
30 * arch-utils.c (legacy_print_insn): Delete function.
31 * disasm.c (deprecated_tm_print_insn_info): Delete.
32 (_initialize_disasm): Delete function, contained code initializing
33 deprecated_tm_print_insn_info.
34 * gdbarch.sh (deprecated_tm_print_insn): Delete.
35 (deprecated_tm_print_insn_info): Delete.
36 (TARGET_PRINT_INSN): Do not provide a default.
37 * gdbarch.h, gdbarch.c: Re-generate.
39 2003-09-03 Andrew Cagney <cagney@redhat.com>
41 * disasm.c (fprintf_disasm): New function.
42 (gdb_disassemble_info): Call "init_disassemble_info", instead of
43 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
44 reverts 2003-08-14 change.
45 (_initialize_disasm): Call "init_disassemble_info", instead of
46 INIT_DISASSEMBLE_INFO_NO_ARCH.
48 2003-09-03 Michael Snyder <msnyder@redhat.com>
50 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
52 2003-09-03 Andrew Cagney <cagney@redhat.com>
54 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
55 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
56 * symfile.c (syms_from_objfile): Update.
57 (reread_symbols): `Update
58 * exec.c (exec_file_attach): Update.
59 (exec_file_attach): Update.
60 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
62 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
64 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
66 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
68 (arm_get_cache): Delete macro.
69 (struct arm_prologue_cache): Update comments. Make saved_regs into
70 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
72 (thumb_scan_prologue): Update for cache changes. Don't call
73 DEPRECATED_PC_IN_CALL_DUMMY.
74 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
75 argument and use it in desperation search for our prologue. Do not
76 search past the specified PC.
77 (arm_make_prologue_cache): Simplify.
79 (arm_prologue_this_id, arm_prologue_prev_register)
80 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
81 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
82 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
83 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
84 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
86 (arm_frame_chain_valid, arm_find_callers_reg)
87 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
88 (arm_pop_frame): Delete obsolete methods.
89 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
91 (arm_gdbarch_init): Update for new frame methods. Register prologue
92 and sigtramp unwinders. Set the default frame base method.
94 * Makefile.in (arm-tdep.o): Update dependencies.
95 * varobj.c (find_frame_addr_in_frame_chain): Call
96 get_frame_base_address.
97 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
99 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
101 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
102 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
103 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
104 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
105 Take NEXT_FRAME and CACHE arguments. Call
106 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
107 Set unwound_pc in CACHE instead of modifying the frame argument.
108 Don't bother checking the frame type when looking for sigtramp
110 (arm_make_prologue_cache, arm_frame_chain)
111 (arm_init_extra_frame_info): New functions.
113 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
115 * arm-tdep.c (arm_get_cache): Define.
116 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
117 unwound_sp, unwound_pc, and saved_regs.
118 (thumb_scan_prologue): Take a cache instead of the frame.
119 (arm_scan_prologue): Likewise.
120 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
121 instead of a temporary frame.
122 (arm_init_extra_frame_info): Allocate and use a cache.
123 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
125 2003-09-03 Andrew Cagney <cagney@redhat.com>
127 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
128 * config/mips/wince.mt (TM_CLIBS): Ditto.
129 * config/sh/wince.mt (TM_CLIBS): Ditto.
130 * config/pa/hppa64.mt (TM_CLIBS): Delete.
131 * config/sparc/sp64.mt (CC): Delete.
133 2003-09-03 Andrew Cagney <cagney@redhat.com>
135 * defs.h: Do not include "arch-utils.h".
136 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
138 * configure.in (GDB_MULTI_ARCH): Do not define.
139 * configure, config.in: Regenerate.
140 * configure.tgt: Do not set variable "gdb_multi_arch".
141 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
142 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
143 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
144 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
145 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
146 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
147 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
148 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
149 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
150 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
151 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
152 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
153 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
154 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
155 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
156 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
157 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
158 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
160 2003-08-30 Michael Chastain <mec@shout.net>
162 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
163 * config/m68k/nm-hp300hpux.h: Delete.
164 * config/m68k/tm-hp300hpux.h: Delete.
165 * config/m68k/xm-hp300hpux.h: Delete.
166 * config/m68k/xm-hp300bsd.h: Delete.
167 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
168 tm-hp300hpux.h, xm-hp300hpux.h.
169 * somsolib.c: Remove comment about hp300 shared libraries.
171 2003-08-31 Mark Kettenis <kettenis@gnu.org>
173 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
174 Only define PTRACE_GET_THREAD_AREA is not already defined.
175 Various style fixes in code and comments and some additional
176 spelling fixes in comments. Move after functions dealing with
178 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
181 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
182 frame_unwind_register_unsigned instead of
183 frame_unwind_unsigned_register.
185 2003-08-30 Mark Kettenis <kettenis@gnu.org>
187 * configure.in: Search for gethostbyname in libnsl.
188 * configure: Regenerated.
190 2003-08-29 Mark Kettenis <kettenis@gnu.org>
192 * configure.in: Remove redundant AC_MSG_RESULT in check for
193 uintptr_t in stdint.h.
194 * configure: Regenerated.
196 * amd64-nat.h (struct regcache): Add opaque declaration.
198 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
199 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
200 Change "register array" to "register cache" in comments.
201 (x86_64_linux_gregset64_reg_offset): New variable.
202 (GETREGS_SUPPLIES): Remove macro.
203 (supply_gregset): Call amd64_supply_native_gregset instead of
204 x86_64_linux_supply_gregset.
205 (fill_gregset): Rename `regno' to `regnum'. Call
206 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
207 (store_regs): Rename `regno' to `regnum'.
208 (store_fpregs): Rename `regno' to `regnum'.
209 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
210 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
211 Reorganize function a bit.
212 (store_inferior_registers): Rename `regno' to `regnum'. Use
213 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
214 Reorganize function a bit.
215 (_initialize_x86_64_linux_nat): New function.
216 * config/i386/x86-64linux.mh.
218 2003-08-29 Andrew Cagney <cagney@redhat.com>
220 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
221 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
222 (target_remove_watchpoint): Delete macro.
223 (target_insert_watchpoint): Delete macro.
224 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
225 (remote_mips_stopped_by_watchpoint): Delete declaration.
226 (remote_mips_remove_watchpoint): Delete declaration.
227 (remote_mips_set_watchpoint): Delete declaration.
228 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
229 * remote-mips.c (_initialize_remote_mips): Set
230 "to_insert_watchpoint", "to_stopped_by_watchpoint",
231 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
232 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
233 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
234 (mips_stopped_by_watchpoint): Rename
235 remote_mips_stopped_by_watchpoint.
236 (mips_can_hardware_watchpoint): Rename
237 remote_mips_can_use_hardware_watchpoint, update function
240 2003-08-29 Mark Kettenis <kettenis@gnu.org>
242 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
243 USER_DS. We haven't given them a register number yet.
245 * amd64-nat.h: New file.
246 * amd64-nat.c: New file.
247 * amd64fbsd-nat.c: Include "amd64-nat.h".
248 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
249 (amd64fbsd32_r_reg_offset): New variable.
250 (supply_gregset): Simply call amd64_supply_native_gregset.
251 (fill_gregset): Rename `regno' to `regnum'. Simply call
252 amd64_collect_native_gregset.
253 (fill_fpregset): Rename `regno' to `regnum'.
254 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
255 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
256 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
257 `fpregset_t'. Call amd64_supply_native_gregset instead of
258 supply_gregset. Call x86_64_supply_fxsave instead of
260 (store_inferior_registers): Rename `regno' to `regnum'. Replace
261 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
262 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
263 `fpregset_t'. Call amd64_collect_native_gregset instead of
264 fill_gregset. Call x86_64_collect_fxsave instead of
266 (_initialize_am64fbsd_nat): Initialize
267 amd64_native_gregset32_reg_offset and
268 amd64_native_gregset64_reg_offset.
269 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
271 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
272 null pointer. Fix typo in comment.
274 * regcache.c (supply_register): Reimplement to call
276 (regcache_collect): Reimplement by calling regcache_raw_collect.
278 2003-08-28 Mark Kettenis <kettenis@gnu.org>
280 * regcache.c (register_buffer): Consitify first argument.
281 (regcache_raw_supply, regcache_raw_collect): New
284 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
286 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
287 by Nathan J. Williams.
289 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
291 * lin-lwp.c (wait_lwp): New function, copied from
292 stop_wait_callback. Clean up.
293 (stop_wait_callback): Use wait_lwp.
295 2003-08-28 Andrew Cagney <cagney@redhat.com>
297 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
298 flavour and disassembler options.
299 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
300 (mips_gdbarch_init): Set "print_insn". Delete initialization of
301 deprecated_tm_print_insn_info.
303 2003-08-27 Andrew Cagney <cagney@redhat.com>
305 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
306 Use target_read_memory.
307 (s390_get_frame_info): Update. Do not reference
308 deprecated_tm_print_insn_info.
309 (s390_check_function_end, s390_is_sigreturn): Ditto.
311 2003-08-27 Andrew Cagney <cagney@redhat.com>
313 * Makefile.in (cris-tdep.o): Update dependencies.
314 * cris-tdep.c: Include "gdb_assert.h".
315 (cris_gdbarch_init): Set print_insn.
316 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
317 (cris_delayed_get_disassembler): Simplify, directly call the
318 disassembler returned by cris_get_disassembler.
319 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
320 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
321 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
322 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
323 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
324 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
325 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
326 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
327 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
328 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
329 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
330 (gdb_print_insn_sparc): Delete function.
331 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
332 deprecated_tm_print_insn_info.
333 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
334 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
335 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
337 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
338 * s390-tdep.c (gdb_print_insn_s390): Delete function.
339 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
340 (s390_gdbarch_init): Set print_insn.
342 2003-08-27 Andrew Cagney <cagney@redhat.com>
344 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
345 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
346 * infcall.c (call_function_by_hand): Convert the entry point
347 address into a code address.
349 2003-08-27 Andrew Cagney <cagney@redhat.com>
351 * dsrec.c: Include "gdb_string.h".
352 * Makefile.in (dsrec.o): Update dependencies.
354 2003-08-27 Michael Chastain <mec@shout.net>
356 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
358 2003-08-27 Andrew Cagney <cagney@redhat.com>
360 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
361 (alpha_osf1_init_abi): Do not set call_dummy_address.
363 2003-08-27 David Carlton <carlton@kealia.com>
365 From Randolph Chung <tausq@debian.org>:
366 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
367 compiles with -Wformat-nonliteral -Werror.
369 2003-08-26 Jim Blandy <jimb@redhat.com>
371 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
372 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
373 bfd_lookup_symbol, since we only want symbols in code sections.
374 (look_for_base): Pass zero as the SECT_FLAGS argument to
375 bfd_lookup_symbol, since we're not concerned about which section
378 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
380 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
381 we are frameless or the return address register is already known.
383 2003-08-26 Andrew Cagney <cagney@redhat.com>
385 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
386 in size. Add comments.
388 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
390 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
391 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
393 2003-08-26 Jason Merrill <jason@redhat.com>
395 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
396 case out of #ifdef MIPS block.
398 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
401 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
402 available before calling SECT_OFF_TEXT.
403 * PROBLEMS: Remove description of java/1322.
405 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
407 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
408 bof, and nat0-nat127 as pseudo-registers.
409 (ia64_frame_cache): New struct used to cache frame info.
410 (ia64_register_reggroup_p): New routine used to override default
411 register grouping so registers without names are still saved and
413 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
415 (ia64_pseudo_register_read): New routine to read pseudo-registers.
416 (ia64_pseudo_register_write): New routine to write pseudo-registers.
417 (ia64_alloc_frame_cache): New routine to create a new
419 (examine_prologue): Change prototype to add next_frame pointer.
420 Assume frameless until otherwise proven. Verify that the cfm for
421 current frame matches the cfm that should occur for the prologues
422 alloc insn and if equal, mark as not frameless. At end of routine,
423 if not frameless, calculate registers for the previous frame and store
424 in the cache, if a cache is provided.
425 (ia64_skip_prologue): Use new prototype when calling examine_prologue
426 and pass 0 for next_frame.
427 (ia64_store_return_value): Change to use convert_typed_floating()
428 instead of calling ia64_convert_to_raw().
429 (ia64_extract_return_value): Change to use convert_typed_floating()
430 instead of calling ia64_convert_to_virtual().
431 (ia64_frame_cache): New routine to support new frame model.
432 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
433 (ia64_frame_sniffer): Ditto.
434 (ia64_sigtramp_frame_init_saved_regs): Ditto.
435 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
436 (ia64_sigtramp_frame_prev_register): Ditto.
437 (ia64_sigtramp_frame_sniffer): Ditto.
438 (ia64_frame_base_address): Ditto.
439 (ia64_extract_struct_value_address): Change to issue error message.
440 (ia64_frame_align): New routine to align sp.
441 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
442 (ia64_push_arguments): Removed. Logic moved to
443 ia64_push_dummy_call().
444 (ia64_push_return_address): Ditto.
445 (ia64_unwind_dummy_id): New function.
446 (ia64_unwind_pc): Ditto.
447 (ia64_convert_register_p): Ditto.
448 (ia64_register_to_value): Ditto.
449 (ia64_value_to_register): Ditto.
450 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
451 (ia64_register_byte, ia64_register_raw_size): Ditto.
452 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
453 (ia64_saved_pc_after_call): Ditto.
454 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
455 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
456 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
457 (ia64_register_convert_to_raw): Ditto.
458 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
459 (ia64_init_extra_frame_info): Ditto.
460 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
461 (ia64_gdbarch_init): Remove registering of deprecated functions that
462 are no longer used. Add registration of new gdbarch functions.
463 Remove registering deprecated_write_sp. Replace
464 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
465 Delete set_gdbarch_deprecated_register_convertible(),
466 set_gdbarch_deprecated_register_convert_to_virtual(), and
467 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
468 set_gdbarch_deprecated_register_size(),
469 set_gdbarch_deprecated_register_bytes(),
470 set_gdbarch_pcregnum(),
471 set_gdbarch_deprecated_register_byte(),
472 set_gdbarch_deprecated_register_raw_size(),
473 set_gdbarch_deprecated_max_register_raw_size(),
474 set_gdbarch_deprecated_register_virtual_size(),
475 and set_gdbarch_deprecated_max_register_virtual_size() calls.
476 Replace set_gdbarch_deprecated_extract_return_value() with
477 set_gdbarch_extract_return_value(). Remove calls to:
478 set_gdbarch_deprecated_saved_pc_after_call();
479 set_gdbarch_deprecated_frame_chain(),
480 set_gdbarch_deprecated_frame_saved_pc(),
481 set_gdbarch_deprecated_frame_init_saved_regs(),
482 set_gdbarch_deprecated_get_saved_register(),
483 set_gdbarch_deprecated_call_dummy_words(),
484 set_gdbarch_deprecated_sizeof_call_dummy_words(),
485 set_gdbarch_deprecated_init_extra_frame_info(),
486 set_gdbarch_deprecated_frame_args_address(),
487 set_gdbarch_deprecated_frame_locals_address(),
488 and set_gdbarch_deprecated_dummy_write_sp().
489 Add set_gdbarch_convert_register_p(),
490 set_gdbarch_register_to_value(),
491 set_gdbarch_value_to_register(),
492 set_gdbarch_push_dummy_call(),
493 set_gdbarch_frame_align(),
494 set_gdbarch_unwind_dummy_id(),
495 set_gdbarch_unwind_pc(),
496 frame_unwind_append_sniffer(),
497 frame_unwind_append_sniffer(),
498 and frame_base_set_default().
500 2003-08-25 Chris Demetriou <cgd@broadcom.com>
502 * configure.tgt: Document need for special "mipsisa64" handling.
503 (mipsisa64*-*-linux64): Handle as target linux64.
504 (mipsisa64*-*-*): Handle as target embed64.
506 2003-08-18 Michael Chastain <mec@shout.net>
508 * PROBLEMS: Document pr gdb/1322, the Java anonymous
511 2003-08-24 Mark Kettenis <kettenis@gnu.org>
513 * i387-tdep.h: Update copyright date.
514 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
516 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
517 CFLAGS games to reflect reality.
519 2003-08-24 Andrew Cagney <cagney@redhat.com>
521 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
522 GDB_MULTI_ARCH is always non-zero.
523 * osabi.c (_initialize_gdb_osabi): Ditto.
524 (gdbarch_init_osabi): Ditto.
525 * sparc-tdep.c: Ditto for #if code.
527 2003-08-23 Mark Kettenis <kettenis@gnu.org>
529 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
531 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
533 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
534 x86_64_supply_fxsave.
535 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
536 x86_64_supply_fxsave.
537 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
538 x86_64_supply_fxsave.
540 2003-08-23 Andreas Jaeger <aj@suse.de>
542 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
545 2003-08-23 Mark Kettenis <kettenis@gnu.org>
547 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
548 i387_supply_register.
549 (go32_fetch_registers): Adjust call to i387_supply_fsave.
550 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
552 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
554 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
556 * i386bsd-nat.c (supply_fpregset): Adjust call to
558 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
559 call to i387_supply_fxsave. Call i387_supply_fsave instead of
561 (store_inferior_registers): Remove extraneous whitespace. Call
562 i387_fill_fsave instead of fill_fpregset.
563 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
564 (supply_fpregset): Likewise.
565 * i386v4-nat.c (supply_fpregset): Adjust call to
567 * i386-interix-nat.c (supply_fpregset): Adjust call to
569 * i386-linux-nat.c (supply_fpregset): Adjust call to
571 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
572 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
573 i387supply_fsave and i387_supply_fxsave.
574 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
575 Incorporate code from `i387_supply_register.
576 (i387_supply_register): Remove.
577 (i387_supply_fxsave): Add `regnum' argument.
579 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
581 (i387_supply_register): remove prototype.
584 2003-08-22 Michael Chastain <mec@shout.net>
586 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
587 Add lines for files in gdb/testsuite/gdb.cp/* that are
588 still not 8.3 unique.
590 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
592 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
593 TYPE_VPTR_FIELDNO is valid.
595 2003-08-19 Mark Kettenis <kettenis@gnu.org>
597 * utils.c (set_width_command): Remove prototypes.
598 (set_screen_size): New prototype.
599 (init_page_info): Simplify by fetching the screen size from
600 Readline. Call set_screen_size.
601 (set_screen_size): New function.
602 (set_width): Add missing whitespace in comment.
603 (set_width_command): Call set_screen_size.
604 (set_height_command): New function.
605 (initialize_utils): Fix formatting. Make "set height" command
606 call set_height_command. Remove redundant code that turns off
607 pagination if output isn't a terminal. Remove redundant call to
610 2003-08-22 Mark Kettenis <kettenis@gnu.org>
612 * sparc64-tdep.h (sparc64_regnum): Fix comment.
613 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
614 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
615 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
617 (sparc64_register_info): Give the reister with number
618 SPARC64_STATE_REGNUM a name.
619 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
621 (sparc64_push_dummy_call): Take BIAS into account when checking
623 (sparc_software_single_step): Remove assertions that check whether
624 NPC and NNPC were zero.
625 (sparc_supply_rwindow): Make public. Merge functionality with
626 sparc64_supply_rwindow.
627 (sparc_fill_rwindow): Make public. Merge functionality with
628 sparc64_fill_rwindow.
629 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
630 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
631 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
632 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
633 sparc_supply_rwindow instead of sparc64_supply_rwindow.
635 * reggroups.c: Add whitespace after declarations of local
636 variables in functions.
638 2003-08-21 Michael Chastain <mec@shout.net>
640 * gdbtypes.h: Change array bound type from an int to enum.
642 2003-08-21 Andrew Cagney <cagney@redhat.com>
644 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
645 * config/sparc/tm-sparc.h: Ditto.
646 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
648 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
650 2003-07-13 Mark Kettenis <kettenis@gnu.org>
652 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
653 (register_objfile_data, set_objfile_data, objfile_data): New
655 * objfiles.c (objfile_alloc_data, objfile_free_data): New
657 (allocate_objfile): Call objfile_alloc_data.
658 (free_objfile): Call objfile_free_data.
659 (struct objfile_data): New.
660 (struct objfile_data_registration): New.
661 (struct objfile_data_registry): New.
662 (objfile_data_registry): New variable.
663 (register_objfile_data): New function.
664 (objfile_alloc_data, objfile_free_data): New functions.
665 (set_objfile_data, objfile_data): New functions.
666 * dwarf2-frame.c (dwarf2_frame_data): New variable.
667 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
668 (_initialize_dwarf2_frame): New function and prototype.
670 2003-08-21 Andrew Cagney <cagney@redhat.com>
672 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
673 a specific architecture.
674 * arch-utils.h (set_architecture_from_arch_mach): Delete
676 (target_architecture_hook): Delete declaration.
677 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
678 (default_float_format): Assume GDB_MULTI_ARCH.
679 (default_double_format): Assume GDB_MULTI_ARCH.
680 (set_endian_from_file): Delete function.
681 (arch_ok): Delete function.
682 (set_arch): Delete function.
683 (set_architecture_from_arch_mach): Delete function.
684 (set_architecture_from_file): Delete function.
685 (set_architecture): Assume GDB_MULTI_ARCH.
686 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
688 2003-08-21 Mark Kettenis <kettenis@gnu.org>
690 Rewrite FreeBSD/sparc64 native configuration.
691 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
692 * sparc64fbsd-nat.c: New file.
693 * sparc64fbsd-tdep.c: New file.
694 * sparc64-tdep.c sparc64-tdep.h: New files.
695 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
696 sparc64fbsd-tdep.o): New dependencies.
697 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
698 and sparc64fbsd-tdep.c.
699 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
700 * config/sparc/fbsd.mh: Remove copyright notice.
701 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
703 * config/sparc/fbsd.mt: Remove copyright notice.
704 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
705 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
706 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
707 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
708 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
709 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
710 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
711 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
713 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
714 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
716 2003-08-21 Michael Chastain <mec@shout.net>
718 * symtab.h: Add doco on the space critical structures and
719 some measurements of space usage.
721 2003-08-21 Michael Snyder <msnyder@redhat.com>
723 * tracepoint.c (trace_dump_command): Trace break address
724 is subject to DECR_PC_AFTER_BREAK.
725 (set_traceframe_context): Make "trace_line" an int.
726 Fixes suggested by Mark Newman <mark.newman@lmco.com>
728 2003-08-20 Michael Snyder <msnyder@redhat.com>
730 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
731 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
732 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
734 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
735 functions, replace sh_push_dummy_call.
736 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
738 2003-08-20 Michael Chastain <mec@shout.net>
740 * gdbtypes.h (struct main_type): Rearrange to save space.
742 2003-08-20 Michael Snyder <msnyder@redhat.com>
744 * trad-frame.c: Comment typo fix.
746 2003-08-20 Michael Snyder <msnyder@redhat.com>
747 Kevin Buettner <kevinb@redhat.com>
749 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
750 (frv_frame_init_saved_regs): Add declaration.
751 (frame_extra_info): Add new field ``saved_regs''.
752 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
753 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
754 Update frame related code.
755 (frv_extract_struct_value_address): Adjust formatting.
756 * Makefile.in (frv-tdep.o): Update dependencies.
757 * config/frv/tm-frv.h (target_insert_watchpoint)
758 (target_remove_watchpoint, target_insert_hw_breakpoint)
759 (target_remove_hw_breakpoint): Delete these macros.
760 (remote_insert_watchpoint, remote_remove_watchpoint)
761 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
764 2003-08-20 Michael Chastain <mec@shout.net>
766 * defs.h (ENUM_BITFIELD): New macro.
767 * symtab.h (ENUM_BITFIELD): Use it.
768 (BYTE_BITFIELD): Remove old macro, which was already disabled.
770 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
772 * MAINTAINERS (write after approval): Add myself.
774 2003-08-18 Andrew Cagney <cagney@redhat.com>
776 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
777 * gdbarch.h, gdbarch.c: Re-generate.
778 * infcall.c (call_function_by_hand): Adjust the SP by
779 frame_red_zone_size before allocating any stack space.
780 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
781 * x86-64-tdep.c (x86_64_frame_align): New function.
782 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
784 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
785 Remove code adjusting SP so that it skips over the Red Zone.
787 2003-08-18 Mark Kettenis <kettenis@gnu.org>
789 * NEWS (New native configurations): Mention FreeBSD/amd64.
791 2003-08-18 Andrew Cagney <cagney@redhat.com>
793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
794 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
796 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
798 2003-08-18 Mark Kettenis <kettenis@gnu.org>
800 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
802 2003-08-18 Michal Ludvig <mludvig@suse.cz>
804 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
806 * i386-linux-nat.c: Include "linux-nat.h".
807 (child_post_startup_inferior): New function.
809 2003-08-18 Mark Kettenis <kettenis@gnu.org>
811 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
812 at the start of a frameless function. This probably fixes PR
815 2003-08-17 Michael Chastain <mec@shout.net>
817 * symfile.c (find_sym_fns): Remove special case for apollo target.
819 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
821 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
822 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
823 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
824 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
825 (linux_supports_tracevforkdone): New function.
826 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
828 (child_follow_fork): Handle vfork.
829 (linux_handle_extended_wait): Likewise. Also handle exec.
830 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
831 * NEWS: Mention fork tracing.
833 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
835 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
837 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
839 * Makefile.in (i386-linux-nat.o): Update dependencies.
840 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
841 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
842 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
843 * i386-linux-nat.c: Include "linux-nat.h".
844 (child_post_startup_inferior): New function.
845 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
846 * infptrace.c (kill_inferior): Wrap in #ifdef.
847 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
848 attaching to each LWP.
849 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
850 (init_lin_lwp_ops): Fill in some more operations.
851 * linux-nat.h (linux_enable_event_reporting)
852 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
854 * linux-nat.c (linux_enable_event_reporting): New function.
855 (child_post_attach, linux_child_post_startup_inferior)
856 (child_post_startup_inferior, child_follow_fork)
857 (linux_handle_extended_wait, kill_inferior): New functions.
859 2003-08-16 Andrew Cagney <cagney@redhat.com>
861 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
862 * gdbarch.h, gdbarch.c: Re-generate.
864 2003-08-16 Mark Kettenis <kettenis@gnu.org>
866 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
868 2003-08-16 Andrew Cagney <cagney@redhat.com>
870 * NEWS: Mention that "set prompt-escape-char" was deleted.
871 * top.c (get_prompt_1): Delete function.
873 (init_main): Do not clear "gdb_prompt_escape". Delete "set
874 prompt-escape-char" command.
875 (MAX_PROMPT_SIZE): Delete macro.
876 (get_prompt): Simplify, do not call get_prompt_1.
878 2003-08-16 Andrew Cagney <cagney@redhat.com>
880 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
881 -Werror. -Wformat-nonliteral problems.
883 2003-08-15 J. Brobecker <brobecker@gnat.com>
885 Further multiarching work mostly for hppa64-*-hpux11:
886 * hppa-tdep.h: New file.
887 * hppa-tdep.c: #include hppa-tdep.c.
888 (hppa32_num_regs): Renamed from hppa_num_regs.
889 (hppa64_num_regs): New constant.
890 (hppa64_call_dummy_breakpoint_offset): New constant.
891 (hppa32_call_dummy_length): New constant.
892 (hppa64_call_dummy_length): New constant.
893 (hppa32_stack_align): Make name 32bit explicit.
894 (hppa32_register_virtual_type): Likewise.
895 (hppa32_extract_return_value): Likewise.
896 (hppa32_use_struct_convention): Likewise.
897 (hppa32_store_return_value): Likewise.
898 (hppa64_register_virtual_type): New function.
899 (hppa64_extract_return_value): New function.
900 (hppa64_use_struct_convention): New function.
901 (hppa64_store_return_value): New function.
902 (hppa_frame_locals_address): Remove declaration, function does
904 (hppa_register_byte): Add support for PA64 ABI.
905 (hppa_gdbarch_init): Add support for PA64 ABI.
906 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
907 Make name 32bit explicit.
908 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
909 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
910 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
911 (hppa64_hpux_frame_base_before_sigtramp): New function.
912 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
913 * config/pa/tm-hppa64.h: Remove macros that are no longer
914 necessary now that the gdbarch vector is properly setup.
915 Transform some macros into function calls. Some minor cleanup.
916 * config/pa/tm-hppah.h: Update function calls in macros
917 following the function renaming in hppa-hpux-tdep.c.
918 * Makefile.in (hppa_tdep_h): New variable.
919 (hppa-tdep.o): Add dependency over hppa_tdep_h.
921 2003-08-14 Michael Snyder <msnyder@redhat.com>
923 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
925 2003-08-13 J. Brobecker <brobecker@gnat.com>
927 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
928 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
931 2003-08-13 Michael Snyder <msnyder@redhat.com>
933 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
934 (frv_saved_pc_after_call): Use deprecated ftype.
935 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
936 (frv_remote_translate_xfer_address): Remove.
937 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
939 2003-08-13 J. Brobecker <brobecker@gnat.com>
941 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
942 initialization after the common gdbarch initialization, not before.
944 2003-08-13 J. Brobecker <brobecker@gnat.com>
946 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
947 (ADDR_BITS_REMOVE): Remove, redundant.
949 2003-08-13 J. Brobecker <brobecker@gnat.com>
951 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
952 gdbarch method to clear the 2 low bits of text addresses.
954 2003-08-12 Andrew Cagney <cagney@redhat.com>
956 * Makefile.in (dsrec.o): Update dependencies.
957 * dsrec.c: Include "gdb_assert.h".
958 (make_srec): Use snprintf instead of sprintf, use a literal format
961 2003-08-12 Andrew Cagney <cagney@redhat.com>
963 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
964 FRAME_OBSTACK_ZALLOC.
966 2003-08-12 Kevin Buettner <kevinb@redhat.com>
968 * i386-tdep.c (i386_gdbarch_init): Enable default support for
971 2003-08-10 Mark Kettenis <kettenis@gnu.org>
973 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
974 amd64fbsd_sc_reg_offset): Add extern declarations.
975 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
978 2003-08-11 Ben Elliston <bje@wasabisystems.com>
980 * MAINTAINERS (write after approval): Update my mail address.
982 2003-08-10 Andrew Cagney <cagney@redhat.com>
984 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
986 2003-08-10 Mark Kettenis <kettenis@gnu.org>
988 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
989 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
990 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
991 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
992 i386bsd_sc_reg_offset): Add extern declarations.
993 * i386obsd-nat.c: Include "i386-tdep.h"
994 (_initialize_i386obsd_nat): Remove extern declarations.
995 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
997 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1000 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1001 instead of frame_read_register.
1002 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1003 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1005 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1006 instead of frame_unwind_unsigned_register. Use
1007 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1008 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1009 instead of read_register. Use builtin_type_void_data_ptr instead
1010 of builtin_type_void_func_ptr when extracting the address of the
1012 (i386_extract_return_value, i386_store_return_value,
1013 i386_pseudo_register_read, i386_pseudo_register_write): Use
1014 register_size instead REGISTER_RAW_SIZE.
1016 2003-08-10 Andrew Cagney <cagney@redhat.com>
1018 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1019 sprintf. Make "name" constant.
1021 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1023 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1024 instead of frame_read_register.
1025 (i387_print_float_info): Use get_frame_register and
1026 get_frame_register_unsigned instead of frame_register_read.
1028 * i386fbsd-nat.c: Include "i386-tdep.h".
1029 (child_resume): Make `eflags' an ULONGEST. Use
1030 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1031 instead of register_read and register_write.
1033 * i386bsd-nat.c (fetch_inferior_registers,
1034 store_inferior_registers): Don't use && at the end of a line.
1035 (_initialize_i386bsd_nat): Fix typo.
1037 * frame.c (_initialize_frame): Add missing backslash.
1039 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1040 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1041 and supply_register instead of manipulating the register buffer
1044 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1045 * config/i386/nm-i386sol2.h
1046 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1048 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1049 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1050 instructions that GCC likes to mingle into the prologue. Fixes
1051 gdb/1253 and gdb/1255.
1053 2003-08-09 Andrew Cagney <cagney@redhat.com>
1056 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1057 * command.h (add_setshow_uinteger_cmd): Declare.
1058 * frame.c (set_backtrace_cmd): New function.
1059 (show_backtrace_cmd): New function.
1060 * frame.c (_initialize_frame): Replace "set/show
1061 backtrace-below-main" with "set/show backtrace past-main". Add
1062 command "set/show backtrace limit".
1063 (backtrace_past_main): Rename "backtrace_below_main".
1064 (backtrace_limit): New variable.
1065 (get_prev_frame): Update. Check the backtrace_limit.
1067 2003-08-09 Andrew Cagney <cagney@redhat.com>
1069 * defs.h (xstrprintf): Declare.
1070 * utils.c (xstrprintf): New function.
1071 * breakpoint.c (insert_breakpoints): Replace sprintf and
1072 non-literal format strings, with xstrprintf and cleanups.
1073 (delete_breakpoint,breakpoint_re_set): Ditto.
1074 (commands_command, insert_breakpoints): Ditto.
1075 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1076 (break_at_finish_command_1): Ditto.
1078 2003-08-09 Andrew Cagney <cagney@redhat.com>
1080 * MAINTAINERS (language support): List Adam Fedor as Objective C
1083 2003-08-08 J. Brobecker <brobecker@gnat.com>
1085 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1086 are now multiarched.
1088 2003-08-08 J. Brobecker <brobecker@gnat.com>
1090 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1091 longer necessary now that hppa64 is partially multiarch'ed.
1093 2003-08-08 Andrew Cagney <cagney@redhat.com>
1095 * interps.c (interp_set): Check for a NULL "old_interp".
1097 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1099 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1100 (install-only): Support DESTDIR.
1101 (uninstall): Likewise.
1102 (install-gdbtk): Likewise.
1104 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1106 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1107 contains something meaningful at all times.
1109 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1111 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1113 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1115 * MAINTAINERS (write after approval): Added self.
1117 2003-08-07 Andrew Cagney <cagney@redhat.com>
1119 * inferior.h (AT_SYMBOL): Define.
1120 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1121 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1122 * mips-tdep.c (mips_call_dummy_address): Delete function.
1123 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1124 set call_dummy_address.
1126 2003-08-07 Andrew Cagney <cagney@redhat.com>
1128 * language.c (op_error): Delete function.
1129 (binop_type_check): Delete function.
1130 * language.h (type_op_error, range_op_error): Delete macros.
1131 (op_error): Delete declaration.
1133 2003-08-07 Andrew Cagney <cagney@redhat.com>
1135 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1137 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1139 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1140 (x86_64_push_arguments): Skip the red zone.
1142 2003-08-05 Andrew Cagney <cagney@redhat.com>
1144 * reggroups.c (reggroup_next): Check for the final entry.
1146 2003-08-04 Andrew Cagney <cagney@redhat.com>
1148 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1149 * cli/cli-script.c (define_command): Call query directly, instead
1150 of passing it a buffer.
1151 * ocd.c (ocd_error): Pass error a constant format string.
1152 * remote-mips.c (mips_error): Use fputs_filtered.
1154 * solib-svr4.c (_initialize_svr4_solib): Update
1155 register_gdbarch_data call.
1156 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1158 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1159 (register_gdbarch_data): Delete "free" parameter. Update
1161 * gdbarch.h, gdbarch.c: Re-generate.
1162 * reggroups.c (_initialize_reggroup): Update.
1163 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1164 * frame-base.c (_initialize_frame_base): Update.
1165 * frame-unwind.c (_initialize_frame_unwind): Update.
1166 * user-regs.c (_initialize_user_regs): Update.
1167 * remote.c (_initialize_remote): Update.
1168 * regcache.c (_initialize_regcache): Update.
1170 * regcache.c (xfree_regcache_descr): Delete function.
1171 (_initialize_regcache): Update call to register_gdbarch_data.
1172 (init_regcache_descr, init_legacy_regcache_descr): Use
1173 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1175 * remote.c (free_remote_state): Delete function.
1176 (_initialize_remote): Update register_gdbarch_data.
1177 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1178 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1180 2003-08-04 Andrew Cagney <cagney@redhat.com>
1182 * reggroups.c (struct reggroup_el): Define.
1183 (struct reggroups): Delete field "nr_group". Replace array
1184 "group" with a "first" to "last" linked list.
1185 (reggroups_init): Update. Allocate using gdbarch's obstack.
1186 (reggroups_free): Delete function.
1187 (add_group): Update. Add "el" parameter.
1188 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1189 (default_groups): Update.
1190 (reggroup_next): Replace reggroups.
1191 (reggroups_dump): Update.
1192 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1193 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1194 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1196 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1198 * Makefile.in (tui-interp.o): Update dependencies.
1200 2003-08-04 David Carlton <carlton@kealia.com>
1202 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1203 to internal_error call.
1204 * source.c (forward_search_command): Add "%s" format argument.
1205 (reverse_search_command): Ditto.
1206 * top.c (quit_confirm): Ditto.
1207 * cli/cli-setshow.c (do_setshow_command): Ditto.
1208 * cp-valprint.c (cp_print_class_method): Replace
1209 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1210 (cp_print_class_member): Ditto.
1211 * event-top.c (command_line_handler): Ditto.
1212 * linux-proc.c (linux_info_proc_cmd): Ditto.
1213 * p-typeprint.c (pascal_type_print_base): Ditto.
1214 * p-valprint.c (pascal_object_print_class_method): Ditto.
1215 (pascal_object_print_class_member): Ditto.
1216 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1217 * remote.c (remote_cisco_section_offsets): Ditto.
1218 * top.c (command_line_input): Ditto.
1219 * utils.c (vwarning,error_stream,quit): Ditto.
1220 * valprint.c (print_floating,print_binary_chars)
1221 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1223 2003-08-04 Andrew Cagney <cagney@redhat.com>
1225 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1227 2003-08-02 Andrew Cagney <cagney@redhat.com>
1229 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1230 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1233 2003-08-02 Andrew Cagney <cagney@redhat.com>
1235 * Makefile.in: Update all dependencies and definitions.
1237 2003-08-02 Adam Fedor <fedor@gnu.org>
1239 * linespec.c (is_objc_method_format): New function
1240 (decode_line_1, locate_first_half): Use it.
1243 2003-08-01 Andrew Cagney <cagney@redhat.com>
1245 * NEWS: Mention that m32r is multi-arch.
1246 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1247 * configure.tgt: Recognize m32r-*-*.
1248 * config/m32r/tm-m32r.h: Delete file.
1249 * config/m32r/m32r.mt: New file.
1250 * m32r-rom.c (m32r_upload_command): Use hostent only when
1251 gethostname succeeds, in order to avoid a compilation
1253 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1256 2003-08-01 Michael Snyder <msnyder@redhat.com>
1258 * sh-tdep.c (sh_frame_align): New gdbarch method.
1259 (sh_gdbarch_init): Set up frame_align method.
1261 2003-07-31 Michael Snyder <msnyder@redhat.com>
1263 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1264 which is already covered by the new frames infrastructure.
1266 2003-07-31 Andrew Cagney <cagney@redhat.com>
1268 * user-regs.c (struct user_reg): Add "next" link.
1269 (struct user_regs): Replace "user" with "first" and "last" links.
1270 (append_user_reg): Add pre-allocated "reg" parameter.
1271 (builtin_user_regs): Provide initial value for "last".
1272 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1273 (user_regs_init): Allocate memory from the gdbarch obstack.
1274 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1275 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1277 (usernum_to_user_reg): New function.
1278 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1279 (value_of_user_reg): Use usernum_to_user_reg.
1280 (user_regs_free): Delete function.
1281 (_initialize_user_regs): Update register_gdbarch_data call.
1283 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1285 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1287 2003-07-30 Michael Snyder <msnyder@redhat.com>
1289 * value.h (value_being_returned): Add a struct_addr argument.
1290 * infcall.c (call_function_by_hand): Pass struct_addr to
1291 value_being_returned.
1292 * infcmd.c (print_return_value): Pass zero as struct_addr.
1293 * values.c (value_being_returned): If struct_addr is passed,
1294 use it instead of trying to recover it from the inferior.
1296 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1298 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1299 the prologue analyzer won't need to attempt to extract the pc
1300 value from the woefully incomplete dummy frame.
1301 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1302 possible. Disable code which modifies the frame.
1304 2003-07-28 Andrew Cagney <cagney@redhat.com>
1306 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1308 (annotate_breakpoints_table, annotate_record): Ditto.
1309 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1310 (annotate_field_name_end, annotate_field_value): Ditto.
1311 (annotate_field_end, annotate_frame_source_begin): Ditto.
1312 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1313 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1314 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1315 (annotate_frame_address_end, annotate_frame_address): Ditto.
1316 (annotate_frame_args, annotate_frame_end): Ditto.
1317 (annotate_frame_where, annotate_arg_begin): Ditto.
1318 (annotate_arg_name_end, annotate_arg_value): Ditto.
1319 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1320 (annotate_function_call, annotate_signal_name): Ditto.
1321 (annotate_signal_string, annotate_signal_name_end): Ditto.
1322 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1323 (annotate_value_begin, annotate_value_history_value): Ditto.
1324 (annotate_value_history_end, annotate_value_end): Ditto.
1325 (annotate_display_begin, annotate_display_number_end): Ditto.
1326 (annotate_display_format, annotate_display_expression): Ditto.
1327 (annotate_display_expression_end, annotate_display_value): Ditto.
1328 (annotate_display_end, annotate_array_section_begin): Ditto.
1329 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1330 (annotate_elt, annotate_array_section_end): Ditto.
1332 2003-07-28 Andrew Cagney <cagney@redhat.com>
1334 * regcache.c (struct regcache_descr): Update comments on
1336 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1337 sizeof_raw_register_valid_p.
1338 (init_regcache_descr): Set nr_raw_registers and
1339 sizeof_raw_register_valid_p before calling
1340 init_legacy_regcache_descr.
1342 2003-07-28 Andrew Cagney <cagney@redhat.com>
1344 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1347 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1349 * thread.c (info_threads_command): Use get_selected_frame ().
1350 Check that there is at least one non-sentinel frame.
1352 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1354 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1355 (m68hc11_pop_frame): Remove.
1356 (m68hc11_frame_saved_pc): Remove.
1357 (m68hc11_frame_chain): Remove.
1358 (m68hc11_frame_init_saved_regs): Remove.
1359 (m68hc11_init_extra_frame_info): Remove.
1360 (m68hc11_store_struct_return): Remove.
1361 (m68hc11_saved_pc_after_call): Remove.
1363 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1365 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1366 frame unwind information.
1367 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1368 and adapted for frame unwinding.
1369 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1370 (m68hc11_unwind_pc): New function.
1371 (m68hc11_frame_unwind_cache): New function to analyze frames.
1372 (m68hc11_frame_this_id): New function to create new frame struct.
1373 (m68hc11_frame_prev_register): New function to unwind a register from
1375 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1376 (m68hc11_frame_p): New function for the above.
1377 (m68hc11_frame_base_address): New function to return fp of frame.
1378 (m68hc11_frame_args_address): Update for frame.
1379 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1380 (m68hc11_unwind_sp): New function.
1381 (m68hc11_unwind_dummy_id): New function.
1382 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1385 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1387 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1388 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1389 when we are beyond the current pc.
1391 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1393 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1394 from m68hc11_push_arguments.
1395 (m68hc11_push_arguments): Remove.
1396 (m68hc11_push_return_address): Remove.
1397 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1398 handlers; remove deprecated_extra_stack_alignment_needed.
1400 2003-07-27 Andrew Cagney <cagney@redhat.com>
1402 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1403 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1404 REAL_PC and not the pointer.
1405 * hppa-hpux-tdep.c: Include frame.h
1407 2003-07-27 Andrew Cagney <cagney@redhat.com>
1409 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1410 GDB_MULTI_ACH_PARTIAL.
1412 2003-07-27 Andrew Cagney <cagney@redhat.com>
1414 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1415 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1416 operator at start and not end of line.
1417 (decode_prologue): Ditto.
1418 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1419 frame_unwind_register_unsigned instead of
1420 frame_unwind_unsigned_register.
1421 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1423 (m32r_push_dummy_call): Use register_size instead of
1425 (m32r_frame_sniffer): Replace m32r_frame_p.
1426 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1427 * m32r-rom.c (report_transfer_performance): Delete extern
1429 (m32r_load, m32r_upload_command): Use print_transfer_performance
1430 instead of report_transfer_performance.
1431 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1432 / add_show_from_set.
1434 2003-07-26 Andrew Cagney <cagney@redhat.com>
1436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1437 store_return_value and extract_struct_value_address.
1439 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1442 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1443 NULL, default to the section containing PC.
1445 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1447 * NEWS: Mention "regs" deprecated for m68hc11 too.
1449 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1450 (m68hc11_print_register): New function to print out one register.
1451 (m68hc11_print_registers_info): New function to print registers.
1452 (show_regs): Deprecate and use the above.
1453 (m68hc11_gdbarch_init): Install the print_registers_info.
1455 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1457 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1458 that we have a SIGTRAP before returning non-zero.
1460 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1461 Elena Zannoni <ezannoni@redhat.com>
1463 * linespec.c (decode_line_2): Avoid crash if
1464 find_function_start_sal() returns empty record.
1466 2003-07-23 Andreas Schwab <schwab@suse.de>
1468 * ia64-tdep.c (ia64_print_insn): New function.
1469 (ia64_gdbarch_init): Set print_insn to it.
1470 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1471 deprecated_tm_print_insn_info.
1473 2003-07-22 Michael Snyder <msnyder@redhat.com>
1475 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1476 handle 8-bit returns (long long).
1477 (h8300h_extract_return_value): Ditto.
1478 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1480 2003-07-22 Andrew Cagney <cagney@redhat.com>
1482 * gdbarch.c Include "gdb_obstack.h".
1483 (struct gdbarch): Add an "obstack".
1484 (alloc_gdbarch_data): Allocate the gdbarch data using
1485 GDBARCH_OBSTACK_CALLOC.
1486 (free_gdbarch_data): Delete function.
1487 (gdbarch_obstack_zalloc): New function.
1488 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1489 Assert that the architecture is not initialized.
1490 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1491 vector from the obstack.
1492 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1493 architecture obstack.
1494 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1495 (set_gdbarch_data): Assert that the data is not initialized.
1496 (struct gdbarch_data): Delete member "free".
1497 (register_gdbarch_data): Do not initialize "free".
1498 * gdbarch.h, gdbarch.c: Re-generate.
1500 2003-07-22 Andrew Cagney <cagney@redhat.com>
1502 * configure.in (build_warnings): Add -Wformat-nonliteral.
1503 * configure: Re-generate.
1505 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1507 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1509 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1511 * findvar.c (read_var_value): Remove case for thread local storage
1512 variables. It is now entirely handled by the dwarf2 location
1514 * printcmd.c (address_info): Ditto.
1515 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1517 (struct symbol): Remove objfile field, which was used by
1518 LOC_THREAD_LOCAL_STATIC only.
1519 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1520 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1521 usage of objfile pointer.
1522 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1523 thread local variables.
1524 Add include of objfiles.h.
1525 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1527 * Makefile.in (dwarf2loc.o): Update dependencies.
1529 2003-07-22 Andrew Cagney <cagney@redhat.com>
1531 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1533 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1534 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1535 (struct value): Add opaque declaration.
1536 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1538 2003-07-21 Andrew Cagney <cagney@redhat.com>
1540 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1541 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1543 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1545 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1546 regcache_cooked_read_unsigned instead of read_register.
1547 (m68hc11_saved_pc_after_call): Likewise.
1548 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1549 instead of write_register.
1550 (m68hc11_register_type): New function.
1551 (m68hc11_register_virtual_type): Remove.
1552 (m68hc11_store_return_value): Convert to use the regcache.
1553 (m68hc11_extract_struct_value_address): Likewise.
1554 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1555 m68hc11_register_type; undeprecate store_return_value and
1556 extract_struct_value_address.
1558 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1560 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1561 and translate to use regcache.
1562 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1564 2003-07-18 Andrew Cagney <cagney@redhat.com>
1566 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1567 * gdbarch.h, gdbarch.c: Re-generate.
1568 * i386-tdep.c (i386_gdbarch_init): Do not set
1569 DWARF2_BUILD_FRAME_INFO.
1570 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1572 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1573 DWARF2_BUILD_FRAME_INFO.
1575 2003-07-18 Andrew Cagney <cagney@redhat.com>
1577 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1578 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1580 2003-07-18 Andrew Cagney <cagney@redhat.com>
1582 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1583 frame_unwind_address_in_block, instead of frame_pc_unwind.
1584 (dwarf2_frame_cache): Ditto.
1586 2003-07-18 Andrew Cagney <cagney@redhat.com>
1588 * user-regs.h (struct gdbarch): Declare opaque.
1589 * ui-out.h (struct ui_file): Declare opaque.
1590 * dwarf2-frame.h (struct frame_info): Declare opaque.
1592 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1594 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1596 (procfs_meminfo): Change strerror to safe_strerror.
1597 (procfs_can_run): Remove K&R badness.
1599 2003-07-17 Michael Snyder <msnyder@redhat.com>
1601 * remote-sim.c: Comment typo fix.
1603 2003-07-17 Andrew Cagney <cagney@redhat.com>
1605 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1607 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1608 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1609 GDB_MULTI_ARCH_PARTIAL.
1611 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1613 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1614 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1615 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1617 2003-07-16 Theodore A. Roth <troth@openavr.org>
1619 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1621 (avr_frame_unwind_cache): Don't unwind FP for main.
1623 Save the computed prev_sp.
1624 (avr_saved_regs_unwinder): Remove function.
1625 (avr_frame_prev_register): Use PC unwind logic from
1626 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1628 2003-07-16 Andrew Cagney <cagney@redhat.com>
1630 * frame-base.h (frame_base_p_ftype): Delete definition.
1631 (frame_base_append_predicate): Delete declaration.
1632 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1633 (frame_unwind_append_predicate): Delete declaration.
1634 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1635 (append_predicate): Delete parameter "p".
1636 (frame_unwind_append_predicate): Delete function.
1637 (frame_unwind_append_sniffer): Update call to append_predicate.
1638 (frame_unwind_free): Delete function.
1639 (_initialize_frame_unwind): Pass NULL as "free" to
1640 register_gdbarch_data.
1641 (frame_unwind_init): Append the dummy_frame_sniffer.
1642 (frame_unwind_find_by_frame): Simplify.
1643 * frame-base.c (struct frame_base_table): Delete field "p".
1644 (append_predicate): Delete parameter "p".
1645 (frame_base_append_predicate): Delete function.
1646 (frame_base_append_sniffer): Update call to append_predicate.
1647 (frame_base_free): Delete function.
1648 (frame_base_find_by_frame): Simplify.
1649 (_initialize_frame_base): Pass NULL as "free" to
1650 register_gdbarch_data.
1651 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1652 (x86_64_sigtramp_frame_sniffer): Replace
1653 "x86_64_sigtramp_frame_p".
1654 (x86_64_init_abi): Set the frame unwind sniffers.
1655 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1656 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1657 (m68k_gdbarch_init): Set the frame unwind sniffers.
1658 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1659 "i386_sigtramp_frame_p".
1660 (i386_frame_sniffer): Replace "i386_frame_p".
1661 (i386_gdbarch_init): Set the frame unwind sniffers.
1662 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1663 (avr_gdbarch_init): Set the frame unwind sniffers.
1664 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1665 "alpha_sigtramp_frame_p"
1666 (alpha_heuristic_frame_sniffer): Replace
1667 "alpha_heuristic_frame_p".
1668 (alpha_gdbarch_init): Set the frame unwind sniffers.
1669 (alpha_dwarf2_init_abi): Ditto.
1670 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1671 "alpha_debug_frame_p".
1672 (alpha_mdebug_frame_base_sniffer): Replace
1673 "alpha_mdebug_frame_base_p".
1674 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1675 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1676 (d10v_gdbarch_init): Set the frame unwind sniffer.
1677 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1678 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1679 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1680 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1681 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1682 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1684 2003-07-16 Michael Snyder <msnyder@redhat.com>
1686 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1687 should go thru sh_dsp_register_sim_regno, else the dsp regs
1688 will not get the right values.
1690 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1692 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1693 deprecated_store_floating by call to store_typed_floating.
1694 (sh_sh4_register_convert_to_raw): Substitute call to
1695 deprecated_extract_floating by call to extract_typed_floating.
1697 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1699 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1701 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1703 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1704 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1705 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1707 (do_pseudo_register): Remove.
1708 (sh_push_dummy_code): New function.
1709 (sh64_store_struct_return): Rename from sh_store_struct_return.
1710 Only called for sh64 now.
1711 (sh_extract_struct_value_address): Regcache'ify.
1712 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1713 and accomodate new tasks.
1714 (sh64_push_return_address): Rename from sh_push_return_address.
1715 Only called for sh64 now.
1716 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1718 (sh3e_sh4_extract_return_value): Regcache'ify.
1719 (sh_default_store_return_value): Ditto.
1720 (sh3e_sh4_store_return_value): Ditto.
1721 (sh_default_register_byte): Remove.
1722 (sh_sh4_register_byte): Remove.
1723 (sh_default_register_raw_size): Remove.
1724 (sh_sh4_register_raw_size): Remove.
1725 (sh_register_virtual_size): Remove.
1726 (sh_sh3e_register_virtual_type): Remove.
1727 (sh_sh3e_register_type): New function.
1728 (sh_sh4_register_virtual_type): Remove.
1729 (sh_sh4_register_type): New function.
1730 (sh_default_register_virtual_type): Remove.
1731 (sh_default_register_type): New function.
1732 (do_fv_register_info): Add parameters to accomodate call from
1733 sh_print_registers_info.
1734 (do_dr_register_info): Ditto.
1735 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1736 Add parameters to accomodate call from sh_print_registers_info.
1737 (sh_do_fp_register): Ditto.
1738 (sh64_do_pseudo_register): Call do_dr_register_info,
1739 do_fv_register_info and sh_do_fp_register with default parameters.
1740 (sh_do_register): Add parameters to accomodate call from
1741 sh_print_registers_info.
1742 (sh_print_register): Ditto.
1743 (sh_print_registers_info): Rename from sh_do_registers_info.
1744 Add parameters to be used as gdbarch_print_registers_info
1745 implementation. Accomodate removed do_pseudo_register function
1747 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1748 function pointer. Call sh_print_register with default parameters.
1749 (sh64_do_registers_info): Call sh_print_registers_info instead of
1750 sh_do_registers_info.
1751 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1752 detection of deprecated vs. non-deprecated functionality.
1753 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1754 function pointer assignments by direct function calls.
1756 2003-07-15 Andrew Cagney <cagney@redhat.com>
1758 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1759 (frame_register_unwind, create_new_frame): Ditto.
1760 (legacy_get_prev_frame, get_frame_type): Ditto.
1761 (get_frame_base_address): Use frame_base_find_by_frame.
1762 (get_frame_locals_address): Use frame_base_find_by_frame.
1763 (get_frame_args_address): Use frame_base_find_by_frame.
1764 * frame-base.h (frame_base_sniffer_ftype): Declare.
1765 (frame_base_append_sniffer): Declare.
1766 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1767 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1768 (frame_base_append_sniffer): New function.
1769 (frame_base_append_predicate): Add a NULL sniffer.
1770 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1771 (struct frame_base_table): Add "sniffer".
1772 (frame_base_free): Free the "sniffer" table.
1773 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1774 (frame_unwind_append_sniffer): Declare.
1775 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1776 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1777 (struct frame_unwind_table): Add "sniffer", delete "middle".
1778 (append_predicate): Add "sniffer" parameter, append the sniffer.
1779 (frame_unwind_init): Update append_predicate call.
1780 (frame_unwind_append_sniffer): New function.
1781 (frame_unwind_append_predicate): Update append_predicate call.
1782 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1784 2003-07-15 Andrew Cagney <cagney@redhat.com>
1786 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1787 before code inhibiting repeated unwind attempts. Add to
1788 commentary on that test's problems.
1789 * blockframe.c (inside_main_func): Look for "main" in the minimal
1791 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1794 2003-07-15 Andrew Cagney <cagney@redhat.com>
1796 * complaints.c (struct explanation): Define.
1797 (struct complaints): Change type of "explanation" to "struct
1799 (symfile_explanations): Convert to a "struct explanation" table.
1800 (vcomplaint): Update.
1802 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1804 * x86-64-linux-nat.c (regmap): Removed.
1805 (supply_gregset, fill_gregset): Call
1806 x86_64_linux_(fill,supply)_gregset functions.
1807 * x86-64-linux-tdep.c (USER_*): New defines.
1808 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1809 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1811 (fetch_core_registers): Ditto.
1812 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1813 * x86-64-linux-tdep.h: New file.
1814 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1816 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1818 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1820 * x86-64-tdep.c (x86_64_store_return_value): Use
1821 regcache_cooked_write_part instead of regcache_cooked_write.
1823 * configure.host: Add x86_64-*-freebsd*.
1824 * configure.tgt: Add x86_64-*-freebsd*.
1825 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1826 * amd64fbsd-nat.c: New file.
1827 * amd64fbsd-tdep.c: New file.
1828 * config/i386/nm-fbsd64.h: New file.
1829 * config/i386/fbsd64.mh: New file.
1830 * config/i386/fbsd64.mt: New file.
1832 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1834 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1835 `sc_regs_offset' and `sc_fpregs_offset'.
1836 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1837 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1838 (alpha_sigtramp_register_address): Rewrite to use new members of
1839 `struct gdbarch_tdep'.
1840 (alpha_gdbarch_init): Initialize new members of struct
1842 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1843 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1844 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1845 (alphafbsd_pc_in_sigtramp): Implement.
1846 (alphafbsd_sigtramp_offset): New function.
1847 (alphafbsd_sigcontext_addr): New function.
1848 (alphafbsd_init_abi): Initialize signal trampoline related members
1849 of `struct gdbarch_tdep'.
1850 (_initialize_alphafbsd_tdep): Add prototype.
1852 2003-07-11 Theodore A. Roth <troth@openavr.org>
1854 * Makefile.in (install-only): Quote sed expression when generating
1857 2003-07-11 Richard Henderson <rth@redhat.com>
1859 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1860 * dwarf2-frame.c: Include complaints.h.
1861 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1862 variable initialization; return NULL on error.
1863 (decode_frame_entry): New.
1865 2003-07-11 Andrew Cagney <cagney@redhat.com>
1867 * frame.h (frame_address_in_block): Delete declaration.
1868 * blockframe.c (frame_address_in_block): Delete function.
1869 (get_frame_block): Use get_frame_address_in_block.
1870 (block_innermost_frame): Ditto.
1871 * stack.c (print_frame, backtrace_command_1): Ditto.
1873 * frame.h (get_frame_address_in_block): Declare.
1874 (frame_unwind_address_in_block): Declare.
1875 * frame.c (frame_unwind_address_in_block): New function.
1876 (get_frame_address_in_block): New function.
1878 2003-07-10 Andrew Cagney <cagney@redhat.com>
1880 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1881 pre-default. Note: re-generate has no effect.
1883 2003-07-10 Andrew Cagney <cagney@redhat.com>
1885 * gdbarch.sh: When a variable, but not a function, compare against
1886 0. Fix problem in previous patch.
1887 * gdbarch.c: Re-generate.
1889 2003-07-10 Andrew Cagney <cagney@redhat.com>
1891 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1892 functions against NULL, not 0.
1893 * gdbarch.c: Re-generate.
1895 2003-07-10 Fred Fish <fnf@ninemoons.com>
1897 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1898 null string instead of a null pointer.
1899 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1901 2003-07-09 Michael Snyder <msnyder@redhat.com>
1903 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1905 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1907 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1908 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1909 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1910 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1911 * x86-64-tdep.c: ... from here.
1913 2003-07-09 Andreas Schwab <schwab@suse.de>
1915 * m68k-tdep.h (enum struct_return): Define.
1916 (struct gdbarch_tdep): Add struct_return.
1917 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1918 bytes are padded to the right, not to the left. Pass struct value
1919 address in register %a1, not on stack.
1920 (m68k_use_struct_convention): New function.
1921 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1922 struct_return in tdep to pcc_struct_return.
1923 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1926 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1928 * somread.c (som_symfile_offsets): Fix compilation error.
1930 2003-07-09 Andrew Cagney <cagney@redhat.com>
1932 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1933 Add comments about the checks.
1935 2003-07-08 Andrew Cagney <cagney@redhat.com>
1937 * Makefile.in: Make dependency section headers consistent.
1938 (config_h): Move to $BUILD headers section.
1939 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1940 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1941 (ada-exp.tab.c): Move to YACC/LEX section.
1942 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1943 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1945 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1947 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1948 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1949 of strerror with safe_strerror, use ISO C function definitions,
1950 and replace instances of sprintf with snprintf.
1952 2003-07-07 Andrew Cagney <cagney@redhat.com>
1954 * frame.c (get_prev_frame): Enable check for identical frames.
1955 Update comments. Update error messages.
1957 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1959 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1961 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1963 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1964 sort_symtab_syms, no longer necessary.
1966 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1968 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1970 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1972 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1973 (mips_register_byte): Likewise.
1975 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1977 * Makefile.in (sparc_tdep_h): New.
1978 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1979 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1980 * sparc-linux-nat.c: Include "sparc-tdep.h".
1981 * sparc-nat.c: Likewise.
1982 * sparc-tdep.c: Likewise.
1983 * sparc64nbsd-nat.c: Likewise.
1984 * sparcnbsd-nat.c: Likewise.
1985 * sparcnbsd-tdep.c: Likewise.
1986 * sparc-tdep.h: New file.
1987 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1988 and sparc_npc_regnum.
1990 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1992 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1993 (mips_linux_cannot_store_register): List supported instead of
1994 unsupported registers.
1996 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1998 * disasm.c (dump_insns): Separate instructions from addresses.
2000 2003-07-07 Andreas Schwab <schwab@suse.de>
2002 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2004 * m68k-tdep.c (NUM_FREGS): Delete.
2005 (SIG_PC_FP_OFFSET): Delete.
2006 (TARGET_M68K): Delete.
2007 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2008 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2009 P_MOVEL_SP, P_MOVEML_SP): Define.
2010 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2012 (m68k_register_raw_size): Delete.
2013 (m68k_register_virtual_size): Delete.
2014 (m68k_register_type): Renamed from m68k_register_virtual_type and
2015 add gdbarch argument.
2016 (m68k_store_struct_return): Delete.
2017 (m68k_deprecated_extract_return_value): Delete.
2018 (m68k_deprecated_extract_struct_value_address): Delete.
2019 (m68k_frame_chain): Delete.
2020 (m68k_frame_saved_pc): Delete.
2021 (m68k_fix_call_dummy): Delete.
2022 (m68k_push_dummy_frame): Delete.
2023 (m68k_pop_frame): Delete.
2024 (m68k_extract_return_value): New function.
2025 (m68k_store_return_value): Rewrite using regcache.
2026 (m68k_extract_struct_value_address): Rewrite using regcache.
2027 (m68k_push_dummy_call): New function.
2028 (struct m68k_frame_cache): Define.
2029 (m68k_alloc_frame_cache): New function.
2030 (m68k_analyze_frame_setup): New function.
2031 (m68k_analyze_register_saves): New function.
2032 (m68k_analyze_prologue): New function.
2033 (m68k_skip_prologue): Rewrite using above functions.
2034 (m68k_unwind_pc): New function.
2035 (m68k_frame_cache): New function.
2036 (m68k_frame_this_id): New function.
2037 (m68k_frame_prev_register): New function.
2038 (m68k_frame_unwind): New variable.
2039 (m68k_frame_p): New function.
2040 (m68k_sigtramp_frame_cache): New function.
2041 (m68k_sigtramp_frame_this_id): New function.
2042 (m68k_sigtramp_frame_prev_register): New function.
2043 (m68k_sigtramp_frame_unwind): New variable.
2044 (m68k_sigtramp_frame_p): New function.
2045 (m68k_frame_base_address): New function.
2046 (m68k_frame_base): New function.
2047 (m68k_unwind_dummy_id): New function.
2048 (fill_gregset): Use regcache_collect.
2049 (fill_fpregset): Likewise.
2050 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2052 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2053 deprecated_init_frame_pc, deprecated_store_struct_return,
2054 deprecated_extract_return_value, deprecated_store_return_value,
2055 deprecated_frame_chain, deprecated_frame_saved_pc,
2056 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2057 deprecated_register_virtual_size,
2058 deprecated_max_register_raw_size,
2059 deprecated_max_register_virtual_size,
2060 deprecated_register_virtual_type, deprecated_register_size,
2061 deprecated_register_byte, deprecated_register_bytes,
2062 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2063 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2064 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2065 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2066 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2067 deprecated_push_dummy_frame, deprecated_pop_frame,
2068 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2069 only if SYSCALL_TRAP is defined. Set extract_return_value,
2070 store_return_value, extract_struct_value_address, register_type,
2071 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2073 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2074 M68K_MAX_REGISTER_SIZE): Define.
2075 (struct m68k_sigtramp_info): Define.
2076 (struct gdbarch_tdep): Add get_sigtramp_info.
2077 * m68klinux-nat.c (fetch_register): Use register_size instead of
2078 REGISTER_RAW_SIZE. Don't put assignment in if.
2079 (store_register): Likewise.
2080 (fetch_inferior_registers): Likewise.
2081 (store_inferior_registers): Likewise.
2082 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2083 (m68k_linux_frame_saved_pc): Delete.
2084 (m68k_linux_sigcontext_reg_offset,
2085 m68k_linux_ucontext_reg_offset): Define.
2086 (m68k_linux_get_sigtramp_info): New function.
2087 (m68k_linux_extract_return_value): Rewrite using regcache.
2088 (m68k_linux_store_return_value): Likewise.
2089 (m68k_linux_extract_struct_value_address): Likewise.
2090 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2091 Don't set deprecated_frame_saved_pc,
2092 deprecated_extract_return_value, deprecated_store_return_value,
2093 deprecated_extract_struct_value_address. Set
2094 extract_return_value, store_return_value,
2095 extract_struct_value_address.
2097 2003-07-07 Andrew Cagney <cagney@redhat.com>
2099 * expprint.c: Include "user-regs.h" instead of "frame.h".
2100 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2101 frame_map_regnum_to_name.
2102 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2103 (frame_map_name_to_regnum): Simplify, call
2104 user_reg_map_name_to_regnum.
2105 (frame_map_regnum_to_name): Simplify, call
2106 user_reg_map_regnum_to_name.
2107 (frame_register_unwind): Update.
2108 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2109 (_initialize_frame_reg): Call user_reg_add_builtin.
2110 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2111 (value_of_register): Use value_of_user_reg.
2112 * eval.c (evaluate_subexp_standard): Update.
2113 * parse.c (write_dollar_variable): Update.
2114 * d10v-tdep.c (d10v_print_registers_info): Update.
2115 * infcmd.c (registers_info): Update.
2116 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2117 (builtin_regs_h): Delete macro.
2118 (user_regs_h): Define.
2119 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2120 (builtin-regs.o): Delete target.
2121 (user-regs.o): Specify dependencies.
2122 (expprint.o): Update dependencies.
2123 (findvar.o): Update dependencies.
2124 (frame.o): Update dependencies.
2125 (std-regs.o): Update dependencies.
2127 2003-07-06 Christopher Faylor <cgf@redhat.com>
2129 * win32-nat.c (solib_symbols_add): Use one variable for all section
2130 address stuff. Pass variable rather than address of variable to
2131 safe_symbol_file_add.
2133 2003-07-06 Andreas Schwab <schwab@suse.de>
2135 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2137 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2139 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2141 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2143 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2145 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2147 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2148 * config/i386/nto.mh: New file.
2149 * config/i386/nm-nto.h: New file.
2150 * configure.host: Add i[3456]86-*-nto*.
2152 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2154 * remote-vx.c (vx_add_symbols): Fix compilation error.
2156 2003-07-03 Andrew Cagney <cagney@redhat.com>
2158 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2159 * gdbarch.h, gdbarch.c: Re-generate.
2160 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2161 (legacy_register_name): Declare.
2162 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2163 (REGISTER_NAME): Define.
2164 * sparc-tdep.c (legacy_register_name): New function.
2165 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2166 (REGISTER_NAME): Define.
2167 (hppa64_register_name): Declare.
2168 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2169 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2170 (hppa64_register_name): New function.
2171 (hppa_register_name): New function.
2172 * arch-utils.c (legacy_register_name): Delete.
2173 * arch-utils.h (legacy_register_name): Delete.
2175 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2177 * cli/cli-interp.c (cli_interpreter_resume): Update the
2178 cli_uiout's stream to gdb_stdout.
2180 2003-07-03 Andrew Cagney <cagney@redhat.com>
2182 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2184 * gdbarch.h, gdbarch.c: Re-generate.
2185 * regcache.c (init_regcache_descr): Use legacy code when either
2186 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2188 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2190 * NEWS: Move "set logging" entry into GDB 6.0 section.
2192 2003-07-02 Jim Blandy <jimb@redhat.com>
2194 * s390-tdep.c (struct frame_extra_info): new member:
2195 'stack_bought_valid'.
2196 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2197 initialize fextra_info->stack_bought.
2198 (s390_frameless_function_invocation): Don't trust the value of
2199 fextra_info_ptr->stack_bought unless
2200 fextra_info->stack_bought_valid is set.
2202 New S390 prologue analyzer.
2203 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2204 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2205 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2206 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2207 compute_x_addr, s390_on_stack, s390_store,
2208 s390_get_signal_frame_info): New functions.
2209 (S390_NUM_SPILL_SLOTS): New macro.
2210 (s390_get_frame_info): Rewritten.
2211 (is_arg_reg): Deleted.
2213 Break out the decoding of S/390 instructions into separate
2214 functions, to make it more legible, and easier to check
2216 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2217 is_rx, is_rxe): New functions.
2218 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2219 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2220 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2221 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2222 enums for opcode values. (Is this an improvement?)
2224 2003-07-02 Andrew Cagney <cagney@redhat.com>
2226 * i386-tdep.c: Revert change committed as part of trad-frame code
2229 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2231 * breakpoint.c (insert_catchpoint): Make static.
2233 2003-07-02 Andreas Schwab <schwab@suse.de>
2235 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2236 former ia64_push_arguments and ia64_push_return_address, and use
2237 regcache functions instead of read/write_register.
2238 (ia64_gdbarch_init): Set push_dummy_call instead of
2239 deprecated_push_arguments and deprecated_push_return_address.
2241 2003-07-01 Andreas Jaeger <aj@suse.de>
2243 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2245 Set %rax only to number of SSE registers used.
2247 2003-07-01 Andrew Cagney <cagney@redhat.com>
2249 * trad-frame.h: Update comments, a -1 .addr is reserved.
2250 (trad_frame_value_p, trad_frame_addr_p): Declare.
2251 (trad_frame_reg_p): Declare.
2252 (trad_frame_set_value): Rename trad_frame_register_value.
2253 (trad_frame_set_unknown): Declare.
2254 * trad-frame.c (trad_frame_realreg_p): New function.
2255 (trad_frame_addr_p, trad_frame_value_p): New function.
2256 (trad_frame_set_unknown): New function.
2257 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2258 (trad_frame_prev_register): Use trad_frame_realreg_p,
2259 trad_frame_addr_p and trad_frame_value_p.
2260 (trad_frame_set_value): Rename trad_frame_register_value.
2261 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2262 and trad_frame_set_value.
2264 2003-06-30 Jim Blandy <jimb@redhat.com>
2266 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2267 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2268 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2269 for 16 registers, and then 32 more bytes.
2270 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2272 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2273 Move up in the file, since it's now used by is_simple_arg.
2274 (is_simple_arg): Don't assume registers are four bytes long.
2275 Exclude all double arguments. Extended floats are not simple
2277 (is_power_of_two): New function.
2278 (pass_by_copy_ref): Call is_power_of_two, and check that the
2279 length fits in a register, rather than listing all the acceptable
2280 sizes. Extended floats are not passed by reference.
2281 (s390_push_arguments): Don't assume registers are four bytes long.
2282 Reserve an argument register to point to the buffer for structures
2283 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2284 S390_STACK_FRAME_OVERHEAD.
2286 2003-06-30 Andreas Schwab <schwab@suse.de>
2288 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2289 format error message.
2291 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2293 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2295 2003-06-30 David Carlton <carlton@kealia.com>
2297 Band-aid for PR c++/1245.
2298 * Makefile.in (cp-support.o): Depend on complaints_h.
2299 * cp-support.c: Include complaints.h. Add declaration for
2300 find_last_component.
2301 (cp_find_first_component): Separate code into
2302 cp_find_first_component_aux.
2303 (cp_find_first_component_aux): Call demangled_name_complaint.
2304 (demangled_name_complaint): New.
2306 2003-06-30 Andrew Cagney <cagney@redhat.com>
2308 * remote.c (remote_write_bytes): Explicitly compute and then use
2309 the payload size. Update comments to reflect. Fixes problem of
2310 GDB not sending small packets as found by Fred Fish.
2312 2003-06-30 Andrew Cagney <cagney@redhat.com>
2314 * remote.c (remote_async_wait): Fix -Wformat problem.
2316 2003-06-29 Andrew Cagney <cagney@redhat.com>
2318 * remote.c (remote_wait): Call error, and not warning, when the
2320 (remote_async_wait): Ditto.
2322 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2324 * sparc-tdep.c (sparc_y_regnum): Make external again.
2326 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2328 * cli/cli-logging.c (pop_output_files): Add void to function
2331 2003-06-29 Andrew Cagney <cagney@redhat.com>
2333 * frame.c (frame_register_unwind): Use unsigned char when dumping
2334 the buffer contents.
2336 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2338 * cli/cli-logging.c: New file.
2339 * cli-out.c (struct ui_out_data): Add original_stream.
2340 (cli_redirect): New function.
2341 (cli_ui_out_impl): Add cli_redirect.
2342 (cli_out_new): Initialize original_stream.
2343 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2344 (uo_redirect, ui_out_redirect): New.
2345 * ui-out.h (struct ui_out_impl): Add redirect member.
2346 (redirect_ftype): New.
2347 (ui_out_redirect): Add prototype.
2348 * Makefile.in: Add rules for cli-logging.c.
2349 * NEWS: Mention "set logging".
2351 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2353 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2355 2003-06-27 Andrew Cagney <cagney@redhat.com>
2357 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2358 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2359 * avr-tdep.c (avr_call_dummy_address): Delete function.
2360 (avr_gdbarch_init): Do not set call_dummy_address.
2362 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2364 * symfile.c (syms_from_objfile): Move variables to inner block.
2365 Move the checks for the non-mainline case a bit earlier to avoid
2366 doing some useless computations.
2368 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2370 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2372 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2374 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2377 2003-06-26 Michael Chastain <mec@shout.net>
2379 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2380 gdb/testsuite/gdb.c++/pr-1210.exp.
2382 2003-06-26 Andrew Cagney <cagney@redhat.com>
2384 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2385 altivec_expression.h and altivec_registers.h.
2387 2003-06-26 Andrew Cagney <cagney@redhat.com>
2389 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2390 info->mach when MIPS16. Patch suggested by Fred Fish.
2392 2003-06-26 Andrew Cagney <cagney@redhat.com>
2394 * utils.c (internal_vproblem): Print the problem to a reason
2395 buffer and then pass to query. Make the msg variable more local.
2397 2003-06-26 Andrew Cagney <cagney@redhat.com>
2399 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2400 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2401 * gdbarch.h, gdbarch.c: Re-generate.
2402 * frame-base.c (default_frame_args_address): Update. Use
2403 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2405 (default_frame_locals_address): Ditto for
2406 DEPRECATED_FRAME_LOCALS_ADDRESS.
2407 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2408 (vax_frame_num_args): Update.
2409 (vax_gdbarch_init): Update.
2410 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2411 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2412 * mcore-tdep.c (mcore_gdbarch_init): Update.
2413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2414 * ia64-tdep.c (ia64_gdbarch_init): Update.
2415 * symtab.h (address_class): Update comments.
2416 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2417 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2418 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2419 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2420 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2421 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2422 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2423 * alpha-mdebug-tdep.c: Update.
2424 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2426 2003-06-26 Andreas Jaeger <aj@suse.de>
2428 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2429 of SSE registers so that varargs functions work. Rework handling
2430 of passing arguments on the stack.
2431 (x86_64_store_return_value): Return double and float values in SSE
2434 2003-06-24 Michael Chastain <mec@shout.net>
2436 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2437 the "constructor breakpoints ignored" bug.
2439 2003-06-25 David Carlton <carlton@kealia.com>
2441 * MAINTAINERS: Update e-mail address.
2443 2003-06-24 Jim Blandy <jimb@redhat.com>
2445 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2447 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2449 (ppc_linux_init_abi): Register it as the
2450 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2452 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2453 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2456 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2457 (ppc64_standard_linkage_target): Use it.
2459 2003-06-23 Andrew Cagney <cagney@redhat.com>
2461 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2462 for 0 "int0" and 4 "int32" sized registers.
2463 * gdbtypes.c (builtin_type_int0): Define.
2464 (build_gdbtypes): Initialize builtin_type_int0.
2465 * gdbtypes.h (builtin_type_int0): Declare.
2467 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2470 as characters are unsigned.
2472 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2475 * dwarfread.c (struct_type): Skip static fields without crashing.
2477 2003-06-22 Andrew Cagney <cagney@redhat.com>
2479 GDB 6.0 branch created.
2481 * PROBLEMS: Update. Empty.
2484 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2486 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2487 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2489 2003-06-22 Andrew Cagney <cagney@redhat.com>
2491 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2492 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2495 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2497 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2500 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2502 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2503 argument of val_print.
2504 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2505 to the address argument of baseclass_offset or target_read_memory.
2506 Do add it to the argument of cp_print_value_fields.
2508 2003-06-21 Andrew Cagney <cagney@redhat.com>
2510 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2511 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2512 instead of 0..NUM_REGS.
2513 (mips_register_reggroup_p): New function.
2514 (mips_pseudo_register_write): New function.
2515 (mips_pseudo_register_read): New function.
2516 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2517 based on the register's type.
2518 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2520 (mips_get_saved_register): Simplify. Assert that REGNO is a
2522 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2523 (mips_register_type): Replace mips_register_virtual_type. Map
2524 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2526 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2527 that the register is cooked / virtual.
2528 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2529 Only get the extra info when needed.
2530 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2531 (mips32_heuristic_proc_desc): Fetch the cooked register.
2532 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2533 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2534 (mips_print_register): Use gdbarch_register_type, instead of
2535 REGISTER_VIRTUAL_TYPE.
2536 (print_gp_register_row): Use gdbarch_register_type, instead of
2537 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2538 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2539 Print the pseudo / cooked registers.
2540 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2541 Print the pseudo / cooked registers.
2542 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2543 REG_NUM is pseudo / cooked.
2544 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2545 (mips_n32n64_xfer_return_value): Ditto.
2546 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2547 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2548 (mips_register_sim_regno): New function.
2549 (mips_gdbarch_init): Set deprecated_register_byte,
2550 register_group_p, pseudo_register_write, pseudo_register_read,
2551 register_sim_regno, and num_pseudo_regs. Set register_type,
2552 instead of register_virtual_type.
2553 * Makefile.in (mips-tdep.o): Update dependencies.
2554 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2555 REGISTER_VIRTUAL_TYPE.
2556 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2557 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2558 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2559 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2560 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2562 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2564 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2565 * cli/cli-cmds.c: Include "gdb_vfork.h".
2566 (shell_escape): Use vfork.
2568 2003-06-21 Andrew Cagney <cagney@redhat.com>
2570 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2571 32 bit floating-point register saves.
2573 * frame.h (deprecated_unwind_get_saved_register): Delete.
2574 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2575 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2576 and deprecated_get_next_frame_hack instead of
2577 deprecated_unwind_get_saved_register.
2579 * mips-tdep.c (mips_dump_tdep): Do not print
2580 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2582 * frame.c (get_frame_register): New function.
2583 (frame_unwind_register_signed): New function.
2584 (get_frame_register_signed): New function.
2585 (frame_unwind_register_unsigned): New function.
2586 (get_frame_register_unsigned): New function.
2587 * frame.h: Add comments on naming schema.
2588 (get_frame_register, frame_unwind_register_signed): Declare.
2589 (get_frame_register_signed, get_frame_register_signed): Declare.
2590 (frame_unwind_register_unsigned): Declare.
2591 (get_frame_register_unsigned): Declare.
2593 2003-06-20 Theodore A. Roth <troth@openavr.org>
2595 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2597 2003-06-20 Theodore A. Roth <troth@openavr.org>
2599 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2600 (avr_read_sp): Ditto.
2602 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2604 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2605 * config/arm/nm-linux.h: Likewise.
2606 * config/arm/tm-linux.h: Likewise.
2607 * config/ia64/nm-linux.h: Likewise.
2608 * config/ia64/tm-ia64.h: Likewise.
2609 * config/s390/tm-linux.h: Likewise.
2610 * config/s390/tm-s390.h: Likewise.
2611 * s390-nat.c: Likewise.
2612 * s390-tdep.c: Likewise.
2614 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2615 * config/ia64/linux.mt: Likewise.
2616 * config/m68k/linux.mh: Likewise.
2617 * config/mips/linux.mt: Likewise.
2618 * config/powerpc/linux.mh: Likewise.
2619 * config/sh/linux.mt: Likewise.
2621 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2623 * solib.c (solib_open): Change tests for whether to search
2624 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2627 2003-06-19 Theodore A. Roth <troth@openavr.org>
2629 * avr-tdep.c (avr_frame_address): Delete function.
2630 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2631 set_gdbarch_frame_args_address.
2633 2003-06-19 Andrew Cagney <cagney@redhat.com>
2635 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2636 (REGISTER_CONVERT_FROM_TYPE): Delete.
2637 (mips_register_convert_to_type): Delete declaration.
2638 (mips_register_convert_from_type): Delete declaration.
2639 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2642 2003-06-19 Michael Snyder <msnyder@redhat.com>
2644 * linux-nat.h: New file.
2645 * linux-nat.c: Include linux-nat.h.
2646 * lin-lwp.c: Include linux-nat.h.
2647 Move struct lwp_info def to linux-nat.h.
2648 * linux-proc.c: Include linux-nat.h.
2649 (linux_make_note_section): Iterate over lwps instead of threads.
2650 (linux_do_thread_registers): Use lwp instead of merged pid.
2651 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2652 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2653 Add dependency on linux_nat_h.
2655 2003-06-19 Theodore A. Roth <troth@openavr.org>
2657 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2659 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2661 * varobj.c (get_type, get_target_type): Use check_typedef.
2663 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2665 * breakpoint.c (insert_catchpoint): Call internal_error.
2667 2003-06-19 Theodore A. Roth <troth@openavr.org>
2669 * avr-tdep.c (avr_push_dummy_code): Delete function.
2670 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2672 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2674 * arch-utils.c (default_prepare_to_proceed): Remove.
2675 (generic_prepare_to_proceed): Remove.
2676 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2677 (generic_prepare_to_proceed): Remove prototype.
2678 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2679 * gdbarch.c: Regenerate.
2680 * gdbarch.h: Regenerate.
2681 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2682 * hppah-nat.c (hppa_switched_threads): Remove.
2683 * infrun.c (prepare_to_proceed): New static function, copied from
2684 generic_prepare_to_proceed. Remove select_it argument.
2685 (proceed): Call prepare_to_proceed.
2686 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2688 (ptrace_wait): Don't set the removed variables.
2689 (hppa_switched_threads): Remove.
2690 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2691 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2692 (lin_lwp_prepare_to_proceed): Remove prototype.
2693 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2694 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2696 2003-06-18 Theodore A. Roth <troth@openavr.org>
2698 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2700 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2701 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2702 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2703 (AVR_PROLOGUE_*): Enumerate prologue types.
2704 (struct frame_extra_info): Remove.
2705 (struct avr_unwind_cache): Define.
2706 (avr_write_sp): Delete function.
2707 (avr_read_fp): Ditto.
2708 (avr_init_extra_frame_info): Ditto.
2709 (avr_pop_frame): Ditto.
2710 (avr_frame_saved_pc): Ditto.
2711 (avr_saved_pc_after_call): Ditto.
2712 (avr_push_return_address): Ditto.
2713 (avr_frame_chain): Ditto.
2714 (avr_store_struct_return): Ditto.
2715 (avr_push_arguments): Ditto.
2716 (avr_scan_prologue): Update comments. Changed to set up the info for
2717 cache unwinding. Now returns end of prologue PC.
2718 (avr_skip_prologue): Better handling of functions lacking a prologue
2719 by using avr_scan_prologue.
2720 (avr_scan_arg_moves): New function.
2721 (avr_saved_regs_unwinder): Ditto.
2722 (avr_frame_unwind_cache): Ditto.
2723 (avr_unwind_pc): Ditto.
2724 (avr_frame_this_id): Ditto.
2725 (avr_frame_prev_register): Ditto.
2726 (avr_frame_p): Ditto.
2727 (avr_frame_base_address ): Ditto.
2728 (avr_unwind_dummy_id): Ditto.
2729 (avr_push_dummy_code): Ditto.
2730 (push_stack_item): Ditto.
2731 (pop_stack_item): Ditto.
2732 (avr_push_dummy_call): Ditto.
2733 (struct stack_item): Define.
2734 (avr_frame_unwind): Declare structure.
2735 (avr_frame_base): Ditto.
2736 (avr_gdbarch_init): Remove calls to
2737 set_gdbarch_deprecated_init_frame_pc,
2738 set_gdbarch_deprecated_target_read_fp,
2739 set_gdbarch_deprecated_dummy_write_sp,
2740 set_gdbarch_deprecated_fp_regnum,
2741 set_gdbarch_deprecated_push_arguments,
2742 set_gdbarch_deprecated_push_return_address,
2743 set_gdbarch_deprecated_pop_frame,
2744 set_gdbarch_deprecated_store_struct_return,
2745 set_gdbarch_deprecated_frame_init_saved_regs,
2746 set_gdbarch_deprecated_init_extra_frame_info,
2747 set_gdbarch_deprecated_frame_chain,
2748 set_gdbarch_deprecated_frame_saved_pc,
2749 set_gdbarch_deprecated_saved_pc_after_call.
2750 Add calls to set_gdbarch_push_dummy_call,
2751 set_gdbarch_push_dummy_code,
2752 frame_unwind_append_predicate,
2753 frame_base_set_default,
2754 set_gdbarch_unwind_dummy_id,
2755 set_gdbarch_unwind_pc.
2758 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2760 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2761 registers for H8/300S.
2762 (h8300_print_registers_info): Ditto.
2763 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2765 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2767 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2768 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2769 (lin_lwp_wait): Likewise. Update comments.
2770 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2771 (pull_pid_from_list, linux_record_stopped_pid): New.
2773 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2775 * ada-lang.c (scan_discrim_bound): Name first argument.
2776 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2777 declared by ALL_BLOCK_SYMBOLS.
2779 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2781 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2782 ("regcache.h"): Include it.
2783 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2785 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2787 * NEWS: Mention gdbserver detach change and "disconnect" command.
2788 * infcmd.c (disconnect_command): New function.
2789 (_initialize_infcmd): Add ``disconnect'' command.
2790 * remote.c (remote_async_detach): Delete.
2791 (remote_detach): Merge remote_async_detach.
2792 (remote_disconnect): New.
2793 (init_remote_ops): Set to_disconnect.
2794 (init_remote_cisco_ops): Likewise.
2795 (init_remote_async_ops): Likewise. Use remote_detach.
2796 * target.c (cleanup_target): Default to_disconnect.
2797 (update_current_target): Inherit to_disconnect.
2798 (target_disconnect, debug_to_disconnect): New functions.
2799 (setup_target_debug): Set to_disconnect.
2800 * target.h (struct target_ops): Add to_disconnect.
2801 (target_disconnect): Add prototype.
2803 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2805 * breakpoint.c (insert_catchpoint): New function.
2806 (insert_breakpoints): Use catch_exceptions to call
2807 insert_catchpoint. Disable catchpoints if they fail to insert.
2809 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2811 * symfile.c (reread_symbols): Clear sym_private.
2813 2003-06-17 Andrew Cagney <cagney@redhat.com>
2815 * trad-frame.h (struct frame_info): Add opaque declaration.
2816 * remote-fileio.h (struct cmd_list_element): Add opaque
2818 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2821 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2823 * remote.c (remote_prepare_to_store): Replace call to
2824 deprecated_read_register_bytes with multiple regcache_raw_read
2827 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2829 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2830 (nto_find_and_open_solib): Likewise.
2831 (nto_init_solib_absolute_prefix): Likewise.
2832 (_initialize_nto_tdep): Fix indentation.
2834 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2836 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2838 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2840 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2842 2003-06-17 Jim Blandy <jimb@redhat.com>
2844 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2846 2003-06-16 Theodore A. Roth <troth@openavr.org>
2848 * avr-tdep.c (avr_extract_return_value): New function.
2849 (avr_gdbarch_init): Set extract_return_value method.
2851 2003-06-16 Andrew Cagney <cagney@redhat.com>
2853 * frame.h (deprecated_get_next_frame_hack): Declare.
2854 * frame.c (legacy_saved_regs_prev_register): Only require
2855 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2856 there are always saved regs.
2857 (deprecated_generic_get_saved_register): Do not require
2858 DEPRECATED_FRAME_INIT_SAVED_REGS.
2859 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2860 use frame ID unwind instead.
2861 (deprecated_get_next_frame_hack): New function.
2863 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2865 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2866 (h8300_push_dummy_call): ...this function. Some minor optimization.
2867 (h8300_push_return_address): Remove.
2868 (h8300_gdbarch_init): Remove calls to
2869 set_gdbarch_deprecated_dummy_write_sp,
2870 set_gdbarch_deprecated_push_arguments and
2871 set_gdbarch_deprecated_push_return_address.
2872 Add call to set_gdbarch_push_dummy_call.
2874 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2876 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2877 (E_PSEUDO_EXR_REGNUM): Ditto.
2878 (h8300_is_argument_spill): Check for instructions moving argument
2879 registers into safe registers.
2880 (h8300_skip_prologue): Check for stm instruction to push registers
2881 used for register variables onto stack.
2882 (gdb_print_insn_h8300): Remove.
2883 (h8300_examine_prologue): Add a comment.
2884 (h8300_register_name): Take pseudo registers into account.
2885 (h8300s_register_name): Ditto.
2886 (h8300sx_register_name): Ditto.
2887 (h8300_print_register): Ditto.
2888 (h8300_print_registers_info): Define "nice" printing order.
2889 (h8300_saved_pc_after_call): Take pseudo registers into account.
2890 (h8300_register_type): Ditto. Return type used for remote connection
2891 when requesting real CCR or EXR register, return actual type when
2892 requesting pseudo CCR or EXR.
2893 (h8300_pseudo_register_read): New function.
2894 (h8300_pseudo_register_write): Ditto.
2895 (h8300_dbg_reg_to_regnum): Ditto.
2896 (h8300s_dbg_reg_to_regnum): Ditto.
2897 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2898 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2899 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2900 set_gdbarch_print_insn architecture dependent.
2901 Call set_gdbarch_pseudo_register_read and
2902 set_gdbarch_pseudo_register_write.
2903 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2905 2003-06-16 Andrew Cagney <cagney@redhat.com>
2907 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2908 * gdbarch.h, gdbarch.c: Re-generate.
2909 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2910 * s390-tdep.c (s390_gdbarch_init): Update.
2911 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2912 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2913 * mips-tdep.c (mips_gdbarch_init): Update.
2914 * mcore-tdep.c (mcore_gdbarch_init): Update.
2915 * cris-tdep.c (cris_gdbarch_init): Update.
2916 * infcall.c (call_function_by_hand): Update.
2917 * ia64-tdep.c (ia64_push_arguments): Update comment.
2918 * frame.c (legacy_get_prev_frame): Do not assume
2919 SAVE_DUMMY_FRAME_TOS_P.
2920 * dummy-frame.c (find_dummy_frame): Update comment.
2922 2003-06-16 Andrew Cagney <cagney@redhat.com>
2924 * regcache.c (do_cooked_read): Do not use register_valid_p.
2926 2003-06-15 Theodore A. Roth <troth@openavr.org>
2928 * avr-tdep.c (avr_register_type): Remove a blank line.
2929 (avr_scan_prologue): Correct some comments.
2931 2003-06-15 Theodore A. Roth <troth@openavr.org>
2933 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2935 Properly scan prologues generated by gcc with the -mcall-prologues
2937 Add code to scan -mcall-prologues for mega devices.
2939 2003-06-15 Theodore A. Roth <troth@openavr.org>
2941 * avr-tdep.c (avr_register_byte): Delete function.
2942 (avr_register_raw_size): Delete function.
2943 (avr_register_virtual_size): Delete function.
2944 (avr_register_virtual_type): Delete function.
2945 (avr_register_type): New function.
2946 (avr_address_to_pointer): Remove unused code.
2947 (avr_read_fp): Need to read FP as two separate bytes due to change to
2948 avr_register_type() usage.
2949 (avr_gdbarch_init): Don't set deprecated_register_size.
2950 Don't set deprecated_register_bytes.
2951 Don't set deprecated_register_byte.
2952 Don't set deprecated_register_raw_size.
2953 Don't set deprecated_max_register_raw_size.
2954 Don't set deprecated_register_virtual_size.
2955 Don't set deprecated_max_register_virtual_size.
2956 Don't set deprecated_register_virtual_type.
2957 Set register_type method.
2959 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2961 * Makefile.in (linux-nat.o): Add rule.
2962 * linux-nat.c: New file.
2963 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2964 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2965 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2966 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2967 * config/arm/linux.mh (NATDEPFILES): Likewise.
2968 * config/i386/linux.mh (NATDEPFILES): Likewise.
2969 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2970 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2971 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2972 * config/mips/linux.mh (NATDEPFILES): Likewise.
2973 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2974 * config/s390/s390.mh (NATDEPFILES): Likewise.
2975 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2977 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2979 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2980 replace out-of-date comment.
2982 2003-06-15 Andrew Cagney <cagney@redhat.com>
2984 * rdi-share/host.h (Fail): Change to a varargs function.
2985 * remote-rdi.c (Fail): Update.
2987 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2989 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2990 (i386_convert_register_p, i386_register_to_value,
2991 i386_register_from_value): Handle types longer than 8 bytes.
2993 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2995 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2996 Move floating-point code to new function in i387-tdep.c.
2997 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2998 New functions containing code moved here from i386-tdep.c.
2999 * i387-tdep.h: Add opaque declaration for `struct type'.
3000 (i387_register_to_value, i387_value_to_register): New prototypes.
3001 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3002 (x86_64_init_abi): Set convert_register_p, register_to_value and
3003 value_to_register here.
3005 2003-06-14 Andrew Cagney <cagney@redhat.com>
3007 * mips-tdep.c (mips_register_to_value): Make static.
3008 (mips_value_to_register): Make static.
3009 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3010 * ia64-tdep.c (ia64_register_raw_size): Make static.
3011 (ia64_register_virtual_size): Make static.
3012 (ia64_register_byte): Make static.
3013 * i387-tdep.c: Include "i387-tdep.h".
3014 (print_387_control_word): Delete function.
3015 (print_387_status_word): Delete function.
3016 (print_387_status_bits): Delete function.
3017 (print_387_control_bits): Delete function.
3018 * Makefile.in (i387-tdep.o): Update dependencies.
3019 * rdi-share/host.h (Fail): Declare.
3020 * remote-rdi.c (Fail): Update to match declaration.
3022 2003-06-14 Andrew Cagney <cagney@redhat.com>
3024 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3025 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3026 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3027 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3028 * README: Delete reference to remote-array.
3029 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3030 (remote-array.o): Delete target.
3031 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3032 * remote-array.c: Delete file.
3034 2003-06-14 Andrew Cagney <cagney@redhat.com>
3035 Mark Kettenis <kettenis@gnu.org>
3037 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3038 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3039 parameter with "frame".
3040 * gdbarch.h, gdbarch.c: Re-generate.
3041 * frame.h (put_frame_register): Declare.
3042 * frame.c (put_frame_register): New function.
3043 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3044 (legacy_register_to_value): Rewrite, use "frame" to get the
3046 (legacy_value_to_register): Rewrite, use "frame" to find the
3047 register's location before storing.
3048 * arch-utils.h (legacy_convert_register_p): Update.
3049 (legacy_register_to_value, legacy_value_to_register): Update.
3050 * findvar.c (value_from_register): Rewrite, eliminate use of
3051 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3052 "frame" to REGISTER_TO_VALUE.
3053 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3054 lval_reg_frame_relative + lval_register branch of the switch. Do
3055 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3056 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3057 I386_EDI_REGNUM): New defines.
3058 (i386_next_regnum, i386_convert_register_p,
3059 i386_register_to_value, i386_value_to_register): New functions.
3060 (i386_register_convertible, i386_register_convert_to_virtual,
3061 i386_convert_to_raw): Remove functions.
3062 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3063 value_to_register instead of register_convertible,
3064 register_convert_to_virtual and register_convert_to_raw.
3065 * mips-tdep.c (mips_convert_register_p): New function.
3066 (mips_value_to_register): Replace mips_register_convert_from_type.
3067 (mips_register_to_value): Replace mips_register_convert_to_type.
3068 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3070 * alpha-tdep.c (alpha_convert_register_p): Update.
3071 (alpha_value_to_register): Update, store the register.
3072 (alpha_register_to_value): Update, fetch the register.
3074 2003-06-14 Theodore A. Roth <troth@openavr.org>
3076 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3077 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3078 Don't set deprecated_call_dummy_words.
3079 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3080 Don't set remote_translate_xfer_address.
3081 (avr_io_reg_read_command): Remove commented out debug printf.
3084 2003-06-14 Theodore A. Roth <troth@openavr.org>
3086 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3087 causes gdb to seg fault.
3089 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3091 * sparc-nat.c (fetch_inferior_registers): Correct
3092 a reference to "registers".
3094 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3096 * Makefile.in (exc_request_U_h): Define
3097 (exc_request_S_h): Likewise.
3098 (msg_reply_S_h): Likewise.
3099 (msg_U_h): Likewise.
3100 (notify_S_h): Likewise.
3101 (process_reply_S_h): Likewise.
3102 (gnu-nat.o): Depend on gdb_obstack_h
3103 * gnu-nat.c: Include "gdb_obstack.h".
3105 2003-06-13 Andrew Cagney <cagney@redhat.com>
3107 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3108 * gdbarch.h, gdbarch.c: Re-generate.
3110 2003-06-13 Andrew Cagney <cagney@redhat.com>
3112 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3113 when deprecated REGISTER macros can be deleted.
3114 * gdbarch.h, gdbarch.c: Re-generate.
3116 2003-06-13 Jim Blandy <jimb@redhat.com>
3118 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3119 Linux entry point symbols for _dl_debug_state, too.
3121 2003-06-13 Andrew Cagney <cagney@redhat.com>
3123 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3124 available, do not use the FP register, and always save the TOS.
3125 * dummy-frame.c (dummy_frame_this_id): Do not assert
3126 SAVE_DUMMY_FRAME_TOS.
3127 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3128 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3129 (i386_push_dummy_call): Add 8 to the returned SP.
3130 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3131 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3132 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3133 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3134 (x86_64_push_dummy_call): Return "sp + 16".
3135 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3136 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3137 save_dummy_frame_tos.
3139 2003-06-13 Jim Blandy <jimb@redhat.com>
3141 * frv-tdep.c (frv_use_struct_convention): Delete static
3142 declaration for function deleted in my change of 2003-06-12.
3144 2003-06-13 Theodore A. Roth <troth@openavr.org>
3146 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3147 (avr_pointer_to_address): Shift code addrs left 1 bit.
3148 (avr_convert_from_func_ptr_addr): Delete function since operation is
3149 better handled by avr_address_to_pointer and avr_pointer_to_address.
3150 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3152 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3154 From Kelley Cook <kelleycook@wideopenwest.com>:
3155 * configure.host: Accept i[34567]86 variants.
3156 * configure.tgt: Likewise.
3157 * nlm/configure.in: Likewise.
3158 * nlm/configure: Regenerated.
3160 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3162 * arm-tdep.c (solib-svr4.h): Dont' include it.
3163 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3164 * arm-linux-tdep.c: ... here. Make static.
3165 (arm_linux_init_abi): Register it.
3166 (solib-svr4.h): Include it.
3167 * Makefile.in: Update dependencies.
3168 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3169 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3171 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3173 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3174 indicate registers used for return values.
3175 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3176 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3178 (h8300_init_extra_frame_info): Ditto.
3179 (h8300_frame_locals_address): Removed.
3180 (h8300_frame_args_address): Removed.
3181 (h8300_extract_return_value): Use new regcache structure. Only care
3183 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3184 (h8300_store_return_value): Use new regcache structure. Only care
3186 (h8300h_store_return_value): Same function for 32 bit CPUs.
3187 (h8300_store_struct_return): Removed.
3188 (h8300_extract_struct_value_address): Use new regcache structure.
3189 (h8300h_extract_struct_value_address): Removed.
3190 (h8300_push_dummy_code): New function.
3191 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3192 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3193 set_gdbarch_store_return_value architecture dependent.
3194 Call set_gdbarch_push_dummy_code and
3195 set_gdbarch_extract_struct_value_address.
3196 Remove calls to set_gdbarch_frame_args_address,
3197 set_gdbarch_frame_locals_address,
3198 set_gdbarch_deprecated_store_struct_return,
3199 set_gdbarch_deprecated_extract_return_value,
3200 set_gdbarch_deprecated_extract_struct_value_address,
3201 set_gdbarch_deprecated_call_dummy_words and
3202 set_gdbarch_deprecated_sizeof_call_dummy_words.
3204 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3206 * h8300-tdep.c (h8300_register_byte): Remove.
3207 (h8300h_register_byte): Remove.
3208 (h8300_register_virtual_type): Remove. Substitute by...
3209 (h8300_register_type): New function.
3210 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3211 (h8300h_extract_struct_value_address): Ditto.
3212 (h8300_gdbarch_init): Drop calls to
3213 set_gdbarch_deprecated_register_byte and
3214 set_gdbarch_deprecated_register_virtual_type.
3215 Add call to set_gdbarch_register_type.
3217 2003-06-13 Andrew Cagney <cagney@redhat.com>
3219 * gdbarch.sh: Update comments on registers.
3220 (deprecated_register_byte): Rename register_byte.
3221 (deprecated_register_raw_size): Rename register_raw_size.
3222 (deprecated_register_virtual_size): Rename register_virtual_size.
3223 (deprecated_register_virtual_type): Rename register_virtual_type.
3224 * gdbarch.h, gdbarch.c: Re-generate.
3225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3226 * vax-tdep.c (vax_gdbarch_init): Update.
3227 * v850-tdep.c (v850_gdbarch_init): Update.
3228 * sparc-tdep.c (sparc_gdbarch_init): Update.
3229 * sh-tdep.c (sh_gdbarch_init): Update.
3230 * s390-tdep.c (s390_gdbarch_init): Update.
3231 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3232 * ns32k-tdep.c: Update.
3233 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3234 * mips-tdep.c (mips_gdbarch_init): Update.
3235 * mcore-tdep.c (mcore_gdbarch_init): Update.
3236 * m68k-tdep.c (m68k_gdbarch_init): Update.
3237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3238 * ia64-tdep.c (ia64_gdbarch_init): Update.
3239 * hppa-tdep.c (hppa_gdbarch_init): Update.
3240 * h8300-tdep.c (h8300_gdbarch_init): Update.
3241 * frv-tdep.c (frv_gdbarch_init): Update.
3242 * cris-tdep.c (cris_gdbarch_init): Update.
3243 * avr-tdep.c (avr_gdbarch_init): Update.
3244 * alpha-tdep.c (alpha_gdbarch_init): Update.
3245 * arm-tdep.c (arm_gdbarch_init): Update.
3247 2003-06-13 Andrew Cagney <cagney@redhat.com>
3249 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3250 mips_o32_use_struct_convention with always_use_struct_convention.
3252 2003-06-12 David Carlton <carlton@kealia.com>
3254 * cp-namespace.c (cp_set_block_scope): Comment out
3255 processing_has_namespace_info branch.
3257 2003-06-12 Jim Blandy <jimb@redhat.com>
3259 Recognize and skip 64-bit PowerPC Linux linkage functions.
3260 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3261 insn_pattern, insns_match_pattern, d_field, ds_field): New
3262 functions, macros, and types for working with PPC instructions.
3263 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3264 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3265 ppc64_skip_trampoline_code): New functions, variables, and macros
3266 for recognizing and skipping linkage functions.
3267 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3268 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3270 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3271 register offsets for both the 32- and 64-bit interfaces.
3273 Actually finish the job started by my change of 2003-05-29.
3274 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3275 other #definition of this.
3276 (ppc_linux_skip_trampoline_code): Remove declaration.
3277 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3279 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3282 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3283 'long' on ppc64-*-linux*.
3285 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3286 isn't #defined, assume the register doesn't exist: act as if
3287 tdep->ppc_mq_regnum were -1.
3289 * configure.host, configure.tgt: Add entries for
3290 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3292 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3295 * arch-utils.c (always_use_struct_convention): New function.
3296 * arch-utils.h (always_use_struct_convention): New prototype.
3297 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3298 (alpha_gdbarch_init): Register always_use_struct_convention,
3299 instead of alpha_use_struct_convention.
3300 * cris-tdep.c (cris_use_struct_convention): Delete.
3301 (cris_gdbarch_init): Register always_use_struct_convention,
3302 instead of cris_use_struct_convention.
3303 * frv-tdep.c (frv_use_struct_convention): Delete.
3304 (frv_gdbarch_init): Register always_use_struct_convention,
3305 instead of frv_use_struct_convention.
3306 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3307 (h8300_gdbarch_init): Register always_use_struct_convention,
3308 instead of h8300_use_struct_convention.
3309 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3310 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3311 instead of mips_o32_use_struct_convention.
3313 2003-06-12 Andrew Cagney <cagney@redhat.com>
3315 * wince.c: Include "mips-tdep.h".
3316 * mips-tdep.h (mips_next_pc): Declare.
3317 * mcore-tdep.c: Make more local functions static.
3318 * Makefile.in (wince.o): Update dependencies.
3320 2003-06-12 David Carlton <carlton@kealia.com>
3322 * symtab.c (lookup_symbol_aux_minsyms): Replace
3323 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3324 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3325 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3326 SYMBOL_NATURAL_NAME.
3328 2003-06-12 Andreas Schwab <schwab@suse.de>
3330 * Makefile.in (tuiDisassem.o): Update dependencies.
3332 2003-06-12 David Carlton <carlton@bactrian.org>
3334 * symtab.h: Delete declaration of make_symbol_overload_list.
3335 Add declaration of lookup_partial_symbol.
3336 * symtab.c (remove_params): Move to cp-support.c.
3337 (overload_list_add_symbol, make_symbol_overload_list)
3338 (sym_return_val_size, sym_return_val_index): Ditto.
3339 (lookup_partial_symbol): Make extern.
3340 * cp-support.h: Add declaration of make_symbol_overload_list.
3341 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3342 symtab.h, and block.h.
3343 (remove_params): Move here from symtab.c.
3344 (overload_list_add_symbol, make_symbol_overload_list)
3345 (sym_return_val_size, sym_return_val_index): Ditto.
3346 * valops.c: Include cp-support.h.
3347 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3348 frame_h, and block_h.
3349 (valops.o): Depend on cp_support_h.
3351 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3353 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3354 substitute by NUM_REGS throughout.
3355 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3356 (h8300s_register_name): New function for H8S registers.
3357 (h8300sx_register_name): Ditto for H8SX registers.
3358 (h8300_print_register): Revise register printing, avoid depending
3360 (h8300_register_byte): Only care for H8/300 registers.
3361 (h8300h_register_byte): New function for any other architecture.
3362 (h8300_register_raw_size): Remove.
3363 (h8300_register_virtual_type): Revise to return actually useful
3365 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3366 (h8300h_extract_struct_value_address): New function for any other
3368 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3369 set_gdbarch_register_name, set_gdbarch_register_byte,
3370 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3371 Remove calls to set_gdbarch_deprecated_register_size,
3372 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3373 set_gdbarch_deprecated_max_register_raw_size,
3374 set_gdbarch_register_virtual_size and
3375 set_gdbarch_deprecated_max_register_virtual_size entirely.
3376 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3377 set_gdbarch_long_double_bit.
3379 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3381 * doublest.c (convert_doublest_to_floatformat): When dealing
3382 with the implied integer bit, only alter mant_bits if we are
3383 processing a full 32 bits of mantissa.
3385 2003-06-11 David Carlton <carlton@bactrian.org>
3387 * dictionary.h: New.
3388 * dictionary.c: New.
3389 * block.h: Add opaque declaration for struct dictionary.
3390 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3392 (BLOCK_DICT): New macro.
3393 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3394 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3396 (ALL_BLOCK_SYMBOLS): Update definition.
3397 * Makefile.in (SFILES): Add dictionary.c.
3398 (dictionary_h): New.
3399 (COMMON_OBS): Add dictionary.o.
3400 (dictionary.o): New.
3401 (ada-lang.o): Depend on dictionary_h.
3402 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3403 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3404 (mi-cmd-stack.o): Ditto.
3405 (gdbtk-cmds.o): Update dependencies.
3406 (gdbtk-stack.o): Ditto.
3407 * ada-lang.c: Include dictionary.h.
3408 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3409 (fill_in_ada_prototype, debug_print_block): Ditto.
3410 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3411 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3413 * mdebugread.c: Include dictionary.h.
3414 (struct parse_stack): Delete 'maxsyms' member.
3415 (parse_symbol): Update calls to new_block. Delete calls to
3416 shrink_block. Use dictionary methods.
3417 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3418 Update calls to new_symtab. Don't maintain maxsyms data.
3419 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3420 (add_symbol): Just call dict_add_symbol.
3421 (new_symtab): Delete 'maxsyms' argument.
3422 (new_symtab): Update calls to new_block.
3423 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3424 (shrink_block): Delete function.
3425 (fixup_sigtramp): Update call to new_block. Add symbol via
3427 * jv-lang.c: Include dictionary.h.
3428 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3429 appropriately. Set class_symtab->free_func. Make sure the
3430 blockvector is big enough to hold two blocks.
3431 (add_class_symtab_symbol): Use dictionary methods.
3432 (free_class_block): New function.
3433 (type_from_class): Replace explicit iteration by
3435 * symtab.h (struct symtab): Replace 'free_ptr' method by
3437 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3439 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3441 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3442 Include dictionary.h.
3443 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3444 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3446 * objfiles.c: Include dictionary.h.
3447 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3448 * buildsym.c: Include dictionary.h.
3449 (finish_block): Use dictionary methods.
3450 (end_symtab): Set free_func to NULL, not free_ptr.
3451 * tracepoint.c: Include dictionary.h.
3452 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3453 (scope_info): Ditto.
3454 * stack.c: Include dictionary.h.
3455 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3456 (print_block_frame_labels, print_frame_arg_vars)
3457 (print_frame_args): Ditto.
3458 * symmisc.c (free_symtab_block): Use dictionary methods.
3459 (dump_symtab): Ditto.
3460 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3461 Include dictionary.h.
3462 * symfile.h: Delete declarations of sort_block_syms,
3464 * symfile.c (sort_block_syms): Delete.
3465 (sort_symtab_syms): Delete.
3466 * symtab.c: Include dictionary.h.
3467 (lookup_block_symbol): Use dictionary iterators.
3468 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3469 (search_symbols, make_symbol_completion_list): Ditto.
3470 (make_symbol_overload_list): Ditto.
3471 * valops.c (value_of_local): Use dict_empty.
3472 Include dictionary.h.
3474 2003-06-11 J. Brobecker <brobecker@gnat.com>
3476 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3478 2003-06-11 David Carlton <carlton@bactrian.org>
3480 * block.h (BLOCK_SHOULD_SORT): Delete.
3481 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3483 * ada-lang.c (ada_add_block_symbols): Ditto.
3484 * symfile.c (sort_block_syms): Delete.
3485 (sort_symtab_syms): Ditto.
3486 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3488 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3489 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3490 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3491 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3492 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3493 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3494 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3496 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3498 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3501 2003-06-11 Andrew Cagney <cagney@redhat.com>
3503 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3504 REGISTER_CONVERTIBLE.
3505 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3506 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3507 * gdbarch.h, gdbarch.c: Re-generate.
3508 * arch-utils.h (deprecated_register_convertible_not): Rename
3509 generic_register_convertible_not.
3510 * arch-utils.c (deprecated_register_convertible_not): Rename
3511 generic_register_convertible.
3512 (legacy_convert_register_p, legacy_register_to_value): Update.
3513 * sh-tdep.c (sh64_push_arguments): Update.
3514 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3515 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3516 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3517 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3518 * arch-utils.c (legacy_value_to_register): Update.
3519 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3520 (rs6000_register_convert_to_raw): Make parameter "from" const.
3521 * mips-tdep.c (mips_gdbarch_init): Update.
3522 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3523 * infcmd.c (default_print_registers_info): Update.
3524 * ia64-tdep.c (ia64_gdbarch_init): Update.
3525 (ia64_register_convert_to_raw): Make parameter "from" const.
3526 * i386-tdep.c (i386_gdbarch_init): Update.
3527 (i386_register_convert_to_raw): Update.
3529 2003-06-11 Andrew Cagney <cagney@redhat.com>
3531 * remote-fileio.c: Include "remote-fileio.h".
3532 * Makefile.in (remote-fileio.o): Update dependencies.
3533 (remote_fileio_h): Fix typo.
3535 2003-06-11 Andrew Cagney <cagney@redhat.com>
3537 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3538 (xstormy16_save_dummy_frame_tos): Make static.
3539 (_initialize_xstormy16_tdep): Add declaration.
3540 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3541 * v850-tdep.c: Make local functions static.
3542 (_initialize_v850_tdep): Add declaration.
3543 * sparc-tdep.c: Make local functions static.
3544 (_initialize_sparc_tdep): Add declaration.
3545 * sh-tdep.c: Make local functions static.
3546 (_initialize_sh_tdep): Add declaration.
3547 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3548 * s390-tdep.c: Make local functions static.
3549 (_initialize_s390_tdep): Add declaration.
3550 * dbxread.c (find_stab_function_addr): Make static.
3551 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3552 * ocd.c (_initialize_remote_ocd): Add declaration.
3553 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3554 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3555 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3556 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3557 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3558 * remote-array.c (_initialize_array): Add declaration.
3559 (_initialize_remote_monitors): Add declaration.
3560 * remote-mips.c: Make local functions static.
3561 (_initialize_remote_mips): Add declaration.
3562 * mcore-tdep.c: Make all local functions static.
3563 (_initialize_mcore_tdep): Add declaration.
3564 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3565 * abug-rom.c (_initialize_abug_rom): Add declaration.
3566 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3567 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3568 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3569 * remote-est.c (_initialize_est): Add declaration.
3570 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3571 (m68hc11_call_dummy_address): Make static.
3572 * ia64-tdep.c: Make local functions static.
3573 (_initialize_ia64_tdep): Add declaration.
3574 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3575 * monitor.c (monitor_wait_filter): Make static.
3576 (_initialize_remote_monitors): Add declaration.
3577 * remote-hms.c (_initialize_remote_hms): Add declaration.
3578 * remote-e7000.c (fetch_regs_from_dump): Make static.
3579 (expect_n): Make static.
3580 (_initialize_remote_e7000): Add declaration.
3581 * ser-e7kpc.c: Always include "defs.h".
3582 (_initialize_ser_e7000pc): Add declaration.
3583 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3584 * cris-tdep.c: Make all but one function static.
3585 (_initialize_cris_tdep): Add declaration.
3586 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3587 * solib.c (update_solib_list): Make static.
3588 (_initialize_solib): Add declaration.
3589 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3590 (_initialize_avr_tdep): Add declaration.
3591 * remote-rdi.c (voiddummy): Make static.
3592 (_initialize_remote_rdi): Add declaration.
3593 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3594 * remote-rdp.c (send_rdp): Make static.
3595 (_initialize_remote_rdp): Add declaration.
3596 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3598 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3600 * remote-fileio.c: Make ari happy.
3602 2003-06-10 J. Brobecker <brobecker@gnat.com>
3604 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3605 fetching the trailing bytes of the buffer we are about to write.
3607 2003-06-10 Andrew Cagney <cagney@redhat.com>
3609 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3610 * Makefile.in (remote-fileio.o): Update dependencies.
3611 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3612 include <setjmp.h>, or <sys/types.h> conditional on USG.
3613 (remote_fio_jmp_buf): Delete global variable.
3615 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3616 Martin M. Hunt <hunt@redhat.com>
3618 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3619 (SFILES): Add remote-fileio.c.
3620 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3621 dependencies for building remote.o.
3622 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3623 * remote-fileio.h: New header file defining remote File-I/O interface.
3624 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3625 static storage class.
3626 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3628 (_initialize_remote): Call initialize_remote_fileio().
3629 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3630 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3631 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3632 (captured_main): Initialize new ui_files.
3633 * ui-file.c: Add read and fgets input functions.
3634 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3635 (null_file_read): New function.
3636 (ui_file_read): New function.
3637 (set_ui_file_read): New function.
3638 (stdio_file_read): New function.
3639 * ui-file.h: New type ui_file_read_ftype.
3640 (set_ui_file_read): Declare.
3641 (ui_file_read): Declare.
3643 2003-06-09 Andrew Cagney <cagney@redhat.com>
3645 * frame.h (deprecated_unwind_get_saved_register): Rename
3646 generic_unwind_get_saved_register, update comments.
3647 * mips-tdep.c (mips_get_saved_register): Update.
3648 * frame.c (deprecated_unwind_get_saved_register): Update.
3650 2003-06-09 Andrew Cagney <cagney@redhat.com>
3652 * vax-tdep.c (vax_frame_locals_address): Delete function.
3653 (vax_gdbarch_init): Do not set frame_locals_address.
3654 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3655 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3656 * s390-tdep.c (s390_frame_args_address): Delete function.
3657 (s390_gdbarch_init): Do not set frame_args_address or
3658 frame_locals_address.
3659 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3660 (ns32k_gdbarch_init): Do not set frame_locals_address.
3661 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3662 (hppa_frame_locals_address): Delete function.
3663 (hppa_gdbarch_init): Do not set frame_args_address, or
3664 frame_locals_address.
3665 * arm-tdep.c (arm_frame_args_address): Delete.
3666 (arm_frame_locals_address): Delete.
3667 (arm_gdbarch_init): Do not set frame_args_address, or
3668 frame_locals_address.
3670 2003-06-09 Andrew Cagney <cagney@redhat.com>
3672 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3673 * gdbarch.h, gdbarch.c: Re-generate.
3674 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3675 * arch-utils.c (frame_num_args_unknown): Delete function.
3676 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3677 (frame_info): Use FRAME_NUM_ARGS_P.
3678 * arm-tdep.c (arm_frame_num_args): Delete function.
3679 (arm_gdbarch_init): Do not set frame_num_args.
3680 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3681 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3682 (hppa_gdbarch_init): Do not set frame_num_args.
3683 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3685 frame_num_args to default frame_num_args_unknown.
3686 * v850-tdep.c (v850_gdbarch_init): Ditto.
3687 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3688 * sh-tdep.c (sh_gdbarch_init): Ditto.
3689 * s390-tdep.c (s390_gdbarch_init): Ditto.
3690 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3691 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3692 * mips-tdep.c (mips_gdbarch_init): Ditto.
3693 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3694 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3696 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3697 * i386-tdep.c (i386_gdbarch_init): Ditto.
3698 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3699 * frv-tdep.c (frv_gdbarch_init): Ditto.
3700 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3701 * cris-tdep.c (cris_gdbarch_init): Ditto.
3702 * avr-tdep.c (avr_gdbarch_init): Ditto.
3703 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3705 2003-06-09 Andrew Cagney <cagney@redhat.com>
3707 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3708 (print_frame_args): Moved to "stack.c".
3709 * stack.c: Include "gdb_assert.h".
3710 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3711 (print_frame_args): Moved from "printcmd.c".
3712 * frame.h (print_frame_args): Delete declaration.
3713 * Makefile.in (stack.o): Update dependencies.
3715 2003-06-08 Andrew Cagney <cagney@redhat.com>
3717 * frame.c (get_prev_frame): Remove reference to
3718 frame_args_address_correct in comments.
3719 * frame-base.c (default_frame_args_address): Delete code
3720 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3721 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3722 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3723 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3724 (vax_frame_args_address_correct): Delete declaration.
3726 2003-06-08 Andrew Cagney <cagney@redhat.com>
3728 * gdbarch.sh (UNWIND_SP): Add.
3729 * gdbarch.h, gdbarch.c: Re-generate.
3730 * frame.c (frame_sp_unwind): New function.
3731 (get_frame_sp): New function.
3732 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3733 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3734 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3736 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3737 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3739 2003-06-08 Andrew Cagney <cagney@redhat.com>
3741 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3744 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3745 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3746 * config/m68k/tm-sun3.h: Update.
3747 * config/m68k/tm-m68klynx.h: Update.
3748 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3750 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3751 trad_frame". Update comments.
3752 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3753 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3754 (trad_frame_register_value, trad_frame_prev_register): Update.
3756 2003-06-08 Andrew Cagney <cagney@redhat.com>
3758 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3759 from GCC's acinclude.m4.
3760 * configure.in: Check for getopt's delcaration.
3761 * aclocal.m4, config.in, configure: Re-generate.
3762 * main.c (error_init): Delete declaration.
3763 * defs.h (error_init): Declare.
3764 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3765 (rs6000_convert_from_func_ptr_addr): Make static.
3766 (_initialize_rs6000_tdep): Add declaration.
3767 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3768 (show_commands, set_verbose, show_history): Delete declaration.
3769 * top.h (set_verbose): Add declaration.
3770 (show_history, set_history, show_commands): Add declaration.
3771 (do_restore_instream_cleanup): Add declaration.
3772 * objc-lang.c (specialcmp): Make static.
3773 (print_object_command): Make static.
3774 (find_objc_msgsend): Make static.
3775 (find_objc_msgcall_submethod_helper): Make static.
3776 (find_objc_msgcall_submethod): Make static.
3777 (_initialize_objc_language): Add declaration.
3778 (find_implementation_from_class): Make static.
3779 (find_implementation): Make static.
3780 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3781 * objc-lang.h (lookup_struct_typedef): Add declaration.
3782 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3783 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3784 (do_restore_user_call_depth): Make static.
3785 (do_restore_instream_cleanup): Delete declaration.
3786 (dont_repeat): Delete declaration.
3787 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3788 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3789 * reggroups.c (_initialize_reggroup): Add declaration.
3790 * cp-support.c (_initialize_cp_support): Add declaration.
3791 * cp-abi.c (_initialize_cp_abi): Add declaration.
3792 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3793 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3794 (_initialize_gnu_v3_abi): Add declaration.
3795 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3796 (_initialize_gnu_v2_abi): Add declaration.
3797 * frame-base.c (_initialize_frame_base): Add declaration.
3798 * doublest.c (floatformat_from_length): Make static.
3799 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3800 * frame.c (create_sentinel_frame): Make static.
3801 (_initialize_frame): Add declaration.
3802 * top.c (do_catch_errors): Make static.
3803 (gdb_rl_operate_and_get_next_completion): Make static.
3804 * typeprint.c: Include "typeprint.h".
3805 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3806 (sentinel_frame_this_id): Make static.
3807 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3808 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3809 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3810 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3811 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3812 * maint.c (maintenance_print_architecture): Make static.
3813 * signals/signals.c (_initialize_signals): Add declaration.
3814 * std-regs.c (_initialize_frame_reg): Add declaration.
3815 * jv-exp.y (push_variable): ISO C definition.
3816 (push_qualified_expression_name): Ditto.
3817 * memattr.c (_initialize_mem): Add declaration.
3818 * remote.c (remote_check_watch_resources): Make static.
3819 (remote_stopped_by_watchpoint): Make static.
3820 (remote_stopped_data_address): Make static.
3821 * d10v-tdep.c (nr_dmap_regs): Make static.
3822 (a0_regnum): Make static.
3823 (d10v_frame_unwind_cache): Make static.
3824 (d10v_frame_p): Make static.
3825 * osabi.c (show_osabi): Make static.
3826 (_initialize_gdb_osabi): Add extern declaration.
3827 * gdbtypes.c (make_qualified_type): Make static.
3828 (safe_parse_type): Make static.
3829 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3830 * macrotab.c (macro_bcache_free): Make static.
3831 * interps.c (interp_set_quiet): Make static.
3832 (interpreter_exec_cmd): Make static.
3833 * stack.h (select_frame_command): New file.
3834 * stack.c: Include "stack.h".
3835 (select_frame_command_wrapper): Delete function.
3836 (select_frame_command): Make global.
3837 * infcall.c: Include "infcall.h".
3838 * linespec.c: Include "linespec.h".
3839 * symfile.c (sections_overlap): Make static.
3840 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3841 * charset.c (_initialize_charset): Add missing prototype.
3842 * regcache.c (init_legacy_regcache_descr): Make static.
3843 (do_regcache_xfree): Make static.
3844 (regcache_xfer_part): Make static.
3845 (_initialize_regcache): Add missing prototype.
3846 * breakpoint.c (parse_breakpoint_sals): Make static.
3847 (breakpoint_sals_to_pc): Make static.
3848 * interps.h (clear_interpreter_hooks): ISO C declaration.
3849 * Makefile.in (stack_h): Define.
3850 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3851 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3853 2003-06-08 Andrew Cagney <cagney@redhat.com>
3855 * Makefile.in (d10v-tdep.o): Update dependencies.
3856 (SFILES): Add trad-frame.c.
3857 (trad_frame_h): Define.
3858 (COMMON_OBS): Add trad-frame.o.
3859 (trad-frame.o): Specify dependencies.
3860 * d10v-tdep.c: Include "trad-frame.h".
3861 (saved_regs_unwinder): Delete function.
3862 (d10v_frame_prev_register): Use trad_frame_prev_register.
3863 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3864 trad_frame", delete "regs" and "prev_sp".
3865 (prologue_find_regs): Use trad-frame.
3866 * trad-frame.h, trad-frame.c: New files.
3868 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3870 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3872 2003-06-07 Adam Fedor <fedor@gnu.org>
3874 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3875 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3876 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3877 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3878 resolve_msgsend_super, resolve_msgsend_super_stret):
3881 2003-06-07 Andrew Cagney <cagney@redhat.com>
3883 * symfile.h: Re-indent, clean up comments.
3885 2003-06-07 Andrew Cagney <cagney@redhat.com>
3887 * inferior.h (deprecated_write_sp): Replace
3888 generic_target_write_sp.
3889 * regcache.c (deprecated_write_sp): Replace
3890 generic_target_write_sp.
3891 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3892 * vax-tdep.c (vax_gdbarch_init): Update.
3893 * v850-tdep.c (v850_gdbarch_init): Update.
3894 * sparc-tdep.c (sparc_gdbarch_init): Update.
3895 * sh-tdep.c (sh_gdbarch_init): Update.
3896 * s390-tdep.c (s390_gdbarch_init): Update.
3897 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3898 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3899 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3900 * mcore-tdep.c (mcore_gdbarch_init): Update.
3901 * m68k-tdep.c (m68k_gdbarch_init): Update.
3902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3903 * ia64-tdep.c (ia64_gdbarch_init): Update.
3904 * h8300-tdep.c (h8300_gdbarch_init): Update.
3905 * frv-tdep.c (frv_gdbarch_init): Update.
3906 * cris-tdep.c (cris_gdbarch_init): Update.
3907 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3909 2003-06-07 Andrew Cagney <cagney@redhat.com>
3911 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3912 Assert that PC_REGNUM is valid.
3913 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3915 2003-06-07 Andrew Cagney <cagney@redhat.com>
3917 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3918 * gdbarch.h, gdbarch.c: Regenerate.
3919 * mn10300-tdep.c: Include "gdb_assert.h".
3920 (mn10300_read_fp): New function.
3921 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3922 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3923 * ia64-tdep.c: Include "gdb_assert.h".
3924 (ia64_read_fp): New function.
3925 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3926 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3927 * regcache.c (generic_target_read_sp): Delete function.
3928 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3929 * inferior.h (generic_target_read_sp): Delete declaration.
3930 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3931 generic_target_read_sp.
3932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3933 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3934 * sh-tdep.c (sh_gdbarch_init): Ditto.
3935 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3936 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3938 2003-06-07 Andrew Cagney <cagney@redhat.com>
3940 * gdbarch.sh: Comment each field of startup_gdbarch.
3941 * gdbarch.h, gdbarch.c: Re-generate.
3943 2003-06-07 Andrew Cagney <cagney@redhat.com>
3945 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3946 * gdbarch.h, gdbarch.c: Re-generate.
3947 * regcache.c: Update comments on read_pc et.al.
3948 (generic_target_read_pc): Delete function.
3949 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3950 * inferior.h (generic_target_read_pc): Delete declaration.
3951 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3952 generic_target_read_pc.
3953 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3954 * sh-tdep.c (sh_gdbarch_init): Ditto.
3955 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3956 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3958 2003-06-07 Andrew Cagney <cagney@redhat.com>
3960 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3961 "index" with "special_local_sect". Use strcmp instead of STREQ.
3962 Append period to coments.
3964 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3966 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3967 (elfstab_offset_sections): Likewise.
3968 * gdb-stabs.h (stab_section_info): Likewise.
3969 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3970 * objfiles.c (objfile_relocate): Likewise.
3971 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3972 * remote.c (get_offsets): Likewise.
3973 (remote_cisco_objfile_relocate): Likewise.
3974 * somread.c (som_symfile_offsets): Likewise.
3975 * symfile.c (alloc_section_addr_info): New function.
3976 (build_section_addr_info_from_section_tab): Use it.
3977 (free_section_addr_info): Adjust.
3978 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3979 (syms_from_objfile): Allocate local_addr dynamically.
3980 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3982 (add_symbol_file_command): Allocate sect_opts dynamically.
3983 (reread_symbols): Avoid use of SECT_OFF_MAX.
3984 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3985 (alloc_section_addr_info): Declare it.
3986 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3987 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3989 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3991 2003-06-06 Andrew Cagney <cagney@redhat.com>
3993 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3994 (d10v_frame_unwind_cache): Do not set "return_pc".
3996 2003-06-06 Michael Snyder <msnyder@redhat.com>
3998 * h8300-tdep.c: Make tidy (long lines).
4000 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4002 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4003 to regcache_collect().
4005 2003-06-05 J. Brobecker <brobecker@gnat.com>
4007 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4008 pc_in_sigtramp multiarch method.
4009 (hppa_hpux_som_init_abi): Use it.
4010 (hppa_hpux_elf_init_abi): Likewise.
4011 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4012 macro has been multiarched.
4013 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4014 macro here, as hppa64 isn't multiarched yet.
4016 2003-06-05 Andrew Cagney <cagney@redhat.com>
4018 * Makefile.in (value_h): Add $(frame_h).
4019 * value.h: Include "frame.h".
4020 (struct value): Replace "frame_addr" with "frame_id".
4021 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4022 * values.c (allocate_value): Use VALUE_FRAME_ID.
4023 (value_copy): Use VALUE_FRAME_ID.
4024 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4025 * valops.c (value_assign): Update. Use frame_find_by_id.
4027 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4029 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4032 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4034 * thread-db.c (check_event): For create/death event breakpoints,
4035 loop through all messages to ensure that we read the message
4036 corresponding to the breakpoint we are at.
4038 2003-06-04 Michael Snyder <msnyder@redhat.com>
4040 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4042 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4044 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4045 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4046 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4047 when handling .eh_frame sections.
4049 2003-06-04 J. Brobecker <brobecker@gnat.com>
4051 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4052 prepare_to_proceed procedure instead of the hppa-specific one.
4053 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4055 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4057 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4058 * config.in: Regenerated.
4059 * configure.in: Add test for syscall function and check for
4060 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4061 * configure: Regenerated.
4062 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4064 (kill_lwp): New function that uses tkill syscall or
4065 uses kill, depending on whether threading model is nptl or not.
4066 All callers of kill() changed to use kill_lwp().
4067 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4068 see if all threads have already exited in the nptl model.
4069 (stop_and_resume_callback): New callback function used by the
4070 lin_lwp_wait thread exit handling code.
4071 (stop_wait_callback): Check for threads already having exited and
4072 delete such threads fromt the lwp list when discovered.
4073 (stop_callback): Don't assert retcode of kill call.
4075 Roland McGrath <roland@redhat.com>
4076 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4079 2003-06-03 Richard Henderson <rth@redhat.com>
4081 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4082 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4083 (alpha_sigtramp_frame_prev_register): Likewise.
4084 (alpha_heuristic_frame_prev_register): Likewise.
4085 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4087 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4088 alpha-specific register id names.
4089 (alpha_mdebug_frame_unwind_cache): Likewise.
4090 (alpha_mdebug_frame_prev_register): Likewise.
4092 2003-06-03 Richard Henderson <rth@redhat.com>
4094 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4095 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4096 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4097 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4099 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4100 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4101 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4103 * alpha-linux-tdep.c: Remove unnecessary includes.
4104 * Makefile.in (alpha-linux-tdep.o): Update.
4106 2003-06-03 Richard Henderson <rth@redhat.com>
4108 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4109 (alphabsd_fill_fpreg): Likewise.
4111 2003-06-03 J. Brobecker <brobecker@gnat.com>
4113 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4114 references to struct frame_info fields by calls to the equivalent
4115 accessors. Necessary now that frame_info is opaque.
4117 2003-06-03 J. Brobecker <brobecker@gnat.com>
4119 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4120 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4121 structure, field no longer exists.
4123 2003-06-03 J. Brobecker <brobecker@gnat.com>
4125 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4126 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4128 2003-06-03 J. Brobecker <brobecker@gnat.com>
4130 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4131 references to struct frame_info fields by calls to the equivalent
4132 accessors. Necessary now that frame_info is opaque.
4134 2003-06-03 J. Brobecker <brobecker@gnat.com>
4136 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4137 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4138 structure, field no longer exists.
4140 2003-06-03 Theodore A. Roth <troth@openavr.org>
4142 * remote.c (init_remote_state): Compute sizeof_g_packet by
4143 accumulation of the size of all registers instead of blindly using
4144 DEPRECATED_REGISTER_BYTES.
4146 2003-06-03 Michael Snyder <msnyder@redhat.com>
4148 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4149 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4152 2003-06-03 J. Brobecker <brobecker@gnat.com>
4154 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4155 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4157 2003-06-03 Andrew Cagney <cagney@redhat.com>
4159 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4160 (sparc_convert_to_raw): Delete function.
4161 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4162 register_convert_to_virtual.
4164 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4166 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4167 layer if not dealing with a statically-linked threaded program.
4169 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4171 * solib.c (solib_open): Update comment to reflect actual search order.
4173 2003-06-03 Andrew Cagney <cagney@redhat.com>
4175 * frame.c (get_frame_memory_signed): New function.
4176 (get_frame_memory, get_frame_memory_unsigned): New function.
4177 (get_frame_arch): New function.
4178 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4179 (get_frame_memory, get_frame_unsigned_memory): Declare.
4180 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4181 get_frame_memory_unsigned and get_frame_arch.
4182 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4184 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4186 * MAINTAINERS (write after approval): Add myself.
4188 2003-06-03 Jim Blandy <jimb@redhat.com>
4190 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4191 elements of gregset_t are 64 bits each, but access registers
4192 are still 32 bits, so they're packed two per gregset_t
4193 element. Unpack/pack them properly.
4195 2003-06-02 David Carlton <carlton@bactrian.org>
4197 * linespec.c (find_methods): Break out code into
4198 add_matching_methods and add_constructors.
4199 (add_matching_methods): New.
4200 (add_constructors): Ditto.
4202 2003-06-02 Andrew Cagney <cagney@redhat.com>
4204 * sparc-tdep.c (sparc_print_registers): Delete call to
4205 REGISTER_CONVERTIBLE.
4206 (sparc_gdbarch_init): Do not set register_convertible.
4207 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4208 * frv-tdep.c (frv_gdbarch_init): Ditto.
4209 * cris-tdep.c (cris_gdbarch_init): Ditto.
4211 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4213 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4214 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4215 (syms_from_objfile): Ditto.
4217 2003-06-03 Andreas Schwab <schwab@suse.de>
4219 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4220 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4222 2003-06-02 Richard Henderson <rth@redhat.com>
4224 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4225 a member of all_reggroup.
4227 2003-06-02 Richard Henderson <rth@redhat.com>
4229 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4230 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4231 (alpha_lds, alpha_sts): New.
4232 (alpha_convert_register_p): Change from _register_convertible.
4233 (alpha_register_to_value): Change from _convert_to_virtual;
4234 restructure and fail for type sizes other than 4 or 8.
4235 (alpha_value_to_register): Similarly.
4236 (alpha_extract_return_value): Use alpha_sts.
4237 (alpha_store_return_value): Use alpha_lds.
4238 (alpha_gdbarch_init): Update hooks.
4240 2003-06-02 Richard Henderson <rth@redhat.com>
4242 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4244 (alpha_sigtramp_register_address): Likewise.
4246 2003-06-02 Richard Henderson <rth@redhat.com>
4248 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4249 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4250 * alpha-tdep.h: Declare them.
4252 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4253 Remove zerobuf. Don't error on UNIQUE.
4254 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4255 (ALPHA_REGSET_UNIQUE): Provide default.
4256 (supply_gregset): Use alpha_supply_int_regs.
4257 (fill_gregset): Use alpha_fill_int_regs.
4258 (supply_fpregset): Use alpha_supply_fp_regs.
4259 (fill_fpregset): Use alpha_fill_fp_regs.
4260 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4261 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4262 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4263 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4264 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4265 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4267 2003-06-02 Richard Henderson <rth@redhat.com>
4269 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4271 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4272 (alpha_store_return_value): Likewise.
4274 2003-06-02 David Carlton <carlton@math.stanford.edu>
4276 * block.c (contained_in): Add 'const' to arguments.
4277 (block_function): Ditto.
4278 * block.h: Update declarations for block_function and
4281 2003-06-02 David Carlton <carlton@math.stanford.edu>
4283 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4284 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4285 * p-valprint.c (pascal_val_print): Ditto.
4286 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4288 2003-06-02 Richard Henderson <rth@redhat.com>
4290 * alpha-tdep.c (alpha_push_dummy_call): Use
4291 builtin_type_ieee_double_little instead of builtin_type_double.
4293 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4294 sign-extension of 32-bit values.
4295 (alpha_store_return_value): Similarly.
4297 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4298 (alpha_extract_return_value): Likewise.
4299 (alpha_store_return_value): Likewise.
4301 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4302 (alpha_store_return_value): Error on IEEE Quad floats.
4304 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4305 (alpha_extract_struct_value_address): Likewise.
4306 (alpha_store_return_value): Likewise.
4307 (alpha_store_struct_return): Remove.
4308 (alpha_gdbarch_init): Update hook registration to match.
4310 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4311 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4312 macros where appropriate.
4313 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4314 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4316 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4317 for SP, GP; void_func_ptr for PC; non-language-specific types
4319 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4321 2003-06-02 Richard Henderson <rth@redhat.com>
4323 * top.h (lim_at_start): Declare.
4324 * main.c (captured_main): Set it.
4325 * top.c (lim_at_start): Define.
4326 (command_loop): Use it instead of &environ.
4327 * event-top.c (command_handler): Likewise.
4329 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4331 * mipsnbsd-tdep.c: Update copyright years.
4332 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4334 2003-06-01 Richard Henderson <rth@redhat.com>
4336 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4337 (alpha-linux-tdep.o): Update dependencies.
4338 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4339 * alpha-mdebug-tdep.c: Remove unneeded includes.
4341 2003-06-01 Richard Henderson <rth@redhat.com>
4343 * alpha-tdep.c (alpha_register_reggroup_p): New.
4344 (alpha_gdbarch_init): Register it.
4346 2003-06-02 Andrew Cagney <cagney@redhat.com>
4348 * dwarfread.c: Eliminate "register"
4349 (decode_die_type): Eliminate assignment within "if".
4350 (struct_type, decode_array_element_type): Ditto.
4351 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4352 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4353 (decode_modified_type, completedieinfo): Ditto.
4354 * block.c: Eliminate "register".
4355 (blockvector_for_pc_sect): Eliminate assignment within "if".
4356 * cp-support.h (struct symbol): Opaque declaration.
4357 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4359 2003-06-01 Richard Henderson <rth@redhat.com>
4361 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4362 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4364 2003-06-01 Adam Fedor <fedor@gnu.org>
4366 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4367 * gdbarch.[ch]: Regenerate.
4368 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4369 (hppa_gdbarch_init): Set it in the gdbarch vector.
4370 * i386-tdep.c (i386_fetch_pointer_argument): New
4371 (i386_gdbarch_init): Set it into gdbarch.
4372 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4373 (rs6000_gdbarch_init): Set it in gdbarch.
4374 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4375 (sparc_gdbarch_init): Set it in gdbarch.
4377 2003-06-01 Andrew Cagney <cagney@redhat.com>
4379 * defs.h (extract_address): Delete declaration.
4380 * findvar.c (extract_address): Delete function.
4381 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4382 extract_address with the inline equivalent,
4383 extract_unsigned_integer.
4384 (xstormy16_extract_struct_value_address): Ditto.
4385 (xstormy16_pointer_to_address): Ditto.
4386 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4387 * v850-tdep.c (v850_push_arguments): Ditto.
4388 (v850_extract_return_value): Ditto.
4389 (v850_extract_struct_value_address): Ditto.
4390 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4391 (sparcnbsd_get_longjmp_target_64): Ditto.
4392 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4393 (get_longjmp_target): Ditto.
4394 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4395 (sh64_extract_struct_value_address): Ditto.
4396 (sh_push_arguments): Ditto.
4397 (sh64_push_arguments): Ditto.
4398 * remote-vxsparc.c (vx_read_register): Ditto.
4399 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4400 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4401 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4402 * mipsv4-nat.c (get_longjmp_target): Ditto.
4403 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4404 * mips-nat.c (get_longjmp_target): Ditto.
4405 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4406 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4407 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4408 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4409 * irix5-nat.c (get_longjmp_target): Ditto.
4410 * irix4-nat.c (get_longjmp_target): Ditto.
4411 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4412 (ia64_push_arguments): Ditto.
4413 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4414 * h8300-tdep.c (h8300_push_arguments): Ditto.
4415 (h8300_store_return_value): Ditto.
4416 (h8300_extract_struct_value_address): Ditto.
4417 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4418 (frv_push_arguments): Ditto.
4419 * avr-tdep.c (avr_pointer_to_address): Ditto.
4420 (avr_push_arguments): Ditto.
4421 * arm-tdep.c (arm_push_dummy_call): Ditto.
4422 (arm_get_longjmp_target): Ditto.
4423 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4424 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4425 (alpha_get_longjmp_target): Ditto.
4427 * solib-irix.c (extract_mips_address): Inline extract_address,
4428 replacing it with extract_signed_integer.
4429 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4430 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4431 (first_link_map_member, open_symbol_file_object): Ditto.
4432 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4433 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4434 (LM_NEXT, LM_NAME): Ditto.
4436 2003-06-01 Richard Henderson <rth@redhat.com>
4438 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4439 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4440 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4441 (alpha_cannot_store_register): Likewise.
4442 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4443 * alpha-nat.c (supply_gregset): Likewise.
4444 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4446 2003-06-01 Andrew Cagney <cagney@redhat.com>
4448 * infcall.c (call_function_by_hand): Update comment on
4449 DEPRECATED_DUMMY_WRITE_SP.
4451 * mips-tdep.c (mips_gdbarch_init): Do not set
4452 deprecated_dummy_write_sp.
4453 (mips_eabi_push_dummy_call): Set the SP register.
4454 (mips_o64_push_dummy_call): Set the SP register.
4455 (mips_o32_push_dummy_call): Set the SP register.
4456 (mips_n32n64_push_dummy_call): Set the SP register.
4458 2003-06-01 Richard Henderson <rth@redhat.com>
4460 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4461 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4462 (supply_gregset): Likewise.
4463 * alpha-tdep.c (alpha_store_return_value): Likewise.
4464 (alpha_get_longjmp_target): Likewise.
4465 (alpha_register_name): Constify array.
4466 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4467 deprecated_register_size, deprecated_register_bytes,
4468 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4469 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4470 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4472 2003-06-01 Richard Henderson <rth@redhat.com>
4474 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4475 from arg_reg_buffer to regcache to avoid double conversion.
4477 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4479 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4481 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4482 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4484 2003-06-01 Richard Henderson <rth@redhat.com>
4486 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4487 (decode_frame_entry): Set it. Skip FDE augmentation.
4489 2003-06-01 Richard Henderson <rth@redhat.com>
4491 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4492 not overlapping PC_REGNUM.
4494 2003-06-01 Richard Henderson <rth@redhat.com>
4496 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4497 alpha_push_arguments. Don't dump argument register data to
4498 the target stack. Fix float and 128-bit long double semantics.
4499 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4500 (alpha_fix_call_dummy): Remove.
4501 (alpha_call_dummy_words): Remove.
4502 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4504 2003-06-01 Richard Henderson <rth@redhat.com>
4506 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4508 2003-06-01 Andrew Cagney <cagney@redhat.com>
4510 * mips-tdep.c (is_mips16_addr): New function.
4511 (make_mips16_addr, unmake_mips16_addr): New functions.
4512 (pc_is_mips16, mips_fetch_instruction): Use.
4513 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4514 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4515 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4516 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4518 * config/mips/tm-mips.h: Update copyright.
4519 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4520 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4521 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4522 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4523 (TM_PRINT_INSN_MACH): Delete.
4524 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4526 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4527 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4528 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4529 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4530 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4531 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4532 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4533 mips*-*-riscos* and mips*-*-sysv* onto mips.
4534 * config/mips/mips64.mt: New file.
4535 * config/mips/mips.mt: New file.
4536 * config/mips/littlemips.mt: Delete file.
4537 * config/mips/decstation.mt: Delete file.
4538 * config/mips/vr4300el.mt: Delete file.
4539 * config/mips/vr5000el.mt: Delete file.
4540 * config/mips/vr5000.mt: Delete file.
4541 * config/mips/vr4100.mt: Delete file.
4542 * config/mips/vr4xxxel.mt: Delete file.
4543 * config/mips/vr4300.mt: Delete file.
4544 * config/mips/vr4xxx.mt: Delete file.
4545 * config/mips/bigmips.mt: Delete file.
4546 * config/mips/bigmips64.mt: Delete file.
4547 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4548 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4549 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4550 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4551 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4553 * config/mips/tm-irix3.h: Ditto.
4554 * config/mips/tm-mipsv4.h: Ditto.
4555 * config/mips/tm-embed.h: Ditto.
4556 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4558 * config/mips/tm-vr5000el.h: Delete file.
4559 * config/mips/tm-tx39l.h: Delete file.
4560 * config/mips/tm-vr4300el.h: Delete file.
4561 * config/mips/tm-vr4xxxel.h: Delete file.
4562 * config/mips/tm-vr4300.h: Delete file.
4563 * config/mips/tm-vr4100.h: Delete file.
4564 * config/mips/tm-vr4xxx.h: Delete file.
4565 * config/mips/tm-vr5000.h: Delete file.
4566 * config/mips/tm-embedl64.h: Delete file.
4567 * config/mips/tm-embedl.h: Delete file.
4568 * config/mips/tm-embed64.h: Delete file.
4569 * config/mips/tm-bigmips64.h: Delete file.
4570 * config/mips/tm-bigmips.h: Delete file.
4572 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4575 * shnbsd-nat.c: Include "sh-tdep.h".
4577 From Richard Henderson <rth@redhat.com>:
4578 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4580 2003-05-31 Andrew Cagney <cagney@redhat.com>
4582 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4583 forward declaration.
4584 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4585 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4586 (mips_find_saved_regs): Use set_reg_offset.
4587 (mips_frame_init_saved_regs): Delete function.
4588 (mips_pop_frame): Call mips_find_saved_regs instead of
4589 DEPRECATED_FRAME_INIT_SAVED_REGS.
4591 2003-05-31 Andrew Cagney <cagney@redhat.com>
4593 * mips-tdep.c (mips_gdbarch_init): Do not set
4594 deprecated_max_register_raw_size, register_virtual_size, and
4595 deprecated_max_register_virtual_size.
4597 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4599 * i386-tdep.c: Include "dwarf2-frame.h".
4600 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4601 * Makefile.in (i386-tdep.o): Update dependencies.
4603 * dwarf2-frame.c, dwarf2-frame.h: New files.
4604 * Makefile.in (SFILES): Add dwarf2-frame.c.
4605 (dwarf2_frame_h): Define.
4606 (COMMON_OBS): Add dwarf2-frame.o.
4607 (dwarf2-frame.o): Add dependencies.
4609 2003-05-31 Andreas Jaeger <aj@suse.de>
4611 * x86-64-linux-nat.c: Fix comment.
4613 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4615 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4618 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4619 have a sigcontext_addr handler.
4620 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4621 sigcontext_addr handler.
4623 2003-05-31 Andrew Cagney <cagney@redhat.com>
4625 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4626 (print_fp_register_row): Replace do_fp_register_row.
4627 (mips_print_fp_register): Add "file" and "frame" parameters.
4628 (mips_print_register): Add "file" and "frame" parameters.
4629 (mips_print_registers_info): Replace mips_do_registers_info.
4630 (mips_gdbarch_init): Set print_registers_info instead of
4631 deprecated_do_registers_info.
4632 (mips_read_fp_register_single): Add "frame" parameter.
4633 (mips_read_fp_register_double): Add "frame" parameter.
4635 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4637 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4638 Fixes a bug where GDB would print the wrong register names for
4639 targets without SSE.
4641 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4642 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4645 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4646 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4647 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4650 From Michal Ludvig <mludvig@suse.cz>:
4651 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4653 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4654 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4655 I386_ST0_REGNUM): Move here from...
4656 * i386-tdep.c: ... here.
4657 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4658 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4659 registers if possible.
4660 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4661 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4663 (i386bsd_sc_reg_offset): New variable.
4664 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4665 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4667 (i386fbsd_sc_reg_offset): New variable.
4668 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4670 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4672 (i386fbsd4_sc_reg_offset): New variable.
4673 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4674 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4676 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4677 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4678 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4680 (i386nbsd_sc_reg_offset): New variable.
4681 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4682 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4684 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4686 (i386obsd_sc_reg_offset): New variable.
4687 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4688 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4690 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4691 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4692 for frame pointer offset in `struct sigcontext'.
4694 2003-05-31 Andrew Cagney <cagney@redhat.com>
4696 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4697 architecture methods call_dummy_words, sizeof_call_dummy_words,
4698 push_return_address, store_struct_return, and fix_call_dummy. Set
4699 push_dummy_call instead of deprecated_push_arguments.
4700 (mips_store_struct_return): Delete function.
4701 (mips_fix_call_dummy): Delete function.
4702 (mips_push_return_address): Delete function.
4703 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4704 RA_REGNUM and T9_REGNUM.
4705 (mips_n32n64_push_dummy_call): Ditto for
4706 mips_n32n64_push_arguments.
4707 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4708 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4710 2003-05-31 Andrew Cagney <cagney@redhat.com>
4712 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4713 "dummy_addr" to "bp_addr".
4714 * infcall.c (call_function_by_hand): Pass "funaddr" to
4715 gdbarch_push_dummy_call.
4716 * gdbarch.h, gdbarch.c: Re-generate.
4717 * i386-tdep.c (i386_push_dummy_call): Update.
4718 * arm-tdep.c (arm_push_dummy_call): Update.
4719 * d10v-tdep.c (d10v_push_dummy_call): Update.
4721 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4723 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4724 variable declarations.
4725 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4726 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4727 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4728 x86_64_init_frame_pc, x86_64_init_frame_pc,
4729 x86_64_function_has_prologue): Remove prototypes.
4730 (X86_64_NUM_GREGS): New define.
4731 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4732 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4733 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4734 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4735 XMM1_REGNUM): Remove defines.
4736 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4737 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4738 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4739 X86_64_XMM1_REGNUM): New defines.
4740 (struct x86_64_register_info): Renamed from `struct
4741 register_info'. Remove `size' member.
4742 (x86_64_register_info_table): Remove variable.
4743 (x86_64_register_info): New variable.
4744 (X86_64_NUM_REGS): New define.
4745 (X86_64_NUM_GREGS): Remove define.
4746 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4747 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4749 (x86_54_dwarf2_reg_to_regnum): Remove function.
4750 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4751 (x86_64_dwarf_reg_to_regnum): New function.
4752 (x86_64_register_name): Rewrite.
4753 (x86_64_register_raw_size): Remove function.
4754 (x86_64_register_byte_table): Remove variable.
4755 (x86_64_register_byte): Remove function.
4756 (x86_64_register_virtual_type): Remove function.
4757 (x86_64_register_type): New function.
4758 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4759 x86_64_register_convert_to_raw): Remove functions.
4760 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4761 (x86_64_use_struct_convention): Make static. Adjust for renamed
4763 (x86_64_frame_init_saved_regs): Remove function.
4764 (x86_64_push_arguments): Make static. Change to accept a regcache
4766 (x86_64_store_return_value, x86_64_extract_return_value): Make
4767 static. Rewrite based on i386 counterparts.
4768 (x86_64_push_dummy_call): New function.
4769 (X86_64_NUM_SAVED_REGS): New define.
4770 (x86_64_register_number): Remove function.
4771 (x86_64_store_struct_return): Remove function.
4772 (x86_64_frameless_function_invocation,
4773 x86_64_function_has_prologue): Remove functions.
4774 (PROLOG_BUFSIZE): Remove define.
4775 (struct x86_64_frame_cache): New structure.
4776 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4777 x86_64_frame_cache, x86_64_frame_this_id,
4778 x86_64_frame_prev_register, x86_64_frame_p,
4779 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4780 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4782 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4784 (x86_64_skip_prologue): Rewrite in terms of
4785 x86_64_analyze_prologue.
4786 (x86_64_frame_base_address): New function.
4787 (x86_64_frame_base): New variable.
4788 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4789 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4790 set deprecated_fp_regnum, deprecated_register_size,
4791 deprecated_register_bytes, register_raw_size, register_byte,
4792 register_virtual_type, register_convertiable,
4793 register_convert_to_virtual, convert_to_raw,
4794 deprecated_get_saved_register, deprecated_target_read_fp,
4795 deprecated_push_arguments, deprecated_push_return_address,
4796 deprecated_pop_frame, deprecated_store_struct_return,
4797 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4798 frameless_function_invocation, deprecated_frame_saved_pc,
4799 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4800 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4801 deprecated_init_frame_pc and virtual_frame_pointer. Call
4802 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4803 and x86_64_frame_p. Call frame_base_set_default to register
4805 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4806 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4807 (_initialize_x86_64_tdep): Remove function.
4808 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4809 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4810 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4812 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4813 (x86_64_linux_sigcontext_addr): Rewrite.
4814 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4815 x86_64_linux_frame_saved_pc): Remove functions.
4816 (x86_64_linux_pc_in_sigtramp): Renamed from
4817 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4819 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4821 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4822 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4823 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4824 (x86_64_regmap): Rename to regmap.
4825 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4827 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4829 (x86_64_fxsave_offset): Remove function.
4830 (supply_fpregset): Simply call x86_64_supply_fxsave.
4831 (fill_fpregset): Simply call x86_64_fill_fxsave.
4832 (fetch_inferior_registers, store_inferior_registers): Avoid
4833 asignment in if-statement.
4834 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4835 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4836 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4837 (fetch_core_registers): Remove function.
4838 (linux_elf_core_fns): Remove.
4839 (offsetoff): Don't define.
4840 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4841 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4842 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4844 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4845 protection against multiple includes instead of NM_X86_64_h. Add
4846 various comments. Include "config/nm-linux.h". Don't include
4848 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4849 GET_THREAD_SIGNALS): Remove defines.
4850 (x86_64_register_u_addr, kernel_u_size,
4851 lin_thread_get_thread_signals): Remove prototypes.
4852 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4853 [HAVE_LINK_H]: Don't include "solib.h".
4854 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4855 * config/i386/tm-x86-64linux.h: Fix comments.
4856 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4857 x86-64-tdep.o): Update dependencies.
4859 2003-05-30 Andrew Cagney <cagney@redhat.com>
4861 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4862 Change parameter type to a "struct regcache *".
4864 * gdbarch.sh: Regardless of the multi-arch level, always define
4865 the macro when not already defined.
4866 * gdbarch.h, gdbarch.c: Re-generate.
4868 2003-05-30 Richard Henderson <rth@redhat.com>
4870 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4871 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4872 (alpha_mdebug_frame_this_id): Likewise.
4873 (alpha_mdebug_frame_prev_register): Likewise.
4874 (alpha_mdebug_frame_base_address): Likewise.
4875 (alpha_mdebug_frame_locals_address): Likewise.
4876 (alpha_mdebug_frame_args_address): Likewise.
4877 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4878 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4879 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4881 (alpha_heuristic_frame_this_id): Make static.
4882 (alpha_heuristic_frame_prev_register): Likewise.
4883 (alpha_heuristic_frame_base_address): Likewise.
4884 * alpha-tdep.h: Update.
4886 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4888 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4889 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4891 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4892 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4893 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4894 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4895 I386_ST0_REGNUM): New defines.
4896 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4897 codestream_get): Remove define.
4898 (codestream_next_addr, condestream_addr, condestream_buf,
4899 codestream_off, codestream_cnt): Remove variables.
4900 (codestream_fill, codestream_seek, codestream_read): Remove
4902 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4904 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4905 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4906 i386_frame_saved_pc, i386_saved_pc_after_call,
4907 i386_frame_num_args, i386_frame_init_saved_regs,
4908 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4909 i386_push_arguments): Remove functions.
4910 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4911 functionality. Use i386_analyze_prologue instead of
4912 i386_get_frame_setup.
4913 (I386_NUM_SAVED_REGS): New define.
4914 (struct i386_frame_cache): New structure.
4915 (i386_alloc_frame_cache, i386_analyze_struct_return,
4916 i386_skip_probe, i386_analyze_frame_setup,
4917 i386_analyze_register_saves, i386_analyze_prologue,
4918 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4919 i386_frame_prev_register, i386_sigtramp_frame_cache,
4920 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4921 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4922 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4924 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4926 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4927 I386_EAX_REGNUM and I386_EDX_REGNUM.
4928 (i386_extract_return_value, i386_store_return_value): Use
4929 I386_ST0_REGNUM where appropriate.
4930 (i386_extract_struct_value_address): Rewrite to use extract_address.
4931 (i386_svr4_pc_in_sigtramp): Add comment.
4932 (i386_svr4_sigcontext_addr): Rewrite.
4933 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4935 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4936 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4937 of new defines. Set push_dummy_call, don't set
4938 deprecated_push_arguments, deprecated_push_return_address,
4939 deprecated_pop_frame. Don't set parm_boundary. Don't set
4940 deprecated_frame_chain, deprecated_frame_saved_pc,
4941 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4942 save_dummy_frame_tos, unwind_pc. Call
4943 frame_unwind_append_predicate and frame_base_set_default. Don't
4944 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4945 Don't set frameless_function_invocation. Don't set
4946 deprecated_register_bytes, deprecated_register_size,
4947 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4948 * i386-linux-tdep.c: Fix formatting in some comments.
4949 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4950 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4951 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4952 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4953 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4954 redundant parentheses.
4955 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4956 (i386_linux_sigcontext_addr): Use it. Rewrite.
4957 (find_minsym_and_objfile): Change name of second argument.
4958 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4959 changed. Use frame_pc_unwind instead of
4960 DEPRECATED_SAVED_PC_AFTER_CALL.
4961 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4962 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4963 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4965 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4967 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4968 (_initialize_i386_cygwin_tdep): New prototype.
4969 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4970 deprecated_frame_chain_valid.
4971 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4972 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4973 Rely on the SVR4 defaults.
4974 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4975 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4977 2003-05-30 Andrew Cagney <cagney@redhat.com>
4979 * infcall.c (call_function_by_hand): Always call
4980 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4982 2003-05-30 Richard Henderson <rth@redhat.com>
4984 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4987 2003-05-29 Jim Blandy <jimb@redhat.com>
4989 Use gdbarch methods for solib stuff on PowerPC Linux.
4990 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4991 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4993 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4994 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4995 giving the same effect as the #definitions above.
4997 2003-05-29 Adam Fedor <fedor@gnu.org>
4999 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5000 (find_implementation_from_class): Replace it with the standard
5001 case i.e. do nothing.
5003 2003-05-29 Richard Henderson <rth@redhat.com>
5005 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5006 (alpha_linux_sigtramp_offset): Use it. Make static.
5007 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5008 update for new frame model.
5009 * alpha-mdebug-tdep.c: New file.
5010 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5011 (alpha_osf1_init_abi): Install it.
5012 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5013 (linked_proc_desc_table): Remove.
5014 (alpha_frame_past_sigtramp_frame): Remove.
5015 (alpha_dynamic_sigtramp_offset): Remove.
5016 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5017 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5018 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5019 (push_sigtramp_desc): Remove.
5020 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5021 (alpha_cannot_store_register): Likewise.
5022 (alpha_sigcontext_addr): Remove.
5023 (alpha_find_saved_regs): Remove.
5024 (alpha_frame_init_saved_regs): Remove.
5025 (alpha_init_frame_pc_first): Remove.
5026 (read_next_frame_reg): Remove.
5027 (alpha_frame_saved_pc): Remove.
5028 (alpha_saved_pc_after_call): Remove.
5029 (temp_proc_desc, temp_saved_regs): Remove.
5030 (alpha_about_to_return): Remove.
5031 (cached_proc_desc): Remove.
5032 (alpha_frame_chain): Remove.
5033 (alpha_print_extra_frame_info): Remove.
5034 (alpha_init_extra_frame_info): Remove.
5035 (alpha_frame_locals_address): Remove.
5036 (alpha_frame_args_address): Remove.
5037 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5038 (alpha_push_dummy_frame): Remove.
5039 (alpha_pop_frame): Remove.
5040 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5041 (alpha_read_insn): New.
5042 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5043 for different insn encodings.
5044 (alpha_in_lenient_prologue): Remove.
5045 (struct alpha_sigtramp_unwind_cache): New.
5046 (alpha_sigtramp_frame_unwind_cache): New.
5047 (alpha_sigtramp_register_address): New.
5048 (alpha_sigtramp_frame_this_id): New.
5049 (alpha_sigtramp_frame_prev_register): New.
5050 (alpha_sigtramp_frame_unwind): New.
5051 (alpha_sigtramp_frame_p): New.
5052 (struct alpha_heuristic_unwind_cache): New.
5053 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5054 don't count nop insns that occur between functions.
5055 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5056 heuristic_proc_desc, but without the mdebug wrapping.
5057 (alpha_heuristic_frame_this_id): New.
5058 (alpha_heuristic_frame_prev_register): New.
5059 (alpha_heuristic_frame_unwind): New.
5060 (alpha_heuristic_frame_p): New.
5061 (alpha_heuristic_frame_base_address): New.
5062 (alpha_heuristic_frame_base): New.
5063 (alpha_unwind_dummy_id): New.
5064 (alpha_unwind_pc): New.
5065 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5066 frame related deprecated initializations; install replacements.
5067 (alpha_dump_tdep): Remove.
5068 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5069 (alpha_read_insn, alpha_after_prologue,
5070 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5071 alpha_heuristic_frame_prev_register,
5072 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5073 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5074 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5075 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5077 2003-05-29 Andrew Cagney <cagney@redhat.com>
5079 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5080 dependant on the availability of ASSERT_FUNCTION.
5081 (ASSERT_FUNCTION): Do not define when there is no function name.
5083 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5085 From Jimi X <jimix@watson.ibm.com>:
5086 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5088 2003-05-28 Jim Blandy <jimb@redhat.com>
5090 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5091 argument to ptrace to int; the system headers should give it the
5092 right type, and pointers don't fit in ints on powerpc64-*-*.
5094 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5096 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5099 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5101 * stabsread.c (dbx_lookup_type): Make static.
5103 (add_undefined_type): Ditto.
5104 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5107 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5109 * hpread.c (hpread_has_name): Make static.
5110 (hpread_psymtab_to_symtab): Ditto.
5111 (file_exists): Ditto.
5112 (hpread_call_pxdb): Ditto.
5113 (hpread_pxdb_needed): Ditto.
5114 (hpread_quick_traverse): Ditto.
5115 (hpread_get_header): Ditto.
5116 (hpread_get_lntt): Ditto.
5117 (hpread_get_slt): Ditto.
5120 2003-05-25 Andreas Schwab <schwab@suse.de>
5122 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5123 stack_align and deprecated_extra_stack_alignment_needed.
5124 (m68k_stack_align): Delete.
5126 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5127 (m68k_register_virtual_size): Likewise.
5128 (altos_skip_prologue): Remove obsolete function.
5129 (isi_frame_num_args): Likewise.
5130 (news_frame_num_args): Likewise.
5131 (m68k_fix_call_dummy): Make static.
5132 (m68k_push_dummy_frame): Likewise.
5133 (m68k_pop_frame): Likewise.
5134 (m68k_skip_prologue): Likewise.
5135 (m68k_frame_init_saved_regs): Likewise.
5136 (m68k_saved_pc_after_call): Likewise.
5137 (m68k_get_longjmp_target): Make multi-arch.
5138 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5139 structure. Register m68k_get_longjmp_target if enabled.
5140 * m68k-tdep.h (struct gdbarch_tdep): Define.
5141 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5143 * Makefile.in (config.status): Also depend on configure.tgt
5145 (m68klinux-tdep.o): Update dependencies.
5146 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5147 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5148 (M68K_LINUX_JB_PC): Define.
5149 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5150 and take additional parameter.
5151 (m68k_linux_sigtramp_saved_pc): Update.
5152 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5153 m68k_linux_pc_in_sigtramp, in_plt_section,
5154 find_solib_trampoline_target.
5155 * config/m68k/tm-linux.h: Don't include any tm headers.
5156 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5157 (JB_ELEMENT_SIZE): Likewise.
5159 (GET_LONGJMP_TARGET): Likewise.
5160 (IN_SIGTRAMP): Likewise.
5161 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5163 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5165 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5166 (sparc32_push_arguments): Re-implement by calling
5167 sparc32_do_push_arguments.
5169 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5171 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5172 SPARC_O1_REGNUM): New defines.
5173 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5174 (sparc32_store_return_value): New function.
5175 (sparc_extract_struct_value_address): Rewrite to operate on a
5177 (sparc_gdbarch_init): Don't set
5178 deprecated_extract_struct_value_address. Set
5179 extract_struct_value_address instead. Don't set
5180 deprecated_extract_return_value and deprecated_store_return_value
5181 for 32-bit targets. Set extract_return_value and
5182 store_return_value instead.
5183 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5184 DEPRECTAED_EXTRACT_RETURN_VALUE,
5185 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5186 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5187 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5188 (sparc_store_return_value): Remove prototype.
5189 (sparc32_store_return_value): New prototype.
5190 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5193 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5195 * sparcnbsd-tdep.c: Include "gdb_string.h".
5197 2003-05-23 Andrew Cagney <cagney@redhat.com>
5199 * p-valprint.c (pascal_val_print): Replace extract_address with
5200 the inline equivalent extract_unsigned_integer.
5201 * jv-valprint.c (java_value_print): Ditto.
5202 * ada-valprint.c (ada_val_print_1): Ditto.
5203 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5205 2003-05-23 Theodore A. Roth <troth@openavr.org>
5207 * blockframe.c (frameless_look_for_prologue): Remove unused
5208 after_prologue variable.
5210 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5212 * blockframe.c (get_pc_function_start): Rewrite to avoid
5213 asignments in if-statements.
5215 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5217 Committed by Elena Zannoni <ezannoni@redhat.com>.
5218 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5219 files, don't relocate absolute symbols (and do use mst_abs).
5221 2003-05-23 Andrew Cagney <cagney@redhat.com>
5223 * objc-lang.c: Include "gdb_assert.h".
5224 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5225 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5226 (gdb_check, gdb_check_fatal): Delete functions.
5227 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5229 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5230 * Makefile.in (objc-lang.o): Update dependencies.
5232 2003-05-22 Ian Lance Taylor <ian@airs.com>
5234 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5235 with fprintf_filtered, not fprintf_unfiltered.
5237 2003-05-22 Andrew Cagney <cagney@redhat.com>
5239 * stack.c (frame_info): Inline extract_address, replacing it with
5240 extract_unsigned_integer.
5241 * findvar.c (unsigned_pointer_to_address): Ditto.
5242 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5243 * dwarf2expr.c (dwarf2_read_address): Ditto.
5244 * frame.c (frame_pc_unwind): Update comment.
5245 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5247 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5249 * infptrace.c (detach): Call print_sys_errmsg rather than
5250 perror_with_name to issue warning message when errno is non-zero
5251 after calling ptrace detach.
5253 2003-05-21 J. Brobecker <brobecker@gnat.com>
5255 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5256 macro definitions from here...
5257 * hppa-tdep.c: ...to there.
5259 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5261 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5262 register_ptrace_addr(). Fix all callers.
5264 2003-05-21 Andreas Schwab <schwab@suse.de>
5266 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5268 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5270 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5271 (_initialize_m68k_linux_tdep): New function.
5272 (m68k_linux_frame_saved_pc): Make static.
5273 (m68k_linux_extract_return_value): Likewise.
5274 (m68k_linux_store_return_value): Likewise.
5275 (m68k_linux_extract_struct_value_address): Likewise.
5276 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5278 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5279 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5280 (DEPRECATED_FRAME_SAVED_PC): Remove.
5282 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5284 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5285 regset numbering rather than our own.
5287 2003-05-19 David Carlton <carlton@bactrian.org>
5289 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5291 2003-05-19 David Carlton <carlton@bactrian.org>
5293 Partial fix for PR c++/827.
5294 * cp-support.h: Include symtab.h.
5295 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5296 * cp-namespace.c: Update contributors.
5297 (cp_lookup_symbol_nonlocal): New.
5298 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5299 (lookup_symbol_file): Ditto.
5300 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5301 * block.h: Declare block_scope, block_using, block_global_block.
5302 * block.c (block_scope): New.
5303 (block_using, block_global_block): Ditto.
5304 * Makefile.in (cp_support_h): Depend on symtab_h.
5305 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5307 2003-05-19 David Carlton <carlton@bactrian.org>
5309 * language.h (struct language_defn): Add 'la_value_of_this'
5310 and 'la_lookup_symbol_nonlocal' members.
5311 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5312 lookup_symbol_static, lookup_symbol_global,
5313 lookup_symbol_aux_block.
5314 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5315 if we should search fields of this and how to do static/global
5317 (lookup_symbol_aux_block): Make extern.
5318 (basic_lookup_symbol_nonlocal): New.
5319 (lookup_symbol_static, lookup_symbol_global): Ditto.
5320 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5321 'la_lookup_symbol_nonlocal' members.
5322 * c-lang.c (c_language_defn, cplus_language_defn)
5323 (asm_language_defn, minimal_language_defn): Ditto.
5324 * jv-lang.c (java_language_defn): Ditto.
5325 * language.c (unknown_language_defn, auto_language_defn)
5326 (local_language_defn): Ditto.
5327 * m2-lang.c (m2_language_defn): Ditto.
5328 * objc-lang.c (objc_language_defn): Ditto.
5329 * scm-lang.c (scm_language_defn): Ditto.
5330 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5331 * p-lang.c (pascal_language_defn): Ditto for both.
5332 * Makefile.in (f-lang.o): Depend on value_h.
5335 2003-05-19 David Carlton <carlton@bactrian.org>
5337 * block.h: Declare block_static_block.
5338 * block.c (block_static_block): New.
5339 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5340 lookup_symbol_aux_local, calling block_static_block instead.
5341 (lookup_symbol_aux_local): Delete 'static_block' argument.
5343 2003-05-19 David Carlton <carlton@bactrian.org>
5345 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5347 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5349 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5350 register numbers mapping.
5352 2003-05-18 Adam Fedor <fedor@gnu.org>
5354 * symtab.c (completion_list_objc_symbol): New function.
5355 (make_symbol_completion_list): Use it to add ObjC symbols
5356 when looking though the list.
5357 (language_search_unquoted_string): New function.
5358 (make_file_symbol_completion_list): Use it.
5360 2003-05-18 Andreas Schwab <schwab@suse.de>
5362 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5364 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5365 as m68k_linux_extract_return_value.
5366 (DEPRECATED_STORE_RETURN_VALUE): Define as
5367 m68k_linux_store_return_value.
5368 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5369 m68k_linux_extract_struct_value_address.
5370 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5371 get_next_frame, get_frame_base, get_frame_pc.
5372 (m68k_linux_frame_saved_pc): Use get_frame_base.
5373 (m68k_linux_extract_return_value): New function.
5374 (m68k_linux_store_return_value): New function.
5375 (m68k_linux_extract_struct_value_address): New function.
5376 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5378 * c-exp.y (typebase): Remove duplicate occurence of
5379 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5380 of lookup_signed_typename.
5382 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5384 * dwarf2loc.c (find_location_expression): Change type of second
5385 argument to `size_t *'.
5386 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5389 2003-05-18 David Carlton <carlton@bactrian.org>
5391 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5392 'linkage_name'. Add comment.
5393 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5395 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5396 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5397 (lookup_block_symbol): Ditto.
5399 2003-05-16 Andrew Cagney <cagney@redhat.com>
5401 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5402 * gdbarch.h, gdbarch.c: Re-generate.
5403 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5404 * TODO (REGISTER_BYTES): Delete reference.
5405 * alpha-tdep.c (alpha_gdbarch_init): Update.
5406 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5407 * x86-64-tdep.c (x86_64_init_abi): Update.
5408 * vax-tdep.c (vax_gdbarch_init): Update.
5409 * v850-tdep.c (v850_gdbarch_init): Update.
5410 * sparc-tdep.c (sparc_gdbarch_init): Update.
5411 * sh-tdep.c (sh_gdbarch_init): Update.
5412 * s390-tdep.c (s390_gdbarch_init): Update.
5413 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5414 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5415 (ns32k_gdbarch_init_32382): Update.
5416 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5417 * mcore-tdep.c (mcore_gdbarch_init): Update.
5418 * m68k-tdep.c (m68k_gdbarch_init): Update.
5419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5420 * ia64-tdep.c (ia64_gdbarch_init): Update.
5421 * i386-tdep.c (i386_gdbarch_init): Update.
5422 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5423 * hppa-tdep.c (hppa_gdbarch_init): Update.
5424 * h8300-tdep.c (h8300_gdbarch_init): Update.
5425 * frv-tdep.c (frv_gdbarch_init): Update.
5426 * cris-tdep.c (cris_gdbarch_init): Update.
5427 * avr-tdep.c (avr_gdbarch_init): Update.
5428 * arm-tdep.c (arm_gdbarch_init): Update.
5429 * sparc-tdep.c (sparc_pop_frame): Update.
5430 * rs6000-tdep.c (rs6000_pop_frame): Update.
5431 * remote.c (init_remote_state): Update.
5432 (remote_prepare_to_store): Update.
5433 * remote-vx.c (vx_prepare_to_store): Update.
5434 * remote-sds.c (sds_fetch_registers): Update.
5435 (sds_prepare_to_store): Update.
5436 * remote-array.c: Update.
5437 * regcache.c (init_legacy_regcache_descr): Update.
5438 (init_regcache_descr): Update.
5439 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5440 (mips_o64_extract_return_value): Update.
5441 * irix5-nat.c (fetch_core_registers): Update.
5442 * irix4-nat.c (fetch_core_registers): Update.
5443 * i386-tdep.h: Update.
5444 * hppa-tdep.c (pa_do_registers_info): Update.
5445 (pa_do_strcat_registers_info): Update.
5446 * cris-tdep.c (cris_register_bytes_ok): Update.
5447 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5448 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5449 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5450 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5451 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5452 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5453 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5454 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5455 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5456 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5457 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5458 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5459 (REGISTER_BYTES_OK): Update.
5460 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5461 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5463 2003-05-16 Ian Lance Taylor <ian@airs.com>
5465 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5466 (vax_print_insn, print_insn_arg): Remove static functions.
5467 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5468 print_insn_vax from opcodes library.
5469 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5471 2003-05-15 Andrew Cagney <cagney@redhat.com>
5473 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5474 * target.h (memory_breakpoint_from_pc): Delete declaration.
5475 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5476 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5477 * monitor.c (monitor_insert_breakpoint): Use
5478 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5479 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5480 * gdbarch.h, gdbarch.c: Re-generate.
5481 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5482 (sparc_gdbarch_init): Set breakpoint_from_pc to
5483 sparc_breakpoint_from_pc.
5484 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5485 (BREAKPOINT_FROM_PC): Define.
5486 (sparc_breakpoint_from_pc): Declare.
5487 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5488 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5489 (BREAKPOINT_FROM_PC): Define.
5490 (BREAKPOINT): Delete macro.
5491 * target.h: Update comment.
5492 * s390-tdep.c (s390_gdbarch_init): Update comments.
5493 * remote.c: Update comments.
5494 * remote-mips.c: Update comments.
5495 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5496 * mem-break.c: Update comment.
5497 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5498 (ia64_memory_insert_breakpoint): Update.
5499 * config/sparc/tm-sparc.h: Update comment.
5500 * config/pa/tm-hppa64.h: Update comment.
5501 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5502 (rs6000_breakpoint_from_pc): Update.
5503 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5504 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5505 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5506 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5507 (mips_breakpoint_from_pc): Update.
5508 (mips_dump_tdep): Update.
5510 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5511 * minsyms.c (lookup_minimal_symbol): Inline
5512 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5514 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5515 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5516 * p-lang.c (pascal_printstr): Ditto.
5517 * objc-lang.c (objc_printstr): Ditto.
5518 * m2-lang.c (m2_printstr): Ditto.
5519 * jv-valprint.c (java_print_value_fields): Ditto.
5520 * f-lang.c (f_printstr): Ditto.
5521 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5522 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5523 for repeat_count_threshold.
5524 * Makefile.in (cp-valprint.o): Update dependencies.
5526 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5528 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5529 (examine_prologue): Support looking through leaf functions, knowing
5530 they start with mov r2,r12. Support skipping over indirect stores
5531 of the input registers. Upon hitting a non-nop branch instruction
5532 or predicated instruction, bail out by setting lim_pc to the current
5533 pc value in the loop. At the end, if the lim_pc value is still
5534 beyond our calculated value and we have trust_limit set,
5535 use the lim_pc value.
5537 2003-05-15 Andrew Cagney <cagney@redhat.com>
5539 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5540 generic_find_dummy_frame.
5541 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5542 (deprecated_generic_find_dummy_frame): Update.
5543 (deprecated_read_register_dummy): Update.
5544 * frame.c (deprecated_generic_get_saved_register): Update.
5546 2003-05-15 Theodore A. Roth <troth@openavr.org>
5548 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5549 (avr_gdbarch_init): Set breakpoint_from_pc method.
5551 2003-05-15 Andrew Cagney <cagney@redhat.com>
5553 * regcache.c (build_regcache): Set deprecated_register_valid
5555 (deprecated_grub_regcache_for_register_valid): Delete function.
5556 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5559 2003-05-15 David Carlton <carlton@bactrian.org>
5561 Committed by Elena Zannoni <ezannoni@redhat.com>
5562 * symtab.c (lookup_symbol_aux): Delete calls to
5563 lookup_symbol_aux_minsyms.
5564 (lookup_symbol_aux_minsyms): Comment out function and
5565 prototype. Delete lookup by mangled name.
5567 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5569 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5570 correctly indicate an empty stack and ``stack_allocated'' to the
5571 indicate the number of elements initially allocated.
5572 (dwarf_expr_grow_stack): Simplify method for computing new
5573 stack size. Don't loop infinitely if ``stack_len'' is zero.
5574 (execute_stack_op): Move ``ctx->in_reg'' initialization
5575 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5576 be used in conjuction with DW_OP_piece. Revise error message
5579 2003-05-14 Theodore A. Roth <troth@openavr.org>
5581 * MAINTAINERS: Update my email address.
5582 * avr-tdep.c: Ditto.
5584 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5586 * symtab.h (enum domain_enum): Rename from namespace_enum.
5587 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5588 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5589 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5590 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5591 TYPES_NAMESPACE, METHODS_NAMESPACE.
5592 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5593 (struct symbol, struct partial_symbol): Rename field
5594 'namespace_enum namespace' to 'domain_enum domain'.
5595 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5596 Delete old define kludge for namespace.
5598 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5599 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5600 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5601 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5602 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5603 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5604 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5605 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5606 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5607 occurrences of the above.
5609 2003-05-14 Ian Lance Taylor <ian@airs.com>
5611 * Makefile.in (install-only): Use $(SHELL) when running
5614 2003-05-13 Ian Lance Taylor <ian@airs.com>
5616 * MAINTAINERS (write after approval): Add myself.
5618 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5619 second and third arguments.
5620 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5621 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5623 2003-05-13 Andrew Cagney <cagney@redhat.com>
5625 * defs.h (store_address): Delete declaration.
5626 findvar.c (store_address): Delete function.
5627 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5628 store_unsigned_integer.
5629 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5630 * v850-tdep.c (v850_push_arguments): Ditto.
5631 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5632 * sh-tdep.c (sh64_get_saved_register): Ditto.
5633 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5634 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5635 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5636 (mips_get_saved_register): Ditto.
5637 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5638 (find_func_descr, ia64_push_arguments): Ditto.
5639 * i386-tdep.c (i386_push_arguments): Ditto.
5640 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5641 * frv-tdep.c (frv_push_arguments): Ditto.
5642 * frame.c (legacy_saved_regs_prev_register): Ditto.
5643 (deprecated_generic_get_saved_register): Ditto.
5644 * findvar.c (unsigned_address_to_pointer): Ditto.
5645 * dwarf2read.c (dwarf2_const_value): Ditto.
5646 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5647 * alpha-tdep.c (alpha_push_arguments): Ditto.
5649 2003-05-12 J. Brobecker <brobecker@gnat.com>
5651 * NEWS: Mention that the hppa-hpux port has been partially
5652 multiarched (32bit ABIT only, so far).
5654 2003-05-11 Andrew Cagney <cagney@redhat.com>
5656 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5657 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5658 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5659 sim/testsuite/sim/arm/misaligned2.ms, and
5660 sim/testsuite/sim/arm/misaligned3.ms.
5661 * disasm.h (struct ui_file): Add opaque struct declaration.
5662 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5663 * frame.h (struct ui_file): Ditto.
5665 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5667 * value.h: Pretty print.
5669 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5671 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5673 2003-05-08 Andrew Cagney <cagney@redhat.com>
5675 * regcache.h (max_register_size): Delete declaration.
5676 * regcache.c (max_register_size): Delete function.
5677 (struct regcache_descr): Delete field "max_register_size".
5678 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5679 registers fit in MAX_REGISTER_SIZE.
5680 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5681 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5682 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5683 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5684 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5685 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5686 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5687 * dve3900-rom.c, hppa-tdep.c: Ditto.
5689 2003-05-08 David Carlton <carlton@math.stanford.edu>
5691 * valops.c (push_word): Fix typo.
5693 2003-05-08 Andrew Cagney <cagney@redhat.com>
5695 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5696 * gdbarch.h: Re-generate.
5697 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5698 (legacy_max_register_raw_size): Delete declaration.
5699 * regcache.c (legacy_max_register_raw_size): Delete function.
5700 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5701 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5702 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5703 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5704 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5705 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5706 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5707 * findvar.c, dwarf2cfi.c: Ditto.
5709 2003-05-08 Andrew Cagney <cagney@redhat.com>
5711 * mips-tdep.c (read_signed_register): New function, moved to here
5713 (read_signed_register_pid): Ditto.
5714 * regcache.c (read_signed_register_pid): Delete function, moved to
5716 (read_signed_register): Ditto.
5717 * regcache.h (read_signed_register): Delete declaration.
5718 (read_signed_register_pid): Delete declaration.
5720 2003-05-08 Andrew Cagney <cagney@redhat.com>
5722 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5723 * gdbarch.h: Re-generate.
5724 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5725 (legacy_max_register_virtual_size): Delete declaration.
5726 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5727 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5728 * tracepoint.c (memrange_sortmerge): Ditto.
5729 * sparc-tdep.c (sparc_print_registers): Ditto.
5730 * regcache.c (legacy_max_register_virtual_size): Delete function.
5732 2002-05-08 J. Brobecker <brobecker@gnat.com>
5734 * fork-child.c (escape_bang_in_quoted_argument): New function.
5735 (fork_inferior): Escape '!' characters in quoted arguments
5738 2003-05-08 J. Brobecker <brobecker@gnat.com>
5740 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5741 the language of the CU is not currently supported by GDB.
5743 2003-05-08 J. Brobecker <brobecker@gnat.com>
5745 * defs.h (language): Add language_minimal enum value.
5746 * c-lang.c (minimal_language_defn): New language definition.
5747 (_initialize_c_language): Add the new minimal language to the list
5748 of languages known to GDB.
5750 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5752 * frame.c (get_frame_type): Don't attempt to lazily initialize
5753 frame's unwinder for legacy frames.
5755 2003-05-07 Andrew Cagney <cagney@redhat.com>
5757 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5758 and "regcache" parameters.
5759 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5761 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5763 * dwarf2read.c (dwarf_decode_lines): Only use output of
5764 check_cu_functions() when calling record_line(). Do not update
5765 the current address.
5767 2003-05-07 Andrew Cagney <cagney@redhat.com>
5769 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5772 2003-05-07 Jim Blandy <jimb@redhat.com>
5774 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5775 'maint info symtabs' and 'maint info psymtabs'.
5776 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5777 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5778 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5779 Declarations updated.
5780 * maint.c (maintenance_list_command): Delete.
5781 (_initialize_maint_cmds): Update calls to add_cmd.
5782 * gdbcmd.h (maintenancelistlist): Delete declaration.
5783 * cli/cli-cmds.c (maintenancelistlist): Delete.
5784 (init_cmd_lists): Don't initialize it.
5785 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5787 2003-05-07 Andrew Cagney <cagney@redhat.com>
5789 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5791 (d10v_print_registers_info): Update.
5792 (d10v_dmap_register, d10v_imap_register): Delete functions.
5793 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5794 and "imap_register".
5795 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5796 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5797 * arch-utils.c (generic_remote_translate_xfer_address): Add
5798 "regcache" and "gdbarch" parameters.
5799 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5800 parameter. Change class to multi-arch.
5801 * gdbarch.h, gdbarch.c: Re-generate.
5802 * remote.c (remote_xfer_memory): Use
5803 gdbarch_remote_translate_xfer_address.
5805 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5807 * infrun.c (prev_pc): Move declaration ahead of proceed().
5808 (proceed): Refresh prev_pc value before resuming.
5809 (stop_stepping): Remove code to refresh prev_pc.
5811 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5813 * nto-tdep.c: Removed stray comment.
5815 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5817 * i386-nto-tdep.c: Fix old K&R function definitions.
5818 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5819 Also change add_show_from_set() call to add_setshow_cmd().
5820 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5822 2003-05-05 Andrew Cagney <cagney@redhat.com>
5824 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5825 (fprint_dummy_frames): New function.
5826 (maintenance_print_dummy_frames): New function.
5827 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5828 * frame.c (fprint_frame_id): Make global.
5829 * frame.h (fprint_frame_id): Declare.
5830 * Makefile.in (dummy-frame.o): Update dependencies.
5832 2003-05-05 Andrew Cagney <cagney@redhat.com>
5834 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5835 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5836 SIZEOF_CALL_DUMMY_WORDS.
5837 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5838 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5839 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5840 CALL_DUMMY_BREAKPOINT_OFFSET.
5841 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5842 CALL_DUMMY_START_OFFSET.
5843 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5844 * gdbarch.h, gdbarch.c: Re-generate.
5845 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5846 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5847 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5848 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5849 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5850 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5851 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5852 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5853 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5854 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5855 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5856 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5857 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5858 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5859 * config/sparc/tm-sparc.h: Update.
5861 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5863 * configure.tgt: Add i[3456]86-*-nto*.
5864 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5865 * nto-tdep.c: New file. Neutrino target support routines.
5866 * nto-tdep.h: New file. Neutrino target header.
5867 * config/tm-qnxnto.h: New file.
5868 * config/i386/i386nto.mt: New file.
5869 * config/i386/tm-i386nto.h: New file.
5871 2003-05-04 Andrew Cagney <cagney@redhat.com>
5873 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5874 (load_infrun_state): Ditto.
5875 (struct thread_info): Drop "prev_func_name" field.
5876 * thread.c (load_infrun_state): Update.
5877 (save_infrun_state): Update.
5878 * infrun.c (prev_func_name): Delete variable.
5879 (init_wait_for_inferior): Do not clear prev_func_name.
5880 (stop_stepping, keep_going, context_switch): Do not swap
5882 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5883 instead of PC_IN_SIGTRAMP.
5885 2003-05-04 Andrew Cagney <cagney@redhat.com>
5887 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5888 REGISTER_BYTE with register_offset_hack.
5889 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5890 that REGISTER_BYTE is consistent with the regcache.
5891 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5892 * gdbarch.h, gdbarch.c: Regenerate.
5894 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5896 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5897 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5899 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5901 2003-05-03 J. Brobecker <brobecker@gnat.com>
5903 From Thierry Schneider <tpschneider1@yahoo.com>
5904 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5905 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5906 (mi-cmd-symbol.o): Add rule.
5908 2003-05-03 Andrew Cagney <cagney@redhat.com>
5910 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5911 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5912 * gdbarch.h, gdbarch.c: Re-generate.
5913 * d10v-tdep.c (d10v_push_dummy_code): New function.
5914 (d10v_gdbarch_init): Set push_dummy_code.
5915 * infcall.c (legacy_push_dummy_code): New function.
5916 (generic_push_dummy_code): New function.
5917 (push_dummy_code): New function.
5918 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5919 instead of dummy_addr, to push_dummy_call. Move call to
5920 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5922 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5924 2003-05-03 Andrew Cagney <cagney@redhat.com>
5926 * disasm.h (print_insn): Declare.
5927 * disasm.c (init_gdb_disassemble_info): New function.
5928 (gdb_disassembly): Call init_gdb_disassemble_info.
5929 (gdb_print_insn): New function.
5930 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5931 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5932 * mcore-tdep.c: Include "disasm.h"
5933 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5934 * d10v-tdep.c: Include "disasm.h".
5935 (display_trace): Call gdb_print_insn, instead of print_insn.
5936 (print_insn): Delete function.
5937 * printcmd.c: Include "disasm.h".
5938 (print_insn): Delete function.
5939 (print_formatted): Call gdb_print_insn, instead of print_insn.
5940 * Makefile.in (printcmd.o): Update dependencies.
5941 (mcore-tdep.o, d10v-tdep.o): Ditto.
5943 2003-05-02 Andrew Cagney <cagney@redhat.com>
5945 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5946 PC_REGNUM, re-indent.
5947 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5948 PC_REGNUM isn't set.
5950 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5951 * gdbarch.h, gdbarch.c: Re-generate.
5952 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5953 register_virtual_size, pc_regnum, or register_bytes.
5954 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5955 (d10v_register_type): Use D10V_PC_REGNUM.
5956 (d10v_print_registers_info, d10v_read_pc): Ditto.
5957 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5958 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5960 2003-05-02 David Carlton <carlton@bactrian.org>
5962 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5963 the name with mstrsave.
5965 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5967 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5968 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5969 (host_charset_name, target_charset_name): New vars for use by
5971 (host_charset_enum, target_charset_enum): New enums for set/show
5973 (set_charset_sfunc, set_host_charset_sfunc,
5974 set_target_charset_sfunc): New functions.
5975 (set_host_charset, set_target_charset): Make static.
5976 (list_charsets, set_host_charset_command,
5977 set_target_charset_command): Delete functions.
5978 (show_charset_command): Rewrite as....
5979 (show_charset): Hook this up with the set/show command mechanism.
5980 (_initialize_charset): Change names of charsets to match the
5981 set/show enums. Use host_charset_name and target_charset_name.
5982 Use set/show mechanism for charset, host-charset, target-charset
5983 commands. Do not make 'show host-charset' and 'show
5984 target-charset' be aliases of 'show charset'.
5986 * charset.h (set_host_charset, set_target_charset): Don't export,
5987 they are not used outside the file.
5989 2003-05-01 Andrew Cagney <cagney@redhat.com>
5991 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5992 (gdb_disassembly): Make "di" non static, always initialize and
5993 cleanup. Always use dis_asm_read_memory.
5994 (gdb_dis_asm_read_memory): Delete function.
5996 2003-05-01 Andrew Cagney <cagney@redhat.com>
5998 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5999 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6001 2003-04-30 Andrew Cagney <cagney@redhat.com>
6003 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6004 "tm_print_insn_info".
6005 (TARGET_PRINT_INSN_INFO): Delete macro.
6006 (dis_asm_read_memory): Delete function declaration.
6007 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6008 (tm_print_insn_info): Delete variable definition.
6009 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6010 * gdbarch.h, gdbarch.c: Re-generate.
6011 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6012 "deprecated_tm_print_insn_info".
6013 * mcore-tdep.c (mcore_dump_insn): Ditto.
6014 * mips-tdep.c (mips_gdbarch_init): Ditto.
6015 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6016 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6017 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6018 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6019 instead of TARGET_PRINT_INSN_INFO, add comment.
6020 * s390-tdep.c (s390_get_frame_info): Instead of
6021 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6022 (s390_check_function_end, s390_is_sigreturn): Ditto.
6023 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6024 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6025 * disasm.c: Include "gdbcore.h".
6026 (_initialize_disasm): New function, initialize
6027 "deprecated_tm_print_insn_info".
6028 (deprecated_tm_print_insn_info): New variable.
6029 (dis_asm_read_memory): Moved from "corefile.c", made static.
6030 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6031 * Makefile.in (disasm.o): Update dependencies.
6033 2003-04-30 Andrew Cagney <cagney@redhat.com>
6035 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6037 2003-04-29 Adam Fedor <fedor@gnu.org>
6039 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6040 * infcall.c (find_function_addr): Make non-static.
6041 * infcall.h (find_function_addr): Declare.
6042 * Makefile.in (eval.o): Update dependencies.
6044 2003-04-28 Adam Fedor <fedor@gnu.org>
6046 * symtab.c (symbol_find_demangled_name): Check for and demangle
6048 (symbol_init_demangled_name): Init for language_objc as well.
6050 2003-04-28 Andrew Cagney <cagney@redhat.com>
6052 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6053 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6054 * gdbarch.h, gdbarch.c: Re-generate.
6055 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6056 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6057 * inferior.h (deprecated_read_fp): Rename read_fp.
6058 (generic_target_read_fp): Delete declaration.
6059 * regcache.c (generic_target_read_fp): Delete function.
6060 (deprecated_read_fp): Replace read_fp, use
6061 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6062 * d10v-tdep.c (d10v_read_fp): Delete function.
6063 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6065 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6066 deprecated_target_read_fp to generic_target_read_fp.
6067 * sh-tdep.c (sh_gdbarch_init): Ditto.
6068 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6069 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6070 * frv-tdep.c (frv_gdbarch_init): Ditto.
6072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6073 deprecated_fp_regnum.
6074 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6075 * vax-tdep.c (vax_gdbarch_init): Ditto.
6076 * v850-tdep.c (v850_gdbarch_init): Ditto.
6077 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6078 * sh-tdep.c (sh_gdbarch_init): Ditto.
6079 * s390-tdep.c (s390_gdbarch_init): Ditto.
6080 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6081 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6082 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6083 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6085 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6086 * i386-tdep.c (i386_gdbarch_init): Ditto.
6087 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6088 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6089 * frv-tdep.c (frv_gdbarch_init): Ditto.
6090 * cris-tdep.c (cris_gdbarch_init): Ditto.
6091 * avr-tdep.c (avr_gdbarch_init): Ditto.
6092 * arm-tdep.c (arm_gdbarch_init): Ditto.
6093 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6095 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6096 * v850-tdep.c (v850_gdbarch_init): Ditto.
6097 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6098 * sh-tdep.c (sh_gdbarch_init): Ditto.
6099 * s390-tdep.c (s390_gdbarch_init): Ditto.
6100 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6101 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6102 * mips-tdep.c (mips_gdbarch_init): Ditto.
6103 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6104 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6105 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6106 * frv-tdep.c (frv_gdbarch_init): Ditto.
6107 * avr-tdep.c (avr_gdbarch_init): Ditto.
6108 * arm-tdep.c (arm_gdbarch_init): Ditto.
6110 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6111 DEPRECATED_FP_REGNUM.
6112 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6113 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6114 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6115 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6116 (sparc32_register_virtual_type): Ditto.
6117 * sh-tdep.c (sh64_frame_chain): Ditto.
6118 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6119 (sh_nofp_frame_init_saved_regs): Ditto.
6120 (sh64_nofp_frame_init_saved_regs): Ditto.
6121 (sh_fp_frame_init_saved_regs): Ditto.
6122 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6123 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6124 * procfs.c (procfs_fetch_registers): Ditto.
6125 (procfs_store_registers): Ditto.
6126 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6127 (store_inferior_registers, fetch_core_registers): Ditto.
6128 (fetch_kcore_registers, clear_regs): Ditto.
6129 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6130 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6131 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6132 * nlm/i386.c (do_status): Ditto.
6133 * mipsv4-nat.c (supply_gregset): Ditto.
6134 * mips-tdep.c: Ditto for comments.
6135 * mips-nat.c (fetch_inferior_registers): Ditto.
6136 (store_inferior_registers, fetch_core_registers): Ditto.
6137 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6138 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6139 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6140 (i386_do_pop_frame, i386_register_type): Ditto.
6141 * hppa-tdep.c (hppa_frame_chain): Ditto.
6142 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6143 (hppa_pop_frame, hppa_read_fp): Ditto.
6144 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6145 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6146 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6147 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6148 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6149 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6150 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6151 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6152 * blockframe.c: Ditto for comments.
6153 * arch-utils.h: Ditto for comments.
6154 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6155 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6156 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6157 * alpha-tdep.h: Ditto for comments.
6158 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6159 (alpha_cannot_store_register): Ditto.
6160 (alpha_push_dummy_frame): Ditto.
6161 * alpha-nat.c (supply_gregset): Ditto.
6163 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6164 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6165 * config/sparc/tm-sparc.h: Update comment.
6167 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6168 deprecated_read_fp instead of TARGET_READ_FP.
6169 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6170 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6171 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6172 deprecated_read_fp instead of read_fp.
6173 * s390-tdep.c (s390_push_arguments): Ditto.
6174 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6175 * frame.h: Ditto in comments.
6176 * frame.c (legacy_get_prev_frame): Ditto.
6177 * dummy-frame.c (dummy_frame_this_id): Ditto.
6178 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6180 2003-04-28 Andrew Cagney <cagney@redhat.com>
6182 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6183 * gdbarch.h, gdbarch.c: Re-generate.
6184 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6185 * vax-tdep.c (_initialize_vax_tdep): Update.
6186 * v850-tdep.c (_initialize_v850_tdep): Update.
6187 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6188 * s390-tdep.c (_initialize_s390_tdep): Update.
6189 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6190 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6191 * mips-tdep.c (_initialize_mips_tdep): Update.
6192 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6193 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6194 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6195 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6196 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6197 * frv-tdep.c (_initialize_frv_tdep): Update.
6198 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6199 (_initialize_cris_tdep): Update.
6200 * arch-utils.c (legacy_print_insn): Update.
6201 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6203 2003-04-26 Adam Fedor <fedor@gnu.org>
6205 * linespec.c (decode_objc): New function to decode ObjC calls
6206 (decode_line_1): Check for ObjC calls (using decode_objc)
6207 * Makefile (linespec.o): Update dependencies.
6209 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6211 * breakpoint.h (struct breakpoint_ops): New.
6212 (struct breakpoint): Add ops member.
6214 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6215 (mention): Use new breakpoint ops member.
6216 (set_raw_breakpoint): Initialize ops field to NULL.
6217 (print_exception_catchpoint, print_one_exception_catchpoint)
6218 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6219 (gnu_v3_exception_catchpoint_ops): New.
6220 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6222 2003-04-25 Adam Fedor <fedor@gnu.org>
6224 * Makefile.in (COMMON_OBS): Add objc-lang.o
6226 2003-04-25 Andrew Cagney <cagney@redhat.com>
6228 * d10v-tdep.c (print_insn): Delete function.
6229 (display_trace): Use TARGET_PRINT_INSN.
6230 (_initialize_d10v_tdep): Do not set tm_print_insn.
6231 (d10v_gdbarch_init): Set print_insn.
6233 2003-04-25 Andrew Cagney <cagney@redhat.com>
6235 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6236 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6237 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6238 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6239 (nr_dmap_regs, a0_regnum): ... new functions.
6240 (d10v_print_registers_info): Use a0_regnum, use register_size.
6241 (d10v_register_byte): Delete function.
6242 (d10v_register_raw_size): Delete function.
6243 (d10v_register_type): Use a0_regnum.
6244 (d10v_print_registers_info): Use a0_regnum.
6245 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6246 (d10v_gdbarch_init): Do not set register_byte or
6247 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6248 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6250 (trace_command): Use XCALLOC.
6251 (print_insn): Delete reference to tm_print_insn.
6252 (saved_regs_unwinder): Use store_unsigned_integer instead of
6254 * frame.h (FRAME_OBSTACK_CALLOC): Define
6256 2003-04-25 David Carlton <carlton@bactrian.org>
6258 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6260 2003-04-24 Adam Fedor <fedor@gnu.org>
6262 * objc-lang.c: Include "valprint.h"
6263 * Makefile.in (objc-lang.o): Update dependencies.
6265 2003-04-24 Adam Fedor <fedor@gnu.org>
6267 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6268 architecture dependant compilation and mark as unimplemented
6269 (until they get put in the gdbarch vector).
6271 2003-04-23 David Carlton <carlton@bactrian.org>
6273 * cp-support.c (cp_find_first_component): Accept 'operator' in
6276 2003-04-23 Andrew Cagney <cagney@redhat.com>
6278 * infcall.c (call_function_by_hand): Eliminate redundant
6279 indentation. Move "saved_async" and "old_cleanups" to where they
6282 2003-04-23 Andrew Cagney <cagney@redhat.com>
6284 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6285 and "buffer". Move the "name" code to where it is needed.
6287 2003-04-23 Andrew Cagney <cagney@redhat.com>
6289 * infcall.c (call_function_by_hand): Move variables "start_sp",
6290 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6291 code to ON_STACK switch branch.
6293 2003-04-23 Andrew Cagney <cagney@redhat.com>
6295 * infcall.c (call_function_by_hand): Make declaration of "i",
6296 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6299 2003-04-23 Andrew Cagney <cagney@redhat.com>
6301 * infcall.c (call_function_by_hand): Delete variable
6302 "n_method_args". Localize "param_type"'s declaration to the loop
6303 that it is used. Reinstate code assigning to said variable -
6304 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6305 Rationalize code using "param_type".
6307 2003-04-22 Andrew Cagney <cagney@redhat.com>
6309 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6310 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6311 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6312 to DEPRECATED_PUSH_RETURN_ADDRESS.
6314 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6316 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6317 on the DWARF2 register number prior to fetching a register.
6319 2003-04-22 J. Brobecker <brobecker@gnat.com>
6321 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6322 Update all the tests using SOFT_FLOAT considering the fact that
6323 this macro was always set to 0.
6324 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6325 considering the fact that this macro was always set to 0.
6326 * hppa-tdep.h (hppa_store_return_value): Likewise.
6327 (hppa_extract_return_value): Likewise.
6329 2003-04-22 J. Brobecker <brobecker@gnat.com>
6331 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6332 the hppa-pro target only.
6334 2003-04-21 J. Brobecker <brobecker@gnat.com>
6336 Ongoing multi-arch conversion effort for HP/UX:
6337 * config/pa/tm-hppa.h: Move all macro that are no longer
6338 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6339 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6341 2003-04-21 J. Brobecker <brobecker@gnat.com>
6343 * config/pa/tm-hppa.h: Obsolete a section that was only used
6346 2003-04-21 J. Brobecker <brobecker@gnat.com>
6348 Ongoing multi-arch conversion for HP/UX.
6349 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6350 if already defined (allows hppa64 to stay non-multiarched for now).
6351 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6353 2003-04-21 Andrew Cagney <cagney@redhat.com>
6355 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6357 2003-04-21 Andrew Cagney <cagney@redhat.com>
6359 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6360 "i386_num_mmx_regs".
6362 2003-04-21 Andrew Cagney <cagney@redhat.com>
6364 * infcall.c: New file.
6365 * infcall.h: New file.
6366 * valarith.c: Include "infcall.h".
6367 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6368 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6369 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6370 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6371 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6372 (SFILES): Add "infcall.c"
6373 (COMMON_OBS): Add "infcall.o".
6374 (infcall.o): Specify dependencies.
6375 * value.h (call_function_by_hand): Delete declaration.
6376 * inferior.h (run_stack_dummy): Delete declaration.
6377 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6378 (run_stack_dummy): Move to "infcall.c", merged into
6379 call_function_by_hand.
6380 * valops.c (call_function_by_hand): Moved to "infcall.c".
6381 (find_function_addr, value_arg_coerce): Ditto.
6382 (unwindonsignal_p, coerce_float_to_double): Ditto.
6383 (_initialize_valops): Move "set/show coerce-float-to-double", and
6384 "set/show unwindonsignal" commands to "infcall.c".
6385 * v850-tdep.c, target.h: Update comments.
6386 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6387 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6388 (sh64_init_extra_frame_info): Update comments.
6389 * mn10300-tdep.c: Update comments.
6390 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6391 * config/sparc/tm-sparc.h: Update comments.
6392 * breakpoint.h: Update comments.
6393 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6394 * arm-tdep.c: Update comment.
6396 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6398 * i386-tdep.c (i386_num_register_names): New variable.
6399 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6400 (MM0_REGNUM): Remove redundant parentheses in define.
6401 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6402 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6403 i386_mxcsr_regnum_p): Remove redundant parentheses.
6404 (i386_register_name): Use i386_num_register_names.
6406 * i386-tdep.c (i386_extract_return_value,
6407 i386_store_return_value): Correct check for availability of
6408 floating-point registers.
6410 * i386-tdep.c (i386_frame_num_args): Remove function.
6411 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6413 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6414 mmx_regnum_to_fp_regnum. Adjust all callers.
6416 * i386-tdep.c (i386_get_longjmp_target): Use
6417 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6418 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6421 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6423 * core-regset.c: Update comments to reflect reality. Re-order
6425 (fetch_core_registers): Use switch instead of if. Remove
6426 redundant prototype.
6428 2003-04-18 Jim Blandy <jimb@redhat.com>
6430 * s390-tdep.c (s390_frame_align): New function.
6431 (s390_gdbarch_init): Register it with the gdbarch object.
6433 2003-04-17 Richard Henderson <rth@redhat.com>
6435 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6437 2003-04-17 Michael Snyder <msnyder@redhat.com>
6438 Karen Bennet <bennet@redhat.com>
6440 Committed by Elena Zannoni <ezannoni@redhat.com>
6441 * gdb_gcore.sh: New script to create a core dump of a process.
6443 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6445 * values.c (value_being_returned): Don't fetch the return
6446 value if the return type is void.
6448 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6450 * thread-db.c: Reindented.
6452 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6454 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6455 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6482 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6484 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6485 the size of ``long double'' to 16, instead of 8.
6487 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6489 * i386-linux-nat.c: Add some whitespace to make things more
6491 (fetch_register, store_register, fetch_inferior_registers,
6492 store_inferior_registers): Get rid of assignment in if-statement.
6493 (store_register): Fix typo in error message.
6495 2003-04-16 Andrew Cagney <cagney@redhat.com>
6497 * utils.c (xmmalloc): Always allocate something, matches
6498 libiberty/xmalloc's semantics.
6499 (xmrealloc, xmcalloc): Ditto.
6501 2003-04-16 Andrew Cagney <cagney@redhat.com>
6503 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6505 (get_frame_type): Initialize unwind and type when needed.
6506 (get_frame_id, frame_register_unwind): Ditto.
6508 2003-04-16 Andrew Cagney <cagney@redhat.com>
6510 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6512 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6513 * sparcl-stub.c: Obsolete file.
6514 * config/sparc/tm-sparclet.h: Obsolete file.
6515 * sparclet-stub.c: Obsolete file.
6516 * sparclet-rom.c: Obsolete file.
6517 * sparcl-tdep.c: Obsolete file.
6518 * config/sparc/tm-sparclite.h: Obsolete file.
6519 * config/sparc/sparclite.mt: Obsolete file.
6520 * config/sparc/sparclet.mt: Obsolete file.
6521 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6522 sparc86x-*-* obsolete.
6524 2003-04-15 David Carlton <carlton@math.stanford.edu>
6526 * Makefile.in (SFILES): Add cp-namespace.c.
6527 (COMMON_OBS): Add cp-namespace.o.
6528 (block.o): Depend on gdb_obstack_h and cp_support_h.
6529 (buildsym.o): Depend on cp_support_h.
6530 (cp-namespace.o): New.
6531 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6532 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6533 (dwarf2read.o): Depend on cp_support_h.
6534 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6535 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6536 processing_current_namespace.
6537 (read_namespace): Update processing_current_namespace; check for
6538 anonymous namespaces.
6539 (dwarf2_name): New function.
6540 (dwarf2_extension): Ditto.
6541 * cp-support.h: Update copyright, contributors.
6542 Add inclusion guards.
6543 Add opaque declaration for structs obstack, block, symbol.
6544 (struct using_direct): New struct.
6545 Add declarations for cp_find_first_component,
6546 cp_entire_prefix_len, processing_has_namespace_info,
6547 processing_current_namespace, cp_is_anonymous,
6548 cp_add_using_directive, cp_initialize_namespace,
6549 cp_finalize_namespace, cp_set_block_scope,
6550 cp_scan_for_anonymous_namespaces.
6551 * cp-namespace.c: New file.
6552 * cp-support.c: Update copyright.
6553 Include ctype.h, gdb_assert.h, gdbcmd.h.
6554 New variable maint_cplus_cmd_list.
6555 (cp_find_first_component): New function.
6556 (cp_entire_prefix_len, maint_cplus_command)
6557 (first_component_command, _initialize_cp_support): Ditto.
6558 * buildsym.c: Include cp-support.h.
6559 New variable using_list.
6560 (add_symbol_to_list): Check for anonymous namespaces.
6561 (finish_block): Set block's scope.
6562 (start_symtab): Initialize C++ namespace support.
6563 (end_symtab): Finalize C++ namespace support.
6564 * block.h: Add opaque declarations for structs
6565 block_namespace_info, using_direct, and obstack.
6566 Add declarations for block_set_scope and block_set_using.
6567 (struct block): Add 'language_specific' member.
6568 (BLOCK_NAMESPACE): New macro.
6569 * block.c: Include gdb_obstack.h and cp-support.h.
6570 (struct block_namespace_info): New struct.
6571 (block_set_scope): New function.
6572 (block_set_using, block_initialize_namespace): Ditto.
6574 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6576 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6577 (locate_base): Return early if there aren't any link map offsets.
6578 (svr4_solib_create_inferior_hook): Warn if shared library support
6581 2003-04-14 David Carlton <carlton@math.stanford.edu>
6583 * symtab.c (symbol_set_names): Add prefix when storing Java names
6584 in hash table. Fix for PR java/1039.
6586 2003-04-14 David Carlton <carlton@math.stanford.edu>
6588 * symtab.c (symbol_set_names): Rename 'name' arg to
6589 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6590 * symtab.h: Change 'name' argument in declaration of
6591 symbol_set_names to 'linkage_name'.
6592 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6594 2003-04-14 Andrew Cagney <cagney@redhat.com>
6596 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6597 return the fully sign-extended register value.
6598 (get_frame_pointer): Ditto.
6599 (mips_pop_frame): Initialize "proc_desc" after checking for a
6602 2003-04-14 Andrew Cagney <cagney@redhat.com>
6604 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6605 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6606 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6607 (mips_push_register): Delete function.
6608 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6611 2003-04-14 Jim Blandy <jimb@redhat.com>
6613 * symmisc.c: #include "gdb_regex.h".
6614 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6616 * maint.c (maintenance_list_command): New function.
6617 (_initialize_maint_cmds): Register the above as commands.
6618 * symtab.h (maintenance_list_symtabs,
6619 maintenance_list_psymtabs): New declarations.
6620 * cli/cli-cmds.c (maintenancelistlist): New variable.
6621 (init_cmd_lists): Initialize it.
6622 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6623 * gdbcmd.h (maintenancelistlist): New declaration.
6624 * Makefile.in (symmisc.o): Update dependencies.
6626 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6628 * s390-nat.c: Include asm/types.h for addr_t.
6630 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6632 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6633 actually incoming type.
6635 2003-04-13 Andrew Cagney <cagney@redhat.com>
6637 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6638 get_next_frame and get_frame_saved_regs.
6640 2003-04-13 Andrew Cagney <cagney@redhat.com>
6642 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6643 of gdbarch_num_regs.
6645 2003-04-13 Andrew Cagney <cagney@redhat.com>
6647 * frame.h: Mention what replaced what in "struct frame_info".
6648 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6649 deprecated_update_frame_base_hack and
6650 deprecated_update_frame_pc_hack.
6651 * hppa-tdep.c: Ditto.
6653 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6655 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6656 to read_reg and update its comment. Remove regnum member.
6657 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6658 Don't call read_reg when setting in_reg. Call read_reg to get
6659 the frame base if it's in a register. Return the register number
6660 on the stack instead of in the context. Remove extra arguments
6662 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6663 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6664 the register number on the expression stack.
6665 (needs_frame_read_reg): Remove extra arguments.
6667 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6669 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6671 (execute_stack_op): All callers updated.
6672 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6673 * dwarf2loc.c (find_location_expression): New function.
6674 (dwarf_expr_frame_base): Call it.
6675 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6676 (dwarf2_tracepoint_var_ref): New function, broken out from
6677 locexpr_tracepoint_var_ref.
6678 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6680 (loclist_read_variable, loclist_read_needs_frame): New functions.
6681 (loclist_describe_location, loclist_tracepoint_var_ref): New
6683 (dwarf2_loclist_funcs): New struct location_funcs.
6684 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6685 (struct dwarf2_locexpr_baton): Add comments.
6686 (dwarf2_loclist_funcs): New extern.
6687 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6688 base_address and base_known.
6689 (dwarf_loc_buffer): New variable.
6690 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6691 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6692 (dwarf2_has_info): Initialize dwarf_loc_offset.
6693 (dwarf2_build_psymtabs): Read in .debug_loc.
6694 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6696 (psymtab_to_symtab_1): Likewise. Move base address calculation
6698 (dwarf2_get_pc_bounds): ... here. Use the base address from
6700 (dwarf2_symbol_mark_computed): Handle location lists.
6702 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6704 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6705 if the linkage name demangled successfully.
6707 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6709 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6710 disassmbly_flavour): Removed.
6712 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6714 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6716 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6718 2003-04-12 Andrew Cagney <cagney@redhat.com>
6720 * frame.h (struct frame_info): Move definition from here ...
6721 * frame.c (struct frame_info): ... to here.
6723 2003-04-12 Andrew Cagney <cagney@redhat.com>
6725 * gdbthread.h (save_infrun_state): Delete parameter
6727 (struct thread_info): Delete field "prev_func_start".
6728 (load_infrun_state): Ditto.
6729 * thread.c (load_infrun_state, save_infrun_state): Update.
6730 * infrun.c (prev_func_start): Delete variable.
6731 (context_switch, init_wait_for_inferior): Update.
6732 (stop_stepping, keep_going): Update.
6734 2003-04-12 Andrew Cagney <cagney@redhat.com>
6736 * gdbarch.sh: Add missing opaque declarations.
6737 * gdbarch.h: Regnerate.
6738 * symtab.h: Add missing opaque declarations.
6739 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6740 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6741 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6742 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6743 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6744 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6745 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6746 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6747 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6748 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6749 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6750 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6751 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6753 2003-04-11 Andrew Cagney <cagney@redhat.com>
6755 * frame.c (get_frame_id): Return this frame's "id".
6756 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6758 (legacy_saved_regs_this_id): Replace function body with
6760 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6761 FRAME_OBSTACK_ZALLOC.
6762 (create_new_frame): Mark the frame ID as valid.
6764 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6766 * Makefile.in (libbfd_h): Added missing setting.
6767 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6768 according to the selected ABI.
6770 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6772 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6774 2003-04-11 Andrew Cagney <cagney@redhat.com>
6776 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6777 SAVED_PC_AFTER_CALL.
6778 * gdbarch.h, gdbarch.c: Regenerate.
6779 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6780 * x86-64-tdep.c (x86_64_init_abi): Update.
6781 * vax-tdep.c (vax_gdbarch_init): Update.
6782 * v850-tdep.c (v850_gdbarch_init): Update.
6783 * sparc-tdep.c (sparc_gdbarch_init): Update.
6784 * sh-tdep.c (sh_gdbarch_init): Update.
6785 * s390-tdep.c (s390_gdbarch_init): Update.
6786 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6787 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6788 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6789 * mips-tdep.c (mips_gdbarch_init): Update.
6790 * mcore-tdep.c (mcore_gdbarch_init): Update.
6791 * m68k-tdep.c (m68k_gdbarch_init): Update.
6792 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6793 * ia64-tdep.c (ia64_gdbarch_init): Update.
6794 (ia64_saved_pc_after_call): Update declaration.
6795 * i386ly-tdep.c (i386lynx_init_abi): Update.
6796 * i386-tdep.c (i386_gdbarch_init): Update.
6797 * hppa-tdep.c (hppa_gdbarch_init): Update.
6798 * h8300-tdep.c (h8300_gdbarch_init): Update.
6799 * frv-tdep.c (frv_gdbarch_init): Update.
6800 * cris-tdep.c (cris_gdbarch_init): Update.
6801 * avr-tdep.c (avr_gdbarch_init): Update.
6802 * arm-tdep.c (arm_gdbarch_init): Update.
6803 * alpha-tdep.c (alpha_gdbarch_init): Update.
6804 * ns32knbsd-nat.c (frame_num_args): Update.
6805 * ns32k-tdep.c (umax_frame_num_args): Update.
6806 * mips-tdep.c (mips_init_frame_pc_first): Update.
6807 * infrun.c (step_over_function): Update.
6808 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6809 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6810 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6811 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6812 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6813 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6814 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6815 * arch-utils.c (init_frame_pc_default): Update.
6816 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6817 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6820 2003-04-11 Andrew Cagney <cagney@redhat.com>
6822 * i387-tdep.c: Update copyright.
6823 (i387_to_double): Delete function.
6824 (double_to_i387): Delete function.
6826 2003-04-10 Andrew Cagney <cagney@redhat.com>
6828 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6829 frame's function's address. Simplify.
6830 (d10v_frame_unwind_cache): Check that the frame's function is
6833 2003-04-10 Jim Blandy <jimb@redhat.com>
6835 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6836 call to set_gdbarch_deprecated_push_arguments.
6838 2003-04-10 Andrew Cagney <cagney@redhat.com>
6840 * frame.c (fprint_frame_id): New function.
6841 (fprint_frame_type, fprint_frame): New function.
6842 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6843 (create_sentinel_frame, get_frame_id): Ditto.
6844 (frame_id_p, frame_id_eq): Ditto.
6845 (frame_id_inner, create_new_frame): Ditto.
6846 (legacy_get_prev_frame, get_prev_frame): Ditto.
6847 (deprecated_update_frame_pc_hack): Ditto.
6848 (frame_register_unwind): Ditto.
6849 (deprecated_update_frame_base_hack): Ditto.
6851 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6853 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6854 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6855 frame_chain function.
6856 * Makefile.in: Add dependencies due to above change.
6858 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6860 * blockframe.c (legacy_frame_chain_valid): Move call to
6861 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6864 2003-04-09 Andrew Cagney <cagney@redhat.com>
6866 * frame.h (struct frame_id): Replace "pc" and "base" with
6867 "stack_addr" and "code_addr". Update comments.
6868 (frame_id_build): Update parameter names and comment.
6869 (struct frame_info): Replace "id_p" and "id" with "this_id".
6870 * dummy-frame.c (dummy_frame_this_id): Update.
6871 * breakpoint.c (print_one_breakpoint): Update.
6872 * frame.c (get_frame_id): Update.
6873 (get_frame_base, frame_id_build): Update.
6874 (create_sentinel_frame, legacy_get_prev_frame): Update.
6875 (deprecated_update_frame_base_hack): Update.
6876 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6877 (frame_id_inner): Ditto.
6879 2003-04-09 Andrew Cagney <cagney@redhat.com>
6881 * defs.h (gdb_print_host_address): Make "addr" parameter a
6883 * utils.c (gdb_print_host_address): Update.
6885 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6887 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6888 register number for R0 is 0.
6890 2003-04-09 J. Brobecker <brobecker@gnat.com>
6892 * frame.h (struct gdbarch): Add opaque structure definition
6893 to avoid a compilation warning on LynxOS 4.0.
6895 2003-04-09 Andrew Cagney <cagney@redhat.com>
6897 * frame.h (struct frame_info): Delete field "pc". Replace
6898 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6900 * frame.c (frame_pc_unwind): Update.
6901 (create_sentinel_frame): Do not set "pc".
6902 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6903 (get_frame_pc): Call frame_pc_unwind.
6904 (deprecated_update_frame_pc_hack): Update.
6905 (create_new_frame): Use "pc" not "->pc".
6907 2003-04-09 Andrew Cagney <cagney@redhat.com>
6909 * frame.c (get_frame_id): Eliminate code updating "frame".
6910 (legacy_get_prev_frame): Ditto.
6911 (get_frame_base): Return id.base directly.
6912 (deprecated_update_frame_base_hack): Update "id.base".
6913 * frame.h (struct frame_info): Delete field "frame".
6915 2003-04-09 Andrew Cagney <cagney@redhat.com>
6917 * NEWS: Mention that the "Sequent family" is obsolete.
6918 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6919 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6920 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6921 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6922 * config/i386/tm-ptx4.h: Obsolete file.
6923 * config/i386/tm-ptx.h: Obsolete file.
6924 * symm-tdep.c: Obsolete file.
6925 * config/i386/symmetry.mt: Obsolete file.
6926 * config/i386/tm-symmetry.h: Obsolete file.
6927 * symm-nat.c: Obsolete file.
6928 * config/i386/nm-symmetry.h: Obsolete file.
6929 * config/i386/xm-symmetry.h: Obsolete file.
6930 * config/i386/symmetry.mh: Obsolete file.
6931 * config/i386/nm-ptx4.h: Obsolete file.
6932 * config/i386/ptx4.mh: Obsolete file.
6933 * config/i386/ptx.mt: Obsolete file.
6934 * config/i386/ptx.mh: Obsolete file.
6935 * config/i386/xm-ptx4.h: Obsolete file.
6936 * config/i386/xm-ptx.h: Obsolete file.
6938 2003-04-09 Andrew Cagney <cagney@redhat.com>
6940 Obsolete mips*-*-mach3*.
6941 * NEWS: Mention that mips*-*-mach3* is obsolete.
6942 * m3-nat.c: Obsolete file.
6943 * config/nm-m3.h: Obsolete file.
6944 * config/mips/tm-mipsm3.h: Obsolete file.
6945 * config/mips/mipsm3.mt: Obsolete file.
6946 * config/mips/mipsm3.mh: Obsolete file.
6947 * config/mips/xm-mipsm3.h: Obsolete file.
6948 * mipsm3-nat.c: Obsolete file.
6949 * configure.host: Obsolete mips-dec-mach3*.
6950 * configure.tgt: Obsolete mips*-*-mach3*.
6952 2003-04-09 Andrew Cagney <cagney@redhat.com>
6954 * doublest.h: Update copyright.
6955 (deprecated_store_floating, deprecated_extract_floating): Rename
6956 store_floating and extract_floating. Update comments.
6957 * doublest.c: Update copyright.
6958 (extract_floating_by_length): Replace extract_floating.
6959 (store_floating_by_length): Replace store_floating.
6960 (deprecated_extract_floating): New function.
6961 (deprecated_store_floating): New function.
6962 (extract_typed_floating): Call extract_floating_by_length.
6963 (store_typed_floating): Call store_floating_by_length.
6964 * x86-64-tdep.c (x86_64_store_return_value): Update.
6965 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6966 (sh64_extract_return_value): Update.
6967 (sh_sh4_register_convert_to_virtual): Update.
6968 (sh_sh64_register_convert_to_virtual): Update.
6969 (sh_sh4_register_convert_to_raw): Update.
6970 (sh_sh64_register_convert_to_raw): Update.
6971 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6972 (rs6000_register_convert_to_raw): Update.
6973 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6974 (ia64_register_convert_to_raw): Update.
6975 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6976 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6977 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6978 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6979 (alpha_register_convert_to_raw): Update.
6981 2003-04-08 Andrew Cagney <cagney@redhat.com>
6983 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6984 * gdbarch.h, gdbarch.c: Re-generate.
6985 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6986 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6987 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6988 conditionally, use frame_pc_unwind as an alternative. Add
6990 * arch-utils.c (init_frame_pc_default): Only call
6991 SAVED_PC_AFTER_CALL when available.
6993 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6995 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6996 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6997 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6998 (start_remote): Ditto.
6999 (handle_inferior_event): Ditto.
7000 (save_inferior_status): Ditto.
7001 (restore_inferior_status): Ditto.
7002 * infcmd.c (attach_command): Ditto.
7003 * fork-child.c (startup_inferior): Ditto.
7004 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7005 * alpha-tdep.c (heuristic_proc_start): Ditto.
7006 * mips-tdep.c (heuristic_proc_start): Ditto.
7007 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7008 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7009 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7010 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7011 * remote-vx.c (vx_create_inferior): Ditto.
7013 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7015 * infrun.c (stop_soon_quietly): Make it an enum, to better
7016 override the default behavior of handle_inferior_event.
7017 (clear_proceed_status): Update uses of stop_soon_quietly to
7018 reflect that it is now an enum.
7019 (start_remote): Ditto.
7020 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7021 is set to handle the new GNU/Linux kernel behavior for
7022 attach/sigstop. Update uses of stop_soon_quietly.
7023 * inferior.h (enum stop_kind): New enum.
7024 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7025 Reset normal handle_inferior_event behavior, afterwards.
7026 * fork-child.c (startup_inferior): Update.
7027 * alpha-tdep.c (heuristic_proc_start): Update.
7028 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7029 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7030 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7031 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7032 * remote-vx.c (vx_create_inferior): Update.
7033 * mips-tdep.c (heuristic_proc_start): Update.
7035 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7037 * disasm.c (dump_insns): Move variables inside loop, or they will
7038 be freed more than once, causing wild memory corruptions.
7039 (gdb_disassembly): Look for the substring "-thread",
7040 instead of "-threads" in the target name, to make sure to find
7041 the 'multi-thread' target. Also, make sure we do the right thing
7042 with the "core" target.
7044 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7046 * mips-tdep.c (mips_print_fp_register): New function, created from
7047 do_fp_register_row(). Registers are now (also) printed as hex.
7048 Only one register is printed per row.
7049 (mips_print_register, do_fp_register_row): Print floating point
7050 registers with mips_print_fp_register().
7052 2003-04-06 Andrew Cagney <cagney@redhat.com>
7054 * valprint.h (inspect_it): Add extern declaration.
7055 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7056 (selectors_info, classes_info): Ditto.
7057 (find_objc_msgcall): Fix indentation.
7058 (objc_printstr): Delete extern declarations.
7060 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7062 2003-04-06 Andrew Cagney <cagney@redhat.com>
7064 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7066 * frame.c (legacy_saved_regs_this_id): Update.
7067 (legacy_get_prev_frame): Update.
7068 * xstormy16-tdep.c: Update comment.
7069 * sparc-tdep.c (sparc_frame_chain): Update comment.
7070 * blockframe.c (legacy_frame_chain_valid): Update.
7072 2003-04-06 Andrew Cagney <cagney@redhat.com>
7074 * valprint.c (val_print_type_code_int): Delete #ifdef
7075 PRINT_TYPELESS_INTEGER code.
7077 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7078 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7079 multi-arch definition.
7080 * gdbarch.h: Re-generate.
7082 2003-04-05 Andrew Cagney <cagney@redhat.com>
7084 Eliminate FRAME_FIND_SAVED_REGS.
7085 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7086 Change FSR parameter to a pointer.
7087 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7088 Assume FSR parameter is a pointer.
7089 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7091 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7092 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7093 saved_regs a pointer.
7094 (hppa_frame_saved_pc): Ditto.
7095 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7096 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7098 (restore_pc_queue): Make fsr a pointer.
7099 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7100 (hppa_frame_chain): Make saved_regs a pointer, call
7101 hppa_frame_init_saved_regs.
7102 * sparc-tdep.c: Include "gdb_assert.h".
7103 (sparc_frame_find_saved_regs): Replace internal_error with
7105 * remote-vxsparc.c (vx_read_register): Delete reference to
7106 FRAME_FIND_SAVED_REGS.
7107 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7108 * gdbarch.h: Regenerate.
7109 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7110 (deprecated_get_frame_saved_regs): Delete declaration.
7111 (struct frame_saved_regs): Delete definition.
7112 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7113 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7114 (hppa_frame_find_saved_regs): Delete declaration.
7115 (FRAME_FIND_SAVED_REGS): Delete macro.
7116 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7117 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7118 FRAME_FIND_SAVED_REGS in comment.
7120 2003-04-05 Andrew Cagney <cagney@redhat.com>
7122 * frame.c (frame_func_unwind, get_frame_func): New functions.
7123 * frame.h (get_frame_func, frame_func_unwind): Declare.
7124 (struct frame_info): Add field "prev_func" for caching the
7125 previous frame's function address.
7126 * arm-tdep.c (arm_frameless_function_invocation): Combine
7127 get_pc_function_start and get_frame_pc into get_frame_func.
7128 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7129 (sh64_nofp_frame_init_saved_regs): Ditto.
7130 * s390-tdep.c (s390_function_start): Ditto.
7131 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7132 (rs6000_frameless_function_invocation): Ditto.
7133 (rs6000_frame_saved_pc): Ditto.
7134 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7135 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7136 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7137 (i386_frame_init_saved_regs): Ditto.
7138 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7139 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7140 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7141 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7142 * blockframe.c (frameless_look_for_prologue): Ditto.
7144 2003-04-05 Andrew Cagney <cagney@redhat.com>
7146 * frame.c (legacy_get_prev_frame): Link prev to next at the
7147 function start. Update comments.
7149 2003-04-05 Andrew Cagney <cagney@redhat.com>
7151 * frame.c (get_frame_id): Update comment.
7152 (legacy_get_prev_frame): Update comment.
7153 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7154 * gdbarch.h: Regenerate.
7155 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7156 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7158 2003-04-05 Andrew Cagney <cagney@redhat.com>
7160 * stack.c (print_frame_info): Use get_frame_pc.
7162 2003-04-04 Andrew Cagney <cagney@redhat.com>
7164 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7165 the frame's type from the unwinder.
7166 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7167 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7168 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7169 (get_frame_base_address): Use get_frame_type.
7170 (get_frame_locals_address, get_frame_args_address): Ditto.
7171 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7172 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7173 (struct frame_info): Add comment explaining why the frame contains
7175 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7176 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7177 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7179 * frame-unwind.h: Include "frame.h".
7180 (struct frame_unwind): Add "type" field.
7181 * Makefile.in (frame_unwind_h): Add $(frame_h).
7183 2003-04-04 Andrew Cagney <cagney@redhat.com>
7185 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7186 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7187 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7189 (d10v_unwind_dummy_id): Use frame_id_build.
7190 * frame.c (find_frame_sal): Use get_frame_pc.
7191 (create_new_frame): Use deprecated_update_frame_pc_hack and
7192 deprecated_update_frame_base_hack.
7193 (create_sentinel_frame): Add comment about ->pc going away.
7194 (get_prev_frame): Add comment about ->pc going away.
7195 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7196 frame_id_build, deprecated_update_frame_pc_hack and
7197 deprecated_update_frame_base_hack.
7198 (select_frame): Use get_frame_pc.
7199 (legacy_saved_regs_this_id): Use frame_id_build.
7201 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7203 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7204 signed integer case.
7205 (classify_argument): Handle enumerations and references.
7207 2003-04-04 Andrew Cagney <cagney@redhat.com>
7209 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7212 2003-04-01 Adam Fedor <fedor@gnu.org>
7214 * gdb/objc-lang.c (selectors_info): Replace calls to
7215 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7216 SYMBOL_NATURAL_NAME.
7217 (classes_info, find_methods): Likewise.
7219 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7221 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7222 ``mach'' to the value determined by bfd_default_set_arch_mach().
7224 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7226 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7227 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7228 (mi-cmd-file.o): Update dependencies.
7230 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7232 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7233 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7235 2003-04-01 Adam Fedor <fedor@gnu.org>
7237 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7238 * language.h (struct language_defn): Add la_demangle.
7239 (language_demangle): Declare.
7240 * language.c (language_demangle): New function.
7241 (unk_lang_demangle): Likewise.
7242 (unknown_language_defn, auto_language_defn, local_language_defn):
7243 Add ukn_lang_demangle.
7244 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7245 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7246 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7247 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7248 * jv-lang.c (java_demangle): New function
7249 (java_language_defn): Use it for la_demangle element.
7250 * objc-lang.c (objc_demangle): Add options argument
7251 (objc_language_defn): Use objc_demangle for la_demangle element.
7252 * maint.c (maintenance_demangle): Replace switch with
7253 call to language_demangle.
7254 * utils.c (fprintf_symbol_filtered): Likewise.
7256 2003-04-01 Andrew Cagney <cagney@redhat.com>
7258 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7259 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7260 PRINT_TYPELESS_INTEGER.
7261 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7262 PUSH_RETURN_ADDRESS.
7264 2003-04-01 Andrew Cagney <cagney@redhat.com>
7266 * Makefile.in (d10v-tdep.o): Update dependencies.
7267 * d10v-tdep.c: Include "frame-base.h".
7268 (d10v_frame_unwind): Make constant.
7269 (d10v_frame_base_address): New function.
7270 (d10v_frame_base): New variable.
7271 (d10v_gdbarch_init): Set frame_base default.
7272 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7274 (d10v_frame_unwind_cache): Set and use "prev_sp".
7275 (d10v_frame_this_id): Use the previous frame's inner most stack
7276 address and this frame's func address for the frame ID. Use
7277 frame_id_build. Don't analyze beyond the current instruction.
7279 2003-04-01 Andrew Cagney <cagney@redhat.com>
7281 * frame.h (get_frame_locals_address, get_frame_args_address):
7282 Refer to the base address, instead of the address of the first
7285 2003-04-01 Andrew Cagney <cagney@redhat.com>
7287 Add frame debug info addresses:
7288 * frame-base.c: New file.
7289 * frame-base.h: New file.
7290 * frame.h (struct frame_base): Add opaque declaration.
7291 (get_frame_base): Update comment.
7292 (get_frame_base_address): Declare.
7293 (get_frame_locals_address): Declare.
7294 (get_frame_args_address): Declare.
7295 (struct frame_info): Add "base" and "base_cache". Update
7296 comments on the unwinder.
7297 * frame.c: Include "frame-base.h".
7298 (get_frame_locals_address): New function.
7299 (get_frame_base_address): New function.
7300 (get_frame_args_address): New function.
7301 * findvar.c (read_var_value): Use get_frame_locals_address and
7302 get_frame_args_address.
7303 * stack.c (frame_info): Use get_frame_locals_address and
7304 get_frame_args_address.
7305 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7306 moved to "frame-base.c".
7307 * printcmd.c (print_frame_nameless_args): Ditto.
7308 * symtab.h (address_class): Update comments.
7309 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7310 get_frame_base_address.
7311 * dwarf2expr.c (execute_stack_op): Ditto.
7312 * Makefile.in (frame_base_h): Define.
7313 (frame.o): Update dependencies.
7314 (frame-base.o): Add dependencies.
7315 (SFILES): Add frame-base.c.
7316 (COMMON_OBS): Add frame-base.o.
7318 2003-04-01 Andrew Cagney <cagney@redhat.com>
7320 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7321 CALL_DUMMY_LENGTH): Ditto.
7322 * gdbarch.c: Re-generate.
7323 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7324 (CALL_DUMMY_LENGTH): Delete macro.
7325 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7326 * arm-tdep.c (arm_gdbarch_init): Ditto.
7327 * avr-tdep.c (avr_gdbarch_init): Ditto.
7328 * cris-tdep.c (cris_gdbarch_init): Ditto.
7329 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7330 * frv-tdep.c (frv_gdbarch_init): Ditto.
7331 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7332 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7333 * i386-tdep.c (i386_gdbarch_init): Ditto.
7334 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7336 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7337 * mips-tdep.c (mips_gdbarch_init): Ditto.
7338 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7339 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7340 * s390-tdep.c (s390_gdbarch_init): Ditto.
7341 * sh-tdep.c (sh_gdbarch_init): Ditto.
7342 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7343 * v850-tdep.c (v850_gdbarch_init): Ditto.
7344 * vax-tdep.c (vax_gdbarch_init): Ditto.
7345 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7347 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7349 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7351 2003-04-01 Andrew Cagney <cagney@redhat.com>
7353 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7354 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7355 * gdbarch.h, gdbarch.c: Re-generate.
7356 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7357 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7358 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7359 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7360 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7361 * infcmd.c (run_stack_dummy): Simplify assuming
7362 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7363 * infrun.c (handle_inferior_event): Ditto.
7364 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7365 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7366 * arm-tdep.c (arm_gdbarch_init): Ditto.
7367 * avr-tdep.c (avr_gdbarch_init): Ditto.
7368 * cris-tdep.c (cris_gdbarch_init): Ditto.
7369 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7370 * frv-tdep.c (frv_gdbarch_init): Ditto.
7371 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7372 * i386-tdep.c (i386_gdbarch_init): Ditto.
7373 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7375 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7376 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7377 * mips-tdep.c (mips_gdbarch_init): Ditto.
7378 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7379 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7380 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7381 * s390-tdep.c (s390_gdbarch_init): Ditto.
7382 * sh-tdep.c (sh_gdbarch_init): Ditto.
7383 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7384 * v850-tdep.c (v850_gdbarch_init): Ditto.
7385 * vax-tdep.c (vax_gdbarch_init): Ditto.
7386 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7388 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7390 * symfile.c (symfile_relocate_debug_section): Update call to
7391 bfd_simple_get_relocated_section_contents.
7393 2003-03-31 Andrew Cagney <cagney@redhat.com>
7395 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7396 * gdbarch.h, gdbarch.c: Regenerate.
7397 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7398 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7400 * frame.h (generic_fix_call_dummy): Delete declaration.
7401 * dummy-frame.h: Update comment.
7402 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7403 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7405 * sh-tdep.c (sh_gdbarch_init): Ditto.
7406 * s390-tdep.c (s390_gdbarch_init): Ditto.
7407 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7408 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7410 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7411 * i386-tdep.c (i386_gdbarch_init): Ditto.
7412 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7413 * frv-tdep.c (frv_gdbarch_init): Ditto.
7414 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7415 * cris-tdep.c (cris_gdbarch_init): Ditto.
7416 * avr-tdep.c (avr_gdbarch_init): Ditto.
7417 * arm-tdep.c (arm_gdbarch_init): Ditto.
7419 2003-03-31 J. Brobecker <brobecker@gnat.com>
7421 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7422 (INIT_FRAME_AP): Likewise.
7423 (EXTRA_FRAME_INFO): Likewise.
7425 2003-03-31 Andrew Cagney <cagney@redhat.com>
7427 * gdbarch.sh: Include "symfile.h".
7428 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7429 * gdbarch.h, gdbarch.c: Re-generate.
7430 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7432 call_dummy_address, the default is at entry_point_address.
7433 * v850-tdep.c (v850_gdbarch_init): Ditto.
7434 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7435 * sh-tdep.c (sh_gdbarch_init): Ditto.
7436 * s390-tdep.c (s390_gdbarch_init): Ditto.
7437 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7438 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7439 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7440 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7441 * i386-tdep.c (i386_gdbarch_init): Ditto.
7442 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7443 * frv-tdep.c (frv_gdbarch_init): Ditto.
7444 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7445 * cris-tdep.c (cris_gdbarch_init): Ditto.
7446 * arm-tdep.c (arm_gdbarch_init): Ditto.
7448 2003-03-31 Andrew Cagney <cagney@redhat.com>
7450 * gdbarch.sh (CALL_DUMMY_P): Delete.
7451 * gdbarch.h, gdbarch.c: Re-generate.
7452 * inferior.h (CALL_DUMMY_P): Delete macro.
7453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7454 * vax-tdep.c (vax_gdbarch_init): Update.
7455 * v850-tdep.c (v850_gdbarch_init): Update.
7456 * sparc-tdep.c (sparc_gdbarch_init): Update.
7457 * sh-tdep.c (sh_gdbarch_init): Update.
7458 * s390-tdep.c (s390_gdbarch_init): Update.
7459 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7460 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7461 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7462 * mips-tdep.c (mips_gdbarch_init): Update.
7463 * mcore-tdep.c (mcore_gdbarch_init): Update.
7464 * m68k-tdep.c (m68k_gdbarch_init): Update.
7465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7466 * ia64-tdep.c (ia64_gdbarch_init): Update.
7467 * i386-tdep.c (i386_gdbarch_init): Update.
7468 * h8300-tdep.c (h8300_gdbarch_init): Update.
7469 * frv-tdep.c (frv_gdbarch_init): Update.
7470 * d10v-tdep.c (d10v_gdbarch_init): Update.
7471 * cris-tdep.c (cris_gdbarch_init): Update.
7472 * breakpoint.c (deprecated_frame_in_dummy): Update.
7473 * avr-tdep.c (avr_gdbarch_init): Update.
7474 * alpha-tdep.c (alpha_gdbarch_init): Update.
7475 * arm-tdep.c (arm_gdbarch_init): Update.
7476 * dummy-frame.c (dummy_frame_this_id): Update comments.
7477 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7478 * frame.c (legacy_get_prev_frame): Ditto.
7479 * valops.c (call_function_by_hand): Delete function.
7480 (hand_function_call): Rename to call_function_by_hand
7482 2003-03-30 Andrew Cagney <cagney@redhat.com>
7484 2002-11-10 Klee Dienes <kdienes@apple.com>
7485 * value.h (struct value): Update comment.
7487 2003-03-30 Andrew Cagney <cagney@redhat.com>
7489 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7491 (d10v_gdbarch_init): Do not set fp_regnum.
7493 * frame.c (get_frame_base): Force ID initialization.
7494 (get_prev_frame): Move computation of the frame ID from here ...
7495 (get_frame_id): ... to here.
7496 (legacy_get_prev_frame): Mark the frame ID as valid.
7497 * frame.h (struct frame_info): Add field "id_p".
7499 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7501 * i386-tdep.c (i386_store_struct_return): Removed.
7502 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7504 2003-03-30 Andrew Cagney <cagney@redhat.com>
7506 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7507 * gdbarch.h, gdbarch.c: Regenerate.
7508 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7510 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7511 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7512 * i386-tdep.c (i386_gdbarch_init): Ditto.
7513 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7514 * cris-tdep.c (cris_gdbarch_init): Ditto.
7515 * vax-tdep.c (vax_gdbarch_init): Ditto.
7516 * s390-tdep.c (s390_gdbarch_init): Ditto.
7517 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7518 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7519 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7520 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7521 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7522 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7523 * sparc-tdep.c (sparc_gdbarch_init): Update.
7524 * sh-tdep.c (sh_gdbarch_init): Update.
7525 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7526 * mips-tdep.c (mips_gdbarch_init): Update.
7527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7528 * ia64-tdep.c (ia64_gdbarch_init): Update.
7529 * frv-tdep.c (frv_gdbarch_init): Update.
7530 * avr-tdep.c (avr_gdbarch_init): Update.
7531 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7532 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7533 instead of when push_dummy_call is not available.
7535 2003-03-30 Andrew Cagney <cagney@redhat.com>
7537 * infttrace.c: Include "gdbthread.h".
7538 (parent_attach_all): Fix function signature.
7539 (call_ptrace): Update call.
7540 * Makefile.in (infttrace.o): Update dependencies.
7542 2003-03-30 Andrew Cagney <cagney@redhat.com>
7544 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7545 PUSH_RETURN_ADDRESS.
7546 * gdbarch.h, gdbarch.c: Regenerate.
7547 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7548 * x86-64-tdep.c (x86_64_init_abi): Update.
7549 * v850-tdep.c (v850_gdbarch_init): Update.
7550 * sparc-tdep.c (sparc_gdbarch_init): Update.
7551 * sh-tdep.c (sh_gdbarch_init): Update.
7552 * s390-tdep.c (s390_gdbarch_init): Update.
7553 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7554 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7555 * mips-tdep.c (mips_gdbarch_init): Update.
7556 * mcore-tdep.c (mcore_gdbarch_init): Update.
7557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7558 * ia64-tdep.c (ia64_gdbarch_init): Update.
7559 * i386-tdep.c (i386_gdbarch_init): Update.
7560 * h8300-tdep.c (h8300_gdbarch_init): Update.
7561 * frv-tdep.c (frv_gdbarch_init): Update.
7562 * cris-tdep.c (cris_gdbarch_init): Update.
7563 * avr-tdep.c (avr_gdbarch_init): Update.
7564 * arm-tdep.c (arm_gdbarch_init): Update.
7565 * valops.c (hand_function_call): Update.
7567 2003-03-29 Andrew Cagney <cagney@redhat.com>
7569 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7570 sizeof_call_dummy_words.
7571 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7573 * gdbarch.h: Regenerate.
7575 2003-03-29 Andrew Cagney <cagney@redhat.com>
7577 * infttrace.h: New file.
7578 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7579 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7580 (hpread_read_doc_function_type): Detect an initialized type1.
7581 (hpread_quick_traverse): Initialize mod_name_string.
7582 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7583 (som_solib_get_solib_by_pc): Declare.
7584 (so_lib_thread_start_addr): Declare.
7585 (no_shared_libraries): Declare.
7586 * somread.c (init_import_symbols): Make static. Add forward
7588 * config/pa/nm-hppah.h: Include "infttrace.h" for
7590 (hppa_insert_hw_watchpoint): Declare.
7591 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7592 * hppah-nat.c: Include "gdb_string.h".
7593 (parent_attach_all): Delete extern declaration, moved to
7595 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7597 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7598 * Makefile.in (infttrace_h): Define.
7599 (hpread.o): Update dependencies.
7600 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7601 * hppa-hpux-tdep.c: Include "gdb_string.h".
7602 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7603 * infrun.c (handle_inferior_event): Always initialize
7604 stepped_after_stopped_by_watchpoint. Add default and remove
7605 fallthrough in switch statement.
7606 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7608 (hppa_remove_hw_watchpoint): Ditto.
7610 2003-03-29 Andrew Cagney <cagney@redhat.com>
7612 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7615 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7617 * arm-tdep.c (arm_push_arguments): Delete.
7618 (struct stack_item): New type.
7619 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7620 (arm_store_struct_return): Delte.
7621 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7622 arm_push_arguments or arm_store_struct_return.
7624 2003-03-28 Andrew Cagney <cagney@redhat.com>
7626 * Makefile.in (d10v-tdep.o): Update dependencies.
7627 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7628 * d10v-tdep.c: Include "remote.h".
7629 (target_resume_hook): Delete extern declaration.
7630 (target_wait_loop_hook): Ditto.
7631 (tdisassemble_command): Eliminate assignment in "if" conditional.
7632 (d10v_ts2_register_sim_regno): Eliminate call to
7633 legacy_register_sim_regno.
7634 (d10v_ts3_register_sim_regno): Ditto.
7636 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7638 * thread.c: Reindented.
7640 * linux-proc.c: Ditto.
7642 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7644 * MAINTAINERS (write after approval): Add myself.
7646 2003-03-27 Theodore A. Roth <troth@openavr.org>
7648 * objc-exp.y: Add missing semi-colons.
7650 2003-03-27 Andrew Cagney <cagney@redhat.com>
7652 * regcache.c (write_sp): Delete function and references.
7653 * inferior.h (write_sp): Delete declaration.
7654 * valops.c (hand_function_call): Replace write_sp with
7656 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7657 (sparc_pop_frame): Ditto.
7659 2003-03-27 Andrew Cagney <cagney@redhat.com>
7661 * NEWS: Mention removal of support for hppa*-*-bsd* and
7662 hppa*-*-osf* natives, and hppa*-*-pro* target.
7663 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7664 * config/pa/xm-pa.h: Obsolete file.
7665 * config/pa/xm-hppab.h: Obsolete file.
7666 * config/pa/nm-hppab.h: Obsolete file.
7667 * config/pa/tm-hppab.h: Obsolete file.
7668 * config/pa/tm-hppao.h: Obsolete file.
7669 * config/pa/nm-hppao.h: Obsolete file.
7670 * config/pa/tm-pro.h: Obsolete file.
7671 * config/pa/hppaosf.mt: Obsolete file.
7672 * config/pa/hppaosf.mh: Obsolete file.
7673 * config/pa/hppapro.mt: Obsolete file.
7674 * config/pa/hppabsd.mt: Obsolete file.
7675 * config/pa/hppabsd.mh: Obsolete file.
7676 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7677 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7680 2003-03-27 Andrew Cagney <cagney@redhat.com>
7682 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7683 push_arguments. Don't set push_return_address or write_sp.
7684 (d10v_push_dummy_call): Replace d10v_push_arguments.
7685 (d10v_push_return_address, d10v_write_sp): Delete function,
7686 handled by push_dummy_call.
7688 2003-03-26 Andrew Cagney <cagney@redhat.com>
7690 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7691 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7692 regcache and dummy_addr parameters.
7693 * gdbarch.h, gdbarch.c: Re-generate.
7694 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7695 available; assume it will handle stack alignment and return
7696 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7697 legacy_push_arguments.
7698 (legacy_push_arguments): Rename default_push_arguments.
7699 * value.h (legacy_push_arguments): Rename default_push_arguments.
7700 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7701 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7702 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7703 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7704 * config/i386/tm-symmetry.h: Update.
7705 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7706 * x86-64-tdep.c (x86_64_init_abi): Update.
7707 * v850-tdep.c (v850_gdbarch_init): Update.
7708 * sparc-tdep.c (sparc_gdbarch_init): Update.
7709 * sh-tdep.c (sh_gdbarch_init): Update.
7710 * s390-tdep.c (s390_gdbarch_init): Update.
7711 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7712 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7713 * mips-tdep.c (mips_gdbarch_init): Update.
7714 * mcore-tdep.c (mcore_gdbarch_init): Update.
7715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7716 * ia64-tdep.c (ia64_gdbarch_init): Update.
7717 * i386-tdep.c (i386_gdbarch_init): Update.
7718 * hppa-tdep.c (hppa_gdbarch_init): Update.
7719 * h8300-tdep.c (h8300_gdbarch_init): Update.
7720 * frv-tdep.c (frv_gdbarch_init): Update.
7721 * d10v-tdep.c (d10v_gdbarch_init): Update.
7722 * cris-tdep.c (cris_gdbarch_init): Update.
7723 * avr-tdep.c (avr_gdbarch_init): Update.
7724 * arm-tdep.c (arm_gdbarch_init): Update.
7725 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7726 * alpha-tdep.c (alpha_gdbarch_init): Update.
7728 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7730 * signals/signals.c (do_target_signal_to_host): Correct realtime
7733 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7735 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7736 (struct sal_chain, map_catch_names): Remove.
7737 (catch_exception_command_1): Don't call
7738 handle_gnu_4_16_catch_command.
7740 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7742 From Mark Dettinger <dettinge@de.ibm.com>:
7743 * dwarf2cfi.c (read_2u): Increment pointer by two.
7745 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7747 * signals/signals.c: Fix typos in last change.
7749 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7751 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7752 not already defined. Use __SIGRTMIN if available.
7753 (target_signal_from_host): Remove SIGRTMIN block.
7754 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7755 the signal is within the realtime range.
7757 2003-03-25 Adam Fedor <fedor@gnu.org>
7759 * Makefile.in (infrun.o): Add $(language_h)
7760 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7761 for language specific trampolines.
7762 * language.h (struct language_defn): Add skip_trampoline.
7763 (skip_language_trampoline): Declare.
7764 * language.c (unk_lang_trampoline, skip_language_trampoline):
7766 (unknown_language_defn, auto_language_defn, local_language_defn):
7767 Add ukn_lang_trampoline.
7768 * ada-lang.c (ada_language_defn): Add NULL for language
7769 specific skip_trampoline.
7770 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7771 scm-lang.c: Likewise.
7772 * objc-lang.c (objc_skip_trampoline): New function.
7773 (objc_language_defn): Add objc_skip_trampoline.
7775 2003-03-25 Andrew Cagney <cagney@redhat.com>
7777 * frame.c (get_prev_frame): Delay validating a frame's ID -
7778 non-NULL, didn't go backwards - until an attempt to unwind it to
7781 2003-03-25 Andrew Cagney <cagney@redhat.com>
7783 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7784 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7785 * gdbarch.h, gdbarch.c: Re-generate.
7786 * config/sparc/tm-sparc.h
7787 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7788 * sparc-tdep.c (sparc_gdbarch_init): Set
7789 deprecated_extra_stack_alignment_needed.
7790 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7791 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7792 extra_stack_alignment_needed.
7793 * v850-tdep.c (v850_gdbarch_init): Ditto.
7794 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7795 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7796 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7797 * cris-tdep.c (cris_gdbarch_init): Ditto.
7798 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7799 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7801 2003-03-25 Andrew Cagney <cagney@redhat.com>
7803 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7804 STORE_STRUCT_RETURN.
7805 * gdbarch.h, gdbarch.c: Regenerate.
7806 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7807 (d10v_push_arguments): Set the struct return register.
7808 (d10v_gdbarch_init): Update.
7809 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7810 * x86-64-tdep.c (x86_64_init_abi): Update.
7811 * vax-tdep.c (vax_gdbarch_init): Update.
7812 * v850-tdep.c (v850_gdbarch_init): Update.
7813 * sparc-tdep.c (sparc_gdbarch_init): Update.
7814 * sh-tdep.c (sh_gdbarch_init): Update.
7815 * s390-tdep.c (s390_gdbarch_init): Update.
7816 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7817 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7818 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7819 * mips-tdep.c (mips_gdbarch_init): Update.
7820 * mcore-tdep.c (mcore_gdbarch_init): Update.
7821 * m68k-tdep.c (m68k_gdbarch_init): Update.
7822 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7823 * ia64-tdep.c (ia64_gdbarch_init): Update.
7824 * i386-tdep.c (i386_gdbarch_init): Update.
7825 * hppa-tdep.c (hppa_gdbarch_init): Update.
7826 * h8300-tdep.c (h8300_gdbarch_init): Update.
7827 * frv-tdep.c (frv_gdbarch_init): Update.
7828 * cris-tdep.c (cris_gdbarch_init): Update.
7829 * avr-tdep.c (avr_gdbarch_init): Update.
7830 * arm-tdep.c (arm_gdbarch_init): Update.
7831 * alpha-tdep.c (alpha_gdbarch_init): Update.
7833 2003-03-25 Andrew Cagney <cagney@redhat.com>
7835 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7836 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7837 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7838 * gdbarch.h, gdbarch.c: Regenerate.
7839 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7840 call_dummy_stack_adjust_p.
7841 * vax-tdep.c (vax_gdbarch_init): Ditto.
7842 * v850-tdep.c (v850_gdbarch_init): Ditto.
7843 * sh-tdep.c (sh_gdbarch_init): Ditto.
7844 * s390-tdep.c (s390_gdbarch_init): Ditto.
7845 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7846 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7847 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7848 * mips-tdep.c (mips_gdbarch_init): Ditto.
7849 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7850 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7852 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7853 * i386-tdep.c (i386_gdbarch_init): Ditto.
7854 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7855 * frv-tdep.c (frv_gdbarch_init): Ditto.
7856 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7857 * cris-tdep.c (cris_gdbarch_init): Ditto.
7858 * avr-tdep.c (avr_gdbarch_init): Ditto.
7859 * arm-tdep.c (arm_gdbarch_init): Ditto.
7860 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7861 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7862 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7863 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7864 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7865 call_dummy_stack_adjust_p.
7866 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7867 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7868 * sparc-tdep.c (sparc32_push_arguments): Update.
7869 * valops.c (hand_function_call): Update.
7871 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7874 set_gdbarch_char_signed.
7876 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7879 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7881 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7883 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7884 (_initialize_arm_tdep): Don't set tm_print_insn.
7886 2003-03-24 Adam Fedor <fedor@gnu.org>
7888 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7889 * objc-lang.h: Add multiple inclusion protection.
7890 (start_msglist, add_msglist, end_msglist): Additional declarations.
7892 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7894 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7895 value was renamed to ARM_FLOAT_SOFT_FPA.
7897 2003-03-23 Andrew Cagney <cagney@redhat.com>
7899 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7900 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7901 * gdbarch.h, gdbarch.c: Regenerate.
7902 * valops.c (hand_function_call): Update.
7903 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7904 * frame.c (legacy_saved_regs_this_id): Update.
7905 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7906 * dummy-frame.h: Update.
7907 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7908 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7909 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7910 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7911 * config/m68k/tm-sun3.h: Update.
7912 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7913 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7914 * x86-64-tdep.c (x86_64_init_abi): Update.
7915 * vax-tdep.c (vax_gdbarch_init): Update.
7916 * v850-tdep.c (v850_gdbarch_init): Update.
7917 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7918 * sh-tdep.c (sh_gdbarch_init): Update.
7919 * s390-tdep.c (s390_gdbarch_init): Update.
7920 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7921 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7922 (frame_get_saved_regs): Update.
7923 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7924 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7925 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7926 * mips-tdep.c (mips_gdbarch_init): Update.
7927 * mcore-tdep.c (mcore_gdbarch_init): Update.
7928 * m68k-tdep.c (m68k_gdbarch_init): Update.
7929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7930 * ia64-tdep.c (ia64_gdbarch_init): Update.
7931 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7932 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7933 (i386_interix_back_one_frame): Update.
7934 * hppa-tdep.c (hppa_gdbarch_init): Update.
7935 (hppa_init_extra_frame_info): Update.
7936 * h8300-tdep.c (h8300_gdbarch_init): Update.
7937 * frv-tdep.c (frv_gdbarch_init): Update.
7938 * cris-tdep.c (cris_gdbarch_init): Update.
7939 * avr-tdep.c (avr_gdbarch_init): Update.
7940 * arm-tdep.c (arm_gdbarch_init): Update.
7941 * alpha-tdep.c (alpha_gdbarch_init): Update.
7943 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7945 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7946 (arm_get_fp_model): Declare.
7947 * arm-tdep.c (fp_model_strings): New string array.
7948 (arm_fp_model, current_fp_model): New variables.
7949 (arm_get_fp_model): New function.
7950 (arm_set_fp): New function.
7951 (set_fp_model_sfunc): New function.
7952 (show_fp_model): New function.
7953 (_initialize_arm_tdep): Add new command to set/show the FPU.
7954 (arm_extract_return_value): Use arm_get_fp_model.
7955 (arm_store_return_value): Likewise.
7956 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7957 to initialize the floating-point data types.
7958 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7961 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7963 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7964 the current setting of each value.
7965 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7966 new_set and new_show. Use add_setshow_cmd_full and
7967 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7968 commands and add new version as subcommands of "set/show arm".
7970 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7972 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7973 (set_arm_command, show_arm_command): New functions.
7974 (_initialize_arm_tdep): Add them.
7975 (num_disassembly_options): Renamed from num_flavor_options.
7976 (valid_disassembly_styles): Renamed from valid_flavors.
7977 (disassembly_style): Renamed from disassembly_flavor.
7978 (set_disassembly_style_sfunc): Renamed from
7979 set_disassembly_flavor_sfunc.
7980 (set_disassembly_style): Renamed from set_disassembly_flavor.
7981 (arm_othernames): Updated.
7982 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7983 command. Add "set/show arm disassembly" commands. Deprecate
7984 "othernames" command.
7986 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7988 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7989 (arm-tdep.o): Depend on elf_arm_h.
7991 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7993 * Makefile.in (coff_internal_h): Define.
7994 (arm-tdep.o): Update dependencies.
7996 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7998 * arm-tdep.c (prologue_cache): Delete.
7999 (check_prologue_cache, save_prologue_cache): Delete.
8000 (arm_scan_prologue): Don't check or update the prologue_cache.
8001 (arm_gdb_arch_init): Don't initialize it.
8002 (_initialize_arm_tdep): Likewise.
8004 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8006 * MAINTAINERS (tui): Maintainer of tui code.
8008 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8010 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8011 (i386-cygwin-tdep.o): Add dependencies.
8012 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8013 * i386-cygwin-tdep.c: New file.
8014 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8015 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8017 2003-03-20 Andrew Cagney <cagney@redhat.com>
8019 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8020 (handle_inferior_event): Remove code calling
8021 DYNAMIC_TRAMPOLINE_NEXTPC.
8023 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8024 already has a full path.
8026 * main.c (gdb_main): Return 1.
8027 (captured_main): Call error to report an invalid interpreter.
8029 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8030 * alpha-osf1-tdep.c: Include "gdb_string.h".
8032 2003-03-19 J. Brobecker <brobecker@gnat.com>
8034 Continuing work to convert the hppa targets to multiarch partial.
8036 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8037 method, now that hppa_push_dummy_frame has a conformant prototype.
8038 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8039 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8040 for the switch to multiarch partial.
8042 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8044 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8045 when iss is issNull.
8047 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8049 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8050 NUM_REGS bounds check.
8052 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8054 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8055 * mips-tdep.c (gdb_assert.h): Include.
8056 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8057 (mips_register_name): Handle integer registers explicitly. Add
8059 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8060 (mips_lsi33k_reg_names): Don't list integer registers; they're
8061 handled by mips_register_name() now.
8062 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8063 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8064 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8065 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8066 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8068 2003-03-18 Andrew Cagney <cagney@redhat.com>
8070 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8072 * gdbtypes.h (print_scalar_formatted): Update declaration.
8073 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8075 2003-03-18 J. Brobecker <brobecker@gnat.com>
8077 * infrun.c (observer.h): Add #include.
8078 (normal_stop): Add call to observer_notify_normal_stop.
8079 * Makefile.in (infrun.o): Add dependency on observer.h.
8081 2003-03-18 J. Brobecker <brobecker@gnat.com>
8083 Continuing work to convert the hppa targets to multiarch partial.
8084 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8085 parameter. Reformat comment.
8086 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8087 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8088 to match new profile.
8090 2003-03-18 J. Brobecker <brobecker@gnat.com>
8092 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8093 appear to be working in any case.
8095 2003-03-18 J. Brobecker <brobecker@gnat.com>
8097 * observer.c (observer_test_first_observer): New static variable.
8098 (observer_test_second_observer): Likewise.
8099 (observer_test_third_observer): Likewise.
8100 (observer_test_first_notification_function): New static function.
8101 (observer_test_second_notification_function): Likewise.
8102 (observer_test_third_notification_function): Likewise.
8104 2003-03-17 J. Brobecker <brobecker@gnat.com>
8106 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8107 * somsolib.c (gdb_assert.h): Likewise.
8108 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8109 (somsolib.o): Likewise.
8111 2003-03-17 Andrew Cagney <cagney@redhat.com>
8113 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8114 BFD. Simplify setting of di.endian.
8116 2003-03-17 Andrew Cagney <cagney@redhat.com>
8118 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8119 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8121 From Elena Zannoni <ezannoni@redhat.com>
8122 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8123 vector and floating-point parameters.
8124 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8126 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8128 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8130 * MAINTAINERS: Remove my name from several maintainership roles.
8132 2003-03-17 Andrew Cagney <cagney@redhat.com>
8134 Fix frame off-by-one bug.
8135 * frame-unwind.h (frame_this_id_ftype): Replace
8136 frame_unwind_id_ftype.
8137 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8138 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8139 with "prev_register".
8140 * frame-unwind.c (frame_unwind_find_by_pc): Return
8141 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8143 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8144 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8145 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8146 (dummy_frame_unwind): Update.
8147 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8148 sentinel_frame_register_unwind.
8149 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8150 (sentinel_frame_unwinder): Update.
8151 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8152 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8153 * frame.c (create_sentinel_frame): Update. Initialize
8154 "prologue_cache" instead of "unwind_cache".
8155 (frame_register_unwind): Call this frame's prev_register with the
8156 next frame and this frame's prologue cache.
8157 (get_prev_frame): Simplify. Always call prev frame's this_id with
8158 this frame and prev frame's prologue cache. Document that this
8159 call is shifted one to the left when compared to the
8160 frame_register_unwind call.
8161 (legacy_saved_regs_prev_register): Replace
8162 frame_saved_regs_register_unwind.
8163 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8164 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8165 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8166 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8167 (d10v_frame_unwind): Update.
8168 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8169 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8170 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8171 "saved_regs" with "this_saved_regs".
8173 2003-03-16 Andrew Cagney <cagney@redhat.com>
8175 * frame.c (frame_pop): Don't call target_store_registers. Fix
8176 problem reported by Mark Kettenis.
8178 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8180 * i386-tdep.c (i386_register_type): Renamed from
8181 i386_register_virtual_type. Adjust function signature.
8182 (i386_gdbarch_init): Set register_type instead of
8183 deprecated_max_register_raw_size,
8184 deprecated_max_register_virtual_size and register_virtual_type.
8186 2003-03-14 Andrew Cagney <cagney@redhat.com>
8188 * frame.c (get_prev_frame): When a legacy frame, always call
8189 legacy_get_prev_frame. Simplify unwind code using assumption that
8190 the unwinder is new.
8191 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8192 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8193 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8195 2003-03-14 Andrew Cagney <cagney@redhat.com>
8197 * frame.c (get_saved_register): Delete function.
8198 * frame.h (get_saved_register): Delete declaration.
8199 * xstormy16-tdep.c: Update comment.
8200 * regcache.h: Update comments.
8201 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8202 get_saved_register and extract_address, use
8203 frame_read_unsigned_register.
8204 (sparc_frame_saved_pc): Ditto.
8205 (sparc_get_saved_register): Instead of get_saved_register, use
8207 (sparc_pop_frame): Ditto.
8208 * findvar.c: Update comments.
8209 (value_of_register): Call frame_register instead of
8211 (value_from_register): Ditto.
8212 * config/sparc/tm-sparc.h: Update comment.
8213 * breakpoint.c: Update comment.
8215 2003-03-14 Andrew Cagney <cagney@redhat.com>
8217 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8219 * gdbarch.h, gdbarch.c: Re-generate.
8220 * frame.h: Update comments.
8221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8222 * x86-64-tdep.c (x86_64_init_abi): Update.
8223 * sparc-tdep.c (sparc_gdbarch_init): Update.
8224 * sh-tdep.c (sh_gdbarch_init): Update.
8225 * mips-tdep.c (mips_gdbarch_init): Update.
8226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8227 * cris-tdep.c (cris_gdbarch_init): Update.
8228 * ia64-tdep.c (ia64_gdbarch_init): Update.
8229 * frame.c (frame_register): Update.
8230 (get_saved_register): Update.
8231 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8233 2003-03-13 Andrew Cagney <cagney@redhat.com>
8235 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8236 * gdbarch.h, gdbarch.c: Regenerate.
8237 * valops.c (hand_function_call): Update comment.
8238 * stack.c (return_command): Update comment.
8239 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8240 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8242 * x86-64-tdep.c (x86_64_init_abi): Update.
8243 * vax-tdep.c (vax_gdbarch_init): Update.
8244 * v850-tdep.c (v850_gdbarch_init): Update.
8245 * sparc-tdep.c (sparc_gdbarch_init): Update.
8246 * sh-tdep.c (sh_gdbarch_init): Update.
8247 * s390-tdep.c (s390_gdbarch_init): Update.
8248 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8249 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8250 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8251 * mips-tdep.c (mips_gdbarch_init): Update.
8252 * mcore-tdep.c (mcore_gdbarch_init): Update.
8253 * m68k-tdep.c (m68k_gdbarch_init): Update.
8254 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8255 * ia64-tdep.c (ia64_gdbarch_init): Update.
8256 * i386-tdep.c (i386_gdbarch_init): Update.
8257 * hppa-tdep.c (hppa_gdbarch_init): Update.
8258 * h8300-tdep.c (h8300_gdbarch_init): Update.
8259 * frv-tdep.c (frv_gdbarch_init): Update.
8260 * cris-tdep.c (cris_gdbarch_init): Update.
8261 * avr-tdep.c (avr_gdbarch_init): Update.
8262 * arm-tdep.c (arm_gdbarch_init): Update.
8263 * alpha-tdep.c (alpha_gdbarch_init): Update.
8265 2003-03-13 Andrew Cagney <cagney@redhat.com>
8267 * frame.c (legacy_frame_p): New function.
8268 (get_prev_frame): Use legacy_frame_p.
8269 * frame.h (legacy_frame_p): Declare.
8271 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8273 * MAINTAINERS (write after approval): Alphabetically
8276 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8278 * MAINTAINERS (write after approval): Add myself.
8280 2003-03-12 Andrew Cagney <cagney@redhat.com>
8282 * frame.c (get_prev_frame): Rename the frame parameter to
8284 (get_next_frame, legacy_get_prev_frame): Ditto.
8286 2003-03-12 Andrew Cagney <cagney@redhat.com>
8288 * frame.c (get_current_frame): Check target_has_registers before
8289 checking target_has_stack.
8290 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8291 instead of deprecated_selected_frame.
8292 * findvar.c (value_of_register): Pass "frame", not
8293 deprecated_selected_frame, to value_of_builtin_reg.
8295 2003-03-12 Andrew Cagney <cagney@redhat.com>
8297 * regcache.c (regcache_cooked_write_signed): New function.
8298 (regcache_cooked_write_unsigned): New function.
8299 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8300 (regcache_cooked_read_signed): Fix regnum in range assertion.
8301 * regcache.h (regcache_cooked_write_signed): Declare.
8302 (regcache_cooked_write_unsigned): Declare.
8304 2003-03-12 Andrew Cagney <cagney@redhat.com>
8306 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8307 * gdbarch.h, gdbarch.c: Re-generate.
8308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8309 * x86-64-tdep.h: Update.
8310 * x86-64-tdep.c (x86_64_init_abi): Update.
8311 * v850-tdep.c (v850_gdbarch_init): Update.
8312 * sparc-tdep.c (sparc_gdbarch_init): Update.
8313 * sh-tdep.c (sh_gdbarch_init): Update.
8314 * s390-tdep.c (s390_gdbarch_init): Update.
8315 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8316 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8317 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8318 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8319 * mips-tdep.c (mips_gdbarch_init): Update.
8320 * mcore-tdep.c (mcore_gdbarch_init): Update.
8321 * m68k-tdep.c (m68k_gdbarch_init): Update.
8322 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8323 * ia64-tdep.c (ia64_gdbarch_init): Update.
8324 * i386-tdep.c (i386_gdbarch_init): Update.
8325 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8326 * hppa-tdep.c (hppa_gdbarch_init): Update.
8327 * h8300-tdep.c (h8300_gdbarch_init): Update.
8328 * frv-tdep.c (frv_gdbarch_init): Update.
8329 * cris-tdep.c (cris_gdbarch_init): Update.
8330 * avr-tdep.c (avr_gdbarch_init): Update.
8331 * arm-tdep.c (arm_gdbarch_init): Update.
8332 * alpha-tdep.c (alpha_gdbarch_init): Update.
8333 * sh-tdep.c (sh_init_extra_frame_info): Update.
8334 (sh64_init_extra_frame_info): Update.
8335 * ns32knbsd-nat.c (frame_num_args): Update.
8336 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8337 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8338 (xstormy16_frame_chain_valid): Update.
8339 * vax-tdep.c (vax_saved_pc_after_call): Update.
8340 * v850-tdep.c (v850_frame_chain): Update.
8341 (v850_pop_frame): Update.
8342 (v850_init_extra_frame_info): Update.
8343 * sparc-tdep.c (setup_arbitrary_frame): Update.
8344 * ns32k-tdep.c (umax_frame_num_args): Update.
8345 * s390-tdep.c (s390_pop_frame_regular): Update.
8346 * mn10300-tdep.c (mn10300_frame_chain): Update.
8347 (mn10300_pop_frame_regular): Update.
8348 (mn10300_init_extra_frame_info): Update.
8349 * mips-tdep.c (mips_init_frame_pc_first): Update.
8350 (mips_frame_chain): Update.
8351 (mips_pop_frame): Update.
8352 * mcore-tdep.c (mcore_frame_chain): Update.
8353 (mcore_pop_frame): Update.
8354 (mcore_init_extra_frame_info): Update.
8355 * arch-utils.c (init_frame_pc_default): Update.
8356 * m68k-tdep.c (isi_frame_num_args): Update.
8357 (delta68_frame_num_args): Update.
8358 (news_frame_num_args): Update.
8359 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8360 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8361 (alpha_frame_chain): Update.
8362 (alpha_pop_frame): Update.
8363 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8364 (hppa_init_extra_frame_info): Update.
8365 (hppa_frame_chain): Update.
8366 (hppa_frame_chain_valid): Update.
8367 * cris-tdep.c (cris_init_extra_frame_info): Update.
8368 * avr-tdep.c (avr_init_extra_frame_info): Update.
8369 * arm-tdep.c (arm_frame_chain_valid): Update.
8370 (arm_init_extra_frame_info): Update.
8371 (arm_pop_frame): Update.
8372 * frame.c (frame_pc_unwind): Update.
8373 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8374 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8375 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8376 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8377 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8378 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8380 2003-03-12 Andrew Cagney <cagney@redhat.com>
8382 Eliminate the need for POP_FRAME.
8383 * frame.c (do_frame_unwind_register): New function.
8384 (frame_pop): When no POP_FRAME, pop the frame using register
8385 unwind and a scratch regcache.
8386 (frame_saved_regs_pop): Delete function.
8387 (trad_frame_unwinder): Update.
8388 * d10v-tdep.c (d10v_frame_pop): Delete function.
8389 (d10v_frame_unwind): Update.
8390 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8391 (sentinel_frame_unwinder): Update.
8392 * dummy-frame.c (dummy_frame_pop): Delete function.
8393 (dummy_frame_unwind): Update.
8394 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8395 (struct frame_unwind): Update.
8397 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8399 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8400 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8401 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8402 Do range checks on register number obtained from debugging info.
8403 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8404 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8405 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8407 (do_fp_register_row): Fix typo which caused double type to be
8408 used when attempting to unpack a float.
8410 2003-03-11 J. Brobecker <brobecker@gnat.com>
8412 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8414 2003-03-11 Andrew Cagney <cagney@redhat.com>
8416 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8417 frame. Problem found by Corinna Vinschen.
8419 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8421 * doublest.c (floatformat_from_length): Accept also
8422 the real size of 'long double' type.
8424 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8426 From Klee Dienes <kdienes@apple.com>:
8427 * breakpoint.c (bpstat_copy): Copy the command lines as well
8428 as the old value, to match what is freed in bpstat_clear.
8430 2003-03-10 David Carlton <carlton@math.stanford.edu>
8432 * minsyms.c (add_minsym_to_hash_table): Replace
8433 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8434 (compare_minimal_symbols, compact_minimal_symbols)
8435 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8436 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8437 of DEPRECATED_SYMBOL_MATCHES_NAME.
8438 (lookup_minimal_symbol_solib_trampoline): Ditto.
8440 2003-03-10 Andrew Cagney <cagney@redhat.com>
8442 * regcache.h (regcache_cooked_read_ftype): Define.
8443 (regcache_save, regcache_restore): Add a cooked_read parameter.
8444 * regcache.c (regcache_save, regcache_restore): Update.
8445 (do_cooked_read): New function.
8446 (regcache_cpy): Pass do_cooked_read to regcache_save and
8449 2003-03-10 Andrew Cagney <cagney@redhat.com>
8451 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8452 * gdbarch.h, gdbarch.c: Re-generate.
8453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8454 * x86-64-tdep.h: Update.
8455 * x86-64-tdep.c (x86_64_init_abi): Update.
8456 * v850-tdep.c (v850_gdbarch_init): Update.
8457 * sparc-tdep.c (sparc_gdbarch_init): Update.
8458 * sh-tdep.c (sh_gdbarch_init): Update.
8459 * s390-tdep.c (s390_gdbarch_init): Update.
8460 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8461 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8462 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8463 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8464 * mips-tdep.c (mips_gdbarch_init): Update.
8465 * mcore-tdep.c (mcore_gdbarch_init): Update.
8466 * m68k-tdep.c (m68k_gdbarch_init): Update.
8467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8468 * ia64-tdep.c (ia64_gdbarch_init): Update.
8469 * i386-tdep.c (i386_gdbarch_init): Update.
8470 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8471 * hppa-tdep.c (hppa_gdbarch_init): Update.
8472 * h8300-tdep.c (h8300_gdbarch_init): Update.
8473 * frv-tdep.c (frv_gdbarch_init): Update.
8474 * cris-tdep.c (cris_gdbarch_init): Update.
8475 * avr-tdep.c (avr_gdbarch_init): Update.
8476 * arm-tdep.c (arm_gdbarch_init): Update.
8477 * alpha-tdep.c (alpha_gdbarch_init): Update.
8478 * sh-tdep.c (sh_init_extra_frame_info): Update.
8479 (sh64_init_extra_frame_info): Update.
8480 * ns32knbsd-nat.c (frame_num_args): Update.
8481 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8482 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8483 (xstormy16_frame_chain_valid): Update.
8484 * vax-tdep.c (vax_saved_pc_after_call): Update.
8485 * v850-tdep.c (v850_frame_chain): Update.
8486 (v850_pop_frame): Update.
8487 (v850_init_extra_frame_info): Update.
8488 * sparc-tdep.c (setup_arbitrary_frame): Update.
8489 * ns32k-tdep.c (umax_frame_num_args): Update.
8490 * s390-tdep.c (s390_pop_frame_regular): Update.
8491 * mn10300-tdep.c (mn10300_frame_chain): Update.
8492 (mn10300_pop_frame_regular): Update.
8493 (mn10300_init_extra_frame_info): Update.
8494 * mips-tdep.c (mips_init_frame_pc_first): Update.
8495 (mips_frame_chain): Update.
8496 (mips_pop_frame): Update.
8497 * mcore-tdep.c (mcore_frame_chain): Update.
8498 (mcore_pop_frame): Update.
8499 (mcore_init_extra_frame_info): Update.
8500 * arch-utils.c (init_frame_pc_default): Update.
8501 * m68k-tdep.c (isi_frame_num_args): Update.
8502 (delta68_frame_num_args): Update.
8503 (news_frame_num_args): Update.
8504 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8505 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8506 (alpha_frame_chain): Update.
8507 (alpha_pop_frame): Update.
8508 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8509 (hppa_init_extra_frame_info): Update.
8510 (hppa_frame_chain): Update.
8511 (hppa_frame_chain_valid): Update.
8512 * cris-tdep.c (cris_init_extra_frame_info): Update.
8513 * avr-tdep.c (avr_init_extra_frame_info): Update.
8514 * arm-tdep.c (arm_frame_chain_valid): Update.
8515 (arm_init_extra_frame_info): Update.
8516 (arm_pop_frame): Update.
8517 * frame.c (frame_pc_unwind): Update.
8518 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8519 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8520 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8521 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8522 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8523 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8525 2003-03-10 Andrew Cagney <cagney@redhat.com>
8527 * gdbarch.sh (gdbarch_unwind_pc): New method.
8528 * gdbarch.h, gdbarch.c: Regenerate.
8529 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8530 but use read_pc and FRAME_SAVED_PC as fall backs.
8531 (frame_saved_regs_pc_unwind): Delete function.
8532 (trad_frame_unwinder): Update.
8533 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8534 (struct frame_unwind): Update.
8535 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8536 (dummy_frame_unwind): Update.
8537 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8538 (sentinel_frame_unwinder): Update.
8539 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8540 (d10v_frame_unwind): Update.
8541 (d10v_unwind_pc): New function.
8542 (d10v_gdbarch_init): Set unwind_pc.
8544 2003-03-10 Andrew Cagney <cagney@redhat.com>
8546 * gdbarch.h: Re-generate.
8548 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8550 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8553 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8555 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8557 2003-03-08 Andrew Cagney <cagney@redhat.com>
8559 * cli-out.c: Update copyright.
8560 (cli_out_data): Define typedef. Use instead of ui_out_data.
8562 2003-03-08 Andrew Cagney <cagney@redhat.com>
8564 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8567 2003-03-07 Andrew Cagney <cagney@redhat.com>
8569 * gdbarch.sh: Don't generate two macro definitions when an
8570 undefined macro taking no arguments.
8571 * gdbarch.h: Regenerate.
8573 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8575 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8576 (x86_64_unwind_dummy_id): New functions.
8577 (x86_64_init_abi): Register these two new functions.
8579 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8581 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8582 (x86_64_skip_prologue): Move prologue detection to
8584 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8586 2003-03-05 Andrew Cagney <cagney@redhat.com>
8588 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8589 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8590 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8591 to use unwind_dummy_id when a dummy frame.
8592 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8594 * gdbarch.h, gdbarch.c: Regneerate.
8596 2003-03-05 Andrew Cagney <cagney@redhat.com>
8598 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8599 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8600 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8603 2003-03-05 Andrew Cagney <cagney@redhat.com>
8605 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8606 (struct d10v_unwind_cache): Delete field "frameless". Replace
8607 "next_addr" with "sp_offset". Add "r11_offset".
8608 (d10v_frame_unwind_cache): Update.
8609 (prologue_find_regs): Update. When "mv r11, sp", save the
8610 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8611 RN was saved in r11_offset.
8613 2003-03-05 Andrew Cagney <cagney@redhat.com>
8615 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8616 cached PC value in the next frame.
8618 2003-03-05 Andrew Cagney <cagney@redhat.com>
8620 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8621 "id_unwind_cache" with "id".
8622 (frame_id_unwind): Delete declaration.
8623 * frame.c (frame_id_unwind): Delete function.
8624 (get_prev_frame): Call the frame id unwind method directly. Store
8625 the returned next frame's ID value in NEXT_FRAME. Note that there
8626 is a problem with the wrong unwind ID being called with the wrong
8629 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8631 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8633 2003-03-05 James Ingham <jingham@apple.com>
8634 Daniel Jacobowitz <drow@mvista.com>
8636 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8637 (auto_cp_abi): New variable.
8638 (current_cp_abi, num_cp_abis): Make static.
8639 (CP_ABI_MAX): Define.
8640 (cp_abis): Turn into an array.
8641 (value_virtual_fn_field): Fix formatting.
8642 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8644 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8645 (list_cp_abis, _initialize_cp_abi): New functions.
8646 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8647 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8648 switch_to_cp_abi. Update prototype for register_cp_abi.
8649 * Makefile.in (cp-abi.o): Update dependencies.
8650 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8651 instead of switch_to_cp_abi.
8652 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8654 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8656 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8658 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8660 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8661 * dwarf2loc.c: Include "regcache.h".
8662 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8664 * Makefile.in (dwarf2loc.o): Update dependencies.
8666 2003-03-04 Theodore A. Roth <troth@openavr.org>
8668 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8669 number of io registers reported by remote target is not a multiple of
8672 2003-03-04 David Carlton <carlton@math.stanford.edu>
8674 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8675 (lookup_symbol_aux_psymtabs): Update call to
8676 lookup_partial_symbol.
8677 (lookup_transparent_type, find_main_psymtab)
8678 (make_symbol_overload_list): Ditto.
8680 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8682 * MAINTAINERS (Write after approval): Update my email address.
8684 2003-03-03 Andrew Cagney <cagney@redhat.com>
8686 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8687 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8688 predicate. Replace MAX_REGISTER_RAW_SIZE.
8689 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8690 MAX_REGISTER_VIRTUAL_SIZE.
8691 * regcache.c (legacy_max_register_raw_size): New function.
8692 (legacy_max_register_virtual_size): New function.
8693 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8694 (MAX_REGISTER_RAW_SIZE): Define.
8695 (legacy_max_register_raw_size): Declare.
8696 (legacy_max_register_virtual_size): Declare.
8697 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8698 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8699 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8700 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8701 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8702 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8703 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8704 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8705 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8706 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8707 * vax-tdep.c (vax_gdbarch_init): Update.
8708 * v850-tdep.c (v850_gdbarch_init): Update.
8709 * sparc-tdep.c (sparc_gdbarch_init): Update.
8710 * sh-tdep.c (sh_gdbarch_init): Update.
8711 * s390-tdep.c (s390_gdbarch_init): Update.
8712 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8713 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8714 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8715 * mips-tdep.c (mips_gdbarch_init): Update.
8716 * mcore-tdep.c (mcore_gdbarch_init): Update.
8717 * m68k-tdep.c (m68k_gdbarch_init): Update.
8718 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8719 * ia64-tdep.c (ia64_gdbarch_init): Update.
8720 * i386-tdep.c (i386_gdbarch_init): Update.
8721 * hppa-tdep.c (hppa_gdbarch_init): Update.
8722 * h8300-tdep.c (h8300_gdbarch_init): Update.
8723 * frv-tdep.c (frv_gdbarch_init): Update.
8724 * cris-tdep.c (cris_gdbarch_init): Update.
8725 * avr-tdep.c (avr_gdbarch_init): Update.
8726 * arm-tdep.c (arm_gdbarch_init): Update.
8727 * alpha-tdep.c (alpha_gdbarch_init): Update.
8728 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8729 max_register_raw_size or max_register_virtual_size.
8731 2003-03-03 David Carlton <carlton@math.stanford.edu>
8733 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8734 SYMBOL_MATCHES_NAME, add comment.
8735 (SYMBOL_MATCHES_NATURAL_NAME): New.
8736 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8737 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8738 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8739 * symtab.c (lookup_partial_symbol): Use
8740 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8742 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8743 SYMBOL_MATCHES_NAME.
8746 2003-03-03 David Carlton <carlton@math.stanford.edu>
8748 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8749 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8750 by regexp matching against SYMBOL_NATURAL_NAME.
8752 2003-03-03 David Carlton <carlton@math.stanford.edu>
8754 * linespec.c (find_method): Extract code into collect_methods.
8755 (collect_methods): New.
8757 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8759 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8762 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8763 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8765 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8767 * arch-utils.c (generic_register_byte): Fix to use the loop index
8768 and not regnum when summing the size of all registers up to regnum.
8770 2003-03-01 Andrew Cagney <cagney@redhat.com>
8772 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8773 FRAME_INIT_SAVED_REGS.
8774 * gdbarch.h, gdbarch.c: Regenerate.
8775 * stack.c (frame_info): Update.
8776 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8777 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8778 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8779 * ns32k-tdep.c (ns32k_pop_frame): Update.
8780 * mips-tdep.c (mips_pop_frame): Update.
8781 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8782 * ia64-tdep.c (ia64_frame_chain): Update.
8783 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8784 (ia64_frameless_function_invocation): Update.
8785 (ia64_init_extra_frame_info): Update.
8786 (ia64_pop_frame_regular): Update.
8787 * frame.h (struct frame_info): Update comment.
8788 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8789 * frame.c (frame_saved_regs_register_unwind): Update.
8790 (frame_saved_regs_register_unwind): Update.
8791 (deprecated_generic_get_saved_register): Update.
8792 * cris-tdep.c: Update comment.
8793 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8796 * x86-64-tdep.c (x86_64_init_abi): Update.
8797 * vax-tdep.c (vax_gdbarch_init): Update.
8798 * v850-tdep.c (v850_gdbarch_init): Update.
8799 * sparc-tdep.c (sparc_gdbarch_init): Update.
8800 * sh-tdep.c (sh_gdbarch_init): Update.
8801 * s390-tdep.c (s390_gdbarch_init): Update.
8802 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8803 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8804 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8805 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8806 * mips-tdep.c (mips_gdbarch_init): Update.
8807 * mcore-tdep.c (mcore_gdbarch_init): Update.
8808 * m68k-tdep.c (m68k_gdbarch_init): Update.
8809 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8810 * ia64-tdep.c (ia64_gdbarch_init): Update.
8811 * i386-tdep.c (i386_gdbarch_init): Update.
8812 * frv-tdep.c (frv_gdbarch_init): Update.
8813 * avr-tdep.c (avr_gdbarch_init): Update.
8814 * arm-tdep.c (arm_gdbarch_init): Update.
8815 * alpha-tdep.c (alpha_gdbarch_init): Update.
8817 2003-03-01 Andrew Cagney <cagney@redhat.com>
8819 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8820 option enum and switch. When no windows, set the interpreter to
8823 2003-03-01 Andrew Cagney <cagney@redhat.com>
8825 * main.c (captured_main): Replace magic option characters with an
8828 2003-03-01 Andrew Cagney <cagney@redhat.com>
8830 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8831 INIT_EXTRA_FRAME_INFO.
8832 * gdbarch.h, gdbarch.c: Regenerate.
8833 * arm-tdep.c: Update comments.
8834 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8835 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8836 * frame.h, avr-tdep.c: Ditto.
8837 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8838 (create_new_frame, legacy_get_prev_frame): Ditto.
8839 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8840 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8842 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8843 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8844 * v850-tdep.c (v850_gdbarch_init): Ditto.
8845 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8846 * sh-tdep.c (sh_gdbarch_init): Ditto.
8847 * s390-tdep.c (s390_gdbarch_init): Ditto.
8848 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8849 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8850 * mips-tdep.c (mips_gdbarch_init): Ditto.
8851 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8853 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8854 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8855 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8856 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8857 * frv-tdep.c (frv_gdbarch_init): Ditto.
8858 * cris-tdep.c (cris_gdbarch_init): Ditto.
8859 * avr-tdep.c (avr_gdbarch_init): Ditto.
8860 * arm-tdep.c (arm_gdbarch_init): Ditto.
8861 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8862 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8864 2003-03-01 Andrew Cagney <cagney@redhat.com>
8866 * gdbarch.sh (register_type): New function with predicate.
8867 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8868 * gdbarch.h, gdbarch.c: Re-generate.
8869 * arch-utils.c (generic_register_byte): Use generic_register_size.
8870 (generic_register_size): When available, use
8871 gdbarch_register_type.
8872 * regcache.c (init_regcache_descr): When available, initialize the
8873 register type array using gdbarch_register_type. If the
8874 architecture supplies gdbarch_register_type, do not use the legacy
8876 * d10v-tdep.c (d10v_register_type): Replace
8877 d10v_register_virtual_type.
8878 (d10v_gdbarch_init): Set register_type instead of
8879 register_virtual_type.
8881 2003-03-01 Andrew Cagney <cagney@redhat.com>
8883 * Makefile.in (ax-gdb.o): Update dependencies.
8884 * ax-gdb.c: Include "regcache.h".
8885 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8886 * findvar.c (value_of_register): Ditto.
8887 * infcmd.c (default_print_registers_info): Ditto.
8889 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8891 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8892 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8894 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8896 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8899 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8901 * Makefile.in (dwarf2loc.o): Update dependencies.
8902 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8903 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8904 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8905 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8906 (locexpr_tracepoint_var_ref): New function.
8907 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8909 2003-02-28 Andrew Cagney <cagney@redhat.com>
8911 * regcache.c (register_size): New function.
8912 * regcache.h (register_size): Declare
8913 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8914 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8916 2003-02-28 David Carlton <carlton@math.stanford.edu>
8918 * linespec.c (decode_compound): Extract code into find_method.
8921 2003-02-28 J. Brobecker <brobecker@gnat.com>
8923 * Makefile.in: Add rules to build and link in observer.o.
8925 2003-02-27 J. Brobecker <brobecker@gnat.com>
8927 * observer.c: Minor comments edits.
8929 2003-02-27 J. Brobecker <brobecker@gnat.com>
8931 * observer.h, observer.c: New file.
8933 2003-02-27 Andrew Cagney <cagney@redhat.com>
8935 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8937 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8939 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8940 (M6812_OP_STS_EXT): Likewise.
8941 (m6811_prologue): Use the above to recognize prologue.
8942 (m6812_prologue): Likewise.
8944 2003-02-27 David Carlton <carlton@math.stanford.edu>
8946 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8948 (compare_psymbols): Ditto.
8949 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8951 2003-02-27 Michael Snyder <msnyder@redhat.com>
8953 * f-lang.c (build_fortran_types): New function.
8954 (_initialize_f_language): Gdbarch-register built-in fortran types.
8955 * doublest.c (extract_floating): Fix warning text.
8957 2003-02-27 Andrew Cagney <cagney@redhat.com>
8959 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8960 predicate. Replaces PUSH_DUMMY_FRAME.
8961 * gdbarch.h, gdbarch.c: Regnerate.
8962 * valops.c (hand_function_call): Update. Call
8963 generic_push_dummy_frame directly.
8964 * vax-tdep.c (vax_gdbarch_init): Update.
8965 * sparc-tdep.c (sparc_gdbarch_init): Update.
8966 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8967 * m68k-tdep.c (m68k_gdbarch_init): Update.
8968 * hppa-tdep.c (hppa_gdbarch_init): Update.
8969 * alpha-tdep.c (alpha_gdbarch_init): Update.
8970 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8971 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8972 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8973 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8974 push_dummy_frame to generic_push_dummy_frame.
8975 * v850-tdep.c (v850_gdbarch_init): Ditto.
8976 * sh-tdep.c (sh_gdbarch_init): Ditto.
8977 * s390-tdep.c (s390_gdbarch_init): Ditto.
8978 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8979 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8980 * mips-tdep.c (mips_gdbarch_init): Ditto.
8981 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8983 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8984 * i386-tdep.c (i386_gdbarch_init): Ditto.
8985 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8986 * frv-tdep.c (frv_gdbarch_init): Ditto.
8987 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8988 * cris-tdep.c (cris_gdbarch_init): Ditto.
8989 * avr-tdep.c (avr_gdbarch_init): Ditto.
8990 * arm-tdep.c (arm_gdbarch_init): Ditto.
8992 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8994 * mips-tdep.c (show_mips_abi): New function.
8995 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8996 command ``show mips abi''.
8998 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9000 From Elena Zannoni <ezannoni@redhat.com>
9001 * dbxread.c (process_one_symbol): Only record line 0 if one or
9002 more sline entries have been seen for the function.
9004 2003-02-26 Michael Chastain <mec@shout.net>
9006 * configure: Regenerate with autoconf 000227.
9008 2003-02-26 Michael Chastain <mec@shout.net>
9011 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9012 for old libc5/glibc.
9013 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9015 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9017 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9018 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9020 2003-02-26 Michael Chastain <mec@shout.net>
9022 * configure.in: New variable HAVE_UINTPTR_T.
9023 * configure, config.in: Regenerated.
9025 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9028 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9030 2003-02-25 Andrew Cagney <cagney@redhat.com>
9032 * frame.c (get_prev_frame): Add comment on check for
9033 inside_entry_func. Only check for inside_entry_file when not a
9034 dummy and not a sentinel. Check that the new frame is not inner
9037 2003-02-25 Andrew Cagney <cagney@redhat.com>
9039 * frame.c (frame_debug): New variable.
9040 (_initialize_frame): Add "set/show debug frame" command.
9041 (get_prev_frame): When frame_debug, print reason why unwind
9044 2003-02-25 Michael Chastain <mec@shout.net>
9046 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9047 to avoid uintptr_t definition problems.
9049 2003-02-25 David Carlton <carlton@math.stanford.edu>
9051 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9052 (SYMBOL_LINKAGE_NAME): Ditto.
9053 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9054 SYMBOL_LINKAGE_NAME.
9055 (struct general_symbol_info): Expand comment.
9056 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9057 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9058 (SYMBOL_MATCHES_REGEXP): Ditto.
9059 * symtab.c (symbol_natural_name): New function.
9060 * objfiles.h: Replace all uses of SYMBOL_NAME by
9061 DEPRECATED_SYMBOL_NAME.
9062 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9063 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9064 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9065 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9066 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9067 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9068 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9069 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9070 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9071 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9073 * ada-exp.y: Update copyright.
9074 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9075 * cp-valprint.c: Ditto.
9077 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9079 * infptrace.c (detach): Do not flag error if ptrace detach fails
9080 and errno is set to ESRCH.
9082 2003-02-24 Andrew Cagney <cagney@redhat.com>
9084 * infptrace.c (udot_info): Change type of udot_off to long. Use
9085 paddr when printing udot_off's value.
9087 2003-02-24 David Carlton <carlton@math.stanford.edu>
9089 * symtab.c (make_symbol_overload_list): Only read in partial
9090 symtabs containing a matching partial symbol.
9092 2003-02-24 David Carlton <carlton@math.stanford.edu>
9094 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9095 do the comparison, not strcmp.
9096 * symfile.c (compare_psymbols): Ditto.
9097 * defs.h: Declare strcmp_iw_ordered.
9098 * utils.c (strcmp_iw_ordered): New function.
9100 2003-02-24 Jim Blandy <jimb@redhat.com>
9102 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9103 support, shared libs): Remove my name from here, to better reflect
9106 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9108 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9109 (target_ops): Add to_have_continuable_watchpoint.
9110 * target.c (update_current_target): Add INHERIT line for
9111 to_have_continuable_watchpoint.
9112 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9113 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9114 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9115 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9117 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9119 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9122 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9124 * solib.c (solib_open): Call target defined search function after
9125 failing with solib-search-path.
9126 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9127 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9129 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9131 * MAINTAINERS: Add myself to Write After section.
9133 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9135 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9137 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9139 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9140 (m68hc11_add_reggroups): New function.
9141 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9142 (m68hc11_gdbarch_init): Install the reggroups.
9143 (_initialize_m68hc11_tdep): Initialize them.
9145 2003-02-21 James E Wilson <wilson@tuliptree.org>
9147 * MAINTAINERS: Update my email address.
9149 2003-02-21 David Carlton <carlton@math.stanford.edu>
9151 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9153 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9155 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9156 * symtab.h: Add opaque declarations of struct axs_value and
9158 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9159 (struct location_funcs): New type.
9160 (struct symbol): Add "loc" to aux_value.
9161 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9162 * dwarf2read.c: Include "dwarf2expr.h".
9163 (dwarf2_symbol_mark_computed): New function.
9164 (read_func_scope): Use it.
9165 (var_decode_location): New function.
9166 (new_symbol): Use it.
9167 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9169 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9170 (dwarf2expr_h, dwarf2loc_h): New variables.
9171 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9172 (dwarf2expr.o, dwarf2loc.o): New rules.
9173 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9174 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9176 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9177 * m2-exp.y (yylex): Likewise.
9178 * printcmd.c (address_info, print_frame_args): Likewise.
9179 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9180 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9181 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9182 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9183 * symtab.c (lookup_block_symbol): Likewise.
9185 2003-02-20 Adam Fedor <fedor@gnu.org>
9187 * symtab.h: Remove objc_specific struct
9188 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9189 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9190 Have language_objc use cplus_specific struct.
9192 2003-02-20 Tom Tromey <tromey@redhat.com>
9194 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9195 TYPE_NAME, when printing a String value. PR java/1075.
9197 2003-02-20 Adam Fedor <fedor@gnu.org>
9199 * objc-lang.h (find_methods): Remove declaration.
9200 * objc-lang.c (find_methods): Make static.
9202 2003-02-20 Christopher Faylor <cgf@redhat.com>
9204 * win32-nat.c (get_image_name): Check return value from
9206 (child_xfer_memory): Ditto.
9208 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9210 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9211 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9212 '${exec_prefix}' (in addition to the expansion thereof) as
9214 * configure: Rebuilt.
9216 2003-02-20 David Carlton <carlton@math.stanford.edu>
9218 * symtab.c (search_symbols): Revert the search_symbols part of my
9219 2002-12-23 patch. Add comment.
9221 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9223 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9224 * dbxread.c (elfstab_build_psymtabs): Don't call
9225 install_minimal_symbols.
9226 (stabsect_build_psymtabs): Likewise.
9227 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9229 * somread.c (som_symfile_read): Call install_minimal_symbols
9230 and do_cleanups earlier.
9231 * nlmread.c (nlm_symfile_read): Likewise.
9232 * mdebugread.c (elfmdebug_build_psymtabs): Call
9233 install_minimal_symbols and make appropriate cleanups.
9235 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9237 * solib.c (reload_shared_libraries): New function.
9238 (_initialize_solib): Add callbacks for ``set solib-search-path''
9239 and ``set solib-absolute-prefix''.
9241 2003-02-20 David Carlton <carlton@math.stanford.edu>
9243 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9245 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9246 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9247 * ada-typeprint.c (ada_typedef_print): Ditto.
9248 * ax-gdb.c (gen_var_ref): Ditto.
9249 * breakpoint.c (print_one_breakpoint): Ditto.
9250 * buildsym.c (finish_block): Ditto.
9251 * c-valprint.c (c_val_print): Ditto.
9252 * expprint.c (print_subexp): Ditto.
9253 * findvar.c (locate_var_value): Ditto.
9254 * infcmd.c (jump_command): Ditto.
9255 * linespec.c (decode_line_2, decode_compound): Ditto.
9256 * maint.c (maintenance_translate_address): Ditto.
9257 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9258 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9260 * p-valprint.c (pascal_val_print): Ditto.
9261 * stabsread.c (define_symbol): Ditto.
9262 * stack.c (print_frame, frame_info, print_block_frame_locals)
9263 (print_frame_arg_vars, return_command): Ditto.
9264 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9265 * symmisc.c (print_symbol): Ditto.
9266 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9267 (compare_search_syms, print_symbol_info, print_msymbol_info)
9268 (rbreak_command): Ditto.
9269 * tracepoint.c (tracepoints_info): Ditto.
9270 * typeprint.c (typedef_print): Ditto.
9271 * valops.c (value_of_variable, hand_function_call): Ditto.
9272 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9273 * ada-typeprint.c: Update Copyright.
9274 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9275 * tracepoint.c, cli/cli-cmds.c: Ditto.
9277 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9279 * frame.c (generic_unwind_get_saved_register): Make non-static.
9280 * frame.h (generic_unwind_get_saved_register): Declare.
9281 * mips-tdep.c (read_next_frame_reg): Fetch register from
9282 current regcache when frame is NULL.
9283 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9285 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9286 instead of frame_register_unwind().
9288 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9290 * remote-sim.c (gdbsim_insert_breakpoint)
9291 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9294 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9296 * remote.c (_initialize_remote): Add commands "set/show remote
9297 hardware-watchpoint-limit" and "set/show remote
9298 hardware-breakpoint-limit".
9299 (remote_hw_watchpoint_limit): Initialize to -1.
9300 (remote_hw_breakpoint_limit): Ditto.
9301 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9303 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9305 * coff-pe-read.c: New file - support reading of minimal symbols from a
9306 portable executable using the export table.
9307 * coff-pe-read.h: New file.
9308 * coffread.c: Include coff-pe-read.h.
9309 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9310 debugging symbols found.
9311 * Makefile.in (SFILES): Add coff-pe-read.o.
9312 (coff_pe_read_h): Define.
9313 (COMMON_OBS): Add coff-pe-read.o.
9314 (coffread.o): Add coff_pe_read_h dependency.
9315 (coff-pe-read.o): New target.
9317 2003-02-19 David Carlton <carlton@math.stanford.edu>
9319 * Makefile.in (SFILES): Add block.c.
9321 (COMMON_OBS): Add block.o.
9323 (x86-64-tdep.o): Add $(block_h).
9324 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9325 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9326 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9327 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9328 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9329 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9330 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9331 * value.h: Add opaque declaration for struct block.
9332 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9333 * ada-lang.h: Ditto.
9334 * x86-64-tdep.c: #include "block.h"
9335 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9336 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9337 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9338 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9339 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9340 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9341 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9342 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9343 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9344 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9345 * symtab.c (block_function): Ditto.
9346 (contained_in): Ditto.
9347 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9348 block.h. Add opaque declaration for struct block.
9349 * symtab.h: Move block_function and contained_in declarations to
9350 block.h. Add opaque declarations for struct block, struct
9352 (struct block): Move to block.h.
9353 (struct blockvector): Ditto.
9354 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9355 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9356 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9357 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9358 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9360 * block.c: New file.
9361 * block.h: New file.
9363 2003-02-19 Theodore A. Roth <troth@openavr.org>
9365 * avr-tdep.c (avr_extract_return_value): Remove function.
9366 (avr_store_return_value): Remove function.
9367 (avr_extract_struct_value_address): Remove function.
9368 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9370 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9372 * rs6000-tdep.c: Include "gdb_assert.h".
9373 (registers_e500): Add "acc" and "spefscr".
9374 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9375 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9376 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9378 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9380 2003-02-18 Keith Seitz <keiths@redhat.com>
9382 * Makefile.in: Add gdbtk-interps.c.
9384 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9386 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9387 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9389 2003-02-18 Andrew Cagney <cagney@redhat.com>
9391 * symtab.h (struct objfile): Add opaque declaration.
9393 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9395 From Jim Ingham <jingham@apple.com>:
9396 * dbxread.c (process_one_symbol): Use last_function_start rather
9397 than function_start_offset to find the real beginning of the
9398 current function. The latter is just the text section offset on
9399 some systems, the former is always the real function start.
9401 2003-02-17 Andrew Cagney <cagney@redhat.com>
9403 * configure.in: Revert ${target} != ${host}.
9405 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9407 * configure.in (Makefile): Use the test ${target} != ${host},
9408 instead of the absence of the "nm.h" file, to determine of the
9409 configuration non-native.
9410 * configure: Regenerate.
9412 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9414 From Brian Ford <ford@vss.fsi.com>
9416 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9417 conditionalize tui_active test.
9418 (lookup_cmd_1): Ditto.
9420 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9422 * configure.in: Add check for _etext.
9423 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9425 * config.in, configure: regenerated.
9427 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9429 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9431 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9433 * main.c (tui_version): Delete variable.
9434 (captured_main): When --tui, set interpreter_p to "tui" instead of
9435 enabling tui_version.
9436 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9438 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9439 * cli/cli-cmds.c (disassemble_command): Ditto.
9440 * defs.h (tui_version): Delete declaration.
9441 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9442 (tui-interp.o): Add rules.
9443 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9445 2003-02-14 Christopher Faylor <cgf@redhat.com>
9447 * win32-nat.c (register_loaded_dll): Correctly set address range for
9450 2003-02-12 Jason Molenda (jmolenda@apple.com)
9452 * symmisc.c (print_objfile_statistics): Include information about
9453 the number of psymtabs and symtabs in each object file.
9455 2003-02-13 Keith R Seitz <keiths@redhat.com>
9457 * main.h (struct captured_main_args): Add interpreter_p.
9458 * main.c (captured_main): Initialize interpreter_p from context.
9459 * gdb.c (main): Set interpreter_p argument.
9460 * Makefile.in (gdb.o): Add dependency for interps.h.
9462 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9464 * event-top.c (cli_command_loop): Delete declaration.
9465 (_initialize_event_loop): Delete function setting event_loop_hook.
9466 * event-top.h (cli_command_loop): Declare. Update copyright.
9467 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9468 * interps.c (current_interp_command_loop): When event_loop_p, call
9471 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9473 * interps.h (interp_command_loop_ftype): Change return type to
9476 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9478 * x86-64-tdep.c (x86_64_extract_return_value)
9479 (x86_64_store_return_value): Use regcache instead of regbuf.
9480 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9481 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9483 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9485 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9486 * aclocal.m4: Regenerate.
9487 * configure: Regenerate.
9489 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9490 TCL_LD_SEARCH_FLAGS.
9492 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9494 * dwarf2cfi.c: Reindented.
9496 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9498 * interps.c (clear_interpreter_hooks): Convert function definition
9501 2003-02-07 David Carlton <carlton@math.stanford.edu>
9503 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9505 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9507 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9508 (struct type): ...to here.
9509 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9511 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9512 (replace_type): Set length on all type variants for a given type.
9514 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9516 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9518 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9520 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9522 * Makefile.in (symm-nat.o): Update dependencies.
9523 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9524 (lynx-nat.o, ia64-linux-nat.): Ditto.
9525 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9526 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9527 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9529 * Makefile.in (inflow_h): Define.
9530 (procfs.o, inflow.o, procfs.o): Update dependencies.
9531 * inftarg.c (child_stop): Delete extern declaration of
9532 inferior_process_group. Include "inflow.h".
9533 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9534 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9535 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9536 (our_process_group, inferior_process_group): Extern declarations.
9538 * procfs.c: Include "gdb_assert.h".
9540 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9541 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9542 * jv-typeprint.c (java_type_print_base): Ditto.
9543 * typeprint.c (typedef_print): Eliminate STREQ.
9544 * cli/cli-script.c (define_command, define_command): Ditto.
9545 * main.c (captured_main): Ditto.
9546 * values.c (lookup_internalvar): Ditto.
9547 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9548 within `if' conditional.
9549 * linespec.c (decode_line_2): Ditto.
9550 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9551 (bfd_openw_with_cleanup): Ditto.
9553 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9555 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9556 legacy_extract_return_value and store_return_value to
9557 legacy_return_value.
9559 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9561 * win32-nat.c (get_relocated_section_addrs): New function. Find
9562 section load addresses for symbol handling in relocated DLLs.
9563 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9565 2003-02-05 Fred Fish <fnf@intrinsity.com>
9567 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9569 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9571 (angel_RDI_info): Ditto.
9572 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9574 (threads_continue_all_with_signals): Ditto.
9576 2003-02-05 Jim Ingham <jingham@apple.com>
9577 Keith Seitz <keiths@redhat.com>
9578 Elena Zannoni <ezannoni@redhat.com>
9579 Andrew Cagney <ac131313@redhat.com>
9581 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9582 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9583 (SUBDIR_MI_OBS): Add "mi-interp.o".
9584 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9585 (SFILES): Add "interps.c".
9586 (COMMON_OBS): Add "interps.o".
9587 (interps_h, mi_main_h): Define.
9588 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9589 (mi-main.o, main.o, event-top.o): Update dependencies.
9590 * cli/cli-interp.c: New file.
9591 * interps.h, interps.c: New files.
9592 * top.c: (gdb_init): Don't install the default interpreter, handed
9594 * main.c: Include "interps.h".
9595 (interpreter_p): Note that it should malloc'ed.
9596 (captured_command_loop): Call current_interp_command_loop.
9597 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9598 xfree and xstrdup when updating interpreter_p. Install the
9599 default interpreter. Add hack to stop mi1's copyright notice
9601 * event-top.h (gdb_setup_readline): Declare.
9602 (gdb_disable_readline): Declare.
9603 * event-top.c: Include "interps.h".
9604 (display_gdb_prompt): Call current_interp_display_prompt_p.
9605 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9606 gdb_stdlog, and gdb_stdtarg.
9607 (_initialize_event_loop): Don't call gdb_setup_readline.
9608 * cli-out.c (cli_out_set_stream): New function.
9609 * cli-out.h (cli_out_set_stream): Declare.
9611 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9613 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9614 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9615 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9616 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9617 config/i386/i386v42mp.mt: Removed.
9619 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9621 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9624 2003-02-05 Michael Chastain <mec@shout.net>
9626 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9627 2.12.1 and earlier versions.
9629 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9631 Remove orphaned hosts, targets and files.
9632 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9633 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9634 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9635 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9636 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9637 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9638 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9639 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9640 * config/sparc/tm-sp64sim.h: Delete.
9641 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9643 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9644 mips*-dec-mach3* targets.
9646 2003-02-04 Michael Chastain <mec@shout.net>
9648 * NEWS: Fix typo: sepcifying -> specifying.
9650 2003-02-04 Michael Chastain <mec@shout.net>
9652 * dwarfread.c: Add documentation on the state of dwarf-1,
9653 looking towards obsoletion.
9655 2003-02-03 Michael Chastain <mec@shout.net>
9657 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9658 gdb/testsuite/gdb.c++/pr-1023.exp.
9660 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9662 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9663 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9665 * utils.c (init_page_info): Delete reference to MPW in comments.
9666 * main.c (captured_main): Delete #ifdef MPW.
9668 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9670 * NEWS: Note that the m32r-*-elf* is obsolete.
9671 * monitor.c (monitor_expect): Obsolete reference to m32r.
9672 * configure.tgt: Mark m32r-*-elf* as obsolete.
9673 * MAINTAINERS: Mark m32k as obsolete.
9674 * m32r-rom.c: Obsolete file.
9675 * config/m32r/m32r.mt: Obsolete file.
9676 * config/m32r/tm-m32r.h: Obsolete file.
9677 * m32r-stub.c: Obsolete file.
9678 * m32r-tdep.c: Obsolete file.
9680 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9682 * NEWS: Mention that the z8k-zilog-none is obsolete.
9683 * MAINTAINERS: Mark z8k as obsolete.
9684 * configure.tgt: Obsolete the z8k-*-coff* target.
9685 * config/z8k/z8k.mt: Obsolete file.
9686 * config/z8k/tm-z8k.h: Obsolete file.
9687 * z8k-tdep.c: Obsolete file.
9689 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9691 * NEWS: Mention that the mn10200-elf is obsolete.
9692 * configure.tgt: Obsolete mn10200-*-* target.
9693 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9694 mention that the mn10200 is obsolete.
9695 * breakpoint.h: Ditto.
9696 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9697 * config/mn10200/mn10200.mt: Obsolete file.
9698 * config/mn10200/tm-mn10200.h: Obsolete file.
9699 * mn10200-tdep.c: Obsolete file.
9701 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9703 * MAINTAINERS: Mark h8500 as obsolete.
9704 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9705 * findvar.c (value_from_register): Ditto.
9706 * h8500-tdep.c: Mark file as obsolete.
9707 * config/h8500/h8500.mt: Ditto.
9708 * config/h8500/tm-h8500.h: Ditto.
9709 * NEWS: Mention that h8500 is obsolete.
9711 2003-02-04 David Carlton <carlton@math.stanford.edu>
9713 * objfiles.c (allocate_objfile): Always set name. Add comment at
9715 * jv-lang.c (get_dynamics_objfile): Add comment.
9717 2003-02-04 David Carlton <carlton@math.stanford.edu>
9719 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9720 * printcmd.c (build_address_symbolic): Replace uses of
9721 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9722 SYMBOL_NAME, and asm_demangle.
9725 2003-02-04 David Carlton <carlton@math.stanford.edu>
9727 * linespec.c (decode_compound): Extract code into
9729 (lookup_prefix_sym): New function.
9731 2003-02-04 David Carlton <carlton@math.stanford.edu>
9733 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9734 FLOAT_COERCION_BADNESS.
9735 * gdbtypes.c (rank_one_type): Replace all uses of
9736 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9738 2003-02-04 Jim Blandy <jimb@redhat.com>
9740 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9741 section, let dwarf_macinfo_section point to it, not
9744 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9746 Pointed out by Anton Blanchard <anton@samba.org>.
9747 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9748 (ppc_linux_at_sigtramp_return_path): Use it.
9750 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9752 * defs.h (streq): Add prototype.
9753 * utils.c (streq): New function.
9755 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9756 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9757 * mdebugread.c (new_symbol): Likewise.
9758 * stabsread.c (define_symbol): Likewise.
9759 * coffread.c (process_coff_symbol): Likewise.
9760 * dwarfread.c (new_symbol): Likewise.
9762 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9763 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9765 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9766 SYMBOL_INIT_DEMANGLED_NAME.
9767 * objfiles.c: Include "hashtab.h".
9768 (allocate_objfile): Call htab_set_functions_ex for the
9769 demangled_names_hash.
9770 (free_objfile): Call htab_delete for the demangled_names_hash.
9771 * objfiles.h (struct htab): Add declaration.
9772 (struct objfile): Add demangled_names_hash.
9773 * symfile.c: Include "hashtab.h".
9774 (reread_symbols): Call htab_delete for the demangled_names_hash.
9775 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9776 SYMBOL_NAME in the bcache.
9777 * symtab.c: Include "hashtab.h". Update comments.
9778 (create_demangled_names_hash, symbol_set_names): New functions.
9779 (symbol_find_demangled_name): New function, broken out from
9780 symbol_init_demangled_names.
9781 (symbol_init_demangled_names): Use it.
9782 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9783 (SYMBOL_SET_NAMES): New macro.
9784 (symbol_set_names): Add prototype.
9786 2003-02-03 Jim Blandy <jimb@redhat.com>
9788 Use a single, consistent representation for an empty minimal
9789 symbol table in an objfile.
9790 * objfiles.c (terminate_minimal_symbol_table): New function.
9791 (allocate_objfile): Call it.
9792 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9793 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9795 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9796 objfile has minimal symbols, compare minimal_symbol_count to zero,
9797 instead of comparing msymbols with NULL.
9798 * objfiles.c (have_minimal_symbols): Same.
9799 * solib-sunos.c (solib_add_common_symbols): Call
9800 terminate_minimal_symbol_table.
9801 * symfile.c (reread_symbols): Same.
9803 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9805 * s390-tdep.c (s390_address_class_type_flags)
9806 (s390_address_class_type_flags_to_name)
9807 (s390_address_class_name_to_type_flags): New functions.
9808 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9809 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9811 2003-02-03 Michael Snyder <msnyder@redhat.com>
9813 * arm-tdep.c: Fix spell-o in comment.
9815 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9817 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9818 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9819 error messages to contain BFD filename.
9821 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9823 Fix PR gdb/742 gdb/743 gdb/877
9824 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9825 (do_mixed_source_and_assembly): Use
9826 make_cleanup_ui_out_tuple_begin_end and
9827 make_cleanup_ui_out_tuple_begin_end.
9828 (do_mixed_source_and_assembly): Ditto.
9829 * thread.c (do_captured_list_thread_ids): Ditto.
9830 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9831 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9832 ui_out_tuple_end): Delete prototypes.
9833 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9834 ui_out_list_end, ui_out_tuple_end): Delete.
9836 From Kevin Buettner <kevinb@redhat.com>:
9837 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9838 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9839 (do_cleanup_table_end): New functions.
9840 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9841 Use cleanups to invoke_ui_out_tuple_end().
9842 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9843 * cli/cli-setshow.c (cmd_show_list): Use
9844 make_cleanup_ui_out_tuple_begin_end.
9846 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9848 * frame.c (frame_unwind_register): New function.
9849 (frame_unwind_unsigned_register): Use.
9850 (frame_unwind_signed_register): Use.
9851 (frame_read_register): New function.
9852 * frame.h (frame_unwind_register): Declare.
9853 (frame_read_register): Declare.
9855 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9856 and frame_unwind_register instead of read_memory, write_register
9857 and deprecated_write_register_bytes.
9859 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9861 * frame.h: Note that namelen can be negative.
9862 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9865 * NEWS: Mention that the d10v's `regs' command is deprecated.
9866 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9867 (d10v_print_registers_info): New function.
9868 (show_regs): Call d10v_print_registers_info.
9869 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9871 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9873 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9874 lost in the previous patch.
9876 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9878 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9879 * stack.c (print_frame_info_base): Output complete FRAME tuple
9880 for synthesized frames.
9882 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9884 * mips-nat.c (zerobuf): Delete.
9885 (fetch_inferior_registers): Alloc local zerobuf.
9886 (fetch_core_registers): Alloc local zerobuf.
9887 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9888 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9889 * thread-db.c (thread_db_store_registers): Ditto.
9890 * sh-tdep.c (sh_do_register): Ditto.
9891 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9892 * remote-sim.c (gdbsim_store_register): Ditto.
9893 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9894 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9895 * monitor.c (monitor_supply_register): Ditto.
9896 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9897 * mips-nat.c (fetch_inferior_registers): Ditto.
9898 * m68klinux-nat.c (fetch_register): Ditto.
9899 * lynx-nat.c (fetch_inferior_registers): Ditto.
9900 (fetch_inferior_registers): Ditto.
9901 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9902 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9903 (hpux_thread_store_registers): Ditto.
9904 * hppah-nat.c (fetch_register): Ditto.
9905 * hppab-nat.c (fetch_register): Ditto.
9906 * hppa-tdep.c (pa_register_look_aside): Ditto.
9907 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9908 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9910 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9912 * gdbarch.sh: Explictly specify all method levels. When a
9913 variable with an empty level, provide a non-multi-arch default.
9914 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9915 * gdbarch.h: Re-generate.
9916 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9917 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9919 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9921 * defs.h (host_pointer_to_address): Delete declaration.
9922 (address_to_host_pointer): Delete declaration.
9923 * utils.c (host_pointer_to_address): Delete function.
9924 (address_to_host_pointer): Delete function.
9925 * procfs.c (procfs_address_to_host_pointer): New function.
9926 * procfs.c (proc_set_watchpoint): Use.
9927 (procfs_can_use_hw_breakpoint): Update comments.
9928 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9929 (som_solib_add): Use.
9930 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9931 * hppa-tdep.c (unwind_command): Use.
9933 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9935 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9938 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9939 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9940 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9941 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9942 (define_symbol): Update.
9943 * symfile.c (generic_load): Remove references to nindy.
9944 * symtab.c: Remove references to nindy.
9946 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9948 * infcmd.c (print_float_info): Delete code conditional on
9950 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9951 * config/m68k/nm-apollo68b.h: Ditto.
9952 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9953 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9954 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9956 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9958 * config/i386/tm-i386os9k.h: Removed.
9960 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9961 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9962 they're identical to i[3456]86-*-sysv* now.
9963 * config/i386/i386v32.mh: Removed.
9964 * config/i386/xm-i386v32.h: Removed.
9965 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9967 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9969 * config/i386/i386dgux.mh: Removed.
9970 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9972 * configure.in: Fix typo.
9973 * configure: Regenerated.
9975 2003-01-31 David Carlton <carlton@math.stanford.edu>
9977 * dwarf2read.c (dwarf2_locate_sections): Set
9978 dwarf_ranges_section.
9980 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9982 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9983 * utils.c: Update comments documenting legitimate uses of PTR.
9985 * utils.c: Re-indent.
9987 * config/djgpp/fnchange.lst: Delete nindy files.
9988 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9989 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9990 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9991 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9992 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9993 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9994 * Makefile.in (init.c): Remove nindy references.
9995 (saber_gdb): Delete rule.
9996 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9997 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9999 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10000 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10001 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10002 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10003 nindy-share/stop.h.
10004 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10005 * saber.suppress: Delete file.
10007 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10009 * dbxread.c (stabs_data): New static variable.
10010 (fill_symbuf): Support an in-memory buffer for stabs data.
10011 (stabs_seek): New function.
10012 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10013 (read_ofile_symtab): Use stabs_seek.
10014 (elfstab_build_psymtabs): Take an asection* instead of
10015 an offset and size. Relocate the stabs data if necessary.
10016 Save the section* for dbx_psymtab_to_symtab.
10017 * dwarf2read.c: Add section variables for each debug section.
10018 (dwarf2_locate_sections): Fill them in.
10019 (dwarf2_read_section): Take an asection* argument.
10020 Relocate the section contents if necessary.
10021 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10022 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10023 it to dwarf2_read_section.
10024 (dwarf2_build_frame_info): Update callers.
10025 * elfread.c (elf_symfile_read): Update call to
10026 elfstab_build_psymtabs.
10027 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10028 (DBX_STAB_SECTION): New macro.
10029 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10030 * symfile.c (symfile_dummy_outputs): New function.
10031 (symfile_relocate_debug_section): New function.
10032 * symfile.h (symfile_relocate_debug_section): Add prototype.
10034 2003-01-31 Richard Henderson <rth@redhat.com>
10036 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10037 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10038 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10039 * alpha-tdep.c (alpha_register_name): Add "unique".
10040 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10041 (ALPHA_UNIQUE_REGNUM): New.
10042 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10044 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10046 * README: Remove reference to Ericsson 1800 monitor.
10047 * Makefile.in (remote-es.o): Delete rule.
10048 (ALLDEPFILES): Delete remote-es.c.
10049 * remote-es.c: Delete file.
10050 * config/m68k/es1800.mt: Delete file.
10051 * config/djgpp/fnchange.lst: Update.
10052 * configure.tgt: Delete m68*-ericsson-* target.
10054 2003-01-31 Adam Fedor <fedor@gnu.org>
10056 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10057 Remove duplicate/shadowing variable of same name.
10059 2003-01-30 Jim Blandy <jimb@redhat.com>
10061 * symfile.c (find_separate_debug_file): Assert that the objfile's
10062 directory name we compute ends with a slash, and then assume that
10063 that's so everywhere we use it.
10065 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10067 * valops.c (value_assign): Flush frame cache after stores to memory
10070 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10072 * Makefile.in (mon960-rom.o): Delete rule.
10073 * mon960-rom.c: Delete file.
10075 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10077 * d10v-tdep.c: Include "frame-unwind.h".
10078 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10080 (next_addr, uses_frame): Delete.
10081 (struct d10v_unwind_cache): Define.
10082 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10083 Use info instead of next_addr and uses_frame globals.
10084 (d10v_frame_init_saved_regs): Delete function.
10085 (d10v_init_extra_frame_info): Delete function.
10086 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10087 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10088 init_frame_pc or frame_saved_pc.
10089 (d10v_pop_frame): Delete function.
10090 (do_d10v_pop_frame): Delete function.
10091 (d10v_frame_chain): Delete function.
10092 (d10v_frame_chain_valid): Delete function.
10093 (d10v_frame_pc_unwind): New function.
10094 (d10v_frame_id_unwind): New function.
10095 (saved_regs_unwinder): New function.
10096 (d10v_frame_register_unwind): New function.
10097 (d10v_frame_pop): New function.
10098 (d10v_frame_unwind): New variable.
10099 (d10v_frame_p): New function.
10100 (d10v_frame_saved_pc): Delete function.
10101 * Makefile.in (d10v-tdep.o): Update dependencies.
10103 2003-01-30 J. Brobecker <brobecker@gnat.com>
10105 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10106 causing some regressions due to a change in the default value
10109 2003-01-29 Richard Henderson <rth@redhat.com>
10110 Elena Zannoni <ezannoni@redhat.com>
10111 Daniel Jacobowitz <drow@mvista.com>
10114 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10116 (RANGES_SECTION): New.
10117 (dwarf_ranges_buffer): New variable.
10118 (struct comp_unit_head): Add member "die".
10119 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10120 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10121 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10122 (dwarf2_locate_sections): Likewise.
10123 (dwarf2_build_psymtabs): Read .debug_ranges.
10124 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10125 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10126 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10127 Look for DW_AT_ranges and return the bounding box.
10129 2003-01-29 Brian Ford <ford@vss.fsi.com>
10131 * win32-nat.c (cygwin_pid): Removed as unused.
10132 (child_attach): Try fall back to Cygwin pid.
10134 2003-01-29 Jim Blandy <jimb@redhat.com>
10136 * objfiles.h (struct objfile): Doc fix.
10138 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10140 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10141 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10142 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10143 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10144 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10145 (FRAME_SAVED_PC): Change to a function with predicate.
10146 * gdbarch.h, gdbarch.c: Re-generate.
10148 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10150 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10152 * complaints.c (complain): Delete function.
10153 * complaints.h (struct deprecated_complaint): Delete definition.
10154 (complain): Delete declaration.
10156 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10158 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10161 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10163 * sentinel-frame.h, sentinel-frame.c: New files.
10164 * Makefile.in (frame.o): Update dependencies.
10165 (SFILES): Add sentinel-frame.c.
10166 (sentinel_frame_h): Define.
10167 (COMMON_OBS): Add sentinel-frame.o.
10168 (sentinel-frame.o): Specify dependencies.
10169 * frame.c: Include "sentinel-frame.h".
10170 (frame_register_unwind): Rewrite assuming that there is always a a
10172 (frame_register, generic_unwind_get_saved_register): Ditto.
10173 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10174 (create_sentinel_frame, unwind_to_current_frame): New functions.
10175 (get_current_frame): Rewrite using create_sentinel_frame and
10176 unwind_to_current_frame. When possible, always create a frame.
10177 (create_new_frame): Set next to the sentinel frame.
10178 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10179 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10180 ID cache when necessary.
10181 (frame_saved_regs_id_unwind): Use frame_relative_level.
10182 (deprecated_generic_get_saved_register): Use frame_relative_level,
10183 get_frame_saved_regs, get_frame_pc, get_frame_base and
10185 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10188 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10190 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10192 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10194 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10195 (maintenance_set_profile_cmd): Use error () instead of warning ().
10197 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10199 * configure.in: Check that -pg works if using --enable-profiling.
10200 Check for monstartup and _mcleanup regardless of --enable-profiling.
10201 * maint.c: Check for monstartup and _mcleanup before using them.
10202 * config.in: Regenerated.
10203 * configure: Regenerated.
10205 2003-01-24 Nick Clifton <nickc@redhat.com>
10207 * Add sh2e support:
10209 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10211 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10212 (sh2e_show_regs): New.
10213 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10214 * config/sh/tm-sh.h: Added sh2e to comments.
10216 2003-01-23 Jim Blandy <jimb@redhat.com>
10218 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10219 symbols found)" message here; we haven't checked for a separate
10220 debug info file yet, so we don't know yet.
10221 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10222 we've looked everywhere. Also, there's no need to print a special
10223 message when we're loading the separate debug info file: the one
10224 symbol_file_add prints is fine.
10226 2003-01-23 Alexander Larsson <alexl@redhat.com>
10227 Jim Blandy <jimb@redhat.com>
10229 Add support for executables whose debug info has been separated
10230 out into a separate file, leaving only a link behind.
10231 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10232 and separate_debug_objfile_backlink.
10233 (put_objfile_before): New declaration.
10234 * symfile.c: #include "filenames.h".
10235 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10236 debug info in a separate file, read that, too. Save the addrs
10237 argument, so we can use it again to read the separated debug info;
10238 syms_from_objfile modifies the table we pass it.
10239 (reread_symbols): After re-reading an objfile, call
10240 reread_separate_symbols to refresh its separate debug info
10241 objfile, if it has one.
10242 (reread_separate_symbols, find_separate_debug_file,
10243 get_debug_link_info, separate_debug_file_exists): New functions.
10244 (debug_file_directory): New global var.
10245 (_initialize_symfile): Initialize debug_file_directory, and
10246 provide the new `set debug-file-directory' command to let the user
10248 * objfiles.c (free_objfile): If this objfile has its debug info in
10249 a separate objfile, free that one too. If this is itself a
10250 separate debug info objfile, clear our parent's backlink.
10251 (put_objfile_before): New function.
10252 * utils.c (gnu_debuglink_crc32): New function.
10253 * defs.h (gnu_debuglink_crc32): New declaration.
10254 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10255 * configure.in: Handle --with-separate-debug-dir config option.
10256 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10257 * acconfig.h (DEBUGDIR): New macro.
10258 * configure, aclocal.m4, config.in: Regenerated.
10260 2003-01-22 Jim Blandy <jimb@redhat.com>
10262 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10263 like the old symbol_file_add, but taking new arguments: you can
10264 now pass in either a `struct section_addr_info' list to say where
10265 each section is loaded, or a `struct section_offsets' table. Pass
10266 these new arguments through to syms_from_objfile as appropriate.
10267 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10268 with the appropriate quiescent values for the new arguments.
10270 * symfile.c: #include "gdb_assert.h".
10271 (syms_from_objfile): Add the ability to pass in a section offset
10272 table directly, as an alternative to the section_addr_info table.
10273 Document arguments better.
10274 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10275 * symfile.h (syms_from_objfile): Update declaration.
10276 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10278 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10280 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10282 Original patch by Tom Tromey <tromey@cygnus.com> and
10283 Jason Molenda <jmolenda@apple.com>.
10284 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10285 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10286 * NEWS: Mention profiling.
10287 * configure.in (--enable-gdbtk): Fix typo.
10288 (--enable-profiling): New. Set PROFILE_CFLAGS.
10289 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10291 (profiling_state): New variable.
10292 (mcleanup_wrapper): New function.
10293 (_initialize_maint): Remove NOTYET, fix call to
10294 add_setshow_boolean_cmd for "maint set profile".
10295 * configure: Regenerated.
10297 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10299 * Makefile.in (install-gdbtk): Install PNG images too.
10301 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10303 * exec.c (text_start): Delete global variable.
10304 (exec_file_attach): Make text_start local to the function.
10305 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10306 * valops.c (hand_function_call): Delete code that handles
10307 BEFORE_TEXT_END and AFTER_TEXT_END.
10308 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10309 of CALL_DUMMY_LOCATION.
10310 * gdbarch.c: Regenerate.
10311 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10312 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10313 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10314 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10315 (text_end): Delete extern declaration.
10317 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10319 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10320 * blockframe.c (backtrace_below_main): Move to "frame.c".
10321 (frame_chain_valid): Delete check for backtrace_below_main.
10322 (_initialize_blockframe): Delete initialization, move ``set
10323 backtrace-below-main'' command to "frame.c".
10324 (do_flush_frames_sfunc): Delete function.
10325 * frame.c: Include "command.h" and "gdbcmd.h".
10326 (frame_type_from_pc): New function.
10327 (create_new_frame): Use frame_type_from_pc.
10328 (legacy_get_prev_frame): New function.
10329 (get_prev_frame): Rewrite. When an old style frame, call
10330 legacy_get_prev_frame. Otherwize, unwind the PC first.
10331 (_initialize_frame): Add ``set backtrace-below-main'' command.
10332 * Makefile.in (frame.o): Update dependencies.
10334 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10336 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10337 DEPRECATED_REGISTERS_INFO.
10339 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10341 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10342 Maintainers'. Update `Various Maintainers'.
10344 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10346 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10347 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10348 Suppress actual parameters when `-'.
10349 * gdbarch.h, gdbarch.c: Regenerate.
10351 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10353 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10354 code handling dummy frames.
10356 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10358 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10359 (struct frame_unwind): Add field pop.
10360 * frame.h (frame_pop): Declare.
10361 * frame.c (frame_saved_regs_pop): New function.
10362 (trad_frame_unwinder): Add frame_saved_regs_pop.
10363 (frame_pop): New function.
10364 * dummy-frame.c (dummy_frame_pop): New function.
10365 (discard_innermost_dummy): New function.
10366 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10367 (dummy_frame_unwind): Add dummy_frame_pop.
10368 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10369 * valops.c (hand_function_call): Ditto.
10370 * stack.c (return_command): Ditto.
10372 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10374 * cris-tdep.c: Fix function declaration indentation.
10375 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10376 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10377 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10378 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10379 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10380 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10382 2003-01-18 Michael Chastain <mec@shout.net>
10384 * README (Unpacking and Installation -- quick overview):
10385 Warn against ".../gdb-5.3/gdb/configure".
10387 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10389 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10390 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10391 (struct frame_unwind): Declare opaque.
10392 (dummy_frame_p): Declare function.
10393 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10394 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10395 * dummy-frame.c: Include "frame-unwind.h".
10396 (dummy_frame_p): New function.
10397 (dummy_frame_unwind): New variable.
10398 * frame.c: Include "frame-unwind.h".
10399 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10400 to use the new unwind field.
10401 (set_unwind_by_pc): Delete function.
10402 (create_new_frame, get_prev_frame): Set unwind field using
10403 frame_unwind_find_by_pc.
10404 (trad_frame_unwind, trad_frame_unwinder): New variables.
10405 * frame.h (trad_frame_unwind): Declare variable.
10406 (frame_id_unwind_ftype): Delete declaration.
10407 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10408 (struct frame_unwind): Declare opaque.
10409 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10410 register_unwind with a single unwind pointer.
10411 * frame-unwind.h, frame-unwind.c: New files.
10412 * Makefile.in (SFILES): Add frame-unwind.c.
10413 (frame_unwind_h): Define.
10414 (COMMON_OBS): Add frame-unwind.o.
10415 (frame-unwind.o): Specify dependencies.
10416 (frame.o, dummy-frame.o): Update dependencies.
10418 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10420 * ada-valprint.c: Eliminate PTR.
10421 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10422 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10423 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10424 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10425 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10426 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10427 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10429 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10431 * main.c (captured_main): Don't use PTR.
10432 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10433 * gdbtypes.c (lookup_primitive_typename): Ditto.
10434 (lookup_struct_elt_type): Ditto.
10435 * f-valprint.c (info_common_command): Ditto.
10436 (list_all_visible_commons): Ditto.
10437 * jv-typeprint.c (java_type_print_base): Ditto.
10439 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10440 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10441 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10442 i386-interix-nat.c and i386-interix-tdep.c. Rename
10443 m68klinux-nat.c and m68klinux-tdep.c. Rename
10444 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10445 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10446 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10447 * main.c (captured_main): Use xfree, not free.
10449 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10451 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10452 ID back using a parameter.
10453 * frame.c (frame_id_unwind): Update call.
10454 (frame_saved_regs_id_unwind): Update.
10455 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10456 * dummy-frame.h (struct frame_id): Add opaque declaration.
10457 (dummy_frame_id_unwind): Update declaration.
10459 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10461 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10463 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10465 * MAINTAINERS (Stephen P. Smith): Updated email address.
10467 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10470 * breakpoint.c (until_break_command): Add new argument. Use it to
10471 decide whether to stop only at the current frame or not.
10472 * breakpoint.h (until_break_command): Update prototype.
10473 * infcmd.c (until_command): Add new argument to until_break_command
10475 (advance_command): New function.
10476 (_initialize_infcmd): Update help string for 'until' command.
10477 Add new 'advance' command.
10479 2003-01-14 David Carlton <carlton@math.stanford.edu>
10481 * linespec.c (decode_line_1): Normalize comments.
10482 (set_flags): Ditto.
10483 (locate_first_half): Ditto.
10484 (decode_compound): Ditto.
10485 (symtab_from_filename): Ditto.
10486 (decode_all_digits): Ditto.
10487 (decode_dollar): Ditto.
10488 (find_methods): Ditto.
10489 (find_toplevel_char): Ditto.
10491 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10493 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10494 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10495 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10496 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10497 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10498 * language.c, language.h, m32r-tdep.c: Update copyright.
10499 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10500 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10501 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10502 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10503 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10504 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10506 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10508 * stabsread.h (process_later, resolve_cfront_continuation):
10510 Update copyright years.
10511 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10512 Update copyright year.
10513 * dbxread.c(struct cont_elem): Obsolete.
10514 (process_later, process_now): Obsolete functions.
10515 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10516 Update copyright year.
10517 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10518 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10519 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10520 (parse_partial_symbols): Obsolete cfront support.
10522 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10524 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10525 read_cfront_baseclasses, read_cfront_member_functions,
10526 resolve_cfront_continuation,read_cfront_static_fields,
10527 copy_cfront_struct_fields): Obsolete functions.
10528 (define_symbol, read_one_struct_field): Obsolete cfront support.
10529 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10530 Update Copyright year.
10532 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10534 * stack.c (print_frame_info, print_stack_frame_base_stub,
10535 print_stack_frame_base, show_and_print_stack_frame_stub,
10536 show_and_print_stack_frame, print_only_stack_frame_stub,
10537 print_only_stack_frame): Delete functions.
10538 (print_stack_frame_stub): Call print_frame_info instead of
10539 print_frame_info_base.
10540 (print_frame_info_base): Rename to print_frame_info.
10541 (backtrace_command_1): Call print_frame_info, instead of
10542 print_frame_info_base.
10543 (current_frame_command): Call print_stack_frame, instead of
10544 print_only_stack_frame.
10545 (frame_command): Call print_stack_frame, instead of
10546 show_and_print_stack_frame.
10547 (up_command): Ditto.
10548 (down_command): Ditto.
10549 * frame.h (print_only_stack_frame): Delete prototype.
10550 * infrun.c (normal_stop): Call print_stack_frame, instead of
10551 show_and_print_stack_frame.
10552 * thread.c (info_threads_command): Call print_stack_frame, instead
10553 of print_only_stack_frame.
10555 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10557 * README (Graphical interface to GDB): Update URL. Point at
10560 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10563 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10565 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10568 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10570 * thread-db.c (attach_thread): Prototype.
10571 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10572 thread information (ti), and valid flags (th_valid, ti_valid).
10573 (attach_thread): Move target_pid_to_str call to after the thread
10574 is added to GDB's list. Initialize the cache.
10575 (thread_get_info_callback, thread_db_map_id2thr)
10576 (thread_db_get_info): New functions.
10577 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10578 (thread_db_store_registers, thread_db_thread_alive)
10579 (thread_db_get_thread_local_address): Use them.
10580 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10581 of calling error() for threads in unknown state.
10583 (clear_lwpid_callback): New function.
10584 (thread_db_resume): Use it to clear the cache.
10586 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10588 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10589 (resume_callback): Remove dead code.
10591 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10593 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10595 * gdbarch.h, gdbarch.c: Regenerate.
10596 * stack.c (frame_info): Only initialize the saved registers when
10597 FRAME_INIT_SAVED_REGS_P.
10598 * frame.c (frame_saved_regs_register_unwind): Assert
10599 FRAME_INIT_SAVED_REGS_P.
10600 (deprecated_generic_get_saved_register): Ditto.
10602 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10604 * source.c (openp): Squelch warning about "filename".
10606 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10608 * source.c (openp): If the file does not exist don't necessarily
10611 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10614 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10615 (integer_types_same_name_p): New function.
10616 (rank_one_type): Use it.
10617 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10619 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10621 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10623 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10624 * configure.in: Add --with-sysroot.
10625 * configure: Regenerated.
10626 * main.c (gdb_sysroot): New variable.
10627 (captured_main): Initialize gdb_sysroot.
10628 * defs.h (gdb_sysroot): New extern declaration.
10629 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10631 2003-01-12 Michael Chastain <mec@shout.net>
10633 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10635 2003-01-12 Michael Chastain <mec@shout.net>
10637 * top.c (print_gdb_version): Bump copyright year to 2003.
10639 2003-01-12 David Carlton <carlton@bactrian.org>
10641 * linespec.c (symtab_from_filename): Rename variable 's' to
10644 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10646 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10648 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10650 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10652 * d10v-tdep.c: Include "gdb_assert.h".
10653 (d10v_store_return_value): Rewrite to match current interface.
10654 (d10v_extract_struct_value_address): Ditto.
10655 (d10v_extract_return_value): Ditto.
10656 (d10v_gdbarch_init): Set store_restore_value,
10657 extract_struct_value_address and extract_return_value.
10659 2003-01-12 J. Brobecker <brobecker@gnat.com>
10661 * hpread.c (set_namestring): New procedure replacing the
10662 SET_NAMESTRING macro.
10663 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10664 by calls to set_namestring.
10666 2003-01-11 J. Brobecker <brobecker@gnat.com>
10668 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10669 a compilation warning.
10670 (hpread_process_one_debug_symbol): Likewise.
10672 2003-01-10 David Carlton <carlton@math.stanford.edu>
10674 * linespec.c (decode_line_1): Rename variable 's' to
10676 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10677 (decode_dollar): Ditto.
10678 (decode_variable): Ditto.
10679 (symbol_found): Ditto.
10681 2003-01-09 Michael Chastain <mec@shout.net>
10683 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10685 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10687 * win32-nat.c (set_process_privilege): New function.
10688 (child_attach): Call set_process_privilege() to enable the
10689 SE_DEBUG_NAME user privilege if available in process token.
10691 2003-01-10 J. Brobecker <brobecker@gnat.com>
10693 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10694 compilation error in the previous revision.
10696 2003-01-09 David Carlton <carlton@math.stanford.edu>
10698 * linespec.c: Update copyright.
10700 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10702 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10703 than inferior_ptid.
10704 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10706 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10708 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10710 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10711 (frame_saved_regs_zalloc): Update.
10712 (frame_saved_regs_register_unwind): Update.
10713 (create_new_frame): Update.
10714 (get_prev_frame): Update.
10715 (frame_extra_info_zalloc): Update.
10716 (deprecated_get_frame_saved_regs): Update.
10717 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10718 * cris-tdep.c: Update comment.
10720 * somsolib.h: Fix function indentation.
10721 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10722 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10723 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10724 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10725 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10727 * infrun.c (follow_fork): Use ISO C definition.
10728 * expprint.c (print_subexp): Use xfree instead of free.
10729 * charset.c: Include "gdb_string.h" instead of <string.h>.
10730 (register_iconv_charsets): Use ISO C definition.
10731 (host_charset, target_charset): Ditto.
10732 * Makefile.in (charset.o): Update dependencies.
10733 (mi-cmd-env.o): Update dependencies.
10735 2003-01-08 Andrew Cagney <cagney@redhat.com>
10737 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10740 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10742 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10743 build directories. Save edited gdb output in Mbuild.log. If a
10744 build fails, remove any final GDB executable.
10746 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10748 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10749 replacing hex constants with function names and stripping leading
10750 file name directory prefixes.
10752 2003-01-08 Andrew Cagney <cagney@redhat.com>
10754 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10757 2003-01-08 David Carlton <carlton@math.stanford.edu>
10759 * linespec.c (decode_line_1): Move code into decode_variable.
10760 (decode_variable): New function.
10762 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10764 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10766 2003-01-08 Andrew Cagney <cagney@redhat.com>
10768 * cris-tdep.c (cris_frame_init_saved_regs): Use
10769 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10771 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10772 (sh64_nofp_frame_init_saved_regs): Ditto.
10773 (sh_fp_frame_init_saved_regs): Ditto.
10774 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10775 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10776 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10777 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10779 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10781 * minsyms.c (lookup_minimal_symbol): Update comment.
10782 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10783 (lookup_minimal_symbol_solib_trampoline): Likewise.
10785 2003-01-08 Andrew Cagney <cagney@redhat.com>
10787 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10788 frame_relative_level.
10790 * alpha-tdep.c: Use get_frame_extra_info.
10791 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10792 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10793 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10794 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10796 * alpha-tdep.c: Use get_next_frame.
10797 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10798 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10799 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10800 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10801 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10802 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10803 * xstormy16-tdep.c: Ditto.
10805 2003-01-07 Andrew Cagney <cagney@redhat.com>
10807 * alpha-tdep.c: Use get_frame_base.
10808 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10809 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10810 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10811 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10812 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10813 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10814 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10815 * config/sparc/tm-sparc.h: Ditto.
10817 2003-01-07 Andrew Cagney <cagney@redhat.com>
10819 * frame.c (deprecated_get_frame_context): New function.
10820 (deprecated_set_frame_context): New function.
10821 * frame.h (deprecated_get_frame_context): Declare.
10822 (deprecated_set_frame_context): Declare.
10823 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10824 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10826 2003-01-07 Andrew Cagney <cagney@redhat.com>
10828 * frame.c (deprecated_set_frame_next_hack): New function.
10829 (deprecated_set_frame_prev_hack): New function.
10830 * frame.h (deprecated_set_frame_next_hack): Declare.
10831 (deprecated_set_frame_prev_hack): Declare.
10832 * mcore-tdep.c (analyze_dummy_frame): Use
10833 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10834 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10836 2003-01-07 David Carlton <carlton@math.stanford.edu>
10838 * linespec.c (decode_line_1): Move code into decode_dollar.
10839 (decode_dollar): New function.
10841 2003-01-07 Andrew Cagney <cagney@redhat.com>
10843 * arm-tdep.c (arm_init_extra_frame_info): Use
10844 deprecated_update_frame_base_hack.
10845 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10846 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10847 (fix_frame_pointer): Ditto.
10848 (mn10300_analyze_prologue): Ditto.
10850 2003-01-07 Andrew Cagney <cagney@redhat.com>
10852 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10853 extra_info using frame_extra_info_zalloc.
10854 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10855 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10856 (sh64_init_extra_frame_info): Ditto.
10857 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10858 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10859 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10860 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10861 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10862 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10863 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10864 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10865 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10866 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10867 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10868 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10870 * mn10300-tdep.c (analyze_dummy_frame): Use
10871 deprecated_set_frame_extra_info_hack.
10872 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10874 2003-01-07 J. Brobecker <brobecker@gnat.com>
10876 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10877 class is not scText. These do not define "real" procedures.
10878 (parse_partial_symbols): Likewise.
10880 2003-01-06 Michael Snyder <msnyder@redhat.com>
10882 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10884 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10886 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10887 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10888 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10889 deprecated_frame_xmalloc_with_cleanup.
10890 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10891 deprecated_frame_xmalloc.
10892 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10893 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10895 2003-01-06 Andrew Cagney <cagney@redhat.com>
10897 * x86-64-linux-tdep.c: Include "osabi.h".
10898 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10900 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10902 2003-01-06 Andrew Cagney <cagney@redhat.com>
10904 * MAINTAINERS (Target Instruction Set Architectures): Update
10905 arm-elf. Can be built with -Werror, has been multiarched.
10907 * value.h (unpack_long): Make buffer parameter constant.
10908 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10909 * scm-lang.h (scm_parse): Ditto.
10910 * defs.h (extract_typed_address, extract_address): Ditto.
10911 (extract_long_unsigned_integer): Ditto.
10912 * inferior.h (unsigned_pointer_to_address): Ditto.
10913 (signed_pointer_to_address): Ditto.
10914 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10915 * gdbarch.h, gdbarch.c: Regenerate.
10916 * findvar.c (extract_long_unsigned_integer): Update.
10917 (extract_address): Update.
10918 (extract_typed_address): Update.
10919 (unsigned_pointer_to_address): Update.
10920 * values.c (unpack_long): Update.
10921 (unpack_double): Update.
10922 (unpack_pointer): Update.
10923 (unpack_field_as_long): Update.
10924 * d10v-tdep.c (d10v_pointer_to_address): Update.
10925 * avr-tdep.c (avr_pointer_to_address): Update.
10926 * scm-lang.c (scm_unpack): Update.
10927 * findvar.c (signed_pointer_to_address): Update.
10929 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10931 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10932 since it is in i386-tdep.c.
10934 2003-01-06 J. Brobecker <brobecker@gnat.com>
10936 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10937 failure introduced in the previous change.
10939 2003-01-05 Michael Chastain <mec@shout.net>
10941 * README: Remove references to deleted remote-*.c files:
10942 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10943 remote-nrom.c, remote-os9k.c, remote-udi.c.
10945 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10947 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10948 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10949 i386_get_longjmp_target.
10951 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10953 * arm-tdep.c (prologue_cache): Change to a pointer.
10954 (_initialize_arm_tdep): Allocate prologue_cache.
10955 (check_prologue_cache): Update.
10956 (save_prologue_cache): Update.
10957 (arm_gdbarch_init): Update.
10959 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10961 * stabsread.c (update_method_name_from_physname): Call complaint()
10964 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10966 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10967 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10968 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10970 * blockframe.c: Include "gdbcmd.h" and "command.h".
10971 (backtrace_below_main): New variable.
10972 (file_frame_chain_valid, func_frame_chain_valid)
10973 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10974 (generic_func_frame_chain_valid): Remove functions.
10975 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10976 (_initialize_blockframe): New function.
10977 * Makefile.in (blockframe.o): Update dependencies.
10978 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10979 comment. Call frame_chain_valid ().
10980 * frame.h: Remove old prototypes. Add prototype for
10981 frame_chain_valid and update comments to match.
10982 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10983 Remove old comment.
10984 * gdbarch.h: Regenerated.
10985 * gdbarch.c: Regenerated.
10987 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10988 set_gdbarch_frame_chain_valid.
10989 * avr-tdep.c (avr_gdbarch_init): Likewise.
10990 * cris-tdep.c (cris_gdbarch_init): Likewise.
10991 * frv-tdep.c (frv_gdbarch_init): Likewise.
10992 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10993 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10994 (i386_nw_init_abi): Likewise.
10995 (i386_gdbarch_init): Likewise.
10996 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10998 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10999 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11000 * mips-tdep.c (mips_gdbarch_init): Likewise.
11001 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11002 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11003 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11004 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11005 * s390-tdep.c (s390_gdbarch_init): Likewise.
11006 * sh-tdep.c (sh_gdbarch_init): Likewise.
11007 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11008 * v850-tdep.c (v850_gdbarch_init): Likewise.
11009 * vax-tdep.c (vax_gdbarch_init): Likewise.
11010 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11012 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11013 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11014 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11015 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11016 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11017 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11018 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11019 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11021 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11023 * Makefile.in (acconfig_h): Remove incorrect macro.
11024 (config_h): Define.
11025 (osabi.o): Update dependencies.
11026 * configure.tgt: Set gdb_osabi based on target triplet.
11027 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11028 * configure: Regenerated.
11029 * config.in: Regenerated.
11030 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11031 (GDB_OSABI_DEFAULT): Define if not already defined.
11032 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11033 (set_osabi_string): New variables.
11034 (gdbarch_register_osabi): Add new OS ABI to
11035 gdb_osabi_available_names.
11036 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11037 (set_osabi, show_osabi): New functions.
11038 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11040 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11042 * arch-utils.c (gdbarch_info_init): Set osabi to
11043 GDB_OSABI_UNINITIALIZED.
11044 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11045 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11046 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11047 * gdbarch.c: Regenerated.
11048 * gdbarch.h: Regenerated.
11049 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11051 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11052 * osabi.h (enum gdb_osabi): Move to defs.h.
11053 (gdbarch_init_osabi): Update prototype.
11054 * defs.h (enum gdb_osabi): Moved here.
11055 * Makefile.in: Update dependencies.
11057 * alpha-tdep.h: Don't include "osabi.h".
11058 (struct gdbarch_tdep): Remove osabi member.
11059 * alpha-tdep.c: Include "osabi.h".
11060 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11061 iterate over arches. Update call to gdbarch_init_osabi.
11062 (alpha_dump_tdep): Don't dump osabi.
11063 * alpha-linux-tdep.c: Include "osabi.h".
11064 * alpha-osf1-tdep.c: Include "osabi.h".
11065 * alphafbsd-tdep.c: Include "osabi.h".
11066 * alphanbsd-tdep.c: Include "osabi.h".
11068 * arm-tdep.h: Don't include "osabi.h".
11069 (struct gdbarch_tdep): Remove osabi member.
11070 * arm-tdep.c: Include "osabi.h".
11071 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11072 iterate over arches. Update call to gdbarch_init_osabi.
11073 (arm_dump_tdep): Don't dump osabi.
11074 * arm-linux-tdep.c: Include "osabi.h".
11075 * armnbsd-tdep.c: Include "osabi.h".
11077 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11078 Update call to gdbarch_init_osabi.
11080 * i386-tdep.h: Don't include "osabi.h".
11081 (struct gdbarch_tdep): Remove osabi member.
11082 * i386-tdep.c: Include "osabi.h".
11083 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11084 iterate over arches. Update call to gdbarch_init_osabi.
11085 (i386_dump_tdep): Don't dump osabi.
11086 * i386-linux-tdep.c: Include "osabi.h".
11087 * i386-sol2-tdep.c: Include "osabi.h".
11088 * i386bsd-tdep.c: Include "osabi.h".
11089 * i386gnu-tdep.c: Include "osabi.h".
11090 * i386ly-tdep.c: Include "osabi.h".
11091 * i386nbsd-tdep.c: Include "osabi.h".
11092 * i386obsd-tdep.c: Include "osabi.h".
11094 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11095 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11096 check osabi when iterating over arches. Update call to
11097 gdbarch_init_osabi.
11098 (mips_dump_tdep): Don't dump osabi.
11100 * ns32k-tdep.h: Don't include "osabi.h".
11101 (struct gdbarch_tdep): Remove.
11102 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11103 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11104 allocate tdep. Update call to gdbarch_init_osabi.
11105 (ns32k_dump_tdep): Remove.
11106 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11107 * ns32knbsd-tdep.c: Include "osabi.h".
11109 * ppc-tdep.h: Don't include "osabi.h".
11110 (struct gdbarch_tdep): Remove osabi member.
11111 * rs6000-tdep.c: Include "osabi.h".
11112 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11113 osabi when iterating over arches. Update call to
11114 gdbarch_init_osabi.
11115 (rs6000_dump_tdep): Don't dump osabi.
11116 * ppc-linux-tdep.c: Include "osabi.h".
11117 * ppcnbsd-tdep.c: Include "osabi.h".
11119 * sh-tdep.h: Don't include "osabi.h".
11120 (struct gdbarch_tdep): Remove osabi member.
11121 * sh-tdep.c: Include "osabi.h".
11122 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11123 iterate over arches. Update call to gdbarch_init_osabi.
11124 (sh_dump_tdep): Don't dump osabi.
11125 * shnbsd-tdep.c: Include "osabi.h".
11127 * sparc-tdep.c: Include "osabi.h".
11128 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11129 iterate over arches. Update call to gdbarch_init_osabi.
11130 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11133 * vax-tdep.h: Don't include "osabi.h".
11134 (struct gdbarch_tdep): Remove.
11135 * vax-tdep.c: Include "osabi.h".
11136 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11137 iterate over arches. Don't allocate tdep. Update call
11138 to gdbarch_init_osabi.
11139 (vax_dump_tdep): Remove.
11140 (_initialize_vax_tdep): Update call to gdbarch_register.
11142 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11144 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11146 (breakpoint_re_set_one): Don't fetch the value for a disabled
11149 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11151 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11152 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11153 (COERCE_FLOAT_TO_DOUBLE): Remove.
11154 * gdbarch.c: Regenerate.
11155 * gdbarch.h: Regenerate.
11156 * Makefile.in: Remove value_h from gdbarch_h.
11157 * valops.c (coerce_float_to_double): New variable.
11158 (default_coerce_float_to_double): Remove.
11159 (standard_coerce_float_to_double): Remove.
11160 (value_arg_coerce): Use coerce_float_to_double.
11161 (_initialize_valops): Add "set coerce-float-to-double".
11162 * value.h (default_coerce_float_to_double): Remove prototype.
11163 (standard_coerce_float_to_double): Remove prototype.
11165 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11167 * mdebugread.c (parse_symbol): Likewise.
11168 * stabsread.c (define_symbol): Mark all functions as prototyped.
11170 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11171 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11172 set_gdbarch_coerce_float_to_double.
11173 * arm-tdep.c (arm_gdbarch_init): Likewise.
11174 * frv-tdep.c (frv_gdbarch_init): Likewise.
11175 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11176 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11177 * mips-tdep.c (mips_gdbarch_init): Likewise.
11178 (mips_coerce_float_to_double): Remove.
11179 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11180 (rs6000_coerce_float_to_double): Remove.
11181 * s390-tdep.c (s390_gdbarch_init): Likewise.
11182 * sh-tdep.c (sh_gdbarch_init): Likewise.
11183 (sh_coerce_float_to_double): Remove.
11184 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11185 (sparc_coerce_float_to_double): Remove.
11186 * v850-tdep.c (v850_gdbarch_init): Likewise.
11187 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11188 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11189 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11190 (hppa_coerce_float_to_double): Remove prototype.
11191 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11193 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11195 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11197 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11199 Suggested by Stewart Brown <sb24@avaya.com>:
11200 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11201 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11202 (c_type_print_varspec_suffix): Likewise.
11204 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11206 * configure.in: Don't set and AC_SUBST SUBDIRS.
11207 * configure: Regenerated.
11209 * configure.in: Remove code dealing with shared libraries.
11210 * Makefile.in: Remove HLDFLAGS and HLDENV.
11211 * configure: Regenerated.
11213 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11215 * frame.c (deprecated_frame_xmalloc): New function.
11216 (deprecated_set_frame_saved_regs_hack): New function.
11217 (deprecated_set_frame_extra_info_hack): New function.
11218 * frame.h (deprecated_frame_xmalloc): Declare.
11219 (deprecated_set_frame_saved_regs_hack): Declare.
11220 (deprecated_set_frame_extra_info_hack): Declare.
11222 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11224 * configure.in: Move code that provides the --enable-gdbtk option
11225 right after the code that handles the --enable-tui option, and
11226 polish it somewhat.
11227 * configure: Regenerated.
11229 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11230 AC_CHECK_FUNCS and remove the old check for pread64.
11231 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11232 * acconfig.h (_GNU_SOURCE): Add.
11233 (HAVE_PREAD64): Remove.
11234 * configure, aclocal.m4, config.in: Regenerated.
11236 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11238 * alpha-tdep.c: Use get_frame_saved_regs.
11239 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11240 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11241 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11242 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11243 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11245 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11247 * configure.in: Remove all use of the SUBDIRS variable; add
11248 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11249 code providing the --enable-multi-ice option, and move it right in
11250 front of the code that checks whether gdbserver is supported.
11252 * configure: Regenerated.
11253 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11256 2003-01-03 Andrew Cagney <cagney@redhat.com>
11258 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11259 * avr-tdep.c, cris-tdep.c: Ditto.
11260 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11261 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11263 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11265 * configure.in: Remove --enable-netrom option.
11266 * configure: Regenerated.
11268 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11270 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11271 declaration for `struct re_pattern_buffer' instead.
11272 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11274 2003-01-03 J. Brobecker <brobecker@gnat.com>
11276 * mdebugread.c (parse_symbol): Count until the stEnd matching
11277 the structure name.
11279 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11281 * configure.in: Remove --with-cpu option.
11282 subscripts. Remove evil changequotes here.
11283 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11284 * config.in, configure: Regenerated.
11286 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11287 * configure.in: Cleanup section that sources GDB and BFD configure
11288 subscripts. Remove evil changequotes here.
11289 * config.in, configure: Regenerated.
11291 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11293 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11294 frame accessor methods.
11295 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11296 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11297 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11298 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11299 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11300 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11301 * z8k-tdep.c: Ditto.
11303 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11305 * configure.in: Remove UI_OUT configuration code.
11306 * ada-lang.c: Update assuming UI_OUT is always true.
11307 * Makefile.in (UIOUT_CFLAGS): Remove.
11308 * configure: Regenerated.
11309 * TODO: Remove blurb about elimination of -DUI_OUT.
11311 * configure.in: Move code that provides the --enable-gdbcli,
11312 --enable-gdbmi options right before the code that handles the
11313 --enable-tui option. Polish a bit.
11314 * configure: Regenerated.
11316 * configure.in: Rewrite check for GNU regex and the
11317 --without-included regex option, and move it into the "Checks for
11318 library functions" section. This makes us use the system regex
11319 again by default on systems with version 2 of the GNU C library.
11320 This was apparently broken.
11321 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11322 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11323 * config.in, configure: Regenerated.
11325 * configure.in: Move code that provides the --enable-tui option
11326 before the "Checks for libraries" section. Polish the code
11327 somewhat and set need_curses to yes if we build the TUI. Rewrite
11328 code that looks for a library providing termcap functionality to
11329 match more closely what's done in the Readline library, and move
11330 it into to the "Checks for libraries" section.
11331 * configure: Regenerated.
11332 * Makefile.in (TERMCAP): Remove variable.
11333 * config/i386/go32.mh (TERMCAP): Remove variable.
11335 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11337 * MAINTAINERS: Mention gdb_mbuild.sh.
11338 * gdb_mbuild.sh: Rewrite.
11340 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11342 * configure.in: Fix typo in last change.
11343 * config.in, configure: Regenerated.
11345 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11347 * valarith.c (value_binop): Delete obsolete code and comments.
11348 * configure.host: Ditto.
11349 * buildsym.h (make_blockvector): Ditto.
11350 * buildsym.c (make_blockvector): Ditto.
11351 * defs.h (enum language): Ditto.
11352 (chill_demangle): Ditto.
11353 * elfread.c (elf_symtab_read): Ditto.
11354 * dwarfread.c (CHILL_PRODUCER): Ditto.
11355 (set_cu_language): Ditto.
11356 (handle_producer): Ditto.
11357 * expprint.c (print_subexp): Ditto.
11358 * gdbtypes.c (chill_varying_type): Ditto.
11359 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11360 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11361 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11362 (chill_varying_type): Ditto.
11363 * language.h (_LANG_chill): Ditto.
11364 * language.c (binop_result_type, integral_type): Ditto.
11365 (character_type, string_type, structured_type): Ditto.
11366 (lang_bool_type, binop_type_check): Ditto.
11367 * stabsread.h (os9k_stabs): Ditto.
11368 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11369 (define_symbol, read_type, read_struct_fields): Ditto.
11370 (read_array_type, read_enum_type, read_huge_number): Ditto.
11371 (read_range_type, start_stabs): Ditto.
11372 * symfile.c (init_filename_language_table): Ditto.
11373 (add_psymbol_with_dem_name_to_list): Ditto.
11374 * symtab.c (symbol_init_language_specific): Ditto.
11375 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11376 * symtab.h (struct general_symbol_info): Ditto.
11377 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11378 * typeprint.c (typedef_print): Ditto.
11379 * utils.c (fprintf_symbol_filtered): Ditto.
11380 * valops.c (value_cast, search_struct_field, value_slice): Delete
11382 (varying_to_slice): Delete function.
11383 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11384 (varying_to_slice): Delete declaration.
11385 * MAINTAINERS: Update.
11387 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11389 * configure.in: Reorganize "Checks for library functions section"
11390 a bit. Remove check for `btowc' and `isascii' functions.
11391 * configure: Regenerated.
11393 * acconfig.h (_MSE_INT_H): Remove.
11394 * configure.in: Create "Checks for header files" section, and move
11395 appropriate tests there. Don't check for objlist.h, wchar.h,
11396 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11397 misdetection fix. Also add "Checks for types", "Checks for
11398 compiler characteristics" and "Checks for library functions"
11400 * config.in, configure: Regenerated.
11402 * configure.in: Create "Checks for programs" section, and move
11403 appropriate tests there.
11405 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11407 * configure.in: Create "Checks for libraries" section, and move
11408 appropriate tests there. Cleanup check for wctype in libw. Use
11409 AC_SEARCH_LIBS to see whether we need libsocket.
11410 * configure: Regenerated.
11412 For older changes see ChangeLog-2002
11418 version-control: never