1 2003-09-04 Andrew Cagney <cagney@redhat.com>
3 * configure.tgt: Add "mips64*-*-*" target. Delete
4 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
5 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
6 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
7 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
8 mips*-sony-*, and mips64*-*-elf* targets.
9 * config/mips/embedl.mt: Delete file.
10 * config/mips/embedl64.mt: Delete file.
11 * config/mips/mips.mt: Delete file.
12 * config/mips/mips64.mt: Delete file.
13 * config/mips/tm-embed.h: Delete file.
14 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
15 * config/mips/embed64.mt: Delete out-of-date comment.
17 2003-09-04 Andrew Cagney <cagney@redhat.com>
19 * hppa-tdep.c (hppa_gdbarch_init): Set
20 "have_nonsteppable_watchpoint".
21 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
22 * mips-tdep.c (mips_dump_tdep): Do not print
23 HAVE_NONSTEPPABLE_WATCHPOINT.
24 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
25 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
26 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
27 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
29 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
31 * breakpoint.c (watchpoint_check): Remove accidentally checked in
32 unused code. Add comment.
34 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
36 * breakpoint.c (watchpoint_check): Check for pc being in an
37 epilogue if watchpoint frame couldn't be found.
39 2003-09-04 Andrew Cagney <cagney@redhat.com>
41 * Makefile.in: Re-generate all dependencies.
43 2003-09-03 Andrew Cagney <cagney@redhat.com>
45 * arch-utils.h (legacy_print_insn): Delete declaration.
46 * arch-utils.c (legacy_print_insn): Delete function.
47 * disasm.c (deprecated_tm_print_insn_info): Delete.
48 (_initialize_disasm): Delete function, contained code initializing
49 deprecated_tm_print_insn_info.
50 * gdbarch.sh (deprecated_tm_print_insn): Delete.
51 (deprecated_tm_print_insn_info): Delete.
52 (TARGET_PRINT_INSN): Do not provide a default.
53 * gdbarch.h, gdbarch.c: Re-generate.
55 2003-09-03 Andrew Cagney <cagney@redhat.com>
57 * disasm.c (fprintf_disasm): New function.
58 (gdb_disassemble_info): Call "init_disassemble_info", instead of
59 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
60 reverts 2003-08-14 change.
61 (_initialize_disasm): Call "init_disassemble_info", instead of
62 INIT_DISASSEMBLE_INFO_NO_ARCH.
64 2003-09-03 Michael Snyder <msnyder@redhat.com>
66 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
68 2003-09-03 Andrew Cagney <cagney@redhat.com>
70 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
71 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
72 * symfile.c (syms_from_objfile): Update.
73 (reread_symbols): `Update
74 * exec.c (exec_file_attach): Update.
75 (exec_file_attach): Update.
76 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
78 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
80 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
82 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
84 (arm_get_cache): Delete macro.
85 (struct arm_prologue_cache): Update comments. Make saved_regs into
86 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
88 (thumb_scan_prologue): Update for cache changes. Don't call
89 DEPRECATED_PC_IN_CALL_DUMMY.
90 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
91 argument and use it in desperation search for our prologue. Do not
92 search past the specified PC.
93 (arm_make_prologue_cache): Simplify.
95 (arm_prologue_this_id, arm_prologue_prev_register)
96 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
97 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
98 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
99 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
100 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
102 (arm_frame_chain_valid, arm_find_callers_reg)
103 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
104 (arm_pop_frame): Delete obsolete methods.
105 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
107 (arm_gdbarch_init): Update for new frame methods. Register prologue
108 and sigtramp unwinders. Set the default frame base method.
110 * Makefile.in (arm-tdep.o): Update dependencies.
111 * varobj.c (find_frame_addr_in_frame_chain): Call
112 get_frame_base_address.
113 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
115 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
117 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
118 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
119 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
120 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
121 Take NEXT_FRAME and CACHE arguments. Call
122 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
123 Set unwound_pc in CACHE instead of modifying the frame argument.
124 Don't bother checking the frame type when looking for sigtramp
126 (arm_make_prologue_cache, arm_frame_chain)
127 (arm_init_extra_frame_info): New functions.
129 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
131 * arm-tdep.c (arm_get_cache): Define.
132 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
133 unwound_sp, unwound_pc, and saved_regs.
134 (thumb_scan_prologue): Take a cache instead of the frame.
135 (arm_scan_prologue): Likewise.
136 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
137 instead of a temporary frame.
138 (arm_init_extra_frame_info): Allocate and use a cache.
139 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
141 2003-09-03 Andrew Cagney <cagney@redhat.com>
143 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
144 * config/mips/wince.mt (TM_CLIBS): Ditto.
145 * config/sh/wince.mt (TM_CLIBS): Ditto.
146 * config/pa/hppa64.mt (TM_CLIBS): Delete.
147 * config/sparc/sp64.mt (CC): Delete.
149 2003-09-03 Andrew Cagney <cagney@redhat.com>
151 * defs.h: Do not include "arch-utils.h".
152 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
154 * configure.in (GDB_MULTI_ARCH): Do not define.
155 * configure, config.in: Regenerate.
156 * configure.tgt: Do not set variable "gdb_multi_arch".
157 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
158 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
159 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
160 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
161 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
162 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
163 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
164 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
165 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
166 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
167 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
168 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
169 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
170 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
171 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
172 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
173 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
174 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
176 2003-08-30 Michael Chastain <mec@shout.net>
178 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
179 * config/m68k/nm-hp300hpux.h: Delete.
180 * config/m68k/tm-hp300hpux.h: Delete.
181 * config/m68k/xm-hp300hpux.h: Delete.
182 * config/m68k/xm-hp300bsd.h: Delete.
183 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
184 tm-hp300hpux.h, xm-hp300hpux.h.
185 * somsolib.c: Remove comment about hp300 shared libraries.
187 2003-08-31 Mark Kettenis <kettenis@gnu.org>
189 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
190 Only define PTRACE_GET_THREAD_AREA is not already defined.
191 Various style fixes in code and comments and some additional
192 spelling fixes in comments. Move after functions dealing with
194 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
197 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
198 frame_unwind_register_unsigned instead of
199 frame_unwind_unsigned_register.
201 2003-08-30 Mark Kettenis <kettenis@gnu.org>
203 * configure.in: Search for gethostbyname in libnsl.
204 * configure: Regenerated.
206 2003-08-29 Mark Kettenis <kettenis@gnu.org>
208 * configure.in: Remove redundant AC_MSG_RESULT in check for
209 uintptr_t in stdint.h.
210 * configure: Regenerated.
212 * amd64-nat.h (struct regcache): Add opaque declaration.
214 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
215 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
216 Change "register array" to "register cache" in comments.
217 (x86_64_linux_gregset64_reg_offset): New variable.
218 (GETREGS_SUPPLIES): Remove macro.
219 (supply_gregset): Call amd64_supply_native_gregset instead of
220 x86_64_linux_supply_gregset.
221 (fill_gregset): Rename `regno' to `regnum'. Call
222 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
223 (store_regs): Rename `regno' to `regnum'.
224 (store_fpregs): Rename `regno' to `regnum'.
225 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
226 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
227 Reorganize function a bit.
228 (store_inferior_registers): Rename `regno' to `regnum'. Use
229 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
230 Reorganize function a bit.
231 (_initialize_x86_64_linux_nat): New function.
232 * config/i386/x86-64linux.mh.
234 2003-08-29 Andrew Cagney <cagney@redhat.com>
236 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
237 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
238 (target_remove_watchpoint): Delete macro.
239 (target_insert_watchpoint): Delete macro.
240 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
241 (remote_mips_stopped_by_watchpoint): Delete declaration.
242 (remote_mips_remove_watchpoint): Delete declaration.
243 (remote_mips_set_watchpoint): Delete declaration.
244 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
245 * remote-mips.c (_initialize_remote_mips): Set
246 "to_insert_watchpoint", "to_stopped_by_watchpoint",
247 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
248 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
249 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
250 (mips_stopped_by_watchpoint): Rename
251 remote_mips_stopped_by_watchpoint.
252 (mips_can_hardware_watchpoint): Rename
253 remote_mips_can_use_hardware_watchpoint, update function
256 2003-08-29 Mark Kettenis <kettenis@gnu.org>
258 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
259 USER_DS. We haven't given them a register number yet.
261 * amd64-nat.h: New file.
262 * amd64-nat.c: New file.
263 * amd64fbsd-nat.c: Include "amd64-nat.h".
264 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
265 (amd64fbsd32_r_reg_offset): New variable.
266 (supply_gregset): Simply call amd64_supply_native_gregset.
267 (fill_gregset): Rename `regno' to `regnum'. Simply call
268 amd64_collect_native_gregset.
269 (fill_fpregset): Rename `regno' to `regnum'.
270 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
271 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
272 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
273 `fpregset_t'. Call amd64_supply_native_gregset instead of
274 supply_gregset. Call x86_64_supply_fxsave instead of
276 (store_inferior_registers): Rename `regno' to `regnum'. Replace
277 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
278 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
279 `fpregset_t'. Call amd64_collect_native_gregset instead of
280 fill_gregset. Call x86_64_collect_fxsave instead of
282 (_initialize_am64fbsd_nat): Initialize
283 amd64_native_gregset32_reg_offset and
284 amd64_native_gregset64_reg_offset.
285 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
287 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
288 null pointer. Fix typo in comment.
290 * regcache.c (supply_register): Reimplement to call
292 (regcache_collect): Reimplement by calling regcache_raw_collect.
294 2003-08-28 Mark Kettenis <kettenis@gnu.org>
296 * regcache.c (register_buffer): Consitify first argument.
297 (regcache_raw_supply, regcache_raw_collect): New
300 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
302 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
303 by Nathan J. Williams.
305 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
307 * lin-lwp.c (wait_lwp): New function, copied from
308 stop_wait_callback. Clean up.
309 (stop_wait_callback): Use wait_lwp.
311 2003-08-28 Andrew Cagney <cagney@redhat.com>
313 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
314 flavour and disassembler options.
315 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
316 (mips_gdbarch_init): Set "print_insn". Delete initialization of
317 deprecated_tm_print_insn_info.
319 2003-08-27 Andrew Cagney <cagney@redhat.com>
321 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
322 Use target_read_memory.
323 (s390_get_frame_info): Update. Do not reference
324 deprecated_tm_print_insn_info.
325 (s390_check_function_end, s390_is_sigreturn): Ditto.
327 2003-08-27 Andrew Cagney <cagney@redhat.com>
329 * Makefile.in (cris-tdep.o): Update dependencies.
330 * cris-tdep.c: Include "gdb_assert.h".
331 (cris_gdbarch_init): Set print_insn.
332 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
333 (cris_delayed_get_disassembler): Simplify, directly call the
334 disassembler returned by cris_get_disassembler.
335 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
336 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
337 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
338 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
339 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
340 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
341 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
342 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
343 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
344 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
345 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
346 (gdb_print_insn_sparc): Delete function.
347 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
348 deprecated_tm_print_insn_info.
349 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
350 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
351 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
352 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
353 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
354 * s390-tdep.c (gdb_print_insn_s390): Delete function.
355 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
356 (s390_gdbarch_init): Set print_insn.
358 2003-08-27 Andrew Cagney <cagney@redhat.com>
360 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
361 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
362 * infcall.c (call_function_by_hand): Convert the entry point
363 address into a code address.
365 2003-08-27 Andrew Cagney <cagney@redhat.com>
367 * dsrec.c: Include "gdb_string.h".
368 * Makefile.in (dsrec.o): Update dependencies.
370 2003-08-27 Michael Chastain <mec@shout.net>
372 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
374 2003-08-27 Andrew Cagney <cagney@redhat.com>
376 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
377 (alpha_osf1_init_abi): Do not set call_dummy_address.
379 2003-08-27 David Carlton <carlton@kealia.com>
381 From Randolph Chung <tausq@debian.org>:
382 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
383 compiles with -Wformat-nonliteral -Werror.
385 2003-08-26 Jim Blandy <jimb@redhat.com>
387 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
388 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
389 bfd_lookup_symbol, since we only want symbols in code sections.
390 (look_for_base): Pass zero as the SECT_FLAGS argument to
391 bfd_lookup_symbol, since we're not concerned about which section
394 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
396 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
397 we are frameless or the return address register is already known.
399 2003-08-26 Andrew Cagney <cagney@redhat.com>
401 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
402 in size. Add comments.
404 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
406 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
407 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
409 2003-08-26 Jason Merrill <jason@redhat.com>
411 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
412 case out of #ifdef MIPS block.
414 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
417 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
418 available before calling SECT_OFF_TEXT.
419 * PROBLEMS: Remove description of java/1322.
421 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
423 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
424 bof, and nat0-nat127 as pseudo-registers.
425 (ia64_frame_cache): New struct used to cache frame info.
426 (ia64_register_reggroup_p): New routine used to override default
427 register grouping so registers without names are still saved and
429 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
431 (ia64_pseudo_register_read): New routine to read pseudo-registers.
432 (ia64_pseudo_register_write): New routine to write pseudo-registers.
433 (ia64_alloc_frame_cache): New routine to create a new
435 (examine_prologue): Change prototype to add next_frame pointer.
436 Assume frameless until otherwise proven. Verify that the cfm for
437 current frame matches the cfm that should occur for the prologues
438 alloc insn and if equal, mark as not frameless. At end of routine,
439 if not frameless, calculate registers for the previous frame and store
440 in the cache, if a cache is provided.
441 (ia64_skip_prologue): Use new prototype when calling examine_prologue
442 and pass 0 for next_frame.
443 (ia64_store_return_value): Change to use convert_typed_floating()
444 instead of calling ia64_convert_to_raw().
445 (ia64_extract_return_value): Change to use convert_typed_floating()
446 instead of calling ia64_convert_to_virtual().
447 (ia64_frame_cache): New routine to support new frame model.
448 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
449 (ia64_frame_sniffer): Ditto.
450 (ia64_sigtramp_frame_init_saved_regs): Ditto.
451 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
452 (ia64_sigtramp_frame_prev_register): Ditto.
453 (ia64_sigtramp_frame_sniffer): Ditto.
454 (ia64_frame_base_address): Ditto.
455 (ia64_extract_struct_value_address): Change to issue error message.
456 (ia64_frame_align): New routine to align sp.
457 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
458 (ia64_push_arguments): Removed. Logic moved to
459 ia64_push_dummy_call().
460 (ia64_push_return_address): Ditto.
461 (ia64_unwind_dummy_id): New function.
462 (ia64_unwind_pc): Ditto.
463 (ia64_convert_register_p): Ditto.
464 (ia64_register_to_value): Ditto.
465 (ia64_value_to_register): Ditto.
466 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
467 (ia64_register_byte, ia64_register_raw_size): Ditto.
468 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
469 (ia64_saved_pc_after_call): Ditto.
470 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
471 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
472 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
473 (ia64_register_convert_to_raw): Ditto.
474 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
475 (ia64_init_extra_frame_info): Ditto.
476 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
477 (ia64_gdbarch_init): Remove registering of deprecated functions that
478 are no longer used. Add registration of new gdbarch functions.
479 Remove registering deprecated_write_sp. Replace
480 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
481 Delete set_gdbarch_deprecated_register_convertible(),
482 set_gdbarch_deprecated_register_convert_to_virtual(), and
483 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
484 set_gdbarch_deprecated_register_size(),
485 set_gdbarch_deprecated_register_bytes(),
486 set_gdbarch_pcregnum(),
487 set_gdbarch_deprecated_register_byte(),
488 set_gdbarch_deprecated_register_raw_size(),
489 set_gdbarch_deprecated_max_register_raw_size(),
490 set_gdbarch_deprecated_register_virtual_size(),
491 and set_gdbarch_deprecated_max_register_virtual_size() calls.
492 Replace set_gdbarch_deprecated_extract_return_value() with
493 set_gdbarch_extract_return_value(). Remove calls to:
494 set_gdbarch_deprecated_saved_pc_after_call();
495 set_gdbarch_deprecated_frame_chain(),
496 set_gdbarch_deprecated_frame_saved_pc(),
497 set_gdbarch_deprecated_frame_init_saved_regs(),
498 set_gdbarch_deprecated_get_saved_register(),
499 set_gdbarch_deprecated_call_dummy_words(),
500 set_gdbarch_deprecated_sizeof_call_dummy_words(),
501 set_gdbarch_deprecated_init_extra_frame_info(),
502 set_gdbarch_deprecated_frame_args_address(),
503 set_gdbarch_deprecated_frame_locals_address(),
504 and set_gdbarch_deprecated_dummy_write_sp().
505 Add set_gdbarch_convert_register_p(),
506 set_gdbarch_register_to_value(),
507 set_gdbarch_value_to_register(),
508 set_gdbarch_push_dummy_call(),
509 set_gdbarch_frame_align(),
510 set_gdbarch_unwind_dummy_id(),
511 set_gdbarch_unwind_pc(),
512 frame_unwind_append_sniffer(),
513 frame_unwind_append_sniffer(),
514 and frame_base_set_default().
516 2003-08-25 Chris Demetriou <cgd@broadcom.com>
518 * configure.tgt: Document need for special "mipsisa64" handling.
519 (mipsisa64*-*-linux64): Handle as target linux64.
520 (mipsisa64*-*-*): Handle as target embed64.
522 2003-08-18 Michael Chastain <mec@shout.net>
524 * PROBLEMS: Document pr gdb/1322, the Java anonymous
527 2003-08-24 Mark Kettenis <kettenis@gnu.org>
529 * i387-tdep.h: Update copyright date.
530 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
532 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
533 CFLAGS games to reflect reality.
535 2003-08-24 Andrew Cagney <cagney@redhat.com>
537 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
538 GDB_MULTI_ARCH is always non-zero.
539 * osabi.c (_initialize_gdb_osabi): Ditto.
540 (gdbarch_init_osabi): Ditto.
541 * sparc-tdep.c: Ditto for #if code.
543 2003-08-23 Mark Kettenis <kettenis@gnu.org>
545 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
547 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
549 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
550 x86_64_supply_fxsave.
551 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
552 x86_64_supply_fxsave.
553 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
554 x86_64_supply_fxsave.
556 2003-08-23 Andreas Jaeger <aj@suse.de>
558 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
561 2003-08-23 Mark Kettenis <kettenis@gnu.org>
563 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
564 i387_supply_register.
565 (go32_fetch_registers): Adjust call to i387_supply_fsave.
566 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
568 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
570 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
572 * i386bsd-nat.c (supply_fpregset): Adjust call to
574 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
575 call to i387_supply_fxsave. Call i387_supply_fsave instead of
577 (store_inferior_registers): Remove extraneous whitespace. Call
578 i387_fill_fsave instead of fill_fpregset.
579 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
580 (supply_fpregset): Likewise.
581 * i386v4-nat.c (supply_fpregset): Adjust call to
583 * i386-interix-nat.c (supply_fpregset): Adjust call to
585 * i386-linux-nat.c (supply_fpregset): Adjust call to
587 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
588 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
589 i387supply_fsave and i387_supply_fxsave.
590 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
591 Incorporate code from `i387_supply_register.
592 (i387_supply_register): Remove.
593 (i387_supply_fxsave): Add `regnum' argument.
595 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
597 (i387_supply_register): remove prototype.
600 2003-08-22 Michael Chastain <mec@shout.net>
602 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
603 Add lines for files in gdb/testsuite/gdb.cp/* that are
604 still not 8.3 unique.
606 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
608 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
609 TYPE_VPTR_FIELDNO is valid.
611 2003-08-19 Mark Kettenis <kettenis@gnu.org>
613 * utils.c (set_width_command): Remove prototypes.
614 (set_screen_size): New prototype.
615 (init_page_info): Simplify by fetching the screen size from
616 Readline. Call set_screen_size.
617 (set_screen_size): New function.
618 (set_width): Add missing whitespace in comment.
619 (set_width_command): Call set_screen_size.
620 (set_height_command): New function.
621 (initialize_utils): Fix formatting. Make "set height" command
622 call set_height_command. Remove redundant code that turns off
623 pagination if output isn't a terminal. Remove redundant call to
626 2003-08-22 Mark Kettenis <kettenis@gnu.org>
628 * sparc64-tdep.h (sparc64_regnum): Fix comment.
629 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
630 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
631 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
633 (sparc64_register_info): Give the reister with number
634 SPARC64_STATE_REGNUM a name.
635 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
637 (sparc64_push_dummy_call): Take BIAS into account when checking
639 (sparc_software_single_step): Remove assertions that check whether
640 NPC and NNPC were zero.
641 (sparc_supply_rwindow): Make public. Merge functionality with
642 sparc64_supply_rwindow.
643 (sparc_fill_rwindow): Make public. Merge functionality with
644 sparc64_fill_rwindow.
645 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
646 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
647 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
648 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
649 sparc_supply_rwindow instead of sparc64_supply_rwindow.
651 * reggroups.c: Add whitespace after declarations of local
652 variables in functions.
654 2003-08-21 Michael Chastain <mec@shout.net>
656 * gdbtypes.h: Change array bound type from an int to enum.
658 2003-08-21 Andrew Cagney <cagney@redhat.com>
660 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
661 * config/sparc/tm-sparc.h: Ditto.
662 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
664 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
666 2003-07-13 Mark Kettenis <kettenis@gnu.org>
668 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
669 (register_objfile_data, set_objfile_data, objfile_data): New
671 * objfiles.c (objfile_alloc_data, objfile_free_data): New
673 (allocate_objfile): Call objfile_alloc_data.
674 (free_objfile): Call objfile_free_data.
675 (struct objfile_data): New.
676 (struct objfile_data_registration): New.
677 (struct objfile_data_registry): New.
678 (objfile_data_registry): New variable.
679 (register_objfile_data): New function.
680 (objfile_alloc_data, objfile_free_data): New functions.
681 (set_objfile_data, objfile_data): New functions.
682 * dwarf2-frame.c (dwarf2_frame_data): New variable.
683 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
684 (_initialize_dwarf2_frame): New function and prototype.
686 2003-08-21 Andrew Cagney <cagney@redhat.com>
688 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
689 a specific architecture.
690 * arch-utils.h (set_architecture_from_arch_mach): Delete
692 (target_architecture_hook): Delete declaration.
693 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
694 (default_float_format): Assume GDB_MULTI_ARCH.
695 (default_double_format): Assume GDB_MULTI_ARCH.
696 (set_endian_from_file): Delete function.
697 (arch_ok): Delete function.
698 (set_arch): Delete function.
699 (set_architecture_from_arch_mach): Delete function.
700 (set_architecture_from_file): Delete function.
701 (set_architecture): Assume GDB_MULTI_ARCH.
702 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
704 2003-08-21 Mark Kettenis <kettenis@gnu.org>
706 Rewrite FreeBSD/sparc64 native configuration.
707 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
708 * sparc64fbsd-nat.c: New file.
709 * sparc64fbsd-tdep.c: New file.
710 * sparc64-tdep.c sparc64-tdep.h: New files.
711 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
712 sparc64fbsd-tdep.o): New dependencies.
713 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
714 and sparc64fbsd-tdep.c.
715 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
716 * config/sparc/fbsd.mh: Remove copyright notice.
717 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
719 * config/sparc/fbsd.mt: Remove copyright notice.
720 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
721 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
722 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
723 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
724 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
725 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
726 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
727 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
729 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
730 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
732 2003-08-21 Michael Chastain <mec@shout.net>
734 * symtab.h: Add doco on the space critical structures and
735 some measurements of space usage.
737 2003-08-21 Michael Snyder <msnyder@redhat.com>
739 * tracepoint.c (trace_dump_command): Trace break address
740 is subject to DECR_PC_AFTER_BREAK.
741 (set_traceframe_context): Make "trace_line" an int.
742 Fixes suggested by Mark Newman <mark.newman@lmco.com>
744 2003-08-20 Michael Snyder <msnyder@redhat.com>
746 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
747 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
748 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
750 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
751 functions, replace sh_push_dummy_call.
752 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
754 2003-08-20 Michael Chastain <mec@shout.net>
756 * gdbtypes.h (struct main_type): Rearrange to save space.
758 2003-08-20 Michael Snyder <msnyder@redhat.com>
760 * trad-frame.c: Comment typo fix.
762 2003-08-20 Michael Snyder <msnyder@redhat.com>
763 Kevin Buettner <kevinb@redhat.com>
765 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
766 (frv_frame_init_saved_regs): Add declaration.
767 (frame_extra_info): Add new field ``saved_regs''.
768 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
769 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
770 Update frame related code.
771 (frv_extract_struct_value_address): Adjust formatting.
772 * Makefile.in (frv-tdep.o): Update dependencies.
773 * config/frv/tm-frv.h (target_insert_watchpoint)
774 (target_remove_watchpoint, target_insert_hw_breakpoint)
775 (target_remove_hw_breakpoint): Delete these macros.
776 (remote_insert_watchpoint, remote_remove_watchpoint)
777 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
780 2003-08-20 Michael Chastain <mec@shout.net>
782 * defs.h (ENUM_BITFIELD): New macro.
783 * symtab.h (ENUM_BITFIELD): Use it.
784 (BYTE_BITFIELD): Remove old macro, which was already disabled.
786 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
788 * MAINTAINERS (write after approval): Add myself.
790 2003-08-18 Andrew Cagney <cagney@redhat.com>
792 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
793 * gdbarch.h, gdbarch.c: Re-generate.
794 * infcall.c (call_function_by_hand): Adjust the SP by
795 frame_red_zone_size before allocating any stack space.
796 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
797 * x86-64-tdep.c (x86_64_frame_align): New function.
798 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
800 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
801 Remove code adjusting SP so that it skips over the Red Zone.
803 2003-08-18 Mark Kettenis <kettenis@gnu.org>
805 * NEWS (New native configurations): Mention FreeBSD/amd64.
807 2003-08-18 Andrew Cagney <cagney@redhat.com>
809 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
810 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
812 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
814 2003-08-18 Mark Kettenis <kettenis@gnu.org>
816 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
818 2003-08-18 Michal Ludvig <mludvig@suse.cz>
820 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
822 * i386-linux-nat.c: Include "linux-nat.h".
823 (child_post_startup_inferior): New function.
825 2003-08-18 Mark Kettenis <kettenis@gnu.org>
827 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
828 at the start of a frameless function. This probably fixes PR
831 2003-08-17 Michael Chastain <mec@shout.net>
833 * symfile.c (find_sym_fns): Remove special case for apollo target.
835 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
837 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
838 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
839 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
840 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
841 (linux_supports_tracevforkdone): New function.
842 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
844 (child_follow_fork): Handle vfork.
845 (linux_handle_extended_wait): Likewise. Also handle exec.
846 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
847 * NEWS: Mention fork tracing.
849 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
851 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
853 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
855 * Makefile.in (i386-linux-nat.o): Update dependencies.
856 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
857 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
858 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
859 * i386-linux-nat.c: Include "linux-nat.h".
860 (child_post_startup_inferior): New function.
861 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
862 * infptrace.c (kill_inferior): Wrap in #ifdef.
863 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
864 attaching to each LWP.
865 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
866 (init_lin_lwp_ops): Fill in some more operations.
867 * linux-nat.h (linux_enable_event_reporting)
868 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
870 * linux-nat.c (linux_enable_event_reporting): New function.
871 (child_post_attach, linux_child_post_startup_inferior)
872 (child_post_startup_inferior, child_follow_fork)
873 (linux_handle_extended_wait, kill_inferior): New functions.
875 2003-08-16 Andrew Cagney <cagney@redhat.com>
877 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
878 * gdbarch.h, gdbarch.c: Re-generate.
880 2003-08-16 Mark Kettenis <kettenis@gnu.org>
882 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
884 2003-08-16 Andrew Cagney <cagney@redhat.com>
886 * NEWS: Mention that "set prompt-escape-char" was deleted.
887 * top.c (get_prompt_1): Delete function.
889 (init_main): Do not clear "gdb_prompt_escape". Delete "set
890 prompt-escape-char" command.
891 (MAX_PROMPT_SIZE): Delete macro.
892 (get_prompt): Simplify, do not call get_prompt_1.
894 2003-08-16 Andrew Cagney <cagney@redhat.com>
896 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
897 -Werror. -Wformat-nonliteral problems.
899 2003-08-15 J. Brobecker <brobecker@gnat.com>
901 Further multiarching work mostly for hppa64-*-hpux11:
902 * hppa-tdep.h: New file.
903 * hppa-tdep.c: #include hppa-tdep.c.
904 (hppa32_num_regs): Renamed from hppa_num_regs.
905 (hppa64_num_regs): New constant.
906 (hppa64_call_dummy_breakpoint_offset): New constant.
907 (hppa32_call_dummy_length): New constant.
908 (hppa64_call_dummy_length): New constant.
909 (hppa32_stack_align): Make name 32bit explicit.
910 (hppa32_register_virtual_type): Likewise.
911 (hppa32_extract_return_value): Likewise.
912 (hppa32_use_struct_convention): Likewise.
913 (hppa32_store_return_value): Likewise.
914 (hppa64_register_virtual_type): New function.
915 (hppa64_extract_return_value): New function.
916 (hppa64_use_struct_convention): New function.
917 (hppa64_store_return_value): New function.
918 (hppa_frame_locals_address): Remove declaration, function does
920 (hppa_register_byte): Add support for PA64 ABI.
921 (hppa_gdbarch_init): Add support for PA64 ABI.
922 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
923 Make name 32bit explicit.
924 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
925 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
926 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
927 (hppa64_hpux_frame_base_before_sigtramp): New function.
928 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
929 * config/pa/tm-hppa64.h: Remove macros that are no longer
930 necessary now that the gdbarch vector is properly setup.
931 Transform some macros into function calls. Some minor cleanup.
932 * config/pa/tm-hppah.h: Update function calls in macros
933 following the function renaming in hppa-hpux-tdep.c.
934 * Makefile.in (hppa_tdep_h): New variable.
935 (hppa-tdep.o): Add dependency over hppa_tdep_h.
937 2003-08-14 Michael Snyder <msnyder@redhat.com>
939 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
941 2003-08-13 J. Brobecker <brobecker@gnat.com>
943 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
944 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
947 2003-08-13 Michael Snyder <msnyder@redhat.com>
949 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
950 (frv_saved_pc_after_call): Use deprecated ftype.
951 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
952 (frv_remote_translate_xfer_address): Remove.
953 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
955 2003-08-13 J. Brobecker <brobecker@gnat.com>
957 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
958 initialization after the common gdbarch initialization, not before.
960 2003-08-13 J. Brobecker <brobecker@gnat.com>
962 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
963 (ADDR_BITS_REMOVE): Remove, redundant.
965 2003-08-13 J. Brobecker <brobecker@gnat.com>
967 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
968 gdbarch method to clear the 2 low bits of text addresses.
970 2003-08-12 Andrew Cagney <cagney@redhat.com>
972 * Makefile.in (dsrec.o): Update dependencies.
973 * dsrec.c: Include "gdb_assert.h".
974 (make_srec): Use snprintf instead of sprintf, use a literal format
977 2003-08-12 Andrew Cagney <cagney@redhat.com>
979 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
980 FRAME_OBSTACK_ZALLOC.
982 2003-08-12 Kevin Buettner <kevinb@redhat.com>
984 * i386-tdep.c (i386_gdbarch_init): Enable default support for
987 2003-08-10 Mark Kettenis <kettenis@gnu.org>
989 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
990 amd64fbsd_sc_reg_offset): Add extern declarations.
991 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
994 2003-08-11 Ben Elliston <bje@wasabisystems.com>
996 * MAINTAINERS (write after approval): Update my mail address.
998 2003-08-10 Andrew Cagney <cagney@redhat.com>
1000 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1002 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1004 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1005 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1006 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1007 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1008 i386bsd_sc_reg_offset): Add extern declarations.
1009 * i386obsd-nat.c: Include "i386-tdep.h"
1010 (_initialize_i386obsd_nat): Remove extern declarations.
1011 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1013 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1016 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1017 instead of frame_read_register.
1018 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1019 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1021 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1022 instead of frame_unwind_unsigned_register. Use
1023 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1024 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1025 instead of read_register. Use builtin_type_void_data_ptr instead
1026 of builtin_type_void_func_ptr when extracting the address of the
1028 (i386_extract_return_value, i386_store_return_value,
1029 i386_pseudo_register_read, i386_pseudo_register_write): Use
1030 register_size instead REGISTER_RAW_SIZE.
1032 2003-08-10 Andrew Cagney <cagney@redhat.com>
1034 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1035 sprintf. Make "name" constant.
1037 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1039 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1040 instead of frame_read_register.
1041 (i387_print_float_info): Use get_frame_register and
1042 get_frame_register_unsigned instead of frame_register_read.
1044 * i386fbsd-nat.c: Include "i386-tdep.h".
1045 (child_resume): Make `eflags' an ULONGEST. Use
1046 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1047 instead of register_read and register_write.
1049 * i386bsd-nat.c (fetch_inferior_registers,
1050 store_inferior_registers): Don't use && at the end of a line.
1051 (_initialize_i386bsd_nat): Fix typo.
1053 * frame.c (_initialize_frame): Add missing backslash.
1055 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1056 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1057 and supply_register instead of manipulating the register buffer
1060 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1061 * config/i386/nm-i386sol2.h
1062 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1064 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1065 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1066 instructions that GCC likes to mingle into the prologue. Fixes
1067 gdb/1253 and gdb/1255.
1069 2003-08-09 Andrew Cagney <cagney@redhat.com>
1072 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1073 * command.h (add_setshow_uinteger_cmd): Declare.
1074 * frame.c (set_backtrace_cmd): New function.
1075 (show_backtrace_cmd): New function.
1076 * frame.c (_initialize_frame): Replace "set/show
1077 backtrace-below-main" with "set/show backtrace past-main". Add
1078 command "set/show backtrace limit".
1079 (backtrace_past_main): Rename "backtrace_below_main".
1080 (backtrace_limit): New variable.
1081 (get_prev_frame): Update. Check the backtrace_limit.
1083 2003-08-09 Andrew Cagney <cagney@redhat.com>
1085 * defs.h (xstrprintf): Declare.
1086 * utils.c (xstrprintf): New function.
1087 * breakpoint.c (insert_breakpoints): Replace sprintf and
1088 non-literal format strings, with xstrprintf and cleanups.
1089 (delete_breakpoint,breakpoint_re_set): Ditto.
1090 (commands_command, insert_breakpoints): Ditto.
1091 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1092 (break_at_finish_command_1): Ditto.
1094 2003-08-09 Andrew Cagney <cagney@redhat.com>
1096 * MAINTAINERS (language support): List Adam Fedor as Objective C
1099 2003-08-08 J. Brobecker <brobecker@gnat.com>
1101 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1102 are now multiarched.
1104 2003-08-08 J. Brobecker <brobecker@gnat.com>
1106 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1107 longer necessary now that hppa64 is partially multiarch'ed.
1109 2003-08-08 Andrew Cagney <cagney@redhat.com>
1111 * interps.c (interp_set): Check for a NULL "old_interp".
1113 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1115 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1116 (install-only): Support DESTDIR.
1117 (uninstall): Likewise.
1118 (install-gdbtk): Likewise.
1120 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1122 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1123 contains something meaningful at all times.
1125 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1127 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1129 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1131 * MAINTAINERS (write after approval): Added self.
1133 2003-08-07 Andrew Cagney <cagney@redhat.com>
1135 * inferior.h (AT_SYMBOL): Define.
1136 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1137 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1138 * mips-tdep.c (mips_call_dummy_address): Delete function.
1139 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1140 set call_dummy_address.
1142 2003-08-07 Andrew Cagney <cagney@redhat.com>
1144 * language.c (op_error): Delete function.
1145 (binop_type_check): Delete function.
1146 * language.h (type_op_error, range_op_error): Delete macros.
1147 (op_error): Delete declaration.
1149 2003-08-07 Andrew Cagney <cagney@redhat.com>
1151 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1153 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1155 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1156 (x86_64_push_arguments): Skip the red zone.
1158 2003-08-05 Andrew Cagney <cagney@redhat.com>
1160 * reggroups.c (reggroup_next): Check for the final entry.
1162 2003-08-04 Andrew Cagney <cagney@redhat.com>
1164 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1165 * cli/cli-script.c (define_command): Call query directly, instead
1166 of passing it a buffer.
1167 * ocd.c (ocd_error): Pass error a constant format string.
1168 * remote-mips.c (mips_error): Use fputs_filtered.
1170 * solib-svr4.c (_initialize_svr4_solib): Update
1171 register_gdbarch_data call.
1172 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1174 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1175 (register_gdbarch_data): Delete "free" parameter. Update
1177 * gdbarch.h, gdbarch.c: Re-generate.
1178 * reggroups.c (_initialize_reggroup): Update.
1179 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1180 * frame-base.c (_initialize_frame_base): Update.
1181 * frame-unwind.c (_initialize_frame_unwind): Update.
1182 * user-regs.c (_initialize_user_regs): Update.
1183 * remote.c (_initialize_remote): Update.
1184 * regcache.c (_initialize_regcache): Update.
1186 * regcache.c (xfree_regcache_descr): Delete function.
1187 (_initialize_regcache): Update call to register_gdbarch_data.
1188 (init_regcache_descr, init_legacy_regcache_descr): Use
1189 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1191 * remote.c (free_remote_state): Delete function.
1192 (_initialize_remote): Update register_gdbarch_data.
1193 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1194 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1196 2003-08-04 Andrew Cagney <cagney@redhat.com>
1198 * reggroups.c (struct reggroup_el): Define.
1199 (struct reggroups): Delete field "nr_group". Replace array
1200 "group" with a "first" to "last" linked list.
1201 (reggroups_init): Update. Allocate using gdbarch's obstack.
1202 (reggroups_free): Delete function.
1203 (add_group): Update. Add "el" parameter.
1204 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1205 (default_groups): Update.
1206 (reggroup_next): Replace reggroups.
1207 (reggroups_dump): Update.
1208 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1209 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1210 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1212 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1214 * Makefile.in (tui-interp.o): Update dependencies.
1216 2003-08-04 David Carlton <carlton@kealia.com>
1218 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1219 to internal_error call.
1220 * source.c (forward_search_command): Add "%s" format argument.
1221 (reverse_search_command): Ditto.
1222 * top.c (quit_confirm): Ditto.
1223 * cli/cli-setshow.c (do_setshow_command): Ditto.
1224 * cp-valprint.c (cp_print_class_method): Replace
1225 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1226 (cp_print_class_member): Ditto.
1227 * event-top.c (command_line_handler): Ditto.
1228 * linux-proc.c (linux_info_proc_cmd): Ditto.
1229 * p-typeprint.c (pascal_type_print_base): Ditto.
1230 * p-valprint.c (pascal_object_print_class_method): Ditto.
1231 (pascal_object_print_class_member): Ditto.
1232 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1233 * remote.c (remote_cisco_section_offsets): Ditto.
1234 * top.c (command_line_input): Ditto.
1235 * utils.c (vwarning,error_stream,quit): Ditto.
1236 * valprint.c (print_floating,print_binary_chars)
1237 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1239 2003-08-04 Andrew Cagney <cagney@redhat.com>
1241 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1243 2003-08-02 Andrew Cagney <cagney@redhat.com>
1245 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1246 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1249 2003-08-02 Andrew Cagney <cagney@redhat.com>
1251 * Makefile.in: Update all dependencies and definitions.
1253 2003-08-02 Adam Fedor <fedor@gnu.org>
1255 * linespec.c (is_objc_method_format): New function
1256 (decode_line_1, locate_first_half): Use it.
1259 2003-08-01 Andrew Cagney <cagney@redhat.com>
1261 * NEWS: Mention that m32r is multi-arch.
1262 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1263 * configure.tgt: Recognize m32r-*-*.
1264 * config/m32r/tm-m32r.h: Delete file.
1265 * config/m32r/m32r.mt: New file.
1266 * m32r-rom.c (m32r_upload_command): Use hostent only when
1267 gethostname succeeds, in order to avoid a compilation
1269 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1272 2003-08-01 Michael Snyder <msnyder@redhat.com>
1274 * sh-tdep.c (sh_frame_align): New gdbarch method.
1275 (sh_gdbarch_init): Set up frame_align method.
1277 2003-07-31 Michael Snyder <msnyder@redhat.com>
1279 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1280 which is already covered by the new frames infrastructure.
1282 2003-07-31 Andrew Cagney <cagney@redhat.com>
1284 * user-regs.c (struct user_reg): Add "next" link.
1285 (struct user_regs): Replace "user" with "first" and "last" links.
1286 (append_user_reg): Add pre-allocated "reg" parameter.
1287 (builtin_user_regs): Provide initial value for "last".
1288 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1289 (user_regs_init): Allocate memory from the gdbarch obstack.
1290 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1291 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1293 (usernum_to_user_reg): New function.
1294 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1295 (value_of_user_reg): Use usernum_to_user_reg.
1296 (user_regs_free): Delete function.
1297 (_initialize_user_regs): Update register_gdbarch_data call.
1299 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1301 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1303 2003-07-30 Michael Snyder <msnyder@redhat.com>
1305 * value.h (value_being_returned): Add a struct_addr argument.
1306 * infcall.c (call_function_by_hand): Pass struct_addr to
1307 value_being_returned.
1308 * infcmd.c (print_return_value): Pass zero as struct_addr.
1309 * values.c (value_being_returned): If struct_addr is passed,
1310 use it instead of trying to recover it from the inferior.
1312 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1314 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1315 the prologue analyzer won't need to attempt to extract the pc
1316 value from the woefully incomplete dummy frame.
1317 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1318 possible. Disable code which modifies the frame.
1320 2003-07-28 Andrew Cagney <cagney@redhat.com>
1322 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1324 (annotate_breakpoints_table, annotate_record): Ditto.
1325 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1326 (annotate_field_name_end, annotate_field_value): Ditto.
1327 (annotate_field_end, annotate_frame_source_begin): Ditto.
1328 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1329 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1330 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1331 (annotate_frame_address_end, annotate_frame_address): Ditto.
1332 (annotate_frame_args, annotate_frame_end): Ditto.
1333 (annotate_frame_where, annotate_arg_begin): Ditto.
1334 (annotate_arg_name_end, annotate_arg_value): Ditto.
1335 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1336 (annotate_function_call, annotate_signal_name): Ditto.
1337 (annotate_signal_string, annotate_signal_name_end): Ditto.
1338 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1339 (annotate_value_begin, annotate_value_history_value): Ditto.
1340 (annotate_value_history_end, annotate_value_end): Ditto.
1341 (annotate_display_begin, annotate_display_number_end): Ditto.
1342 (annotate_display_format, annotate_display_expression): Ditto.
1343 (annotate_display_expression_end, annotate_display_value): Ditto.
1344 (annotate_display_end, annotate_array_section_begin): Ditto.
1345 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1346 (annotate_elt, annotate_array_section_end): Ditto.
1348 2003-07-28 Andrew Cagney <cagney@redhat.com>
1350 * regcache.c (struct regcache_descr): Update comments on
1352 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1353 sizeof_raw_register_valid_p.
1354 (init_regcache_descr): Set nr_raw_registers and
1355 sizeof_raw_register_valid_p before calling
1356 init_legacy_regcache_descr.
1358 2003-07-28 Andrew Cagney <cagney@redhat.com>
1360 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1363 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1365 * thread.c (info_threads_command): Use get_selected_frame ().
1366 Check that there is at least one non-sentinel frame.
1368 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1370 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1371 (m68hc11_pop_frame): Remove.
1372 (m68hc11_frame_saved_pc): Remove.
1373 (m68hc11_frame_chain): Remove.
1374 (m68hc11_frame_init_saved_regs): Remove.
1375 (m68hc11_init_extra_frame_info): Remove.
1376 (m68hc11_store_struct_return): Remove.
1377 (m68hc11_saved_pc_after_call): Remove.
1379 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1381 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1382 frame unwind information.
1383 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1384 and adapted for frame unwinding.
1385 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1386 (m68hc11_unwind_pc): New function.
1387 (m68hc11_frame_unwind_cache): New function to analyze frames.
1388 (m68hc11_frame_this_id): New function to create new frame struct.
1389 (m68hc11_frame_prev_register): New function to unwind a register from
1391 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1392 (m68hc11_frame_p): New function for the above.
1393 (m68hc11_frame_base_address): New function to return fp of frame.
1394 (m68hc11_frame_args_address): Update for frame.
1395 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1396 (m68hc11_unwind_sp): New function.
1397 (m68hc11_unwind_dummy_id): New function.
1398 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1401 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1403 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1404 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1405 when we are beyond the current pc.
1407 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1409 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1410 from m68hc11_push_arguments.
1411 (m68hc11_push_arguments): Remove.
1412 (m68hc11_push_return_address): Remove.
1413 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1414 handlers; remove deprecated_extra_stack_alignment_needed.
1416 2003-07-27 Andrew Cagney <cagney@redhat.com>
1418 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1419 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1420 REAL_PC and not the pointer.
1421 * hppa-hpux-tdep.c: Include frame.h
1423 2003-07-27 Andrew Cagney <cagney@redhat.com>
1425 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1426 GDB_MULTI_ACH_PARTIAL.
1428 2003-07-27 Andrew Cagney <cagney@redhat.com>
1430 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1431 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1432 operator at start and not end of line.
1433 (decode_prologue): Ditto.
1434 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1435 frame_unwind_register_unsigned instead of
1436 frame_unwind_unsigned_register.
1437 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1439 (m32r_push_dummy_call): Use register_size instead of
1441 (m32r_frame_sniffer): Replace m32r_frame_p.
1442 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1443 * m32r-rom.c (report_transfer_performance): Delete extern
1445 (m32r_load, m32r_upload_command): Use print_transfer_performance
1446 instead of report_transfer_performance.
1447 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1448 / add_show_from_set.
1450 2003-07-26 Andrew Cagney <cagney@redhat.com>
1452 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1453 store_return_value and extract_struct_value_address.
1455 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1458 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1459 NULL, default to the section containing PC.
1461 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1463 * NEWS: Mention "regs" deprecated for m68hc11 too.
1465 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1466 (m68hc11_print_register): New function to print out one register.
1467 (m68hc11_print_registers_info): New function to print registers.
1468 (show_regs): Deprecate and use the above.
1469 (m68hc11_gdbarch_init): Install the print_registers_info.
1471 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1473 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1474 that we have a SIGTRAP before returning non-zero.
1476 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1477 Elena Zannoni <ezannoni@redhat.com>
1479 * linespec.c (decode_line_2): Avoid crash if
1480 find_function_start_sal() returns empty record.
1482 2003-07-23 Andreas Schwab <schwab@suse.de>
1484 * ia64-tdep.c (ia64_print_insn): New function.
1485 (ia64_gdbarch_init): Set print_insn to it.
1486 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1487 deprecated_tm_print_insn_info.
1489 2003-07-22 Michael Snyder <msnyder@redhat.com>
1491 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1492 handle 8-bit returns (long long).
1493 (h8300h_extract_return_value): Ditto.
1494 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1496 2003-07-22 Andrew Cagney <cagney@redhat.com>
1498 * gdbarch.c Include "gdb_obstack.h".
1499 (struct gdbarch): Add an "obstack".
1500 (alloc_gdbarch_data): Allocate the gdbarch data using
1501 GDBARCH_OBSTACK_CALLOC.
1502 (free_gdbarch_data): Delete function.
1503 (gdbarch_obstack_zalloc): New function.
1504 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1505 Assert that the architecture is not initialized.
1506 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1507 vector from the obstack.
1508 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1509 architecture obstack.
1510 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1511 (set_gdbarch_data): Assert that the data is not initialized.
1512 (struct gdbarch_data): Delete member "free".
1513 (register_gdbarch_data): Do not initialize "free".
1514 * gdbarch.h, gdbarch.c: Re-generate.
1516 2003-07-22 Andrew Cagney <cagney@redhat.com>
1518 * configure.in (build_warnings): Add -Wformat-nonliteral.
1519 * configure: Re-generate.
1521 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1523 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1525 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1527 * findvar.c (read_var_value): Remove case for thread local storage
1528 variables. It is now entirely handled by the dwarf2 location
1530 * printcmd.c (address_info): Ditto.
1531 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1533 (struct symbol): Remove objfile field, which was used by
1534 LOC_THREAD_LOCAL_STATIC only.
1535 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1536 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1537 usage of objfile pointer.
1538 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1539 thread local variables.
1540 Add include of objfiles.h.
1541 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1543 * Makefile.in (dwarf2loc.o): Update dependencies.
1545 2003-07-22 Andrew Cagney <cagney@redhat.com>
1547 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1549 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1550 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1551 (struct value): Add opaque declaration.
1552 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1554 2003-07-21 Andrew Cagney <cagney@redhat.com>
1556 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1557 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1559 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1561 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1562 regcache_cooked_read_unsigned instead of read_register.
1563 (m68hc11_saved_pc_after_call): Likewise.
1564 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1565 instead of write_register.
1566 (m68hc11_register_type): New function.
1567 (m68hc11_register_virtual_type): Remove.
1568 (m68hc11_store_return_value): Convert to use the regcache.
1569 (m68hc11_extract_struct_value_address): Likewise.
1570 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1571 m68hc11_register_type; undeprecate store_return_value and
1572 extract_struct_value_address.
1574 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1576 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1577 and translate to use regcache.
1578 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1580 2003-07-18 Andrew Cagney <cagney@redhat.com>
1582 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1583 * gdbarch.h, gdbarch.c: Re-generate.
1584 * i386-tdep.c (i386_gdbarch_init): Do not set
1585 DWARF2_BUILD_FRAME_INFO.
1586 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1588 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1589 DWARF2_BUILD_FRAME_INFO.
1591 2003-07-18 Andrew Cagney <cagney@redhat.com>
1593 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1594 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1596 2003-07-18 Andrew Cagney <cagney@redhat.com>
1598 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1599 frame_unwind_address_in_block, instead of frame_pc_unwind.
1600 (dwarf2_frame_cache): Ditto.
1602 2003-07-18 Andrew Cagney <cagney@redhat.com>
1604 * user-regs.h (struct gdbarch): Declare opaque.
1605 * ui-out.h (struct ui_file): Declare opaque.
1606 * dwarf2-frame.h (struct frame_info): Declare opaque.
1608 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1610 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1612 (procfs_meminfo): Change strerror to safe_strerror.
1613 (procfs_can_run): Remove K&R badness.
1615 2003-07-17 Michael Snyder <msnyder@redhat.com>
1617 * remote-sim.c: Comment typo fix.
1619 2003-07-17 Andrew Cagney <cagney@redhat.com>
1621 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1623 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1624 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1625 GDB_MULTI_ARCH_PARTIAL.
1627 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1629 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1630 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1631 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1633 2003-07-16 Theodore A. Roth <troth@openavr.org>
1635 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1637 (avr_frame_unwind_cache): Don't unwind FP for main.
1639 Save the computed prev_sp.
1640 (avr_saved_regs_unwinder): Remove function.
1641 (avr_frame_prev_register): Use PC unwind logic from
1642 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1644 2003-07-16 Andrew Cagney <cagney@redhat.com>
1646 * frame-base.h (frame_base_p_ftype): Delete definition.
1647 (frame_base_append_predicate): Delete declaration.
1648 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1649 (frame_unwind_append_predicate): Delete declaration.
1650 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1651 (append_predicate): Delete parameter "p".
1652 (frame_unwind_append_predicate): Delete function.
1653 (frame_unwind_append_sniffer): Update call to append_predicate.
1654 (frame_unwind_free): Delete function.
1655 (_initialize_frame_unwind): Pass NULL as "free" to
1656 register_gdbarch_data.
1657 (frame_unwind_init): Append the dummy_frame_sniffer.
1658 (frame_unwind_find_by_frame): Simplify.
1659 * frame-base.c (struct frame_base_table): Delete field "p".
1660 (append_predicate): Delete parameter "p".
1661 (frame_base_append_predicate): Delete function.
1662 (frame_base_append_sniffer): Update call to append_predicate.
1663 (frame_base_free): Delete function.
1664 (frame_base_find_by_frame): Simplify.
1665 (_initialize_frame_base): Pass NULL as "free" to
1666 register_gdbarch_data.
1667 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1668 (x86_64_sigtramp_frame_sniffer): Replace
1669 "x86_64_sigtramp_frame_p".
1670 (x86_64_init_abi): Set the frame unwind sniffers.
1671 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1672 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1673 (m68k_gdbarch_init): Set the frame unwind sniffers.
1674 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1675 "i386_sigtramp_frame_p".
1676 (i386_frame_sniffer): Replace "i386_frame_p".
1677 (i386_gdbarch_init): Set the frame unwind sniffers.
1678 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1679 (avr_gdbarch_init): Set the frame unwind sniffers.
1680 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1681 "alpha_sigtramp_frame_p"
1682 (alpha_heuristic_frame_sniffer): Replace
1683 "alpha_heuristic_frame_p".
1684 (alpha_gdbarch_init): Set the frame unwind sniffers.
1685 (alpha_dwarf2_init_abi): Ditto.
1686 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1687 "alpha_debug_frame_p".
1688 (alpha_mdebug_frame_base_sniffer): Replace
1689 "alpha_mdebug_frame_base_p".
1690 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1691 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1692 (d10v_gdbarch_init): Set the frame unwind sniffer.
1693 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1694 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1695 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1696 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1697 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1698 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1700 2003-07-16 Michael Snyder <msnyder@redhat.com>
1702 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1703 should go thru sh_dsp_register_sim_regno, else the dsp regs
1704 will not get the right values.
1706 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1708 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1709 deprecated_store_floating by call to store_typed_floating.
1710 (sh_sh4_register_convert_to_raw): Substitute call to
1711 deprecated_extract_floating by call to extract_typed_floating.
1713 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1715 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1717 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1719 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1720 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1721 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1723 (do_pseudo_register): Remove.
1724 (sh_push_dummy_code): New function.
1725 (sh64_store_struct_return): Rename from sh_store_struct_return.
1726 Only called for sh64 now.
1727 (sh_extract_struct_value_address): Regcache'ify.
1728 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1729 and accomodate new tasks.
1730 (sh64_push_return_address): Rename from sh_push_return_address.
1731 Only called for sh64 now.
1732 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1734 (sh3e_sh4_extract_return_value): Regcache'ify.
1735 (sh_default_store_return_value): Ditto.
1736 (sh3e_sh4_store_return_value): Ditto.
1737 (sh_default_register_byte): Remove.
1738 (sh_sh4_register_byte): Remove.
1739 (sh_default_register_raw_size): Remove.
1740 (sh_sh4_register_raw_size): Remove.
1741 (sh_register_virtual_size): Remove.
1742 (sh_sh3e_register_virtual_type): Remove.
1743 (sh_sh3e_register_type): New function.
1744 (sh_sh4_register_virtual_type): Remove.
1745 (sh_sh4_register_type): New function.
1746 (sh_default_register_virtual_type): Remove.
1747 (sh_default_register_type): New function.
1748 (do_fv_register_info): Add parameters to accomodate call from
1749 sh_print_registers_info.
1750 (do_dr_register_info): Ditto.
1751 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1752 Add parameters to accomodate call from sh_print_registers_info.
1753 (sh_do_fp_register): Ditto.
1754 (sh64_do_pseudo_register): Call do_dr_register_info,
1755 do_fv_register_info and sh_do_fp_register with default parameters.
1756 (sh_do_register): Add parameters to accomodate call from
1757 sh_print_registers_info.
1758 (sh_print_register): Ditto.
1759 (sh_print_registers_info): Rename from sh_do_registers_info.
1760 Add parameters to be used as gdbarch_print_registers_info
1761 implementation. Accomodate removed do_pseudo_register function
1763 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1764 function pointer. Call sh_print_register with default parameters.
1765 (sh64_do_registers_info): Call sh_print_registers_info instead of
1766 sh_do_registers_info.
1767 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1768 detection of deprecated vs. non-deprecated functionality.
1769 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1770 function pointer assignments by direct function calls.
1772 2003-07-15 Andrew Cagney <cagney@redhat.com>
1774 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1775 (frame_register_unwind, create_new_frame): Ditto.
1776 (legacy_get_prev_frame, get_frame_type): Ditto.
1777 (get_frame_base_address): Use frame_base_find_by_frame.
1778 (get_frame_locals_address): Use frame_base_find_by_frame.
1779 (get_frame_args_address): Use frame_base_find_by_frame.
1780 * frame-base.h (frame_base_sniffer_ftype): Declare.
1781 (frame_base_append_sniffer): Declare.
1782 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1783 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1784 (frame_base_append_sniffer): New function.
1785 (frame_base_append_predicate): Add a NULL sniffer.
1786 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1787 (struct frame_base_table): Add "sniffer".
1788 (frame_base_free): Free the "sniffer" table.
1789 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1790 (frame_unwind_append_sniffer): Declare.
1791 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1792 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1793 (struct frame_unwind_table): Add "sniffer", delete "middle".
1794 (append_predicate): Add "sniffer" parameter, append the sniffer.
1795 (frame_unwind_init): Update append_predicate call.
1796 (frame_unwind_append_sniffer): New function.
1797 (frame_unwind_append_predicate): Update append_predicate call.
1798 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1800 2003-07-15 Andrew Cagney <cagney@redhat.com>
1802 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1803 before code inhibiting repeated unwind attempts. Add to
1804 commentary on that test's problems.
1805 * blockframe.c (inside_main_func): Look for "main" in the minimal
1807 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1810 2003-07-15 Andrew Cagney <cagney@redhat.com>
1812 * complaints.c (struct explanation): Define.
1813 (struct complaints): Change type of "explanation" to "struct
1815 (symfile_explanations): Convert to a "struct explanation" table.
1816 (vcomplaint): Update.
1818 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1820 * x86-64-linux-nat.c (regmap): Removed.
1821 (supply_gregset, fill_gregset): Call
1822 x86_64_linux_(fill,supply)_gregset functions.
1823 * x86-64-linux-tdep.c (USER_*): New defines.
1824 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1825 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1827 (fetch_core_registers): Ditto.
1828 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1829 * x86-64-linux-tdep.h: New file.
1830 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1832 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1834 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1836 * x86-64-tdep.c (x86_64_store_return_value): Use
1837 regcache_cooked_write_part instead of regcache_cooked_write.
1839 * configure.host: Add x86_64-*-freebsd*.
1840 * configure.tgt: Add x86_64-*-freebsd*.
1841 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1842 * amd64fbsd-nat.c: New file.
1843 * amd64fbsd-tdep.c: New file.
1844 * config/i386/nm-fbsd64.h: New file.
1845 * config/i386/fbsd64.mh: New file.
1846 * config/i386/fbsd64.mt: New file.
1848 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1850 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1851 `sc_regs_offset' and `sc_fpregs_offset'.
1852 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1853 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1854 (alpha_sigtramp_register_address): Rewrite to use new members of
1855 `struct gdbarch_tdep'.
1856 (alpha_gdbarch_init): Initialize new members of struct
1858 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1859 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1860 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1861 (alphafbsd_pc_in_sigtramp): Implement.
1862 (alphafbsd_sigtramp_offset): New function.
1863 (alphafbsd_sigcontext_addr): New function.
1864 (alphafbsd_init_abi): Initialize signal trampoline related members
1865 of `struct gdbarch_tdep'.
1866 (_initialize_alphafbsd_tdep): Add prototype.
1868 2003-07-11 Theodore A. Roth <troth@openavr.org>
1870 * Makefile.in (install-only): Quote sed expression when generating
1873 2003-07-11 Richard Henderson <rth@redhat.com>
1875 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1876 * dwarf2-frame.c: Include complaints.h.
1877 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1878 variable initialization; return NULL on error.
1879 (decode_frame_entry): New.
1881 2003-07-11 Andrew Cagney <cagney@redhat.com>
1883 * frame.h (frame_address_in_block): Delete declaration.
1884 * blockframe.c (frame_address_in_block): Delete function.
1885 (get_frame_block): Use get_frame_address_in_block.
1886 (block_innermost_frame): Ditto.
1887 * stack.c (print_frame, backtrace_command_1): Ditto.
1889 * frame.h (get_frame_address_in_block): Declare.
1890 (frame_unwind_address_in_block): Declare.
1891 * frame.c (frame_unwind_address_in_block): New function.
1892 (get_frame_address_in_block): New function.
1894 2003-07-10 Andrew Cagney <cagney@redhat.com>
1896 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1897 pre-default. Note: re-generate has no effect.
1899 2003-07-10 Andrew Cagney <cagney@redhat.com>
1901 * gdbarch.sh: When a variable, but not a function, compare against
1902 0. Fix problem in previous patch.
1903 * gdbarch.c: Re-generate.
1905 2003-07-10 Andrew Cagney <cagney@redhat.com>
1907 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1908 functions against NULL, not 0.
1909 * gdbarch.c: Re-generate.
1911 2003-07-10 Fred Fish <fnf@ninemoons.com>
1913 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1914 null string instead of a null pointer.
1915 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1917 2003-07-09 Michael Snyder <msnyder@redhat.com>
1919 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1921 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1923 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1924 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1925 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1926 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1927 * x86-64-tdep.c: ... from here.
1929 2003-07-09 Andreas Schwab <schwab@suse.de>
1931 * m68k-tdep.h (enum struct_return): Define.
1932 (struct gdbarch_tdep): Add struct_return.
1933 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1934 bytes are padded to the right, not to the left. Pass struct value
1935 address in register %a1, not on stack.
1936 (m68k_use_struct_convention): New function.
1937 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1938 struct_return in tdep to pcc_struct_return.
1939 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1942 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1944 * somread.c (som_symfile_offsets): Fix compilation error.
1946 2003-07-09 Andrew Cagney <cagney@redhat.com>
1948 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1949 Add comments about the checks.
1951 2003-07-08 Andrew Cagney <cagney@redhat.com>
1953 * Makefile.in: Make dependency section headers consistent.
1954 (config_h): Move to $BUILD headers section.
1955 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1956 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1957 (ada-exp.tab.c): Move to YACC/LEX section.
1958 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1959 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1961 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1963 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1964 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1965 of strerror with safe_strerror, use ISO C function definitions,
1966 and replace instances of sprintf with snprintf.
1968 2003-07-07 Andrew Cagney <cagney@redhat.com>
1970 * frame.c (get_prev_frame): Enable check for identical frames.
1971 Update comments. Update error messages.
1973 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1975 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1977 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1979 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1980 sort_symtab_syms, no longer necessary.
1982 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1984 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1986 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1988 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1989 (mips_register_byte): Likewise.
1991 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1993 * Makefile.in (sparc_tdep_h): New.
1994 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1995 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1996 * sparc-linux-nat.c: Include "sparc-tdep.h".
1997 * sparc-nat.c: Likewise.
1998 * sparc-tdep.c: Likewise.
1999 * sparc64nbsd-nat.c: Likewise.
2000 * sparcnbsd-nat.c: Likewise.
2001 * sparcnbsd-tdep.c: Likewise.
2002 * sparc-tdep.h: New file.
2003 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2004 and sparc_npc_regnum.
2006 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2008 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2009 (mips_linux_cannot_store_register): List supported instead of
2010 unsupported registers.
2012 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2014 * disasm.c (dump_insns): Separate instructions from addresses.
2016 2003-07-07 Andreas Schwab <schwab@suse.de>
2018 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2020 * m68k-tdep.c (NUM_FREGS): Delete.
2021 (SIG_PC_FP_OFFSET): Delete.
2022 (TARGET_M68K): Delete.
2023 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2024 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2025 P_MOVEL_SP, P_MOVEML_SP): Define.
2026 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2028 (m68k_register_raw_size): Delete.
2029 (m68k_register_virtual_size): Delete.
2030 (m68k_register_type): Renamed from m68k_register_virtual_type and
2031 add gdbarch argument.
2032 (m68k_store_struct_return): Delete.
2033 (m68k_deprecated_extract_return_value): Delete.
2034 (m68k_deprecated_extract_struct_value_address): Delete.
2035 (m68k_frame_chain): Delete.
2036 (m68k_frame_saved_pc): Delete.
2037 (m68k_fix_call_dummy): Delete.
2038 (m68k_push_dummy_frame): Delete.
2039 (m68k_pop_frame): Delete.
2040 (m68k_extract_return_value): New function.
2041 (m68k_store_return_value): Rewrite using regcache.
2042 (m68k_extract_struct_value_address): Rewrite using regcache.
2043 (m68k_push_dummy_call): New function.
2044 (struct m68k_frame_cache): Define.
2045 (m68k_alloc_frame_cache): New function.
2046 (m68k_analyze_frame_setup): New function.
2047 (m68k_analyze_register_saves): New function.
2048 (m68k_analyze_prologue): New function.
2049 (m68k_skip_prologue): Rewrite using above functions.
2050 (m68k_unwind_pc): New function.
2051 (m68k_frame_cache): New function.
2052 (m68k_frame_this_id): New function.
2053 (m68k_frame_prev_register): New function.
2054 (m68k_frame_unwind): New variable.
2055 (m68k_frame_p): New function.
2056 (m68k_sigtramp_frame_cache): New function.
2057 (m68k_sigtramp_frame_this_id): New function.
2058 (m68k_sigtramp_frame_prev_register): New function.
2059 (m68k_sigtramp_frame_unwind): New variable.
2060 (m68k_sigtramp_frame_p): New function.
2061 (m68k_frame_base_address): New function.
2062 (m68k_frame_base): New function.
2063 (m68k_unwind_dummy_id): New function.
2064 (fill_gregset): Use regcache_collect.
2065 (fill_fpregset): Likewise.
2066 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2068 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2069 deprecated_init_frame_pc, deprecated_store_struct_return,
2070 deprecated_extract_return_value, deprecated_store_return_value,
2071 deprecated_frame_chain, deprecated_frame_saved_pc,
2072 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2073 deprecated_register_virtual_size,
2074 deprecated_max_register_raw_size,
2075 deprecated_max_register_virtual_size,
2076 deprecated_register_virtual_type, deprecated_register_size,
2077 deprecated_register_byte, deprecated_register_bytes,
2078 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2079 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2080 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2081 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2082 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2083 deprecated_push_dummy_frame, deprecated_pop_frame,
2084 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2085 only if SYSCALL_TRAP is defined. Set extract_return_value,
2086 store_return_value, extract_struct_value_address, register_type,
2087 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2089 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2090 M68K_MAX_REGISTER_SIZE): Define.
2091 (struct m68k_sigtramp_info): Define.
2092 (struct gdbarch_tdep): Add get_sigtramp_info.
2093 * m68klinux-nat.c (fetch_register): Use register_size instead of
2094 REGISTER_RAW_SIZE. Don't put assignment in if.
2095 (store_register): Likewise.
2096 (fetch_inferior_registers): Likewise.
2097 (store_inferior_registers): Likewise.
2098 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2099 (m68k_linux_frame_saved_pc): Delete.
2100 (m68k_linux_sigcontext_reg_offset,
2101 m68k_linux_ucontext_reg_offset): Define.
2102 (m68k_linux_get_sigtramp_info): New function.
2103 (m68k_linux_extract_return_value): Rewrite using regcache.
2104 (m68k_linux_store_return_value): Likewise.
2105 (m68k_linux_extract_struct_value_address): Likewise.
2106 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2107 Don't set deprecated_frame_saved_pc,
2108 deprecated_extract_return_value, deprecated_store_return_value,
2109 deprecated_extract_struct_value_address. Set
2110 extract_return_value, store_return_value,
2111 extract_struct_value_address.
2113 2003-07-07 Andrew Cagney <cagney@redhat.com>
2115 * expprint.c: Include "user-regs.h" instead of "frame.h".
2116 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2117 frame_map_regnum_to_name.
2118 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2119 (frame_map_name_to_regnum): Simplify, call
2120 user_reg_map_name_to_regnum.
2121 (frame_map_regnum_to_name): Simplify, call
2122 user_reg_map_regnum_to_name.
2123 (frame_register_unwind): Update.
2124 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2125 (_initialize_frame_reg): Call user_reg_add_builtin.
2126 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2127 (value_of_register): Use value_of_user_reg.
2128 * eval.c (evaluate_subexp_standard): Update.
2129 * parse.c (write_dollar_variable): Update.
2130 * d10v-tdep.c (d10v_print_registers_info): Update.
2131 * infcmd.c (registers_info): Update.
2132 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2133 (builtin_regs_h): Delete macro.
2134 (user_regs_h): Define.
2135 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2136 (builtin-regs.o): Delete target.
2137 (user-regs.o): Specify dependencies.
2138 (expprint.o): Update dependencies.
2139 (findvar.o): Update dependencies.
2140 (frame.o): Update dependencies.
2141 (std-regs.o): Update dependencies.
2143 2003-07-06 Christopher Faylor <cgf@redhat.com>
2145 * win32-nat.c (solib_symbols_add): Use one variable for all section
2146 address stuff. Pass variable rather than address of variable to
2147 safe_symbol_file_add.
2149 2003-07-06 Andreas Schwab <schwab@suse.de>
2151 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2153 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2155 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2157 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2159 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2161 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2163 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2164 * config/i386/nto.mh: New file.
2165 * config/i386/nm-nto.h: New file.
2166 * configure.host: Add i[3456]86-*-nto*.
2168 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2170 * remote-vx.c (vx_add_symbols): Fix compilation error.
2172 2003-07-03 Andrew Cagney <cagney@redhat.com>
2174 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2175 * gdbarch.h, gdbarch.c: Re-generate.
2176 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2177 (legacy_register_name): Declare.
2178 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2179 (REGISTER_NAME): Define.
2180 * sparc-tdep.c (legacy_register_name): New function.
2181 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2182 (REGISTER_NAME): Define.
2183 (hppa64_register_name): Declare.
2184 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2185 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2186 (hppa64_register_name): New function.
2187 (hppa_register_name): New function.
2188 * arch-utils.c (legacy_register_name): Delete.
2189 * arch-utils.h (legacy_register_name): Delete.
2191 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2193 * cli/cli-interp.c (cli_interpreter_resume): Update the
2194 cli_uiout's stream to gdb_stdout.
2196 2003-07-03 Andrew Cagney <cagney@redhat.com>
2198 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2200 * gdbarch.h, gdbarch.c: Re-generate.
2201 * regcache.c (init_regcache_descr): Use legacy code when either
2202 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2204 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2206 * NEWS: Move "set logging" entry into GDB 6.0 section.
2208 2003-07-02 Jim Blandy <jimb@redhat.com>
2210 * s390-tdep.c (struct frame_extra_info): new member:
2211 'stack_bought_valid'.
2212 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2213 initialize fextra_info->stack_bought.
2214 (s390_frameless_function_invocation): Don't trust the value of
2215 fextra_info_ptr->stack_bought unless
2216 fextra_info->stack_bought_valid is set.
2218 New S390 prologue analyzer.
2219 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2220 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2221 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2222 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2223 compute_x_addr, s390_on_stack, s390_store,
2224 s390_get_signal_frame_info): New functions.
2225 (S390_NUM_SPILL_SLOTS): New macro.
2226 (s390_get_frame_info): Rewritten.
2227 (is_arg_reg): Deleted.
2229 Break out the decoding of S/390 instructions into separate
2230 functions, to make it more legible, and easier to check
2232 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2233 is_rx, is_rxe): New functions.
2234 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2235 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2236 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2237 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2238 enums for opcode values. (Is this an improvement?)
2240 2003-07-02 Andrew Cagney <cagney@redhat.com>
2242 * i386-tdep.c: Revert change committed as part of trad-frame code
2245 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2247 * breakpoint.c (insert_catchpoint): Make static.
2249 2003-07-02 Andreas Schwab <schwab@suse.de>
2251 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2252 former ia64_push_arguments and ia64_push_return_address, and use
2253 regcache functions instead of read/write_register.
2254 (ia64_gdbarch_init): Set push_dummy_call instead of
2255 deprecated_push_arguments and deprecated_push_return_address.
2257 2003-07-01 Andreas Jaeger <aj@suse.de>
2259 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2261 Set %rax only to number of SSE registers used.
2263 2003-07-01 Andrew Cagney <cagney@redhat.com>
2265 * trad-frame.h: Update comments, a -1 .addr is reserved.
2266 (trad_frame_value_p, trad_frame_addr_p): Declare.
2267 (trad_frame_reg_p): Declare.
2268 (trad_frame_set_value): Rename trad_frame_register_value.
2269 (trad_frame_set_unknown): Declare.
2270 * trad-frame.c (trad_frame_realreg_p): New function.
2271 (trad_frame_addr_p, trad_frame_value_p): New function.
2272 (trad_frame_set_unknown): New function.
2273 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2274 (trad_frame_prev_register): Use trad_frame_realreg_p,
2275 trad_frame_addr_p and trad_frame_value_p.
2276 (trad_frame_set_value): Rename trad_frame_register_value.
2277 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2278 and trad_frame_set_value.
2280 2003-06-30 Jim Blandy <jimb@redhat.com>
2282 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2283 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2284 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2285 for 16 registers, and then 32 more bytes.
2286 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2288 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2289 Move up in the file, since it's now used by is_simple_arg.
2290 (is_simple_arg): Don't assume registers are four bytes long.
2291 Exclude all double arguments. Extended floats are not simple
2293 (is_power_of_two): New function.
2294 (pass_by_copy_ref): Call is_power_of_two, and check that the
2295 length fits in a register, rather than listing all the acceptable
2296 sizes. Extended floats are not passed by reference.
2297 (s390_push_arguments): Don't assume registers are four bytes long.
2298 Reserve an argument register to point to the buffer for structures
2299 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2300 S390_STACK_FRAME_OVERHEAD.
2302 2003-06-30 Andreas Schwab <schwab@suse.de>
2304 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2305 format error message.
2307 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2309 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2311 2003-06-30 David Carlton <carlton@kealia.com>
2313 Band-aid for PR c++/1245.
2314 * Makefile.in (cp-support.o): Depend on complaints_h.
2315 * cp-support.c: Include complaints.h. Add declaration for
2316 find_last_component.
2317 (cp_find_first_component): Separate code into
2318 cp_find_first_component_aux.
2319 (cp_find_first_component_aux): Call demangled_name_complaint.
2320 (demangled_name_complaint): New.
2322 2003-06-30 Andrew Cagney <cagney@redhat.com>
2324 * remote.c (remote_write_bytes): Explicitly compute and then use
2325 the payload size. Update comments to reflect. Fixes problem of
2326 GDB not sending small packets as found by Fred Fish.
2328 2003-06-30 Andrew Cagney <cagney@redhat.com>
2330 * remote.c (remote_async_wait): Fix -Wformat problem.
2332 2003-06-29 Andrew Cagney <cagney@redhat.com>
2334 * remote.c (remote_wait): Call error, and not warning, when the
2336 (remote_async_wait): Ditto.
2338 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2340 * sparc-tdep.c (sparc_y_regnum): Make external again.
2342 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2344 * cli/cli-logging.c (pop_output_files): Add void to function
2347 2003-06-29 Andrew Cagney <cagney@redhat.com>
2349 * frame.c (frame_register_unwind): Use unsigned char when dumping
2350 the buffer contents.
2352 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2354 * cli/cli-logging.c: New file.
2355 * cli-out.c (struct ui_out_data): Add original_stream.
2356 (cli_redirect): New function.
2357 (cli_ui_out_impl): Add cli_redirect.
2358 (cli_out_new): Initialize original_stream.
2359 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2360 (uo_redirect, ui_out_redirect): New.
2361 * ui-out.h (struct ui_out_impl): Add redirect member.
2362 (redirect_ftype): New.
2363 (ui_out_redirect): Add prototype.
2364 * Makefile.in: Add rules for cli-logging.c.
2365 * NEWS: Mention "set logging".
2367 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2369 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2371 2003-06-27 Andrew Cagney <cagney@redhat.com>
2373 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2374 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2375 * avr-tdep.c (avr_call_dummy_address): Delete function.
2376 (avr_gdbarch_init): Do not set call_dummy_address.
2378 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2380 * symfile.c (syms_from_objfile): Move variables to inner block.
2381 Move the checks for the non-mainline case a bit earlier to avoid
2382 doing some useless computations.
2384 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2386 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2388 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2390 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2393 2003-06-26 Michael Chastain <mec@shout.net>
2395 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2396 gdb/testsuite/gdb.c++/pr-1210.exp.
2398 2003-06-26 Andrew Cagney <cagney@redhat.com>
2400 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2401 altivec_expression.h and altivec_registers.h.
2403 2003-06-26 Andrew Cagney <cagney@redhat.com>
2405 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2406 info->mach when MIPS16. Patch suggested by Fred Fish.
2408 2003-06-26 Andrew Cagney <cagney@redhat.com>
2410 * utils.c (internal_vproblem): Print the problem to a reason
2411 buffer and then pass to query. Make the msg variable more local.
2413 2003-06-26 Andrew Cagney <cagney@redhat.com>
2415 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2416 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2417 * gdbarch.h, gdbarch.c: Re-generate.
2418 * frame-base.c (default_frame_args_address): Update. Use
2419 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2421 (default_frame_locals_address): Ditto for
2422 DEPRECATED_FRAME_LOCALS_ADDRESS.
2423 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2424 (vax_frame_num_args): Update.
2425 (vax_gdbarch_init): Update.
2426 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2427 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2428 * mcore-tdep.c (mcore_gdbarch_init): Update.
2429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2430 * ia64-tdep.c (ia64_gdbarch_init): Update.
2431 * symtab.h (address_class): Update comments.
2432 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2433 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2434 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2435 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2436 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2437 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2438 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2439 * alpha-mdebug-tdep.c: Update.
2440 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2442 2003-06-26 Andreas Jaeger <aj@suse.de>
2444 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2445 of SSE registers so that varargs functions work. Rework handling
2446 of passing arguments on the stack.
2447 (x86_64_store_return_value): Return double and float values in SSE
2450 2003-06-24 Michael Chastain <mec@shout.net>
2452 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2453 the "constructor breakpoints ignored" bug.
2455 2003-06-25 David Carlton <carlton@kealia.com>
2457 * MAINTAINERS: Update e-mail address.
2459 2003-06-24 Jim Blandy <jimb@redhat.com>
2461 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2463 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2465 (ppc_linux_init_abi): Register it as the
2466 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2468 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2469 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2472 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2473 (ppc64_standard_linkage_target): Use it.
2475 2003-06-23 Andrew Cagney <cagney@redhat.com>
2477 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2478 for 0 "int0" and 4 "int32" sized registers.
2479 * gdbtypes.c (builtin_type_int0): Define.
2480 (build_gdbtypes): Initialize builtin_type_int0.
2481 * gdbtypes.h (builtin_type_int0): Declare.
2483 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2485 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2486 as characters are unsigned.
2488 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2491 * dwarfread.c (struct_type): Skip static fields without crashing.
2493 2003-06-22 Andrew Cagney <cagney@redhat.com>
2495 GDB 6.0 branch created.
2497 * PROBLEMS: Update. Empty.
2500 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2502 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2503 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2505 2003-06-22 Andrew Cagney <cagney@redhat.com>
2507 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2508 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2511 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2513 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2516 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2518 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2519 argument of val_print.
2520 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2521 to the address argument of baseclass_offset or target_read_memory.
2522 Do add it to the argument of cp_print_value_fields.
2524 2003-06-21 Andrew Cagney <cagney@redhat.com>
2526 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2527 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2528 instead of 0..NUM_REGS.
2529 (mips_register_reggroup_p): New function.
2530 (mips_pseudo_register_write): New function.
2531 (mips_pseudo_register_read): New function.
2532 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2533 based on the register's type.
2534 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2536 (mips_get_saved_register): Simplify. Assert that REGNO is a
2538 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2539 (mips_register_type): Replace mips_register_virtual_type. Map
2540 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2542 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2543 that the register is cooked / virtual.
2544 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2545 Only get the extra info when needed.
2546 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2547 (mips32_heuristic_proc_desc): Fetch the cooked register.
2548 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2549 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2550 (mips_print_register): Use gdbarch_register_type, instead of
2551 REGISTER_VIRTUAL_TYPE.
2552 (print_gp_register_row): Use gdbarch_register_type, instead of
2553 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2554 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2555 Print the pseudo / cooked registers.
2556 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2557 Print the pseudo / cooked registers.
2558 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2559 REG_NUM is pseudo / cooked.
2560 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2561 (mips_n32n64_xfer_return_value): Ditto.
2562 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2563 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2564 (mips_register_sim_regno): New function.
2565 (mips_gdbarch_init): Set deprecated_register_byte,
2566 register_group_p, pseudo_register_write, pseudo_register_read,
2567 register_sim_regno, and num_pseudo_regs. Set register_type,
2568 instead of register_virtual_type.
2569 * Makefile.in (mips-tdep.o): Update dependencies.
2570 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2571 REGISTER_VIRTUAL_TYPE.
2572 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2573 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2574 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2575 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2576 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2578 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2580 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2581 * cli/cli-cmds.c: Include "gdb_vfork.h".
2582 (shell_escape): Use vfork.
2584 2003-06-21 Andrew Cagney <cagney@redhat.com>
2586 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2587 32 bit floating-point register saves.
2589 * frame.h (deprecated_unwind_get_saved_register): Delete.
2590 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2591 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2592 and deprecated_get_next_frame_hack instead of
2593 deprecated_unwind_get_saved_register.
2595 * mips-tdep.c (mips_dump_tdep): Do not print
2596 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2598 * frame.c (get_frame_register): New function.
2599 (frame_unwind_register_signed): New function.
2600 (get_frame_register_signed): New function.
2601 (frame_unwind_register_unsigned): New function.
2602 (get_frame_register_unsigned): New function.
2603 * frame.h: Add comments on naming schema.
2604 (get_frame_register, frame_unwind_register_signed): Declare.
2605 (get_frame_register_signed, get_frame_register_signed): Declare.
2606 (frame_unwind_register_unsigned): Declare.
2607 (get_frame_register_unsigned): Declare.
2609 2003-06-20 Theodore A. Roth <troth@openavr.org>
2611 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2613 2003-06-20 Theodore A. Roth <troth@openavr.org>
2615 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2616 (avr_read_sp): Ditto.
2618 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2620 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2621 * config/arm/nm-linux.h: Likewise.
2622 * config/arm/tm-linux.h: Likewise.
2623 * config/ia64/nm-linux.h: Likewise.
2624 * config/ia64/tm-ia64.h: Likewise.
2625 * config/s390/tm-linux.h: Likewise.
2626 * config/s390/tm-s390.h: Likewise.
2627 * s390-nat.c: Likewise.
2628 * s390-tdep.c: Likewise.
2630 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2631 * config/ia64/linux.mt: Likewise.
2632 * config/m68k/linux.mh: Likewise.
2633 * config/mips/linux.mt: Likewise.
2634 * config/powerpc/linux.mh: Likewise.
2635 * config/sh/linux.mt: Likewise.
2637 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2639 * solib.c (solib_open): Change tests for whether to search
2640 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2643 2003-06-19 Theodore A. Roth <troth@openavr.org>
2645 * avr-tdep.c (avr_frame_address): Delete function.
2646 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2647 set_gdbarch_frame_args_address.
2649 2003-06-19 Andrew Cagney <cagney@redhat.com>
2651 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2652 (REGISTER_CONVERT_FROM_TYPE): Delete.
2653 (mips_register_convert_to_type): Delete declaration.
2654 (mips_register_convert_from_type): Delete declaration.
2655 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2658 2003-06-19 Michael Snyder <msnyder@redhat.com>
2660 * linux-nat.h: New file.
2661 * linux-nat.c: Include linux-nat.h.
2662 * lin-lwp.c: Include linux-nat.h.
2663 Move struct lwp_info def to linux-nat.h.
2664 * linux-proc.c: Include linux-nat.h.
2665 (linux_make_note_section): Iterate over lwps instead of threads.
2666 (linux_do_thread_registers): Use lwp instead of merged pid.
2667 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2668 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2669 Add dependency on linux_nat_h.
2671 2003-06-19 Theodore A. Roth <troth@openavr.org>
2673 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2675 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2677 * varobj.c (get_type, get_target_type): Use check_typedef.
2679 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2681 * breakpoint.c (insert_catchpoint): Call internal_error.
2683 2003-06-19 Theodore A. Roth <troth@openavr.org>
2685 * avr-tdep.c (avr_push_dummy_code): Delete function.
2686 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2688 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2690 * arch-utils.c (default_prepare_to_proceed): Remove.
2691 (generic_prepare_to_proceed): Remove.
2692 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2693 (generic_prepare_to_proceed): Remove prototype.
2694 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2695 * gdbarch.c: Regenerate.
2696 * gdbarch.h: Regenerate.
2697 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2698 * hppah-nat.c (hppa_switched_threads): Remove.
2699 * infrun.c (prepare_to_proceed): New static function, copied from
2700 generic_prepare_to_proceed. Remove select_it argument.
2701 (proceed): Call prepare_to_proceed.
2702 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2704 (ptrace_wait): Don't set the removed variables.
2705 (hppa_switched_threads): Remove.
2706 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2707 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2708 (lin_lwp_prepare_to_proceed): Remove prototype.
2709 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2710 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2712 2003-06-18 Theodore A. Roth <troth@openavr.org>
2714 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2716 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2717 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2718 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2719 (AVR_PROLOGUE_*): Enumerate prologue types.
2720 (struct frame_extra_info): Remove.
2721 (struct avr_unwind_cache): Define.
2722 (avr_write_sp): Delete function.
2723 (avr_read_fp): Ditto.
2724 (avr_init_extra_frame_info): Ditto.
2725 (avr_pop_frame): Ditto.
2726 (avr_frame_saved_pc): Ditto.
2727 (avr_saved_pc_after_call): Ditto.
2728 (avr_push_return_address): Ditto.
2729 (avr_frame_chain): Ditto.
2730 (avr_store_struct_return): Ditto.
2731 (avr_push_arguments): Ditto.
2732 (avr_scan_prologue): Update comments. Changed to set up the info for
2733 cache unwinding. Now returns end of prologue PC.
2734 (avr_skip_prologue): Better handling of functions lacking a prologue
2735 by using avr_scan_prologue.
2736 (avr_scan_arg_moves): New function.
2737 (avr_saved_regs_unwinder): Ditto.
2738 (avr_frame_unwind_cache): Ditto.
2739 (avr_unwind_pc): Ditto.
2740 (avr_frame_this_id): Ditto.
2741 (avr_frame_prev_register): Ditto.
2742 (avr_frame_p): Ditto.
2743 (avr_frame_base_address ): Ditto.
2744 (avr_unwind_dummy_id): Ditto.
2745 (avr_push_dummy_code): Ditto.
2746 (push_stack_item): Ditto.
2747 (pop_stack_item): Ditto.
2748 (avr_push_dummy_call): Ditto.
2749 (struct stack_item): Define.
2750 (avr_frame_unwind): Declare structure.
2751 (avr_frame_base): Ditto.
2752 (avr_gdbarch_init): Remove calls to
2753 set_gdbarch_deprecated_init_frame_pc,
2754 set_gdbarch_deprecated_target_read_fp,
2755 set_gdbarch_deprecated_dummy_write_sp,
2756 set_gdbarch_deprecated_fp_regnum,
2757 set_gdbarch_deprecated_push_arguments,
2758 set_gdbarch_deprecated_push_return_address,
2759 set_gdbarch_deprecated_pop_frame,
2760 set_gdbarch_deprecated_store_struct_return,
2761 set_gdbarch_deprecated_frame_init_saved_regs,
2762 set_gdbarch_deprecated_init_extra_frame_info,
2763 set_gdbarch_deprecated_frame_chain,
2764 set_gdbarch_deprecated_frame_saved_pc,
2765 set_gdbarch_deprecated_saved_pc_after_call.
2766 Add calls to set_gdbarch_push_dummy_call,
2767 set_gdbarch_push_dummy_code,
2768 frame_unwind_append_predicate,
2769 frame_base_set_default,
2770 set_gdbarch_unwind_dummy_id,
2771 set_gdbarch_unwind_pc.
2774 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2776 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2777 registers for H8/300S.
2778 (h8300_print_registers_info): Ditto.
2779 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2781 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2783 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2784 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2785 (lin_lwp_wait): Likewise. Update comments.
2786 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2787 (pull_pid_from_list, linux_record_stopped_pid): New.
2789 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2791 * ada-lang.c (scan_discrim_bound): Name first argument.
2792 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2793 declared by ALL_BLOCK_SYMBOLS.
2795 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2797 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2798 ("regcache.h"): Include it.
2799 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2801 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2803 * NEWS: Mention gdbserver detach change and "disconnect" command.
2804 * infcmd.c (disconnect_command): New function.
2805 (_initialize_infcmd): Add ``disconnect'' command.
2806 * remote.c (remote_async_detach): Delete.
2807 (remote_detach): Merge remote_async_detach.
2808 (remote_disconnect): New.
2809 (init_remote_ops): Set to_disconnect.
2810 (init_remote_cisco_ops): Likewise.
2811 (init_remote_async_ops): Likewise. Use remote_detach.
2812 * target.c (cleanup_target): Default to_disconnect.
2813 (update_current_target): Inherit to_disconnect.
2814 (target_disconnect, debug_to_disconnect): New functions.
2815 (setup_target_debug): Set to_disconnect.
2816 * target.h (struct target_ops): Add to_disconnect.
2817 (target_disconnect): Add prototype.
2819 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2821 * breakpoint.c (insert_catchpoint): New function.
2822 (insert_breakpoints): Use catch_exceptions to call
2823 insert_catchpoint. Disable catchpoints if they fail to insert.
2825 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2827 * symfile.c (reread_symbols): Clear sym_private.
2829 2003-06-17 Andrew Cagney <cagney@redhat.com>
2831 * trad-frame.h (struct frame_info): Add opaque declaration.
2832 * remote-fileio.h (struct cmd_list_element): Add opaque
2834 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2837 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2839 * remote.c (remote_prepare_to_store): Replace call to
2840 deprecated_read_register_bytes with multiple regcache_raw_read
2843 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2845 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2846 (nto_find_and_open_solib): Likewise.
2847 (nto_init_solib_absolute_prefix): Likewise.
2848 (_initialize_nto_tdep): Fix indentation.
2850 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2852 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2854 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2856 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2858 2003-06-17 Jim Blandy <jimb@redhat.com>
2860 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2862 2003-06-16 Theodore A. Roth <troth@openavr.org>
2864 * avr-tdep.c (avr_extract_return_value): New function.
2865 (avr_gdbarch_init): Set extract_return_value method.
2867 2003-06-16 Andrew Cagney <cagney@redhat.com>
2869 * frame.h (deprecated_get_next_frame_hack): Declare.
2870 * frame.c (legacy_saved_regs_prev_register): Only require
2871 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2872 there are always saved regs.
2873 (deprecated_generic_get_saved_register): Do not require
2874 DEPRECATED_FRAME_INIT_SAVED_REGS.
2875 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2876 use frame ID unwind instead.
2877 (deprecated_get_next_frame_hack): New function.
2879 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2881 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2882 (h8300_push_dummy_call): ...this function. Some minor optimization.
2883 (h8300_push_return_address): Remove.
2884 (h8300_gdbarch_init): Remove calls to
2885 set_gdbarch_deprecated_dummy_write_sp,
2886 set_gdbarch_deprecated_push_arguments and
2887 set_gdbarch_deprecated_push_return_address.
2888 Add call to set_gdbarch_push_dummy_call.
2890 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2892 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2893 (E_PSEUDO_EXR_REGNUM): Ditto.
2894 (h8300_is_argument_spill): Check for instructions moving argument
2895 registers into safe registers.
2896 (h8300_skip_prologue): Check for stm instruction to push registers
2897 used for register variables onto stack.
2898 (gdb_print_insn_h8300): Remove.
2899 (h8300_examine_prologue): Add a comment.
2900 (h8300_register_name): Take pseudo registers into account.
2901 (h8300s_register_name): Ditto.
2902 (h8300sx_register_name): Ditto.
2903 (h8300_print_register): Ditto.
2904 (h8300_print_registers_info): Define "nice" printing order.
2905 (h8300_saved_pc_after_call): Take pseudo registers into account.
2906 (h8300_register_type): Ditto. Return type used for remote connection
2907 when requesting real CCR or EXR register, return actual type when
2908 requesting pseudo CCR or EXR.
2909 (h8300_pseudo_register_read): New function.
2910 (h8300_pseudo_register_write): Ditto.
2911 (h8300_dbg_reg_to_regnum): Ditto.
2912 (h8300s_dbg_reg_to_regnum): Ditto.
2913 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2914 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2915 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2916 set_gdbarch_print_insn architecture dependent.
2917 Call set_gdbarch_pseudo_register_read and
2918 set_gdbarch_pseudo_register_write.
2919 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2921 2003-06-16 Andrew Cagney <cagney@redhat.com>
2923 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2924 * gdbarch.h, gdbarch.c: Re-generate.
2925 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2926 * s390-tdep.c (s390_gdbarch_init): Update.
2927 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2928 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2929 * mips-tdep.c (mips_gdbarch_init): Update.
2930 * mcore-tdep.c (mcore_gdbarch_init): Update.
2931 * cris-tdep.c (cris_gdbarch_init): Update.
2932 * infcall.c (call_function_by_hand): Update.
2933 * ia64-tdep.c (ia64_push_arguments): Update comment.
2934 * frame.c (legacy_get_prev_frame): Do not assume
2935 SAVE_DUMMY_FRAME_TOS_P.
2936 * dummy-frame.c (find_dummy_frame): Update comment.
2938 2003-06-16 Andrew Cagney <cagney@redhat.com>
2940 * regcache.c (do_cooked_read): Do not use register_valid_p.
2942 2003-06-15 Theodore A. Roth <troth@openavr.org>
2944 * avr-tdep.c (avr_register_type): Remove a blank line.
2945 (avr_scan_prologue): Correct some comments.
2947 2003-06-15 Theodore A. Roth <troth@openavr.org>
2949 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2951 Properly scan prologues generated by gcc with the -mcall-prologues
2953 Add code to scan -mcall-prologues for mega devices.
2955 2003-06-15 Theodore A. Roth <troth@openavr.org>
2957 * avr-tdep.c (avr_register_byte): Delete function.
2958 (avr_register_raw_size): Delete function.
2959 (avr_register_virtual_size): Delete function.
2960 (avr_register_virtual_type): Delete function.
2961 (avr_register_type): New function.
2962 (avr_address_to_pointer): Remove unused code.
2963 (avr_read_fp): Need to read FP as two separate bytes due to change to
2964 avr_register_type() usage.
2965 (avr_gdbarch_init): Don't set deprecated_register_size.
2966 Don't set deprecated_register_bytes.
2967 Don't set deprecated_register_byte.
2968 Don't set deprecated_register_raw_size.
2969 Don't set deprecated_max_register_raw_size.
2970 Don't set deprecated_register_virtual_size.
2971 Don't set deprecated_max_register_virtual_size.
2972 Don't set deprecated_register_virtual_type.
2973 Set register_type method.
2975 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2977 * Makefile.in (linux-nat.o): Add rule.
2978 * linux-nat.c: New file.
2979 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2980 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2981 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2982 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2983 * config/arm/linux.mh (NATDEPFILES): Likewise.
2984 * config/i386/linux.mh (NATDEPFILES): Likewise.
2985 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2986 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2987 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2988 * config/mips/linux.mh (NATDEPFILES): Likewise.
2989 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2990 * config/s390/s390.mh (NATDEPFILES): Likewise.
2991 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2993 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2995 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2996 replace out-of-date comment.
2998 2003-06-15 Andrew Cagney <cagney@redhat.com>
3000 * rdi-share/host.h (Fail): Change to a varargs function.
3001 * remote-rdi.c (Fail): Update.
3003 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3005 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3006 (i386_convert_register_p, i386_register_to_value,
3007 i386_register_from_value): Handle types longer than 8 bytes.
3009 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3011 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3012 Move floating-point code to new function in i387-tdep.c.
3013 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3014 New functions containing code moved here from i386-tdep.c.
3015 * i387-tdep.h: Add opaque declaration for `struct type'.
3016 (i387_register_to_value, i387_value_to_register): New prototypes.
3017 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3018 (x86_64_init_abi): Set convert_register_p, register_to_value and
3019 value_to_register here.
3021 2003-06-14 Andrew Cagney <cagney@redhat.com>
3023 * mips-tdep.c (mips_register_to_value): Make static.
3024 (mips_value_to_register): Make static.
3025 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3026 * ia64-tdep.c (ia64_register_raw_size): Make static.
3027 (ia64_register_virtual_size): Make static.
3028 (ia64_register_byte): Make static.
3029 * i387-tdep.c: Include "i387-tdep.h".
3030 (print_387_control_word): Delete function.
3031 (print_387_status_word): Delete function.
3032 (print_387_status_bits): Delete function.
3033 (print_387_control_bits): Delete function.
3034 * Makefile.in (i387-tdep.o): Update dependencies.
3035 * rdi-share/host.h (Fail): Declare.
3036 * remote-rdi.c (Fail): Update to match declaration.
3038 2003-06-14 Andrew Cagney <cagney@redhat.com>
3040 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3041 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3042 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3043 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3044 * README: Delete reference to remote-array.
3045 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3046 (remote-array.o): Delete target.
3047 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3048 * remote-array.c: Delete file.
3050 2003-06-14 Andrew Cagney <cagney@redhat.com>
3051 Mark Kettenis <kettenis@gnu.org>
3053 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3054 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3055 parameter with "frame".
3056 * gdbarch.h, gdbarch.c: Re-generate.
3057 * frame.h (put_frame_register): Declare.
3058 * frame.c (put_frame_register): New function.
3059 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3060 (legacy_register_to_value): Rewrite, use "frame" to get the
3062 (legacy_value_to_register): Rewrite, use "frame" to find the
3063 register's location before storing.
3064 * arch-utils.h (legacy_convert_register_p): Update.
3065 (legacy_register_to_value, legacy_value_to_register): Update.
3066 * findvar.c (value_from_register): Rewrite, eliminate use of
3067 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3068 "frame" to REGISTER_TO_VALUE.
3069 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3070 lval_reg_frame_relative + lval_register branch of the switch. Do
3071 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3072 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3073 I386_EDI_REGNUM): New defines.
3074 (i386_next_regnum, i386_convert_register_p,
3075 i386_register_to_value, i386_value_to_register): New functions.
3076 (i386_register_convertible, i386_register_convert_to_virtual,
3077 i386_convert_to_raw): Remove functions.
3078 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3079 value_to_register instead of register_convertible,
3080 register_convert_to_virtual and register_convert_to_raw.
3081 * mips-tdep.c (mips_convert_register_p): New function.
3082 (mips_value_to_register): Replace mips_register_convert_from_type.
3083 (mips_register_to_value): Replace mips_register_convert_to_type.
3084 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3086 * alpha-tdep.c (alpha_convert_register_p): Update.
3087 (alpha_value_to_register): Update, store the register.
3088 (alpha_register_to_value): Update, fetch the register.
3090 2003-06-14 Theodore A. Roth <troth@openavr.org>
3092 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3093 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3094 Don't set deprecated_call_dummy_words.
3095 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3096 Don't set remote_translate_xfer_address.
3097 (avr_io_reg_read_command): Remove commented out debug printf.
3100 2003-06-14 Theodore A. Roth <troth@openavr.org>
3102 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3103 causes gdb to seg fault.
3105 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3107 * sparc-nat.c (fetch_inferior_registers): Correct
3108 a reference to "registers".
3110 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3112 * Makefile.in (exc_request_U_h): Define
3113 (exc_request_S_h): Likewise.
3114 (msg_reply_S_h): Likewise.
3115 (msg_U_h): Likewise.
3116 (notify_S_h): Likewise.
3117 (process_reply_S_h): Likewise.
3118 (gnu-nat.o): Depend on gdb_obstack_h
3119 * gnu-nat.c: Include "gdb_obstack.h".
3121 2003-06-13 Andrew Cagney <cagney@redhat.com>
3123 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3124 * gdbarch.h, gdbarch.c: Re-generate.
3126 2003-06-13 Andrew Cagney <cagney@redhat.com>
3128 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3129 when deprecated REGISTER macros can be deleted.
3130 * gdbarch.h, gdbarch.c: Re-generate.
3132 2003-06-13 Jim Blandy <jimb@redhat.com>
3134 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3135 Linux entry point symbols for _dl_debug_state, too.
3137 2003-06-13 Andrew Cagney <cagney@redhat.com>
3139 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3140 available, do not use the FP register, and always save the TOS.
3141 * dummy-frame.c (dummy_frame_this_id): Do not assert
3142 SAVE_DUMMY_FRAME_TOS.
3143 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3144 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3145 (i386_push_dummy_call): Add 8 to the returned SP.
3146 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3147 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3148 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3149 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3150 (x86_64_push_dummy_call): Return "sp + 16".
3151 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3152 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3153 save_dummy_frame_tos.
3155 2003-06-13 Jim Blandy <jimb@redhat.com>
3157 * frv-tdep.c (frv_use_struct_convention): Delete static
3158 declaration for function deleted in my change of 2003-06-12.
3160 2003-06-13 Theodore A. Roth <troth@openavr.org>
3162 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3163 (avr_pointer_to_address): Shift code addrs left 1 bit.
3164 (avr_convert_from_func_ptr_addr): Delete function since operation is
3165 better handled by avr_address_to_pointer and avr_pointer_to_address.
3166 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3168 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3170 From Kelley Cook <kelleycook@wideopenwest.com>:
3171 * configure.host: Accept i[34567]86 variants.
3172 * configure.tgt: Likewise.
3173 * nlm/configure.in: Likewise.
3174 * nlm/configure: Regenerated.
3176 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3178 * arm-tdep.c (solib-svr4.h): Dont' include it.
3179 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3180 * arm-linux-tdep.c: ... here. Make static.
3181 (arm_linux_init_abi): Register it.
3182 (solib-svr4.h): Include it.
3183 * Makefile.in: Update dependencies.
3184 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3185 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3187 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3189 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3190 indicate registers used for return values.
3191 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3192 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3194 (h8300_init_extra_frame_info): Ditto.
3195 (h8300_frame_locals_address): Removed.
3196 (h8300_frame_args_address): Removed.
3197 (h8300_extract_return_value): Use new regcache structure. Only care
3199 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3200 (h8300_store_return_value): Use new regcache structure. Only care
3202 (h8300h_store_return_value): Same function for 32 bit CPUs.
3203 (h8300_store_struct_return): Removed.
3204 (h8300_extract_struct_value_address): Use new regcache structure.
3205 (h8300h_extract_struct_value_address): Removed.
3206 (h8300_push_dummy_code): New function.
3207 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3208 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3209 set_gdbarch_store_return_value architecture dependent.
3210 Call set_gdbarch_push_dummy_code and
3211 set_gdbarch_extract_struct_value_address.
3212 Remove calls to set_gdbarch_frame_args_address,
3213 set_gdbarch_frame_locals_address,
3214 set_gdbarch_deprecated_store_struct_return,
3215 set_gdbarch_deprecated_extract_return_value,
3216 set_gdbarch_deprecated_extract_struct_value_address,
3217 set_gdbarch_deprecated_call_dummy_words and
3218 set_gdbarch_deprecated_sizeof_call_dummy_words.
3220 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3222 * h8300-tdep.c (h8300_register_byte): Remove.
3223 (h8300h_register_byte): Remove.
3224 (h8300_register_virtual_type): Remove. Substitute by...
3225 (h8300_register_type): New function.
3226 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3227 (h8300h_extract_struct_value_address): Ditto.
3228 (h8300_gdbarch_init): Drop calls to
3229 set_gdbarch_deprecated_register_byte and
3230 set_gdbarch_deprecated_register_virtual_type.
3231 Add call to set_gdbarch_register_type.
3233 2003-06-13 Andrew Cagney <cagney@redhat.com>
3235 * gdbarch.sh: Update comments on registers.
3236 (deprecated_register_byte): Rename register_byte.
3237 (deprecated_register_raw_size): Rename register_raw_size.
3238 (deprecated_register_virtual_size): Rename register_virtual_size.
3239 (deprecated_register_virtual_type): Rename register_virtual_type.
3240 * gdbarch.h, gdbarch.c: Re-generate.
3241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3242 * vax-tdep.c (vax_gdbarch_init): Update.
3243 * v850-tdep.c (v850_gdbarch_init): Update.
3244 * sparc-tdep.c (sparc_gdbarch_init): Update.
3245 * sh-tdep.c (sh_gdbarch_init): Update.
3246 * s390-tdep.c (s390_gdbarch_init): Update.
3247 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3248 * ns32k-tdep.c: Update.
3249 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3250 * mips-tdep.c (mips_gdbarch_init): Update.
3251 * mcore-tdep.c (mcore_gdbarch_init): Update.
3252 * m68k-tdep.c (m68k_gdbarch_init): Update.
3253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3254 * ia64-tdep.c (ia64_gdbarch_init): Update.
3255 * hppa-tdep.c (hppa_gdbarch_init): Update.
3256 * h8300-tdep.c (h8300_gdbarch_init): Update.
3257 * frv-tdep.c (frv_gdbarch_init): Update.
3258 * cris-tdep.c (cris_gdbarch_init): Update.
3259 * avr-tdep.c (avr_gdbarch_init): Update.
3260 * alpha-tdep.c (alpha_gdbarch_init): Update.
3261 * arm-tdep.c (arm_gdbarch_init): Update.
3263 2003-06-13 Andrew Cagney <cagney@redhat.com>
3265 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3266 mips_o32_use_struct_convention with always_use_struct_convention.
3268 2003-06-12 David Carlton <carlton@kealia.com>
3270 * cp-namespace.c (cp_set_block_scope): Comment out
3271 processing_has_namespace_info branch.
3273 2003-06-12 Jim Blandy <jimb@redhat.com>
3275 Recognize and skip 64-bit PowerPC Linux linkage functions.
3276 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3277 insn_pattern, insns_match_pattern, d_field, ds_field): New
3278 functions, macros, and types for working with PPC instructions.
3279 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3280 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3281 ppc64_skip_trampoline_code): New functions, variables, and macros
3282 for recognizing and skipping linkage functions.
3283 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3284 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3286 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3287 register offsets for both the 32- and 64-bit interfaces.
3289 Actually finish the job started by my change of 2003-05-29.
3290 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3291 other #definition of this.
3292 (ppc_linux_skip_trampoline_code): Remove declaration.
3293 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3295 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3298 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3299 'long' on ppc64-*-linux*.
3301 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3302 isn't #defined, assume the register doesn't exist: act as if
3303 tdep->ppc_mq_regnum were -1.
3305 * configure.host, configure.tgt: Add entries for
3306 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3308 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3311 * arch-utils.c (always_use_struct_convention): New function.
3312 * arch-utils.h (always_use_struct_convention): New prototype.
3313 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3314 (alpha_gdbarch_init): Register always_use_struct_convention,
3315 instead of alpha_use_struct_convention.
3316 * cris-tdep.c (cris_use_struct_convention): Delete.
3317 (cris_gdbarch_init): Register always_use_struct_convention,
3318 instead of cris_use_struct_convention.
3319 * frv-tdep.c (frv_use_struct_convention): Delete.
3320 (frv_gdbarch_init): Register always_use_struct_convention,
3321 instead of frv_use_struct_convention.
3322 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3323 (h8300_gdbarch_init): Register always_use_struct_convention,
3324 instead of h8300_use_struct_convention.
3325 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3326 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3327 instead of mips_o32_use_struct_convention.
3329 2003-06-12 Andrew Cagney <cagney@redhat.com>
3331 * wince.c: Include "mips-tdep.h".
3332 * mips-tdep.h (mips_next_pc): Declare.
3333 * mcore-tdep.c: Make more local functions static.
3334 * Makefile.in (wince.o): Update dependencies.
3336 2003-06-12 David Carlton <carlton@kealia.com>
3338 * symtab.c (lookup_symbol_aux_minsyms): Replace
3339 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3340 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3341 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3342 SYMBOL_NATURAL_NAME.
3344 2003-06-12 Andreas Schwab <schwab@suse.de>
3346 * Makefile.in (tuiDisassem.o): Update dependencies.
3348 2003-06-12 David Carlton <carlton@bactrian.org>
3350 * symtab.h: Delete declaration of make_symbol_overload_list.
3351 Add declaration of lookup_partial_symbol.
3352 * symtab.c (remove_params): Move to cp-support.c.
3353 (overload_list_add_symbol, make_symbol_overload_list)
3354 (sym_return_val_size, sym_return_val_index): Ditto.
3355 (lookup_partial_symbol): Make extern.
3356 * cp-support.h: Add declaration of make_symbol_overload_list.
3357 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3358 symtab.h, and block.h.
3359 (remove_params): Move here from symtab.c.
3360 (overload_list_add_symbol, make_symbol_overload_list)
3361 (sym_return_val_size, sym_return_val_index): Ditto.
3362 * valops.c: Include cp-support.h.
3363 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3364 frame_h, and block_h.
3365 (valops.o): Depend on cp_support_h.
3367 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3369 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3370 substitute by NUM_REGS throughout.
3371 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3372 (h8300s_register_name): New function for H8S registers.
3373 (h8300sx_register_name): Ditto for H8SX registers.
3374 (h8300_print_register): Revise register printing, avoid depending
3376 (h8300_register_byte): Only care for H8/300 registers.
3377 (h8300h_register_byte): New function for any other architecture.
3378 (h8300_register_raw_size): Remove.
3379 (h8300_register_virtual_type): Revise to return actually useful
3381 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3382 (h8300h_extract_struct_value_address): New function for any other
3384 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3385 set_gdbarch_register_name, set_gdbarch_register_byte,
3386 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3387 Remove calls to set_gdbarch_deprecated_register_size,
3388 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3389 set_gdbarch_deprecated_max_register_raw_size,
3390 set_gdbarch_register_virtual_size and
3391 set_gdbarch_deprecated_max_register_virtual_size entirely.
3392 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3393 set_gdbarch_long_double_bit.
3395 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3397 * doublest.c (convert_doublest_to_floatformat): When dealing
3398 with the implied integer bit, only alter mant_bits if we are
3399 processing a full 32 bits of mantissa.
3401 2003-06-11 David Carlton <carlton@bactrian.org>
3403 * dictionary.h: New.
3404 * dictionary.c: New.
3405 * block.h: Add opaque declaration for struct dictionary.
3406 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3408 (BLOCK_DICT): New macro.
3409 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3410 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3412 (ALL_BLOCK_SYMBOLS): Update definition.
3413 * Makefile.in (SFILES): Add dictionary.c.
3414 (dictionary_h): New.
3415 (COMMON_OBS): Add dictionary.o.
3416 (dictionary.o): New.
3417 (ada-lang.o): Depend on dictionary_h.
3418 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3419 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3420 (mi-cmd-stack.o): Ditto.
3421 (gdbtk-cmds.o): Update dependencies.
3422 (gdbtk-stack.o): Ditto.
3423 * ada-lang.c: Include dictionary.h.
3424 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3425 (fill_in_ada_prototype, debug_print_block): Ditto.
3426 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3427 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3429 * mdebugread.c: Include dictionary.h.
3430 (struct parse_stack): Delete 'maxsyms' member.
3431 (parse_symbol): Update calls to new_block. Delete calls to
3432 shrink_block. Use dictionary methods.
3433 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3434 Update calls to new_symtab. Don't maintain maxsyms data.
3435 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3436 (add_symbol): Just call dict_add_symbol.
3437 (new_symtab): Delete 'maxsyms' argument.
3438 (new_symtab): Update calls to new_block.
3439 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3440 (shrink_block): Delete function.
3441 (fixup_sigtramp): Update call to new_block. Add symbol via
3443 * jv-lang.c: Include dictionary.h.
3444 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3445 appropriately. Set class_symtab->free_func. Make sure the
3446 blockvector is big enough to hold two blocks.
3447 (add_class_symtab_symbol): Use dictionary methods.
3448 (free_class_block): New function.
3449 (type_from_class): Replace explicit iteration by
3451 * symtab.h (struct symtab): Replace 'free_ptr' method by
3453 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3455 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3457 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3458 Include dictionary.h.
3459 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3460 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3462 * objfiles.c: Include dictionary.h.
3463 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3464 * buildsym.c: Include dictionary.h.
3465 (finish_block): Use dictionary methods.
3466 (end_symtab): Set free_func to NULL, not free_ptr.
3467 * tracepoint.c: Include dictionary.h.
3468 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3469 (scope_info): Ditto.
3470 * stack.c: Include dictionary.h.
3471 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3472 (print_block_frame_labels, print_frame_arg_vars)
3473 (print_frame_args): Ditto.
3474 * symmisc.c (free_symtab_block): Use dictionary methods.
3475 (dump_symtab): Ditto.
3476 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3477 Include dictionary.h.
3478 * symfile.h: Delete declarations of sort_block_syms,
3480 * symfile.c (sort_block_syms): Delete.
3481 (sort_symtab_syms): Delete.
3482 * symtab.c: Include dictionary.h.
3483 (lookup_block_symbol): Use dictionary iterators.
3484 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3485 (search_symbols, make_symbol_completion_list): Ditto.
3486 (make_symbol_overload_list): Ditto.
3487 * valops.c (value_of_local): Use dict_empty.
3488 Include dictionary.h.
3490 2003-06-11 J. Brobecker <brobecker@gnat.com>
3492 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3494 2003-06-11 David Carlton <carlton@bactrian.org>
3496 * block.h (BLOCK_SHOULD_SORT): Delete.
3497 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3499 * ada-lang.c (ada_add_block_symbols): Ditto.
3500 * symfile.c (sort_block_syms): Delete.
3501 (sort_symtab_syms): Ditto.
3502 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3504 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3505 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3506 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3507 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3508 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3509 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3510 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3512 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3514 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3517 2003-06-11 Andrew Cagney <cagney@redhat.com>
3519 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3520 REGISTER_CONVERTIBLE.
3521 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3522 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3523 * gdbarch.h, gdbarch.c: Re-generate.
3524 * arch-utils.h (deprecated_register_convertible_not): Rename
3525 generic_register_convertible_not.
3526 * arch-utils.c (deprecated_register_convertible_not): Rename
3527 generic_register_convertible.
3528 (legacy_convert_register_p, legacy_register_to_value): Update.
3529 * sh-tdep.c (sh64_push_arguments): Update.
3530 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3531 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3532 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3533 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3534 * arch-utils.c (legacy_value_to_register): Update.
3535 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3536 (rs6000_register_convert_to_raw): Make parameter "from" const.
3537 * mips-tdep.c (mips_gdbarch_init): Update.
3538 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3539 * infcmd.c (default_print_registers_info): Update.
3540 * ia64-tdep.c (ia64_gdbarch_init): Update.
3541 (ia64_register_convert_to_raw): Make parameter "from" const.
3542 * i386-tdep.c (i386_gdbarch_init): Update.
3543 (i386_register_convert_to_raw): Update.
3545 2003-06-11 Andrew Cagney <cagney@redhat.com>
3547 * remote-fileio.c: Include "remote-fileio.h".
3548 * Makefile.in (remote-fileio.o): Update dependencies.
3549 (remote_fileio_h): Fix typo.
3551 2003-06-11 Andrew Cagney <cagney@redhat.com>
3553 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3554 (xstormy16_save_dummy_frame_tos): Make static.
3555 (_initialize_xstormy16_tdep): Add declaration.
3556 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3557 * v850-tdep.c: Make local functions static.
3558 (_initialize_v850_tdep): Add declaration.
3559 * sparc-tdep.c: Make local functions static.
3560 (_initialize_sparc_tdep): Add declaration.
3561 * sh-tdep.c: Make local functions static.
3562 (_initialize_sh_tdep): Add declaration.
3563 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3564 * s390-tdep.c: Make local functions static.
3565 (_initialize_s390_tdep): Add declaration.
3566 * dbxread.c (find_stab_function_addr): Make static.
3567 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3568 * ocd.c (_initialize_remote_ocd): Add declaration.
3569 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3570 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3571 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3572 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3573 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3574 * remote-array.c (_initialize_array): Add declaration.
3575 (_initialize_remote_monitors): Add declaration.
3576 * remote-mips.c: Make local functions static.
3577 (_initialize_remote_mips): Add declaration.
3578 * mcore-tdep.c: Make all local functions static.
3579 (_initialize_mcore_tdep): Add declaration.
3580 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3581 * abug-rom.c (_initialize_abug_rom): Add declaration.
3582 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3583 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3584 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3585 * remote-est.c (_initialize_est): Add declaration.
3586 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3587 (m68hc11_call_dummy_address): Make static.
3588 * ia64-tdep.c: Make local functions static.
3589 (_initialize_ia64_tdep): Add declaration.
3590 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3591 * monitor.c (monitor_wait_filter): Make static.
3592 (_initialize_remote_monitors): Add declaration.
3593 * remote-hms.c (_initialize_remote_hms): Add declaration.
3594 * remote-e7000.c (fetch_regs_from_dump): Make static.
3595 (expect_n): Make static.
3596 (_initialize_remote_e7000): Add declaration.
3597 * ser-e7kpc.c: Always include "defs.h".
3598 (_initialize_ser_e7000pc): Add declaration.
3599 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3600 * cris-tdep.c: Make all but one function static.
3601 (_initialize_cris_tdep): Add declaration.
3602 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3603 * solib.c (update_solib_list): Make static.
3604 (_initialize_solib): Add declaration.
3605 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3606 (_initialize_avr_tdep): Add declaration.
3607 * remote-rdi.c (voiddummy): Make static.
3608 (_initialize_remote_rdi): Add declaration.
3609 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3610 * remote-rdp.c (send_rdp): Make static.
3611 (_initialize_remote_rdp): Add declaration.
3612 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3614 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3616 * remote-fileio.c: Make ari happy.
3618 2003-06-10 J. Brobecker <brobecker@gnat.com>
3620 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3621 fetching the trailing bytes of the buffer we are about to write.
3623 2003-06-10 Andrew Cagney <cagney@redhat.com>
3625 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3626 * Makefile.in (remote-fileio.o): Update dependencies.
3627 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3628 include <setjmp.h>, or <sys/types.h> conditional on USG.
3629 (remote_fio_jmp_buf): Delete global variable.
3631 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3632 Martin M. Hunt <hunt@redhat.com>
3634 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3635 (SFILES): Add remote-fileio.c.
3636 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3637 dependencies for building remote.o.
3638 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3639 * remote-fileio.h: New header file defining remote File-I/O interface.
3640 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3641 static storage class.
3642 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3644 (_initialize_remote): Call initialize_remote_fileio().
3645 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3646 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3647 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3648 (captured_main): Initialize new ui_files.
3649 * ui-file.c: Add read and fgets input functions.
3650 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3651 (null_file_read): New function.
3652 (ui_file_read): New function.
3653 (set_ui_file_read): New function.
3654 (stdio_file_read): New function.
3655 * ui-file.h: New type ui_file_read_ftype.
3656 (set_ui_file_read): Declare.
3657 (ui_file_read): Declare.
3659 2003-06-09 Andrew Cagney <cagney@redhat.com>
3661 * frame.h (deprecated_unwind_get_saved_register): Rename
3662 generic_unwind_get_saved_register, update comments.
3663 * mips-tdep.c (mips_get_saved_register): Update.
3664 * frame.c (deprecated_unwind_get_saved_register): Update.
3666 2003-06-09 Andrew Cagney <cagney@redhat.com>
3668 * vax-tdep.c (vax_frame_locals_address): Delete function.
3669 (vax_gdbarch_init): Do not set frame_locals_address.
3670 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3671 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3672 * s390-tdep.c (s390_frame_args_address): Delete function.
3673 (s390_gdbarch_init): Do not set frame_args_address or
3674 frame_locals_address.
3675 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3676 (ns32k_gdbarch_init): Do not set frame_locals_address.
3677 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3678 (hppa_frame_locals_address): Delete function.
3679 (hppa_gdbarch_init): Do not set frame_args_address, or
3680 frame_locals_address.
3681 * arm-tdep.c (arm_frame_args_address): Delete.
3682 (arm_frame_locals_address): Delete.
3683 (arm_gdbarch_init): Do not set frame_args_address, or
3684 frame_locals_address.
3686 2003-06-09 Andrew Cagney <cagney@redhat.com>
3688 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3689 * gdbarch.h, gdbarch.c: Re-generate.
3690 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3691 * arch-utils.c (frame_num_args_unknown): Delete function.
3692 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3693 (frame_info): Use FRAME_NUM_ARGS_P.
3694 * arm-tdep.c (arm_frame_num_args): Delete function.
3695 (arm_gdbarch_init): Do not set frame_num_args.
3696 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3697 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3698 (hppa_gdbarch_init): Do not set frame_num_args.
3699 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3700 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3701 frame_num_args to default frame_num_args_unknown.
3702 * v850-tdep.c (v850_gdbarch_init): Ditto.
3703 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3704 * sh-tdep.c (sh_gdbarch_init): Ditto.
3705 * s390-tdep.c (s390_gdbarch_init): Ditto.
3706 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3707 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3708 * mips-tdep.c (mips_gdbarch_init): Ditto.
3709 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3710 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3712 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3713 * i386-tdep.c (i386_gdbarch_init): Ditto.
3714 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3715 * frv-tdep.c (frv_gdbarch_init): Ditto.
3716 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3717 * cris-tdep.c (cris_gdbarch_init): Ditto.
3718 * avr-tdep.c (avr_gdbarch_init): Ditto.
3719 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3721 2003-06-09 Andrew Cagney <cagney@redhat.com>
3723 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3724 (print_frame_args): Moved to "stack.c".
3725 * stack.c: Include "gdb_assert.h".
3726 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3727 (print_frame_args): Moved from "printcmd.c".
3728 * frame.h (print_frame_args): Delete declaration.
3729 * Makefile.in (stack.o): Update dependencies.
3731 2003-06-08 Andrew Cagney <cagney@redhat.com>
3733 * frame.c (get_prev_frame): Remove reference to
3734 frame_args_address_correct in comments.
3735 * frame-base.c (default_frame_args_address): Delete code
3736 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3737 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3738 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3739 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3740 (vax_frame_args_address_correct): Delete declaration.
3742 2003-06-08 Andrew Cagney <cagney@redhat.com>
3744 * gdbarch.sh (UNWIND_SP): Add.
3745 * gdbarch.h, gdbarch.c: Re-generate.
3746 * frame.c (frame_sp_unwind): New function.
3747 (get_frame_sp): New function.
3748 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3749 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3750 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3752 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3753 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3755 2003-06-08 Andrew Cagney <cagney@redhat.com>
3757 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3760 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3761 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3762 * config/m68k/tm-sun3.h: Update.
3763 * config/m68k/tm-m68klynx.h: Update.
3764 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3766 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3767 trad_frame". Update comments.
3768 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3769 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3770 (trad_frame_register_value, trad_frame_prev_register): Update.
3772 2003-06-08 Andrew Cagney <cagney@redhat.com>
3774 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3775 from GCC's acinclude.m4.
3776 * configure.in: Check for getopt's delcaration.
3777 * aclocal.m4, config.in, configure: Re-generate.
3778 * main.c (error_init): Delete declaration.
3779 * defs.h (error_init): Declare.
3780 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3781 (rs6000_convert_from_func_ptr_addr): Make static.
3782 (_initialize_rs6000_tdep): Add declaration.
3783 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3784 (show_commands, set_verbose, show_history): Delete declaration.
3785 * top.h (set_verbose): Add declaration.
3786 (show_history, set_history, show_commands): Add declaration.
3787 (do_restore_instream_cleanup): Add declaration.
3788 * objc-lang.c (specialcmp): Make static.
3789 (print_object_command): Make static.
3790 (find_objc_msgsend): Make static.
3791 (find_objc_msgcall_submethod_helper): Make static.
3792 (find_objc_msgcall_submethod): Make static.
3793 (_initialize_objc_language): Add declaration.
3794 (find_implementation_from_class): Make static.
3795 (find_implementation): Make static.
3796 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3797 * objc-lang.h (lookup_struct_typedef): Add declaration.
3798 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3799 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3800 (do_restore_user_call_depth): Make static.
3801 (do_restore_instream_cleanup): Delete declaration.
3802 (dont_repeat): Delete declaration.
3803 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3804 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3805 * reggroups.c (_initialize_reggroup): Add declaration.
3806 * cp-support.c (_initialize_cp_support): Add declaration.
3807 * cp-abi.c (_initialize_cp_abi): Add declaration.
3808 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3809 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3810 (_initialize_gnu_v3_abi): Add declaration.
3811 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3812 (_initialize_gnu_v2_abi): Add declaration.
3813 * frame-base.c (_initialize_frame_base): Add declaration.
3814 * doublest.c (floatformat_from_length): Make static.
3815 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3816 * frame.c (create_sentinel_frame): Make static.
3817 (_initialize_frame): Add declaration.
3818 * top.c (do_catch_errors): Make static.
3819 (gdb_rl_operate_and_get_next_completion): Make static.
3820 * typeprint.c: Include "typeprint.h".
3821 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3822 (sentinel_frame_this_id): Make static.
3823 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3824 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3825 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3826 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3827 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3828 * maint.c (maintenance_print_architecture): Make static.
3829 * signals/signals.c (_initialize_signals): Add declaration.
3830 * std-regs.c (_initialize_frame_reg): Add declaration.
3831 * jv-exp.y (push_variable): ISO C definition.
3832 (push_qualified_expression_name): Ditto.
3833 * memattr.c (_initialize_mem): Add declaration.
3834 * remote.c (remote_check_watch_resources): Make static.
3835 (remote_stopped_by_watchpoint): Make static.
3836 (remote_stopped_data_address): Make static.
3837 * d10v-tdep.c (nr_dmap_regs): Make static.
3838 (a0_regnum): Make static.
3839 (d10v_frame_unwind_cache): Make static.
3840 (d10v_frame_p): Make static.
3841 * osabi.c (show_osabi): Make static.
3842 (_initialize_gdb_osabi): Add extern declaration.
3843 * gdbtypes.c (make_qualified_type): Make static.
3844 (safe_parse_type): Make static.
3845 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3846 * macrotab.c (macro_bcache_free): Make static.
3847 * interps.c (interp_set_quiet): Make static.
3848 (interpreter_exec_cmd): Make static.
3849 * stack.h (select_frame_command): New file.
3850 * stack.c: Include "stack.h".
3851 (select_frame_command_wrapper): Delete function.
3852 (select_frame_command): Make global.
3853 * infcall.c: Include "infcall.h".
3854 * linespec.c: Include "linespec.h".
3855 * symfile.c (sections_overlap): Make static.
3856 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3857 * charset.c (_initialize_charset): Add missing prototype.
3858 * regcache.c (init_legacy_regcache_descr): Make static.
3859 (do_regcache_xfree): Make static.
3860 (regcache_xfer_part): Make static.
3861 (_initialize_regcache): Add missing prototype.
3862 * breakpoint.c (parse_breakpoint_sals): Make static.
3863 (breakpoint_sals_to_pc): Make static.
3864 * interps.h (clear_interpreter_hooks): ISO C declaration.
3865 * Makefile.in (stack_h): Define.
3866 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3867 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3869 2003-06-08 Andrew Cagney <cagney@redhat.com>
3871 * Makefile.in (d10v-tdep.o): Update dependencies.
3872 (SFILES): Add trad-frame.c.
3873 (trad_frame_h): Define.
3874 (COMMON_OBS): Add trad-frame.o.
3875 (trad-frame.o): Specify dependencies.
3876 * d10v-tdep.c: Include "trad-frame.h".
3877 (saved_regs_unwinder): Delete function.
3878 (d10v_frame_prev_register): Use trad_frame_prev_register.
3879 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3880 trad_frame", delete "regs" and "prev_sp".
3881 (prologue_find_regs): Use trad-frame.
3882 * trad-frame.h, trad-frame.c: New files.
3884 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3886 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3888 2003-06-07 Adam Fedor <fedor@gnu.org>
3890 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3891 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3892 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3893 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3894 resolve_msgsend_super, resolve_msgsend_super_stret):
3897 2003-06-07 Andrew Cagney <cagney@redhat.com>
3899 * symfile.h: Re-indent, clean up comments.
3901 2003-06-07 Andrew Cagney <cagney@redhat.com>
3903 * inferior.h (deprecated_write_sp): Replace
3904 generic_target_write_sp.
3905 * regcache.c (deprecated_write_sp): Replace
3906 generic_target_write_sp.
3907 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3908 * vax-tdep.c (vax_gdbarch_init): Update.
3909 * v850-tdep.c (v850_gdbarch_init): Update.
3910 * sparc-tdep.c (sparc_gdbarch_init): Update.
3911 * sh-tdep.c (sh_gdbarch_init): Update.
3912 * s390-tdep.c (s390_gdbarch_init): Update.
3913 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3914 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3915 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3916 * mcore-tdep.c (mcore_gdbarch_init): Update.
3917 * m68k-tdep.c (m68k_gdbarch_init): Update.
3918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3919 * ia64-tdep.c (ia64_gdbarch_init): Update.
3920 * h8300-tdep.c (h8300_gdbarch_init): Update.
3921 * frv-tdep.c (frv_gdbarch_init): Update.
3922 * cris-tdep.c (cris_gdbarch_init): Update.
3923 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3925 2003-06-07 Andrew Cagney <cagney@redhat.com>
3927 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3928 Assert that PC_REGNUM is valid.
3929 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3931 2003-06-07 Andrew Cagney <cagney@redhat.com>
3933 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3934 * gdbarch.h, gdbarch.c: Regenerate.
3935 * mn10300-tdep.c: Include "gdb_assert.h".
3936 (mn10300_read_fp): New function.
3937 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3938 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3939 * ia64-tdep.c: Include "gdb_assert.h".
3940 (ia64_read_fp): New function.
3941 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3942 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3943 * regcache.c (generic_target_read_sp): Delete function.
3944 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3945 * inferior.h (generic_target_read_sp): Delete declaration.
3946 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3947 generic_target_read_sp.
3948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3949 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3950 * sh-tdep.c (sh_gdbarch_init): Ditto.
3951 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3952 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3954 2003-06-07 Andrew Cagney <cagney@redhat.com>
3956 * gdbarch.sh: Comment each field of startup_gdbarch.
3957 * gdbarch.h, gdbarch.c: Re-generate.
3959 2003-06-07 Andrew Cagney <cagney@redhat.com>
3961 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3962 * gdbarch.h, gdbarch.c: Re-generate.
3963 * regcache.c: Update comments on read_pc et.al.
3964 (generic_target_read_pc): Delete function.
3965 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3966 * inferior.h (generic_target_read_pc): Delete declaration.
3967 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3968 generic_target_read_pc.
3969 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3970 * sh-tdep.c (sh_gdbarch_init): Ditto.
3971 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3972 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3974 2003-06-07 Andrew Cagney <cagney@redhat.com>
3976 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3977 "index" with "special_local_sect". Use strcmp instead of STREQ.
3978 Append period to coments.
3980 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3982 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3983 (elfstab_offset_sections): Likewise.
3984 * gdb-stabs.h (stab_section_info): Likewise.
3985 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3986 * objfiles.c (objfile_relocate): Likewise.
3987 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3988 * remote.c (get_offsets): Likewise.
3989 (remote_cisco_objfile_relocate): Likewise.
3990 * somread.c (som_symfile_offsets): Likewise.
3991 * symfile.c (alloc_section_addr_info): New function.
3992 (build_section_addr_info_from_section_tab): Use it.
3993 (free_section_addr_info): Adjust.
3994 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3995 (syms_from_objfile): Allocate local_addr dynamically.
3996 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3998 (add_symbol_file_command): Allocate sect_opts dynamically.
3999 (reread_symbols): Avoid use of SECT_OFF_MAX.
4000 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4001 (alloc_section_addr_info): Declare it.
4002 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4003 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4005 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4007 2003-06-06 Andrew Cagney <cagney@redhat.com>
4009 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4010 (d10v_frame_unwind_cache): Do not set "return_pc".
4012 2003-06-06 Michael Snyder <msnyder@redhat.com>
4014 * h8300-tdep.c: Make tidy (long lines).
4016 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4018 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4019 to regcache_collect().
4021 2003-06-05 J. Brobecker <brobecker@gnat.com>
4023 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4024 pc_in_sigtramp multiarch method.
4025 (hppa_hpux_som_init_abi): Use it.
4026 (hppa_hpux_elf_init_abi): Likewise.
4027 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4028 macro has been multiarched.
4029 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4030 macro here, as hppa64 isn't multiarched yet.
4032 2003-06-05 Andrew Cagney <cagney@redhat.com>
4034 * Makefile.in (value_h): Add $(frame_h).
4035 * value.h: Include "frame.h".
4036 (struct value): Replace "frame_addr" with "frame_id".
4037 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4038 * values.c (allocate_value): Use VALUE_FRAME_ID.
4039 (value_copy): Use VALUE_FRAME_ID.
4040 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4041 * valops.c (value_assign): Update. Use frame_find_by_id.
4043 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4045 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4048 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4050 * thread-db.c (check_event): For create/death event breakpoints,
4051 loop through all messages to ensure that we read the message
4052 corresponding to the breakpoint we are at.
4054 2003-06-04 Michael Snyder <msnyder@redhat.com>
4056 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4058 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4060 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4061 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4062 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4063 when handling .eh_frame sections.
4065 2003-06-04 J. Brobecker <brobecker@gnat.com>
4067 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4068 prepare_to_proceed procedure instead of the hppa-specific one.
4069 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4071 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4073 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4074 * config.in: Regenerated.
4075 * configure.in: Add test for syscall function and check for
4076 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4077 * configure: Regenerated.
4078 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4080 (kill_lwp): New function that uses tkill syscall or
4081 uses kill, depending on whether threading model is nptl or not.
4082 All callers of kill() changed to use kill_lwp().
4083 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4084 see if all threads have already exited in the nptl model.
4085 (stop_and_resume_callback): New callback function used by the
4086 lin_lwp_wait thread exit handling code.
4087 (stop_wait_callback): Check for threads already having exited and
4088 delete such threads fromt the lwp list when discovered.
4089 (stop_callback): Don't assert retcode of kill call.
4091 Roland McGrath <roland@redhat.com>
4092 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4095 2003-06-03 Richard Henderson <rth@redhat.com>
4097 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4098 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4099 (alpha_sigtramp_frame_prev_register): Likewise.
4100 (alpha_heuristic_frame_prev_register): Likewise.
4101 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4103 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4104 alpha-specific register id names.
4105 (alpha_mdebug_frame_unwind_cache): Likewise.
4106 (alpha_mdebug_frame_prev_register): Likewise.
4108 2003-06-03 Richard Henderson <rth@redhat.com>
4110 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4111 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4112 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4113 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4115 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4116 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4117 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4119 * alpha-linux-tdep.c: Remove unnecessary includes.
4120 * Makefile.in (alpha-linux-tdep.o): Update.
4122 2003-06-03 Richard Henderson <rth@redhat.com>
4124 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4125 (alphabsd_fill_fpreg): Likewise.
4127 2003-06-03 J. Brobecker <brobecker@gnat.com>
4129 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4130 references to struct frame_info fields by calls to the equivalent
4131 accessors. Necessary now that frame_info is opaque.
4133 2003-06-03 J. Brobecker <brobecker@gnat.com>
4135 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4136 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4137 structure, field no longer exists.
4139 2003-06-03 J. Brobecker <brobecker@gnat.com>
4141 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4142 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4144 2003-06-03 J. Brobecker <brobecker@gnat.com>
4146 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4147 references to struct frame_info fields by calls to the equivalent
4148 accessors. Necessary now that frame_info is opaque.
4150 2003-06-03 J. Brobecker <brobecker@gnat.com>
4152 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4153 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4154 structure, field no longer exists.
4156 2003-06-03 Theodore A. Roth <troth@openavr.org>
4158 * remote.c (init_remote_state): Compute sizeof_g_packet by
4159 accumulation of the size of all registers instead of blindly using
4160 DEPRECATED_REGISTER_BYTES.
4162 2003-06-03 Michael Snyder <msnyder@redhat.com>
4164 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4165 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4168 2003-06-03 J. Brobecker <brobecker@gnat.com>
4170 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4171 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4173 2003-06-03 Andrew Cagney <cagney@redhat.com>
4175 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4176 (sparc_convert_to_raw): Delete function.
4177 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4178 register_convert_to_virtual.
4180 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4182 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4183 layer if not dealing with a statically-linked threaded program.
4185 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4187 * solib.c (solib_open): Update comment to reflect actual search order.
4189 2003-06-03 Andrew Cagney <cagney@redhat.com>
4191 * frame.c (get_frame_memory_signed): New function.
4192 (get_frame_memory, get_frame_memory_unsigned): New function.
4193 (get_frame_arch): New function.
4194 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4195 (get_frame_memory, get_frame_unsigned_memory): Declare.
4196 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4197 get_frame_memory_unsigned and get_frame_arch.
4198 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4200 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4202 * MAINTAINERS (write after approval): Add myself.
4204 2003-06-03 Jim Blandy <jimb@redhat.com>
4206 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4207 elements of gregset_t are 64 bits each, but access registers
4208 are still 32 bits, so they're packed two per gregset_t
4209 element. Unpack/pack them properly.
4211 2003-06-02 David Carlton <carlton@bactrian.org>
4213 * linespec.c (find_methods): Break out code into
4214 add_matching_methods and add_constructors.
4215 (add_matching_methods): New.
4216 (add_constructors): Ditto.
4218 2003-06-02 Andrew Cagney <cagney@redhat.com>
4220 * sparc-tdep.c (sparc_print_registers): Delete call to
4221 REGISTER_CONVERTIBLE.
4222 (sparc_gdbarch_init): Do not set register_convertible.
4223 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4224 * frv-tdep.c (frv_gdbarch_init): Ditto.
4225 * cris-tdep.c (cris_gdbarch_init): Ditto.
4227 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4229 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4230 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4231 (syms_from_objfile): Ditto.
4233 2003-06-03 Andreas Schwab <schwab@suse.de>
4235 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4236 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4238 2003-06-02 Richard Henderson <rth@redhat.com>
4240 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4241 a member of all_reggroup.
4243 2003-06-02 Richard Henderson <rth@redhat.com>
4245 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4246 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4247 (alpha_lds, alpha_sts): New.
4248 (alpha_convert_register_p): Change from _register_convertible.
4249 (alpha_register_to_value): Change from _convert_to_virtual;
4250 restructure and fail for type sizes other than 4 or 8.
4251 (alpha_value_to_register): Similarly.
4252 (alpha_extract_return_value): Use alpha_sts.
4253 (alpha_store_return_value): Use alpha_lds.
4254 (alpha_gdbarch_init): Update hooks.
4256 2003-06-02 Richard Henderson <rth@redhat.com>
4258 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4260 (alpha_sigtramp_register_address): Likewise.
4262 2003-06-02 Richard Henderson <rth@redhat.com>
4264 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4265 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4266 * alpha-tdep.h: Declare them.
4268 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4269 Remove zerobuf. Don't error on UNIQUE.
4270 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4271 (ALPHA_REGSET_UNIQUE): Provide default.
4272 (supply_gregset): Use alpha_supply_int_regs.
4273 (fill_gregset): Use alpha_fill_int_regs.
4274 (supply_fpregset): Use alpha_supply_fp_regs.
4275 (fill_fpregset): Use alpha_fill_fp_regs.
4276 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4277 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4278 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4279 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4280 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4281 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4283 2003-06-02 Richard Henderson <rth@redhat.com>
4285 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4287 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4288 (alpha_store_return_value): Likewise.
4290 2003-06-02 David Carlton <carlton@math.stanford.edu>
4292 * block.c (contained_in): Add 'const' to arguments.
4293 (block_function): Ditto.
4294 * block.h: Update declarations for block_function and
4297 2003-06-02 David Carlton <carlton@math.stanford.edu>
4299 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4300 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4301 * p-valprint.c (pascal_val_print): Ditto.
4302 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4304 2003-06-02 Richard Henderson <rth@redhat.com>
4306 * alpha-tdep.c (alpha_push_dummy_call): Use
4307 builtin_type_ieee_double_little instead of builtin_type_double.
4309 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4310 sign-extension of 32-bit values.
4311 (alpha_store_return_value): Similarly.
4313 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4314 (alpha_extract_return_value): Likewise.
4315 (alpha_store_return_value): Likewise.
4317 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4318 (alpha_store_return_value): Error on IEEE Quad floats.
4320 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4321 (alpha_extract_struct_value_address): Likewise.
4322 (alpha_store_return_value): Likewise.
4323 (alpha_store_struct_return): Remove.
4324 (alpha_gdbarch_init): Update hook registration to match.
4326 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4327 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4328 macros where appropriate.
4329 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4330 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4332 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4333 for SP, GP; void_func_ptr for PC; non-language-specific types
4335 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4337 2003-06-02 Richard Henderson <rth@redhat.com>
4339 * top.h (lim_at_start): Declare.
4340 * main.c (captured_main): Set it.
4341 * top.c (lim_at_start): Define.
4342 (command_loop): Use it instead of &environ.
4343 * event-top.c (command_handler): Likewise.
4345 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4347 * mipsnbsd-tdep.c: Update copyright years.
4348 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4350 2003-06-01 Richard Henderson <rth@redhat.com>
4352 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4353 (alpha-linux-tdep.o): Update dependencies.
4354 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4355 * alpha-mdebug-tdep.c: Remove unneeded includes.
4357 2003-06-01 Richard Henderson <rth@redhat.com>
4359 * alpha-tdep.c (alpha_register_reggroup_p): New.
4360 (alpha_gdbarch_init): Register it.
4362 2003-06-02 Andrew Cagney <cagney@redhat.com>
4364 * dwarfread.c: Eliminate "register"
4365 (decode_die_type): Eliminate assignment within "if".
4366 (struct_type, decode_array_element_type): Ditto.
4367 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4368 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4369 (decode_modified_type, completedieinfo): Ditto.
4370 * block.c: Eliminate "register".
4371 (blockvector_for_pc_sect): Eliminate assignment within "if".
4372 * cp-support.h (struct symbol): Opaque declaration.
4373 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4375 2003-06-01 Richard Henderson <rth@redhat.com>
4377 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4378 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4380 2003-06-01 Adam Fedor <fedor@gnu.org>
4382 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4383 * gdbarch.[ch]: Regenerate.
4384 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4385 (hppa_gdbarch_init): Set it in the gdbarch vector.
4386 * i386-tdep.c (i386_fetch_pointer_argument): New
4387 (i386_gdbarch_init): Set it into gdbarch.
4388 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4389 (rs6000_gdbarch_init): Set it in gdbarch.
4390 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4391 (sparc_gdbarch_init): Set it in gdbarch.
4393 2003-06-01 Andrew Cagney <cagney@redhat.com>
4395 * defs.h (extract_address): Delete declaration.
4396 * findvar.c (extract_address): Delete function.
4397 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4398 extract_address with the inline equivalent,
4399 extract_unsigned_integer.
4400 (xstormy16_extract_struct_value_address): Ditto.
4401 (xstormy16_pointer_to_address): Ditto.
4402 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4403 * v850-tdep.c (v850_push_arguments): Ditto.
4404 (v850_extract_return_value): Ditto.
4405 (v850_extract_struct_value_address): Ditto.
4406 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4407 (sparcnbsd_get_longjmp_target_64): Ditto.
4408 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4409 (get_longjmp_target): Ditto.
4410 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4411 (sh64_extract_struct_value_address): Ditto.
4412 (sh_push_arguments): Ditto.
4413 (sh64_push_arguments): Ditto.
4414 * remote-vxsparc.c (vx_read_register): Ditto.
4415 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4416 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4417 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4418 * mipsv4-nat.c (get_longjmp_target): Ditto.
4419 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4420 * mips-nat.c (get_longjmp_target): Ditto.
4421 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4422 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4423 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4424 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4425 * irix5-nat.c (get_longjmp_target): Ditto.
4426 * irix4-nat.c (get_longjmp_target): Ditto.
4427 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4428 (ia64_push_arguments): Ditto.
4429 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4430 * h8300-tdep.c (h8300_push_arguments): Ditto.
4431 (h8300_store_return_value): Ditto.
4432 (h8300_extract_struct_value_address): Ditto.
4433 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4434 (frv_push_arguments): Ditto.
4435 * avr-tdep.c (avr_pointer_to_address): Ditto.
4436 (avr_push_arguments): Ditto.
4437 * arm-tdep.c (arm_push_dummy_call): Ditto.
4438 (arm_get_longjmp_target): Ditto.
4439 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4440 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4441 (alpha_get_longjmp_target): Ditto.
4443 * solib-irix.c (extract_mips_address): Inline extract_address,
4444 replacing it with extract_signed_integer.
4445 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4446 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4447 (first_link_map_member, open_symbol_file_object): Ditto.
4448 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4449 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4450 (LM_NEXT, LM_NAME): Ditto.
4452 2003-06-01 Richard Henderson <rth@redhat.com>
4454 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4455 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4456 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4457 (alpha_cannot_store_register): Likewise.
4458 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4459 * alpha-nat.c (supply_gregset): Likewise.
4460 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4462 2003-06-01 Andrew Cagney <cagney@redhat.com>
4464 * infcall.c (call_function_by_hand): Update comment on
4465 DEPRECATED_DUMMY_WRITE_SP.
4467 * mips-tdep.c (mips_gdbarch_init): Do not set
4468 deprecated_dummy_write_sp.
4469 (mips_eabi_push_dummy_call): Set the SP register.
4470 (mips_o64_push_dummy_call): Set the SP register.
4471 (mips_o32_push_dummy_call): Set the SP register.
4472 (mips_n32n64_push_dummy_call): Set the SP register.
4474 2003-06-01 Richard Henderson <rth@redhat.com>
4476 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4477 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4478 (supply_gregset): Likewise.
4479 * alpha-tdep.c (alpha_store_return_value): Likewise.
4480 (alpha_get_longjmp_target): Likewise.
4481 (alpha_register_name): Constify array.
4482 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4483 deprecated_register_size, deprecated_register_bytes,
4484 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4485 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4486 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4488 2003-06-01 Richard Henderson <rth@redhat.com>
4490 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4491 from arg_reg_buffer to regcache to avoid double conversion.
4493 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4495 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4497 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4498 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4500 2003-06-01 Richard Henderson <rth@redhat.com>
4502 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4503 (decode_frame_entry): Set it. Skip FDE augmentation.
4505 2003-06-01 Richard Henderson <rth@redhat.com>
4507 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4508 not overlapping PC_REGNUM.
4510 2003-06-01 Richard Henderson <rth@redhat.com>
4512 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4513 alpha_push_arguments. Don't dump argument register data to
4514 the target stack. Fix float and 128-bit long double semantics.
4515 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4516 (alpha_fix_call_dummy): Remove.
4517 (alpha_call_dummy_words): Remove.
4518 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4520 2003-06-01 Richard Henderson <rth@redhat.com>
4522 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4524 2003-06-01 Andrew Cagney <cagney@redhat.com>
4526 * mips-tdep.c (is_mips16_addr): New function.
4527 (make_mips16_addr, unmake_mips16_addr): New functions.
4528 (pc_is_mips16, mips_fetch_instruction): Use.
4529 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4530 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4531 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4532 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4534 * config/mips/tm-mips.h: Update copyright.
4535 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4536 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4537 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4538 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4539 (TM_PRINT_INSN_MACH): Delete.
4540 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4542 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4543 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4544 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4545 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4546 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4547 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4548 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4549 mips*-*-riscos* and mips*-*-sysv* onto mips.
4550 * config/mips/mips64.mt: New file.
4551 * config/mips/mips.mt: New file.
4552 * config/mips/littlemips.mt: Delete file.
4553 * config/mips/decstation.mt: Delete file.
4554 * config/mips/vr4300el.mt: Delete file.
4555 * config/mips/vr5000el.mt: Delete file.
4556 * config/mips/vr5000.mt: Delete file.
4557 * config/mips/vr4100.mt: Delete file.
4558 * config/mips/vr4xxxel.mt: Delete file.
4559 * config/mips/vr4300.mt: Delete file.
4560 * config/mips/vr4xxx.mt: Delete file.
4561 * config/mips/bigmips.mt: Delete file.
4562 * config/mips/bigmips64.mt: Delete file.
4563 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4564 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4565 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4566 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4567 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4569 * config/mips/tm-irix3.h: Ditto.
4570 * config/mips/tm-mipsv4.h: Ditto.
4571 * config/mips/tm-embed.h: Ditto.
4572 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4574 * config/mips/tm-vr5000el.h: Delete file.
4575 * config/mips/tm-tx39l.h: Delete file.
4576 * config/mips/tm-vr4300el.h: Delete file.
4577 * config/mips/tm-vr4xxxel.h: Delete file.
4578 * config/mips/tm-vr4300.h: Delete file.
4579 * config/mips/tm-vr4100.h: Delete file.
4580 * config/mips/tm-vr4xxx.h: Delete file.
4581 * config/mips/tm-vr5000.h: Delete file.
4582 * config/mips/tm-embedl64.h: Delete file.
4583 * config/mips/tm-embedl.h: Delete file.
4584 * config/mips/tm-embed64.h: Delete file.
4585 * config/mips/tm-bigmips64.h: Delete file.
4586 * config/mips/tm-bigmips.h: Delete file.
4588 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4591 * shnbsd-nat.c: Include "sh-tdep.h".
4593 From Richard Henderson <rth@redhat.com>:
4594 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4596 2003-05-31 Andrew Cagney <cagney@redhat.com>
4598 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4599 forward declaration.
4600 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4601 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4602 (mips_find_saved_regs): Use set_reg_offset.
4603 (mips_frame_init_saved_regs): Delete function.
4604 (mips_pop_frame): Call mips_find_saved_regs instead of
4605 DEPRECATED_FRAME_INIT_SAVED_REGS.
4607 2003-05-31 Andrew Cagney <cagney@redhat.com>
4609 * mips-tdep.c (mips_gdbarch_init): Do not set
4610 deprecated_max_register_raw_size, register_virtual_size, and
4611 deprecated_max_register_virtual_size.
4613 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4615 * i386-tdep.c: Include "dwarf2-frame.h".
4616 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4617 * Makefile.in (i386-tdep.o): Update dependencies.
4619 * dwarf2-frame.c, dwarf2-frame.h: New files.
4620 * Makefile.in (SFILES): Add dwarf2-frame.c.
4621 (dwarf2_frame_h): Define.
4622 (COMMON_OBS): Add dwarf2-frame.o.
4623 (dwarf2-frame.o): Add dependencies.
4625 2003-05-31 Andreas Jaeger <aj@suse.de>
4627 * x86-64-linux-nat.c: Fix comment.
4629 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4631 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4634 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4635 have a sigcontext_addr handler.
4636 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4637 sigcontext_addr handler.
4639 2003-05-31 Andrew Cagney <cagney@redhat.com>
4641 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4642 (print_fp_register_row): Replace do_fp_register_row.
4643 (mips_print_fp_register): Add "file" and "frame" parameters.
4644 (mips_print_register): Add "file" and "frame" parameters.
4645 (mips_print_registers_info): Replace mips_do_registers_info.
4646 (mips_gdbarch_init): Set print_registers_info instead of
4647 deprecated_do_registers_info.
4648 (mips_read_fp_register_single): Add "frame" parameter.
4649 (mips_read_fp_register_double): Add "frame" parameter.
4651 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4653 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4654 Fixes a bug where GDB would print the wrong register names for
4655 targets without SSE.
4657 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4658 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4661 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4662 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4663 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4666 From Michal Ludvig <mludvig@suse.cz>:
4667 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4669 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4670 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4671 I386_ST0_REGNUM): Move here from...
4672 * i386-tdep.c: ... here.
4673 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4674 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4675 registers if possible.
4676 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4677 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4679 (i386bsd_sc_reg_offset): New variable.
4680 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4681 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4683 (i386fbsd_sc_reg_offset): New variable.
4684 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4686 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4688 (i386fbsd4_sc_reg_offset): New variable.
4689 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4690 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4692 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4693 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4694 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4696 (i386nbsd_sc_reg_offset): New variable.
4697 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4698 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4700 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4702 (i386obsd_sc_reg_offset): New variable.
4703 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4704 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4706 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4707 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4708 for frame pointer offset in `struct sigcontext'.
4710 2003-05-31 Andrew Cagney <cagney@redhat.com>
4712 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4713 architecture methods call_dummy_words, sizeof_call_dummy_words,
4714 push_return_address, store_struct_return, and fix_call_dummy. Set
4715 push_dummy_call instead of deprecated_push_arguments.
4716 (mips_store_struct_return): Delete function.
4717 (mips_fix_call_dummy): Delete function.
4718 (mips_push_return_address): Delete function.
4719 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4720 RA_REGNUM and T9_REGNUM.
4721 (mips_n32n64_push_dummy_call): Ditto for
4722 mips_n32n64_push_arguments.
4723 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4724 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4726 2003-05-31 Andrew Cagney <cagney@redhat.com>
4728 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4729 "dummy_addr" to "bp_addr".
4730 * infcall.c (call_function_by_hand): Pass "funaddr" to
4731 gdbarch_push_dummy_call.
4732 * gdbarch.h, gdbarch.c: Re-generate.
4733 * i386-tdep.c (i386_push_dummy_call): Update.
4734 * arm-tdep.c (arm_push_dummy_call): Update.
4735 * d10v-tdep.c (d10v_push_dummy_call): Update.
4737 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4739 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4740 variable declarations.
4741 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4742 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4743 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4744 x86_64_init_frame_pc, x86_64_init_frame_pc,
4745 x86_64_function_has_prologue): Remove prototypes.
4746 (X86_64_NUM_GREGS): New define.
4747 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4748 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4749 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4750 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4751 XMM1_REGNUM): Remove defines.
4752 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4753 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4754 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4755 X86_64_XMM1_REGNUM): New defines.
4756 (struct x86_64_register_info): Renamed from `struct
4757 register_info'. Remove `size' member.
4758 (x86_64_register_info_table): Remove variable.
4759 (x86_64_register_info): New variable.
4760 (X86_64_NUM_REGS): New define.
4761 (X86_64_NUM_GREGS): Remove define.
4762 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4763 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4765 (x86_54_dwarf2_reg_to_regnum): Remove function.
4766 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4767 (x86_64_dwarf_reg_to_regnum): New function.
4768 (x86_64_register_name): Rewrite.
4769 (x86_64_register_raw_size): Remove function.
4770 (x86_64_register_byte_table): Remove variable.
4771 (x86_64_register_byte): Remove function.
4772 (x86_64_register_virtual_type): Remove function.
4773 (x86_64_register_type): New function.
4774 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4775 x86_64_register_convert_to_raw): Remove functions.
4776 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4777 (x86_64_use_struct_convention): Make static. Adjust for renamed
4779 (x86_64_frame_init_saved_regs): Remove function.
4780 (x86_64_push_arguments): Make static. Change to accept a regcache
4782 (x86_64_store_return_value, x86_64_extract_return_value): Make
4783 static. Rewrite based on i386 counterparts.
4784 (x86_64_push_dummy_call): New function.
4785 (X86_64_NUM_SAVED_REGS): New define.
4786 (x86_64_register_number): Remove function.
4787 (x86_64_store_struct_return): Remove function.
4788 (x86_64_frameless_function_invocation,
4789 x86_64_function_has_prologue): Remove functions.
4790 (PROLOG_BUFSIZE): Remove define.
4791 (struct x86_64_frame_cache): New structure.
4792 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4793 x86_64_frame_cache, x86_64_frame_this_id,
4794 x86_64_frame_prev_register, x86_64_frame_p,
4795 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4796 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4798 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4800 (x86_64_skip_prologue): Rewrite in terms of
4801 x86_64_analyze_prologue.
4802 (x86_64_frame_base_address): New function.
4803 (x86_64_frame_base): New variable.
4804 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4805 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4806 set deprecated_fp_regnum, deprecated_register_size,
4807 deprecated_register_bytes, register_raw_size, register_byte,
4808 register_virtual_type, register_convertiable,
4809 register_convert_to_virtual, convert_to_raw,
4810 deprecated_get_saved_register, deprecated_target_read_fp,
4811 deprecated_push_arguments, deprecated_push_return_address,
4812 deprecated_pop_frame, deprecated_store_struct_return,
4813 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4814 frameless_function_invocation, deprecated_frame_saved_pc,
4815 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4816 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4817 deprecated_init_frame_pc and virtual_frame_pointer. Call
4818 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4819 and x86_64_frame_p. Call frame_base_set_default to register
4821 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4822 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4823 (_initialize_x86_64_tdep): Remove function.
4824 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4825 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4826 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4828 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4829 (x86_64_linux_sigcontext_addr): Rewrite.
4830 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4831 x86_64_linux_frame_saved_pc): Remove functions.
4832 (x86_64_linux_pc_in_sigtramp): Renamed from
4833 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4835 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4837 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4838 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4839 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4840 (x86_64_regmap): Rename to regmap.
4841 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4843 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4845 (x86_64_fxsave_offset): Remove function.
4846 (supply_fpregset): Simply call x86_64_supply_fxsave.
4847 (fill_fpregset): Simply call x86_64_fill_fxsave.
4848 (fetch_inferior_registers, store_inferior_registers): Avoid
4849 asignment in if-statement.
4850 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4851 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4852 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4853 (fetch_core_registers): Remove function.
4854 (linux_elf_core_fns): Remove.
4855 (offsetoff): Don't define.
4856 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4857 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4858 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4860 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4861 protection against multiple includes instead of NM_X86_64_h. Add
4862 various comments. Include "config/nm-linux.h". Don't include
4864 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4865 GET_THREAD_SIGNALS): Remove defines.
4866 (x86_64_register_u_addr, kernel_u_size,
4867 lin_thread_get_thread_signals): Remove prototypes.
4868 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4869 [HAVE_LINK_H]: Don't include "solib.h".
4870 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4871 * config/i386/tm-x86-64linux.h: Fix comments.
4872 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4873 x86-64-tdep.o): Update dependencies.
4875 2003-05-30 Andrew Cagney <cagney@redhat.com>
4877 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4878 Change parameter type to a "struct regcache *".
4880 * gdbarch.sh: Regardless of the multi-arch level, always define
4881 the macro when not already defined.
4882 * gdbarch.h, gdbarch.c: Re-generate.
4884 2003-05-30 Richard Henderson <rth@redhat.com>
4886 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4887 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4888 (alpha_mdebug_frame_this_id): Likewise.
4889 (alpha_mdebug_frame_prev_register): Likewise.
4890 (alpha_mdebug_frame_base_address): Likewise.
4891 (alpha_mdebug_frame_locals_address): Likewise.
4892 (alpha_mdebug_frame_args_address): Likewise.
4893 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4894 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4895 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4897 (alpha_heuristic_frame_this_id): Make static.
4898 (alpha_heuristic_frame_prev_register): Likewise.
4899 (alpha_heuristic_frame_base_address): Likewise.
4900 * alpha-tdep.h: Update.
4902 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4904 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4905 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4907 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4908 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4909 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4910 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4911 I386_ST0_REGNUM): New defines.
4912 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4913 codestream_get): Remove define.
4914 (codestream_next_addr, condestream_addr, condestream_buf,
4915 codestream_off, codestream_cnt): Remove variables.
4916 (codestream_fill, codestream_seek, codestream_read): Remove
4918 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4920 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4921 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4922 i386_frame_saved_pc, i386_saved_pc_after_call,
4923 i386_frame_num_args, i386_frame_init_saved_regs,
4924 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4925 i386_push_arguments): Remove functions.
4926 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4927 functionality. Use i386_analyze_prologue instead of
4928 i386_get_frame_setup.
4929 (I386_NUM_SAVED_REGS): New define.
4930 (struct i386_frame_cache): New structure.
4931 (i386_alloc_frame_cache, i386_analyze_struct_return,
4932 i386_skip_probe, i386_analyze_frame_setup,
4933 i386_analyze_register_saves, i386_analyze_prologue,
4934 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4935 i386_frame_prev_register, i386_sigtramp_frame_cache,
4936 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4937 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4938 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4940 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4942 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4943 I386_EAX_REGNUM and I386_EDX_REGNUM.
4944 (i386_extract_return_value, i386_store_return_value): Use
4945 I386_ST0_REGNUM where appropriate.
4946 (i386_extract_struct_value_address): Rewrite to use extract_address.
4947 (i386_svr4_pc_in_sigtramp): Add comment.
4948 (i386_svr4_sigcontext_addr): Rewrite.
4949 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4951 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4952 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4953 of new defines. Set push_dummy_call, don't set
4954 deprecated_push_arguments, deprecated_push_return_address,
4955 deprecated_pop_frame. Don't set parm_boundary. Don't set
4956 deprecated_frame_chain, deprecated_frame_saved_pc,
4957 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4958 save_dummy_frame_tos, unwind_pc. Call
4959 frame_unwind_append_predicate and frame_base_set_default. Don't
4960 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4961 Don't set frameless_function_invocation. Don't set
4962 deprecated_register_bytes, deprecated_register_size,
4963 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4964 * i386-linux-tdep.c: Fix formatting in some comments.
4965 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4966 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4967 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4968 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4969 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4970 redundant parentheses.
4971 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4972 (i386_linux_sigcontext_addr): Use it. Rewrite.
4973 (find_minsym_and_objfile): Change name of second argument.
4974 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4975 changed. Use frame_pc_unwind instead of
4976 DEPRECATED_SAVED_PC_AFTER_CALL.
4977 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4978 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4979 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4981 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4983 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4984 (_initialize_i386_cygwin_tdep): New prototype.
4985 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4986 deprecated_frame_chain_valid.
4987 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4988 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4989 Rely on the SVR4 defaults.
4990 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4991 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4993 2003-05-30 Andrew Cagney <cagney@redhat.com>
4995 * infcall.c (call_function_by_hand): Always call
4996 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4998 2003-05-30 Richard Henderson <rth@redhat.com>
5000 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5003 2003-05-29 Jim Blandy <jimb@redhat.com>
5005 Use gdbarch methods for solib stuff on PowerPC Linux.
5006 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5007 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5009 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5010 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5011 giving the same effect as the #definitions above.
5013 2003-05-29 Adam Fedor <fedor@gnu.org>
5015 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5016 (find_implementation_from_class): Replace it with the standard
5017 case i.e. do nothing.
5019 2003-05-29 Richard Henderson <rth@redhat.com>
5021 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5022 (alpha_linux_sigtramp_offset): Use it. Make static.
5023 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5024 update for new frame model.
5025 * alpha-mdebug-tdep.c: New file.
5026 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5027 (alpha_osf1_init_abi): Install it.
5028 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5029 (linked_proc_desc_table): Remove.
5030 (alpha_frame_past_sigtramp_frame): Remove.
5031 (alpha_dynamic_sigtramp_offset): Remove.
5032 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5033 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5034 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5035 (push_sigtramp_desc): Remove.
5036 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5037 (alpha_cannot_store_register): Likewise.
5038 (alpha_sigcontext_addr): Remove.
5039 (alpha_find_saved_regs): Remove.
5040 (alpha_frame_init_saved_regs): Remove.
5041 (alpha_init_frame_pc_first): Remove.
5042 (read_next_frame_reg): Remove.
5043 (alpha_frame_saved_pc): Remove.
5044 (alpha_saved_pc_after_call): Remove.
5045 (temp_proc_desc, temp_saved_regs): Remove.
5046 (alpha_about_to_return): Remove.
5047 (cached_proc_desc): Remove.
5048 (alpha_frame_chain): Remove.
5049 (alpha_print_extra_frame_info): Remove.
5050 (alpha_init_extra_frame_info): Remove.
5051 (alpha_frame_locals_address): Remove.
5052 (alpha_frame_args_address): Remove.
5053 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5054 (alpha_push_dummy_frame): Remove.
5055 (alpha_pop_frame): Remove.
5056 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5057 (alpha_read_insn): New.
5058 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5059 for different insn encodings.
5060 (alpha_in_lenient_prologue): Remove.
5061 (struct alpha_sigtramp_unwind_cache): New.
5062 (alpha_sigtramp_frame_unwind_cache): New.
5063 (alpha_sigtramp_register_address): New.
5064 (alpha_sigtramp_frame_this_id): New.
5065 (alpha_sigtramp_frame_prev_register): New.
5066 (alpha_sigtramp_frame_unwind): New.
5067 (alpha_sigtramp_frame_p): New.
5068 (struct alpha_heuristic_unwind_cache): New.
5069 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5070 don't count nop insns that occur between functions.
5071 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5072 heuristic_proc_desc, but without the mdebug wrapping.
5073 (alpha_heuristic_frame_this_id): New.
5074 (alpha_heuristic_frame_prev_register): New.
5075 (alpha_heuristic_frame_unwind): New.
5076 (alpha_heuristic_frame_p): New.
5077 (alpha_heuristic_frame_base_address): New.
5078 (alpha_heuristic_frame_base): New.
5079 (alpha_unwind_dummy_id): New.
5080 (alpha_unwind_pc): New.
5081 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5082 frame related deprecated initializations; install replacements.
5083 (alpha_dump_tdep): Remove.
5084 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5085 (alpha_read_insn, alpha_after_prologue,
5086 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5087 alpha_heuristic_frame_prev_register,
5088 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5089 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5090 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5091 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5093 2003-05-29 Andrew Cagney <cagney@redhat.com>
5095 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5096 dependant on the availability of ASSERT_FUNCTION.
5097 (ASSERT_FUNCTION): Do not define when there is no function name.
5099 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5101 From Jimi X <jimix@watson.ibm.com>:
5102 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5104 2003-05-28 Jim Blandy <jimb@redhat.com>
5106 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5107 argument to ptrace to int; the system headers should give it the
5108 right type, and pointers don't fit in ints on powerpc64-*-*.
5110 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5112 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5115 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5117 * stabsread.c (dbx_lookup_type): Make static.
5119 (add_undefined_type): Ditto.
5120 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5123 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5125 * hpread.c (hpread_has_name): Make static.
5126 (hpread_psymtab_to_symtab): Ditto.
5127 (file_exists): Ditto.
5128 (hpread_call_pxdb): Ditto.
5129 (hpread_pxdb_needed): Ditto.
5130 (hpread_quick_traverse): Ditto.
5131 (hpread_get_header): Ditto.
5132 (hpread_get_lntt): Ditto.
5133 (hpread_get_slt): Ditto.
5136 2003-05-25 Andreas Schwab <schwab@suse.de>
5138 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5139 stack_align and deprecated_extra_stack_alignment_needed.
5140 (m68k_stack_align): Delete.
5142 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5143 (m68k_register_virtual_size): Likewise.
5144 (altos_skip_prologue): Remove obsolete function.
5145 (isi_frame_num_args): Likewise.
5146 (news_frame_num_args): Likewise.
5147 (m68k_fix_call_dummy): Make static.
5148 (m68k_push_dummy_frame): Likewise.
5149 (m68k_pop_frame): Likewise.
5150 (m68k_skip_prologue): Likewise.
5151 (m68k_frame_init_saved_regs): Likewise.
5152 (m68k_saved_pc_after_call): Likewise.
5153 (m68k_get_longjmp_target): Make multi-arch.
5154 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5155 structure. Register m68k_get_longjmp_target if enabled.
5156 * m68k-tdep.h (struct gdbarch_tdep): Define.
5157 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5159 * Makefile.in (config.status): Also depend on configure.tgt
5161 (m68klinux-tdep.o): Update dependencies.
5162 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5163 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5164 (M68K_LINUX_JB_PC): Define.
5165 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5166 and take additional parameter.
5167 (m68k_linux_sigtramp_saved_pc): Update.
5168 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5169 m68k_linux_pc_in_sigtramp, in_plt_section,
5170 find_solib_trampoline_target.
5171 * config/m68k/tm-linux.h: Don't include any tm headers.
5172 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5173 (JB_ELEMENT_SIZE): Likewise.
5175 (GET_LONGJMP_TARGET): Likewise.
5176 (IN_SIGTRAMP): Likewise.
5177 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5179 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5181 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5182 (sparc32_push_arguments): Re-implement by calling
5183 sparc32_do_push_arguments.
5185 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5187 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5188 SPARC_O1_REGNUM): New defines.
5189 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5190 (sparc32_store_return_value): New function.
5191 (sparc_extract_struct_value_address): Rewrite to operate on a
5193 (sparc_gdbarch_init): Don't set
5194 deprecated_extract_struct_value_address. Set
5195 extract_struct_value_address instead. Don't set
5196 deprecated_extract_return_value and deprecated_store_return_value
5197 for 32-bit targets. Set extract_return_value and
5198 store_return_value instead.
5199 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5200 DEPRECTAED_EXTRACT_RETURN_VALUE,
5201 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5202 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5203 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5204 (sparc_store_return_value): Remove prototype.
5205 (sparc32_store_return_value): New prototype.
5206 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5209 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5211 * sparcnbsd-tdep.c: Include "gdb_string.h".
5213 2003-05-23 Andrew Cagney <cagney@redhat.com>
5215 * p-valprint.c (pascal_val_print): Replace extract_address with
5216 the inline equivalent extract_unsigned_integer.
5217 * jv-valprint.c (java_value_print): Ditto.
5218 * ada-valprint.c (ada_val_print_1): Ditto.
5219 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5221 2003-05-23 Theodore A. Roth <troth@openavr.org>
5223 * blockframe.c (frameless_look_for_prologue): Remove unused
5224 after_prologue variable.
5226 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5228 * blockframe.c (get_pc_function_start): Rewrite to avoid
5229 asignments in if-statements.
5231 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5233 Committed by Elena Zannoni <ezannoni@redhat.com>.
5234 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5235 files, don't relocate absolute symbols (and do use mst_abs).
5237 2003-05-23 Andrew Cagney <cagney@redhat.com>
5239 * objc-lang.c: Include "gdb_assert.h".
5240 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5241 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5242 (gdb_check, gdb_check_fatal): Delete functions.
5243 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5245 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5246 * Makefile.in (objc-lang.o): Update dependencies.
5248 2003-05-22 Ian Lance Taylor <ian@airs.com>
5250 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5251 with fprintf_filtered, not fprintf_unfiltered.
5253 2003-05-22 Andrew Cagney <cagney@redhat.com>
5255 * stack.c (frame_info): Inline extract_address, replacing it with
5256 extract_unsigned_integer.
5257 * findvar.c (unsigned_pointer_to_address): Ditto.
5258 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5259 * dwarf2expr.c (dwarf2_read_address): Ditto.
5260 * frame.c (frame_pc_unwind): Update comment.
5261 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5263 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5265 * infptrace.c (detach): Call print_sys_errmsg rather than
5266 perror_with_name to issue warning message when errno is non-zero
5267 after calling ptrace detach.
5269 2003-05-21 J. Brobecker <brobecker@gnat.com>
5271 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5272 macro definitions from here...
5273 * hppa-tdep.c: ...to there.
5275 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5277 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5278 register_ptrace_addr(). Fix all callers.
5280 2003-05-21 Andreas Schwab <schwab@suse.de>
5282 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5284 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5286 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5287 (_initialize_m68k_linux_tdep): New function.
5288 (m68k_linux_frame_saved_pc): Make static.
5289 (m68k_linux_extract_return_value): Likewise.
5290 (m68k_linux_store_return_value): Likewise.
5291 (m68k_linux_extract_struct_value_address): Likewise.
5292 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5294 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5295 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5296 (DEPRECATED_FRAME_SAVED_PC): Remove.
5298 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5300 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5301 regset numbering rather than our own.
5303 2003-05-19 David Carlton <carlton@bactrian.org>
5305 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5307 2003-05-19 David Carlton <carlton@bactrian.org>
5309 Partial fix for PR c++/827.
5310 * cp-support.h: Include symtab.h.
5311 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5312 * cp-namespace.c: Update contributors.
5313 (cp_lookup_symbol_nonlocal): New.
5314 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5315 (lookup_symbol_file): Ditto.
5316 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5317 * block.h: Declare block_scope, block_using, block_global_block.
5318 * block.c (block_scope): New.
5319 (block_using, block_global_block): Ditto.
5320 * Makefile.in (cp_support_h): Depend on symtab_h.
5321 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5323 2003-05-19 David Carlton <carlton@bactrian.org>
5325 * language.h (struct language_defn): Add 'la_value_of_this'
5326 and 'la_lookup_symbol_nonlocal' members.
5327 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5328 lookup_symbol_static, lookup_symbol_global,
5329 lookup_symbol_aux_block.
5330 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5331 if we should search fields of this and how to do static/global
5333 (lookup_symbol_aux_block): Make extern.
5334 (basic_lookup_symbol_nonlocal): New.
5335 (lookup_symbol_static, lookup_symbol_global): Ditto.
5336 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5337 'la_lookup_symbol_nonlocal' members.
5338 * c-lang.c (c_language_defn, cplus_language_defn)
5339 (asm_language_defn, minimal_language_defn): Ditto.
5340 * jv-lang.c (java_language_defn): Ditto.
5341 * language.c (unknown_language_defn, auto_language_defn)
5342 (local_language_defn): Ditto.
5343 * m2-lang.c (m2_language_defn): Ditto.
5344 * objc-lang.c (objc_language_defn): Ditto.
5345 * scm-lang.c (scm_language_defn): Ditto.
5346 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5347 * p-lang.c (pascal_language_defn): Ditto for both.
5348 * Makefile.in (f-lang.o): Depend on value_h.
5351 2003-05-19 David Carlton <carlton@bactrian.org>
5353 * block.h: Declare block_static_block.
5354 * block.c (block_static_block): New.
5355 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5356 lookup_symbol_aux_local, calling block_static_block instead.
5357 (lookup_symbol_aux_local): Delete 'static_block' argument.
5359 2003-05-19 David Carlton <carlton@bactrian.org>
5361 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5363 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5365 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5366 register numbers mapping.
5368 2003-05-18 Adam Fedor <fedor@gnu.org>
5370 * symtab.c (completion_list_objc_symbol): New function.
5371 (make_symbol_completion_list): Use it to add ObjC symbols
5372 when looking though the list.
5373 (language_search_unquoted_string): New function.
5374 (make_file_symbol_completion_list): Use it.
5376 2003-05-18 Andreas Schwab <schwab@suse.de>
5378 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5380 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5381 as m68k_linux_extract_return_value.
5382 (DEPRECATED_STORE_RETURN_VALUE): Define as
5383 m68k_linux_store_return_value.
5384 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5385 m68k_linux_extract_struct_value_address.
5386 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5387 get_next_frame, get_frame_base, get_frame_pc.
5388 (m68k_linux_frame_saved_pc): Use get_frame_base.
5389 (m68k_linux_extract_return_value): New function.
5390 (m68k_linux_store_return_value): New function.
5391 (m68k_linux_extract_struct_value_address): New function.
5392 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5394 * c-exp.y (typebase): Remove duplicate occurence of
5395 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5396 of lookup_signed_typename.
5398 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5400 * dwarf2loc.c (find_location_expression): Change type of second
5401 argument to `size_t *'.
5402 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5405 2003-05-18 David Carlton <carlton@bactrian.org>
5407 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5408 'linkage_name'. Add comment.
5409 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5411 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5412 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5413 (lookup_block_symbol): Ditto.
5415 2003-05-16 Andrew Cagney <cagney@redhat.com>
5417 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5418 * gdbarch.h, gdbarch.c: Re-generate.
5419 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5420 * TODO (REGISTER_BYTES): Delete reference.
5421 * alpha-tdep.c (alpha_gdbarch_init): Update.
5422 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5423 * x86-64-tdep.c (x86_64_init_abi): Update.
5424 * vax-tdep.c (vax_gdbarch_init): Update.
5425 * v850-tdep.c (v850_gdbarch_init): Update.
5426 * sparc-tdep.c (sparc_gdbarch_init): Update.
5427 * sh-tdep.c (sh_gdbarch_init): Update.
5428 * s390-tdep.c (s390_gdbarch_init): Update.
5429 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5430 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5431 (ns32k_gdbarch_init_32382): Update.
5432 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5433 * mcore-tdep.c (mcore_gdbarch_init): Update.
5434 * m68k-tdep.c (m68k_gdbarch_init): Update.
5435 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5436 * ia64-tdep.c (ia64_gdbarch_init): Update.
5437 * i386-tdep.c (i386_gdbarch_init): Update.
5438 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5439 * hppa-tdep.c (hppa_gdbarch_init): Update.
5440 * h8300-tdep.c (h8300_gdbarch_init): Update.
5441 * frv-tdep.c (frv_gdbarch_init): Update.
5442 * cris-tdep.c (cris_gdbarch_init): Update.
5443 * avr-tdep.c (avr_gdbarch_init): Update.
5444 * arm-tdep.c (arm_gdbarch_init): Update.
5445 * sparc-tdep.c (sparc_pop_frame): Update.
5446 * rs6000-tdep.c (rs6000_pop_frame): Update.
5447 * remote.c (init_remote_state): Update.
5448 (remote_prepare_to_store): Update.
5449 * remote-vx.c (vx_prepare_to_store): Update.
5450 * remote-sds.c (sds_fetch_registers): Update.
5451 (sds_prepare_to_store): Update.
5452 * remote-array.c: Update.
5453 * regcache.c (init_legacy_regcache_descr): Update.
5454 (init_regcache_descr): Update.
5455 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5456 (mips_o64_extract_return_value): Update.
5457 * irix5-nat.c (fetch_core_registers): Update.
5458 * irix4-nat.c (fetch_core_registers): Update.
5459 * i386-tdep.h: Update.
5460 * hppa-tdep.c (pa_do_registers_info): Update.
5461 (pa_do_strcat_registers_info): Update.
5462 * cris-tdep.c (cris_register_bytes_ok): Update.
5463 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5464 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5465 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5466 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5467 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5468 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5469 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5470 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5471 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5472 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5473 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5474 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5475 (REGISTER_BYTES_OK): Update.
5476 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5477 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5479 2003-05-16 Ian Lance Taylor <ian@airs.com>
5481 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5482 (vax_print_insn, print_insn_arg): Remove static functions.
5483 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5484 print_insn_vax from opcodes library.
5485 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5487 2003-05-15 Andrew Cagney <cagney@redhat.com>
5489 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5490 * target.h (memory_breakpoint_from_pc): Delete declaration.
5491 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5492 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5493 * monitor.c (monitor_insert_breakpoint): Use
5494 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5495 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5496 * gdbarch.h, gdbarch.c: Re-generate.
5497 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5498 (sparc_gdbarch_init): Set breakpoint_from_pc to
5499 sparc_breakpoint_from_pc.
5500 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5501 (BREAKPOINT_FROM_PC): Define.
5502 (sparc_breakpoint_from_pc): Declare.
5503 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5504 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5505 (BREAKPOINT_FROM_PC): Define.
5506 (BREAKPOINT): Delete macro.
5507 * target.h: Update comment.
5508 * s390-tdep.c (s390_gdbarch_init): Update comments.
5509 * remote.c: Update comments.
5510 * remote-mips.c: Update comments.
5511 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5512 * mem-break.c: Update comment.
5513 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5514 (ia64_memory_insert_breakpoint): Update.
5515 * config/sparc/tm-sparc.h: Update comment.
5516 * config/pa/tm-hppa64.h: Update comment.
5517 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5518 (rs6000_breakpoint_from_pc): Update.
5519 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5520 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5521 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5522 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5523 (mips_breakpoint_from_pc): Update.
5524 (mips_dump_tdep): Update.
5526 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5527 * minsyms.c (lookup_minimal_symbol): Inline
5528 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5530 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5531 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5532 * p-lang.c (pascal_printstr): Ditto.
5533 * objc-lang.c (objc_printstr): Ditto.
5534 * m2-lang.c (m2_printstr): Ditto.
5535 * jv-valprint.c (java_print_value_fields): Ditto.
5536 * f-lang.c (f_printstr): Ditto.
5537 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5538 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5539 for repeat_count_threshold.
5540 * Makefile.in (cp-valprint.o): Update dependencies.
5542 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5544 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5545 (examine_prologue): Support looking through leaf functions, knowing
5546 they start with mov r2,r12. Support skipping over indirect stores
5547 of the input registers. Upon hitting a non-nop branch instruction
5548 or predicated instruction, bail out by setting lim_pc to the current
5549 pc value in the loop. At the end, if the lim_pc value is still
5550 beyond our calculated value and we have trust_limit set,
5551 use the lim_pc value.
5553 2003-05-15 Andrew Cagney <cagney@redhat.com>
5555 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5556 generic_find_dummy_frame.
5557 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5558 (deprecated_generic_find_dummy_frame): Update.
5559 (deprecated_read_register_dummy): Update.
5560 * frame.c (deprecated_generic_get_saved_register): Update.
5562 2003-05-15 Theodore A. Roth <troth@openavr.org>
5564 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5565 (avr_gdbarch_init): Set breakpoint_from_pc method.
5567 2003-05-15 Andrew Cagney <cagney@redhat.com>
5569 * regcache.c (build_regcache): Set deprecated_register_valid
5571 (deprecated_grub_regcache_for_register_valid): Delete function.
5572 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5575 2003-05-15 David Carlton <carlton@bactrian.org>
5577 Committed by Elena Zannoni <ezannoni@redhat.com>
5578 * symtab.c (lookup_symbol_aux): Delete calls to
5579 lookup_symbol_aux_minsyms.
5580 (lookup_symbol_aux_minsyms): Comment out function and
5581 prototype. Delete lookup by mangled name.
5583 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5585 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5586 correctly indicate an empty stack and ``stack_allocated'' to the
5587 indicate the number of elements initially allocated.
5588 (dwarf_expr_grow_stack): Simplify method for computing new
5589 stack size. Don't loop infinitely if ``stack_len'' is zero.
5590 (execute_stack_op): Move ``ctx->in_reg'' initialization
5591 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5592 be used in conjuction with DW_OP_piece. Revise error message
5595 2003-05-14 Theodore A. Roth <troth@openavr.org>
5597 * MAINTAINERS: Update my email address.
5598 * avr-tdep.c: Ditto.
5600 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5602 * symtab.h (enum domain_enum): Rename from namespace_enum.
5603 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5604 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5605 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5606 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5607 TYPES_NAMESPACE, METHODS_NAMESPACE.
5608 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5609 (struct symbol, struct partial_symbol): Rename field
5610 'namespace_enum namespace' to 'domain_enum domain'.
5611 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5612 Delete old define kludge for namespace.
5614 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5615 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5616 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5617 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5618 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5619 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5620 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5621 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5622 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5623 occurrences of the above.
5625 2003-05-14 Ian Lance Taylor <ian@airs.com>
5627 * Makefile.in (install-only): Use $(SHELL) when running
5630 2003-05-13 Ian Lance Taylor <ian@airs.com>
5632 * MAINTAINERS (write after approval): Add myself.
5634 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5635 second and third arguments.
5636 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5637 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5639 2003-05-13 Andrew Cagney <cagney@redhat.com>
5641 * defs.h (store_address): Delete declaration.
5642 findvar.c (store_address): Delete function.
5643 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5644 store_unsigned_integer.
5645 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5646 * v850-tdep.c (v850_push_arguments): Ditto.
5647 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5648 * sh-tdep.c (sh64_get_saved_register): Ditto.
5649 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5650 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5651 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5652 (mips_get_saved_register): Ditto.
5653 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5654 (find_func_descr, ia64_push_arguments): Ditto.
5655 * i386-tdep.c (i386_push_arguments): Ditto.
5656 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5657 * frv-tdep.c (frv_push_arguments): Ditto.
5658 * frame.c (legacy_saved_regs_prev_register): Ditto.
5659 (deprecated_generic_get_saved_register): Ditto.
5660 * findvar.c (unsigned_address_to_pointer): Ditto.
5661 * dwarf2read.c (dwarf2_const_value): Ditto.
5662 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5663 * alpha-tdep.c (alpha_push_arguments): Ditto.
5665 2003-05-12 J. Brobecker <brobecker@gnat.com>
5667 * NEWS: Mention that the hppa-hpux port has been partially
5668 multiarched (32bit ABIT only, so far).
5670 2003-05-11 Andrew Cagney <cagney@redhat.com>
5672 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5673 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5674 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5675 sim/testsuite/sim/arm/misaligned2.ms, and
5676 sim/testsuite/sim/arm/misaligned3.ms.
5677 * disasm.h (struct ui_file): Add opaque struct declaration.
5678 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5679 * frame.h (struct ui_file): Ditto.
5681 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5683 * value.h: Pretty print.
5685 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5687 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5689 2003-05-08 Andrew Cagney <cagney@redhat.com>
5691 * regcache.h (max_register_size): Delete declaration.
5692 * regcache.c (max_register_size): Delete function.
5693 (struct regcache_descr): Delete field "max_register_size".
5694 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5695 registers fit in MAX_REGISTER_SIZE.
5696 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5697 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5698 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5699 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5700 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5701 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5702 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5703 * dve3900-rom.c, hppa-tdep.c: Ditto.
5705 2003-05-08 David Carlton <carlton@math.stanford.edu>
5707 * valops.c (push_word): Fix typo.
5709 2003-05-08 Andrew Cagney <cagney@redhat.com>
5711 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5712 * gdbarch.h: Re-generate.
5713 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5714 (legacy_max_register_raw_size): Delete declaration.
5715 * regcache.c (legacy_max_register_raw_size): Delete function.
5716 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5717 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5718 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5719 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5720 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5721 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5722 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5723 * findvar.c, dwarf2cfi.c: Ditto.
5725 2003-05-08 Andrew Cagney <cagney@redhat.com>
5727 * mips-tdep.c (read_signed_register): New function, moved to here
5729 (read_signed_register_pid): Ditto.
5730 * regcache.c (read_signed_register_pid): Delete function, moved to
5732 (read_signed_register): Ditto.
5733 * regcache.h (read_signed_register): Delete declaration.
5734 (read_signed_register_pid): Delete declaration.
5736 2003-05-08 Andrew Cagney <cagney@redhat.com>
5738 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5739 * gdbarch.h: Re-generate.
5740 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5741 (legacy_max_register_virtual_size): Delete declaration.
5742 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5743 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5744 * tracepoint.c (memrange_sortmerge): Ditto.
5745 * sparc-tdep.c (sparc_print_registers): Ditto.
5746 * regcache.c (legacy_max_register_virtual_size): Delete function.
5748 2002-05-08 J. Brobecker <brobecker@gnat.com>
5750 * fork-child.c (escape_bang_in_quoted_argument): New function.
5751 (fork_inferior): Escape '!' characters in quoted arguments
5754 2003-05-08 J. Brobecker <brobecker@gnat.com>
5756 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5757 the language of the CU is not currently supported by GDB.
5759 2003-05-08 J. Brobecker <brobecker@gnat.com>
5761 * defs.h (language): Add language_minimal enum value.
5762 * c-lang.c (minimal_language_defn): New language definition.
5763 (_initialize_c_language): Add the new minimal language to the list
5764 of languages known to GDB.
5766 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5768 * frame.c (get_frame_type): Don't attempt to lazily initialize
5769 frame's unwinder for legacy frames.
5771 2003-05-07 Andrew Cagney <cagney@redhat.com>
5773 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5774 and "regcache" parameters.
5775 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5777 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5779 * dwarf2read.c (dwarf_decode_lines): Only use output of
5780 check_cu_functions() when calling record_line(). Do not update
5781 the current address.
5783 2003-05-07 Andrew Cagney <cagney@redhat.com>
5785 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5788 2003-05-07 Jim Blandy <jimb@redhat.com>
5790 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5791 'maint info symtabs' and 'maint info psymtabs'.
5792 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5793 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5794 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5795 Declarations updated.
5796 * maint.c (maintenance_list_command): Delete.
5797 (_initialize_maint_cmds): Update calls to add_cmd.
5798 * gdbcmd.h (maintenancelistlist): Delete declaration.
5799 * cli/cli-cmds.c (maintenancelistlist): Delete.
5800 (init_cmd_lists): Don't initialize it.
5801 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5803 2003-05-07 Andrew Cagney <cagney@redhat.com>
5805 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5807 (d10v_print_registers_info): Update.
5808 (d10v_dmap_register, d10v_imap_register): Delete functions.
5809 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5810 and "imap_register".
5811 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5812 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5813 * arch-utils.c (generic_remote_translate_xfer_address): Add
5814 "regcache" and "gdbarch" parameters.
5815 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5816 parameter. Change class to multi-arch.
5817 * gdbarch.h, gdbarch.c: Re-generate.
5818 * remote.c (remote_xfer_memory): Use
5819 gdbarch_remote_translate_xfer_address.
5821 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5823 * infrun.c (prev_pc): Move declaration ahead of proceed().
5824 (proceed): Refresh prev_pc value before resuming.
5825 (stop_stepping): Remove code to refresh prev_pc.
5827 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5829 * nto-tdep.c: Removed stray comment.
5831 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5833 * i386-nto-tdep.c: Fix old K&R function definitions.
5834 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5835 Also change add_show_from_set() call to add_setshow_cmd().
5836 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5838 2003-05-05 Andrew Cagney <cagney@redhat.com>
5840 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5841 (fprint_dummy_frames): New function.
5842 (maintenance_print_dummy_frames): New function.
5843 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5844 * frame.c (fprint_frame_id): Make global.
5845 * frame.h (fprint_frame_id): Declare.
5846 * Makefile.in (dummy-frame.o): Update dependencies.
5848 2003-05-05 Andrew Cagney <cagney@redhat.com>
5850 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5851 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5852 SIZEOF_CALL_DUMMY_WORDS.
5853 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5854 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5855 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5856 CALL_DUMMY_BREAKPOINT_OFFSET.
5857 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5858 CALL_DUMMY_START_OFFSET.
5859 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5860 * gdbarch.h, gdbarch.c: Re-generate.
5861 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5862 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5863 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5864 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5865 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5866 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5867 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5868 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5869 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5870 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5871 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5872 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5873 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5874 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5875 * config/sparc/tm-sparc.h: Update.
5877 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5879 * configure.tgt: Add i[3456]86-*-nto*.
5880 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5881 * nto-tdep.c: New file. Neutrino target support routines.
5882 * nto-tdep.h: New file. Neutrino target header.
5883 * config/tm-qnxnto.h: New file.
5884 * config/i386/i386nto.mt: New file.
5885 * config/i386/tm-i386nto.h: New file.
5887 2003-05-04 Andrew Cagney <cagney@redhat.com>
5889 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5890 (load_infrun_state): Ditto.
5891 (struct thread_info): Drop "prev_func_name" field.
5892 * thread.c (load_infrun_state): Update.
5893 (save_infrun_state): Update.
5894 * infrun.c (prev_func_name): Delete variable.
5895 (init_wait_for_inferior): Do not clear prev_func_name.
5896 (stop_stepping, keep_going, context_switch): Do not swap
5898 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5899 instead of PC_IN_SIGTRAMP.
5901 2003-05-04 Andrew Cagney <cagney@redhat.com>
5903 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5904 REGISTER_BYTE with register_offset_hack.
5905 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5906 that REGISTER_BYTE is consistent with the regcache.
5907 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5908 * gdbarch.h, gdbarch.c: Regenerate.
5910 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5912 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5913 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5915 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5917 2003-05-03 J. Brobecker <brobecker@gnat.com>
5919 From Thierry Schneider <tpschneider1@yahoo.com>
5920 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5921 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5922 (mi-cmd-symbol.o): Add rule.
5924 2003-05-03 Andrew Cagney <cagney@redhat.com>
5926 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5927 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5928 * gdbarch.h, gdbarch.c: Re-generate.
5929 * d10v-tdep.c (d10v_push_dummy_code): New function.
5930 (d10v_gdbarch_init): Set push_dummy_code.
5931 * infcall.c (legacy_push_dummy_code): New function.
5932 (generic_push_dummy_code): New function.
5933 (push_dummy_code): New function.
5934 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5935 instead of dummy_addr, to push_dummy_call. Move call to
5936 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5938 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5940 2003-05-03 Andrew Cagney <cagney@redhat.com>
5942 * disasm.h (print_insn): Declare.
5943 * disasm.c (init_gdb_disassemble_info): New function.
5944 (gdb_disassembly): Call init_gdb_disassemble_info.
5945 (gdb_print_insn): New function.
5946 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5947 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5948 * mcore-tdep.c: Include "disasm.h"
5949 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5950 * d10v-tdep.c: Include "disasm.h".
5951 (display_trace): Call gdb_print_insn, instead of print_insn.
5952 (print_insn): Delete function.
5953 * printcmd.c: Include "disasm.h".
5954 (print_insn): Delete function.
5955 (print_formatted): Call gdb_print_insn, instead of print_insn.
5956 * Makefile.in (printcmd.o): Update dependencies.
5957 (mcore-tdep.o, d10v-tdep.o): Ditto.
5959 2003-05-02 Andrew Cagney <cagney@redhat.com>
5961 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5962 PC_REGNUM, re-indent.
5963 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5964 PC_REGNUM isn't set.
5966 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5967 * gdbarch.h, gdbarch.c: Re-generate.
5968 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5969 register_virtual_size, pc_regnum, or register_bytes.
5970 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5971 (d10v_register_type): Use D10V_PC_REGNUM.
5972 (d10v_print_registers_info, d10v_read_pc): Ditto.
5973 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5974 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5976 2003-05-02 David Carlton <carlton@bactrian.org>
5978 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5979 the name with mstrsave.
5981 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5983 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5984 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5985 (host_charset_name, target_charset_name): New vars for use by
5987 (host_charset_enum, target_charset_enum): New enums for set/show
5989 (set_charset_sfunc, set_host_charset_sfunc,
5990 set_target_charset_sfunc): New functions.
5991 (set_host_charset, set_target_charset): Make static.
5992 (list_charsets, set_host_charset_command,
5993 set_target_charset_command): Delete functions.
5994 (show_charset_command): Rewrite as....
5995 (show_charset): Hook this up with the set/show command mechanism.
5996 (_initialize_charset): Change names of charsets to match the
5997 set/show enums. Use host_charset_name and target_charset_name.
5998 Use set/show mechanism for charset, host-charset, target-charset
5999 commands. Do not make 'show host-charset' and 'show
6000 target-charset' be aliases of 'show charset'.
6002 * charset.h (set_host_charset, set_target_charset): Don't export,
6003 they are not used outside the file.
6005 2003-05-01 Andrew Cagney <cagney@redhat.com>
6007 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6008 (gdb_disassembly): Make "di" non static, always initialize and
6009 cleanup. Always use dis_asm_read_memory.
6010 (gdb_dis_asm_read_memory): Delete function.
6012 2003-05-01 Andrew Cagney <cagney@redhat.com>
6014 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6015 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6017 2003-04-30 Andrew Cagney <cagney@redhat.com>
6019 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6020 "tm_print_insn_info".
6021 (TARGET_PRINT_INSN_INFO): Delete macro.
6022 (dis_asm_read_memory): Delete function declaration.
6023 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6024 (tm_print_insn_info): Delete variable definition.
6025 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6026 * gdbarch.h, gdbarch.c: Re-generate.
6027 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6028 "deprecated_tm_print_insn_info".
6029 * mcore-tdep.c (mcore_dump_insn): Ditto.
6030 * mips-tdep.c (mips_gdbarch_init): Ditto.
6031 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6032 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6033 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6034 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6035 instead of TARGET_PRINT_INSN_INFO, add comment.
6036 * s390-tdep.c (s390_get_frame_info): Instead of
6037 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6038 (s390_check_function_end, s390_is_sigreturn): Ditto.
6039 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6040 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6041 * disasm.c: Include "gdbcore.h".
6042 (_initialize_disasm): New function, initialize
6043 "deprecated_tm_print_insn_info".
6044 (deprecated_tm_print_insn_info): New variable.
6045 (dis_asm_read_memory): Moved from "corefile.c", made static.
6046 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6047 * Makefile.in (disasm.o): Update dependencies.
6049 2003-04-30 Andrew Cagney <cagney@redhat.com>
6051 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6053 2003-04-29 Adam Fedor <fedor@gnu.org>
6055 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6056 * infcall.c (find_function_addr): Make non-static.
6057 * infcall.h (find_function_addr): Declare.
6058 * Makefile.in (eval.o): Update dependencies.
6060 2003-04-28 Adam Fedor <fedor@gnu.org>
6062 * symtab.c (symbol_find_demangled_name): Check for and demangle
6064 (symbol_init_demangled_name): Init for language_objc as well.
6066 2003-04-28 Andrew Cagney <cagney@redhat.com>
6068 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6069 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6070 * gdbarch.h, gdbarch.c: Re-generate.
6071 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6072 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6073 * inferior.h (deprecated_read_fp): Rename read_fp.
6074 (generic_target_read_fp): Delete declaration.
6075 * regcache.c (generic_target_read_fp): Delete function.
6076 (deprecated_read_fp): Replace read_fp, use
6077 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6078 * d10v-tdep.c (d10v_read_fp): Delete function.
6079 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6081 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6082 deprecated_target_read_fp to generic_target_read_fp.
6083 * sh-tdep.c (sh_gdbarch_init): Ditto.
6084 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6086 * frv-tdep.c (frv_gdbarch_init): Ditto.
6088 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6089 deprecated_fp_regnum.
6090 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6091 * vax-tdep.c (vax_gdbarch_init): Ditto.
6092 * v850-tdep.c (v850_gdbarch_init): Ditto.
6093 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6094 * sh-tdep.c (sh_gdbarch_init): Ditto.
6095 * s390-tdep.c (s390_gdbarch_init): Ditto.
6096 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6097 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6098 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6099 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6100 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6101 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6102 * i386-tdep.c (i386_gdbarch_init): Ditto.
6103 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6104 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6105 * frv-tdep.c (frv_gdbarch_init): Ditto.
6106 * cris-tdep.c (cris_gdbarch_init): Ditto.
6107 * avr-tdep.c (avr_gdbarch_init): Ditto.
6108 * arm-tdep.c (arm_gdbarch_init): Ditto.
6109 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6111 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6112 * v850-tdep.c (v850_gdbarch_init): Ditto.
6113 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6114 * sh-tdep.c (sh_gdbarch_init): Ditto.
6115 * s390-tdep.c (s390_gdbarch_init): Ditto.
6116 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6117 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6118 * mips-tdep.c (mips_gdbarch_init): Ditto.
6119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6120 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6121 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6122 * frv-tdep.c (frv_gdbarch_init): Ditto.
6123 * avr-tdep.c (avr_gdbarch_init): Ditto.
6124 * arm-tdep.c (arm_gdbarch_init): Ditto.
6126 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6127 DEPRECATED_FP_REGNUM.
6128 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6129 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6130 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6131 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6132 (sparc32_register_virtual_type): Ditto.
6133 * sh-tdep.c (sh64_frame_chain): Ditto.
6134 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6135 (sh_nofp_frame_init_saved_regs): Ditto.
6136 (sh64_nofp_frame_init_saved_regs): Ditto.
6137 (sh_fp_frame_init_saved_regs): Ditto.
6138 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6139 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6140 * procfs.c (procfs_fetch_registers): Ditto.
6141 (procfs_store_registers): Ditto.
6142 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6143 (store_inferior_registers, fetch_core_registers): Ditto.
6144 (fetch_kcore_registers, clear_regs): Ditto.
6145 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6146 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6147 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6148 * nlm/i386.c (do_status): Ditto.
6149 * mipsv4-nat.c (supply_gregset): Ditto.
6150 * mips-tdep.c: Ditto for comments.
6151 * mips-nat.c (fetch_inferior_registers): Ditto.
6152 (store_inferior_registers, fetch_core_registers): Ditto.
6153 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6154 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6155 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6156 (i386_do_pop_frame, i386_register_type): Ditto.
6157 * hppa-tdep.c (hppa_frame_chain): Ditto.
6158 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6159 (hppa_pop_frame, hppa_read_fp): Ditto.
6160 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6161 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6162 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6163 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6164 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6165 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6166 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6167 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6168 * blockframe.c: Ditto for comments.
6169 * arch-utils.h: Ditto for comments.
6170 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6171 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6172 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6173 * alpha-tdep.h: Ditto for comments.
6174 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6175 (alpha_cannot_store_register): Ditto.
6176 (alpha_push_dummy_frame): Ditto.
6177 * alpha-nat.c (supply_gregset): Ditto.
6179 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6180 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6181 * config/sparc/tm-sparc.h: Update comment.
6183 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6184 deprecated_read_fp instead of TARGET_READ_FP.
6185 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6186 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6187 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6188 deprecated_read_fp instead of read_fp.
6189 * s390-tdep.c (s390_push_arguments): Ditto.
6190 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6191 * frame.h: Ditto in comments.
6192 * frame.c (legacy_get_prev_frame): Ditto.
6193 * dummy-frame.c (dummy_frame_this_id): Ditto.
6194 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6196 2003-04-28 Andrew Cagney <cagney@redhat.com>
6198 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6199 * gdbarch.h, gdbarch.c: Re-generate.
6200 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6201 * vax-tdep.c (_initialize_vax_tdep): Update.
6202 * v850-tdep.c (_initialize_v850_tdep): Update.
6203 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6204 * s390-tdep.c (_initialize_s390_tdep): Update.
6205 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6206 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6207 * mips-tdep.c (_initialize_mips_tdep): Update.
6208 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6209 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6210 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6211 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6212 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6213 * frv-tdep.c (_initialize_frv_tdep): Update.
6214 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6215 (_initialize_cris_tdep): Update.
6216 * arch-utils.c (legacy_print_insn): Update.
6217 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6219 2003-04-26 Adam Fedor <fedor@gnu.org>
6221 * linespec.c (decode_objc): New function to decode ObjC calls
6222 (decode_line_1): Check for ObjC calls (using decode_objc)
6223 * Makefile (linespec.o): Update dependencies.
6225 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6227 * breakpoint.h (struct breakpoint_ops): New.
6228 (struct breakpoint): Add ops member.
6230 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6231 (mention): Use new breakpoint ops member.
6232 (set_raw_breakpoint): Initialize ops field to NULL.
6233 (print_exception_catchpoint, print_one_exception_catchpoint)
6234 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6235 (gnu_v3_exception_catchpoint_ops): New.
6236 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6238 2003-04-25 Adam Fedor <fedor@gnu.org>
6240 * Makefile.in (COMMON_OBS): Add objc-lang.o
6242 2003-04-25 Andrew Cagney <cagney@redhat.com>
6244 * d10v-tdep.c (print_insn): Delete function.
6245 (display_trace): Use TARGET_PRINT_INSN.
6246 (_initialize_d10v_tdep): Do not set tm_print_insn.
6247 (d10v_gdbarch_init): Set print_insn.
6249 2003-04-25 Andrew Cagney <cagney@redhat.com>
6251 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6252 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6253 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6254 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6255 (nr_dmap_regs, a0_regnum): ... new functions.
6256 (d10v_print_registers_info): Use a0_regnum, use register_size.
6257 (d10v_register_byte): Delete function.
6258 (d10v_register_raw_size): Delete function.
6259 (d10v_register_type): Use a0_regnum.
6260 (d10v_print_registers_info): Use a0_regnum.
6261 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6262 (d10v_gdbarch_init): Do not set register_byte or
6263 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6264 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6266 (trace_command): Use XCALLOC.
6267 (print_insn): Delete reference to tm_print_insn.
6268 (saved_regs_unwinder): Use store_unsigned_integer instead of
6270 * frame.h (FRAME_OBSTACK_CALLOC): Define
6272 2003-04-25 David Carlton <carlton@bactrian.org>
6274 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6276 2003-04-24 Adam Fedor <fedor@gnu.org>
6278 * objc-lang.c: Include "valprint.h"
6279 * Makefile.in (objc-lang.o): Update dependencies.
6281 2003-04-24 Adam Fedor <fedor@gnu.org>
6283 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6284 architecture dependant compilation and mark as unimplemented
6285 (until they get put in the gdbarch vector).
6287 2003-04-23 David Carlton <carlton@bactrian.org>
6289 * cp-support.c (cp_find_first_component): Accept 'operator' in
6292 2003-04-23 Andrew Cagney <cagney@redhat.com>
6294 * infcall.c (call_function_by_hand): Eliminate redundant
6295 indentation. Move "saved_async" and "old_cleanups" to where they
6298 2003-04-23 Andrew Cagney <cagney@redhat.com>
6300 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6301 and "buffer". Move the "name" code to where it is needed.
6303 2003-04-23 Andrew Cagney <cagney@redhat.com>
6305 * infcall.c (call_function_by_hand): Move variables "start_sp",
6306 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6307 code to ON_STACK switch branch.
6309 2003-04-23 Andrew Cagney <cagney@redhat.com>
6311 * infcall.c (call_function_by_hand): Make declaration of "i",
6312 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6315 2003-04-23 Andrew Cagney <cagney@redhat.com>
6317 * infcall.c (call_function_by_hand): Delete variable
6318 "n_method_args". Localize "param_type"'s declaration to the loop
6319 that it is used. Reinstate code assigning to said variable -
6320 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6321 Rationalize code using "param_type".
6323 2003-04-22 Andrew Cagney <cagney@redhat.com>
6325 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6326 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6327 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6328 to DEPRECATED_PUSH_RETURN_ADDRESS.
6330 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6332 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6333 on the DWARF2 register number prior to fetching a register.
6335 2003-04-22 J. Brobecker <brobecker@gnat.com>
6337 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6338 Update all the tests using SOFT_FLOAT considering the fact that
6339 this macro was always set to 0.
6340 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6341 considering the fact that this macro was always set to 0.
6342 * hppa-tdep.h (hppa_store_return_value): Likewise.
6343 (hppa_extract_return_value): Likewise.
6345 2003-04-22 J. Brobecker <brobecker@gnat.com>
6347 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6348 the hppa-pro target only.
6350 2003-04-21 J. Brobecker <brobecker@gnat.com>
6352 Ongoing multi-arch conversion effort for HP/UX:
6353 * config/pa/tm-hppa.h: Move all macro that are no longer
6354 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6355 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6357 2003-04-21 J. Brobecker <brobecker@gnat.com>
6359 * config/pa/tm-hppa.h: Obsolete a section that was only used
6362 2003-04-21 J. Brobecker <brobecker@gnat.com>
6364 Ongoing multi-arch conversion for HP/UX.
6365 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6366 if already defined (allows hppa64 to stay non-multiarched for now).
6367 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6369 2003-04-21 Andrew Cagney <cagney@redhat.com>
6371 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6373 2003-04-21 Andrew Cagney <cagney@redhat.com>
6375 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6376 "i386_num_mmx_regs".
6378 2003-04-21 Andrew Cagney <cagney@redhat.com>
6380 * infcall.c: New file.
6381 * infcall.h: New file.
6382 * valarith.c: Include "infcall.h".
6383 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6384 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6385 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6386 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6387 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6388 (SFILES): Add "infcall.c"
6389 (COMMON_OBS): Add "infcall.o".
6390 (infcall.o): Specify dependencies.
6391 * value.h (call_function_by_hand): Delete declaration.
6392 * inferior.h (run_stack_dummy): Delete declaration.
6393 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6394 (run_stack_dummy): Move to "infcall.c", merged into
6395 call_function_by_hand.
6396 * valops.c (call_function_by_hand): Moved to "infcall.c".
6397 (find_function_addr, value_arg_coerce): Ditto.
6398 (unwindonsignal_p, coerce_float_to_double): Ditto.
6399 (_initialize_valops): Move "set/show coerce-float-to-double", and
6400 "set/show unwindonsignal" commands to "infcall.c".
6401 * v850-tdep.c, target.h: Update comments.
6402 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6403 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6404 (sh64_init_extra_frame_info): Update comments.
6405 * mn10300-tdep.c: Update comments.
6406 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6407 * config/sparc/tm-sparc.h: Update comments.
6408 * breakpoint.h: Update comments.
6409 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6410 * arm-tdep.c: Update comment.
6412 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6414 * i386-tdep.c (i386_num_register_names): New variable.
6415 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6416 (MM0_REGNUM): Remove redundant parentheses in define.
6417 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6418 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6419 i386_mxcsr_regnum_p): Remove redundant parentheses.
6420 (i386_register_name): Use i386_num_register_names.
6422 * i386-tdep.c (i386_extract_return_value,
6423 i386_store_return_value): Correct check for availability of
6424 floating-point registers.
6426 * i386-tdep.c (i386_frame_num_args): Remove function.
6427 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6429 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6430 mmx_regnum_to_fp_regnum. Adjust all callers.
6432 * i386-tdep.c (i386_get_longjmp_target): Use
6433 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6434 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6437 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6439 * core-regset.c: Update comments to reflect reality. Re-order
6441 (fetch_core_registers): Use switch instead of if. Remove
6442 redundant prototype.
6444 2003-04-18 Jim Blandy <jimb@redhat.com>
6446 * s390-tdep.c (s390_frame_align): New function.
6447 (s390_gdbarch_init): Register it with the gdbarch object.
6449 2003-04-17 Richard Henderson <rth@redhat.com>
6451 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6453 2003-04-17 Michael Snyder <msnyder@redhat.com>
6454 Karen Bennet <bennet@redhat.com>
6456 Committed by Elena Zannoni <ezannoni@redhat.com>
6457 * gdb_gcore.sh: New script to create a core dump of a process.
6459 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6461 * values.c (value_being_returned): Don't fetch the return
6462 value if the return type is void.
6464 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6466 * thread-db.c: Reindented.
6468 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6470 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6471 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6498 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6500 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6501 the size of ``long double'' to 16, instead of 8.
6503 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6505 * i386-linux-nat.c: Add some whitespace to make things more
6507 (fetch_register, store_register, fetch_inferior_registers,
6508 store_inferior_registers): Get rid of assignment in if-statement.
6509 (store_register): Fix typo in error message.
6511 2003-04-16 Andrew Cagney <cagney@redhat.com>
6513 * utils.c (xmmalloc): Always allocate something, matches
6514 libiberty/xmalloc's semantics.
6515 (xmrealloc, xmcalloc): Ditto.
6517 2003-04-16 Andrew Cagney <cagney@redhat.com>
6519 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6521 (get_frame_type): Initialize unwind and type when needed.
6522 (get_frame_id, frame_register_unwind): Ditto.
6524 2003-04-16 Andrew Cagney <cagney@redhat.com>
6526 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6528 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6529 * sparcl-stub.c: Obsolete file.
6530 * config/sparc/tm-sparclet.h: Obsolete file.
6531 * sparclet-stub.c: Obsolete file.
6532 * sparclet-rom.c: Obsolete file.
6533 * sparcl-tdep.c: Obsolete file.
6534 * config/sparc/tm-sparclite.h: Obsolete file.
6535 * config/sparc/sparclite.mt: Obsolete file.
6536 * config/sparc/sparclet.mt: Obsolete file.
6537 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6538 sparc86x-*-* obsolete.
6540 2003-04-15 David Carlton <carlton@math.stanford.edu>
6542 * Makefile.in (SFILES): Add cp-namespace.c.
6543 (COMMON_OBS): Add cp-namespace.o.
6544 (block.o): Depend on gdb_obstack_h and cp_support_h.
6545 (buildsym.o): Depend on cp_support_h.
6546 (cp-namespace.o): New.
6547 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6548 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6549 (dwarf2read.o): Depend on cp_support_h.
6550 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6551 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6552 processing_current_namespace.
6553 (read_namespace): Update processing_current_namespace; check for
6554 anonymous namespaces.
6555 (dwarf2_name): New function.
6556 (dwarf2_extension): Ditto.
6557 * cp-support.h: Update copyright, contributors.
6558 Add inclusion guards.
6559 Add opaque declaration for structs obstack, block, symbol.
6560 (struct using_direct): New struct.
6561 Add declarations for cp_find_first_component,
6562 cp_entire_prefix_len, processing_has_namespace_info,
6563 processing_current_namespace, cp_is_anonymous,
6564 cp_add_using_directive, cp_initialize_namespace,
6565 cp_finalize_namespace, cp_set_block_scope,
6566 cp_scan_for_anonymous_namespaces.
6567 * cp-namespace.c: New file.
6568 * cp-support.c: Update copyright.
6569 Include ctype.h, gdb_assert.h, gdbcmd.h.
6570 New variable maint_cplus_cmd_list.
6571 (cp_find_first_component): New function.
6572 (cp_entire_prefix_len, maint_cplus_command)
6573 (first_component_command, _initialize_cp_support): Ditto.
6574 * buildsym.c: Include cp-support.h.
6575 New variable using_list.
6576 (add_symbol_to_list): Check for anonymous namespaces.
6577 (finish_block): Set block's scope.
6578 (start_symtab): Initialize C++ namespace support.
6579 (end_symtab): Finalize C++ namespace support.
6580 * block.h: Add opaque declarations for structs
6581 block_namespace_info, using_direct, and obstack.
6582 Add declarations for block_set_scope and block_set_using.
6583 (struct block): Add 'language_specific' member.
6584 (BLOCK_NAMESPACE): New macro.
6585 * block.c: Include gdb_obstack.h and cp-support.h.
6586 (struct block_namespace_info): New struct.
6587 (block_set_scope): New function.
6588 (block_set_using, block_initialize_namespace): Ditto.
6590 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6592 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6593 (locate_base): Return early if there aren't any link map offsets.
6594 (svr4_solib_create_inferior_hook): Warn if shared library support
6597 2003-04-14 David Carlton <carlton@math.stanford.edu>
6599 * symtab.c (symbol_set_names): Add prefix when storing Java names
6600 in hash table. Fix for PR java/1039.
6602 2003-04-14 David Carlton <carlton@math.stanford.edu>
6604 * symtab.c (symbol_set_names): Rename 'name' arg to
6605 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6606 * symtab.h: Change 'name' argument in declaration of
6607 symbol_set_names to 'linkage_name'.
6608 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6610 2003-04-14 Andrew Cagney <cagney@redhat.com>
6612 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6613 return the fully sign-extended register value.
6614 (get_frame_pointer): Ditto.
6615 (mips_pop_frame): Initialize "proc_desc" after checking for a
6618 2003-04-14 Andrew Cagney <cagney@redhat.com>
6620 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6621 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6622 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6623 (mips_push_register): Delete function.
6624 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6627 2003-04-14 Jim Blandy <jimb@redhat.com>
6629 * symmisc.c: #include "gdb_regex.h".
6630 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6632 * maint.c (maintenance_list_command): New function.
6633 (_initialize_maint_cmds): Register the above as commands.
6634 * symtab.h (maintenance_list_symtabs,
6635 maintenance_list_psymtabs): New declarations.
6636 * cli/cli-cmds.c (maintenancelistlist): New variable.
6637 (init_cmd_lists): Initialize it.
6638 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6639 * gdbcmd.h (maintenancelistlist): New declaration.
6640 * Makefile.in (symmisc.o): Update dependencies.
6642 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6644 * s390-nat.c: Include asm/types.h for addr_t.
6646 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6648 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6649 actually incoming type.
6651 2003-04-13 Andrew Cagney <cagney@redhat.com>
6653 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6654 get_next_frame and get_frame_saved_regs.
6656 2003-04-13 Andrew Cagney <cagney@redhat.com>
6658 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6659 of gdbarch_num_regs.
6661 2003-04-13 Andrew Cagney <cagney@redhat.com>
6663 * frame.h: Mention what replaced what in "struct frame_info".
6664 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6665 deprecated_update_frame_base_hack and
6666 deprecated_update_frame_pc_hack.
6667 * hppa-tdep.c: Ditto.
6669 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6671 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6672 to read_reg and update its comment. Remove regnum member.
6673 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6674 Don't call read_reg when setting in_reg. Call read_reg to get
6675 the frame base if it's in a register. Return the register number
6676 on the stack instead of in the context. Remove extra arguments
6678 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6679 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6680 the register number on the expression stack.
6681 (needs_frame_read_reg): Remove extra arguments.
6683 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6685 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6687 (execute_stack_op): All callers updated.
6688 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6689 * dwarf2loc.c (find_location_expression): New function.
6690 (dwarf_expr_frame_base): Call it.
6691 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6692 (dwarf2_tracepoint_var_ref): New function, broken out from
6693 locexpr_tracepoint_var_ref.
6694 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6696 (loclist_read_variable, loclist_read_needs_frame): New functions.
6697 (loclist_describe_location, loclist_tracepoint_var_ref): New
6699 (dwarf2_loclist_funcs): New struct location_funcs.
6700 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6701 (struct dwarf2_locexpr_baton): Add comments.
6702 (dwarf2_loclist_funcs): New extern.
6703 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6704 base_address and base_known.
6705 (dwarf_loc_buffer): New variable.
6706 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6707 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6708 (dwarf2_has_info): Initialize dwarf_loc_offset.
6709 (dwarf2_build_psymtabs): Read in .debug_loc.
6710 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6712 (psymtab_to_symtab_1): Likewise. Move base address calculation
6714 (dwarf2_get_pc_bounds): ... here. Use the base address from
6716 (dwarf2_symbol_mark_computed): Handle location lists.
6718 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6720 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6721 if the linkage name demangled successfully.
6723 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6725 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6726 disassmbly_flavour): Removed.
6728 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6730 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6732 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6734 2003-04-12 Andrew Cagney <cagney@redhat.com>
6736 * frame.h (struct frame_info): Move definition from here ...
6737 * frame.c (struct frame_info): ... to here.
6739 2003-04-12 Andrew Cagney <cagney@redhat.com>
6741 * gdbthread.h (save_infrun_state): Delete parameter
6743 (struct thread_info): Delete field "prev_func_start".
6744 (load_infrun_state): Ditto.
6745 * thread.c (load_infrun_state, save_infrun_state): Update.
6746 * infrun.c (prev_func_start): Delete variable.
6747 (context_switch, init_wait_for_inferior): Update.
6748 (stop_stepping, keep_going): Update.
6750 2003-04-12 Andrew Cagney <cagney@redhat.com>
6752 * gdbarch.sh: Add missing opaque declarations.
6753 * gdbarch.h: Regnerate.
6754 * symtab.h: Add missing opaque declarations.
6755 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6756 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6757 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6758 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6759 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6760 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6761 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6762 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6763 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6764 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6765 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6766 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6767 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6769 2003-04-11 Andrew Cagney <cagney@redhat.com>
6771 * frame.c (get_frame_id): Return this frame's "id".
6772 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6774 (legacy_saved_regs_this_id): Replace function body with
6776 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6777 FRAME_OBSTACK_ZALLOC.
6778 (create_new_frame): Mark the frame ID as valid.
6780 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6782 * Makefile.in (libbfd_h): Added missing setting.
6783 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6784 according to the selected ABI.
6786 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6788 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6790 2003-04-11 Andrew Cagney <cagney@redhat.com>
6792 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6793 SAVED_PC_AFTER_CALL.
6794 * gdbarch.h, gdbarch.c: Regenerate.
6795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6796 * x86-64-tdep.c (x86_64_init_abi): Update.
6797 * vax-tdep.c (vax_gdbarch_init): Update.
6798 * v850-tdep.c (v850_gdbarch_init): Update.
6799 * sparc-tdep.c (sparc_gdbarch_init): Update.
6800 * sh-tdep.c (sh_gdbarch_init): Update.
6801 * s390-tdep.c (s390_gdbarch_init): Update.
6802 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6803 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6804 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6805 * mips-tdep.c (mips_gdbarch_init): Update.
6806 * mcore-tdep.c (mcore_gdbarch_init): Update.
6807 * m68k-tdep.c (m68k_gdbarch_init): Update.
6808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6809 * ia64-tdep.c (ia64_gdbarch_init): Update.
6810 (ia64_saved_pc_after_call): Update declaration.
6811 * i386ly-tdep.c (i386lynx_init_abi): Update.
6812 * i386-tdep.c (i386_gdbarch_init): Update.
6813 * hppa-tdep.c (hppa_gdbarch_init): Update.
6814 * h8300-tdep.c (h8300_gdbarch_init): Update.
6815 * frv-tdep.c (frv_gdbarch_init): Update.
6816 * cris-tdep.c (cris_gdbarch_init): Update.
6817 * avr-tdep.c (avr_gdbarch_init): Update.
6818 * arm-tdep.c (arm_gdbarch_init): Update.
6819 * alpha-tdep.c (alpha_gdbarch_init): Update.
6820 * ns32knbsd-nat.c (frame_num_args): Update.
6821 * ns32k-tdep.c (umax_frame_num_args): Update.
6822 * mips-tdep.c (mips_init_frame_pc_first): Update.
6823 * infrun.c (step_over_function): Update.
6824 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6825 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6826 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6827 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6828 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6829 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6830 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6831 * arch-utils.c (init_frame_pc_default): Update.
6832 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6833 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6836 2003-04-11 Andrew Cagney <cagney@redhat.com>
6838 * i387-tdep.c: Update copyright.
6839 (i387_to_double): Delete function.
6840 (double_to_i387): Delete function.
6842 2003-04-10 Andrew Cagney <cagney@redhat.com>
6844 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6845 frame's function's address. Simplify.
6846 (d10v_frame_unwind_cache): Check that the frame's function is
6849 2003-04-10 Jim Blandy <jimb@redhat.com>
6851 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6852 call to set_gdbarch_deprecated_push_arguments.
6854 2003-04-10 Andrew Cagney <cagney@redhat.com>
6856 * frame.c (fprint_frame_id): New function.
6857 (fprint_frame_type, fprint_frame): New function.
6858 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6859 (create_sentinel_frame, get_frame_id): Ditto.
6860 (frame_id_p, frame_id_eq): Ditto.
6861 (frame_id_inner, create_new_frame): Ditto.
6862 (legacy_get_prev_frame, get_prev_frame): Ditto.
6863 (deprecated_update_frame_pc_hack): Ditto.
6864 (frame_register_unwind): Ditto.
6865 (deprecated_update_frame_base_hack): Ditto.
6867 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6869 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6870 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6871 frame_chain function.
6872 * Makefile.in: Add dependencies due to above change.
6874 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6876 * blockframe.c (legacy_frame_chain_valid): Move call to
6877 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6880 2003-04-09 Andrew Cagney <cagney@redhat.com>
6882 * frame.h (struct frame_id): Replace "pc" and "base" with
6883 "stack_addr" and "code_addr". Update comments.
6884 (frame_id_build): Update parameter names and comment.
6885 (struct frame_info): Replace "id_p" and "id" with "this_id".
6886 * dummy-frame.c (dummy_frame_this_id): Update.
6887 * breakpoint.c (print_one_breakpoint): Update.
6888 * frame.c (get_frame_id): Update.
6889 (get_frame_base, frame_id_build): Update.
6890 (create_sentinel_frame, legacy_get_prev_frame): Update.
6891 (deprecated_update_frame_base_hack): Update.
6892 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6893 (frame_id_inner): Ditto.
6895 2003-04-09 Andrew Cagney <cagney@redhat.com>
6897 * defs.h (gdb_print_host_address): Make "addr" parameter a
6899 * utils.c (gdb_print_host_address): Update.
6901 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6903 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6904 register number for R0 is 0.
6906 2003-04-09 J. Brobecker <brobecker@gnat.com>
6908 * frame.h (struct gdbarch): Add opaque structure definition
6909 to avoid a compilation warning on LynxOS 4.0.
6911 2003-04-09 Andrew Cagney <cagney@redhat.com>
6913 * frame.h (struct frame_info): Delete field "pc". Replace
6914 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6916 * frame.c (frame_pc_unwind): Update.
6917 (create_sentinel_frame): Do not set "pc".
6918 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6919 (get_frame_pc): Call frame_pc_unwind.
6920 (deprecated_update_frame_pc_hack): Update.
6921 (create_new_frame): Use "pc" not "->pc".
6923 2003-04-09 Andrew Cagney <cagney@redhat.com>
6925 * frame.c (get_frame_id): Eliminate code updating "frame".
6926 (legacy_get_prev_frame): Ditto.
6927 (get_frame_base): Return id.base directly.
6928 (deprecated_update_frame_base_hack): Update "id.base".
6929 * frame.h (struct frame_info): Delete field "frame".
6931 2003-04-09 Andrew Cagney <cagney@redhat.com>
6933 * NEWS: Mention that the "Sequent family" is obsolete.
6934 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6935 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6936 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6937 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6938 * config/i386/tm-ptx4.h: Obsolete file.
6939 * config/i386/tm-ptx.h: Obsolete file.
6940 * symm-tdep.c: Obsolete file.
6941 * config/i386/symmetry.mt: Obsolete file.
6942 * config/i386/tm-symmetry.h: Obsolete file.
6943 * symm-nat.c: Obsolete file.
6944 * config/i386/nm-symmetry.h: Obsolete file.
6945 * config/i386/xm-symmetry.h: Obsolete file.
6946 * config/i386/symmetry.mh: Obsolete file.
6947 * config/i386/nm-ptx4.h: Obsolete file.
6948 * config/i386/ptx4.mh: Obsolete file.
6949 * config/i386/ptx.mt: Obsolete file.
6950 * config/i386/ptx.mh: Obsolete file.
6951 * config/i386/xm-ptx4.h: Obsolete file.
6952 * config/i386/xm-ptx.h: Obsolete file.
6954 2003-04-09 Andrew Cagney <cagney@redhat.com>
6956 Obsolete mips*-*-mach3*.
6957 * NEWS: Mention that mips*-*-mach3* is obsolete.
6958 * m3-nat.c: Obsolete file.
6959 * config/nm-m3.h: Obsolete file.
6960 * config/mips/tm-mipsm3.h: Obsolete file.
6961 * config/mips/mipsm3.mt: Obsolete file.
6962 * config/mips/mipsm3.mh: Obsolete file.
6963 * config/mips/xm-mipsm3.h: Obsolete file.
6964 * mipsm3-nat.c: Obsolete file.
6965 * configure.host: Obsolete mips-dec-mach3*.
6966 * configure.tgt: Obsolete mips*-*-mach3*.
6968 2003-04-09 Andrew Cagney <cagney@redhat.com>
6970 * doublest.h: Update copyright.
6971 (deprecated_store_floating, deprecated_extract_floating): Rename
6972 store_floating and extract_floating. Update comments.
6973 * doublest.c: Update copyright.
6974 (extract_floating_by_length): Replace extract_floating.
6975 (store_floating_by_length): Replace store_floating.
6976 (deprecated_extract_floating): New function.
6977 (deprecated_store_floating): New function.
6978 (extract_typed_floating): Call extract_floating_by_length.
6979 (store_typed_floating): Call store_floating_by_length.
6980 * x86-64-tdep.c (x86_64_store_return_value): Update.
6981 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6982 (sh64_extract_return_value): Update.
6983 (sh_sh4_register_convert_to_virtual): Update.
6984 (sh_sh64_register_convert_to_virtual): Update.
6985 (sh_sh4_register_convert_to_raw): Update.
6986 (sh_sh64_register_convert_to_raw): Update.
6987 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6988 (rs6000_register_convert_to_raw): Update.
6989 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6990 (ia64_register_convert_to_raw): Update.
6991 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6992 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6993 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6994 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6995 (alpha_register_convert_to_raw): Update.
6997 2003-04-08 Andrew Cagney <cagney@redhat.com>
6999 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7000 * gdbarch.h, gdbarch.c: Re-generate.
7001 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7002 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7003 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7004 conditionally, use frame_pc_unwind as an alternative. Add
7006 * arch-utils.c (init_frame_pc_default): Only call
7007 SAVED_PC_AFTER_CALL when available.
7009 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7011 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7012 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7013 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7014 (start_remote): Ditto.
7015 (handle_inferior_event): Ditto.
7016 (save_inferior_status): Ditto.
7017 (restore_inferior_status): Ditto.
7018 * infcmd.c (attach_command): Ditto.
7019 * fork-child.c (startup_inferior): Ditto.
7020 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7021 * alpha-tdep.c (heuristic_proc_start): Ditto.
7022 * mips-tdep.c (heuristic_proc_start): Ditto.
7023 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7024 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7025 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7026 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7027 * remote-vx.c (vx_create_inferior): Ditto.
7029 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7031 * infrun.c (stop_soon_quietly): Make it an enum, to better
7032 override the default behavior of handle_inferior_event.
7033 (clear_proceed_status): Update uses of stop_soon_quietly to
7034 reflect that it is now an enum.
7035 (start_remote): Ditto.
7036 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7037 is set to handle the new GNU/Linux kernel behavior for
7038 attach/sigstop. Update uses of stop_soon_quietly.
7039 * inferior.h (enum stop_kind): New enum.
7040 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7041 Reset normal handle_inferior_event behavior, afterwards.
7042 * fork-child.c (startup_inferior): Update.
7043 * alpha-tdep.c (heuristic_proc_start): Update.
7044 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7045 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7046 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7047 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7048 * remote-vx.c (vx_create_inferior): Update.
7049 * mips-tdep.c (heuristic_proc_start): Update.
7051 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7053 * disasm.c (dump_insns): Move variables inside loop, or they will
7054 be freed more than once, causing wild memory corruptions.
7055 (gdb_disassembly): Look for the substring "-thread",
7056 instead of "-threads" in the target name, to make sure to find
7057 the 'multi-thread' target. Also, make sure we do the right thing
7058 with the "core" target.
7060 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7062 * mips-tdep.c (mips_print_fp_register): New function, created from
7063 do_fp_register_row(). Registers are now (also) printed as hex.
7064 Only one register is printed per row.
7065 (mips_print_register, do_fp_register_row): Print floating point
7066 registers with mips_print_fp_register().
7068 2003-04-06 Andrew Cagney <cagney@redhat.com>
7070 * valprint.h (inspect_it): Add extern declaration.
7071 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7072 (selectors_info, classes_info): Ditto.
7073 (find_objc_msgcall): Fix indentation.
7074 (objc_printstr): Delete extern declarations.
7076 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7078 2003-04-06 Andrew Cagney <cagney@redhat.com>
7080 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7082 * frame.c (legacy_saved_regs_this_id): Update.
7083 (legacy_get_prev_frame): Update.
7084 * xstormy16-tdep.c: Update comment.
7085 * sparc-tdep.c (sparc_frame_chain): Update comment.
7086 * blockframe.c (legacy_frame_chain_valid): Update.
7088 2003-04-06 Andrew Cagney <cagney@redhat.com>
7090 * valprint.c (val_print_type_code_int): Delete #ifdef
7091 PRINT_TYPELESS_INTEGER code.
7093 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7094 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7095 multi-arch definition.
7096 * gdbarch.h: Re-generate.
7098 2003-04-05 Andrew Cagney <cagney@redhat.com>
7100 Eliminate FRAME_FIND_SAVED_REGS.
7101 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7102 Change FSR parameter to a pointer.
7103 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7104 Assume FSR parameter is a pointer.
7105 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7107 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7108 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7109 saved_regs a pointer.
7110 (hppa_frame_saved_pc): Ditto.
7111 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7112 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7114 (restore_pc_queue): Make fsr a pointer.
7115 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7116 (hppa_frame_chain): Make saved_regs a pointer, call
7117 hppa_frame_init_saved_regs.
7118 * sparc-tdep.c: Include "gdb_assert.h".
7119 (sparc_frame_find_saved_regs): Replace internal_error with
7121 * remote-vxsparc.c (vx_read_register): Delete reference to
7122 FRAME_FIND_SAVED_REGS.
7123 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7124 * gdbarch.h: Regenerate.
7125 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7126 (deprecated_get_frame_saved_regs): Delete declaration.
7127 (struct frame_saved_regs): Delete definition.
7128 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7129 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7130 (hppa_frame_find_saved_regs): Delete declaration.
7131 (FRAME_FIND_SAVED_REGS): Delete macro.
7132 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7133 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7134 FRAME_FIND_SAVED_REGS in comment.
7136 2003-04-05 Andrew Cagney <cagney@redhat.com>
7138 * frame.c (frame_func_unwind, get_frame_func): New functions.
7139 * frame.h (get_frame_func, frame_func_unwind): Declare.
7140 (struct frame_info): Add field "prev_func" for caching the
7141 previous frame's function address.
7142 * arm-tdep.c (arm_frameless_function_invocation): Combine
7143 get_pc_function_start and get_frame_pc into get_frame_func.
7144 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7145 (sh64_nofp_frame_init_saved_regs): Ditto.
7146 * s390-tdep.c (s390_function_start): Ditto.
7147 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7148 (rs6000_frameless_function_invocation): Ditto.
7149 (rs6000_frame_saved_pc): Ditto.
7150 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7151 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7152 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7153 (i386_frame_init_saved_regs): Ditto.
7154 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7155 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7156 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7157 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7158 * blockframe.c (frameless_look_for_prologue): Ditto.
7160 2003-04-05 Andrew Cagney <cagney@redhat.com>
7162 * frame.c (legacy_get_prev_frame): Link prev to next at the
7163 function start. Update comments.
7165 2003-04-05 Andrew Cagney <cagney@redhat.com>
7167 * frame.c (get_frame_id): Update comment.
7168 (legacy_get_prev_frame): Update comment.
7169 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7170 * gdbarch.h: Regenerate.
7171 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7172 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7174 2003-04-05 Andrew Cagney <cagney@redhat.com>
7176 * stack.c (print_frame_info): Use get_frame_pc.
7178 2003-04-04 Andrew Cagney <cagney@redhat.com>
7180 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7181 the frame's type from the unwinder.
7182 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7183 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7184 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7185 (get_frame_base_address): Use get_frame_type.
7186 (get_frame_locals_address, get_frame_args_address): Ditto.
7187 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7188 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7189 (struct frame_info): Add comment explaining why the frame contains
7191 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7192 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7193 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7195 * frame-unwind.h: Include "frame.h".
7196 (struct frame_unwind): Add "type" field.
7197 * Makefile.in (frame_unwind_h): Add $(frame_h).
7199 2003-04-04 Andrew Cagney <cagney@redhat.com>
7201 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7202 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7203 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7205 (d10v_unwind_dummy_id): Use frame_id_build.
7206 * frame.c (find_frame_sal): Use get_frame_pc.
7207 (create_new_frame): Use deprecated_update_frame_pc_hack and
7208 deprecated_update_frame_base_hack.
7209 (create_sentinel_frame): Add comment about ->pc going away.
7210 (get_prev_frame): Add comment about ->pc going away.
7211 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7212 frame_id_build, deprecated_update_frame_pc_hack and
7213 deprecated_update_frame_base_hack.
7214 (select_frame): Use get_frame_pc.
7215 (legacy_saved_regs_this_id): Use frame_id_build.
7217 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7219 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7220 signed integer case.
7221 (classify_argument): Handle enumerations and references.
7223 2003-04-04 Andrew Cagney <cagney@redhat.com>
7225 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7228 2003-04-01 Adam Fedor <fedor@gnu.org>
7230 * gdb/objc-lang.c (selectors_info): Replace calls to
7231 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7232 SYMBOL_NATURAL_NAME.
7233 (classes_info, find_methods): Likewise.
7235 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7237 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7238 ``mach'' to the value determined by bfd_default_set_arch_mach().
7240 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7242 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7243 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7244 (mi-cmd-file.o): Update dependencies.
7246 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7248 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7249 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7251 2003-04-01 Adam Fedor <fedor@gnu.org>
7253 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7254 * language.h (struct language_defn): Add la_demangle.
7255 (language_demangle): Declare.
7256 * language.c (language_demangle): New function.
7257 (unk_lang_demangle): Likewise.
7258 (unknown_language_defn, auto_language_defn, local_language_defn):
7259 Add ukn_lang_demangle.
7260 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7261 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7262 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7263 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7264 * jv-lang.c (java_demangle): New function
7265 (java_language_defn): Use it for la_demangle element.
7266 * objc-lang.c (objc_demangle): Add options argument
7267 (objc_language_defn): Use objc_demangle for la_demangle element.
7268 * maint.c (maintenance_demangle): Replace switch with
7269 call to language_demangle.
7270 * utils.c (fprintf_symbol_filtered): Likewise.
7272 2003-04-01 Andrew Cagney <cagney@redhat.com>
7274 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7275 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7276 PRINT_TYPELESS_INTEGER.
7277 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7278 PUSH_RETURN_ADDRESS.
7280 2003-04-01 Andrew Cagney <cagney@redhat.com>
7282 * Makefile.in (d10v-tdep.o): Update dependencies.
7283 * d10v-tdep.c: Include "frame-base.h".
7284 (d10v_frame_unwind): Make constant.
7285 (d10v_frame_base_address): New function.
7286 (d10v_frame_base): New variable.
7287 (d10v_gdbarch_init): Set frame_base default.
7288 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7290 (d10v_frame_unwind_cache): Set and use "prev_sp".
7291 (d10v_frame_this_id): Use the previous frame's inner most stack
7292 address and this frame's func address for the frame ID. Use
7293 frame_id_build. Don't analyze beyond the current instruction.
7295 2003-04-01 Andrew Cagney <cagney@redhat.com>
7297 * frame.h (get_frame_locals_address, get_frame_args_address):
7298 Refer to the base address, instead of the address of the first
7301 2003-04-01 Andrew Cagney <cagney@redhat.com>
7303 Add frame debug info addresses:
7304 * frame-base.c: New file.
7305 * frame-base.h: New file.
7306 * frame.h (struct frame_base): Add opaque declaration.
7307 (get_frame_base): Update comment.
7308 (get_frame_base_address): Declare.
7309 (get_frame_locals_address): Declare.
7310 (get_frame_args_address): Declare.
7311 (struct frame_info): Add "base" and "base_cache". Update
7312 comments on the unwinder.
7313 * frame.c: Include "frame-base.h".
7314 (get_frame_locals_address): New function.
7315 (get_frame_base_address): New function.
7316 (get_frame_args_address): New function.
7317 * findvar.c (read_var_value): Use get_frame_locals_address and
7318 get_frame_args_address.
7319 * stack.c (frame_info): Use get_frame_locals_address and
7320 get_frame_args_address.
7321 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7322 moved to "frame-base.c".
7323 * printcmd.c (print_frame_nameless_args): Ditto.
7324 * symtab.h (address_class): Update comments.
7325 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7326 get_frame_base_address.
7327 * dwarf2expr.c (execute_stack_op): Ditto.
7328 * Makefile.in (frame_base_h): Define.
7329 (frame.o): Update dependencies.
7330 (frame-base.o): Add dependencies.
7331 (SFILES): Add frame-base.c.
7332 (COMMON_OBS): Add frame-base.o.
7334 2003-04-01 Andrew Cagney <cagney@redhat.com>
7336 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7337 CALL_DUMMY_LENGTH): Ditto.
7338 * gdbarch.c: Re-generate.
7339 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7340 (CALL_DUMMY_LENGTH): Delete macro.
7341 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7342 * arm-tdep.c (arm_gdbarch_init): Ditto.
7343 * avr-tdep.c (avr_gdbarch_init): Ditto.
7344 * cris-tdep.c (cris_gdbarch_init): Ditto.
7345 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7346 * frv-tdep.c (frv_gdbarch_init): Ditto.
7347 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7348 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7349 * i386-tdep.c (i386_gdbarch_init): Ditto.
7350 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7351 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7352 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7353 * mips-tdep.c (mips_gdbarch_init): Ditto.
7354 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7355 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7356 * s390-tdep.c (s390_gdbarch_init): Ditto.
7357 * sh-tdep.c (sh_gdbarch_init): Ditto.
7358 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7359 * v850-tdep.c (v850_gdbarch_init): Ditto.
7360 * vax-tdep.c (vax_gdbarch_init): Ditto.
7361 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7363 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7365 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7367 2003-04-01 Andrew Cagney <cagney@redhat.com>
7369 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7370 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7371 * gdbarch.h, gdbarch.c: Re-generate.
7372 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7373 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7374 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7375 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7376 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7377 * infcmd.c (run_stack_dummy): Simplify assuming
7378 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7379 * infrun.c (handle_inferior_event): Ditto.
7380 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7381 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7382 * arm-tdep.c (arm_gdbarch_init): Ditto.
7383 * avr-tdep.c (avr_gdbarch_init): Ditto.
7384 * cris-tdep.c (cris_gdbarch_init): Ditto.
7385 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7386 * frv-tdep.c (frv_gdbarch_init): Ditto.
7387 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7388 * i386-tdep.c (i386_gdbarch_init): Ditto.
7389 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7391 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7392 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7393 * mips-tdep.c (mips_gdbarch_init): Ditto.
7394 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7395 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7396 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7397 * s390-tdep.c (s390_gdbarch_init): Ditto.
7398 * sh-tdep.c (sh_gdbarch_init): Ditto.
7399 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7400 * v850-tdep.c (v850_gdbarch_init): Ditto.
7401 * vax-tdep.c (vax_gdbarch_init): Ditto.
7402 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7404 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7406 * symfile.c (symfile_relocate_debug_section): Update call to
7407 bfd_simple_get_relocated_section_contents.
7409 2003-03-31 Andrew Cagney <cagney@redhat.com>
7411 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7412 * gdbarch.h, gdbarch.c: Regenerate.
7413 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7414 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7416 * frame.h (generic_fix_call_dummy): Delete declaration.
7417 * dummy-frame.h: Update comment.
7418 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7421 * sh-tdep.c (sh_gdbarch_init): Ditto.
7422 * s390-tdep.c (s390_gdbarch_init): Ditto.
7423 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7424 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7426 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7427 * i386-tdep.c (i386_gdbarch_init): Ditto.
7428 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7429 * frv-tdep.c (frv_gdbarch_init): Ditto.
7430 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7431 * cris-tdep.c (cris_gdbarch_init): Ditto.
7432 * avr-tdep.c (avr_gdbarch_init): Ditto.
7433 * arm-tdep.c (arm_gdbarch_init): Ditto.
7435 2003-03-31 J. Brobecker <brobecker@gnat.com>
7437 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7438 (INIT_FRAME_AP): Likewise.
7439 (EXTRA_FRAME_INFO): Likewise.
7441 2003-03-31 Andrew Cagney <cagney@redhat.com>
7443 * gdbarch.sh: Include "symfile.h".
7444 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7445 * gdbarch.h, gdbarch.c: Re-generate.
7446 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7448 call_dummy_address, the default is at entry_point_address.
7449 * v850-tdep.c (v850_gdbarch_init): Ditto.
7450 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7451 * sh-tdep.c (sh_gdbarch_init): Ditto.
7452 * s390-tdep.c (s390_gdbarch_init): Ditto.
7453 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7454 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7455 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7456 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7457 * i386-tdep.c (i386_gdbarch_init): Ditto.
7458 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7459 * frv-tdep.c (frv_gdbarch_init): Ditto.
7460 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7461 * cris-tdep.c (cris_gdbarch_init): Ditto.
7462 * arm-tdep.c (arm_gdbarch_init): Ditto.
7464 2003-03-31 Andrew Cagney <cagney@redhat.com>
7466 * gdbarch.sh (CALL_DUMMY_P): Delete.
7467 * gdbarch.h, gdbarch.c: Re-generate.
7468 * inferior.h (CALL_DUMMY_P): Delete macro.
7469 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7470 * vax-tdep.c (vax_gdbarch_init): Update.
7471 * v850-tdep.c (v850_gdbarch_init): Update.
7472 * sparc-tdep.c (sparc_gdbarch_init): Update.
7473 * sh-tdep.c (sh_gdbarch_init): Update.
7474 * s390-tdep.c (s390_gdbarch_init): Update.
7475 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7476 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7477 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7478 * mips-tdep.c (mips_gdbarch_init): Update.
7479 * mcore-tdep.c (mcore_gdbarch_init): Update.
7480 * m68k-tdep.c (m68k_gdbarch_init): Update.
7481 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7482 * ia64-tdep.c (ia64_gdbarch_init): Update.
7483 * i386-tdep.c (i386_gdbarch_init): Update.
7484 * h8300-tdep.c (h8300_gdbarch_init): Update.
7485 * frv-tdep.c (frv_gdbarch_init): Update.
7486 * d10v-tdep.c (d10v_gdbarch_init): Update.
7487 * cris-tdep.c (cris_gdbarch_init): Update.
7488 * breakpoint.c (deprecated_frame_in_dummy): Update.
7489 * avr-tdep.c (avr_gdbarch_init): Update.
7490 * alpha-tdep.c (alpha_gdbarch_init): Update.
7491 * arm-tdep.c (arm_gdbarch_init): Update.
7492 * dummy-frame.c (dummy_frame_this_id): Update comments.
7493 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7494 * frame.c (legacy_get_prev_frame): Ditto.
7495 * valops.c (call_function_by_hand): Delete function.
7496 (hand_function_call): Rename to call_function_by_hand
7498 2003-03-30 Andrew Cagney <cagney@redhat.com>
7500 2002-11-10 Klee Dienes <kdienes@apple.com>
7501 * value.h (struct value): Update comment.
7503 2003-03-30 Andrew Cagney <cagney@redhat.com>
7505 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7507 (d10v_gdbarch_init): Do not set fp_regnum.
7509 * frame.c (get_frame_base): Force ID initialization.
7510 (get_prev_frame): Move computation of the frame ID from here ...
7511 (get_frame_id): ... to here.
7512 (legacy_get_prev_frame): Mark the frame ID as valid.
7513 * frame.h (struct frame_info): Add field "id_p".
7515 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7517 * i386-tdep.c (i386_store_struct_return): Removed.
7518 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7520 2003-03-30 Andrew Cagney <cagney@redhat.com>
7522 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7523 * gdbarch.h, gdbarch.c: Regenerate.
7524 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7526 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7527 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7528 * i386-tdep.c (i386_gdbarch_init): Ditto.
7529 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7530 * cris-tdep.c (cris_gdbarch_init): Ditto.
7531 * vax-tdep.c (vax_gdbarch_init): Ditto.
7532 * s390-tdep.c (s390_gdbarch_init): Ditto.
7533 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7534 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7535 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7536 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7537 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7538 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7539 * sparc-tdep.c (sparc_gdbarch_init): Update.
7540 * sh-tdep.c (sh_gdbarch_init): Update.
7541 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7542 * mips-tdep.c (mips_gdbarch_init): Update.
7543 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7544 * ia64-tdep.c (ia64_gdbarch_init): Update.
7545 * frv-tdep.c (frv_gdbarch_init): Update.
7546 * avr-tdep.c (avr_gdbarch_init): Update.
7547 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7548 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7549 instead of when push_dummy_call is not available.
7551 2003-03-30 Andrew Cagney <cagney@redhat.com>
7553 * infttrace.c: Include "gdbthread.h".
7554 (parent_attach_all): Fix function signature.
7555 (call_ptrace): Update call.
7556 * Makefile.in (infttrace.o): Update dependencies.
7558 2003-03-30 Andrew Cagney <cagney@redhat.com>
7560 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7561 PUSH_RETURN_ADDRESS.
7562 * gdbarch.h, gdbarch.c: Regenerate.
7563 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7564 * x86-64-tdep.c (x86_64_init_abi): Update.
7565 * v850-tdep.c (v850_gdbarch_init): Update.
7566 * sparc-tdep.c (sparc_gdbarch_init): Update.
7567 * sh-tdep.c (sh_gdbarch_init): Update.
7568 * s390-tdep.c (s390_gdbarch_init): Update.
7569 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7570 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7571 * mips-tdep.c (mips_gdbarch_init): Update.
7572 * mcore-tdep.c (mcore_gdbarch_init): Update.
7573 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7574 * ia64-tdep.c (ia64_gdbarch_init): Update.
7575 * i386-tdep.c (i386_gdbarch_init): Update.
7576 * h8300-tdep.c (h8300_gdbarch_init): Update.
7577 * frv-tdep.c (frv_gdbarch_init): Update.
7578 * cris-tdep.c (cris_gdbarch_init): Update.
7579 * avr-tdep.c (avr_gdbarch_init): Update.
7580 * arm-tdep.c (arm_gdbarch_init): Update.
7581 * valops.c (hand_function_call): Update.
7583 2003-03-29 Andrew Cagney <cagney@redhat.com>
7585 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7586 sizeof_call_dummy_words.
7587 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7589 * gdbarch.h: Regenerate.
7591 2003-03-29 Andrew Cagney <cagney@redhat.com>
7593 * infttrace.h: New file.
7594 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7595 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7596 (hpread_read_doc_function_type): Detect an initialized type1.
7597 (hpread_quick_traverse): Initialize mod_name_string.
7598 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7599 (som_solib_get_solib_by_pc): Declare.
7600 (so_lib_thread_start_addr): Declare.
7601 (no_shared_libraries): Declare.
7602 * somread.c (init_import_symbols): Make static. Add forward
7604 * config/pa/nm-hppah.h: Include "infttrace.h" for
7606 (hppa_insert_hw_watchpoint): Declare.
7607 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7608 * hppah-nat.c: Include "gdb_string.h".
7609 (parent_attach_all): Delete extern declaration, moved to
7611 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7613 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7614 * Makefile.in (infttrace_h): Define.
7615 (hpread.o): Update dependencies.
7616 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7617 * hppa-hpux-tdep.c: Include "gdb_string.h".
7618 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7619 * infrun.c (handle_inferior_event): Always initialize
7620 stepped_after_stopped_by_watchpoint. Add default and remove
7621 fallthrough in switch statement.
7622 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7624 (hppa_remove_hw_watchpoint): Ditto.
7626 2003-03-29 Andrew Cagney <cagney@redhat.com>
7628 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7631 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7633 * arm-tdep.c (arm_push_arguments): Delete.
7634 (struct stack_item): New type.
7635 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7636 (arm_store_struct_return): Delte.
7637 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7638 arm_push_arguments or arm_store_struct_return.
7640 2003-03-28 Andrew Cagney <cagney@redhat.com>
7642 * Makefile.in (d10v-tdep.o): Update dependencies.
7643 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7644 * d10v-tdep.c: Include "remote.h".
7645 (target_resume_hook): Delete extern declaration.
7646 (target_wait_loop_hook): Ditto.
7647 (tdisassemble_command): Eliminate assignment in "if" conditional.
7648 (d10v_ts2_register_sim_regno): Eliminate call to
7649 legacy_register_sim_regno.
7650 (d10v_ts3_register_sim_regno): Ditto.
7652 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7654 * thread.c: Reindented.
7656 * linux-proc.c: Ditto.
7658 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7660 * MAINTAINERS (write after approval): Add myself.
7662 2003-03-27 Theodore A. Roth <troth@openavr.org>
7664 * objc-exp.y: Add missing semi-colons.
7666 2003-03-27 Andrew Cagney <cagney@redhat.com>
7668 * regcache.c (write_sp): Delete function and references.
7669 * inferior.h (write_sp): Delete declaration.
7670 * valops.c (hand_function_call): Replace write_sp with
7672 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7673 (sparc_pop_frame): Ditto.
7675 2003-03-27 Andrew Cagney <cagney@redhat.com>
7677 * NEWS: Mention removal of support for hppa*-*-bsd* and
7678 hppa*-*-osf* natives, and hppa*-*-pro* target.
7679 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7680 * config/pa/xm-pa.h: Obsolete file.
7681 * config/pa/xm-hppab.h: Obsolete file.
7682 * config/pa/nm-hppab.h: Obsolete file.
7683 * config/pa/tm-hppab.h: Obsolete file.
7684 * config/pa/tm-hppao.h: Obsolete file.
7685 * config/pa/nm-hppao.h: Obsolete file.
7686 * config/pa/tm-pro.h: Obsolete file.
7687 * config/pa/hppaosf.mt: Obsolete file.
7688 * config/pa/hppaosf.mh: Obsolete file.
7689 * config/pa/hppapro.mt: Obsolete file.
7690 * config/pa/hppabsd.mt: Obsolete file.
7691 * config/pa/hppabsd.mh: Obsolete file.
7692 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7693 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7696 2003-03-27 Andrew Cagney <cagney@redhat.com>
7698 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7699 push_arguments. Don't set push_return_address or write_sp.
7700 (d10v_push_dummy_call): Replace d10v_push_arguments.
7701 (d10v_push_return_address, d10v_write_sp): Delete function,
7702 handled by push_dummy_call.
7704 2003-03-26 Andrew Cagney <cagney@redhat.com>
7706 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7707 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7708 regcache and dummy_addr parameters.
7709 * gdbarch.h, gdbarch.c: Re-generate.
7710 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7711 available; assume it will handle stack alignment and return
7712 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7713 legacy_push_arguments.
7714 (legacy_push_arguments): Rename default_push_arguments.
7715 * value.h (legacy_push_arguments): Rename default_push_arguments.
7716 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7717 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7718 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7719 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7720 * config/i386/tm-symmetry.h: Update.
7721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7722 * x86-64-tdep.c (x86_64_init_abi): Update.
7723 * v850-tdep.c (v850_gdbarch_init): Update.
7724 * sparc-tdep.c (sparc_gdbarch_init): Update.
7725 * sh-tdep.c (sh_gdbarch_init): Update.
7726 * s390-tdep.c (s390_gdbarch_init): Update.
7727 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7728 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7729 * mips-tdep.c (mips_gdbarch_init): Update.
7730 * mcore-tdep.c (mcore_gdbarch_init): Update.
7731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7732 * ia64-tdep.c (ia64_gdbarch_init): Update.
7733 * i386-tdep.c (i386_gdbarch_init): Update.
7734 * hppa-tdep.c (hppa_gdbarch_init): Update.
7735 * h8300-tdep.c (h8300_gdbarch_init): Update.
7736 * frv-tdep.c (frv_gdbarch_init): Update.
7737 * d10v-tdep.c (d10v_gdbarch_init): Update.
7738 * cris-tdep.c (cris_gdbarch_init): Update.
7739 * avr-tdep.c (avr_gdbarch_init): Update.
7740 * arm-tdep.c (arm_gdbarch_init): Update.
7741 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7742 * alpha-tdep.c (alpha_gdbarch_init): Update.
7744 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7746 * signals/signals.c (do_target_signal_to_host): Correct realtime
7749 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7751 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7752 (struct sal_chain, map_catch_names): Remove.
7753 (catch_exception_command_1): Don't call
7754 handle_gnu_4_16_catch_command.
7756 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7758 From Mark Dettinger <dettinge@de.ibm.com>:
7759 * dwarf2cfi.c (read_2u): Increment pointer by two.
7761 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7763 * signals/signals.c: Fix typos in last change.
7765 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7767 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7768 not already defined. Use __SIGRTMIN if available.
7769 (target_signal_from_host): Remove SIGRTMIN block.
7770 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7771 the signal is within the realtime range.
7773 2003-03-25 Adam Fedor <fedor@gnu.org>
7775 * Makefile.in (infrun.o): Add $(language_h)
7776 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7777 for language specific trampolines.
7778 * language.h (struct language_defn): Add skip_trampoline.
7779 (skip_language_trampoline): Declare.
7780 * language.c (unk_lang_trampoline, skip_language_trampoline):
7782 (unknown_language_defn, auto_language_defn, local_language_defn):
7783 Add ukn_lang_trampoline.
7784 * ada-lang.c (ada_language_defn): Add NULL for language
7785 specific skip_trampoline.
7786 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7787 scm-lang.c: Likewise.
7788 * objc-lang.c (objc_skip_trampoline): New function.
7789 (objc_language_defn): Add objc_skip_trampoline.
7791 2003-03-25 Andrew Cagney <cagney@redhat.com>
7793 * frame.c (get_prev_frame): Delay validating a frame's ID -
7794 non-NULL, didn't go backwards - until an attempt to unwind it to
7797 2003-03-25 Andrew Cagney <cagney@redhat.com>
7799 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7800 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7801 * gdbarch.h, gdbarch.c: Re-generate.
7802 * config/sparc/tm-sparc.h
7803 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7804 * sparc-tdep.c (sparc_gdbarch_init): Set
7805 deprecated_extra_stack_alignment_needed.
7806 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7807 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7808 extra_stack_alignment_needed.
7809 * v850-tdep.c (v850_gdbarch_init): Ditto.
7810 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7811 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7812 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7813 * cris-tdep.c (cris_gdbarch_init): Ditto.
7814 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7817 2003-03-25 Andrew Cagney <cagney@redhat.com>
7819 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7820 STORE_STRUCT_RETURN.
7821 * gdbarch.h, gdbarch.c: Regenerate.
7822 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7823 (d10v_push_arguments): Set the struct return register.
7824 (d10v_gdbarch_init): Update.
7825 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7826 * x86-64-tdep.c (x86_64_init_abi): Update.
7827 * vax-tdep.c (vax_gdbarch_init): Update.
7828 * v850-tdep.c (v850_gdbarch_init): Update.
7829 * sparc-tdep.c (sparc_gdbarch_init): Update.
7830 * sh-tdep.c (sh_gdbarch_init): Update.
7831 * s390-tdep.c (s390_gdbarch_init): Update.
7832 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7833 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7834 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7835 * mips-tdep.c (mips_gdbarch_init): Update.
7836 * mcore-tdep.c (mcore_gdbarch_init): Update.
7837 * m68k-tdep.c (m68k_gdbarch_init): Update.
7838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7839 * ia64-tdep.c (ia64_gdbarch_init): Update.
7840 * i386-tdep.c (i386_gdbarch_init): Update.
7841 * hppa-tdep.c (hppa_gdbarch_init): Update.
7842 * h8300-tdep.c (h8300_gdbarch_init): Update.
7843 * frv-tdep.c (frv_gdbarch_init): Update.
7844 * cris-tdep.c (cris_gdbarch_init): Update.
7845 * avr-tdep.c (avr_gdbarch_init): Update.
7846 * arm-tdep.c (arm_gdbarch_init): Update.
7847 * alpha-tdep.c (alpha_gdbarch_init): Update.
7849 2003-03-25 Andrew Cagney <cagney@redhat.com>
7851 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7852 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7853 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7854 * gdbarch.h, gdbarch.c: Regenerate.
7855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7856 call_dummy_stack_adjust_p.
7857 * vax-tdep.c (vax_gdbarch_init): Ditto.
7858 * v850-tdep.c (v850_gdbarch_init): Ditto.
7859 * sh-tdep.c (sh_gdbarch_init): Ditto.
7860 * s390-tdep.c (s390_gdbarch_init): Ditto.
7861 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7862 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7863 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7864 * mips-tdep.c (mips_gdbarch_init): Ditto.
7865 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7866 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7867 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7868 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7869 * i386-tdep.c (i386_gdbarch_init): Ditto.
7870 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7871 * frv-tdep.c (frv_gdbarch_init): Ditto.
7872 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7873 * cris-tdep.c (cris_gdbarch_init): Ditto.
7874 * avr-tdep.c (avr_gdbarch_init): Ditto.
7875 * arm-tdep.c (arm_gdbarch_init): Ditto.
7876 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7877 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7878 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7879 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7880 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7881 call_dummy_stack_adjust_p.
7882 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7883 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7884 * sparc-tdep.c (sparc32_push_arguments): Update.
7885 * valops.c (hand_function_call): Update.
7887 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7890 set_gdbarch_char_signed.
7892 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7895 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7897 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7899 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7900 (_initialize_arm_tdep): Don't set tm_print_insn.
7902 2003-03-24 Adam Fedor <fedor@gnu.org>
7904 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7905 * objc-lang.h: Add multiple inclusion protection.
7906 (start_msglist, add_msglist, end_msglist): Additional declarations.
7908 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7910 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7911 value was renamed to ARM_FLOAT_SOFT_FPA.
7913 2003-03-23 Andrew Cagney <cagney@redhat.com>
7915 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7916 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7917 * gdbarch.h, gdbarch.c: Regenerate.
7918 * valops.c (hand_function_call): Update.
7919 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7920 * frame.c (legacy_saved_regs_this_id): Update.
7921 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7922 * dummy-frame.h: Update.
7923 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7924 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7925 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7926 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7927 * config/m68k/tm-sun3.h: Update.
7928 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7929 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7930 * x86-64-tdep.c (x86_64_init_abi): Update.
7931 * vax-tdep.c (vax_gdbarch_init): Update.
7932 * v850-tdep.c (v850_gdbarch_init): Update.
7933 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7934 * sh-tdep.c (sh_gdbarch_init): Update.
7935 * s390-tdep.c (s390_gdbarch_init): Update.
7936 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7937 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7938 (frame_get_saved_regs): Update.
7939 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7940 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7941 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7942 * mips-tdep.c (mips_gdbarch_init): Update.
7943 * mcore-tdep.c (mcore_gdbarch_init): Update.
7944 * m68k-tdep.c (m68k_gdbarch_init): Update.
7945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7946 * ia64-tdep.c (ia64_gdbarch_init): Update.
7947 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7948 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7949 (i386_interix_back_one_frame): Update.
7950 * hppa-tdep.c (hppa_gdbarch_init): Update.
7951 (hppa_init_extra_frame_info): Update.
7952 * h8300-tdep.c (h8300_gdbarch_init): Update.
7953 * frv-tdep.c (frv_gdbarch_init): Update.
7954 * cris-tdep.c (cris_gdbarch_init): Update.
7955 * avr-tdep.c (avr_gdbarch_init): Update.
7956 * arm-tdep.c (arm_gdbarch_init): Update.
7957 * alpha-tdep.c (alpha_gdbarch_init): Update.
7959 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7961 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7962 (arm_get_fp_model): Declare.
7963 * arm-tdep.c (fp_model_strings): New string array.
7964 (arm_fp_model, current_fp_model): New variables.
7965 (arm_get_fp_model): New function.
7966 (arm_set_fp): New function.
7967 (set_fp_model_sfunc): New function.
7968 (show_fp_model): New function.
7969 (_initialize_arm_tdep): Add new command to set/show the FPU.
7970 (arm_extract_return_value): Use arm_get_fp_model.
7971 (arm_store_return_value): Likewise.
7972 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7973 to initialize the floating-point data types.
7974 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7977 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7979 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7980 the current setting of each value.
7981 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7982 new_set and new_show. Use add_setshow_cmd_full and
7983 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7984 commands and add new version as subcommands of "set/show arm".
7986 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7988 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7989 (set_arm_command, show_arm_command): New functions.
7990 (_initialize_arm_tdep): Add them.
7991 (num_disassembly_options): Renamed from num_flavor_options.
7992 (valid_disassembly_styles): Renamed from valid_flavors.
7993 (disassembly_style): Renamed from disassembly_flavor.
7994 (set_disassembly_style_sfunc): Renamed from
7995 set_disassembly_flavor_sfunc.
7996 (set_disassembly_style): Renamed from set_disassembly_flavor.
7997 (arm_othernames): Updated.
7998 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7999 command. Add "set/show arm disassembly" commands. Deprecate
8000 "othernames" command.
8002 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8004 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8005 (arm-tdep.o): Depend on elf_arm_h.
8007 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8009 * Makefile.in (coff_internal_h): Define.
8010 (arm-tdep.o): Update dependencies.
8012 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8014 * arm-tdep.c (prologue_cache): Delete.
8015 (check_prologue_cache, save_prologue_cache): Delete.
8016 (arm_scan_prologue): Don't check or update the prologue_cache.
8017 (arm_gdb_arch_init): Don't initialize it.
8018 (_initialize_arm_tdep): Likewise.
8020 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8022 * MAINTAINERS (tui): Maintainer of tui code.
8024 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8026 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8027 (i386-cygwin-tdep.o): Add dependencies.
8028 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8029 * i386-cygwin-tdep.c: New file.
8030 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8031 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8033 2003-03-20 Andrew Cagney <cagney@redhat.com>
8035 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8036 (handle_inferior_event): Remove code calling
8037 DYNAMIC_TRAMPOLINE_NEXTPC.
8039 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8040 already has a full path.
8042 * main.c (gdb_main): Return 1.
8043 (captured_main): Call error to report an invalid interpreter.
8045 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8046 * alpha-osf1-tdep.c: Include "gdb_string.h".
8048 2003-03-19 J. Brobecker <brobecker@gnat.com>
8050 Continuing work to convert the hppa targets to multiarch partial.
8052 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8053 method, now that hppa_push_dummy_frame has a conformant prototype.
8054 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8055 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8056 for the switch to multiarch partial.
8058 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8060 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8061 when iss is issNull.
8063 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8065 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8066 NUM_REGS bounds check.
8068 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8070 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8071 * mips-tdep.c (gdb_assert.h): Include.
8072 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8073 (mips_register_name): Handle integer registers explicitly. Add
8075 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8076 (mips_lsi33k_reg_names): Don't list integer registers; they're
8077 handled by mips_register_name() now.
8078 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8079 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8080 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8081 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8082 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8084 2003-03-18 Andrew Cagney <cagney@redhat.com>
8086 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8088 * gdbtypes.h (print_scalar_formatted): Update declaration.
8089 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8091 2003-03-18 J. Brobecker <brobecker@gnat.com>
8093 * infrun.c (observer.h): Add #include.
8094 (normal_stop): Add call to observer_notify_normal_stop.
8095 * Makefile.in (infrun.o): Add dependency on observer.h.
8097 2003-03-18 J. Brobecker <brobecker@gnat.com>
8099 Continuing work to convert the hppa targets to multiarch partial.
8100 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8101 parameter. Reformat comment.
8102 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8103 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8104 to match new profile.
8106 2003-03-18 J. Brobecker <brobecker@gnat.com>
8108 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8109 appear to be working in any case.
8111 2003-03-18 J. Brobecker <brobecker@gnat.com>
8113 * observer.c (observer_test_first_observer): New static variable.
8114 (observer_test_second_observer): Likewise.
8115 (observer_test_third_observer): Likewise.
8116 (observer_test_first_notification_function): New static function.
8117 (observer_test_second_notification_function): Likewise.
8118 (observer_test_third_notification_function): Likewise.
8120 2003-03-17 J. Brobecker <brobecker@gnat.com>
8122 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8123 * somsolib.c (gdb_assert.h): Likewise.
8124 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8125 (somsolib.o): Likewise.
8127 2003-03-17 Andrew Cagney <cagney@redhat.com>
8129 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8130 BFD. Simplify setting of di.endian.
8132 2003-03-17 Andrew Cagney <cagney@redhat.com>
8134 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8135 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8137 From Elena Zannoni <ezannoni@redhat.com>
8138 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8139 vector and floating-point parameters.
8140 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8142 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8144 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8146 * MAINTAINERS: Remove my name from several maintainership roles.
8148 2003-03-17 Andrew Cagney <cagney@redhat.com>
8150 Fix frame off-by-one bug.
8151 * frame-unwind.h (frame_this_id_ftype): Replace
8152 frame_unwind_id_ftype.
8153 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8154 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8155 with "prev_register".
8156 * frame-unwind.c (frame_unwind_find_by_pc): Return
8157 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8159 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8160 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8161 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8162 (dummy_frame_unwind): Update.
8163 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8164 sentinel_frame_register_unwind.
8165 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8166 (sentinel_frame_unwinder): Update.
8167 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8168 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8169 * frame.c (create_sentinel_frame): Update. Initialize
8170 "prologue_cache" instead of "unwind_cache".
8171 (frame_register_unwind): Call this frame's prev_register with the
8172 next frame and this frame's prologue cache.
8173 (get_prev_frame): Simplify. Always call prev frame's this_id with
8174 this frame and prev frame's prologue cache. Document that this
8175 call is shifted one to the left when compared to the
8176 frame_register_unwind call.
8177 (legacy_saved_regs_prev_register): Replace
8178 frame_saved_regs_register_unwind.
8179 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8180 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8181 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8182 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8183 (d10v_frame_unwind): Update.
8184 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8185 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8186 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8187 "saved_regs" with "this_saved_regs".
8189 2003-03-16 Andrew Cagney <cagney@redhat.com>
8191 * frame.c (frame_pop): Don't call target_store_registers. Fix
8192 problem reported by Mark Kettenis.
8194 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8196 * i386-tdep.c (i386_register_type): Renamed from
8197 i386_register_virtual_type. Adjust function signature.
8198 (i386_gdbarch_init): Set register_type instead of
8199 deprecated_max_register_raw_size,
8200 deprecated_max_register_virtual_size and register_virtual_type.
8202 2003-03-14 Andrew Cagney <cagney@redhat.com>
8204 * frame.c (get_prev_frame): When a legacy frame, always call
8205 legacy_get_prev_frame. Simplify unwind code using assumption that
8206 the unwinder is new.
8207 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8208 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8209 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8211 2003-03-14 Andrew Cagney <cagney@redhat.com>
8213 * frame.c (get_saved_register): Delete function.
8214 * frame.h (get_saved_register): Delete declaration.
8215 * xstormy16-tdep.c: Update comment.
8216 * regcache.h: Update comments.
8217 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8218 get_saved_register and extract_address, use
8219 frame_read_unsigned_register.
8220 (sparc_frame_saved_pc): Ditto.
8221 (sparc_get_saved_register): Instead of get_saved_register, use
8223 (sparc_pop_frame): Ditto.
8224 * findvar.c: Update comments.
8225 (value_of_register): Call frame_register instead of
8227 (value_from_register): Ditto.
8228 * config/sparc/tm-sparc.h: Update comment.
8229 * breakpoint.c: Update comment.
8231 2003-03-14 Andrew Cagney <cagney@redhat.com>
8233 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8235 * gdbarch.h, gdbarch.c: Re-generate.
8236 * frame.h: Update comments.
8237 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8238 * x86-64-tdep.c (x86_64_init_abi): Update.
8239 * sparc-tdep.c (sparc_gdbarch_init): Update.
8240 * sh-tdep.c (sh_gdbarch_init): Update.
8241 * mips-tdep.c (mips_gdbarch_init): Update.
8242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8243 * cris-tdep.c (cris_gdbarch_init): Update.
8244 * ia64-tdep.c (ia64_gdbarch_init): Update.
8245 * frame.c (frame_register): Update.
8246 (get_saved_register): Update.
8247 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8249 2003-03-13 Andrew Cagney <cagney@redhat.com>
8251 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8252 * gdbarch.h, gdbarch.c: Regenerate.
8253 * valops.c (hand_function_call): Update comment.
8254 * stack.c (return_command): Update comment.
8255 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8256 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8257 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8258 * x86-64-tdep.c (x86_64_init_abi): Update.
8259 * vax-tdep.c (vax_gdbarch_init): Update.
8260 * v850-tdep.c (v850_gdbarch_init): Update.
8261 * sparc-tdep.c (sparc_gdbarch_init): Update.
8262 * sh-tdep.c (sh_gdbarch_init): Update.
8263 * s390-tdep.c (s390_gdbarch_init): Update.
8264 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8265 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8266 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8267 * mips-tdep.c (mips_gdbarch_init): Update.
8268 * mcore-tdep.c (mcore_gdbarch_init): Update.
8269 * m68k-tdep.c (m68k_gdbarch_init): Update.
8270 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8271 * ia64-tdep.c (ia64_gdbarch_init): Update.
8272 * i386-tdep.c (i386_gdbarch_init): Update.
8273 * hppa-tdep.c (hppa_gdbarch_init): Update.
8274 * h8300-tdep.c (h8300_gdbarch_init): Update.
8275 * frv-tdep.c (frv_gdbarch_init): Update.
8276 * cris-tdep.c (cris_gdbarch_init): Update.
8277 * avr-tdep.c (avr_gdbarch_init): Update.
8278 * arm-tdep.c (arm_gdbarch_init): Update.
8279 * alpha-tdep.c (alpha_gdbarch_init): Update.
8281 2003-03-13 Andrew Cagney <cagney@redhat.com>
8283 * frame.c (legacy_frame_p): New function.
8284 (get_prev_frame): Use legacy_frame_p.
8285 * frame.h (legacy_frame_p): Declare.
8287 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8289 * MAINTAINERS (write after approval): Alphabetically
8292 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8294 * MAINTAINERS (write after approval): Add myself.
8296 2003-03-12 Andrew Cagney <cagney@redhat.com>
8298 * frame.c (get_prev_frame): Rename the frame parameter to
8300 (get_next_frame, legacy_get_prev_frame): Ditto.
8302 2003-03-12 Andrew Cagney <cagney@redhat.com>
8304 * frame.c (get_current_frame): Check target_has_registers before
8305 checking target_has_stack.
8306 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8307 instead of deprecated_selected_frame.
8308 * findvar.c (value_of_register): Pass "frame", not
8309 deprecated_selected_frame, to value_of_builtin_reg.
8311 2003-03-12 Andrew Cagney <cagney@redhat.com>
8313 * regcache.c (regcache_cooked_write_signed): New function.
8314 (regcache_cooked_write_unsigned): New function.
8315 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8316 (regcache_cooked_read_signed): Fix regnum in range assertion.
8317 * regcache.h (regcache_cooked_write_signed): Declare.
8318 (regcache_cooked_write_unsigned): Declare.
8320 2003-03-12 Andrew Cagney <cagney@redhat.com>
8322 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8323 * gdbarch.h, gdbarch.c: Re-generate.
8324 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8325 * x86-64-tdep.h: Update.
8326 * x86-64-tdep.c (x86_64_init_abi): Update.
8327 * v850-tdep.c (v850_gdbarch_init): Update.
8328 * sparc-tdep.c (sparc_gdbarch_init): Update.
8329 * sh-tdep.c (sh_gdbarch_init): Update.
8330 * s390-tdep.c (s390_gdbarch_init): Update.
8331 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8332 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8333 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8334 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8335 * mips-tdep.c (mips_gdbarch_init): Update.
8336 * mcore-tdep.c (mcore_gdbarch_init): Update.
8337 * m68k-tdep.c (m68k_gdbarch_init): Update.
8338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8339 * ia64-tdep.c (ia64_gdbarch_init): Update.
8340 * i386-tdep.c (i386_gdbarch_init): Update.
8341 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8342 * hppa-tdep.c (hppa_gdbarch_init): Update.
8343 * h8300-tdep.c (h8300_gdbarch_init): Update.
8344 * frv-tdep.c (frv_gdbarch_init): Update.
8345 * cris-tdep.c (cris_gdbarch_init): Update.
8346 * avr-tdep.c (avr_gdbarch_init): Update.
8347 * arm-tdep.c (arm_gdbarch_init): Update.
8348 * alpha-tdep.c (alpha_gdbarch_init): Update.
8349 * sh-tdep.c (sh_init_extra_frame_info): Update.
8350 (sh64_init_extra_frame_info): Update.
8351 * ns32knbsd-nat.c (frame_num_args): Update.
8352 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8353 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8354 (xstormy16_frame_chain_valid): Update.
8355 * vax-tdep.c (vax_saved_pc_after_call): Update.
8356 * v850-tdep.c (v850_frame_chain): Update.
8357 (v850_pop_frame): Update.
8358 (v850_init_extra_frame_info): Update.
8359 * sparc-tdep.c (setup_arbitrary_frame): Update.
8360 * ns32k-tdep.c (umax_frame_num_args): Update.
8361 * s390-tdep.c (s390_pop_frame_regular): Update.
8362 * mn10300-tdep.c (mn10300_frame_chain): Update.
8363 (mn10300_pop_frame_regular): Update.
8364 (mn10300_init_extra_frame_info): Update.
8365 * mips-tdep.c (mips_init_frame_pc_first): Update.
8366 (mips_frame_chain): Update.
8367 (mips_pop_frame): Update.
8368 * mcore-tdep.c (mcore_frame_chain): Update.
8369 (mcore_pop_frame): Update.
8370 (mcore_init_extra_frame_info): Update.
8371 * arch-utils.c (init_frame_pc_default): Update.
8372 * m68k-tdep.c (isi_frame_num_args): Update.
8373 (delta68_frame_num_args): Update.
8374 (news_frame_num_args): Update.
8375 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8376 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8377 (alpha_frame_chain): Update.
8378 (alpha_pop_frame): Update.
8379 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8380 (hppa_init_extra_frame_info): Update.
8381 (hppa_frame_chain): Update.
8382 (hppa_frame_chain_valid): Update.
8383 * cris-tdep.c (cris_init_extra_frame_info): Update.
8384 * avr-tdep.c (avr_init_extra_frame_info): Update.
8385 * arm-tdep.c (arm_frame_chain_valid): Update.
8386 (arm_init_extra_frame_info): Update.
8387 (arm_pop_frame): Update.
8388 * frame.c (frame_pc_unwind): Update.
8389 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8390 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8391 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8392 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8393 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8394 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8396 2003-03-12 Andrew Cagney <cagney@redhat.com>
8398 Eliminate the need for POP_FRAME.
8399 * frame.c (do_frame_unwind_register): New function.
8400 (frame_pop): When no POP_FRAME, pop the frame using register
8401 unwind and a scratch regcache.
8402 (frame_saved_regs_pop): Delete function.
8403 (trad_frame_unwinder): Update.
8404 * d10v-tdep.c (d10v_frame_pop): Delete function.
8405 (d10v_frame_unwind): Update.
8406 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8407 (sentinel_frame_unwinder): Update.
8408 * dummy-frame.c (dummy_frame_pop): Delete function.
8409 (dummy_frame_unwind): Update.
8410 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8411 (struct frame_unwind): Update.
8413 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8415 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8416 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8417 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8418 Do range checks on register number obtained from debugging info.
8419 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8420 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8421 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8423 (do_fp_register_row): Fix typo which caused double type to be
8424 used when attempting to unpack a float.
8426 2003-03-11 J. Brobecker <brobecker@gnat.com>
8428 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8430 2003-03-11 Andrew Cagney <cagney@redhat.com>
8432 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8433 frame. Problem found by Corinna Vinschen.
8435 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8437 * doublest.c (floatformat_from_length): Accept also
8438 the real size of 'long double' type.
8440 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8442 From Klee Dienes <kdienes@apple.com>:
8443 * breakpoint.c (bpstat_copy): Copy the command lines as well
8444 as the old value, to match what is freed in bpstat_clear.
8446 2003-03-10 David Carlton <carlton@math.stanford.edu>
8448 * minsyms.c (add_minsym_to_hash_table): Replace
8449 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8450 (compare_minimal_symbols, compact_minimal_symbols)
8451 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8452 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8453 of DEPRECATED_SYMBOL_MATCHES_NAME.
8454 (lookup_minimal_symbol_solib_trampoline): Ditto.
8456 2003-03-10 Andrew Cagney <cagney@redhat.com>
8458 * regcache.h (regcache_cooked_read_ftype): Define.
8459 (regcache_save, regcache_restore): Add a cooked_read parameter.
8460 * regcache.c (regcache_save, regcache_restore): Update.
8461 (do_cooked_read): New function.
8462 (regcache_cpy): Pass do_cooked_read to regcache_save and
8465 2003-03-10 Andrew Cagney <cagney@redhat.com>
8467 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8468 * gdbarch.h, gdbarch.c: Re-generate.
8469 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8470 * x86-64-tdep.h: Update.
8471 * x86-64-tdep.c (x86_64_init_abi): Update.
8472 * v850-tdep.c (v850_gdbarch_init): Update.
8473 * sparc-tdep.c (sparc_gdbarch_init): Update.
8474 * sh-tdep.c (sh_gdbarch_init): Update.
8475 * s390-tdep.c (s390_gdbarch_init): Update.
8476 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8477 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8478 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8479 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8480 * mips-tdep.c (mips_gdbarch_init): Update.
8481 * mcore-tdep.c (mcore_gdbarch_init): Update.
8482 * m68k-tdep.c (m68k_gdbarch_init): Update.
8483 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8484 * ia64-tdep.c (ia64_gdbarch_init): Update.
8485 * i386-tdep.c (i386_gdbarch_init): Update.
8486 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8487 * hppa-tdep.c (hppa_gdbarch_init): Update.
8488 * h8300-tdep.c (h8300_gdbarch_init): Update.
8489 * frv-tdep.c (frv_gdbarch_init): Update.
8490 * cris-tdep.c (cris_gdbarch_init): Update.
8491 * avr-tdep.c (avr_gdbarch_init): Update.
8492 * arm-tdep.c (arm_gdbarch_init): Update.
8493 * alpha-tdep.c (alpha_gdbarch_init): Update.
8494 * sh-tdep.c (sh_init_extra_frame_info): Update.
8495 (sh64_init_extra_frame_info): Update.
8496 * ns32knbsd-nat.c (frame_num_args): Update.
8497 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8498 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8499 (xstormy16_frame_chain_valid): Update.
8500 * vax-tdep.c (vax_saved_pc_after_call): Update.
8501 * v850-tdep.c (v850_frame_chain): Update.
8502 (v850_pop_frame): Update.
8503 (v850_init_extra_frame_info): Update.
8504 * sparc-tdep.c (setup_arbitrary_frame): Update.
8505 * ns32k-tdep.c (umax_frame_num_args): Update.
8506 * s390-tdep.c (s390_pop_frame_regular): Update.
8507 * mn10300-tdep.c (mn10300_frame_chain): Update.
8508 (mn10300_pop_frame_regular): Update.
8509 (mn10300_init_extra_frame_info): Update.
8510 * mips-tdep.c (mips_init_frame_pc_first): Update.
8511 (mips_frame_chain): Update.
8512 (mips_pop_frame): Update.
8513 * mcore-tdep.c (mcore_frame_chain): Update.
8514 (mcore_pop_frame): Update.
8515 (mcore_init_extra_frame_info): Update.
8516 * arch-utils.c (init_frame_pc_default): Update.
8517 * m68k-tdep.c (isi_frame_num_args): Update.
8518 (delta68_frame_num_args): Update.
8519 (news_frame_num_args): Update.
8520 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8521 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8522 (alpha_frame_chain): Update.
8523 (alpha_pop_frame): Update.
8524 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8525 (hppa_init_extra_frame_info): Update.
8526 (hppa_frame_chain): Update.
8527 (hppa_frame_chain_valid): Update.
8528 * cris-tdep.c (cris_init_extra_frame_info): Update.
8529 * avr-tdep.c (avr_init_extra_frame_info): Update.
8530 * arm-tdep.c (arm_frame_chain_valid): Update.
8531 (arm_init_extra_frame_info): Update.
8532 (arm_pop_frame): Update.
8533 * frame.c (frame_pc_unwind): Update.
8534 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8535 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8536 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8537 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8538 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8539 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8541 2003-03-10 Andrew Cagney <cagney@redhat.com>
8543 * gdbarch.sh (gdbarch_unwind_pc): New method.
8544 * gdbarch.h, gdbarch.c: Regenerate.
8545 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8546 but use read_pc and FRAME_SAVED_PC as fall backs.
8547 (frame_saved_regs_pc_unwind): Delete function.
8548 (trad_frame_unwinder): Update.
8549 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8550 (struct frame_unwind): Update.
8551 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8552 (dummy_frame_unwind): Update.
8553 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8554 (sentinel_frame_unwinder): Update.
8555 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8556 (d10v_frame_unwind): Update.
8557 (d10v_unwind_pc): New function.
8558 (d10v_gdbarch_init): Set unwind_pc.
8560 2003-03-10 Andrew Cagney <cagney@redhat.com>
8562 * gdbarch.h: Re-generate.
8564 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8566 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8569 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8571 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8573 2003-03-08 Andrew Cagney <cagney@redhat.com>
8575 * cli-out.c: Update copyright.
8576 (cli_out_data): Define typedef. Use instead of ui_out_data.
8578 2003-03-08 Andrew Cagney <cagney@redhat.com>
8580 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8583 2003-03-07 Andrew Cagney <cagney@redhat.com>
8585 * gdbarch.sh: Don't generate two macro definitions when an
8586 undefined macro taking no arguments.
8587 * gdbarch.h: Regenerate.
8589 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8591 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8592 (x86_64_unwind_dummy_id): New functions.
8593 (x86_64_init_abi): Register these two new functions.
8595 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8597 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8598 (x86_64_skip_prologue): Move prologue detection to
8600 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8602 2003-03-05 Andrew Cagney <cagney@redhat.com>
8604 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8605 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8606 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8607 to use unwind_dummy_id when a dummy frame.
8608 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8610 * gdbarch.h, gdbarch.c: Regneerate.
8612 2003-03-05 Andrew Cagney <cagney@redhat.com>
8614 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8615 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8616 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8619 2003-03-05 Andrew Cagney <cagney@redhat.com>
8621 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8622 (struct d10v_unwind_cache): Delete field "frameless". Replace
8623 "next_addr" with "sp_offset". Add "r11_offset".
8624 (d10v_frame_unwind_cache): Update.
8625 (prologue_find_regs): Update. When "mv r11, sp", save the
8626 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8627 RN was saved in r11_offset.
8629 2003-03-05 Andrew Cagney <cagney@redhat.com>
8631 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8632 cached PC value in the next frame.
8634 2003-03-05 Andrew Cagney <cagney@redhat.com>
8636 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8637 "id_unwind_cache" with "id".
8638 (frame_id_unwind): Delete declaration.
8639 * frame.c (frame_id_unwind): Delete function.
8640 (get_prev_frame): Call the frame id unwind method directly. Store
8641 the returned next frame's ID value in NEXT_FRAME. Note that there
8642 is a problem with the wrong unwind ID being called with the wrong
8645 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8647 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8649 2003-03-05 James Ingham <jingham@apple.com>
8650 Daniel Jacobowitz <drow@mvista.com>
8652 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8653 (auto_cp_abi): New variable.
8654 (current_cp_abi, num_cp_abis): Make static.
8655 (CP_ABI_MAX): Define.
8656 (cp_abis): Turn into an array.
8657 (value_virtual_fn_field): Fix formatting.
8658 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8660 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8661 (list_cp_abis, _initialize_cp_abi): New functions.
8662 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8663 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8664 switch_to_cp_abi. Update prototype for register_cp_abi.
8665 * Makefile.in (cp-abi.o): Update dependencies.
8666 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8667 instead of switch_to_cp_abi.
8668 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8670 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8672 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8674 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8676 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8677 * dwarf2loc.c: Include "regcache.h".
8678 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8680 * Makefile.in (dwarf2loc.o): Update dependencies.
8682 2003-03-04 Theodore A. Roth <troth@openavr.org>
8684 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8685 number of io registers reported by remote target is not a multiple of
8688 2003-03-04 David Carlton <carlton@math.stanford.edu>
8690 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8691 (lookup_symbol_aux_psymtabs): Update call to
8692 lookup_partial_symbol.
8693 (lookup_transparent_type, find_main_psymtab)
8694 (make_symbol_overload_list): Ditto.
8696 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8698 * MAINTAINERS (Write after approval): Update my email address.
8700 2003-03-03 Andrew Cagney <cagney@redhat.com>
8702 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8703 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8704 predicate. Replace MAX_REGISTER_RAW_SIZE.
8705 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8706 MAX_REGISTER_VIRTUAL_SIZE.
8707 * regcache.c (legacy_max_register_raw_size): New function.
8708 (legacy_max_register_virtual_size): New function.
8709 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8710 (MAX_REGISTER_RAW_SIZE): Define.
8711 (legacy_max_register_raw_size): Declare.
8712 (legacy_max_register_virtual_size): Declare.
8713 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8714 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8715 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8716 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8717 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8718 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8719 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8720 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8721 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8723 * vax-tdep.c (vax_gdbarch_init): Update.
8724 * v850-tdep.c (v850_gdbarch_init): Update.
8725 * sparc-tdep.c (sparc_gdbarch_init): Update.
8726 * sh-tdep.c (sh_gdbarch_init): Update.
8727 * s390-tdep.c (s390_gdbarch_init): Update.
8728 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8729 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8730 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8731 * mips-tdep.c (mips_gdbarch_init): Update.
8732 * mcore-tdep.c (mcore_gdbarch_init): Update.
8733 * m68k-tdep.c (m68k_gdbarch_init): Update.
8734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8735 * ia64-tdep.c (ia64_gdbarch_init): Update.
8736 * i386-tdep.c (i386_gdbarch_init): Update.
8737 * hppa-tdep.c (hppa_gdbarch_init): Update.
8738 * h8300-tdep.c (h8300_gdbarch_init): Update.
8739 * frv-tdep.c (frv_gdbarch_init): Update.
8740 * cris-tdep.c (cris_gdbarch_init): Update.
8741 * avr-tdep.c (avr_gdbarch_init): Update.
8742 * arm-tdep.c (arm_gdbarch_init): Update.
8743 * alpha-tdep.c (alpha_gdbarch_init): Update.
8744 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8745 max_register_raw_size or max_register_virtual_size.
8747 2003-03-03 David Carlton <carlton@math.stanford.edu>
8749 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8750 SYMBOL_MATCHES_NAME, add comment.
8751 (SYMBOL_MATCHES_NATURAL_NAME): New.
8752 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8753 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8754 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8755 * symtab.c (lookup_partial_symbol): Use
8756 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8758 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8759 SYMBOL_MATCHES_NAME.
8762 2003-03-03 David Carlton <carlton@math.stanford.edu>
8764 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8765 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8766 by regexp matching against SYMBOL_NATURAL_NAME.
8768 2003-03-03 David Carlton <carlton@math.stanford.edu>
8770 * linespec.c (find_method): Extract code into collect_methods.
8771 (collect_methods): New.
8773 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8775 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8778 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8779 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8781 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8783 * arch-utils.c (generic_register_byte): Fix to use the loop index
8784 and not regnum when summing the size of all registers up to regnum.
8786 2003-03-01 Andrew Cagney <cagney@redhat.com>
8788 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8789 FRAME_INIT_SAVED_REGS.
8790 * gdbarch.h, gdbarch.c: Regenerate.
8791 * stack.c (frame_info): Update.
8792 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8793 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8794 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8795 * ns32k-tdep.c (ns32k_pop_frame): Update.
8796 * mips-tdep.c (mips_pop_frame): Update.
8797 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8798 * ia64-tdep.c (ia64_frame_chain): Update.
8799 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8800 (ia64_frameless_function_invocation): Update.
8801 (ia64_init_extra_frame_info): Update.
8802 (ia64_pop_frame_regular): Update.
8803 * frame.h (struct frame_info): Update comment.
8804 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8805 * frame.c (frame_saved_regs_register_unwind): Update.
8806 (frame_saved_regs_register_unwind): Update.
8807 (deprecated_generic_get_saved_register): Update.
8808 * cris-tdep.c: Update comment.
8809 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8811 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8812 * x86-64-tdep.c (x86_64_init_abi): Update.
8813 * vax-tdep.c (vax_gdbarch_init): Update.
8814 * v850-tdep.c (v850_gdbarch_init): Update.
8815 * sparc-tdep.c (sparc_gdbarch_init): Update.
8816 * sh-tdep.c (sh_gdbarch_init): Update.
8817 * s390-tdep.c (s390_gdbarch_init): Update.
8818 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8819 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8820 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8821 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8822 * mips-tdep.c (mips_gdbarch_init): Update.
8823 * mcore-tdep.c (mcore_gdbarch_init): Update.
8824 * m68k-tdep.c (m68k_gdbarch_init): Update.
8825 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8826 * ia64-tdep.c (ia64_gdbarch_init): Update.
8827 * i386-tdep.c (i386_gdbarch_init): Update.
8828 * frv-tdep.c (frv_gdbarch_init): Update.
8829 * avr-tdep.c (avr_gdbarch_init): Update.
8830 * arm-tdep.c (arm_gdbarch_init): Update.
8831 * alpha-tdep.c (alpha_gdbarch_init): Update.
8833 2003-03-01 Andrew Cagney <cagney@redhat.com>
8835 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8836 option enum and switch. When no windows, set the interpreter to
8839 2003-03-01 Andrew Cagney <cagney@redhat.com>
8841 * main.c (captured_main): Replace magic option characters with an
8844 2003-03-01 Andrew Cagney <cagney@redhat.com>
8846 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8847 INIT_EXTRA_FRAME_INFO.
8848 * gdbarch.h, gdbarch.c: Regenerate.
8849 * arm-tdep.c: Update comments.
8850 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8851 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8852 * frame.h, avr-tdep.c: Ditto.
8853 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8854 (create_new_frame, legacy_get_prev_frame): Ditto.
8855 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8856 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8857 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8858 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8859 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8860 * v850-tdep.c (v850_gdbarch_init): Ditto.
8861 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8862 * sh-tdep.c (sh_gdbarch_init): Ditto.
8863 * s390-tdep.c (s390_gdbarch_init): Ditto.
8864 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8865 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8866 * mips-tdep.c (mips_gdbarch_init): Ditto.
8867 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8869 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8870 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8871 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8872 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8873 * frv-tdep.c (frv_gdbarch_init): Ditto.
8874 * cris-tdep.c (cris_gdbarch_init): Ditto.
8875 * avr-tdep.c (avr_gdbarch_init): Ditto.
8876 * arm-tdep.c (arm_gdbarch_init): Ditto.
8877 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8878 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8880 2003-03-01 Andrew Cagney <cagney@redhat.com>
8882 * gdbarch.sh (register_type): New function with predicate.
8883 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8884 * gdbarch.h, gdbarch.c: Re-generate.
8885 * arch-utils.c (generic_register_byte): Use generic_register_size.
8886 (generic_register_size): When available, use
8887 gdbarch_register_type.
8888 * regcache.c (init_regcache_descr): When available, initialize the
8889 register type array using gdbarch_register_type. If the
8890 architecture supplies gdbarch_register_type, do not use the legacy
8892 * d10v-tdep.c (d10v_register_type): Replace
8893 d10v_register_virtual_type.
8894 (d10v_gdbarch_init): Set register_type instead of
8895 register_virtual_type.
8897 2003-03-01 Andrew Cagney <cagney@redhat.com>
8899 * Makefile.in (ax-gdb.o): Update dependencies.
8900 * ax-gdb.c: Include "regcache.h".
8901 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8902 * findvar.c (value_of_register): Ditto.
8903 * infcmd.c (default_print_registers_info): Ditto.
8905 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8907 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8908 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8910 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8912 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8915 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8917 * Makefile.in (dwarf2loc.o): Update dependencies.
8918 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8919 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8920 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8921 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8922 (locexpr_tracepoint_var_ref): New function.
8923 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8925 2003-02-28 Andrew Cagney <cagney@redhat.com>
8927 * regcache.c (register_size): New function.
8928 * regcache.h (register_size): Declare
8929 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8930 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8932 2003-02-28 David Carlton <carlton@math.stanford.edu>
8934 * linespec.c (decode_compound): Extract code into find_method.
8937 2003-02-28 J. Brobecker <brobecker@gnat.com>
8939 * Makefile.in: Add rules to build and link in observer.o.
8941 2003-02-27 J. Brobecker <brobecker@gnat.com>
8943 * observer.c: Minor comments edits.
8945 2003-02-27 J. Brobecker <brobecker@gnat.com>
8947 * observer.h, observer.c: New file.
8949 2003-02-27 Andrew Cagney <cagney@redhat.com>
8951 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8953 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8955 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8956 (M6812_OP_STS_EXT): Likewise.
8957 (m6811_prologue): Use the above to recognize prologue.
8958 (m6812_prologue): Likewise.
8960 2003-02-27 David Carlton <carlton@math.stanford.edu>
8962 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8964 (compare_psymbols): Ditto.
8965 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8967 2003-02-27 Michael Snyder <msnyder@redhat.com>
8969 * f-lang.c (build_fortran_types): New function.
8970 (_initialize_f_language): Gdbarch-register built-in fortran types.
8971 * doublest.c (extract_floating): Fix warning text.
8973 2003-02-27 Andrew Cagney <cagney@redhat.com>
8975 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8976 predicate. Replaces PUSH_DUMMY_FRAME.
8977 * gdbarch.h, gdbarch.c: Regnerate.
8978 * valops.c (hand_function_call): Update. Call
8979 generic_push_dummy_frame directly.
8980 * vax-tdep.c (vax_gdbarch_init): Update.
8981 * sparc-tdep.c (sparc_gdbarch_init): Update.
8982 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8983 * m68k-tdep.c (m68k_gdbarch_init): Update.
8984 * hppa-tdep.c (hppa_gdbarch_init): Update.
8985 * alpha-tdep.c (alpha_gdbarch_init): Update.
8986 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8987 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8988 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8990 push_dummy_frame to generic_push_dummy_frame.
8991 * v850-tdep.c (v850_gdbarch_init): Ditto.
8992 * sh-tdep.c (sh_gdbarch_init): Ditto.
8993 * s390-tdep.c (s390_gdbarch_init): Ditto.
8994 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8995 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8996 * mips-tdep.c (mips_gdbarch_init): Ditto.
8997 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8999 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9000 * i386-tdep.c (i386_gdbarch_init): Ditto.
9001 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9002 * frv-tdep.c (frv_gdbarch_init): Ditto.
9003 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9004 * cris-tdep.c (cris_gdbarch_init): Ditto.
9005 * avr-tdep.c (avr_gdbarch_init): Ditto.
9006 * arm-tdep.c (arm_gdbarch_init): Ditto.
9008 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9010 * mips-tdep.c (show_mips_abi): New function.
9011 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9012 command ``show mips abi''.
9014 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9016 From Elena Zannoni <ezannoni@redhat.com>
9017 * dbxread.c (process_one_symbol): Only record line 0 if one or
9018 more sline entries have been seen for the function.
9020 2003-02-26 Michael Chastain <mec@shout.net>
9022 * configure: Regenerate with autoconf 000227.
9024 2003-02-26 Michael Chastain <mec@shout.net>
9027 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9028 for old libc5/glibc.
9029 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9031 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9033 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9034 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9036 2003-02-26 Michael Chastain <mec@shout.net>
9038 * configure.in: New variable HAVE_UINTPTR_T.
9039 * configure, config.in: Regenerated.
9041 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9044 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9046 2003-02-25 Andrew Cagney <cagney@redhat.com>
9048 * frame.c (get_prev_frame): Add comment on check for
9049 inside_entry_func. Only check for inside_entry_file when not a
9050 dummy and not a sentinel. Check that the new frame is not inner
9053 2003-02-25 Andrew Cagney <cagney@redhat.com>
9055 * frame.c (frame_debug): New variable.
9056 (_initialize_frame): Add "set/show debug frame" command.
9057 (get_prev_frame): When frame_debug, print reason why unwind
9060 2003-02-25 Michael Chastain <mec@shout.net>
9062 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9063 to avoid uintptr_t definition problems.
9065 2003-02-25 David Carlton <carlton@math.stanford.edu>
9067 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9068 (SYMBOL_LINKAGE_NAME): Ditto.
9069 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9070 SYMBOL_LINKAGE_NAME.
9071 (struct general_symbol_info): Expand comment.
9072 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9073 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9074 (SYMBOL_MATCHES_REGEXP): Ditto.
9075 * symtab.c (symbol_natural_name): New function.
9076 * objfiles.h: Replace all uses of SYMBOL_NAME by
9077 DEPRECATED_SYMBOL_NAME.
9078 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9079 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9080 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9081 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9082 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9083 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9084 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9085 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9086 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9087 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9089 * ada-exp.y: Update copyright.
9090 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9091 * cp-valprint.c: Ditto.
9093 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9095 * infptrace.c (detach): Do not flag error if ptrace detach fails
9096 and errno is set to ESRCH.
9098 2003-02-24 Andrew Cagney <cagney@redhat.com>
9100 * infptrace.c (udot_info): Change type of udot_off to long. Use
9101 paddr when printing udot_off's value.
9103 2003-02-24 David Carlton <carlton@math.stanford.edu>
9105 * symtab.c (make_symbol_overload_list): Only read in partial
9106 symtabs containing a matching partial symbol.
9108 2003-02-24 David Carlton <carlton@math.stanford.edu>
9110 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9111 do the comparison, not strcmp.
9112 * symfile.c (compare_psymbols): Ditto.
9113 * defs.h: Declare strcmp_iw_ordered.
9114 * utils.c (strcmp_iw_ordered): New function.
9116 2003-02-24 Jim Blandy <jimb@redhat.com>
9118 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9119 support, shared libs): Remove my name from here, to better reflect
9122 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9124 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9125 (target_ops): Add to_have_continuable_watchpoint.
9126 * target.c (update_current_target): Add INHERIT line for
9127 to_have_continuable_watchpoint.
9128 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9129 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9130 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9131 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9133 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9135 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9138 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9140 * solib.c (solib_open): Call target defined search function after
9141 failing with solib-search-path.
9142 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9143 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9145 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9147 * MAINTAINERS: Add myself to Write After section.
9149 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9151 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9153 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9155 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9156 (m68hc11_add_reggroups): New function.
9157 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9158 (m68hc11_gdbarch_init): Install the reggroups.
9159 (_initialize_m68hc11_tdep): Initialize them.
9161 2003-02-21 James E Wilson <wilson@tuliptree.org>
9163 * MAINTAINERS: Update my email address.
9165 2003-02-21 David Carlton <carlton@math.stanford.edu>
9167 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9169 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9171 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9172 * symtab.h: Add opaque declarations of struct axs_value and
9174 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9175 (struct location_funcs): New type.
9176 (struct symbol): Add "loc" to aux_value.
9177 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9178 * dwarf2read.c: Include "dwarf2expr.h".
9179 (dwarf2_symbol_mark_computed): New function.
9180 (read_func_scope): Use it.
9181 (var_decode_location): New function.
9182 (new_symbol): Use it.
9183 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9185 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9186 (dwarf2expr_h, dwarf2loc_h): New variables.
9187 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9188 (dwarf2expr.o, dwarf2loc.o): New rules.
9189 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9190 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9192 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9193 * m2-exp.y (yylex): Likewise.
9194 * printcmd.c (address_info, print_frame_args): Likewise.
9195 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9196 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9197 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9198 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9199 * symtab.c (lookup_block_symbol): Likewise.
9201 2003-02-20 Adam Fedor <fedor@gnu.org>
9203 * symtab.h: Remove objc_specific struct
9204 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9205 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9206 Have language_objc use cplus_specific struct.
9208 2003-02-20 Tom Tromey <tromey@redhat.com>
9210 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9211 TYPE_NAME, when printing a String value. PR java/1075.
9213 2003-02-20 Adam Fedor <fedor@gnu.org>
9215 * objc-lang.h (find_methods): Remove declaration.
9216 * objc-lang.c (find_methods): Make static.
9218 2003-02-20 Christopher Faylor <cgf@redhat.com>
9220 * win32-nat.c (get_image_name): Check return value from
9222 (child_xfer_memory): Ditto.
9224 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9226 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9227 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9228 '${exec_prefix}' (in addition to the expansion thereof) as
9230 * configure: Rebuilt.
9232 2003-02-20 David Carlton <carlton@math.stanford.edu>
9234 * symtab.c (search_symbols): Revert the search_symbols part of my
9235 2002-12-23 patch. Add comment.
9237 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9239 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9240 * dbxread.c (elfstab_build_psymtabs): Don't call
9241 install_minimal_symbols.
9242 (stabsect_build_psymtabs): Likewise.
9243 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9245 * somread.c (som_symfile_read): Call install_minimal_symbols
9246 and do_cleanups earlier.
9247 * nlmread.c (nlm_symfile_read): Likewise.
9248 * mdebugread.c (elfmdebug_build_psymtabs): Call
9249 install_minimal_symbols and make appropriate cleanups.
9251 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9253 * solib.c (reload_shared_libraries): New function.
9254 (_initialize_solib): Add callbacks for ``set solib-search-path''
9255 and ``set solib-absolute-prefix''.
9257 2003-02-20 David Carlton <carlton@math.stanford.edu>
9259 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9261 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9262 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9263 * ada-typeprint.c (ada_typedef_print): Ditto.
9264 * ax-gdb.c (gen_var_ref): Ditto.
9265 * breakpoint.c (print_one_breakpoint): Ditto.
9266 * buildsym.c (finish_block): Ditto.
9267 * c-valprint.c (c_val_print): Ditto.
9268 * expprint.c (print_subexp): Ditto.
9269 * findvar.c (locate_var_value): Ditto.
9270 * infcmd.c (jump_command): Ditto.
9271 * linespec.c (decode_line_2, decode_compound): Ditto.
9272 * maint.c (maintenance_translate_address): Ditto.
9273 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9274 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9276 * p-valprint.c (pascal_val_print): Ditto.
9277 * stabsread.c (define_symbol): Ditto.
9278 * stack.c (print_frame, frame_info, print_block_frame_locals)
9279 (print_frame_arg_vars, return_command): Ditto.
9280 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9281 * symmisc.c (print_symbol): Ditto.
9282 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9283 (compare_search_syms, print_symbol_info, print_msymbol_info)
9284 (rbreak_command): Ditto.
9285 * tracepoint.c (tracepoints_info): Ditto.
9286 * typeprint.c (typedef_print): Ditto.
9287 * valops.c (value_of_variable, hand_function_call): Ditto.
9288 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9289 * ada-typeprint.c: Update Copyright.
9290 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9291 * tracepoint.c, cli/cli-cmds.c: Ditto.
9293 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9295 * frame.c (generic_unwind_get_saved_register): Make non-static.
9296 * frame.h (generic_unwind_get_saved_register): Declare.
9297 * mips-tdep.c (read_next_frame_reg): Fetch register from
9298 current regcache when frame is NULL.
9299 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9301 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9302 instead of frame_register_unwind().
9304 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9306 * remote-sim.c (gdbsim_insert_breakpoint)
9307 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9310 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9312 * remote.c (_initialize_remote): Add commands "set/show remote
9313 hardware-watchpoint-limit" and "set/show remote
9314 hardware-breakpoint-limit".
9315 (remote_hw_watchpoint_limit): Initialize to -1.
9316 (remote_hw_breakpoint_limit): Ditto.
9317 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9319 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9321 * coff-pe-read.c: New file - support reading of minimal symbols from a
9322 portable executable using the export table.
9323 * coff-pe-read.h: New file.
9324 * coffread.c: Include coff-pe-read.h.
9325 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9326 debugging symbols found.
9327 * Makefile.in (SFILES): Add coff-pe-read.o.
9328 (coff_pe_read_h): Define.
9329 (COMMON_OBS): Add coff-pe-read.o.
9330 (coffread.o): Add coff_pe_read_h dependency.
9331 (coff-pe-read.o): New target.
9333 2003-02-19 David Carlton <carlton@math.stanford.edu>
9335 * Makefile.in (SFILES): Add block.c.
9337 (COMMON_OBS): Add block.o.
9339 (x86-64-tdep.o): Add $(block_h).
9340 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9341 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9342 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9343 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9344 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9345 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9346 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9347 * value.h: Add opaque declaration for struct block.
9348 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9349 * ada-lang.h: Ditto.
9350 * x86-64-tdep.c: #include "block.h"
9351 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9352 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9353 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9354 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9355 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9356 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9357 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9358 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9359 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9360 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9361 * symtab.c (block_function): Ditto.
9362 (contained_in): Ditto.
9363 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9364 block.h. Add opaque declaration for struct block.
9365 * symtab.h: Move block_function and contained_in declarations to
9366 block.h. Add opaque declarations for struct block, struct
9368 (struct block): Move to block.h.
9369 (struct blockvector): Ditto.
9370 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9371 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9372 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9373 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9374 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9376 * block.c: New file.
9377 * block.h: New file.
9379 2003-02-19 Theodore A. Roth <troth@openavr.org>
9381 * avr-tdep.c (avr_extract_return_value): Remove function.
9382 (avr_store_return_value): Remove function.
9383 (avr_extract_struct_value_address): Remove function.
9384 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9386 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9388 * rs6000-tdep.c: Include "gdb_assert.h".
9389 (registers_e500): Add "acc" and "spefscr".
9390 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9391 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9392 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9394 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9396 2003-02-18 Keith Seitz <keiths@redhat.com>
9398 * Makefile.in: Add gdbtk-interps.c.
9400 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9402 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9403 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9405 2003-02-18 Andrew Cagney <cagney@redhat.com>
9407 * symtab.h (struct objfile): Add opaque declaration.
9409 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9411 From Jim Ingham <jingham@apple.com>:
9412 * dbxread.c (process_one_symbol): Use last_function_start rather
9413 than function_start_offset to find the real beginning of the
9414 current function. The latter is just the text section offset on
9415 some systems, the former is always the real function start.
9417 2003-02-17 Andrew Cagney <cagney@redhat.com>
9419 * configure.in: Revert ${target} != ${host}.
9421 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9423 * configure.in (Makefile): Use the test ${target} != ${host},
9424 instead of the absence of the "nm.h" file, to determine of the
9425 configuration non-native.
9426 * configure: Regenerate.
9428 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9430 From Brian Ford <ford@vss.fsi.com>
9432 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9433 conditionalize tui_active test.
9434 (lookup_cmd_1): Ditto.
9436 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9438 * configure.in: Add check for _etext.
9439 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9441 * config.in, configure: regenerated.
9443 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9445 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9447 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9449 * main.c (tui_version): Delete variable.
9450 (captured_main): When --tui, set interpreter_p to "tui" instead of
9451 enabling tui_version.
9452 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9454 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9455 * cli/cli-cmds.c (disassemble_command): Ditto.
9456 * defs.h (tui_version): Delete declaration.
9457 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9458 (tui-interp.o): Add rules.
9459 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9461 2003-02-14 Christopher Faylor <cgf@redhat.com>
9463 * win32-nat.c (register_loaded_dll): Correctly set address range for
9466 2003-02-12 Jason Molenda (jmolenda@apple.com)
9468 * symmisc.c (print_objfile_statistics): Include information about
9469 the number of psymtabs and symtabs in each object file.
9471 2003-02-13 Keith R Seitz <keiths@redhat.com>
9473 * main.h (struct captured_main_args): Add interpreter_p.
9474 * main.c (captured_main): Initialize interpreter_p from context.
9475 * gdb.c (main): Set interpreter_p argument.
9476 * Makefile.in (gdb.o): Add dependency for interps.h.
9478 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9480 * event-top.c (cli_command_loop): Delete declaration.
9481 (_initialize_event_loop): Delete function setting event_loop_hook.
9482 * event-top.h (cli_command_loop): Declare. Update copyright.
9483 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9484 * interps.c (current_interp_command_loop): When event_loop_p, call
9487 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9489 * interps.h (interp_command_loop_ftype): Change return type to
9492 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9494 * x86-64-tdep.c (x86_64_extract_return_value)
9495 (x86_64_store_return_value): Use regcache instead of regbuf.
9496 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9497 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9499 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9501 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9502 * aclocal.m4: Regenerate.
9503 * configure: Regenerate.
9505 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9506 TCL_LD_SEARCH_FLAGS.
9508 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9510 * dwarf2cfi.c: Reindented.
9512 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9514 * interps.c (clear_interpreter_hooks): Convert function definition
9517 2003-02-07 David Carlton <carlton@math.stanford.edu>
9519 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9521 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9523 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9524 (struct type): ...to here.
9525 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9527 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9528 (replace_type): Set length on all type variants for a given type.
9530 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9532 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9534 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9536 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9538 * Makefile.in (symm-nat.o): Update dependencies.
9539 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9540 (lynx-nat.o, ia64-linux-nat.): Ditto.
9541 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9542 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9543 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9545 * Makefile.in (inflow_h): Define.
9546 (procfs.o, inflow.o, procfs.o): Update dependencies.
9547 * inftarg.c (child_stop): Delete extern declaration of
9548 inferior_process_group. Include "inflow.h".
9549 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9550 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9551 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9552 (our_process_group, inferior_process_group): Extern declarations.
9554 * procfs.c: Include "gdb_assert.h".
9556 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9557 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9558 * jv-typeprint.c (java_type_print_base): Ditto.
9559 * typeprint.c (typedef_print): Eliminate STREQ.
9560 * cli/cli-script.c (define_command, define_command): Ditto.
9561 * main.c (captured_main): Ditto.
9562 * values.c (lookup_internalvar): Ditto.
9563 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9564 within `if' conditional.
9565 * linespec.c (decode_line_2): Ditto.
9566 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9567 (bfd_openw_with_cleanup): Ditto.
9569 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9571 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9572 legacy_extract_return_value and store_return_value to
9573 legacy_return_value.
9575 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9577 * win32-nat.c (get_relocated_section_addrs): New function. Find
9578 section load addresses for symbol handling in relocated DLLs.
9579 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9581 2003-02-05 Fred Fish <fnf@intrinsity.com>
9583 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9585 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9587 (angel_RDI_info): Ditto.
9588 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9590 (threads_continue_all_with_signals): Ditto.
9592 2003-02-05 Jim Ingham <jingham@apple.com>
9593 Keith Seitz <keiths@redhat.com>
9594 Elena Zannoni <ezannoni@redhat.com>
9595 Andrew Cagney <ac131313@redhat.com>
9597 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9598 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9599 (SUBDIR_MI_OBS): Add "mi-interp.o".
9600 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9601 (SFILES): Add "interps.c".
9602 (COMMON_OBS): Add "interps.o".
9603 (interps_h, mi_main_h): Define.
9604 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9605 (mi-main.o, main.o, event-top.o): Update dependencies.
9606 * cli/cli-interp.c: New file.
9607 * interps.h, interps.c: New files.
9608 * top.c: (gdb_init): Don't install the default interpreter, handed
9610 * main.c: Include "interps.h".
9611 (interpreter_p): Note that it should malloc'ed.
9612 (captured_command_loop): Call current_interp_command_loop.
9613 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9614 xfree and xstrdup when updating interpreter_p. Install the
9615 default interpreter. Add hack to stop mi1's copyright notice
9617 * event-top.h (gdb_setup_readline): Declare.
9618 (gdb_disable_readline): Declare.
9619 * event-top.c: Include "interps.h".
9620 (display_gdb_prompt): Call current_interp_display_prompt_p.
9621 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9622 gdb_stdlog, and gdb_stdtarg.
9623 (_initialize_event_loop): Don't call gdb_setup_readline.
9624 * cli-out.c (cli_out_set_stream): New function.
9625 * cli-out.h (cli_out_set_stream): Declare.
9627 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9629 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9630 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9631 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9632 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9633 config/i386/i386v42mp.mt: Removed.
9635 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9637 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9640 2003-02-05 Michael Chastain <mec@shout.net>
9642 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9643 2.12.1 and earlier versions.
9645 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9647 Remove orphaned hosts, targets and files.
9648 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9649 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9650 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9651 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9652 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9653 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9654 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9655 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9656 * config/sparc/tm-sp64sim.h: Delete.
9657 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9659 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9660 mips*-dec-mach3* targets.
9662 2003-02-04 Michael Chastain <mec@shout.net>
9664 * NEWS: Fix typo: sepcifying -> specifying.
9666 2003-02-04 Michael Chastain <mec@shout.net>
9668 * dwarfread.c: Add documentation on the state of dwarf-1,
9669 looking towards obsoletion.
9671 2003-02-03 Michael Chastain <mec@shout.net>
9673 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9674 gdb/testsuite/gdb.c++/pr-1023.exp.
9676 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9678 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9679 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9681 * utils.c (init_page_info): Delete reference to MPW in comments.
9682 * main.c (captured_main): Delete #ifdef MPW.
9684 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9686 * NEWS: Note that the m32r-*-elf* is obsolete.
9687 * monitor.c (monitor_expect): Obsolete reference to m32r.
9688 * configure.tgt: Mark m32r-*-elf* as obsolete.
9689 * MAINTAINERS: Mark m32k as obsolete.
9690 * m32r-rom.c: Obsolete file.
9691 * config/m32r/m32r.mt: Obsolete file.
9692 * config/m32r/tm-m32r.h: Obsolete file.
9693 * m32r-stub.c: Obsolete file.
9694 * m32r-tdep.c: Obsolete file.
9696 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9698 * NEWS: Mention that the z8k-zilog-none is obsolete.
9699 * MAINTAINERS: Mark z8k as obsolete.
9700 * configure.tgt: Obsolete the z8k-*-coff* target.
9701 * config/z8k/z8k.mt: Obsolete file.
9702 * config/z8k/tm-z8k.h: Obsolete file.
9703 * z8k-tdep.c: Obsolete file.
9705 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9707 * NEWS: Mention that the mn10200-elf is obsolete.
9708 * configure.tgt: Obsolete mn10200-*-* target.
9709 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9710 mention that the mn10200 is obsolete.
9711 * breakpoint.h: Ditto.
9712 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9713 * config/mn10200/mn10200.mt: Obsolete file.
9714 * config/mn10200/tm-mn10200.h: Obsolete file.
9715 * mn10200-tdep.c: Obsolete file.
9717 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9719 * MAINTAINERS: Mark h8500 as obsolete.
9720 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9721 * findvar.c (value_from_register): Ditto.
9722 * h8500-tdep.c: Mark file as obsolete.
9723 * config/h8500/h8500.mt: Ditto.
9724 * config/h8500/tm-h8500.h: Ditto.
9725 * NEWS: Mention that h8500 is obsolete.
9727 2003-02-04 David Carlton <carlton@math.stanford.edu>
9729 * objfiles.c (allocate_objfile): Always set name. Add comment at
9731 * jv-lang.c (get_dynamics_objfile): Add comment.
9733 2003-02-04 David Carlton <carlton@math.stanford.edu>
9735 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9736 * printcmd.c (build_address_symbolic): Replace uses of
9737 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9738 SYMBOL_NAME, and asm_demangle.
9741 2003-02-04 David Carlton <carlton@math.stanford.edu>
9743 * linespec.c (decode_compound): Extract code into
9745 (lookup_prefix_sym): New function.
9747 2003-02-04 David Carlton <carlton@math.stanford.edu>
9749 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9750 FLOAT_COERCION_BADNESS.
9751 * gdbtypes.c (rank_one_type): Replace all uses of
9752 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9754 2003-02-04 Jim Blandy <jimb@redhat.com>
9756 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9757 section, let dwarf_macinfo_section point to it, not
9760 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9762 Pointed out by Anton Blanchard <anton@samba.org>.
9763 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9764 (ppc_linux_at_sigtramp_return_path): Use it.
9766 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9768 * defs.h (streq): Add prototype.
9769 * utils.c (streq): New function.
9771 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9772 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9773 * mdebugread.c (new_symbol): Likewise.
9774 * stabsread.c (define_symbol): Likewise.
9775 * coffread.c (process_coff_symbol): Likewise.
9776 * dwarfread.c (new_symbol): Likewise.
9778 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9779 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9781 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9782 SYMBOL_INIT_DEMANGLED_NAME.
9783 * objfiles.c: Include "hashtab.h".
9784 (allocate_objfile): Call htab_set_functions_ex for the
9785 demangled_names_hash.
9786 (free_objfile): Call htab_delete for the demangled_names_hash.
9787 * objfiles.h (struct htab): Add declaration.
9788 (struct objfile): Add demangled_names_hash.
9789 * symfile.c: Include "hashtab.h".
9790 (reread_symbols): Call htab_delete for the demangled_names_hash.
9791 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9792 SYMBOL_NAME in the bcache.
9793 * symtab.c: Include "hashtab.h". Update comments.
9794 (create_demangled_names_hash, symbol_set_names): New functions.
9795 (symbol_find_demangled_name): New function, broken out from
9796 symbol_init_demangled_names.
9797 (symbol_init_demangled_names): Use it.
9798 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9799 (SYMBOL_SET_NAMES): New macro.
9800 (symbol_set_names): Add prototype.
9802 2003-02-03 Jim Blandy <jimb@redhat.com>
9804 Use a single, consistent representation for an empty minimal
9805 symbol table in an objfile.
9806 * objfiles.c (terminate_minimal_symbol_table): New function.
9807 (allocate_objfile): Call it.
9808 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9809 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9811 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9812 objfile has minimal symbols, compare minimal_symbol_count to zero,
9813 instead of comparing msymbols with NULL.
9814 * objfiles.c (have_minimal_symbols): Same.
9815 * solib-sunos.c (solib_add_common_symbols): Call
9816 terminate_minimal_symbol_table.
9817 * symfile.c (reread_symbols): Same.
9819 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9821 * s390-tdep.c (s390_address_class_type_flags)
9822 (s390_address_class_type_flags_to_name)
9823 (s390_address_class_name_to_type_flags): New functions.
9824 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9825 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9827 2003-02-03 Michael Snyder <msnyder@redhat.com>
9829 * arm-tdep.c: Fix spell-o in comment.
9831 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9833 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9834 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9835 error messages to contain BFD filename.
9837 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9839 Fix PR gdb/742 gdb/743 gdb/877
9840 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9841 (do_mixed_source_and_assembly): Use
9842 make_cleanup_ui_out_tuple_begin_end and
9843 make_cleanup_ui_out_tuple_begin_end.
9844 (do_mixed_source_and_assembly): Ditto.
9845 * thread.c (do_captured_list_thread_ids): Ditto.
9846 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9847 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9848 ui_out_tuple_end): Delete prototypes.
9849 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9850 ui_out_list_end, ui_out_tuple_end): Delete.
9852 From Kevin Buettner <kevinb@redhat.com>:
9853 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9854 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9855 (do_cleanup_table_end): New functions.
9856 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9857 Use cleanups to invoke_ui_out_tuple_end().
9858 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9859 * cli/cli-setshow.c (cmd_show_list): Use
9860 make_cleanup_ui_out_tuple_begin_end.
9862 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9864 * frame.c (frame_unwind_register): New function.
9865 (frame_unwind_unsigned_register): Use.
9866 (frame_unwind_signed_register): Use.
9867 (frame_read_register): New function.
9868 * frame.h (frame_unwind_register): Declare.
9869 (frame_read_register): Declare.
9871 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9872 and frame_unwind_register instead of read_memory, write_register
9873 and deprecated_write_register_bytes.
9875 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9877 * frame.h: Note that namelen can be negative.
9878 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9881 * NEWS: Mention that the d10v's `regs' command is deprecated.
9882 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9883 (d10v_print_registers_info): New function.
9884 (show_regs): Call d10v_print_registers_info.
9885 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9887 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9889 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9890 lost in the previous patch.
9892 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9894 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9895 * stack.c (print_frame_info_base): Output complete FRAME tuple
9896 for synthesized frames.
9898 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9900 * mips-nat.c (zerobuf): Delete.
9901 (fetch_inferior_registers): Alloc local zerobuf.
9902 (fetch_core_registers): Alloc local zerobuf.
9903 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9904 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9905 * thread-db.c (thread_db_store_registers): Ditto.
9906 * sh-tdep.c (sh_do_register): Ditto.
9907 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9908 * remote-sim.c (gdbsim_store_register): Ditto.
9909 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9910 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9911 * monitor.c (monitor_supply_register): Ditto.
9912 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9913 * mips-nat.c (fetch_inferior_registers): Ditto.
9914 * m68klinux-nat.c (fetch_register): Ditto.
9915 * lynx-nat.c (fetch_inferior_registers): Ditto.
9916 (fetch_inferior_registers): Ditto.
9917 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9918 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9919 (hpux_thread_store_registers): Ditto.
9920 * hppah-nat.c (fetch_register): Ditto.
9921 * hppab-nat.c (fetch_register): Ditto.
9922 * hppa-tdep.c (pa_register_look_aside): Ditto.
9923 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9924 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9926 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9928 * gdbarch.sh: Explictly specify all method levels. When a
9929 variable with an empty level, provide a non-multi-arch default.
9930 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9931 * gdbarch.h: Re-generate.
9932 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9933 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9935 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9937 * defs.h (host_pointer_to_address): Delete declaration.
9938 (address_to_host_pointer): Delete declaration.
9939 * utils.c (host_pointer_to_address): Delete function.
9940 (address_to_host_pointer): Delete function.
9941 * procfs.c (procfs_address_to_host_pointer): New function.
9942 * procfs.c (proc_set_watchpoint): Use.
9943 (procfs_can_use_hw_breakpoint): Update comments.
9944 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9945 (som_solib_add): Use.
9946 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9947 * hppa-tdep.c (unwind_command): Use.
9949 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9951 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9954 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9955 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9956 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9957 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9958 (define_symbol): Update.
9959 * symfile.c (generic_load): Remove references to nindy.
9960 * symtab.c: Remove references to nindy.
9962 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9964 * infcmd.c (print_float_info): Delete code conditional on
9966 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9967 * config/m68k/nm-apollo68b.h: Ditto.
9968 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9969 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9970 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9972 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9974 * config/i386/tm-i386os9k.h: Removed.
9976 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9977 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9978 they're identical to i[3456]86-*-sysv* now.
9979 * config/i386/i386v32.mh: Removed.
9980 * config/i386/xm-i386v32.h: Removed.
9981 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9983 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9985 * config/i386/i386dgux.mh: Removed.
9986 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9988 * configure.in: Fix typo.
9989 * configure: Regenerated.
9991 2003-01-31 David Carlton <carlton@math.stanford.edu>
9993 * dwarf2read.c (dwarf2_locate_sections): Set
9994 dwarf_ranges_section.
9996 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9998 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9999 * utils.c: Update comments documenting legitimate uses of PTR.
10001 * utils.c: Re-indent.
10003 * config/djgpp/fnchange.lst: Delete nindy files.
10004 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10005 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10006 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10007 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10008 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10009 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10010 * Makefile.in (init.c): Remove nindy references.
10011 (saber_gdb): Delete rule.
10012 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10013 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10015 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10016 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10017 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10018 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10019 nindy-share/stop.h.
10020 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10021 * saber.suppress: Delete file.
10023 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10025 * dbxread.c (stabs_data): New static variable.
10026 (fill_symbuf): Support an in-memory buffer for stabs data.
10027 (stabs_seek): New function.
10028 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10029 (read_ofile_symtab): Use stabs_seek.
10030 (elfstab_build_psymtabs): Take an asection* instead of
10031 an offset and size. Relocate the stabs data if necessary.
10032 Save the section* for dbx_psymtab_to_symtab.
10033 * dwarf2read.c: Add section variables for each debug section.
10034 (dwarf2_locate_sections): Fill them in.
10035 (dwarf2_read_section): Take an asection* argument.
10036 Relocate the section contents if necessary.
10037 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10038 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10039 it to dwarf2_read_section.
10040 (dwarf2_build_frame_info): Update callers.
10041 * elfread.c (elf_symfile_read): Update call to
10042 elfstab_build_psymtabs.
10043 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10044 (DBX_STAB_SECTION): New macro.
10045 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10046 * symfile.c (symfile_dummy_outputs): New function.
10047 (symfile_relocate_debug_section): New function.
10048 * symfile.h (symfile_relocate_debug_section): Add prototype.
10050 2003-01-31 Richard Henderson <rth@redhat.com>
10052 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10053 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10054 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10055 * alpha-tdep.c (alpha_register_name): Add "unique".
10056 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10057 (ALPHA_UNIQUE_REGNUM): New.
10058 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10060 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10062 * README: Remove reference to Ericsson 1800 monitor.
10063 * Makefile.in (remote-es.o): Delete rule.
10064 (ALLDEPFILES): Delete remote-es.c.
10065 * remote-es.c: Delete file.
10066 * config/m68k/es1800.mt: Delete file.
10067 * config/djgpp/fnchange.lst: Update.
10068 * configure.tgt: Delete m68*-ericsson-* target.
10070 2003-01-31 Adam Fedor <fedor@gnu.org>
10072 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10073 Remove duplicate/shadowing variable of same name.
10075 2003-01-30 Jim Blandy <jimb@redhat.com>
10077 * symfile.c (find_separate_debug_file): Assert that the objfile's
10078 directory name we compute ends with a slash, and then assume that
10079 that's so everywhere we use it.
10081 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10083 * valops.c (value_assign): Flush frame cache after stores to memory
10086 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10088 * Makefile.in (mon960-rom.o): Delete rule.
10089 * mon960-rom.c: Delete file.
10091 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10093 * d10v-tdep.c: Include "frame-unwind.h".
10094 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10096 (next_addr, uses_frame): Delete.
10097 (struct d10v_unwind_cache): Define.
10098 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10099 Use info instead of next_addr and uses_frame globals.
10100 (d10v_frame_init_saved_regs): Delete function.
10101 (d10v_init_extra_frame_info): Delete function.
10102 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10103 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10104 init_frame_pc or frame_saved_pc.
10105 (d10v_pop_frame): Delete function.
10106 (do_d10v_pop_frame): Delete function.
10107 (d10v_frame_chain): Delete function.
10108 (d10v_frame_chain_valid): Delete function.
10109 (d10v_frame_pc_unwind): New function.
10110 (d10v_frame_id_unwind): New function.
10111 (saved_regs_unwinder): New function.
10112 (d10v_frame_register_unwind): New function.
10113 (d10v_frame_pop): New function.
10114 (d10v_frame_unwind): New variable.
10115 (d10v_frame_p): New function.
10116 (d10v_frame_saved_pc): Delete function.
10117 * Makefile.in (d10v-tdep.o): Update dependencies.
10119 2003-01-30 J. Brobecker <brobecker@gnat.com>
10121 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10122 causing some regressions due to a change in the default value
10125 2003-01-29 Richard Henderson <rth@redhat.com>
10126 Elena Zannoni <ezannoni@redhat.com>
10127 Daniel Jacobowitz <drow@mvista.com>
10130 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10132 (RANGES_SECTION): New.
10133 (dwarf_ranges_buffer): New variable.
10134 (struct comp_unit_head): Add member "die".
10135 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10136 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10137 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10138 (dwarf2_locate_sections): Likewise.
10139 (dwarf2_build_psymtabs): Read .debug_ranges.
10140 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10141 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10142 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10143 Look for DW_AT_ranges and return the bounding box.
10145 2003-01-29 Brian Ford <ford@vss.fsi.com>
10147 * win32-nat.c (cygwin_pid): Removed as unused.
10148 (child_attach): Try fall back to Cygwin pid.
10150 2003-01-29 Jim Blandy <jimb@redhat.com>
10152 * objfiles.h (struct objfile): Doc fix.
10154 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10156 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10157 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10158 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10159 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10160 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10161 (FRAME_SAVED_PC): Change to a function with predicate.
10162 * gdbarch.h, gdbarch.c: Re-generate.
10164 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10166 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10168 * complaints.c (complain): Delete function.
10169 * complaints.h (struct deprecated_complaint): Delete definition.
10170 (complain): Delete declaration.
10172 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10174 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10177 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10179 * sentinel-frame.h, sentinel-frame.c: New files.
10180 * Makefile.in (frame.o): Update dependencies.
10181 (SFILES): Add sentinel-frame.c.
10182 (sentinel_frame_h): Define.
10183 (COMMON_OBS): Add sentinel-frame.o.
10184 (sentinel-frame.o): Specify dependencies.
10185 * frame.c: Include "sentinel-frame.h".
10186 (frame_register_unwind): Rewrite assuming that there is always a a
10188 (frame_register, generic_unwind_get_saved_register): Ditto.
10189 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10190 (create_sentinel_frame, unwind_to_current_frame): New functions.
10191 (get_current_frame): Rewrite using create_sentinel_frame and
10192 unwind_to_current_frame. When possible, always create a frame.
10193 (create_new_frame): Set next to the sentinel frame.
10194 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10195 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10196 ID cache when necessary.
10197 (frame_saved_regs_id_unwind): Use frame_relative_level.
10198 (deprecated_generic_get_saved_register): Use frame_relative_level,
10199 get_frame_saved_regs, get_frame_pc, get_frame_base and
10201 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10204 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10206 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10208 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10210 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10211 (maintenance_set_profile_cmd): Use error () instead of warning ().
10213 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10215 * configure.in: Check that -pg works if using --enable-profiling.
10216 Check for monstartup and _mcleanup regardless of --enable-profiling.
10217 * maint.c: Check for monstartup and _mcleanup before using them.
10218 * config.in: Regenerated.
10219 * configure: Regenerated.
10221 2003-01-24 Nick Clifton <nickc@redhat.com>
10223 * Add sh2e support:
10225 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10227 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10228 (sh2e_show_regs): New.
10229 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10230 * config/sh/tm-sh.h: Added sh2e to comments.
10232 2003-01-23 Jim Blandy <jimb@redhat.com>
10234 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10235 symbols found)" message here; we haven't checked for a separate
10236 debug info file yet, so we don't know yet.
10237 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10238 we've looked everywhere. Also, there's no need to print a special
10239 message when we're loading the separate debug info file: the one
10240 symbol_file_add prints is fine.
10242 2003-01-23 Alexander Larsson <alexl@redhat.com>
10243 Jim Blandy <jimb@redhat.com>
10245 Add support for executables whose debug info has been separated
10246 out into a separate file, leaving only a link behind.
10247 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10248 and separate_debug_objfile_backlink.
10249 (put_objfile_before): New declaration.
10250 * symfile.c: #include "filenames.h".
10251 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10252 debug info in a separate file, read that, too. Save the addrs
10253 argument, so we can use it again to read the separated debug info;
10254 syms_from_objfile modifies the table we pass it.
10255 (reread_symbols): After re-reading an objfile, call
10256 reread_separate_symbols to refresh its separate debug info
10257 objfile, if it has one.
10258 (reread_separate_symbols, find_separate_debug_file,
10259 get_debug_link_info, separate_debug_file_exists): New functions.
10260 (debug_file_directory): New global var.
10261 (_initialize_symfile): Initialize debug_file_directory, and
10262 provide the new `set debug-file-directory' command to let the user
10264 * objfiles.c (free_objfile): If this objfile has its debug info in
10265 a separate objfile, free that one too. If this is itself a
10266 separate debug info objfile, clear our parent's backlink.
10267 (put_objfile_before): New function.
10268 * utils.c (gnu_debuglink_crc32): New function.
10269 * defs.h (gnu_debuglink_crc32): New declaration.
10270 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10271 * configure.in: Handle --with-separate-debug-dir config option.
10272 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10273 * acconfig.h (DEBUGDIR): New macro.
10274 * configure, aclocal.m4, config.in: Regenerated.
10276 2003-01-22 Jim Blandy <jimb@redhat.com>
10278 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10279 like the old symbol_file_add, but taking new arguments: you can
10280 now pass in either a `struct section_addr_info' list to say where
10281 each section is loaded, or a `struct section_offsets' table. Pass
10282 these new arguments through to syms_from_objfile as appropriate.
10283 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10284 with the appropriate quiescent values for the new arguments.
10286 * symfile.c: #include "gdb_assert.h".
10287 (syms_from_objfile): Add the ability to pass in a section offset
10288 table directly, as an alternative to the section_addr_info table.
10289 Document arguments better.
10290 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10291 * symfile.h (syms_from_objfile): Update declaration.
10292 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10294 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10296 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10298 Original patch by Tom Tromey <tromey@cygnus.com> and
10299 Jason Molenda <jmolenda@apple.com>.
10300 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10301 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10302 * NEWS: Mention profiling.
10303 * configure.in (--enable-gdbtk): Fix typo.
10304 (--enable-profiling): New. Set PROFILE_CFLAGS.
10305 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10307 (profiling_state): New variable.
10308 (mcleanup_wrapper): New function.
10309 (_initialize_maint): Remove NOTYET, fix call to
10310 add_setshow_boolean_cmd for "maint set profile".
10311 * configure: Regenerated.
10313 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10315 * Makefile.in (install-gdbtk): Install PNG images too.
10317 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10319 * exec.c (text_start): Delete global variable.
10320 (exec_file_attach): Make text_start local to the function.
10321 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10322 * valops.c (hand_function_call): Delete code that handles
10323 BEFORE_TEXT_END and AFTER_TEXT_END.
10324 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10325 of CALL_DUMMY_LOCATION.
10326 * gdbarch.c: Regenerate.
10327 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10328 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10329 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10330 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10331 (text_end): Delete extern declaration.
10333 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10335 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10336 * blockframe.c (backtrace_below_main): Move to "frame.c".
10337 (frame_chain_valid): Delete check for backtrace_below_main.
10338 (_initialize_blockframe): Delete initialization, move ``set
10339 backtrace-below-main'' command to "frame.c".
10340 (do_flush_frames_sfunc): Delete function.
10341 * frame.c: Include "command.h" and "gdbcmd.h".
10342 (frame_type_from_pc): New function.
10343 (create_new_frame): Use frame_type_from_pc.
10344 (legacy_get_prev_frame): New function.
10345 (get_prev_frame): Rewrite. When an old style frame, call
10346 legacy_get_prev_frame. Otherwize, unwind the PC first.
10347 (_initialize_frame): Add ``set backtrace-below-main'' command.
10348 * Makefile.in (frame.o): Update dependencies.
10350 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10352 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10353 DEPRECATED_REGISTERS_INFO.
10355 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10357 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10358 Maintainers'. Update `Various Maintainers'.
10360 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10362 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10363 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10364 Suppress actual parameters when `-'.
10365 * gdbarch.h, gdbarch.c: Regenerate.
10367 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10369 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10370 code handling dummy frames.
10372 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10374 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10375 (struct frame_unwind): Add field pop.
10376 * frame.h (frame_pop): Declare.
10377 * frame.c (frame_saved_regs_pop): New function.
10378 (trad_frame_unwinder): Add frame_saved_regs_pop.
10379 (frame_pop): New function.
10380 * dummy-frame.c (dummy_frame_pop): New function.
10381 (discard_innermost_dummy): New function.
10382 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10383 (dummy_frame_unwind): Add dummy_frame_pop.
10384 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10385 * valops.c (hand_function_call): Ditto.
10386 * stack.c (return_command): Ditto.
10388 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10390 * cris-tdep.c: Fix function declaration indentation.
10391 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10392 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10393 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10394 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10395 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10396 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10398 2003-01-18 Michael Chastain <mec@shout.net>
10400 * README (Unpacking and Installation -- quick overview):
10401 Warn against ".../gdb-5.3/gdb/configure".
10403 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10405 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10406 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10407 (struct frame_unwind): Declare opaque.
10408 (dummy_frame_p): Declare function.
10409 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10410 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10411 * dummy-frame.c: Include "frame-unwind.h".
10412 (dummy_frame_p): New function.
10413 (dummy_frame_unwind): New variable.
10414 * frame.c: Include "frame-unwind.h".
10415 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10416 to use the new unwind field.
10417 (set_unwind_by_pc): Delete function.
10418 (create_new_frame, get_prev_frame): Set unwind field using
10419 frame_unwind_find_by_pc.
10420 (trad_frame_unwind, trad_frame_unwinder): New variables.
10421 * frame.h (trad_frame_unwind): Declare variable.
10422 (frame_id_unwind_ftype): Delete declaration.
10423 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10424 (struct frame_unwind): Declare opaque.
10425 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10426 register_unwind with a single unwind pointer.
10427 * frame-unwind.h, frame-unwind.c: New files.
10428 * Makefile.in (SFILES): Add frame-unwind.c.
10429 (frame_unwind_h): Define.
10430 (COMMON_OBS): Add frame-unwind.o.
10431 (frame-unwind.o): Specify dependencies.
10432 (frame.o, dummy-frame.o): Update dependencies.
10434 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10436 * ada-valprint.c: Eliminate PTR.
10437 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10438 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10439 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10440 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10441 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10442 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10443 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10445 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10447 * main.c (captured_main): Don't use PTR.
10448 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10449 * gdbtypes.c (lookup_primitive_typename): Ditto.
10450 (lookup_struct_elt_type): Ditto.
10451 * f-valprint.c (info_common_command): Ditto.
10452 (list_all_visible_commons): Ditto.
10453 * jv-typeprint.c (java_type_print_base): Ditto.
10455 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10456 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10457 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10458 i386-interix-nat.c and i386-interix-tdep.c. Rename
10459 m68klinux-nat.c and m68klinux-tdep.c. Rename
10460 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10461 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10462 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10463 * main.c (captured_main): Use xfree, not free.
10465 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10467 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10468 ID back using a parameter.
10469 * frame.c (frame_id_unwind): Update call.
10470 (frame_saved_regs_id_unwind): Update.
10471 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10472 * dummy-frame.h (struct frame_id): Add opaque declaration.
10473 (dummy_frame_id_unwind): Update declaration.
10475 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10477 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10479 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10481 * MAINTAINERS (Stephen P. Smith): Updated email address.
10483 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10486 * breakpoint.c (until_break_command): Add new argument. Use it to
10487 decide whether to stop only at the current frame or not.
10488 * breakpoint.h (until_break_command): Update prototype.
10489 * infcmd.c (until_command): Add new argument to until_break_command
10491 (advance_command): New function.
10492 (_initialize_infcmd): Update help string for 'until' command.
10493 Add new 'advance' command.
10495 2003-01-14 David Carlton <carlton@math.stanford.edu>
10497 * linespec.c (decode_line_1): Normalize comments.
10498 (set_flags): Ditto.
10499 (locate_first_half): Ditto.
10500 (decode_compound): Ditto.
10501 (symtab_from_filename): Ditto.
10502 (decode_all_digits): Ditto.
10503 (decode_dollar): Ditto.
10504 (find_methods): Ditto.
10505 (find_toplevel_char): Ditto.
10507 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10509 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10510 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10511 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10512 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10513 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10514 * language.c, language.h, m32r-tdep.c: Update copyright.
10515 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10516 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10517 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10518 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10519 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10520 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10522 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10524 * stabsread.h (process_later, resolve_cfront_continuation):
10526 Update copyright years.
10527 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10528 Update copyright year.
10529 * dbxread.c(struct cont_elem): Obsolete.
10530 (process_later, process_now): Obsolete functions.
10531 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10532 Update copyright year.
10533 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10534 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10535 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10536 (parse_partial_symbols): Obsolete cfront support.
10538 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10540 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10541 read_cfront_baseclasses, read_cfront_member_functions,
10542 resolve_cfront_continuation,read_cfront_static_fields,
10543 copy_cfront_struct_fields): Obsolete functions.
10544 (define_symbol, read_one_struct_field): Obsolete cfront support.
10545 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10546 Update Copyright year.
10548 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10550 * stack.c (print_frame_info, print_stack_frame_base_stub,
10551 print_stack_frame_base, show_and_print_stack_frame_stub,
10552 show_and_print_stack_frame, print_only_stack_frame_stub,
10553 print_only_stack_frame): Delete functions.
10554 (print_stack_frame_stub): Call print_frame_info instead of
10555 print_frame_info_base.
10556 (print_frame_info_base): Rename to print_frame_info.
10557 (backtrace_command_1): Call print_frame_info, instead of
10558 print_frame_info_base.
10559 (current_frame_command): Call print_stack_frame, instead of
10560 print_only_stack_frame.
10561 (frame_command): Call print_stack_frame, instead of
10562 show_and_print_stack_frame.
10563 (up_command): Ditto.
10564 (down_command): Ditto.
10565 * frame.h (print_only_stack_frame): Delete prototype.
10566 * infrun.c (normal_stop): Call print_stack_frame, instead of
10567 show_and_print_stack_frame.
10568 * thread.c (info_threads_command): Call print_stack_frame, instead
10569 of print_only_stack_frame.
10571 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10573 * README (Graphical interface to GDB): Update URL. Point at
10576 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10579 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10581 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10584 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10586 * thread-db.c (attach_thread): Prototype.
10587 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10588 thread information (ti), and valid flags (th_valid, ti_valid).
10589 (attach_thread): Move target_pid_to_str call to after the thread
10590 is added to GDB's list. Initialize the cache.
10591 (thread_get_info_callback, thread_db_map_id2thr)
10592 (thread_db_get_info): New functions.
10593 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10594 (thread_db_store_registers, thread_db_thread_alive)
10595 (thread_db_get_thread_local_address): Use them.
10596 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10597 of calling error() for threads in unknown state.
10599 (clear_lwpid_callback): New function.
10600 (thread_db_resume): Use it to clear the cache.
10602 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10604 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10605 (resume_callback): Remove dead code.
10607 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10609 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10611 * gdbarch.h, gdbarch.c: Regenerate.
10612 * stack.c (frame_info): Only initialize the saved registers when
10613 FRAME_INIT_SAVED_REGS_P.
10614 * frame.c (frame_saved_regs_register_unwind): Assert
10615 FRAME_INIT_SAVED_REGS_P.
10616 (deprecated_generic_get_saved_register): Ditto.
10618 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10620 * source.c (openp): Squelch warning about "filename".
10622 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10624 * source.c (openp): If the file does not exist don't necessarily
10627 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10630 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10631 (integer_types_same_name_p): New function.
10632 (rank_one_type): Use it.
10633 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10635 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10637 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10639 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10640 * configure.in: Add --with-sysroot.
10641 * configure: Regenerated.
10642 * main.c (gdb_sysroot): New variable.
10643 (captured_main): Initialize gdb_sysroot.
10644 * defs.h (gdb_sysroot): New extern declaration.
10645 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10647 2003-01-12 Michael Chastain <mec@shout.net>
10649 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10651 2003-01-12 Michael Chastain <mec@shout.net>
10653 * top.c (print_gdb_version): Bump copyright year to 2003.
10655 2003-01-12 David Carlton <carlton@bactrian.org>
10657 * linespec.c (symtab_from_filename): Rename variable 's' to
10660 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10662 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10664 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10666 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10668 * d10v-tdep.c: Include "gdb_assert.h".
10669 (d10v_store_return_value): Rewrite to match current interface.
10670 (d10v_extract_struct_value_address): Ditto.
10671 (d10v_extract_return_value): Ditto.
10672 (d10v_gdbarch_init): Set store_restore_value,
10673 extract_struct_value_address and extract_return_value.
10675 2003-01-12 J. Brobecker <brobecker@gnat.com>
10677 * hpread.c (set_namestring): New procedure replacing the
10678 SET_NAMESTRING macro.
10679 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10680 by calls to set_namestring.
10682 2003-01-11 J. Brobecker <brobecker@gnat.com>
10684 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10685 a compilation warning.
10686 (hpread_process_one_debug_symbol): Likewise.
10688 2003-01-10 David Carlton <carlton@math.stanford.edu>
10690 * linespec.c (decode_line_1): Rename variable 's' to
10692 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10693 (decode_dollar): Ditto.
10694 (decode_variable): Ditto.
10695 (symbol_found): Ditto.
10697 2003-01-09 Michael Chastain <mec@shout.net>
10699 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10701 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10703 * win32-nat.c (set_process_privilege): New function.
10704 (child_attach): Call set_process_privilege() to enable the
10705 SE_DEBUG_NAME user privilege if available in process token.
10707 2003-01-10 J. Brobecker <brobecker@gnat.com>
10709 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10710 compilation error in the previous revision.
10712 2003-01-09 David Carlton <carlton@math.stanford.edu>
10714 * linespec.c: Update copyright.
10716 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10718 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10719 than inferior_ptid.
10720 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10722 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10724 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10726 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10727 (frame_saved_regs_zalloc): Update.
10728 (frame_saved_regs_register_unwind): Update.
10729 (create_new_frame): Update.
10730 (get_prev_frame): Update.
10731 (frame_extra_info_zalloc): Update.
10732 (deprecated_get_frame_saved_regs): Update.
10733 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10734 * cris-tdep.c: Update comment.
10736 * somsolib.h: Fix function indentation.
10737 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10738 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10739 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10740 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10741 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10743 * infrun.c (follow_fork): Use ISO C definition.
10744 * expprint.c (print_subexp): Use xfree instead of free.
10745 * charset.c: Include "gdb_string.h" instead of <string.h>.
10746 (register_iconv_charsets): Use ISO C definition.
10747 (host_charset, target_charset): Ditto.
10748 * Makefile.in (charset.o): Update dependencies.
10749 (mi-cmd-env.o): Update dependencies.
10751 2003-01-08 Andrew Cagney <cagney@redhat.com>
10753 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10756 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10758 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10759 build directories. Save edited gdb output in Mbuild.log. If a
10760 build fails, remove any final GDB executable.
10762 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10764 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10765 replacing hex constants with function names and stripping leading
10766 file name directory prefixes.
10768 2003-01-08 Andrew Cagney <cagney@redhat.com>
10770 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10773 2003-01-08 David Carlton <carlton@math.stanford.edu>
10775 * linespec.c (decode_line_1): Move code into decode_variable.
10776 (decode_variable): New function.
10778 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10780 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10782 2003-01-08 Andrew Cagney <cagney@redhat.com>
10784 * cris-tdep.c (cris_frame_init_saved_regs): Use
10785 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10787 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10788 (sh64_nofp_frame_init_saved_regs): Ditto.
10789 (sh_fp_frame_init_saved_regs): Ditto.
10790 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10791 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10792 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10793 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10795 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10797 * minsyms.c (lookup_minimal_symbol): Update comment.
10798 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10799 (lookup_minimal_symbol_solib_trampoline): Likewise.
10801 2003-01-08 Andrew Cagney <cagney@redhat.com>
10803 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10804 frame_relative_level.
10806 * alpha-tdep.c: Use get_frame_extra_info.
10807 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10808 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10809 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10810 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10812 * alpha-tdep.c: Use get_next_frame.
10813 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10814 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10815 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10816 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10817 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10818 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10819 * xstormy16-tdep.c: Ditto.
10821 2003-01-07 Andrew Cagney <cagney@redhat.com>
10823 * alpha-tdep.c: Use get_frame_base.
10824 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10825 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10826 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10827 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10828 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10829 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10830 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10831 * config/sparc/tm-sparc.h: Ditto.
10833 2003-01-07 Andrew Cagney <cagney@redhat.com>
10835 * frame.c (deprecated_get_frame_context): New function.
10836 (deprecated_set_frame_context): New function.
10837 * frame.h (deprecated_get_frame_context): Declare.
10838 (deprecated_set_frame_context): Declare.
10839 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10840 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10842 2003-01-07 Andrew Cagney <cagney@redhat.com>
10844 * frame.c (deprecated_set_frame_next_hack): New function.
10845 (deprecated_set_frame_prev_hack): New function.
10846 * frame.h (deprecated_set_frame_next_hack): Declare.
10847 (deprecated_set_frame_prev_hack): Declare.
10848 * mcore-tdep.c (analyze_dummy_frame): Use
10849 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10850 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10852 2003-01-07 David Carlton <carlton@math.stanford.edu>
10854 * linespec.c (decode_line_1): Move code into decode_dollar.
10855 (decode_dollar): New function.
10857 2003-01-07 Andrew Cagney <cagney@redhat.com>
10859 * arm-tdep.c (arm_init_extra_frame_info): Use
10860 deprecated_update_frame_base_hack.
10861 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10862 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10863 (fix_frame_pointer): Ditto.
10864 (mn10300_analyze_prologue): Ditto.
10866 2003-01-07 Andrew Cagney <cagney@redhat.com>
10868 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10869 extra_info using frame_extra_info_zalloc.
10870 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10871 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10872 (sh64_init_extra_frame_info): Ditto.
10873 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10874 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10875 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10876 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10877 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10878 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10879 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10880 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10881 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10882 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10883 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10884 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10886 * mn10300-tdep.c (analyze_dummy_frame): Use
10887 deprecated_set_frame_extra_info_hack.
10888 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10890 2003-01-07 J. Brobecker <brobecker@gnat.com>
10892 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10893 class is not scText. These do not define "real" procedures.
10894 (parse_partial_symbols): Likewise.
10896 2003-01-06 Michael Snyder <msnyder@redhat.com>
10898 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10900 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10902 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10903 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10904 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10905 deprecated_frame_xmalloc_with_cleanup.
10906 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10907 deprecated_frame_xmalloc.
10908 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10909 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10911 2003-01-06 Andrew Cagney <cagney@redhat.com>
10913 * x86-64-linux-tdep.c: Include "osabi.h".
10914 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10916 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10918 2003-01-06 Andrew Cagney <cagney@redhat.com>
10920 * MAINTAINERS (Target Instruction Set Architectures): Update
10921 arm-elf. Can be built with -Werror, has been multiarched.
10923 * value.h (unpack_long): Make buffer parameter constant.
10924 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10925 * scm-lang.h (scm_parse): Ditto.
10926 * defs.h (extract_typed_address, extract_address): Ditto.
10927 (extract_long_unsigned_integer): Ditto.
10928 * inferior.h (unsigned_pointer_to_address): Ditto.
10929 (signed_pointer_to_address): Ditto.
10930 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10931 * gdbarch.h, gdbarch.c: Regenerate.
10932 * findvar.c (extract_long_unsigned_integer): Update.
10933 (extract_address): Update.
10934 (extract_typed_address): Update.
10935 (unsigned_pointer_to_address): Update.
10936 * values.c (unpack_long): Update.
10937 (unpack_double): Update.
10938 (unpack_pointer): Update.
10939 (unpack_field_as_long): Update.
10940 * d10v-tdep.c (d10v_pointer_to_address): Update.
10941 * avr-tdep.c (avr_pointer_to_address): Update.
10942 * scm-lang.c (scm_unpack): Update.
10943 * findvar.c (signed_pointer_to_address): Update.
10945 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10947 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10948 since it is in i386-tdep.c.
10950 2003-01-06 J. Brobecker <brobecker@gnat.com>
10952 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10953 failure introduced in the previous change.
10955 2003-01-05 Michael Chastain <mec@shout.net>
10957 * README: Remove references to deleted remote-*.c files:
10958 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10959 remote-nrom.c, remote-os9k.c, remote-udi.c.
10961 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10963 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10964 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10965 i386_get_longjmp_target.
10967 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10969 * arm-tdep.c (prologue_cache): Change to a pointer.
10970 (_initialize_arm_tdep): Allocate prologue_cache.
10971 (check_prologue_cache): Update.
10972 (save_prologue_cache): Update.
10973 (arm_gdbarch_init): Update.
10975 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10977 * stabsread.c (update_method_name_from_physname): Call complaint()
10980 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10982 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10983 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10984 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10986 * blockframe.c: Include "gdbcmd.h" and "command.h".
10987 (backtrace_below_main): New variable.
10988 (file_frame_chain_valid, func_frame_chain_valid)
10989 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10990 (generic_func_frame_chain_valid): Remove functions.
10991 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10992 (_initialize_blockframe): New function.
10993 * Makefile.in (blockframe.o): Update dependencies.
10994 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10995 comment. Call frame_chain_valid ().
10996 * frame.h: Remove old prototypes. Add prototype for
10997 frame_chain_valid and update comments to match.
10998 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10999 Remove old comment.
11000 * gdbarch.h: Regenerated.
11001 * gdbarch.c: Regenerated.
11003 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11004 set_gdbarch_frame_chain_valid.
11005 * avr-tdep.c (avr_gdbarch_init): Likewise.
11006 * cris-tdep.c (cris_gdbarch_init): Likewise.
11007 * frv-tdep.c (frv_gdbarch_init): Likewise.
11008 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11009 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11010 (i386_nw_init_abi): Likewise.
11011 (i386_gdbarch_init): Likewise.
11012 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11013 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11014 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11015 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11016 * mips-tdep.c (mips_gdbarch_init): Likewise.
11017 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11018 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11019 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11020 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11021 * s390-tdep.c (s390_gdbarch_init): Likewise.
11022 * sh-tdep.c (sh_gdbarch_init): Likewise.
11023 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11024 * v850-tdep.c (v850_gdbarch_init): Likewise.
11025 * vax-tdep.c (vax_gdbarch_init): Likewise.
11026 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11028 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11029 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11030 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11031 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11032 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11033 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11034 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11035 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11037 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11039 * Makefile.in (acconfig_h): Remove incorrect macro.
11040 (config_h): Define.
11041 (osabi.o): Update dependencies.
11042 * configure.tgt: Set gdb_osabi based on target triplet.
11043 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11044 * configure: Regenerated.
11045 * config.in: Regenerated.
11046 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11047 (GDB_OSABI_DEFAULT): Define if not already defined.
11048 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11049 (set_osabi_string): New variables.
11050 (gdbarch_register_osabi): Add new OS ABI to
11051 gdb_osabi_available_names.
11052 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11053 (set_osabi, show_osabi): New functions.
11054 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11056 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11058 * arch-utils.c (gdbarch_info_init): Set osabi to
11059 GDB_OSABI_UNINITIALIZED.
11060 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11061 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11062 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11063 * gdbarch.c: Regenerated.
11064 * gdbarch.h: Regenerated.
11065 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11067 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11068 * osabi.h (enum gdb_osabi): Move to defs.h.
11069 (gdbarch_init_osabi): Update prototype.
11070 * defs.h (enum gdb_osabi): Moved here.
11071 * Makefile.in: Update dependencies.
11073 * alpha-tdep.h: Don't include "osabi.h".
11074 (struct gdbarch_tdep): Remove osabi member.
11075 * alpha-tdep.c: Include "osabi.h".
11076 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11077 iterate over arches. Update call to gdbarch_init_osabi.
11078 (alpha_dump_tdep): Don't dump osabi.
11079 * alpha-linux-tdep.c: Include "osabi.h".
11080 * alpha-osf1-tdep.c: Include "osabi.h".
11081 * alphafbsd-tdep.c: Include "osabi.h".
11082 * alphanbsd-tdep.c: Include "osabi.h".
11084 * arm-tdep.h: Don't include "osabi.h".
11085 (struct gdbarch_tdep): Remove osabi member.
11086 * arm-tdep.c: Include "osabi.h".
11087 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11088 iterate over arches. Update call to gdbarch_init_osabi.
11089 (arm_dump_tdep): Don't dump osabi.
11090 * arm-linux-tdep.c: Include "osabi.h".
11091 * armnbsd-tdep.c: Include "osabi.h".
11093 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11094 Update call to gdbarch_init_osabi.
11096 * i386-tdep.h: Don't include "osabi.h".
11097 (struct gdbarch_tdep): Remove osabi member.
11098 * i386-tdep.c: Include "osabi.h".
11099 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11100 iterate over arches. Update call to gdbarch_init_osabi.
11101 (i386_dump_tdep): Don't dump osabi.
11102 * i386-linux-tdep.c: Include "osabi.h".
11103 * i386-sol2-tdep.c: Include "osabi.h".
11104 * i386bsd-tdep.c: Include "osabi.h".
11105 * i386gnu-tdep.c: Include "osabi.h".
11106 * i386ly-tdep.c: Include "osabi.h".
11107 * i386nbsd-tdep.c: Include "osabi.h".
11108 * i386obsd-tdep.c: Include "osabi.h".
11110 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11111 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11112 check osabi when iterating over arches. Update call to
11113 gdbarch_init_osabi.
11114 (mips_dump_tdep): Don't dump osabi.
11116 * ns32k-tdep.h: Don't include "osabi.h".
11117 (struct gdbarch_tdep): Remove.
11118 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11119 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11120 allocate tdep. Update call to gdbarch_init_osabi.
11121 (ns32k_dump_tdep): Remove.
11122 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11123 * ns32knbsd-tdep.c: Include "osabi.h".
11125 * ppc-tdep.h: Don't include "osabi.h".
11126 (struct gdbarch_tdep): Remove osabi member.
11127 * rs6000-tdep.c: Include "osabi.h".
11128 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11129 osabi when iterating over arches. Update call to
11130 gdbarch_init_osabi.
11131 (rs6000_dump_tdep): Don't dump osabi.
11132 * ppc-linux-tdep.c: Include "osabi.h".
11133 * ppcnbsd-tdep.c: Include "osabi.h".
11135 * sh-tdep.h: Don't include "osabi.h".
11136 (struct gdbarch_tdep): Remove osabi member.
11137 * sh-tdep.c: Include "osabi.h".
11138 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11139 iterate over arches. Update call to gdbarch_init_osabi.
11140 (sh_dump_tdep): Don't dump osabi.
11141 * shnbsd-tdep.c: Include "osabi.h".
11143 * sparc-tdep.c: Include "osabi.h".
11144 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11145 iterate over arches. Update call to gdbarch_init_osabi.
11146 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11149 * vax-tdep.h: Don't include "osabi.h".
11150 (struct gdbarch_tdep): Remove.
11151 * vax-tdep.c: Include "osabi.h".
11152 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11153 iterate over arches. Don't allocate tdep. Update call
11154 to gdbarch_init_osabi.
11155 (vax_dump_tdep): Remove.
11156 (_initialize_vax_tdep): Update call to gdbarch_register.
11158 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11160 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11162 (breakpoint_re_set_one): Don't fetch the value for a disabled
11165 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11167 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11168 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11169 (COERCE_FLOAT_TO_DOUBLE): Remove.
11170 * gdbarch.c: Regenerate.
11171 * gdbarch.h: Regenerate.
11172 * Makefile.in: Remove value_h from gdbarch_h.
11173 * valops.c (coerce_float_to_double): New variable.
11174 (default_coerce_float_to_double): Remove.
11175 (standard_coerce_float_to_double): Remove.
11176 (value_arg_coerce): Use coerce_float_to_double.
11177 (_initialize_valops): Add "set coerce-float-to-double".
11178 * value.h (default_coerce_float_to_double): Remove prototype.
11179 (standard_coerce_float_to_double): Remove prototype.
11181 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11183 * mdebugread.c (parse_symbol): Likewise.
11184 * stabsread.c (define_symbol): Mark all functions as prototyped.
11186 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11187 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11188 set_gdbarch_coerce_float_to_double.
11189 * arm-tdep.c (arm_gdbarch_init): Likewise.
11190 * frv-tdep.c (frv_gdbarch_init): Likewise.
11191 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11192 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11193 * mips-tdep.c (mips_gdbarch_init): Likewise.
11194 (mips_coerce_float_to_double): Remove.
11195 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11196 (rs6000_coerce_float_to_double): Remove.
11197 * s390-tdep.c (s390_gdbarch_init): Likewise.
11198 * sh-tdep.c (sh_gdbarch_init): Likewise.
11199 (sh_coerce_float_to_double): Remove.
11200 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11201 (sparc_coerce_float_to_double): Remove.
11202 * v850-tdep.c (v850_gdbarch_init): Likewise.
11203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11204 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11205 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11206 (hppa_coerce_float_to_double): Remove prototype.
11207 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11209 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11211 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11213 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11215 Suggested by Stewart Brown <sb24@avaya.com>:
11216 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11217 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11218 (c_type_print_varspec_suffix): Likewise.
11220 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11222 * configure.in: Don't set and AC_SUBST SUBDIRS.
11223 * configure: Regenerated.
11225 * configure.in: Remove code dealing with shared libraries.
11226 * Makefile.in: Remove HLDFLAGS and HLDENV.
11227 * configure: Regenerated.
11229 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11231 * frame.c (deprecated_frame_xmalloc): New function.
11232 (deprecated_set_frame_saved_regs_hack): New function.
11233 (deprecated_set_frame_extra_info_hack): New function.
11234 * frame.h (deprecated_frame_xmalloc): Declare.
11235 (deprecated_set_frame_saved_regs_hack): Declare.
11236 (deprecated_set_frame_extra_info_hack): Declare.
11238 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11240 * configure.in: Move code that provides the --enable-gdbtk option
11241 right after the code that handles the --enable-tui option, and
11242 polish it somewhat.
11243 * configure: Regenerated.
11245 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11246 AC_CHECK_FUNCS and remove the old check for pread64.
11247 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11248 * acconfig.h (_GNU_SOURCE): Add.
11249 (HAVE_PREAD64): Remove.
11250 * configure, aclocal.m4, config.in: Regenerated.
11252 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11254 * alpha-tdep.c: Use get_frame_saved_regs.
11255 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11256 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11257 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11258 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11259 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11261 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11263 * configure.in: Remove all use of the SUBDIRS variable; add
11264 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11265 code providing the --enable-multi-ice option, and move it right in
11266 front of the code that checks whether gdbserver is supported.
11268 * configure: Regenerated.
11269 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11272 2003-01-03 Andrew Cagney <cagney@redhat.com>
11274 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11275 * avr-tdep.c, cris-tdep.c: Ditto.
11276 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11277 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11279 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11281 * configure.in: Remove --enable-netrom option.
11282 * configure: Regenerated.
11284 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11286 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11287 declaration for `struct re_pattern_buffer' instead.
11288 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11290 2003-01-03 J. Brobecker <brobecker@gnat.com>
11292 * mdebugread.c (parse_symbol): Count until the stEnd matching
11293 the structure name.
11295 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11297 * configure.in: Remove --with-cpu option.
11298 subscripts. Remove evil changequotes here.
11299 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11300 * config.in, configure: Regenerated.
11302 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11303 * configure.in: Cleanup section that sources GDB and BFD configure
11304 subscripts. Remove evil changequotes here.
11305 * config.in, configure: Regenerated.
11307 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11309 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11310 frame accessor methods.
11311 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11312 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11313 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11314 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11315 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11316 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11317 * z8k-tdep.c: Ditto.
11319 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11321 * configure.in: Remove UI_OUT configuration code.
11322 * ada-lang.c: Update assuming UI_OUT is always true.
11323 * Makefile.in (UIOUT_CFLAGS): Remove.
11324 * configure: Regenerated.
11325 * TODO: Remove blurb about elimination of -DUI_OUT.
11327 * configure.in: Move code that provides the --enable-gdbcli,
11328 --enable-gdbmi options right before the code that handles the
11329 --enable-tui option. Polish a bit.
11330 * configure: Regenerated.
11332 * configure.in: Rewrite check for GNU regex and the
11333 --without-included regex option, and move it into the "Checks for
11334 library functions" section. This makes us use the system regex
11335 again by default on systems with version 2 of the GNU C library.
11336 This was apparently broken.
11337 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11338 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11339 * config.in, configure: Regenerated.
11341 * configure.in: Move code that provides the --enable-tui option
11342 before the "Checks for libraries" section. Polish the code
11343 somewhat and set need_curses to yes if we build the TUI. Rewrite
11344 code that looks for a library providing termcap functionality to
11345 match more closely what's done in the Readline library, and move
11346 it into to the "Checks for libraries" section.
11347 * configure: Regenerated.
11348 * Makefile.in (TERMCAP): Remove variable.
11349 * config/i386/go32.mh (TERMCAP): Remove variable.
11351 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11353 * MAINTAINERS: Mention gdb_mbuild.sh.
11354 * gdb_mbuild.sh: Rewrite.
11356 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11358 * configure.in: Fix typo in last change.
11359 * config.in, configure: Regenerated.
11361 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11363 * valarith.c (value_binop): Delete obsolete code and comments.
11364 * configure.host: Ditto.
11365 * buildsym.h (make_blockvector): Ditto.
11366 * buildsym.c (make_blockvector): Ditto.
11367 * defs.h (enum language): Ditto.
11368 (chill_demangle): Ditto.
11369 * elfread.c (elf_symtab_read): Ditto.
11370 * dwarfread.c (CHILL_PRODUCER): Ditto.
11371 (set_cu_language): Ditto.
11372 (handle_producer): Ditto.
11373 * expprint.c (print_subexp): Ditto.
11374 * gdbtypes.c (chill_varying_type): Ditto.
11375 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11376 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11377 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11378 (chill_varying_type): Ditto.
11379 * language.h (_LANG_chill): Ditto.
11380 * language.c (binop_result_type, integral_type): Ditto.
11381 (character_type, string_type, structured_type): Ditto.
11382 (lang_bool_type, binop_type_check): Ditto.
11383 * stabsread.h (os9k_stabs): Ditto.
11384 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11385 (define_symbol, read_type, read_struct_fields): Ditto.
11386 (read_array_type, read_enum_type, read_huge_number): Ditto.
11387 (read_range_type, start_stabs): Ditto.
11388 * symfile.c (init_filename_language_table): Ditto.
11389 (add_psymbol_with_dem_name_to_list): Ditto.
11390 * symtab.c (symbol_init_language_specific): Ditto.
11391 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11392 * symtab.h (struct general_symbol_info): Ditto.
11393 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11394 * typeprint.c (typedef_print): Ditto.
11395 * utils.c (fprintf_symbol_filtered): Ditto.
11396 * valops.c (value_cast, search_struct_field, value_slice): Delete
11398 (varying_to_slice): Delete function.
11399 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11400 (varying_to_slice): Delete declaration.
11401 * MAINTAINERS: Update.
11403 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11405 * configure.in: Reorganize "Checks for library functions section"
11406 a bit. Remove check for `btowc' and `isascii' functions.
11407 * configure: Regenerated.
11409 * acconfig.h (_MSE_INT_H): Remove.
11410 * configure.in: Create "Checks for header files" section, and move
11411 appropriate tests there. Don't check for objlist.h, wchar.h,
11412 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11413 misdetection fix. Also add "Checks for types", "Checks for
11414 compiler characteristics" and "Checks for library functions"
11416 * config.in, configure: Regenerated.
11418 * configure.in: Create "Checks for programs" section, and move
11419 appropriate tests there.
11421 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11423 * configure.in: Create "Checks for libraries" section, and move
11424 appropriate tests there. Cleanup check for wctype in libw. Use
11425 AC_SEARCH_LIBS to see whether we need libsocket.
11426 * configure: Regenerated.
11428 For older changes see ChangeLog-2002
11434 version-control: never