1 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3 * infrun.c (normal_stop): Don't print a message if the inferior
6 2003-09-08 Jim Blandy <jimb@redhat.com>
8 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
9 * dbxread.c: #include "gdb_assert.h".
10 (read_dbx_symtab): If the objfile has no .data section, use the
11 section index for the .bss section instead.
13 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
15 * frame.c (deprecated_safe_get_selected_frame): New function.
16 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
17 * findvar.c (read_var_value): Call it.
19 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
21 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
22 (sh64-tdep.o): Add dependencies.
23 * configure.tgt: Add FIXME to sh-*-linux*.
24 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
25 (sh_gdbarch_init): Always set correct sh_show_regs function
26 pointer. Call sh64_gdbarch_init() if machine type is sh5.
27 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
28 * sh64-tdep.c: New file, containing all sh64 related code from
30 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
31 * config/sh/linux.mt (TDEPFILES): Ditto.
32 * config/sh/nbsd.mt (TDEPFILES): Ditto.
33 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
34 * config/sh/wince.mt (TDEPFILES): Ditto.
36 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
38 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
39 (stop_wait_callback): Handle !lp->signalled also.
40 (lin_lwp_has_pending, flush_callback): New functions.
41 (lin_lwp_wait): Call flush_callback.
42 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
43 (linux_proc_pending_signals): New function.
44 * linux-nat.h (linux_proc_pending_signals): Add prototype.
46 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
48 From Nick Kelsey <nickk@ubicom.com>:
49 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
50 when the stop PC is at the beginning of a function also.
52 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
54 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
55 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
57 2003-09-06 Mark Kettenis <kettenis@gnu.org>
59 * sol-thread.c: Include "gdb_string.h".
61 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
63 * gcore.c: Reorder include files in alphabetical order. Include
64 "gdb_assert.h". Various coding style fixes.
65 (derive_stack_segment, derive_heap_segment): Replace check for
66 non-null BOTTOM and TOP with gdb_assert.
67 (derive_heap_segment): Replace check for successful creation of
69 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
71 2003-09-04 Andrew Cagney <cagney@redhat.com>
73 * thread-db.c (verbose_dlsym): New function.
74 (thread_db_load): Use verbose_dlsym
75 (thread_db_new_objfile): Print that libthread_db was loaded, and
76 that thread debugging was enabled.
78 2003-09-04 Andrew Cagney <cagney@redhat.com>
80 * configure.tgt: Add "mips64*-*-*" target. Delete
81 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
82 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
83 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
84 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
85 mips*-sony-*, and mips64*-*-elf* targets.
86 * config/mips/embedl.mt: Delete file.
87 * config/mips/embedl64.mt: Delete file.
88 * config/mips/mips.mt: Delete file.
89 * config/mips/mips64.mt: Delete file.
90 * config/mips/tm-embed.h: Delete file.
91 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
92 * config/mips/embed64.mt: Delete out-of-date comment.
94 2003-09-04 Andrew Cagney <cagney@redhat.com>
96 * hppa-tdep.c (hppa_gdbarch_init): Set
97 "have_nonsteppable_watchpoint".
98 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
99 * mips-tdep.c (mips_dump_tdep): Do not print
100 HAVE_NONSTEPPABLE_WATCHPOINT.
101 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
102 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
103 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
104 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
106 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
108 * breakpoint.c (watchpoint_check): Remove accidentally checked in
109 unused code. Add comment.
111 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
113 * breakpoint.c (watchpoint_check): Check for pc being in an
114 epilogue if watchpoint frame couldn't be found.
116 2003-09-04 Andrew Cagney <cagney@redhat.com>
118 * Makefile.in: Re-generate all dependencies.
120 2003-09-03 Andrew Cagney <cagney@redhat.com>
122 * arch-utils.h (legacy_print_insn): Delete declaration.
123 * arch-utils.c (legacy_print_insn): Delete function.
124 * disasm.c (deprecated_tm_print_insn_info): Delete.
125 (_initialize_disasm): Delete function, contained code initializing
126 deprecated_tm_print_insn_info.
127 * gdbarch.sh (deprecated_tm_print_insn): Delete.
128 (deprecated_tm_print_insn_info): Delete.
129 (TARGET_PRINT_INSN): Do not provide a default.
130 * gdbarch.h, gdbarch.c: Re-generate.
132 2003-09-03 Andrew Cagney <cagney@redhat.com>
134 * disasm.c (fprintf_disasm): New function.
135 (gdb_disassemble_info): Call "init_disassemble_info", instead of
136 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
137 reverts 2003-08-14 change.
138 (_initialize_disasm): Call "init_disassemble_info", instead of
139 INIT_DISASSEMBLE_INFO_NO_ARCH.
141 2003-09-03 Michael Snyder <msnyder@redhat.com>
143 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
145 2003-09-03 Andrew Cagney <cagney@redhat.com>
147 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
148 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
149 * symfile.c (syms_from_objfile): Update.
150 (reread_symbols): `Update
151 * exec.c (exec_file_attach): Update.
152 (exec_file_attach): Update.
153 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
155 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
157 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
159 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
161 (arm_get_cache): Delete macro.
162 (struct arm_prologue_cache): Update comments. Make saved_regs into
163 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
165 (thumb_scan_prologue): Update for cache changes. Don't call
166 DEPRECATED_PC_IN_CALL_DUMMY.
167 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
168 argument and use it in desperation search for our prologue. Do not
169 search past the specified PC.
170 (arm_make_prologue_cache): Simplify.
172 (arm_prologue_this_id, arm_prologue_prev_register)
173 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
174 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
175 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
176 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
177 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
179 (arm_frame_chain_valid, arm_find_callers_reg)
180 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
181 (arm_pop_frame): Delete obsolete methods.
182 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
184 (arm_gdbarch_init): Update for new frame methods. Register prologue
185 and sigtramp unwinders. Set the default frame base method.
187 * Makefile.in (arm-tdep.o): Update dependencies.
188 * varobj.c (find_frame_addr_in_frame_chain): Call
189 get_frame_base_address.
190 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
192 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
194 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
195 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
196 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
197 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
198 Take NEXT_FRAME and CACHE arguments. Call
199 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
200 Set unwound_pc in CACHE instead of modifying the frame argument.
201 Don't bother checking the frame type when looking for sigtramp
203 (arm_make_prologue_cache, arm_frame_chain)
204 (arm_init_extra_frame_info): New functions.
206 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
208 * arm-tdep.c (arm_get_cache): Define.
209 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
210 unwound_sp, unwound_pc, and saved_regs.
211 (thumb_scan_prologue): Take a cache instead of the frame.
212 (arm_scan_prologue): Likewise.
213 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
214 instead of a temporary frame.
215 (arm_init_extra_frame_info): Allocate and use a cache.
216 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
218 2003-09-03 Andrew Cagney <cagney@redhat.com>
220 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
221 * config/mips/wince.mt (TM_CLIBS): Ditto.
222 * config/sh/wince.mt (TM_CLIBS): Ditto.
223 * config/pa/hppa64.mt (TM_CLIBS): Delete.
224 * config/sparc/sp64.mt (CC): Delete.
226 2003-09-03 Andrew Cagney <cagney@redhat.com>
228 * defs.h: Do not include "arch-utils.h".
229 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
231 * configure.in (GDB_MULTI_ARCH): Do not define.
232 * configure, config.in: Regenerate.
233 * configure.tgt: Do not set variable "gdb_multi_arch".
234 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
235 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
236 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
237 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
238 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
239 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
240 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
241 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
242 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
243 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
244 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
245 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
246 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
247 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
248 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
249 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
250 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
251 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
253 2003-08-30 Michael Chastain <mec@shout.net>
255 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
256 * config/m68k/nm-hp300hpux.h: Delete.
257 * config/m68k/tm-hp300hpux.h: Delete.
258 * config/m68k/xm-hp300hpux.h: Delete.
259 * config/m68k/xm-hp300bsd.h: Delete.
260 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
261 tm-hp300hpux.h, xm-hp300hpux.h.
262 * somsolib.c: Remove comment about hp300 shared libraries.
264 2003-08-31 Mark Kettenis <kettenis@gnu.org>
266 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
267 Only define PTRACE_GET_THREAD_AREA is not already defined.
268 Various style fixes in code and comments and some additional
269 spelling fixes in comments. Move after functions dealing with
271 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
274 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
275 frame_unwind_register_unsigned instead of
276 frame_unwind_unsigned_register.
278 2003-08-30 Mark Kettenis <kettenis@gnu.org>
280 * configure.in: Search for gethostbyname in libnsl.
281 * configure: Regenerated.
283 2003-08-29 Mark Kettenis <kettenis@gnu.org>
285 * configure.in: Remove redundant AC_MSG_RESULT in check for
286 uintptr_t in stdint.h.
287 * configure: Regenerated.
289 * amd64-nat.h (struct regcache): Add opaque declaration.
291 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
292 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
293 Change "register array" to "register cache" in comments.
294 (x86_64_linux_gregset64_reg_offset): New variable.
295 (GETREGS_SUPPLIES): Remove macro.
296 (supply_gregset): Call amd64_supply_native_gregset instead of
297 x86_64_linux_supply_gregset.
298 (fill_gregset): Rename `regno' to `regnum'. Call
299 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
300 (store_regs): Rename `regno' to `regnum'.
301 (store_fpregs): Rename `regno' to `regnum'.
302 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
303 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
304 Reorganize function a bit.
305 (store_inferior_registers): Rename `regno' to `regnum'. Use
306 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
307 Reorganize function a bit.
308 (_initialize_x86_64_linux_nat): New function.
309 * config/i386/x86-64linux.mh.
311 2003-08-29 Andrew Cagney <cagney@redhat.com>
313 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
314 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
315 (target_remove_watchpoint): Delete macro.
316 (target_insert_watchpoint): Delete macro.
317 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
318 (remote_mips_stopped_by_watchpoint): Delete declaration.
319 (remote_mips_remove_watchpoint): Delete declaration.
320 (remote_mips_set_watchpoint): Delete declaration.
321 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
322 * remote-mips.c (_initialize_remote_mips): Set
323 "to_insert_watchpoint", "to_stopped_by_watchpoint",
324 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
325 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
326 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
327 (mips_stopped_by_watchpoint): Rename
328 remote_mips_stopped_by_watchpoint.
329 (mips_can_hardware_watchpoint): Rename
330 remote_mips_can_use_hardware_watchpoint, update function
333 2003-08-29 Mark Kettenis <kettenis@gnu.org>
335 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
336 USER_DS. We haven't given them a register number yet.
338 * amd64-nat.h: New file.
339 * amd64-nat.c: New file.
340 * amd64fbsd-nat.c: Include "amd64-nat.h".
341 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
342 (amd64fbsd32_r_reg_offset): New variable.
343 (supply_gregset): Simply call amd64_supply_native_gregset.
344 (fill_gregset): Rename `regno' to `regnum'. Simply call
345 amd64_collect_native_gregset.
346 (fill_fpregset): Rename `regno' to `regnum'.
347 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
348 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
349 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
350 `fpregset_t'. Call amd64_supply_native_gregset instead of
351 supply_gregset. Call x86_64_supply_fxsave instead of
353 (store_inferior_registers): Rename `regno' to `regnum'. Replace
354 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
355 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
356 `fpregset_t'. Call amd64_collect_native_gregset instead of
357 fill_gregset. Call x86_64_collect_fxsave instead of
359 (_initialize_am64fbsd_nat): Initialize
360 amd64_native_gregset32_reg_offset and
361 amd64_native_gregset64_reg_offset.
362 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
364 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
365 null pointer. Fix typo in comment.
367 * regcache.c (supply_register): Reimplement to call
369 (regcache_collect): Reimplement by calling regcache_raw_collect.
371 2003-08-28 Mark Kettenis <kettenis@gnu.org>
373 * regcache.c (register_buffer): Consitify first argument.
374 (regcache_raw_supply, regcache_raw_collect): New
377 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
379 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
380 by Nathan J. Williams.
382 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
384 * lin-lwp.c (wait_lwp): New function, copied from
385 stop_wait_callback. Clean up.
386 (stop_wait_callback): Use wait_lwp.
388 2003-08-28 Andrew Cagney <cagney@redhat.com>
390 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
391 flavour and disassembler options.
392 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
393 (mips_gdbarch_init): Set "print_insn". Delete initialization of
394 deprecated_tm_print_insn_info.
396 2003-08-27 Andrew Cagney <cagney@redhat.com>
398 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
399 Use target_read_memory.
400 (s390_get_frame_info): Update. Do not reference
401 deprecated_tm_print_insn_info.
402 (s390_check_function_end, s390_is_sigreturn): Ditto.
404 2003-08-27 Andrew Cagney <cagney@redhat.com>
406 * Makefile.in (cris-tdep.o): Update dependencies.
407 * cris-tdep.c: Include "gdb_assert.h".
408 (cris_gdbarch_init): Set print_insn.
409 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
410 (cris_delayed_get_disassembler): Simplify, directly call the
411 disassembler returned by cris_get_disassembler.
412 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
413 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
414 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
415 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
416 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
417 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
418 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
419 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
420 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
421 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
422 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
423 (gdb_print_insn_sparc): Delete function.
424 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
425 deprecated_tm_print_insn_info.
426 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
427 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
428 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
430 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
431 * s390-tdep.c (gdb_print_insn_s390): Delete function.
432 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
433 (s390_gdbarch_init): Set print_insn.
435 2003-08-27 Andrew Cagney <cagney@redhat.com>
437 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
438 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
439 * infcall.c (call_function_by_hand): Convert the entry point
440 address into a code address.
442 2003-08-27 Andrew Cagney <cagney@redhat.com>
444 * dsrec.c: Include "gdb_string.h".
445 * Makefile.in (dsrec.o): Update dependencies.
447 2003-08-27 Michael Chastain <mec@shout.net>
449 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
451 2003-08-27 Andrew Cagney <cagney@redhat.com>
453 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
454 (alpha_osf1_init_abi): Do not set call_dummy_address.
456 2003-08-27 David Carlton <carlton@kealia.com>
458 From Randolph Chung <tausq@debian.org>:
459 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
460 compiles with -Wformat-nonliteral -Werror.
462 2003-08-26 Jim Blandy <jimb@redhat.com>
464 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
465 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
466 bfd_lookup_symbol, since we only want symbols in code sections.
467 (look_for_base): Pass zero as the SECT_FLAGS argument to
468 bfd_lookup_symbol, since we're not concerned about which section
471 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
473 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
474 we are frameless or the return address register is already known.
476 2003-08-26 Andrew Cagney <cagney@redhat.com>
478 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
479 in size. Add comments.
481 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
483 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
484 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
486 2003-08-26 Jason Merrill <jason@redhat.com>
488 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
489 case out of #ifdef MIPS block.
491 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
494 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
495 available before calling SECT_OFF_TEXT.
496 * PROBLEMS: Remove description of java/1322.
498 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
500 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
501 bof, and nat0-nat127 as pseudo-registers.
502 (ia64_frame_cache): New struct used to cache frame info.
503 (ia64_register_reggroup_p): New routine used to override default
504 register grouping so registers without names are still saved and
506 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
508 (ia64_pseudo_register_read): New routine to read pseudo-registers.
509 (ia64_pseudo_register_write): New routine to write pseudo-registers.
510 (ia64_alloc_frame_cache): New routine to create a new
512 (examine_prologue): Change prototype to add next_frame pointer.
513 Assume frameless until otherwise proven. Verify that the cfm for
514 current frame matches the cfm that should occur for the prologues
515 alloc insn and if equal, mark as not frameless. At end of routine,
516 if not frameless, calculate registers for the previous frame and store
517 in the cache, if a cache is provided.
518 (ia64_skip_prologue): Use new prototype when calling examine_prologue
519 and pass 0 for next_frame.
520 (ia64_store_return_value): Change to use convert_typed_floating()
521 instead of calling ia64_convert_to_raw().
522 (ia64_extract_return_value): Change to use convert_typed_floating()
523 instead of calling ia64_convert_to_virtual().
524 (ia64_frame_cache): New routine to support new frame model.
525 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
526 (ia64_frame_sniffer): Ditto.
527 (ia64_sigtramp_frame_init_saved_regs): Ditto.
528 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
529 (ia64_sigtramp_frame_prev_register): Ditto.
530 (ia64_sigtramp_frame_sniffer): Ditto.
531 (ia64_frame_base_address): Ditto.
532 (ia64_extract_struct_value_address): Change to issue error message.
533 (ia64_frame_align): New routine to align sp.
534 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
535 (ia64_push_arguments): Removed. Logic moved to
536 ia64_push_dummy_call().
537 (ia64_push_return_address): Ditto.
538 (ia64_unwind_dummy_id): New function.
539 (ia64_unwind_pc): Ditto.
540 (ia64_convert_register_p): Ditto.
541 (ia64_register_to_value): Ditto.
542 (ia64_value_to_register): Ditto.
543 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
544 (ia64_register_byte, ia64_register_raw_size): Ditto.
545 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
546 (ia64_saved_pc_after_call): Ditto.
547 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
548 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
549 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
550 (ia64_register_convert_to_raw): Ditto.
551 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
552 (ia64_init_extra_frame_info): Ditto.
553 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
554 (ia64_gdbarch_init): Remove registering of deprecated functions that
555 are no longer used. Add registration of new gdbarch functions.
556 Remove registering deprecated_write_sp. Replace
557 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
558 Delete set_gdbarch_deprecated_register_convertible(),
559 set_gdbarch_deprecated_register_convert_to_virtual(), and
560 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
561 set_gdbarch_deprecated_register_size(),
562 set_gdbarch_deprecated_register_bytes(),
563 set_gdbarch_pcregnum(),
564 set_gdbarch_deprecated_register_byte(),
565 set_gdbarch_deprecated_register_raw_size(),
566 set_gdbarch_deprecated_max_register_raw_size(),
567 set_gdbarch_deprecated_register_virtual_size(),
568 and set_gdbarch_deprecated_max_register_virtual_size() calls.
569 Replace set_gdbarch_deprecated_extract_return_value() with
570 set_gdbarch_extract_return_value(). Remove calls to:
571 set_gdbarch_deprecated_saved_pc_after_call();
572 set_gdbarch_deprecated_frame_chain(),
573 set_gdbarch_deprecated_frame_saved_pc(),
574 set_gdbarch_deprecated_frame_init_saved_regs(),
575 set_gdbarch_deprecated_get_saved_register(),
576 set_gdbarch_deprecated_call_dummy_words(),
577 set_gdbarch_deprecated_sizeof_call_dummy_words(),
578 set_gdbarch_deprecated_init_extra_frame_info(),
579 set_gdbarch_deprecated_frame_args_address(),
580 set_gdbarch_deprecated_frame_locals_address(),
581 and set_gdbarch_deprecated_dummy_write_sp().
582 Add set_gdbarch_convert_register_p(),
583 set_gdbarch_register_to_value(),
584 set_gdbarch_value_to_register(),
585 set_gdbarch_push_dummy_call(),
586 set_gdbarch_frame_align(),
587 set_gdbarch_unwind_dummy_id(),
588 set_gdbarch_unwind_pc(),
589 frame_unwind_append_sniffer(),
590 frame_unwind_append_sniffer(),
591 and frame_base_set_default().
593 2003-08-25 Chris Demetriou <cgd@broadcom.com>
595 * configure.tgt: Document need for special "mipsisa64" handling.
596 (mipsisa64*-*-linux64): Handle as target linux64.
597 (mipsisa64*-*-*): Handle as target embed64.
599 2003-08-18 Michael Chastain <mec@shout.net>
601 * PROBLEMS: Document pr gdb/1322, the Java anonymous
604 2003-08-24 Mark Kettenis <kettenis@gnu.org>
606 * i387-tdep.h: Update copyright date.
607 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
609 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
610 CFLAGS games to reflect reality.
612 2003-08-24 Andrew Cagney <cagney@redhat.com>
614 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
615 GDB_MULTI_ARCH is always non-zero.
616 * osabi.c (_initialize_gdb_osabi): Ditto.
617 (gdbarch_init_osabi): Ditto.
618 * sparc-tdep.c: Ditto for #if code.
620 2003-08-23 Mark Kettenis <kettenis@gnu.org>
622 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
624 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
626 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
627 x86_64_supply_fxsave.
628 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
629 x86_64_supply_fxsave.
630 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
631 x86_64_supply_fxsave.
633 2003-08-23 Andreas Jaeger <aj@suse.de>
635 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
638 2003-08-23 Mark Kettenis <kettenis@gnu.org>
640 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
641 i387_supply_register.
642 (go32_fetch_registers): Adjust call to i387_supply_fsave.
643 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
645 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
647 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
649 * i386bsd-nat.c (supply_fpregset): Adjust call to
651 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
652 call to i387_supply_fxsave. Call i387_supply_fsave instead of
654 (store_inferior_registers): Remove extraneous whitespace. Call
655 i387_fill_fsave instead of fill_fpregset.
656 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
657 (supply_fpregset): Likewise.
658 * i386v4-nat.c (supply_fpregset): Adjust call to
660 * i386-interix-nat.c (supply_fpregset): Adjust call to
662 * i386-linux-nat.c (supply_fpregset): Adjust call to
664 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
665 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
666 i387supply_fsave and i387_supply_fxsave.
667 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
668 Incorporate code from `i387_supply_register.
669 (i387_supply_register): Remove.
670 (i387_supply_fxsave): Add `regnum' argument.
672 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
674 (i387_supply_register): remove prototype.
677 2003-08-22 Michael Chastain <mec@shout.net>
679 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
680 Add lines for files in gdb/testsuite/gdb.cp/* that are
681 still not 8.3 unique.
683 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
685 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
686 TYPE_VPTR_FIELDNO is valid.
688 2003-08-19 Mark Kettenis <kettenis@gnu.org>
690 * utils.c (set_width_command): Remove prototypes.
691 (set_screen_size): New prototype.
692 (init_page_info): Simplify by fetching the screen size from
693 Readline. Call set_screen_size.
694 (set_screen_size): New function.
695 (set_width): Add missing whitespace in comment.
696 (set_width_command): Call set_screen_size.
697 (set_height_command): New function.
698 (initialize_utils): Fix formatting. Make "set height" command
699 call set_height_command. Remove redundant code that turns off
700 pagination if output isn't a terminal. Remove redundant call to
703 2003-08-22 Mark Kettenis <kettenis@gnu.org>
705 * sparc64-tdep.h (sparc64_regnum): Fix comment.
706 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
707 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
708 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
710 (sparc64_register_info): Give the reister with number
711 SPARC64_STATE_REGNUM a name.
712 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
714 (sparc64_push_dummy_call): Take BIAS into account when checking
716 (sparc_software_single_step): Remove assertions that check whether
717 NPC and NNPC were zero.
718 (sparc_supply_rwindow): Make public. Merge functionality with
719 sparc64_supply_rwindow.
720 (sparc_fill_rwindow): Make public. Merge functionality with
721 sparc64_fill_rwindow.
722 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
723 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
724 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
725 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
726 sparc_supply_rwindow instead of sparc64_supply_rwindow.
728 * reggroups.c: Add whitespace after declarations of local
729 variables in functions.
731 2003-08-21 Michael Chastain <mec@shout.net>
733 * gdbtypes.h: Change array bound type from an int to enum.
735 2003-08-21 Andrew Cagney <cagney@redhat.com>
737 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
738 * config/sparc/tm-sparc.h: Ditto.
739 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
741 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
743 2003-07-13 Mark Kettenis <kettenis@gnu.org>
745 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
746 (register_objfile_data, set_objfile_data, objfile_data): New
748 * objfiles.c (objfile_alloc_data, objfile_free_data): New
750 (allocate_objfile): Call objfile_alloc_data.
751 (free_objfile): Call objfile_free_data.
752 (struct objfile_data): New.
753 (struct objfile_data_registration): New.
754 (struct objfile_data_registry): New.
755 (objfile_data_registry): New variable.
756 (register_objfile_data): New function.
757 (objfile_alloc_data, objfile_free_data): New functions.
758 (set_objfile_data, objfile_data): New functions.
759 * dwarf2-frame.c (dwarf2_frame_data): New variable.
760 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
761 (_initialize_dwarf2_frame): New function and prototype.
763 2003-08-21 Andrew Cagney <cagney@redhat.com>
765 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
766 a specific architecture.
767 * arch-utils.h (set_architecture_from_arch_mach): Delete
769 (target_architecture_hook): Delete declaration.
770 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
771 (default_float_format): Assume GDB_MULTI_ARCH.
772 (default_double_format): Assume GDB_MULTI_ARCH.
773 (set_endian_from_file): Delete function.
774 (arch_ok): Delete function.
775 (set_arch): Delete function.
776 (set_architecture_from_arch_mach): Delete function.
777 (set_architecture_from_file): Delete function.
778 (set_architecture): Assume GDB_MULTI_ARCH.
779 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
781 2003-08-21 Mark Kettenis <kettenis@gnu.org>
783 Rewrite FreeBSD/sparc64 native configuration.
784 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
785 * sparc64fbsd-nat.c: New file.
786 * sparc64fbsd-tdep.c: New file.
787 * sparc64-tdep.c sparc64-tdep.h: New files.
788 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
789 sparc64fbsd-tdep.o): New dependencies.
790 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
791 and sparc64fbsd-tdep.c.
792 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
793 * config/sparc/fbsd.mh: Remove copyright notice.
794 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
796 * config/sparc/fbsd.mt: Remove copyright notice.
797 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
798 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
799 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
800 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
801 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
802 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
803 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
804 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
806 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
807 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
809 2003-08-21 Michael Chastain <mec@shout.net>
811 * symtab.h: Add doco on the space critical structures and
812 some measurements of space usage.
814 2003-08-21 Michael Snyder <msnyder@redhat.com>
816 * tracepoint.c (trace_dump_command): Trace break address
817 is subject to DECR_PC_AFTER_BREAK.
818 (set_traceframe_context): Make "trace_line" an int.
819 Fixes suggested by Mark Newman <mark.newman@lmco.com>
821 2003-08-20 Michael Snyder <msnyder@redhat.com>
823 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
824 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
825 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
827 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
828 functions, replace sh_push_dummy_call.
829 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
831 2003-08-20 Michael Chastain <mec@shout.net>
833 * gdbtypes.h (struct main_type): Rearrange to save space.
835 2003-08-20 Michael Snyder <msnyder@redhat.com>
837 * trad-frame.c: Comment typo fix.
839 2003-08-20 Michael Snyder <msnyder@redhat.com>
840 Kevin Buettner <kevinb@redhat.com>
842 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
843 (frv_frame_init_saved_regs): Add declaration.
844 (frame_extra_info): Add new field ``saved_regs''.
845 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
846 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
847 Update frame related code.
848 (frv_extract_struct_value_address): Adjust formatting.
849 * Makefile.in (frv-tdep.o): Update dependencies.
850 * config/frv/tm-frv.h (target_insert_watchpoint)
851 (target_remove_watchpoint, target_insert_hw_breakpoint)
852 (target_remove_hw_breakpoint): Delete these macros.
853 (remote_insert_watchpoint, remote_remove_watchpoint)
854 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
857 2003-08-20 Michael Chastain <mec@shout.net>
859 * defs.h (ENUM_BITFIELD): New macro.
860 * symtab.h (ENUM_BITFIELD): Use it.
861 (BYTE_BITFIELD): Remove old macro, which was already disabled.
863 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
865 * MAINTAINERS (write after approval): Add myself.
867 2003-08-18 Andrew Cagney <cagney@redhat.com>
869 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
870 * gdbarch.h, gdbarch.c: Re-generate.
871 * infcall.c (call_function_by_hand): Adjust the SP by
872 frame_red_zone_size before allocating any stack space.
873 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
874 * x86-64-tdep.c (x86_64_frame_align): New function.
875 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
877 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
878 Remove code adjusting SP so that it skips over the Red Zone.
880 2003-08-18 Mark Kettenis <kettenis@gnu.org>
882 * NEWS (New native configurations): Mention FreeBSD/amd64.
884 2003-08-18 Andrew Cagney <cagney@redhat.com>
886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
887 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
889 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
891 2003-08-18 Mark Kettenis <kettenis@gnu.org>
893 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
895 2003-08-18 Michal Ludvig <mludvig@suse.cz>
897 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
899 * i386-linux-nat.c: Include "linux-nat.h".
900 (child_post_startup_inferior): New function.
902 2003-08-18 Mark Kettenis <kettenis@gnu.org>
904 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
905 at the start of a frameless function. This probably fixes PR
908 2003-08-17 Michael Chastain <mec@shout.net>
910 * symfile.c (find_sym_fns): Remove special case for apollo target.
912 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
914 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
915 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
916 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
917 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
918 (linux_supports_tracevforkdone): New function.
919 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
921 (child_follow_fork): Handle vfork.
922 (linux_handle_extended_wait): Likewise. Also handle exec.
923 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
924 * NEWS: Mention fork tracing.
926 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
928 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
930 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
932 * Makefile.in (i386-linux-nat.o): Update dependencies.
933 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
934 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
935 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
936 * i386-linux-nat.c: Include "linux-nat.h".
937 (child_post_startup_inferior): New function.
938 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
939 * infptrace.c (kill_inferior): Wrap in #ifdef.
940 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
941 attaching to each LWP.
942 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
943 (init_lin_lwp_ops): Fill in some more operations.
944 * linux-nat.h (linux_enable_event_reporting)
945 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
947 * linux-nat.c (linux_enable_event_reporting): New function.
948 (child_post_attach, linux_child_post_startup_inferior)
949 (child_post_startup_inferior, child_follow_fork)
950 (linux_handle_extended_wait, kill_inferior): New functions.
952 2003-08-16 Andrew Cagney <cagney@redhat.com>
954 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
955 * gdbarch.h, gdbarch.c: Re-generate.
957 2003-08-16 Mark Kettenis <kettenis@gnu.org>
959 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
961 2003-08-16 Andrew Cagney <cagney@redhat.com>
963 * NEWS: Mention that "set prompt-escape-char" was deleted.
964 * top.c (get_prompt_1): Delete function.
966 (init_main): Do not clear "gdb_prompt_escape". Delete "set
967 prompt-escape-char" command.
968 (MAX_PROMPT_SIZE): Delete macro.
969 (get_prompt): Simplify, do not call get_prompt_1.
971 2003-08-16 Andrew Cagney <cagney@redhat.com>
973 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
974 -Werror. -Wformat-nonliteral problems.
976 2003-08-15 J. Brobecker <brobecker@gnat.com>
978 Further multiarching work mostly for hppa64-*-hpux11:
979 * hppa-tdep.h: New file.
980 * hppa-tdep.c: #include hppa-tdep.c.
981 (hppa32_num_regs): Renamed from hppa_num_regs.
982 (hppa64_num_regs): New constant.
983 (hppa64_call_dummy_breakpoint_offset): New constant.
984 (hppa32_call_dummy_length): New constant.
985 (hppa64_call_dummy_length): New constant.
986 (hppa32_stack_align): Make name 32bit explicit.
987 (hppa32_register_virtual_type): Likewise.
988 (hppa32_extract_return_value): Likewise.
989 (hppa32_use_struct_convention): Likewise.
990 (hppa32_store_return_value): Likewise.
991 (hppa64_register_virtual_type): New function.
992 (hppa64_extract_return_value): New function.
993 (hppa64_use_struct_convention): New function.
994 (hppa64_store_return_value): New function.
995 (hppa_frame_locals_address): Remove declaration, function does
997 (hppa_register_byte): Add support for PA64 ABI.
998 (hppa_gdbarch_init): Add support for PA64 ABI.
999 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1000 Make name 32bit explicit.
1001 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1002 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1003 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1004 (hppa64_hpux_frame_base_before_sigtramp): New function.
1005 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1006 * config/pa/tm-hppa64.h: Remove macros that are no longer
1007 necessary now that the gdbarch vector is properly setup.
1008 Transform some macros into function calls. Some minor cleanup.
1009 * config/pa/tm-hppah.h: Update function calls in macros
1010 following the function renaming in hppa-hpux-tdep.c.
1011 * Makefile.in (hppa_tdep_h): New variable.
1012 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1014 2003-08-14 Michael Snyder <msnyder@redhat.com>
1016 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1018 2003-08-13 J. Brobecker <brobecker@gnat.com>
1020 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1021 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1024 2003-08-13 Michael Snyder <msnyder@redhat.com>
1026 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1027 (frv_saved_pc_after_call): Use deprecated ftype.
1028 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1029 (frv_remote_translate_xfer_address): Remove.
1030 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1032 2003-08-13 J. Brobecker <brobecker@gnat.com>
1034 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1035 initialization after the common gdbarch initialization, not before.
1037 2003-08-13 J. Brobecker <brobecker@gnat.com>
1039 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1040 (ADDR_BITS_REMOVE): Remove, redundant.
1042 2003-08-13 J. Brobecker <brobecker@gnat.com>
1044 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1045 gdbarch method to clear the 2 low bits of text addresses.
1047 2003-08-12 Andrew Cagney <cagney@redhat.com>
1049 * Makefile.in (dsrec.o): Update dependencies.
1050 * dsrec.c: Include "gdb_assert.h".
1051 (make_srec): Use snprintf instead of sprintf, use a literal format
1054 2003-08-12 Andrew Cagney <cagney@redhat.com>
1056 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1057 FRAME_OBSTACK_ZALLOC.
1059 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1061 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1064 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1066 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1067 amd64fbsd_sc_reg_offset): Add extern declarations.
1068 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1071 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1073 * MAINTAINERS (write after approval): Update my mail address.
1075 2003-08-10 Andrew Cagney <cagney@redhat.com>
1077 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1079 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1081 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1082 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1083 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1084 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1085 i386bsd_sc_reg_offset): Add extern declarations.
1086 * i386obsd-nat.c: Include "i386-tdep.h"
1087 (_initialize_i386obsd_nat): Remove extern declarations.
1088 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1090 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1093 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1094 instead of frame_read_register.
1095 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1096 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1098 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1099 instead of frame_unwind_unsigned_register. Use
1100 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1101 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1102 instead of read_register. Use builtin_type_void_data_ptr instead
1103 of builtin_type_void_func_ptr when extracting the address of the
1105 (i386_extract_return_value, i386_store_return_value,
1106 i386_pseudo_register_read, i386_pseudo_register_write): Use
1107 register_size instead REGISTER_RAW_SIZE.
1109 2003-08-10 Andrew Cagney <cagney@redhat.com>
1111 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1112 sprintf. Make "name" constant.
1114 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1116 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1117 instead of frame_read_register.
1118 (i387_print_float_info): Use get_frame_register and
1119 get_frame_register_unsigned instead of frame_register_read.
1121 * i386fbsd-nat.c: Include "i386-tdep.h".
1122 (child_resume): Make `eflags' an ULONGEST. Use
1123 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1124 instead of register_read and register_write.
1126 * i386bsd-nat.c (fetch_inferior_registers,
1127 store_inferior_registers): Don't use && at the end of a line.
1128 (_initialize_i386bsd_nat): Fix typo.
1130 * frame.c (_initialize_frame): Add missing backslash.
1132 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1133 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1134 and supply_register instead of manipulating the register buffer
1137 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1138 * config/i386/nm-i386sol2.h
1139 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1141 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1142 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1143 instructions that GCC likes to mingle into the prologue. Fixes
1144 gdb/1253 and gdb/1255.
1146 2003-08-09 Andrew Cagney <cagney@redhat.com>
1149 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1150 * command.h (add_setshow_uinteger_cmd): Declare.
1151 * frame.c (set_backtrace_cmd): New function.
1152 (show_backtrace_cmd): New function.
1153 * frame.c (_initialize_frame): Replace "set/show
1154 backtrace-below-main" with "set/show backtrace past-main". Add
1155 command "set/show backtrace limit".
1156 (backtrace_past_main): Rename "backtrace_below_main".
1157 (backtrace_limit): New variable.
1158 (get_prev_frame): Update. Check the backtrace_limit.
1160 2003-08-09 Andrew Cagney <cagney@redhat.com>
1162 * defs.h (xstrprintf): Declare.
1163 * utils.c (xstrprintf): New function.
1164 * breakpoint.c (insert_breakpoints): Replace sprintf and
1165 non-literal format strings, with xstrprintf and cleanups.
1166 (delete_breakpoint,breakpoint_re_set): Ditto.
1167 (commands_command, insert_breakpoints): Ditto.
1168 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1169 (break_at_finish_command_1): Ditto.
1171 2003-08-09 Andrew Cagney <cagney@redhat.com>
1173 * MAINTAINERS (language support): List Adam Fedor as Objective C
1176 2003-08-08 J. Brobecker <brobecker@gnat.com>
1178 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1179 are now multiarched.
1181 2003-08-08 J. Brobecker <brobecker@gnat.com>
1183 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1184 longer necessary now that hppa64 is partially multiarch'ed.
1186 2003-08-08 Andrew Cagney <cagney@redhat.com>
1188 * interps.c (interp_set): Check for a NULL "old_interp".
1190 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1192 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1193 (install-only): Support DESTDIR.
1194 (uninstall): Likewise.
1195 (install-gdbtk): Likewise.
1197 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1199 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1200 contains something meaningful at all times.
1202 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1204 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1206 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1208 * MAINTAINERS (write after approval): Added self.
1210 2003-08-07 Andrew Cagney <cagney@redhat.com>
1212 * inferior.h (AT_SYMBOL): Define.
1213 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1214 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1215 * mips-tdep.c (mips_call_dummy_address): Delete function.
1216 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1217 set call_dummy_address.
1219 2003-08-07 Andrew Cagney <cagney@redhat.com>
1221 * language.c (op_error): Delete function.
1222 (binop_type_check): Delete function.
1223 * language.h (type_op_error, range_op_error): Delete macros.
1224 (op_error): Delete declaration.
1226 2003-08-07 Andrew Cagney <cagney@redhat.com>
1228 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1230 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1232 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1233 (x86_64_push_arguments): Skip the red zone.
1235 2003-08-05 Andrew Cagney <cagney@redhat.com>
1237 * reggroups.c (reggroup_next): Check for the final entry.
1239 2003-08-04 Andrew Cagney <cagney@redhat.com>
1241 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1242 * cli/cli-script.c (define_command): Call query directly, instead
1243 of passing it a buffer.
1244 * ocd.c (ocd_error): Pass error a constant format string.
1245 * remote-mips.c (mips_error): Use fputs_filtered.
1247 * solib-svr4.c (_initialize_svr4_solib): Update
1248 register_gdbarch_data call.
1249 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1251 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1252 (register_gdbarch_data): Delete "free" parameter. Update
1254 * gdbarch.h, gdbarch.c: Re-generate.
1255 * reggroups.c (_initialize_reggroup): Update.
1256 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1257 * frame-base.c (_initialize_frame_base): Update.
1258 * frame-unwind.c (_initialize_frame_unwind): Update.
1259 * user-regs.c (_initialize_user_regs): Update.
1260 * remote.c (_initialize_remote): Update.
1261 * regcache.c (_initialize_regcache): Update.
1263 * regcache.c (xfree_regcache_descr): Delete function.
1264 (_initialize_regcache): Update call to register_gdbarch_data.
1265 (init_regcache_descr, init_legacy_regcache_descr): Use
1266 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1268 * remote.c (free_remote_state): Delete function.
1269 (_initialize_remote): Update register_gdbarch_data.
1270 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1271 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1273 2003-08-04 Andrew Cagney <cagney@redhat.com>
1275 * reggroups.c (struct reggroup_el): Define.
1276 (struct reggroups): Delete field "nr_group". Replace array
1277 "group" with a "first" to "last" linked list.
1278 (reggroups_init): Update. Allocate using gdbarch's obstack.
1279 (reggroups_free): Delete function.
1280 (add_group): Update. Add "el" parameter.
1281 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1282 (default_groups): Update.
1283 (reggroup_next): Replace reggroups.
1284 (reggroups_dump): Update.
1285 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1286 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1287 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1289 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1291 * Makefile.in (tui-interp.o): Update dependencies.
1293 2003-08-04 David Carlton <carlton@kealia.com>
1295 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1296 to internal_error call.
1297 * source.c (forward_search_command): Add "%s" format argument.
1298 (reverse_search_command): Ditto.
1299 * top.c (quit_confirm): Ditto.
1300 * cli/cli-setshow.c (do_setshow_command): Ditto.
1301 * cp-valprint.c (cp_print_class_method): Replace
1302 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1303 (cp_print_class_member): Ditto.
1304 * event-top.c (command_line_handler): Ditto.
1305 * linux-proc.c (linux_info_proc_cmd): Ditto.
1306 * p-typeprint.c (pascal_type_print_base): Ditto.
1307 * p-valprint.c (pascal_object_print_class_method): Ditto.
1308 (pascal_object_print_class_member): Ditto.
1309 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1310 * remote.c (remote_cisco_section_offsets): Ditto.
1311 * top.c (command_line_input): Ditto.
1312 * utils.c (vwarning,error_stream,quit): Ditto.
1313 * valprint.c (print_floating,print_binary_chars)
1314 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1316 2003-08-04 Andrew Cagney <cagney@redhat.com>
1318 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1320 2003-08-02 Andrew Cagney <cagney@redhat.com>
1322 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1323 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1326 2003-08-02 Andrew Cagney <cagney@redhat.com>
1328 * Makefile.in: Update all dependencies and definitions.
1330 2003-08-02 Adam Fedor <fedor@gnu.org>
1332 * linespec.c (is_objc_method_format): New function
1333 (decode_line_1, locate_first_half): Use it.
1336 2003-08-01 Andrew Cagney <cagney@redhat.com>
1338 * NEWS: Mention that m32r is multi-arch.
1339 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1340 * configure.tgt: Recognize m32r-*-*.
1341 * config/m32r/tm-m32r.h: Delete file.
1342 * config/m32r/m32r.mt: New file.
1343 * m32r-rom.c (m32r_upload_command): Use hostent only when
1344 gethostname succeeds, in order to avoid a compilation
1346 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1349 2003-08-01 Michael Snyder <msnyder@redhat.com>
1351 * sh-tdep.c (sh_frame_align): New gdbarch method.
1352 (sh_gdbarch_init): Set up frame_align method.
1354 2003-07-31 Michael Snyder <msnyder@redhat.com>
1356 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1357 which is already covered by the new frames infrastructure.
1359 2003-07-31 Andrew Cagney <cagney@redhat.com>
1361 * user-regs.c (struct user_reg): Add "next" link.
1362 (struct user_regs): Replace "user" with "first" and "last" links.
1363 (append_user_reg): Add pre-allocated "reg" parameter.
1364 (builtin_user_regs): Provide initial value for "last".
1365 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1366 (user_regs_init): Allocate memory from the gdbarch obstack.
1367 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1368 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1370 (usernum_to_user_reg): New function.
1371 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1372 (value_of_user_reg): Use usernum_to_user_reg.
1373 (user_regs_free): Delete function.
1374 (_initialize_user_regs): Update register_gdbarch_data call.
1376 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1378 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1380 2003-07-30 Michael Snyder <msnyder@redhat.com>
1382 * value.h (value_being_returned): Add a struct_addr argument.
1383 * infcall.c (call_function_by_hand): Pass struct_addr to
1384 value_being_returned.
1385 * infcmd.c (print_return_value): Pass zero as struct_addr.
1386 * values.c (value_being_returned): If struct_addr is passed,
1387 use it instead of trying to recover it from the inferior.
1389 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1391 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1392 the prologue analyzer won't need to attempt to extract the pc
1393 value from the woefully incomplete dummy frame.
1394 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1395 possible. Disable code which modifies the frame.
1397 2003-07-28 Andrew Cagney <cagney@redhat.com>
1399 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1401 (annotate_breakpoints_table, annotate_record): Ditto.
1402 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1403 (annotate_field_name_end, annotate_field_value): Ditto.
1404 (annotate_field_end, annotate_frame_source_begin): Ditto.
1405 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1406 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1407 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1408 (annotate_frame_address_end, annotate_frame_address): Ditto.
1409 (annotate_frame_args, annotate_frame_end): Ditto.
1410 (annotate_frame_where, annotate_arg_begin): Ditto.
1411 (annotate_arg_name_end, annotate_arg_value): Ditto.
1412 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1413 (annotate_function_call, annotate_signal_name): Ditto.
1414 (annotate_signal_string, annotate_signal_name_end): Ditto.
1415 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1416 (annotate_value_begin, annotate_value_history_value): Ditto.
1417 (annotate_value_history_end, annotate_value_end): Ditto.
1418 (annotate_display_begin, annotate_display_number_end): Ditto.
1419 (annotate_display_format, annotate_display_expression): Ditto.
1420 (annotate_display_expression_end, annotate_display_value): Ditto.
1421 (annotate_display_end, annotate_array_section_begin): Ditto.
1422 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1423 (annotate_elt, annotate_array_section_end): Ditto.
1425 2003-07-28 Andrew Cagney <cagney@redhat.com>
1427 * regcache.c (struct regcache_descr): Update comments on
1429 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1430 sizeof_raw_register_valid_p.
1431 (init_regcache_descr): Set nr_raw_registers and
1432 sizeof_raw_register_valid_p before calling
1433 init_legacy_regcache_descr.
1435 2003-07-28 Andrew Cagney <cagney@redhat.com>
1437 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1440 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1442 * thread.c (info_threads_command): Use get_selected_frame ().
1443 Check that there is at least one non-sentinel frame.
1445 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1447 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1448 (m68hc11_pop_frame): Remove.
1449 (m68hc11_frame_saved_pc): Remove.
1450 (m68hc11_frame_chain): Remove.
1451 (m68hc11_frame_init_saved_regs): Remove.
1452 (m68hc11_init_extra_frame_info): Remove.
1453 (m68hc11_store_struct_return): Remove.
1454 (m68hc11_saved_pc_after_call): Remove.
1456 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1458 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1459 frame unwind information.
1460 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1461 and adapted for frame unwinding.
1462 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1463 (m68hc11_unwind_pc): New function.
1464 (m68hc11_frame_unwind_cache): New function to analyze frames.
1465 (m68hc11_frame_this_id): New function to create new frame struct.
1466 (m68hc11_frame_prev_register): New function to unwind a register from
1468 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1469 (m68hc11_frame_p): New function for the above.
1470 (m68hc11_frame_base_address): New function to return fp of frame.
1471 (m68hc11_frame_args_address): Update for frame.
1472 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1473 (m68hc11_unwind_sp): New function.
1474 (m68hc11_unwind_dummy_id): New function.
1475 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1478 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1480 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1481 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1482 when we are beyond the current pc.
1484 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1486 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1487 from m68hc11_push_arguments.
1488 (m68hc11_push_arguments): Remove.
1489 (m68hc11_push_return_address): Remove.
1490 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1491 handlers; remove deprecated_extra_stack_alignment_needed.
1493 2003-07-27 Andrew Cagney <cagney@redhat.com>
1495 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1496 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1497 REAL_PC and not the pointer.
1498 * hppa-hpux-tdep.c: Include frame.h
1500 2003-07-27 Andrew Cagney <cagney@redhat.com>
1502 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1503 GDB_MULTI_ACH_PARTIAL.
1505 2003-07-27 Andrew Cagney <cagney@redhat.com>
1507 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1508 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1509 operator at start and not end of line.
1510 (decode_prologue): Ditto.
1511 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1512 frame_unwind_register_unsigned instead of
1513 frame_unwind_unsigned_register.
1514 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1516 (m32r_push_dummy_call): Use register_size instead of
1518 (m32r_frame_sniffer): Replace m32r_frame_p.
1519 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1520 * m32r-rom.c (report_transfer_performance): Delete extern
1522 (m32r_load, m32r_upload_command): Use print_transfer_performance
1523 instead of report_transfer_performance.
1524 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1525 / add_show_from_set.
1527 2003-07-26 Andrew Cagney <cagney@redhat.com>
1529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1530 store_return_value and extract_struct_value_address.
1532 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1535 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1536 NULL, default to the section containing PC.
1538 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1540 * NEWS: Mention "regs" deprecated for m68hc11 too.
1542 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1543 (m68hc11_print_register): New function to print out one register.
1544 (m68hc11_print_registers_info): New function to print registers.
1545 (show_regs): Deprecate and use the above.
1546 (m68hc11_gdbarch_init): Install the print_registers_info.
1548 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1550 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1551 that we have a SIGTRAP before returning non-zero.
1553 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1554 Elena Zannoni <ezannoni@redhat.com>
1556 * linespec.c (decode_line_2): Avoid crash if
1557 find_function_start_sal() returns empty record.
1559 2003-07-23 Andreas Schwab <schwab@suse.de>
1561 * ia64-tdep.c (ia64_print_insn): New function.
1562 (ia64_gdbarch_init): Set print_insn to it.
1563 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1564 deprecated_tm_print_insn_info.
1566 2003-07-22 Michael Snyder <msnyder@redhat.com>
1568 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1569 handle 8-bit returns (long long).
1570 (h8300h_extract_return_value): Ditto.
1571 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1573 2003-07-22 Andrew Cagney <cagney@redhat.com>
1575 * gdbarch.c Include "gdb_obstack.h".
1576 (struct gdbarch): Add an "obstack".
1577 (alloc_gdbarch_data): Allocate the gdbarch data using
1578 GDBARCH_OBSTACK_CALLOC.
1579 (free_gdbarch_data): Delete function.
1580 (gdbarch_obstack_zalloc): New function.
1581 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1582 Assert that the architecture is not initialized.
1583 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1584 vector from the obstack.
1585 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1586 architecture obstack.
1587 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1588 (set_gdbarch_data): Assert that the data is not initialized.
1589 (struct gdbarch_data): Delete member "free".
1590 (register_gdbarch_data): Do not initialize "free".
1591 * gdbarch.h, gdbarch.c: Re-generate.
1593 2003-07-22 Andrew Cagney <cagney@redhat.com>
1595 * configure.in (build_warnings): Add -Wformat-nonliteral.
1596 * configure: Re-generate.
1598 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1600 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1602 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1604 * findvar.c (read_var_value): Remove case for thread local storage
1605 variables. It is now entirely handled by the dwarf2 location
1607 * printcmd.c (address_info): Ditto.
1608 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1610 (struct symbol): Remove objfile field, which was used by
1611 LOC_THREAD_LOCAL_STATIC only.
1612 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1613 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1614 usage of objfile pointer.
1615 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1616 thread local variables.
1617 Add include of objfiles.h.
1618 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1620 * Makefile.in (dwarf2loc.o): Update dependencies.
1622 2003-07-22 Andrew Cagney <cagney@redhat.com>
1624 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1626 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1627 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1628 (struct value): Add opaque declaration.
1629 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1631 2003-07-21 Andrew Cagney <cagney@redhat.com>
1633 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1634 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1636 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1638 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1639 regcache_cooked_read_unsigned instead of read_register.
1640 (m68hc11_saved_pc_after_call): Likewise.
1641 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1642 instead of write_register.
1643 (m68hc11_register_type): New function.
1644 (m68hc11_register_virtual_type): Remove.
1645 (m68hc11_store_return_value): Convert to use the regcache.
1646 (m68hc11_extract_struct_value_address): Likewise.
1647 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1648 m68hc11_register_type; undeprecate store_return_value and
1649 extract_struct_value_address.
1651 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1653 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1654 and translate to use regcache.
1655 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1657 2003-07-18 Andrew Cagney <cagney@redhat.com>
1659 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1660 * gdbarch.h, gdbarch.c: Re-generate.
1661 * i386-tdep.c (i386_gdbarch_init): Do not set
1662 DWARF2_BUILD_FRAME_INFO.
1663 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1665 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1666 DWARF2_BUILD_FRAME_INFO.
1668 2003-07-18 Andrew Cagney <cagney@redhat.com>
1670 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1671 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1673 2003-07-18 Andrew Cagney <cagney@redhat.com>
1675 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1676 frame_unwind_address_in_block, instead of frame_pc_unwind.
1677 (dwarf2_frame_cache): Ditto.
1679 2003-07-18 Andrew Cagney <cagney@redhat.com>
1681 * user-regs.h (struct gdbarch): Declare opaque.
1682 * ui-out.h (struct ui_file): Declare opaque.
1683 * dwarf2-frame.h (struct frame_info): Declare opaque.
1685 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1687 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1689 (procfs_meminfo): Change strerror to safe_strerror.
1690 (procfs_can_run): Remove K&R badness.
1692 2003-07-17 Michael Snyder <msnyder@redhat.com>
1694 * remote-sim.c: Comment typo fix.
1696 2003-07-17 Andrew Cagney <cagney@redhat.com>
1698 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1700 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1701 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1702 GDB_MULTI_ARCH_PARTIAL.
1704 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1706 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1707 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1708 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1710 2003-07-16 Theodore A. Roth <troth@openavr.org>
1712 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1714 (avr_frame_unwind_cache): Don't unwind FP for main.
1716 Save the computed prev_sp.
1717 (avr_saved_regs_unwinder): Remove function.
1718 (avr_frame_prev_register): Use PC unwind logic from
1719 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1721 2003-07-16 Andrew Cagney <cagney@redhat.com>
1723 * frame-base.h (frame_base_p_ftype): Delete definition.
1724 (frame_base_append_predicate): Delete declaration.
1725 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1726 (frame_unwind_append_predicate): Delete declaration.
1727 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1728 (append_predicate): Delete parameter "p".
1729 (frame_unwind_append_predicate): Delete function.
1730 (frame_unwind_append_sniffer): Update call to append_predicate.
1731 (frame_unwind_free): Delete function.
1732 (_initialize_frame_unwind): Pass NULL as "free" to
1733 register_gdbarch_data.
1734 (frame_unwind_init): Append the dummy_frame_sniffer.
1735 (frame_unwind_find_by_frame): Simplify.
1736 * frame-base.c (struct frame_base_table): Delete field "p".
1737 (append_predicate): Delete parameter "p".
1738 (frame_base_append_predicate): Delete function.
1739 (frame_base_append_sniffer): Update call to append_predicate.
1740 (frame_base_free): Delete function.
1741 (frame_base_find_by_frame): Simplify.
1742 (_initialize_frame_base): Pass NULL as "free" to
1743 register_gdbarch_data.
1744 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1745 (x86_64_sigtramp_frame_sniffer): Replace
1746 "x86_64_sigtramp_frame_p".
1747 (x86_64_init_abi): Set the frame unwind sniffers.
1748 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1749 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1750 (m68k_gdbarch_init): Set the frame unwind sniffers.
1751 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1752 "i386_sigtramp_frame_p".
1753 (i386_frame_sniffer): Replace "i386_frame_p".
1754 (i386_gdbarch_init): Set the frame unwind sniffers.
1755 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1756 (avr_gdbarch_init): Set the frame unwind sniffers.
1757 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1758 "alpha_sigtramp_frame_p"
1759 (alpha_heuristic_frame_sniffer): Replace
1760 "alpha_heuristic_frame_p".
1761 (alpha_gdbarch_init): Set the frame unwind sniffers.
1762 (alpha_dwarf2_init_abi): Ditto.
1763 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1764 "alpha_debug_frame_p".
1765 (alpha_mdebug_frame_base_sniffer): Replace
1766 "alpha_mdebug_frame_base_p".
1767 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1768 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1769 (d10v_gdbarch_init): Set the frame unwind sniffer.
1770 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1771 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1772 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1773 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1774 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1775 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1777 2003-07-16 Michael Snyder <msnyder@redhat.com>
1779 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1780 should go thru sh_dsp_register_sim_regno, else the dsp regs
1781 will not get the right values.
1783 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1785 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1786 deprecated_store_floating by call to store_typed_floating.
1787 (sh_sh4_register_convert_to_raw): Substitute call to
1788 deprecated_extract_floating by call to extract_typed_floating.
1790 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1792 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1794 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1796 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1797 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1798 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1800 (do_pseudo_register): Remove.
1801 (sh_push_dummy_code): New function.
1802 (sh64_store_struct_return): Rename from sh_store_struct_return.
1803 Only called for sh64 now.
1804 (sh_extract_struct_value_address): Regcache'ify.
1805 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1806 and accomodate new tasks.
1807 (sh64_push_return_address): Rename from sh_push_return_address.
1808 Only called for sh64 now.
1809 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1811 (sh3e_sh4_extract_return_value): Regcache'ify.
1812 (sh_default_store_return_value): Ditto.
1813 (sh3e_sh4_store_return_value): Ditto.
1814 (sh_default_register_byte): Remove.
1815 (sh_sh4_register_byte): Remove.
1816 (sh_default_register_raw_size): Remove.
1817 (sh_sh4_register_raw_size): Remove.
1818 (sh_register_virtual_size): Remove.
1819 (sh_sh3e_register_virtual_type): Remove.
1820 (sh_sh3e_register_type): New function.
1821 (sh_sh4_register_virtual_type): Remove.
1822 (sh_sh4_register_type): New function.
1823 (sh_default_register_virtual_type): Remove.
1824 (sh_default_register_type): New function.
1825 (do_fv_register_info): Add parameters to accomodate call from
1826 sh_print_registers_info.
1827 (do_dr_register_info): Ditto.
1828 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1829 Add parameters to accomodate call from sh_print_registers_info.
1830 (sh_do_fp_register): Ditto.
1831 (sh64_do_pseudo_register): Call do_dr_register_info,
1832 do_fv_register_info and sh_do_fp_register with default parameters.
1833 (sh_do_register): Add parameters to accomodate call from
1834 sh_print_registers_info.
1835 (sh_print_register): Ditto.
1836 (sh_print_registers_info): Rename from sh_do_registers_info.
1837 Add parameters to be used as gdbarch_print_registers_info
1838 implementation. Accomodate removed do_pseudo_register function
1840 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1841 function pointer. Call sh_print_register with default parameters.
1842 (sh64_do_registers_info): Call sh_print_registers_info instead of
1843 sh_do_registers_info.
1844 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1845 detection of deprecated vs. non-deprecated functionality.
1846 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1847 function pointer assignments by direct function calls.
1849 2003-07-15 Andrew Cagney <cagney@redhat.com>
1851 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1852 (frame_register_unwind, create_new_frame): Ditto.
1853 (legacy_get_prev_frame, get_frame_type): Ditto.
1854 (get_frame_base_address): Use frame_base_find_by_frame.
1855 (get_frame_locals_address): Use frame_base_find_by_frame.
1856 (get_frame_args_address): Use frame_base_find_by_frame.
1857 * frame-base.h (frame_base_sniffer_ftype): Declare.
1858 (frame_base_append_sniffer): Declare.
1859 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1860 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1861 (frame_base_append_sniffer): New function.
1862 (frame_base_append_predicate): Add a NULL sniffer.
1863 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1864 (struct frame_base_table): Add "sniffer".
1865 (frame_base_free): Free the "sniffer" table.
1866 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1867 (frame_unwind_append_sniffer): Declare.
1868 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1869 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1870 (struct frame_unwind_table): Add "sniffer", delete "middle".
1871 (append_predicate): Add "sniffer" parameter, append the sniffer.
1872 (frame_unwind_init): Update append_predicate call.
1873 (frame_unwind_append_sniffer): New function.
1874 (frame_unwind_append_predicate): Update append_predicate call.
1875 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1877 2003-07-15 Andrew Cagney <cagney@redhat.com>
1879 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1880 before code inhibiting repeated unwind attempts. Add to
1881 commentary on that test's problems.
1882 * blockframe.c (inside_main_func): Look for "main" in the minimal
1884 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1887 2003-07-15 Andrew Cagney <cagney@redhat.com>
1889 * complaints.c (struct explanation): Define.
1890 (struct complaints): Change type of "explanation" to "struct
1892 (symfile_explanations): Convert to a "struct explanation" table.
1893 (vcomplaint): Update.
1895 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1897 * x86-64-linux-nat.c (regmap): Removed.
1898 (supply_gregset, fill_gregset): Call
1899 x86_64_linux_(fill,supply)_gregset functions.
1900 * x86-64-linux-tdep.c (USER_*): New defines.
1901 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1902 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1904 (fetch_core_registers): Ditto.
1905 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1906 * x86-64-linux-tdep.h: New file.
1907 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1909 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1911 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1913 * x86-64-tdep.c (x86_64_store_return_value): Use
1914 regcache_cooked_write_part instead of regcache_cooked_write.
1916 * configure.host: Add x86_64-*-freebsd*.
1917 * configure.tgt: Add x86_64-*-freebsd*.
1918 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1919 * amd64fbsd-nat.c: New file.
1920 * amd64fbsd-tdep.c: New file.
1921 * config/i386/nm-fbsd64.h: New file.
1922 * config/i386/fbsd64.mh: New file.
1923 * config/i386/fbsd64.mt: New file.
1925 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1927 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1928 `sc_regs_offset' and `sc_fpregs_offset'.
1929 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1930 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1931 (alpha_sigtramp_register_address): Rewrite to use new members of
1932 `struct gdbarch_tdep'.
1933 (alpha_gdbarch_init): Initialize new members of struct
1935 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1936 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1937 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1938 (alphafbsd_pc_in_sigtramp): Implement.
1939 (alphafbsd_sigtramp_offset): New function.
1940 (alphafbsd_sigcontext_addr): New function.
1941 (alphafbsd_init_abi): Initialize signal trampoline related members
1942 of `struct gdbarch_tdep'.
1943 (_initialize_alphafbsd_tdep): Add prototype.
1945 2003-07-11 Theodore A. Roth <troth@openavr.org>
1947 * Makefile.in (install-only): Quote sed expression when generating
1950 2003-07-11 Richard Henderson <rth@redhat.com>
1952 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1953 * dwarf2-frame.c: Include complaints.h.
1954 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1955 variable initialization; return NULL on error.
1956 (decode_frame_entry): New.
1958 2003-07-11 Andrew Cagney <cagney@redhat.com>
1960 * frame.h (frame_address_in_block): Delete declaration.
1961 * blockframe.c (frame_address_in_block): Delete function.
1962 (get_frame_block): Use get_frame_address_in_block.
1963 (block_innermost_frame): Ditto.
1964 * stack.c (print_frame, backtrace_command_1): Ditto.
1966 * frame.h (get_frame_address_in_block): Declare.
1967 (frame_unwind_address_in_block): Declare.
1968 * frame.c (frame_unwind_address_in_block): New function.
1969 (get_frame_address_in_block): New function.
1971 2003-07-10 Andrew Cagney <cagney@redhat.com>
1973 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1974 pre-default. Note: re-generate has no effect.
1976 2003-07-10 Andrew Cagney <cagney@redhat.com>
1978 * gdbarch.sh: When a variable, but not a function, compare against
1979 0. Fix problem in previous patch.
1980 * gdbarch.c: Re-generate.
1982 2003-07-10 Andrew Cagney <cagney@redhat.com>
1984 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1985 functions against NULL, not 0.
1986 * gdbarch.c: Re-generate.
1988 2003-07-10 Fred Fish <fnf@ninemoons.com>
1990 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1991 null string instead of a null pointer.
1992 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1994 2003-07-09 Michael Snyder <msnyder@redhat.com>
1996 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1998 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2000 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2001 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2002 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2003 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2004 * x86-64-tdep.c: ... from here.
2006 2003-07-09 Andreas Schwab <schwab@suse.de>
2008 * m68k-tdep.h (enum struct_return): Define.
2009 (struct gdbarch_tdep): Add struct_return.
2010 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2011 bytes are padded to the right, not to the left. Pass struct value
2012 address in register %a1, not on stack.
2013 (m68k_use_struct_convention): New function.
2014 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2015 struct_return in tdep to pcc_struct_return.
2016 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2019 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2021 * somread.c (som_symfile_offsets): Fix compilation error.
2023 2003-07-09 Andrew Cagney <cagney@redhat.com>
2025 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2026 Add comments about the checks.
2028 2003-07-08 Andrew Cagney <cagney@redhat.com>
2030 * Makefile.in: Make dependency section headers consistent.
2031 (config_h): Move to $BUILD headers section.
2032 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2033 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2034 (ada-exp.tab.c): Move to YACC/LEX section.
2035 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2036 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2038 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2040 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2041 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2042 of strerror with safe_strerror, use ISO C function definitions,
2043 and replace instances of sprintf with snprintf.
2045 2003-07-07 Andrew Cagney <cagney@redhat.com>
2047 * frame.c (get_prev_frame): Enable check for identical frames.
2048 Update comments. Update error messages.
2050 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2052 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2054 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2056 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2057 sort_symtab_syms, no longer necessary.
2059 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2061 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2063 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2065 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2066 (mips_register_byte): Likewise.
2068 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2070 * Makefile.in (sparc_tdep_h): New.
2071 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2072 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2073 * sparc-linux-nat.c: Include "sparc-tdep.h".
2074 * sparc-nat.c: Likewise.
2075 * sparc-tdep.c: Likewise.
2076 * sparc64nbsd-nat.c: Likewise.
2077 * sparcnbsd-nat.c: Likewise.
2078 * sparcnbsd-tdep.c: Likewise.
2079 * sparc-tdep.h: New file.
2080 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2081 and sparc_npc_regnum.
2083 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2085 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2086 (mips_linux_cannot_store_register): List supported instead of
2087 unsupported registers.
2089 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2091 * disasm.c (dump_insns): Separate instructions from addresses.
2093 2003-07-07 Andreas Schwab <schwab@suse.de>
2095 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2097 * m68k-tdep.c (NUM_FREGS): Delete.
2098 (SIG_PC_FP_OFFSET): Delete.
2099 (TARGET_M68K): Delete.
2100 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2101 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2102 P_MOVEL_SP, P_MOVEML_SP): Define.
2103 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2105 (m68k_register_raw_size): Delete.
2106 (m68k_register_virtual_size): Delete.
2107 (m68k_register_type): Renamed from m68k_register_virtual_type and
2108 add gdbarch argument.
2109 (m68k_store_struct_return): Delete.
2110 (m68k_deprecated_extract_return_value): Delete.
2111 (m68k_deprecated_extract_struct_value_address): Delete.
2112 (m68k_frame_chain): Delete.
2113 (m68k_frame_saved_pc): Delete.
2114 (m68k_fix_call_dummy): Delete.
2115 (m68k_push_dummy_frame): Delete.
2116 (m68k_pop_frame): Delete.
2117 (m68k_extract_return_value): New function.
2118 (m68k_store_return_value): Rewrite using regcache.
2119 (m68k_extract_struct_value_address): Rewrite using regcache.
2120 (m68k_push_dummy_call): New function.
2121 (struct m68k_frame_cache): Define.
2122 (m68k_alloc_frame_cache): New function.
2123 (m68k_analyze_frame_setup): New function.
2124 (m68k_analyze_register_saves): New function.
2125 (m68k_analyze_prologue): New function.
2126 (m68k_skip_prologue): Rewrite using above functions.
2127 (m68k_unwind_pc): New function.
2128 (m68k_frame_cache): New function.
2129 (m68k_frame_this_id): New function.
2130 (m68k_frame_prev_register): New function.
2131 (m68k_frame_unwind): New variable.
2132 (m68k_frame_p): New function.
2133 (m68k_sigtramp_frame_cache): New function.
2134 (m68k_sigtramp_frame_this_id): New function.
2135 (m68k_sigtramp_frame_prev_register): New function.
2136 (m68k_sigtramp_frame_unwind): New variable.
2137 (m68k_sigtramp_frame_p): New function.
2138 (m68k_frame_base_address): New function.
2139 (m68k_frame_base): New function.
2140 (m68k_unwind_dummy_id): New function.
2141 (fill_gregset): Use regcache_collect.
2142 (fill_fpregset): Likewise.
2143 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2145 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2146 deprecated_init_frame_pc, deprecated_store_struct_return,
2147 deprecated_extract_return_value, deprecated_store_return_value,
2148 deprecated_frame_chain, deprecated_frame_saved_pc,
2149 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2150 deprecated_register_virtual_size,
2151 deprecated_max_register_raw_size,
2152 deprecated_max_register_virtual_size,
2153 deprecated_register_virtual_type, deprecated_register_size,
2154 deprecated_register_byte, deprecated_register_bytes,
2155 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2156 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2157 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2158 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2159 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2160 deprecated_push_dummy_frame, deprecated_pop_frame,
2161 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2162 only if SYSCALL_TRAP is defined. Set extract_return_value,
2163 store_return_value, extract_struct_value_address, register_type,
2164 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2166 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2167 M68K_MAX_REGISTER_SIZE): Define.
2168 (struct m68k_sigtramp_info): Define.
2169 (struct gdbarch_tdep): Add get_sigtramp_info.
2170 * m68klinux-nat.c (fetch_register): Use register_size instead of
2171 REGISTER_RAW_SIZE. Don't put assignment in if.
2172 (store_register): Likewise.
2173 (fetch_inferior_registers): Likewise.
2174 (store_inferior_registers): Likewise.
2175 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2176 (m68k_linux_frame_saved_pc): Delete.
2177 (m68k_linux_sigcontext_reg_offset,
2178 m68k_linux_ucontext_reg_offset): Define.
2179 (m68k_linux_get_sigtramp_info): New function.
2180 (m68k_linux_extract_return_value): Rewrite using regcache.
2181 (m68k_linux_store_return_value): Likewise.
2182 (m68k_linux_extract_struct_value_address): Likewise.
2183 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2184 Don't set deprecated_frame_saved_pc,
2185 deprecated_extract_return_value, deprecated_store_return_value,
2186 deprecated_extract_struct_value_address. Set
2187 extract_return_value, store_return_value,
2188 extract_struct_value_address.
2190 2003-07-07 Andrew Cagney <cagney@redhat.com>
2192 * expprint.c: Include "user-regs.h" instead of "frame.h".
2193 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2194 frame_map_regnum_to_name.
2195 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2196 (frame_map_name_to_regnum): Simplify, call
2197 user_reg_map_name_to_regnum.
2198 (frame_map_regnum_to_name): Simplify, call
2199 user_reg_map_regnum_to_name.
2200 (frame_register_unwind): Update.
2201 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2202 (_initialize_frame_reg): Call user_reg_add_builtin.
2203 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2204 (value_of_register): Use value_of_user_reg.
2205 * eval.c (evaluate_subexp_standard): Update.
2206 * parse.c (write_dollar_variable): Update.
2207 * d10v-tdep.c (d10v_print_registers_info): Update.
2208 * infcmd.c (registers_info): Update.
2209 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2210 (builtin_regs_h): Delete macro.
2211 (user_regs_h): Define.
2212 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2213 (builtin-regs.o): Delete target.
2214 (user-regs.o): Specify dependencies.
2215 (expprint.o): Update dependencies.
2216 (findvar.o): Update dependencies.
2217 (frame.o): Update dependencies.
2218 (std-regs.o): Update dependencies.
2220 2003-07-06 Christopher Faylor <cgf@redhat.com>
2222 * win32-nat.c (solib_symbols_add): Use one variable for all section
2223 address stuff. Pass variable rather than address of variable to
2224 safe_symbol_file_add.
2226 2003-07-06 Andreas Schwab <schwab@suse.de>
2228 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2230 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2232 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2234 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2236 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2238 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2240 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2241 * config/i386/nto.mh: New file.
2242 * config/i386/nm-nto.h: New file.
2243 * configure.host: Add i[3456]86-*-nto*.
2245 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2247 * remote-vx.c (vx_add_symbols): Fix compilation error.
2249 2003-07-03 Andrew Cagney <cagney@redhat.com>
2251 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2252 * gdbarch.h, gdbarch.c: Re-generate.
2253 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2254 (legacy_register_name): Declare.
2255 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2256 (REGISTER_NAME): Define.
2257 * sparc-tdep.c (legacy_register_name): New function.
2258 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2259 (REGISTER_NAME): Define.
2260 (hppa64_register_name): Declare.
2261 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2262 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2263 (hppa64_register_name): New function.
2264 (hppa_register_name): New function.
2265 * arch-utils.c (legacy_register_name): Delete.
2266 * arch-utils.h (legacy_register_name): Delete.
2268 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2270 * cli/cli-interp.c (cli_interpreter_resume): Update the
2271 cli_uiout's stream to gdb_stdout.
2273 2003-07-03 Andrew Cagney <cagney@redhat.com>
2275 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2277 * gdbarch.h, gdbarch.c: Re-generate.
2278 * regcache.c (init_regcache_descr): Use legacy code when either
2279 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2281 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2283 * NEWS: Move "set logging" entry into GDB 6.0 section.
2285 2003-07-02 Jim Blandy <jimb@redhat.com>
2287 * s390-tdep.c (struct frame_extra_info): new member:
2288 'stack_bought_valid'.
2289 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2290 initialize fextra_info->stack_bought.
2291 (s390_frameless_function_invocation): Don't trust the value of
2292 fextra_info_ptr->stack_bought unless
2293 fextra_info->stack_bought_valid is set.
2295 New S390 prologue analyzer.
2296 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2297 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2298 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2299 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2300 compute_x_addr, s390_on_stack, s390_store,
2301 s390_get_signal_frame_info): New functions.
2302 (S390_NUM_SPILL_SLOTS): New macro.
2303 (s390_get_frame_info): Rewritten.
2304 (is_arg_reg): Deleted.
2306 Break out the decoding of S/390 instructions into separate
2307 functions, to make it more legible, and easier to check
2309 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2310 is_rx, is_rxe): New functions.
2311 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2312 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2313 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2314 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2315 enums for opcode values. (Is this an improvement?)
2317 2003-07-02 Andrew Cagney <cagney@redhat.com>
2319 * i386-tdep.c: Revert change committed as part of trad-frame code
2322 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2324 * breakpoint.c (insert_catchpoint): Make static.
2326 2003-07-02 Andreas Schwab <schwab@suse.de>
2328 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2329 former ia64_push_arguments and ia64_push_return_address, and use
2330 regcache functions instead of read/write_register.
2331 (ia64_gdbarch_init): Set push_dummy_call instead of
2332 deprecated_push_arguments and deprecated_push_return_address.
2334 2003-07-01 Andreas Jaeger <aj@suse.de>
2336 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2338 Set %rax only to number of SSE registers used.
2340 2003-07-01 Andrew Cagney <cagney@redhat.com>
2342 * trad-frame.h: Update comments, a -1 .addr is reserved.
2343 (trad_frame_value_p, trad_frame_addr_p): Declare.
2344 (trad_frame_reg_p): Declare.
2345 (trad_frame_set_value): Rename trad_frame_register_value.
2346 (trad_frame_set_unknown): Declare.
2347 * trad-frame.c (trad_frame_realreg_p): New function.
2348 (trad_frame_addr_p, trad_frame_value_p): New function.
2349 (trad_frame_set_unknown): New function.
2350 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2351 (trad_frame_prev_register): Use trad_frame_realreg_p,
2352 trad_frame_addr_p and trad_frame_value_p.
2353 (trad_frame_set_value): Rename trad_frame_register_value.
2354 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2355 and trad_frame_set_value.
2357 2003-06-30 Jim Blandy <jimb@redhat.com>
2359 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2360 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2361 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2362 for 16 registers, and then 32 more bytes.
2363 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2365 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2366 Move up in the file, since it's now used by is_simple_arg.
2367 (is_simple_arg): Don't assume registers are four bytes long.
2368 Exclude all double arguments. Extended floats are not simple
2370 (is_power_of_two): New function.
2371 (pass_by_copy_ref): Call is_power_of_two, and check that the
2372 length fits in a register, rather than listing all the acceptable
2373 sizes. Extended floats are not passed by reference.
2374 (s390_push_arguments): Don't assume registers are four bytes long.
2375 Reserve an argument register to point to the buffer for structures
2376 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2377 S390_STACK_FRAME_OVERHEAD.
2379 2003-06-30 Andreas Schwab <schwab@suse.de>
2381 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2382 format error message.
2384 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2386 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2388 2003-06-30 David Carlton <carlton@kealia.com>
2390 Band-aid for PR c++/1245.
2391 * Makefile.in (cp-support.o): Depend on complaints_h.
2392 * cp-support.c: Include complaints.h. Add declaration for
2393 find_last_component.
2394 (cp_find_first_component): Separate code into
2395 cp_find_first_component_aux.
2396 (cp_find_first_component_aux): Call demangled_name_complaint.
2397 (demangled_name_complaint): New.
2399 2003-06-30 Andrew Cagney <cagney@redhat.com>
2401 * remote.c (remote_write_bytes): Explicitly compute and then use
2402 the payload size. Update comments to reflect. Fixes problem of
2403 GDB not sending small packets as found by Fred Fish.
2405 2003-06-30 Andrew Cagney <cagney@redhat.com>
2407 * remote.c (remote_async_wait): Fix -Wformat problem.
2409 2003-06-29 Andrew Cagney <cagney@redhat.com>
2411 * remote.c (remote_wait): Call error, and not warning, when the
2413 (remote_async_wait): Ditto.
2415 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2417 * sparc-tdep.c (sparc_y_regnum): Make external again.
2419 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2421 * cli/cli-logging.c (pop_output_files): Add void to function
2424 2003-06-29 Andrew Cagney <cagney@redhat.com>
2426 * frame.c (frame_register_unwind): Use unsigned char when dumping
2427 the buffer contents.
2429 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2431 * cli/cli-logging.c: New file.
2432 * cli-out.c (struct ui_out_data): Add original_stream.
2433 (cli_redirect): New function.
2434 (cli_ui_out_impl): Add cli_redirect.
2435 (cli_out_new): Initialize original_stream.
2436 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2437 (uo_redirect, ui_out_redirect): New.
2438 * ui-out.h (struct ui_out_impl): Add redirect member.
2439 (redirect_ftype): New.
2440 (ui_out_redirect): Add prototype.
2441 * Makefile.in: Add rules for cli-logging.c.
2442 * NEWS: Mention "set logging".
2444 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2446 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2448 2003-06-27 Andrew Cagney <cagney@redhat.com>
2450 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2451 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2452 * avr-tdep.c (avr_call_dummy_address): Delete function.
2453 (avr_gdbarch_init): Do not set call_dummy_address.
2455 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2457 * symfile.c (syms_from_objfile): Move variables to inner block.
2458 Move the checks for the non-mainline case a bit earlier to avoid
2459 doing some useless computations.
2461 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2463 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2465 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2467 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2470 2003-06-26 Michael Chastain <mec@shout.net>
2472 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2473 gdb/testsuite/gdb.c++/pr-1210.exp.
2475 2003-06-26 Andrew Cagney <cagney@redhat.com>
2477 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2478 altivec_expression.h and altivec_registers.h.
2480 2003-06-26 Andrew Cagney <cagney@redhat.com>
2482 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2483 info->mach when MIPS16. Patch suggested by Fred Fish.
2485 2003-06-26 Andrew Cagney <cagney@redhat.com>
2487 * utils.c (internal_vproblem): Print the problem to a reason
2488 buffer and then pass to query. Make the msg variable more local.
2490 2003-06-26 Andrew Cagney <cagney@redhat.com>
2492 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2493 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2494 * gdbarch.h, gdbarch.c: Re-generate.
2495 * frame-base.c (default_frame_args_address): Update. Use
2496 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2498 (default_frame_locals_address): Ditto for
2499 DEPRECATED_FRAME_LOCALS_ADDRESS.
2500 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2501 (vax_frame_num_args): Update.
2502 (vax_gdbarch_init): Update.
2503 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2504 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2505 * mcore-tdep.c (mcore_gdbarch_init): Update.
2506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2507 * ia64-tdep.c (ia64_gdbarch_init): Update.
2508 * symtab.h (address_class): Update comments.
2509 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2510 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2511 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2512 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2513 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2514 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2515 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2516 * alpha-mdebug-tdep.c: Update.
2517 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2519 2003-06-26 Andreas Jaeger <aj@suse.de>
2521 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2522 of SSE registers so that varargs functions work. Rework handling
2523 of passing arguments on the stack.
2524 (x86_64_store_return_value): Return double and float values in SSE
2527 2003-06-24 Michael Chastain <mec@shout.net>
2529 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2530 the "constructor breakpoints ignored" bug.
2532 2003-06-25 David Carlton <carlton@kealia.com>
2534 * MAINTAINERS: Update e-mail address.
2536 2003-06-24 Jim Blandy <jimb@redhat.com>
2538 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2540 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2542 (ppc_linux_init_abi): Register it as the
2543 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2545 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2546 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2549 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2550 (ppc64_standard_linkage_target): Use it.
2552 2003-06-23 Andrew Cagney <cagney@redhat.com>
2554 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2555 for 0 "int0" and 4 "int32" sized registers.
2556 * gdbtypes.c (builtin_type_int0): Define.
2557 (build_gdbtypes): Initialize builtin_type_int0.
2558 * gdbtypes.h (builtin_type_int0): Declare.
2560 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2563 as characters are unsigned.
2565 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2568 * dwarfread.c (struct_type): Skip static fields without crashing.
2570 2003-06-22 Andrew Cagney <cagney@redhat.com>
2572 GDB 6.0 branch created.
2574 * PROBLEMS: Update. Empty.
2577 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2579 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2580 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2582 2003-06-22 Andrew Cagney <cagney@redhat.com>
2584 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2585 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2588 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2590 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2593 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2595 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2596 argument of val_print.
2597 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2598 to the address argument of baseclass_offset or target_read_memory.
2599 Do add it to the argument of cp_print_value_fields.
2601 2003-06-21 Andrew Cagney <cagney@redhat.com>
2603 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2604 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2605 instead of 0..NUM_REGS.
2606 (mips_register_reggroup_p): New function.
2607 (mips_pseudo_register_write): New function.
2608 (mips_pseudo_register_read): New function.
2609 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2610 based on the register's type.
2611 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2613 (mips_get_saved_register): Simplify. Assert that REGNO is a
2615 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2616 (mips_register_type): Replace mips_register_virtual_type. Map
2617 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2619 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2620 that the register is cooked / virtual.
2621 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2622 Only get the extra info when needed.
2623 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2624 (mips32_heuristic_proc_desc): Fetch the cooked register.
2625 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2626 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2627 (mips_print_register): Use gdbarch_register_type, instead of
2628 REGISTER_VIRTUAL_TYPE.
2629 (print_gp_register_row): Use gdbarch_register_type, instead of
2630 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2631 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2632 Print the pseudo / cooked registers.
2633 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2634 Print the pseudo / cooked registers.
2635 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2636 REG_NUM is pseudo / cooked.
2637 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2638 (mips_n32n64_xfer_return_value): Ditto.
2639 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2640 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2641 (mips_register_sim_regno): New function.
2642 (mips_gdbarch_init): Set deprecated_register_byte,
2643 register_group_p, pseudo_register_write, pseudo_register_read,
2644 register_sim_regno, and num_pseudo_regs. Set register_type,
2645 instead of register_virtual_type.
2646 * Makefile.in (mips-tdep.o): Update dependencies.
2647 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2648 REGISTER_VIRTUAL_TYPE.
2649 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2650 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2651 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2652 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2653 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2655 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2657 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2658 * cli/cli-cmds.c: Include "gdb_vfork.h".
2659 (shell_escape): Use vfork.
2661 2003-06-21 Andrew Cagney <cagney@redhat.com>
2663 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2664 32 bit floating-point register saves.
2666 * frame.h (deprecated_unwind_get_saved_register): Delete.
2667 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2668 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2669 and deprecated_get_next_frame_hack instead of
2670 deprecated_unwind_get_saved_register.
2672 * mips-tdep.c (mips_dump_tdep): Do not print
2673 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2675 * frame.c (get_frame_register): New function.
2676 (frame_unwind_register_signed): New function.
2677 (get_frame_register_signed): New function.
2678 (frame_unwind_register_unsigned): New function.
2679 (get_frame_register_unsigned): New function.
2680 * frame.h: Add comments on naming schema.
2681 (get_frame_register, frame_unwind_register_signed): Declare.
2682 (get_frame_register_signed, get_frame_register_signed): Declare.
2683 (frame_unwind_register_unsigned): Declare.
2684 (get_frame_register_unsigned): Declare.
2686 2003-06-20 Theodore A. Roth <troth@openavr.org>
2688 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2690 2003-06-20 Theodore A. Roth <troth@openavr.org>
2692 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2693 (avr_read_sp): Ditto.
2695 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2697 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2698 * config/arm/nm-linux.h: Likewise.
2699 * config/arm/tm-linux.h: Likewise.
2700 * config/ia64/nm-linux.h: Likewise.
2701 * config/ia64/tm-ia64.h: Likewise.
2702 * config/s390/tm-linux.h: Likewise.
2703 * config/s390/tm-s390.h: Likewise.
2704 * s390-nat.c: Likewise.
2705 * s390-tdep.c: Likewise.
2707 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2708 * config/ia64/linux.mt: Likewise.
2709 * config/m68k/linux.mh: Likewise.
2710 * config/mips/linux.mt: Likewise.
2711 * config/powerpc/linux.mh: Likewise.
2712 * config/sh/linux.mt: Likewise.
2714 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2716 * solib.c (solib_open): Change tests for whether to search
2717 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2720 2003-06-19 Theodore A. Roth <troth@openavr.org>
2722 * avr-tdep.c (avr_frame_address): Delete function.
2723 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2724 set_gdbarch_frame_args_address.
2726 2003-06-19 Andrew Cagney <cagney@redhat.com>
2728 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2729 (REGISTER_CONVERT_FROM_TYPE): Delete.
2730 (mips_register_convert_to_type): Delete declaration.
2731 (mips_register_convert_from_type): Delete declaration.
2732 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2735 2003-06-19 Michael Snyder <msnyder@redhat.com>
2737 * linux-nat.h: New file.
2738 * linux-nat.c: Include linux-nat.h.
2739 * lin-lwp.c: Include linux-nat.h.
2740 Move struct lwp_info def to linux-nat.h.
2741 * linux-proc.c: Include linux-nat.h.
2742 (linux_make_note_section): Iterate over lwps instead of threads.
2743 (linux_do_thread_registers): Use lwp instead of merged pid.
2744 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2745 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2746 Add dependency on linux_nat_h.
2748 2003-06-19 Theodore A. Roth <troth@openavr.org>
2750 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2752 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2754 * varobj.c (get_type, get_target_type): Use check_typedef.
2756 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2758 * breakpoint.c (insert_catchpoint): Call internal_error.
2760 2003-06-19 Theodore A. Roth <troth@openavr.org>
2762 * avr-tdep.c (avr_push_dummy_code): Delete function.
2763 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2765 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2767 * arch-utils.c (default_prepare_to_proceed): Remove.
2768 (generic_prepare_to_proceed): Remove.
2769 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2770 (generic_prepare_to_proceed): Remove prototype.
2771 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2772 * gdbarch.c: Regenerate.
2773 * gdbarch.h: Regenerate.
2774 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2775 * hppah-nat.c (hppa_switched_threads): Remove.
2776 * infrun.c (prepare_to_proceed): New static function, copied from
2777 generic_prepare_to_proceed. Remove select_it argument.
2778 (proceed): Call prepare_to_proceed.
2779 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2781 (ptrace_wait): Don't set the removed variables.
2782 (hppa_switched_threads): Remove.
2783 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2784 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2785 (lin_lwp_prepare_to_proceed): Remove prototype.
2786 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2787 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2789 2003-06-18 Theodore A. Roth <troth@openavr.org>
2791 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2793 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2794 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2795 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2796 (AVR_PROLOGUE_*): Enumerate prologue types.
2797 (struct frame_extra_info): Remove.
2798 (struct avr_unwind_cache): Define.
2799 (avr_write_sp): Delete function.
2800 (avr_read_fp): Ditto.
2801 (avr_init_extra_frame_info): Ditto.
2802 (avr_pop_frame): Ditto.
2803 (avr_frame_saved_pc): Ditto.
2804 (avr_saved_pc_after_call): Ditto.
2805 (avr_push_return_address): Ditto.
2806 (avr_frame_chain): Ditto.
2807 (avr_store_struct_return): Ditto.
2808 (avr_push_arguments): Ditto.
2809 (avr_scan_prologue): Update comments. Changed to set up the info for
2810 cache unwinding. Now returns end of prologue PC.
2811 (avr_skip_prologue): Better handling of functions lacking a prologue
2812 by using avr_scan_prologue.
2813 (avr_scan_arg_moves): New function.
2814 (avr_saved_regs_unwinder): Ditto.
2815 (avr_frame_unwind_cache): Ditto.
2816 (avr_unwind_pc): Ditto.
2817 (avr_frame_this_id): Ditto.
2818 (avr_frame_prev_register): Ditto.
2819 (avr_frame_p): Ditto.
2820 (avr_frame_base_address ): Ditto.
2821 (avr_unwind_dummy_id): Ditto.
2822 (avr_push_dummy_code): Ditto.
2823 (push_stack_item): Ditto.
2824 (pop_stack_item): Ditto.
2825 (avr_push_dummy_call): Ditto.
2826 (struct stack_item): Define.
2827 (avr_frame_unwind): Declare structure.
2828 (avr_frame_base): Ditto.
2829 (avr_gdbarch_init): Remove calls to
2830 set_gdbarch_deprecated_init_frame_pc,
2831 set_gdbarch_deprecated_target_read_fp,
2832 set_gdbarch_deprecated_dummy_write_sp,
2833 set_gdbarch_deprecated_fp_regnum,
2834 set_gdbarch_deprecated_push_arguments,
2835 set_gdbarch_deprecated_push_return_address,
2836 set_gdbarch_deprecated_pop_frame,
2837 set_gdbarch_deprecated_store_struct_return,
2838 set_gdbarch_deprecated_frame_init_saved_regs,
2839 set_gdbarch_deprecated_init_extra_frame_info,
2840 set_gdbarch_deprecated_frame_chain,
2841 set_gdbarch_deprecated_frame_saved_pc,
2842 set_gdbarch_deprecated_saved_pc_after_call.
2843 Add calls to set_gdbarch_push_dummy_call,
2844 set_gdbarch_push_dummy_code,
2845 frame_unwind_append_predicate,
2846 frame_base_set_default,
2847 set_gdbarch_unwind_dummy_id,
2848 set_gdbarch_unwind_pc.
2851 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2853 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2854 registers for H8/300S.
2855 (h8300_print_registers_info): Ditto.
2856 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2858 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2860 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2861 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2862 (lin_lwp_wait): Likewise. Update comments.
2863 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2864 (pull_pid_from_list, linux_record_stopped_pid): New.
2866 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2868 * ada-lang.c (scan_discrim_bound): Name first argument.
2869 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2870 declared by ALL_BLOCK_SYMBOLS.
2872 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2874 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2875 ("regcache.h"): Include it.
2876 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2878 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2880 * NEWS: Mention gdbserver detach change and "disconnect" command.
2881 * infcmd.c (disconnect_command): New function.
2882 (_initialize_infcmd): Add ``disconnect'' command.
2883 * remote.c (remote_async_detach): Delete.
2884 (remote_detach): Merge remote_async_detach.
2885 (remote_disconnect): New.
2886 (init_remote_ops): Set to_disconnect.
2887 (init_remote_cisco_ops): Likewise.
2888 (init_remote_async_ops): Likewise. Use remote_detach.
2889 * target.c (cleanup_target): Default to_disconnect.
2890 (update_current_target): Inherit to_disconnect.
2891 (target_disconnect, debug_to_disconnect): New functions.
2892 (setup_target_debug): Set to_disconnect.
2893 * target.h (struct target_ops): Add to_disconnect.
2894 (target_disconnect): Add prototype.
2896 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2898 * breakpoint.c (insert_catchpoint): New function.
2899 (insert_breakpoints): Use catch_exceptions to call
2900 insert_catchpoint. Disable catchpoints if they fail to insert.
2902 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2904 * symfile.c (reread_symbols): Clear sym_private.
2906 2003-06-17 Andrew Cagney <cagney@redhat.com>
2908 * trad-frame.h (struct frame_info): Add opaque declaration.
2909 * remote-fileio.h (struct cmd_list_element): Add opaque
2911 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2914 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2916 * remote.c (remote_prepare_to_store): Replace call to
2917 deprecated_read_register_bytes with multiple regcache_raw_read
2920 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2922 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2923 (nto_find_and_open_solib): Likewise.
2924 (nto_init_solib_absolute_prefix): Likewise.
2925 (_initialize_nto_tdep): Fix indentation.
2927 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2929 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2931 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2933 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2935 2003-06-17 Jim Blandy <jimb@redhat.com>
2937 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2939 2003-06-16 Theodore A. Roth <troth@openavr.org>
2941 * avr-tdep.c (avr_extract_return_value): New function.
2942 (avr_gdbarch_init): Set extract_return_value method.
2944 2003-06-16 Andrew Cagney <cagney@redhat.com>
2946 * frame.h (deprecated_get_next_frame_hack): Declare.
2947 * frame.c (legacy_saved_regs_prev_register): Only require
2948 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2949 there are always saved regs.
2950 (deprecated_generic_get_saved_register): Do not require
2951 DEPRECATED_FRAME_INIT_SAVED_REGS.
2952 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2953 use frame ID unwind instead.
2954 (deprecated_get_next_frame_hack): New function.
2956 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2958 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2959 (h8300_push_dummy_call): ...this function. Some minor optimization.
2960 (h8300_push_return_address): Remove.
2961 (h8300_gdbarch_init): Remove calls to
2962 set_gdbarch_deprecated_dummy_write_sp,
2963 set_gdbarch_deprecated_push_arguments and
2964 set_gdbarch_deprecated_push_return_address.
2965 Add call to set_gdbarch_push_dummy_call.
2967 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2969 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2970 (E_PSEUDO_EXR_REGNUM): Ditto.
2971 (h8300_is_argument_spill): Check for instructions moving argument
2972 registers into safe registers.
2973 (h8300_skip_prologue): Check for stm instruction to push registers
2974 used for register variables onto stack.
2975 (gdb_print_insn_h8300): Remove.
2976 (h8300_examine_prologue): Add a comment.
2977 (h8300_register_name): Take pseudo registers into account.
2978 (h8300s_register_name): Ditto.
2979 (h8300sx_register_name): Ditto.
2980 (h8300_print_register): Ditto.
2981 (h8300_print_registers_info): Define "nice" printing order.
2982 (h8300_saved_pc_after_call): Take pseudo registers into account.
2983 (h8300_register_type): Ditto. Return type used for remote connection
2984 when requesting real CCR or EXR register, return actual type when
2985 requesting pseudo CCR or EXR.
2986 (h8300_pseudo_register_read): New function.
2987 (h8300_pseudo_register_write): Ditto.
2988 (h8300_dbg_reg_to_regnum): Ditto.
2989 (h8300s_dbg_reg_to_regnum): Ditto.
2990 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2991 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2992 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2993 set_gdbarch_print_insn architecture dependent.
2994 Call set_gdbarch_pseudo_register_read and
2995 set_gdbarch_pseudo_register_write.
2996 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2998 2003-06-16 Andrew Cagney <cagney@redhat.com>
3000 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3001 * gdbarch.h, gdbarch.c: Re-generate.
3002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3003 * s390-tdep.c (s390_gdbarch_init): Update.
3004 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3005 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3006 * mips-tdep.c (mips_gdbarch_init): Update.
3007 * mcore-tdep.c (mcore_gdbarch_init): Update.
3008 * cris-tdep.c (cris_gdbarch_init): Update.
3009 * infcall.c (call_function_by_hand): Update.
3010 * ia64-tdep.c (ia64_push_arguments): Update comment.
3011 * frame.c (legacy_get_prev_frame): Do not assume
3012 SAVE_DUMMY_FRAME_TOS_P.
3013 * dummy-frame.c (find_dummy_frame): Update comment.
3015 2003-06-16 Andrew Cagney <cagney@redhat.com>
3017 * regcache.c (do_cooked_read): Do not use register_valid_p.
3019 2003-06-15 Theodore A. Roth <troth@openavr.org>
3021 * avr-tdep.c (avr_register_type): Remove a blank line.
3022 (avr_scan_prologue): Correct some comments.
3024 2003-06-15 Theodore A. Roth <troth@openavr.org>
3026 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3028 Properly scan prologues generated by gcc with the -mcall-prologues
3030 Add code to scan -mcall-prologues for mega devices.
3032 2003-06-15 Theodore A. Roth <troth@openavr.org>
3034 * avr-tdep.c (avr_register_byte): Delete function.
3035 (avr_register_raw_size): Delete function.
3036 (avr_register_virtual_size): Delete function.
3037 (avr_register_virtual_type): Delete function.
3038 (avr_register_type): New function.
3039 (avr_address_to_pointer): Remove unused code.
3040 (avr_read_fp): Need to read FP as two separate bytes due to change to
3041 avr_register_type() usage.
3042 (avr_gdbarch_init): Don't set deprecated_register_size.
3043 Don't set deprecated_register_bytes.
3044 Don't set deprecated_register_byte.
3045 Don't set deprecated_register_raw_size.
3046 Don't set deprecated_max_register_raw_size.
3047 Don't set deprecated_register_virtual_size.
3048 Don't set deprecated_max_register_virtual_size.
3049 Don't set deprecated_register_virtual_type.
3050 Set register_type method.
3052 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3054 * Makefile.in (linux-nat.o): Add rule.
3055 * linux-nat.c: New file.
3056 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3057 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3058 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3059 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3060 * config/arm/linux.mh (NATDEPFILES): Likewise.
3061 * config/i386/linux.mh (NATDEPFILES): Likewise.
3062 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3063 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3064 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3065 * config/mips/linux.mh (NATDEPFILES): Likewise.
3066 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3067 * config/s390/s390.mh (NATDEPFILES): Likewise.
3068 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3070 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3072 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3073 replace out-of-date comment.
3075 2003-06-15 Andrew Cagney <cagney@redhat.com>
3077 * rdi-share/host.h (Fail): Change to a varargs function.
3078 * remote-rdi.c (Fail): Update.
3080 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3082 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3083 (i386_convert_register_p, i386_register_to_value,
3084 i386_register_from_value): Handle types longer than 8 bytes.
3086 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3088 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3089 Move floating-point code to new function in i387-tdep.c.
3090 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3091 New functions containing code moved here from i386-tdep.c.
3092 * i387-tdep.h: Add opaque declaration for `struct type'.
3093 (i387_register_to_value, i387_value_to_register): New prototypes.
3094 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3095 (x86_64_init_abi): Set convert_register_p, register_to_value and
3096 value_to_register here.
3098 2003-06-14 Andrew Cagney <cagney@redhat.com>
3100 * mips-tdep.c (mips_register_to_value): Make static.
3101 (mips_value_to_register): Make static.
3102 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3103 * ia64-tdep.c (ia64_register_raw_size): Make static.
3104 (ia64_register_virtual_size): Make static.
3105 (ia64_register_byte): Make static.
3106 * i387-tdep.c: Include "i387-tdep.h".
3107 (print_387_control_word): Delete function.
3108 (print_387_status_word): Delete function.
3109 (print_387_status_bits): Delete function.
3110 (print_387_control_bits): Delete function.
3111 * Makefile.in (i387-tdep.o): Update dependencies.
3112 * rdi-share/host.h (Fail): Declare.
3113 * remote-rdi.c (Fail): Update to match declaration.
3115 2003-06-14 Andrew Cagney <cagney@redhat.com>
3117 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3118 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3119 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3120 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3121 * README: Delete reference to remote-array.
3122 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3123 (remote-array.o): Delete target.
3124 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3125 * remote-array.c: Delete file.
3127 2003-06-14 Andrew Cagney <cagney@redhat.com>
3128 Mark Kettenis <kettenis@gnu.org>
3130 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3131 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3132 parameter with "frame".
3133 * gdbarch.h, gdbarch.c: Re-generate.
3134 * frame.h (put_frame_register): Declare.
3135 * frame.c (put_frame_register): New function.
3136 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3137 (legacy_register_to_value): Rewrite, use "frame" to get the
3139 (legacy_value_to_register): Rewrite, use "frame" to find the
3140 register's location before storing.
3141 * arch-utils.h (legacy_convert_register_p): Update.
3142 (legacy_register_to_value, legacy_value_to_register): Update.
3143 * findvar.c (value_from_register): Rewrite, eliminate use of
3144 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3145 "frame" to REGISTER_TO_VALUE.
3146 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3147 lval_reg_frame_relative + lval_register branch of the switch. Do
3148 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3149 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3150 I386_EDI_REGNUM): New defines.
3151 (i386_next_regnum, i386_convert_register_p,
3152 i386_register_to_value, i386_value_to_register): New functions.
3153 (i386_register_convertible, i386_register_convert_to_virtual,
3154 i386_convert_to_raw): Remove functions.
3155 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3156 value_to_register instead of register_convertible,
3157 register_convert_to_virtual and register_convert_to_raw.
3158 * mips-tdep.c (mips_convert_register_p): New function.
3159 (mips_value_to_register): Replace mips_register_convert_from_type.
3160 (mips_register_to_value): Replace mips_register_convert_to_type.
3161 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3163 * alpha-tdep.c (alpha_convert_register_p): Update.
3164 (alpha_value_to_register): Update, store the register.
3165 (alpha_register_to_value): Update, fetch the register.
3167 2003-06-14 Theodore A. Roth <troth@openavr.org>
3169 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3170 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3171 Don't set deprecated_call_dummy_words.
3172 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3173 Don't set remote_translate_xfer_address.
3174 (avr_io_reg_read_command): Remove commented out debug printf.
3177 2003-06-14 Theodore A. Roth <troth@openavr.org>
3179 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3180 causes gdb to seg fault.
3182 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3184 * sparc-nat.c (fetch_inferior_registers): Correct
3185 a reference to "registers".
3187 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3189 * Makefile.in (exc_request_U_h): Define
3190 (exc_request_S_h): Likewise.
3191 (msg_reply_S_h): Likewise.
3192 (msg_U_h): Likewise.
3193 (notify_S_h): Likewise.
3194 (process_reply_S_h): Likewise.
3195 (gnu-nat.o): Depend on gdb_obstack_h
3196 * gnu-nat.c: Include "gdb_obstack.h".
3198 2003-06-13 Andrew Cagney <cagney@redhat.com>
3200 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3201 * gdbarch.h, gdbarch.c: Re-generate.
3203 2003-06-13 Andrew Cagney <cagney@redhat.com>
3205 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3206 when deprecated REGISTER macros can be deleted.
3207 * gdbarch.h, gdbarch.c: Re-generate.
3209 2003-06-13 Jim Blandy <jimb@redhat.com>
3211 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3212 Linux entry point symbols for _dl_debug_state, too.
3214 2003-06-13 Andrew Cagney <cagney@redhat.com>
3216 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3217 available, do not use the FP register, and always save the TOS.
3218 * dummy-frame.c (dummy_frame_this_id): Do not assert
3219 SAVE_DUMMY_FRAME_TOS.
3220 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3221 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3222 (i386_push_dummy_call): Add 8 to the returned SP.
3223 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3224 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3225 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3226 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3227 (x86_64_push_dummy_call): Return "sp + 16".
3228 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3229 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3230 save_dummy_frame_tos.
3232 2003-06-13 Jim Blandy <jimb@redhat.com>
3234 * frv-tdep.c (frv_use_struct_convention): Delete static
3235 declaration for function deleted in my change of 2003-06-12.
3237 2003-06-13 Theodore A. Roth <troth@openavr.org>
3239 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3240 (avr_pointer_to_address): Shift code addrs left 1 bit.
3241 (avr_convert_from_func_ptr_addr): Delete function since operation is
3242 better handled by avr_address_to_pointer and avr_pointer_to_address.
3243 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3245 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3247 From Kelley Cook <kelleycook@wideopenwest.com>:
3248 * configure.host: Accept i[34567]86 variants.
3249 * configure.tgt: Likewise.
3250 * nlm/configure.in: Likewise.
3251 * nlm/configure: Regenerated.
3253 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3255 * arm-tdep.c (solib-svr4.h): Dont' include it.
3256 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3257 * arm-linux-tdep.c: ... here. Make static.
3258 (arm_linux_init_abi): Register it.
3259 (solib-svr4.h): Include it.
3260 * Makefile.in: Update dependencies.
3261 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3262 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3264 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3266 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3267 indicate registers used for return values.
3268 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3269 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3271 (h8300_init_extra_frame_info): Ditto.
3272 (h8300_frame_locals_address): Removed.
3273 (h8300_frame_args_address): Removed.
3274 (h8300_extract_return_value): Use new regcache structure. Only care
3276 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3277 (h8300_store_return_value): Use new regcache structure. Only care
3279 (h8300h_store_return_value): Same function for 32 bit CPUs.
3280 (h8300_store_struct_return): Removed.
3281 (h8300_extract_struct_value_address): Use new regcache structure.
3282 (h8300h_extract_struct_value_address): Removed.
3283 (h8300_push_dummy_code): New function.
3284 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3285 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3286 set_gdbarch_store_return_value architecture dependent.
3287 Call set_gdbarch_push_dummy_code and
3288 set_gdbarch_extract_struct_value_address.
3289 Remove calls to set_gdbarch_frame_args_address,
3290 set_gdbarch_frame_locals_address,
3291 set_gdbarch_deprecated_store_struct_return,
3292 set_gdbarch_deprecated_extract_return_value,
3293 set_gdbarch_deprecated_extract_struct_value_address,
3294 set_gdbarch_deprecated_call_dummy_words and
3295 set_gdbarch_deprecated_sizeof_call_dummy_words.
3297 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3299 * h8300-tdep.c (h8300_register_byte): Remove.
3300 (h8300h_register_byte): Remove.
3301 (h8300_register_virtual_type): Remove. Substitute by...
3302 (h8300_register_type): New function.
3303 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3304 (h8300h_extract_struct_value_address): Ditto.
3305 (h8300_gdbarch_init): Drop calls to
3306 set_gdbarch_deprecated_register_byte and
3307 set_gdbarch_deprecated_register_virtual_type.
3308 Add call to set_gdbarch_register_type.
3310 2003-06-13 Andrew Cagney <cagney@redhat.com>
3312 * gdbarch.sh: Update comments on registers.
3313 (deprecated_register_byte): Rename register_byte.
3314 (deprecated_register_raw_size): Rename register_raw_size.
3315 (deprecated_register_virtual_size): Rename register_virtual_size.
3316 (deprecated_register_virtual_type): Rename register_virtual_type.
3317 * gdbarch.h, gdbarch.c: Re-generate.
3318 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3319 * vax-tdep.c (vax_gdbarch_init): Update.
3320 * v850-tdep.c (v850_gdbarch_init): Update.
3321 * sparc-tdep.c (sparc_gdbarch_init): Update.
3322 * sh-tdep.c (sh_gdbarch_init): Update.
3323 * s390-tdep.c (s390_gdbarch_init): Update.
3324 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3325 * ns32k-tdep.c: Update.
3326 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3327 * mips-tdep.c (mips_gdbarch_init): Update.
3328 * mcore-tdep.c (mcore_gdbarch_init): Update.
3329 * m68k-tdep.c (m68k_gdbarch_init): Update.
3330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3331 * ia64-tdep.c (ia64_gdbarch_init): Update.
3332 * hppa-tdep.c (hppa_gdbarch_init): Update.
3333 * h8300-tdep.c (h8300_gdbarch_init): Update.
3334 * frv-tdep.c (frv_gdbarch_init): Update.
3335 * cris-tdep.c (cris_gdbarch_init): Update.
3336 * avr-tdep.c (avr_gdbarch_init): Update.
3337 * alpha-tdep.c (alpha_gdbarch_init): Update.
3338 * arm-tdep.c (arm_gdbarch_init): Update.
3340 2003-06-13 Andrew Cagney <cagney@redhat.com>
3342 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3343 mips_o32_use_struct_convention with always_use_struct_convention.
3345 2003-06-12 David Carlton <carlton@kealia.com>
3347 * cp-namespace.c (cp_set_block_scope): Comment out
3348 processing_has_namespace_info branch.
3350 2003-06-12 Jim Blandy <jimb@redhat.com>
3352 Recognize and skip 64-bit PowerPC Linux linkage functions.
3353 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3354 insn_pattern, insns_match_pattern, d_field, ds_field): New
3355 functions, macros, and types for working with PPC instructions.
3356 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3357 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3358 ppc64_skip_trampoline_code): New functions, variables, and macros
3359 for recognizing and skipping linkage functions.
3360 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3361 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3363 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3364 register offsets for both the 32- and 64-bit interfaces.
3366 Actually finish the job started by my change of 2003-05-29.
3367 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3368 other #definition of this.
3369 (ppc_linux_skip_trampoline_code): Remove declaration.
3370 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3372 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3375 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3376 'long' on ppc64-*-linux*.
3378 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3379 isn't #defined, assume the register doesn't exist: act as if
3380 tdep->ppc_mq_regnum were -1.
3382 * configure.host, configure.tgt: Add entries for
3383 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3385 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3388 * arch-utils.c (always_use_struct_convention): New function.
3389 * arch-utils.h (always_use_struct_convention): New prototype.
3390 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3391 (alpha_gdbarch_init): Register always_use_struct_convention,
3392 instead of alpha_use_struct_convention.
3393 * cris-tdep.c (cris_use_struct_convention): Delete.
3394 (cris_gdbarch_init): Register always_use_struct_convention,
3395 instead of cris_use_struct_convention.
3396 * frv-tdep.c (frv_use_struct_convention): Delete.
3397 (frv_gdbarch_init): Register always_use_struct_convention,
3398 instead of frv_use_struct_convention.
3399 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3400 (h8300_gdbarch_init): Register always_use_struct_convention,
3401 instead of h8300_use_struct_convention.
3402 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3403 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3404 instead of mips_o32_use_struct_convention.
3406 2003-06-12 Andrew Cagney <cagney@redhat.com>
3408 * wince.c: Include "mips-tdep.h".
3409 * mips-tdep.h (mips_next_pc): Declare.
3410 * mcore-tdep.c: Make more local functions static.
3411 * Makefile.in (wince.o): Update dependencies.
3413 2003-06-12 David Carlton <carlton@kealia.com>
3415 * symtab.c (lookup_symbol_aux_minsyms): Replace
3416 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3417 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3418 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3419 SYMBOL_NATURAL_NAME.
3421 2003-06-12 Andreas Schwab <schwab@suse.de>
3423 * Makefile.in (tuiDisassem.o): Update dependencies.
3425 2003-06-12 David Carlton <carlton@bactrian.org>
3427 * symtab.h: Delete declaration of make_symbol_overload_list.
3428 Add declaration of lookup_partial_symbol.
3429 * symtab.c (remove_params): Move to cp-support.c.
3430 (overload_list_add_symbol, make_symbol_overload_list)
3431 (sym_return_val_size, sym_return_val_index): Ditto.
3432 (lookup_partial_symbol): Make extern.
3433 * cp-support.h: Add declaration of make_symbol_overload_list.
3434 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3435 symtab.h, and block.h.
3436 (remove_params): Move here from symtab.c.
3437 (overload_list_add_symbol, make_symbol_overload_list)
3438 (sym_return_val_size, sym_return_val_index): Ditto.
3439 * valops.c: Include cp-support.h.
3440 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3441 frame_h, and block_h.
3442 (valops.o): Depend on cp_support_h.
3444 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3446 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3447 substitute by NUM_REGS throughout.
3448 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3449 (h8300s_register_name): New function for H8S registers.
3450 (h8300sx_register_name): Ditto for H8SX registers.
3451 (h8300_print_register): Revise register printing, avoid depending
3453 (h8300_register_byte): Only care for H8/300 registers.
3454 (h8300h_register_byte): New function for any other architecture.
3455 (h8300_register_raw_size): Remove.
3456 (h8300_register_virtual_type): Revise to return actually useful
3458 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3459 (h8300h_extract_struct_value_address): New function for any other
3461 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3462 set_gdbarch_register_name, set_gdbarch_register_byte,
3463 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3464 Remove calls to set_gdbarch_deprecated_register_size,
3465 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3466 set_gdbarch_deprecated_max_register_raw_size,
3467 set_gdbarch_register_virtual_size and
3468 set_gdbarch_deprecated_max_register_virtual_size entirely.
3469 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3470 set_gdbarch_long_double_bit.
3472 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3474 * doublest.c (convert_doublest_to_floatformat): When dealing
3475 with the implied integer bit, only alter mant_bits if we are
3476 processing a full 32 bits of mantissa.
3478 2003-06-11 David Carlton <carlton@bactrian.org>
3480 * dictionary.h: New.
3481 * dictionary.c: New.
3482 * block.h: Add opaque declaration for struct dictionary.
3483 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3485 (BLOCK_DICT): New macro.
3486 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3487 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3489 (ALL_BLOCK_SYMBOLS): Update definition.
3490 * Makefile.in (SFILES): Add dictionary.c.
3491 (dictionary_h): New.
3492 (COMMON_OBS): Add dictionary.o.
3493 (dictionary.o): New.
3494 (ada-lang.o): Depend on dictionary_h.
3495 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3496 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3497 (mi-cmd-stack.o): Ditto.
3498 (gdbtk-cmds.o): Update dependencies.
3499 (gdbtk-stack.o): Ditto.
3500 * ada-lang.c: Include dictionary.h.
3501 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3502 (fill_in_ada_prototype, debug_print_block): Ditto.
3503 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3504 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3506 * mdebugread.c: Include dictionary.h.
3507 (struct parse_stack): Delete 'maxsyms' member.
3508 (parse_symbol): Update calls to new_block. Delete calls to
3509 shrink_block. Use dictionary methods.
3510 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3511 Update calls to new_symtab. Don't maintain maxsyms data.
3512 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3513 (add_symbol): Just call dict_add_symbol.
3514 (new_symtab): Delete 'maxsyms' argument.
3515 (new_symtab): Update calls to new_block.
3516 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3517 (shrink_block): Delete function.
3518 (fixup_sigtramp): Update call to new_block. Add symbol via
3520 * jv-lang.c: Include dictionary.h.
3521 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3522 appropriately. Set class_symtab->free_func. Make sure the
3523 blockvector is big enough to hold two blocks.
3524 (add_class_symtab_symbol): Use dictionary methods.
3525 (free_class_block): New function.
3526 (type_from_class): Replace explicit iteration by
3528 * symtab.h (struct symtab): Replace 'free_ptr' method by
3530 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3532 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3534 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3535 Include dictionary.h.
3536 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3537 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3539 * objfiles.c: Include dictionary.h.
3540 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3541 * buildsym.c: Include dictionary.h.
3542 (finish_block): Use dictionary methods.
3543 (end_symtab): Set free_func to NULL, not free_ptr.
3544 * tracepoint.c: Include dictionary.h.
3545 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3546 (scope_info): Ditto.
3547 * stack.c: Include dictionary.h.
3548 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3549 (print_block_frame_labels, print_frame_arg_vars)
3550 (print_frame_args): Ditto.
3551 * symmisc.c (free_symtab_block): Use dictionary methods.
3552 (dump_symtab): Ditto.
3553 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3554 Include dictionary.h.
3555 * symfile.h: Delete declarations of sort_block_syms,
3557 * symfile.c (sort_block_syms): Delete.
3558 (sort_symtab_syms): Delete.
3559 * symtab.c: Include dictionary.h.
3560 (lookup_block_symbol): Use dictionary iterators.
3561 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3562 (search_symbols, make_symbol_completion_list): Ditto.
3563 (make_symbol_overload_list): Ditto.
3564 * valops.c (value_of_local): Use dict_empty.
3565 Include dictionary.h.
3567 2003-06-11 J. Brobecker <brobecker@gnat.com>
3569 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3571 2003-06-11 David Carlton <carlton@bactrian.org>
3573 * block.h (BLOCK_SHOULD_SORT): Delete.
3574 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3576 * ada-lang.c (ada_add_block_symbols): Ditto.
3577 * symfile.c (sort_block_syms): Delete.
3578 (sort_symtab_syms): Ditto.
3579 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3581 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3582 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3583 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3584 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3585 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3586 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3587 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3589 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3591 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3594 2003-06-11 Andrew Cagney <cagney@redhat.com>
3596 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3597 REGISTER_CONVERTIBLE.
3598 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3599 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3600 * gdbarch.h, gdbarch.c: Re-generate.
3601 * arch-utils.h (deprecated_register_convertible_not): Rename
3602 generic_register_convertible_not.
3603 * arch-utils.c (deprecated_register_convertible_not): Rename
3604 generic_register_convertible.
3605 (legacy_convert_register_p, legacy_register_to_value): Update.
3606 * sh-tdep.c (sh64_push_arguments): Update.
3607 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3608 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3609 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3610 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3611 * arch-utils.c (legacy_value_to_register): Update.
3612 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3613 (rs6000_register_convert_to_raw): Make parameter "from" const.
3614 * mips-tdep.c (mips_gdbarch_init): Update.
3615 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3616 * infcmd.c (default_print_registers_info): Update.
3617 * ia64-tdep.c (ia64_gdbarch_init): Update.
3618 (ia64_register_convert_to_raw): Make parameter "from" const.
3619 * i386-tdep.c (i386_gdbarch_init): Update.
3620 (i386_register_convert_to_raw): Update.
3622 2003-06-11 Andrew Cagney <cagney@redhat.com>
3624 * remote-fileio.c: Include "remote-fileio.h".
3625 * Makefile.in (remote-fileio.o): Update dependencies.
3626 (remote_fileio_h): Fix typo.
3628 2003-06-11 Andrew Cagney <cagney@redhat.com>
3630 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3631 (xstormy16_save_dummy_frame_tos): Make static.
3632 (_initialize_xstormy16_tdep): Add declaration.
3633 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3634 * v850-tdep.c: Make local functions static.
3635 (_initialize_v850_tdep): Add declaration.
3636 * sparc-tdep.c: Make local functions static.
3637 (_initialize_sparc_tdep): Add declaration.
3638 * sh-tdep.c: Make local functions static.
3639 (_initialize_sh_tdep): Add declaration.
3640 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3641 * s390-tdep.c: Make local functions static.
3642 (_initialize_s390_tdep): Add declaration.
3643 * dbxread.c (find_stab_function_addr): Make static.
3644 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3645 * ocd.c (_initialize_remote_ocd): Add declaration.
3646 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3647 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3648 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3649 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3650 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3651 * remote-array.c (_initialize_array): Add declaration.
3652 (_initialize_remote_monitors): Add declaration.
3653 * remote-mips.c: Make local functions static.
3654 (_initialize_remote_mips): Add declaration.
3655 * mcore-tdep.c: Make all local functions static.
3656 (_initialize_mcore_tdep): Add declaration.
3657 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3658 * abug-rom.c (_initialize_abug_rom): Add declaration.
3659 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3660 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3661 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3662 * remote-est.c (_initialize_est): Add declaration.
3663 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3664 (m68hc11_call_dummy_address): Make static.
3665 * ia64-tdep.c: Make local functions static.
3666 (_initialize_ia64_tdep): Add declaration.
3667 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3668 * monitor.c (monitor_wait_filter): Make static.
3669 (_initialize_remote_monitors): Add declaration.
3670 * remote-hms.c (_initialize_remote_hms): Add declaration.
3671 * remote-e7000.c (fetch_regs_from_dump): Make static.
3672 (expect_n): Make static.
3673 (_initialize_remote_e7000): Add declaration.
3674 * ser-e7kpc.c: Always include "defs.h".
3675 (_initialize_ser_e7000pc): Add declaration.
3676 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3677 * cris-tdep.c: Make all but one function static.
3678 (_initialize_cris_tdep): Add declaration.
3679 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3680 * solib.c (update_solib_list): Make static.
3681 (_initialize_solib): Add declaration.
3682 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3683 (_initialize_avr_tdep): Add declaration.
3684 * remote-rdi.c (voiddummy): Make static.
3685 (_initialize_remote_rdi): Add declaration.
3686 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3687 * remote-rdp.c (send_rdp): Make static.
3688 (_initialize_remote_rdp): Add declaration.
3689 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3691 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3693 * remote-fileio.c: Make ari happy.
3695 2003-06-10 J. Brobecker <brobecker@gnat.com>
3697 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3698 fetching the trailing bytes of the buffer we are about to write.
3700 2003-06-10 Andrew Cagney <cagney@redhat.com>
3702 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3703 * Makefile.in (remote-fileio.o): Update dependencies.
3704 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3705 include <setjmp.h>, or <sys/types.h> conditional on USG.
3706 (remote_fio_jmp_buf): Delete global variable.
3708 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3709 Martin M. Hunt <hunt@redhat.com>
3711 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3712 (SFILES): Add remote-fileio.c.
3713 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3714 dependencies for building remote.o.
3715 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3716 * remote-fileio.h: New header file defining remote File-I/O interface.
3717 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3718 static storage class.
3719 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3721 (_initialize_remote): Call initialize_remote_fileio().
3722 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3723 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3724 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3725 (captured_main): Initialize new ui_files.
3726 * ui-file.c: Add read and fgets input functions.
3727 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3728 (null_file_read): New function.
3729 (ui_file_read): New function.
3730 (set_ui_file_read): New function.
3731 (stdio_file_read): New function.
3732 * ui-file.h: New type ui_file_read_ftype.
3733 (set_ui_file_read): Declare.
3734 (ui_file_read): Declare.
3736 2003-06-09 Andrew Cagney <cagney@redhat.com>
3738 * frame.h (deprecated_unwind_get_saved_register): Rename
3739 generic_unwind_get_saved_register, update comments.
3740 * mips-tdep.c (mips_get_saved_register): Update.
3741 * frame.c (deprecated_unwind_get_saved_register): Update.
3743 2003-06-09 Andrew Cagney <cagney@redhat.com>
3745 * vax-tdep.c (vax_frame_locals_address): Delete function.
3746 (vax_gdbarch_init): Do not set frame_locals_address.
3747 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3748 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3749 * s390-tdep.c (s390_frame_args_address): Delete function.
3750 (s390_gdbarch_init): Do not set frame_args_address or
3751 frame_locals_address.
3752 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3753 (ns32k_gdbarch_init): Do not set frame_locals_address.
3754 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3755 (hppa_frame_locals_address): Delete function.
3756 (hppa_gdbarch_init): Do not set frame_args_address, or
3757 frame_locals_address.
3758 * arm-tdep.c (arm_frame_args_address): Delete.
3759 (arm_frame_locals_address): Delete.
3760 (arm_gdbarch_init): Do not set frame_args_address, or
3761 frame_locals_address.
3763 2003-06-09 Andrew Cagney <cagney@redhat.com>
3765 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3766 * gdbarch.h, gdbarch.c: Re-generate.
3767 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3768 * arch-utils.c (frame_num_args_unknown): Delete function.
3769 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3770 (frame_info): Use FRAME_NUM_ARGS_P.
3771 * arm-tdep.c (arm_frame_num_args): Delete function.
3772 (arm_gdbarch_init): Do not set frame_num_args.
3773 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3774 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3775 (hppa_gdbarch_init): Do not set frame_num_args.
3776 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3777 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3778 frame_num_args to default frame_num_args_unknown.
3779 * v850-tdep.c (v850_gdbarch_init): Ditto.
3780 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3781 * sh-tdep.c (sh_gdbarch_init): Ditto.
3782 * s390-tdep.c (s390_gdbarch_init): Ditto.
3783 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3784 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3785 * mips-tdep.c (mips_gdbarch_init): Ditto.
3786 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3787 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3789 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3790 * i386-tdep.c (i386_gdbarch_init): Ditto.
3791 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3792 * frv-tdep.c (frv_gdbarch_init): Ditto.
3793 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3794 * cris-tdep.c (cris_gdbarch_init): Ditto.
3795 * avr-tdep.c (avr_gdbarch_init): Ditto.
3796 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3798 2003-06-09 Andrew Cagney <cagney@redhat.com>
3800 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3801 (print_frame_args): Moved to "stack.c".
3802 * stack.c: Include "gdb_assert.h".
3803 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3804 (print_frame_args): Moved from "printcmd.c".
3805 * frame.h (print_frame_args): Delete declaration.
3806 * Makefile.in (stack.o): Update dependencies.
3808 2003-06-08 Andrew Cagney <cagney@redhat.com>
3810 * frame.c (get_prev_frame): Remove reference to
3811 frame_args_address_correct in comments.
3812 * frame-base.c (default_frame_args_address): Delete code
3813 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3814 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3815 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3816 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3817 (vax_frame_args_address_correct): Delete declaration.
3819 2003-06-08 Andrew Cagney <cagney@redhat.com>
3821 * gdbarch.sh (UNWIND_SP): Add.
3822 * gdbarch.h, gdbarch.c: Re-generate.
3823 * frame.c (frame_sp_unwind): New function.
3824 (get_frame_sp): New function.
3825 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3826 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3827 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3829 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3830 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3832 2003-06-08 Andrew Cagney <cagney@redhat.com>
3834 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3837 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3838 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3839 * config/m68k/tm-sun3.h: Update.
3840 * config/m68k/tm-m68klynx.h: Update.
3841 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3843 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3844 trad_frame". Update comments.
3845 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3846 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3847 (trad_frame_register_value, trad_frame_prev_register): Update.
3849 2003-06-08 Andrew Cagney <cagney@redhat.com>
3851 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3852 from GCC's acinclude.m4.
3853 * configure.in: Check for getopt's delcaration.
3854 * aclocal.m4, config.in, configure: Re-generate.
3855 * main.c (error_init): Delete declaration.
3856 * defs.h (error_init): Declare.
3857 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3858 (rs6000_convert_from_func_ptr_addr): Make static.
3859 (_initialize_rs6000_tdep): Add declaration.
3860 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3861 (show_commands, set_verbose, show_history): Delete declaration.
3862 * top.h (set_verbose): Add declaration.
3863 (show_history, set_history, show_commands): Add declaration.
3864 (do_restore_instream_cleanup): Add declaration.
3865 * objc-lang.c (specialcmp): Make static.
3866 (print_object_command): Make static.
3867 (find_objc_msgsend): Make static.
3868 (find_objc_msgcall_submethod_helper): Make static.
3869 (find_objc_msgcall_submethod): Make static.
3870 (_initialize_objc_language): Add declaration.
3871 (find_implementation_from_class): Make static.
3872 (find_implementation): Make static.
3873 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3874 * objc-lang.h (lookup_struct_typedef): Add declaration.
3875 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3876 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3877 (do_restore_user_call_depth): Make static.
3878 (do_restore_instream_cleanup): Delete declaration.
3879 (dont_repeat): Delete declaration.
3880 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3881 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3882 * reggroups.c (_initialize_reggroup): Add declaration.
3883 * cp-support.c (_initialize_cp_support): Add declaration.
3884 * cp-abi.c (_initialize_cp_abi): Add declaration.
3885 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3886 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3887 (_initialize_gnu_v3_abi): Add declaration.
3888 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3889 (_initialize_gnu_v2_abi): Add declaration.
3890 * frame-base.c (_initialize_frame_base): Add declaration.
3891 * doublest.c (floatformat_from_length): Make static.
3892 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3893 * frame.c (create_sentinel_frame): Make static.
3894 (_initialize_frame): Add declaration.
3895 * top.c (do_catch_errors): Make static.
3896 (gdb_rl_operate_and_get_next_completion): Make static.
3897 * typeprint.c: Include "typeprint.h".
3898 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3899 (sentinel_frame_this_id): Make static.
3900 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3901 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3902 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3903 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3904 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3905 * maint.c (maintenance_print_architecture): Make static.
3906 * signals/signals.c (_initialize_signals): Add declaration.
3907 * std-regs.c (_initialize_frame_reg): Add declaration.
3908 * jv-exp.y (push_variable): ISO C definition.
3909 (push_qualified_expression_name): Ditto.
3910 * memattr.c (_initialize_mem): Add declaration.
3911 * remote.c (remote_check_watch_resources): Make static.
3912 (remote_stopped_by_watchpoint): Make static.
3913 (remote_stopped_data_address): Make static.
3914 * d10v-tdep.c (nr_dmap_regs): Make static.
3915 (a0_regnum): Make static.
3916 (d10v_frame_unwind_cache): Make static.
3917 (d10v_frame_p): Make static.
3918 * osabi.c (show_osabi): Make static.
3919 (_initialize_gdb_osabi): Add extern declaration.
3920 * gdbtypes.c (make_qualified_type): Make static.
3921 (safe_parse_type): Make static.
3922 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3923 * macrotab.c (macro_bcache_free): Make static.
3924 * interps.c (interp_set_quiet): Make static.
3925 (interpreter_exec_cmd): Make static.
3926 * stack.h (select_frame_command): New file.
3927 * stack.c: Include "stack.h".
3928 (select_frame_command_wrapper): Delete function.
3929 (select_frame_command): Make global.
3930 * infcall.c: Include "infcall.h".
3931 * linespec.c: Include "linespec.h".
3932 * symfile.c (sections_overlap): Make static.
3933 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3934 * charset.c (_initialize_charset): Add missing prototype.
3935 * regcache.c (init_legacy_regcache_descr): Make static.
3936 (do_regcache_xfree): Make static.
3937 (regcache_xfer_part): Make static.
3938 (_initialize_regcache): Add missing prototype.
3939 * breakpoint.c (parse_breakpoint_sals): Make static.
3940 (breakpoint_sals_to_pc): Make static.
3941 * interps.h (clear_interpreter_hooks): ISO C declaration.
3942 * Makefile.in (stack_h): Define.
3943 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3944 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3946 2003-06-08 Andrew Cagney <cagney@redhat.com>
3948 * Makefile.in (d10v-tdep.o): Update dependencies.
3949 (SFILES): Add trad-frame.c.
3950 (trad_frame_h): Define.
3951 (COMMON_OBS): Add trad-frame.o.
3952 (trad-frame.o): Specify dependencies.
3953 * d10v-tdep.c: Include "trad-frame.h".
3954 (saved_regs_unwinder): Delete function.
3955 (d10v_frame_prev_register): Use trad_frame_prev_register.
3956 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3957 trad_frame", delete "regs" and "prev_sp".
3958 (prologue_find_regs): Use trad-frame.
3959 * trad-frame.h, trad-frame.c: New files.
3961 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3963 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3965 2003-06-07 Adam Fedor <fedor@gnu.org>
3967 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3968 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3969 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3970 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3971 resolve_msgsend_super, resolve_msgsend_super_stret):
3974 2003-06-07 Andrew Cagney <cagney@redhat.com>
3976 * symfile.h: Re-indent, clean up comments.
3978 2003-06-07 Andrew Cagney <cagney@redhat.com>
3980 * inferior.h (deprecated_write_sp): Replace
3981 generic_target_write_sp.
3982 * regcache.c (deprecated_write_sp): Replace
3983 generic_target_write_sp.
3984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3985 * vax-tdep.c (vax_gdbarch_init): Update.
3986 * v850-tdep.c (v850_gdbarch_init): Update.
3987 * sparc-tdep.c (sparc_gdbarch_init): Update.
3988 * sh-tdep.c (sh_gdbarch_init): Update.
3989 * s390-tdep.c (s390_gdbarch_init): Update.
3990 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3991 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3992 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3993 * mcore-tdep.c (mcore_gdbarch_init): Update.
3994 * m68k-tdep.c (m68k_gdbarch_init): Update.
3995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3996 * ia64-tdep.c (ia64_gdbarch_init): Update.
3997 * h8300-tdep.c (h8300_gdbarch_init): Update.
3998 * frv-tdep.c (frv_gdbarch_init): Update.
3999 * cris-tdep.c (cris_gdbarch_init): Update.
4000 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4002 2003-06-07 Andrew Cagney <cagney@redhat.com>
4004 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4005 Assert that PC_REGNUM is valid.
4006 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4008 2003-06-07 Andrew Cagney <cagney@redhat.com>
4010 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4011 * gdbarch.h, gdbarch.c: Regenerate.
4012 * mn10300-tdep.c: Include "gdb_assert.h".
4013 (mn10300_read_fp): New function.
4014 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4015 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4016 * ia64-tdep.c: Include "gdb_assert.h".
4017 (ia64_read_fp): New function.
4018 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4019 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4020 * regcache.c (generic_target_read_sp): Delete function.
4021 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4022 * inferior.h (generic_target_read_sp): Delete declaration.
4023 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4024 generic_target_read_sp.
4025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4026 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4027 * sh-tdep.c (sh_gdbarch_init): Ditto.
4028 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4029 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4031 2003-06-07 Andrew Cagney <cagney@redhat.com>
4033 * gdbarch.sh: Comment each field of startup_gdbarch.
4034 * gdbarch.h, gdbarch.c: Re-generate.
4036 2003-06-07 Andrew Cagney <cagney@redhat.com>
4038 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4039 * gdbarch.h, gdbarch.c: Re-generate.
4040 * regcache.c: Update comments on read_pc et.al.
4041 (generic_target_read_pc): Delete function.
4042 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4043 * inferior.h (generic_target_read_pc): Delete declaration.
4044 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4045 generic_target_read_pc.
4046 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4047 * sh-tdep.c (sh_gdbarch_init): Ditto.
4048 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4051 2003-06-07 Andrew Cagney <cagney@redhat.com>
4053 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4054 "index" with "special_local_sect". Use strcmp instead of STREQ.
4055 Append period to coments.
4057 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4059 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4060 (elfstab_offset_sections): Likewise.
4061 * gdb-stabs.h (stab_section_info): Likewise.
4062 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4063 * objfiles.c (objfile_relocate): Likewise.
4064 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4065 * remote.c (get_offsets): Likewise.
4066 (remote_cisco_objfile_relocate): Likewise.
4067 * somread.c (som_symfile_offsets): Likewise.
4068 * symfile.c (alloc_section_addr_info): New function.
4069 (build_section_addr_info_from_section_tab): Use it.
4070 (free_section_addr_info): Adjust.
4071 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4072 (syms_from_objfile): Allocate local_addr dynamically.
4073 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4075 (add_symbol_file_command): Allocate sect_opts dynamically.
4076 (reread_symbols): Avoid use of SECT_OFF_MAX.
4077 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4078 (alloc_section_addr_info): Declare it.
4079 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4080 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4082 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4084 2003-06-06 Andrew Cagney <cagney@redhat.com>
4086 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4087 (d10v_frame_unwind_cache): Do not set "return_pc".
4089 2003-06-06 Michael Snyder <msnyder@redhat.com>
4091 * h8300-tdep.c: Make tidy (long lines).
4093 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4095 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4096 to regcache_collect().
4098 2003-06-05 J. Brobecker <brobecker@gnat.com>
4100 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4101 pc_in_sigtramp multiarch method.
4102 (hppa_hpux_som_init_abi): Use it.
4103 (hppa_hpux_elf_init_abi): Likewise.
4104 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4105 macro has been multiarched.
4106 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4107 macro here, as hppa64 isn't multiarched yet.
4109 2003-06-05 Andrew Cagney <cagney@redhat.com>
4111 * Makefile.in (value_h): Add $(frame_h).
4112 * value.h: Include "frame.h".
4113 (struct value): Replace "frame_addr" with "frame_id".
4114 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4115 * values.c (allocate_value): Use VALUE_FRAME_ID.
4116 (value_copy): Use VALUE_FRAME_ID.
4117 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4118 * valops.c (value_assign): Update. Use frame_find_by_id.
4120 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4122 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4125 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4127 * thread-db.c (check_event): For create/death event breakpoints,
4128 loop through all messages to ensure that we read the message
4129 corresponding to the breakpoint we are at.
4131 2003-06-04 Michael Snyder <msnyder@redhat.com>
4133 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4135 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4137 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4138 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4139 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4140 when handling .eh_frame sections.
4142 2003-06-04 J. Brobecker <brobecker@gnat.com>
4144 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4145 prepare_to_proceed procedure instead of the hppa-specific one.
4146 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4148 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4150 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4151 * config.in: Regenerated.
4152 * configure.in: Add test for syscall function and check for
4153 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4154 * configure: Regenerated.
4155 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4157 (kill_lwp): New function that uses tkill syscall or
4158 uses kill, depending on whether threading model is nptl or not.
4159 All callers of kill() changed to use kill_lwp().
4160 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4161 see if all threads have already exited in the nptl model.
4162 (stop_and_resume_callback): New callback function used by the
4163 lin_lwp_wait thread exit handling code.
4164 (stop_wait_callback): Check for threads already having exited and
4165 delete such threads fromt the lwp list when discovered.
4166 (stop_callback): Don't assert retcode of kill call.
4168 Roland McGrath <roland@redhat.com>
4169 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4172 2003-06-03 Richard Henderson <rth@redhat.com>
4174 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4175 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4176 (alpha_sigtramp_frame_prev_register): Likewise.
4177 (alpha_heuristic_frame_prev_register): Likewise.
4178 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4180 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4181 alpha-specific register id names.
4182 (alpha_mdebug_frame_unwind_cache): Likewise.
4183 (alpha_mdebug_frame_prev_register): Likewise.
4185 2003-06-03 Richard Henderson <rth@redhat.com>
4187 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4188 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4189 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4190 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4192 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4193 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4194 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4196 * alpha-linux-tdep.c: Remove unnecessary includes.
4197 * Makefile.in (alpha-linux-tdep.o): Update.
4199 2003-06-03 Richard Henderson <rth@redhat.com>
4201 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4202 (alphabsd_fill_fpreg): Likewise.
4204 2003-06-03 J. Brobecker <brobecker@gnat.com>
4206 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4207 references to struct frame_info fields by calls to the equivalent
4208 accessors. Necessary now that frame_info is opaque.
4210 2003-06-03 J. Brobecker <brobecker@gnat.com>
4212 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4213 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4214 structure, field no longer exists.
4216 2003-06-03 J. Brobecker <brobecker@gnat.com>
4218 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4219 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4221 2003-06-03 J. Brobecker <brobecker@gnat.com>
4223 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4224 references to struct frame_info fields by calls to the equivalent
4225 accessors. Necessary now that frame_info is opaque.
4227 2003-06-03 J. Brobecker <brobecker@gnat.com>
4229 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4230 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4231 structure, field no longer exists.
4233 2003-06-03 Theodore A. Roth <troth@openavr.org>
4235 * remote.c (init_remote_state): Compute sizeof_g_packet by
4236 accumulation of the size of all registers instead of blindly using
4237 DEPRECATED_REGISTER_BYTES.
4239 2003-06-03 Michael Snyder <msnyder@redhat.com>
4241 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4242 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4245 2003-06-03 J. Brobecker <brobecker@gnat.com>
4247 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4248 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4250 2003-06-03 Andrew Cagney <cagney@redhat.com>
4252 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4253 (sparc_convert_to_raw): Delete function.
4254 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4255 register_convert_to_virtual.
4257 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4259 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4260 layer if not dealing with a statically-linked threaded program.
4262 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4264 * solib.c (solib_open): Update comment to reflect actual search order.
4266 2003-06-03 Andrew Cagney <cagney@redhat.com>
4268 * frame.c (get_frame_memory_signed): New function.
4269 (get_frame_memory, get_frame_memory_unsigned): New function.
4270 (get_frame_arch): New function.
4271 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4272 (get_frame_memory, get_frame_unsigned_memory): Declare.
4273 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4274 get_frame_memory_unsigned and get_frame_arch.
4275 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4277 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4279 * MAINTAINERS (write after approval): Add myself.
4281 2003-06-03 Jim Blandy <jimb@redhat.com>
4283 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4284 elements of gregset_t are 64 bits each, but access registers
4285 are still 32 bits, so they're packed two per gregset_t
4286 element. Unpack/pack them properly.
4288 2003-06-02 David Carlton <carlton@bactrian.org>
4290 * linespec.c (find_methods): Break out code into
4291 add_matching_methods and add_constructors.
4292 (add_matching_methods): New.
4293 (add_constructors): Ditto.
4295 2003-06-02 Andrew Cagney <cagney@redhat.com>
4297 * sparc-tdep.c (sparc_print_registers): Delete call to
4298 REGISTER_CONVERTIBLE.
4299 (sparc_gdbarch_init): Do not set register_convertible.
4300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4301 * frv-tdep.c (frv_gdbarch_init): Ditto.
4302 * cris-tdep.c (cris_gdbarch_init): Ditto.
4304 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4306 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4307 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4308 (syms_from_objfile): Ditto.
4310 2003-06-03 Andreas Schwab <schwab@suse.de>
4312 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4313 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4315 2003-06-02 Richard Henderson <rth@redhat.com>
4317 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4318 a member of all_reggroup.
4320 2003-06-02 Richard Henderson <rth@redhat.com>
4322 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4323 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4324 (alpha_lds, alpha_sts): New.
4325 (alpha_convert_register_p): Change from _register_convertible.
4326 (alpha_register_to_value): Change from _convert_to_virtual;
4327 restructure and fail for type sizes other than 4 or 8.
4328 (alpha_value_to_register): Similarly.
4329 (alpha_extract_return_value): Use alpha_sts.
4330 (alpha_store_return_value): Use alpha_lds.
4331 (alpha_gdbarch_init): Update hooks.
4333 2003-06-02 Richard Henderson <rth@redhat.com>
4335 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4337 (alpha_sigtramp_register_address): Likewise.
4339 2003-06-02 Richard Henderson <rth@redhat.com>
4341 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4342 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4343 * alpha-tdep.h: Declare them.
4345 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4346 Remove zerobuf. Don't error on UNIQUE.
4347 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4348 (ALPHA_REGSET_UNIQUE): Provide default.
4349 (supply_gregset): Use alpha_supply_int_regs.
4350 (fill_gregset): Use alpha_fill_int_regs.
4351 (supply_fpregset): Use alpha_supply_fp_regs.
4352 (fill_fpregset): Use alpha_fill_fp_regs.
4353 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4354 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4355 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4356 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4357 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4358 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4360 2003-06-02 Richard Henderson <rth@redhat.com>
4362 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4364 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4365 (alpha_store_return_value): Likewise.
4367 2003-06-02 David Carlton <carlton@math.stanford.edu>
4369 * block.c (contained_in): Add 'const' to arguments.
4370 (block_function): Ditto.
4371 * block.h: Update declarations for block_function and
4374 2003-06-02 David Carlton <carlton@math.stanford.edu>
4376 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4377 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4378 * p-valprint.c (pascal_val_print): Ditto.
4379 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4381 2003-06-02 Richard Henderson <rth@redhat.com>
4383 * alpha-tdep.c (alpha_push_dummy_call): Use
4384 builtin_type_ieee_double_little instead of builtin_type_double.
4386 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4387 sign-extension of 32-bit values.
4388 (alpha_store_return_value): Similarly.
4390 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4391 (alpha_extract_return_value): Likewise.
4392 (alpha_store_return_value): Likewise.
4394 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4395 (alpha_store_return_value): Error on IEEE Quad floats.
4397 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4398 (alpha_extract_struct_value_address): Likewise.
4399 (alpha_store_return_value): Likewise.
4400 (alpha_store_struct_return): Remove.
4401 (alpha_gdbarch_init): Update hook registration to match.
4403 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4404 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4405 macros where appropriate.
4406 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4407 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4409 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4410 for SP, GP; void_func_ptr for PC; non-language-specific types
4412 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4414 2003-06-02 Richard Henderson <rth@redhat.com>
4416 * top.h (lim_at_start): Declare.
4417 * main.c (captured_main): Set it.
4418 * top.c (lim_at_start): Define.
4419 (command_loop): Use it instead of &environ.
4420 * event-top.c (command_handler): Likewise.
4422 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4424 * mipsnbsd-tdep.c: Update copyright years.
4425 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4427 2003-06-01 Richard Henderson <rth@redhat.com>
4429 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4430 (alpha-linux-tdep.o): Update dependencies.
4431 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4432 * alpha-mdebug-tdep.c: Remove unneeded includes.
4434 2003-06-01 Richard Henderson <rth@redhat.com>
4436 * alpha-tdep.c (alpha_register_reggroup_p): New.
4437 (alpha_gdbarch_init): Register it.
4439 2003-06-02 Andrew Cagney <cagney@redhat.com>
4441 * dwarfread.c: Eliminate "register"
4442 (decode_die_type): Eliminate assignment within "if".
4443 (struct_type, decode_array_element_type): Ditto.
4444 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4445 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4446 (decode_modified_type, completedieinfo): Ditto.
4447 * block.c: Eliminate "register".
4448 (blockvector_for_pc_sect): Eliminate assignment within "if".
4449 * cp-support.h (struct symbol): Opaque declaration.
4450 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4452 2003-06-01 Richard Henderson <rth@redhat.com>
4454 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4455 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4457 2003-06-01 Adam Fedor <fedor@gnu.org>
4459 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4460 * gdbarch.[ch]: Regenerate.
4461 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4462 (hppa_gdbarch_init): Set it in the gdbarch vector.
4463 * i386-tdep.c (i386_fetch_pointer_argument): New
4464 (i386_gdbarch_init): Set it into gdbarch.
4465 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4466 (rs6000_gdbarch_init): Set it in gdbarch.
4467 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4468 (sparc_gdbarch_init): Set it in gdbarch.
4470 2003-06-01 Andrew Cagney <cagney@redhat.com>
4472 * defs.h (extract_address): Delete declaration.
4473 * findvar.c (extract_address): Delete function.
4474 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4475 extract_address with the inline equivalent,
4476 extract_unsigned_integer.
4477 (xstormy16_extract_struct_value_address): Ditto.
4478 (xstormy16_pointer_to_address): Ditto.
4479 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4480 * v850-tdep.c (v850_push_arguments): Ditto.
4481 (v850_extract_return_value): Ditto.
4482 (v850_extract_struct_value_address): Ditto.
4483 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4484 (sparcnbsd_get_longjmp_target_64): Ditto.
4485 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4486 (get_longjmp_target): Ditto.
4487 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4488 (sh64_extract_struct_value_address): Ditto.
4489 (sh_push_arguments): Ditto.
4490 (sh64_push_arguments): Ditto.
4491 * remote-vxsparc.c (vx_read_register): Ditto.
4492 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4493 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4494 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4495 * mipsv4-nat.c (get_longjmp_target): Ditto.
4496 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4497 * mips-nat.c (get_longjmp_target): Ditto.
4498 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4499 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4500 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4501 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4502 * irix5-nat.c (get_longjmp_target): Ditto.
4503 * irix4-nat.c (get_longjmp_target): Ditto.
4504 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4505 (ia64_push_arguments): Ditto.
4506 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4507 * h8300-tdep.c (h8300_push_arguments): Ditto.
4508 (h8300_store_return_value): Ditto.
4509 (h8300_extract_struct_value_address): Ditto.
4510 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4511 (frv_push_arguments): Ditto.
4512 * avr-tdep.c (avr_pointer_to_address): Ditto.
4513 (avr_push_arguments): Ditto.
4514 * arm-tdep.c (arm_push_dummy_call): Ditto.
4515 (arm_get_longjmp_target): Ditto.
4516 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4517 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4518 (alpha_get_longjmp_target): Ditto.
4520 * solib-irix.c (extract_mips_address): Inline extract_address,
4521 replacing it with extract_signed_integer.
4522 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4523 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4524 (first_link_map_member, open_symbol_file_object): Ditto.
4525 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4526 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4527 (LM_NEXT, LM_NAME): Ditto.
4529 2003-06-01 Richard Henderson <rth@redhat.com>
4531 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4532 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4533 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4534 (alpha_cannot_store_register): Likewise.
4535 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4536 * alpha-nat.c (supply_gregset): Likewise.
4537 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4539 2003-06-01 Andrew Cagney <cagney@redhat.com>
4541 * infcall.c (call_function_by_hand): Update comment on
4542 DEPRECATED_DUMMY_WRITE_SP.
4544 * mips-tdep.c (mips_gdbarch_init): Do not set
4545 deprecated_dummy_write_sp.
4546 (mips_eabi_push_dummy_call): Set the SP register.
4547 (mips_o64_push_dummy_call): Set the SP register.
4548 (mips_o32_push_dummy_call): Set the SP register.
4549 (mips_n32n64_push_dummy_call): Set the SP register.
4551 2003-06-01 Richard Henderson <rth@redhat.com>
4553 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4554 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4555 (supply_gregset): Likewise.
4556 * alpha-tdep.c (alpha_store_return_value): Likewise.
4557 (alpha_get_longjmp_target): Likewise.
4558 (alpha_register_name): Constify array.
4559 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4560 deprecated_register_size, deprecated_register_bytes,
4561 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4562 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4563 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4565 2003-06-01 Richard Henderson <rth@redhat.com>
4567 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4568 from arg_reg_buffer to regcache to avoid double conversion.
4570 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4572 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4574 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4575 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4577 2003-06-01 Richard Henderson <rth@redhat.com>
4579 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4580 (decode_frame_entry): Set it. Skip FDE augmentation.
4582 2003-06-01 Richard Henderson <rth@redhat.com>
4584 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4585 not overlapping PC_REGNUM.
4587 2003-06-01 Richard Henderson <rth@redhat.com>
4589 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4590 alpha_push_arguments. Don't dump argument register data to
4591 the target stack. Fix float and 128-bit long double semantics.
4592 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4593 (alpha_fix_call_dummy): Remove.
4594 (alpha_call_dummy_words): Remove.
4595 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4597 2003-06-01 Richard Henderson <rth@redhat.com>
4599 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4601 2003-06-01 Andrew Cagney <cagney@redhat.com>
4603 * mips-tdep.c (is_mips16_addr): New function.
4604 (make_mips16_addr, unmake_mips16_addr): New functions.
4605 (pc_is_mips16, mips_fetch_instruction): Use.
4606 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4607 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4608 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4609 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4611 * config/mips/tm-mips.h: Update copyright.
4612 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4613 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4614 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4615 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4616 (TM_PRINT_INSN_MACH): Delete.
4617 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4619 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4620 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4621 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4622 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4623 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4624 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4625 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4626 mips*-*-riscos* and mips*-*-sysv* onto mips.
4627 * config/mips/mips64.mt: New file.
4628 * config/mips/mips.mt: New file.
4629 * config/mips/littlemips.mt: Delete file.
4630 * config/mips/decstation.mt: Delete file.
4631 * config/mips/vr4300el.mt: Delete file.
4632 * config/mips/vr5000el.mt: Delete file.
4633 * config/mips/vr5000.mt: Delete file.
4634 * config/mips/vr4100.mt: Delete file.
4635 * config/mips/vr4xxxel.mt: Delete file.
4636 * config/mips/vr4300.mt: Delete file.
4637 * config/mips/vr4xxx.mt: Delete file.
4638 * config/mips/bigmips.mt: Delete file.
4639 * config/mips/bigmips64.mt: Delete file.
4640 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4641 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4642 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4643 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4644 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4646 * config/mips/tm-irix3.h: Ditto.
4647 * config/mips/tm-mipsv4.h: Ditto.
4648 * config/mips/tm-embed.h: Ditto.
4649 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4651 * config/mips/tm-vr5000el.h: Delete file.
4652 * config/mips/tm-tx39l.h: Delete file.
4653 * config/mips/tm-vr4300el.h: Delete file.
4654 * config/mips/tm-vr4xxxel.h: Delete file.
4655 * config/mips/tm-vr4300.h: Delete file.
4656 * config/mips/tm-vr4100.h: Delete file.
4657 * config/mips/tm-vr4xxx.h: Delete file.
4658 * config/mips/tm-vr5000.h: Delete file.
4659 * config/mips/tm-embedl64.h: Delete file.
4660 * config/mips/tm-embedl.h: Delete file.
4661 * config/mips/tm-embed64.h: Delete file.
4662 * config/mips/tm-bigmips64.h: Delete file.
4663 * config/mips/tm-bigmips.h: Delete file.
4665 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4668 * shnbsd-nat.c: Include "sh-tdep.h".
4670 From Richard Henderson <rth@redhat.com>:
4671 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4673 2003-05-31 Andrew Cagney <cagney@redhat.com>
4675 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4676 forward declaration.
4677 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4678 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4679 (mips_find_saved_regs): Use set_reg_offset.
4680 (mips_frame_init_saved_regs): Delete function.
4681 (mips_pop_frame): Call mips_find_saved_regs instead of
4682 DEPRECATED_FRAME_INIT_SAVED_REGS.
4684 2003-05-31 Andrew Cagney <cagney@redhat.com>
4686 * mips-tdep.c (mips_gdbarch_init): Do not set
4687 deprecated_max_register_raw_size, register_virtual_size, and
4688 deprecated_max_register_virtual_size.
4690 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4692 * i386-tdep.c: Include "dwarf2-frame.h".
4693 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4694 * Makefile.in (i386-tdep.o): Update dependencies.
4696 * dwarf2-frame.c, dwarf2-frame.h: New files.
4697 * Makefile.in (SFILES): Add dwarf2-frame.c.
4698 (dwarf2_frame_h): Define.
4699 (COMMON_OBS): Add dwarf2-frame.o.
4700 (dwarf2-frame.o): Add dependencies.
4702 2003-05-31 Andreas Jaeger <aj@suse.de>
4704 * x86-64-linux-nat.c: Fix comment.
4706 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4708 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4711 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4712 have a sigcontext_addr handler.
4713 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4714 sigcontext_addr handler.
4716 2003-05-31 Andrew Cagney <cagney@redhat.com>
4718 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4719 (print_fp_register_row): Replace do_fp_register_row.
4720 (mips_print_fp_register): Add "file" and "frame" parameters.
4721 (mips_print_register): Add "file" and "frame" parameters.
4722 (mips_print_registers_info): Replace mips_do_registers_info.
4723 (mips_gdbarch_init): Set print_registers_info instead of
4724 deprecated_do_registers_info.
4725 (mips_read_fp_register_single): Add "frame" parameter.
4726 (mips_read_fp_register_double): Add "frame" parameter.
4728 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4730 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4731 Fixes a bug where GDB would print the wrong register names for
4732 targets without SSE.
4734 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4735 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4738 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4739 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4740 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4743 From Michal Ludvig <mludvig@suse.cz>:
4744 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4746 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4747 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4748 I386_ST0_REGNUM): Move here from...
4749 * i386-tdep.c: ... here.
4750 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4751 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4752 registers if possible.
4753 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4754 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4756 (i386bsd_sc_reg_offset): New variable.
4757 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4758 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4760 (i386fbsd_sc_reg_offset): New variable.
4761 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4763 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4765 (i386fbsd4_sc_reg_offset): New variable.
4766 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4767 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4769 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4770 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4771 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4773 (i386nbsd_sc_reg_offset): New variable.
4774 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4775 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4777 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4779 (i386obsd_sc_reg_offset): New variable.
4780 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4781 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4783 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4784 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4785 for frame pointer offset in `struct sigcontext'.
4787 2003-05-31 Andrew Cagney <cagney@redhat.com>
4789 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4790 architecture methods call_dummy_words, sizeof_call_dummy_words,
4791 push_return_address, store_struct_return, and fix_call_dummy. Set
4792 push_dummy_call instead of deprecated_push_arguments.
4793 (mips_store_struct_return): Delete function.
4794 (mips_fix_call_dummy): Delete function.
4795 (mips_push_return_address): Delete function.
4796 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4797 RA_REGNUM and T9_REGNUM.
4798 (mips_n32n64_push_dummy_call): Ditto for
4799 mips_n32n64_push_arguments.
4800 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4801 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4803 2003-05-31 Andrew Cagney <cagney@redhat.com>
4805 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4806 "dummy_addr" to "bp_addr".
4807 * infcall.c (call_function_by_hand): Pass "funaddr" to
4808 gdbarch_push_dummy_call.
4809 * gdbarch.h, gdbarch.c: Re-generate.
4810 * i386-tdep.c (i386_push_dummy_call): Update.
4811 * arm-tdep.c (arm_push_dummy_call): Update.
4812 * d10v-tdep.c (d10v_push_dummy_call): Update.
4814 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4816 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4817 variable declarations.
4818 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4819 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4820 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4821 x86_64_init_frame_pc, x86_64_init_frame_pc,
4822 x86_64_function_has_prologue): Remove prototypes.
4823 (X86_64_NUM_GREGS): New define.
4824 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4825 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4826 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4827 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4828 XMM1_REGNUM): Remove defines.
4829 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4830 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4831 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4832 X86_64_XMM1_REGNUM): New defines.
4833 (struct x86_64_register_info): Renamed from `struct
4834 register_info'. Remove `size' member.
4835 (x86_64_register_info_table): Remove variable.
4836 (x86_64_register_info): New variable.
4837 (X86_64_NUM_REGS): New define.
4838 (X86_64_NUM_GREGS): Remove define.
4839 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4840 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4842 (x86_54_dwarf2_reg_to_regnum): Remove function.
4843 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4844 (x86_64_dwarf_reg_to_regnum): New function.
4845 (x86_64_register_name): Rewrite.
4846 (x86_64_register_raw_size): Remove function.
4847 (x86_64_register_byte_table): Remove variable.
4848 (x86_64_register_byte): Remove function.
4849 (x86_64_register_virtual_type): Remove function.
4850 (x86_64_register_type): New function.
4851 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4852 x86_64_register_convert_to_raw): Remove functions.
4853 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4854 (x86_64_use_struct_convention): Make static. Adjust for renamed
4856 (x86_64_frame_init_saved_regs): Remove function.
4857 (x86_64_push_arguments): Make static. Change to accept a regcache
4859 (x86_64_store_return_value, x86_64_extract_return_value): Make
4860 static. Rewrite based on i386 counterparts.
4861 (x86_64_push_dummy_call): New function.
4862 (X86_64_NUM_SAVED_REGS): New define.
4863 (x86_64_register_number): Remove function.
4864 (x86_64_store_struct_return): Remove function.
4865 (x86_64_frameless_function_invocation,
4866 x86_64_function_has_prologue): Remove functions.
4867 (PROLOG_BUFSIZE): Remove define.
4868 (struct x86_64_frame_cache): New structure.
4869 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4870 x86_64_frame_cache, x86_64_frame_this_id,
4871 x86_64_frame_prev_register, x86_64_frame_p,
4872 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4873 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4875 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4877 (x86_64_skip_prologue): Rewrite in terms of
4878 x86_64_analyze_prologue.
4879 (x86_64_frame_base_address): New function.
4880 (x86_64_frame_base): New variable.
4881 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4882 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4883 set deprecated_fp_regnum, deprecated_register_size,
4884 deprecated_register_bytes, register_raw_size, register_byte,
4885 register_virtual_type, register_convertiable,
4886 register_convert_to_virtual, convert_to_raw,
4887 deprecated_get_saved_register, deprecated_target_read_fp,
4888 deprecated_push_arguments, deprecated_push_return_address,
4889 deprecated_pop_frame, deprecated_store_struct_return,
4890 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4891 frameless_function_invocation, deprecated_frame_saved_pc,
4892 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4893 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4894 deprecated_init_frame_pc and virtual_frame_pointer. Call
4895 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4896 and x86_64_frame_p. Call frame_base_set_default to register
4898 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4899 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4900 (_initialize_x86_64_tdep): Remove function.
4901 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4902 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4903 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4905 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4906 (x86_64_linux_sigcontext_addr): Rewrite.
4907 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4908 x86_64_linux_frame_saved_pc): Remove functions.
4909 (x86_64_linux_pc_in_sigtramp): Renamed from
4910 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4912 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4914 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4915 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4916 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4917 (x86_64_regmap): Rename to regmap.
4918 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4920 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4922 (x86_64_fxsave_offset): Remove function.
4923 (supply_fpregset): Simply call x86_64_supply_fxsave.
4924 (fill_fpregset): Simply call x86_64_fill_fxsave.
4925 (fetch_inferior_registers, store_inferior_registers): Avoid
4926 asignment in if-statement.
4927 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4928 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4929 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4930 (fetch_core_registers): Remove function.
4931 (linux_elf_core_fns): Remove.
4932 (offsetoff): Don't define.
4933 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4934 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4935 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4937 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4938 protection against multiple includes instead of NM_X86_64_h. Add
4939 various comments. Include "config/nm-linux.h". Don't include
4941 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4942 GET_THREAD_SIGNALS): Remove defines.
4943 (x86_64_register_u_addr, kernel_u_size,
4944 lin_thread_get_thread_signals): Remove prototypes.
4945 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4946 [HAVE_LINK_H]: Don't include "solib.h".
4947 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4948 * config/i386/tm-x86-64linux.h: Fix comments.
4949 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4950 x86-64-tdep.o): Update dependencies.
4952 2003-05-30 Andrew Cagney <cagney@redhat.com>
4954 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4955 Change parameter type to a "struct regcache *".
4957 * gdbarch.sh: Regardless of the multi-arch level, always define
4958 the macro when not already defined.
4959 * gdbarch.h, gdbarch.c: Re-generate.
4961 2003-05-30 Richard Henderson <rth@redhat.com>
4963 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4964 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4965 (alpha_mdebug_frame_this_id): Likewise.
4966 (alpha_mdebug_frame_prev_register): Likewise.
4967 (alpha_mdebug_frame_base_address): Likewise.
4968 (alpha_mdebug_frame_locals_address): Likewise.
4969 (alpha_mdebug_frame_args_address): Likewise.
4970 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4971 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4972 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4974 (alpha_heuristic_frame_this_id): Make static.
4975 (alpha_heuristic_frame_prev_register): Likewise.
4976 (alpha_heuristic_frame_base_address): Likewise.
4977 * alpha-tdep.h: Update.
4979 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4981 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4982 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4984 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4985 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4986 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4987 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4988 I386_ST0_REGNUM): New defines.
4989 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4990 codestream_get): Remove define.
4991 (codestream_next_addr, condestream_addr, condestream_buf,
4992 codestream_off, codestream_cnt): Remove variables.
4993 (codestream_fill, codestream_seek, codestream_read): Remove
4995 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4997 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4998 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4999 i386_frame_saved_pc, i386_saved_pc_after_call,
5000 i386_frame_num_args, i386_frame_init_saved_regs,
5001 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5002 i386_push_arguments): Remove functions.
5003 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5004 functionality. Use i386_analyze_prologue instead of
5005 i386_get_frame_setup.
5006 (I386_NUM_SAVED_REGS): New define.
5007 (struct i386_frame_cache): New structure.
5008 (i386_alloc_frame_cache, i386_analyze_struct_return,
5009 i386_skip_probe, i386_analyze_frame_setup,
5010 i386_analyze_register_saves, i386_analyze_prologue,
5011 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5012 i386_frame_prev_register, i386_sigtramp_frame_cache,
5013 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5014 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5015 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5017 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5019 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5020 I386_EAX_REGNUM and I386_EDX_REGNUM.
5021 (i386_extract_return_value, i386_store_return_value): Use
5022 I386_ST0_REGNUM where appropriate.
5023 (i386_extract_struct_value_address): Rewrite to use extract_address.
5024 (i386_svr4_pc_in_sigtramp): Add comment.
5025 (i386_svr4_sigcontext_addr): Rewrite.
5026 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5028 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5029 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5030 of new defines. Set push_dummy_call, don't set
5031 deprecated_push_arguments, deprecated_push_return_address,
5032 deprecated_pop_frame. Don't set parm_boundary. Don't set
5033 deprecated_frame_chain, deprecated_frame_saved_pc,
5034 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5035 save_dummy_frame_tos, unwind_pc. Call
5036 frame_unwind_append_predicate and frame_base_set_default. Don't
5037 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5038 Don't set frameless_function_invocation. Don't set
5039 deprecated_register_bytes, deprecated_register_size,
5040 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5041 * i386-linux-tdep.c: Fix formatting in some comments.
5042 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5043 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5044 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5045 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5046 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5047 redundant parentheses.
5048 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5049 (i386_linux_sigcontext_addr): Use it. Rewrite.
5050 (find_minsym_and_objfile): Change name of second argument.
5051 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5052 changed. Use frame_pc_unwind instead of
5053 DEPRECATED_SAVED_PC_AFTER_CALL.
5054 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5055 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5056 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5058 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5060 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5061 (_initialize_i386_cygwin_tdep): New prototype.
5062 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5063 deprecated_frame_chain_valid.
5064 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5065 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5066 Rely on the SVR4 defaults.
5067 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5068 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5070 2003-05-30 Andrew Cagney <cagney@redhat.com>
5072 * infcall.c (call_function_by_hand): Always call
5073 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5075 2003-05-30 Richard Henderson <rth@redhat.com>
5077 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5080 2003-05-29 Jim Blandy <jimb@redhat.com>
5082 Use gdbarch methods for solib stuff on PowerPC Linux.
5083 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5084 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5086 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5087 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5088 giving the same effect as the #definitions above.
5090 2003-05-29 Adam Fedor <fedor@gnu.org>
5092 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5093 (find_implementation_from_class): Replace it with the standard
5094 case i.e. do nothing.
5096 2003-05-29 Richard Henderson <rth@redhat.com>
5098 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5099 (alpha_linux_sigtramp_offset): Use it. Make static.
5100 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5101 update for new frame model.
5102 * alpha-mdebug-tdep.c: New file.
5103 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5104 (alpha_osf1_init_abi): Install it.
5105 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5106 (linked_proc_desc_table): Remove.
5107 (alpha_frame_past_sigtramp_frame): Remove.
5108 (alpha_dynamic_sigtramp_offset): Remove.
5109 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5110 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5111 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5112 (push_sigtramp_desc): Remove.
5113 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5114 (alpha_cannot_store_register): Likewise.
5115 (alpha_sigcontext_addr): Remove.
5116 (alpha_find_saved_regs): Remove.
5117 (alpha_frame_init_saved_regs): Remove.
5118 (alpha_init_frame_pc_first): Remove.
5119 (read_next_frame_reg): Remove.
5120 (alpha_frame_saved_pc): Remove.
5121 (alpha_saved_pc_after_call): Remove.
5122 (temp_proc_desc, temp_saved_regs): Remove.
5123 (alpha_about_to_return): Remove.
5124 (cached_proc_desc): Remove.
5125 (alpha_frame_chain): Remove.
5126 (alpha_print_extra_frame_info): Remove.
5127 (alpha_init_extra_frame_info): Remove.
5128 (alpha_frame_locals_address): Remove.
5129 (alpha_frame_args_address): Remove.
5130 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5131 (alpha_push_dummy_frame): Remove.
5132 (alpha_pop_frame): Remove.
5133 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5134 (alpha_read_insn): New.
5135 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5136 for different insn encodings.
5137 (alpha_in_lenient_prologue): Remove.
5138 (struct alpha_sigtramp_unwind_cache): New.
5139 (alpha_sigtramp_frame_unwind_cache): New.
5140 (alpha_sigtramp_register_address): New.
5141 (alpha_sigtramp_frame_this_id): New.
5142 (alpha_sigtramp_frame_prev_register): New.
5143 (alpha_sigtramp_frame_unwind): New.
5144 (alpha_sigtramp_frame_p): New.
5145 (struct alpha_heuristic_unwind_cache): New.
5146 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5147 don't count nop insns that occur between functions.
5148 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5149 heuristic_proc_desc, but without the mdebug wrapping.
5150 (alpha_heuristic_frame_this_id): New.
5151 (alpha_heuristic_frame_prev_register): New.
5152 (alpha_heuristic_frame_unwind): New.
5153 (alpha_heuristic_frame_p): New.
5154 (alpha_heuristic_frame_base_address): New.
5155 (alpha_heuristic_frame_base): New.
5156 (alpha_unwind_dummy_id): New.
5157 (alpha_unwind_pc): New.
5158 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5159 frame related deprecated initializations; install replacements.
5160 (alpha_dump_tdep): Remove.
5161 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5162 (alpha_read_insn, alpha_after_prologue,
5163 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5164 alpha_heuristic_frame_prev_register,
5165 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5166 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5167 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5168 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5170 2003-05-29 Andrew Cagney <cagney@redhat.com>
5172 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5173 dependant on the availability of ASSERT_FUNCTION.
5174 (ASSERT_FUNCTION): Do not define when there is no function name.
5176 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5178 From Jimi X <jimix@watson.ibm.com>:
5179 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5181 2003-05-28 Jim Blandy <jimb@redhat.com>
5183 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5184 argument to ptrace to int; the system headers should give it the
5185 right type, and pointers don't fit in ints on powerpc64-*-*.
5187 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5189 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5192 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5194 * stabsread.c (dbx_lookup_type): Make static.
5196 (add_undefined_type): Ditto.
5197 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5200 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5202 * hpread.c (hpread_has_name): Make static.
5203 (hpread_psymtab_to_symtab): Ditto.
5204 (file_exists): Ditto.
5205 (hpread_call_pxdb): Ditto.
5206 (hpread_pxdb_needed): Ditto.
5207 (hpread_quick_traverse): Ditto.
5208 (hpread_get_header): Ditto.
5209 (hpread_get_lntt): Ditto.
5210 (hpread_get_slt): Ditto.
5213 2003-05-25 Andreas Schwab <schwab@suse.de>
5215 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5216 stack_align and deprecated_extra_stack_alignment_needed.
5217 (m68k_stack_align): Delete.
5219 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5220 (m68k_register_virtual_size): Likewise.
5221 (altos_skip_prologue): Remove obsolete function.
5222 (isi_frame_num_args): Likewise.
5223 (news_frame_num_args): Likewise.
5224 (m68k_fix_call_dummy): Make static.
5225 (m68k_push_dummy_frame): Likewise.
5226 (m68k_pop_frame): Likewise.
5227 (m68k_skip_prologue): Likewise.
5228 (m68k_frame_init_saved_regs): Likewise.
5229 (m68k_saved_pc_after_call): Likewise.
5230 (m68k_get_longjmp_target): Make multi-arch.
5231 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5232 structure. Register m68k_get_longjmp_target if enabled.
5233 * m68k-tdep.h (struct gdbarch_tdep): Define.
5234 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5236 * Makefile.in (config.status): Also depend on configure.tgt
5238 (m68klinux-tdep.o): Update dependencies.
5239 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5240 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5241 (M68K_LINUX_JB_PC): Define.
5242 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5243 and take additional parameter.
5244 (m68k_linux_sigtramp_saved_pc): Update.
5245 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5246 m68k_linux_pc_in_sigtramp, in_plt_section,
5247 find_solib_trampoline_target.
5248 * config/m68k/tm-linux.h: Don't include any tm headers.
5249 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5250 (JB_ELEMENT_SIZE): Likewise.
5252 (GET_LONGJMP_TARGET): Likewise.
5253 (IN_SIGTRAMP): Likewise.
5254 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5256 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5258 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5259 (sparc32_push_arguments): Re-implement by calling
5260 sparc32_do_push_arguments.
5262 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5264 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5265 SPARC_O1_REGNUM): New defines.
5266 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5267 (sparc32_store_return_value): New function.
5268 (sparc_extract_struct_value_address): Rewrite to operate on a
5270 (sparc_gdbarch_init): Don't set
5271 deprecated_extract_struct_value_address. Set
5272 extract_struct_value_address instead. Don't set
5273 deprecated_extract_return_value and deprecated_store_return_value
5274 for 32-bit targets. Set extract_return_value and
5275 store_return_value instead.
5276 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5277 DEPRECTAED_EXTRACT_RETURN_VALUE,
5278 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5279 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5280 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5281 (sparc_store_return_value): Remove prototype.
5282 (sparc32_store_return_value): New prototype.
5283 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5286 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5288 * sparcnbsd-tdep.c: Include "gdb_string.h".
5290 2003-05-23 Andrew Cagney <cagney@redhat.com>
5292 * p-valprint.c (pascal_val_print): Replace extract_address with
5293 the inline equivalent extract_unsigned_integer.
5294 * jv-valprint.c (java_value_print): Ditto.
5295 * ada-valprint.c (ada_val_print_1): Ditto.
5296 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5298 2003-05-23 Theodore A. Roth <troth@openavr.org>
5300 * blockframe.c (frameless_look_for_prologue): Remove unused
5301 after_prologue variable.
5303 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5305 * blockframe.c (get_pc_function_start): Rewrite to avoid
5306 asignments in if-statements.
5308 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5310 Committed by Elena Zannoni <ezannoni@redhat.com>.
5311 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5312 files, don't relocate absolute symbols (and do use mst_abs).
5314 2003-05-23 Andrew Cagney <cagney@redhat.com>
5316 * objc-lang.c: Include "gdb_assert.h".
5317 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5318 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5319 (gdb_check, gdb_check_fatal): Delete functions.
5320 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5322 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5323 * Makefile.in (objc-lang.o): Update dependencies.
5325 2003-05-22 Ian Lance Taylor <ian@airs.com>
5327 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5328 with fprintf_filtered, not fprintf_unfiltered.
5330 2003-05-22 Andrew Cagney <cagney@redhat.com>
5332 * stack.c (frame_info): Inline extract_address, replacing it with
5333 extract_unsigned_integer.
5334 * findvar.c (unsigned_pointer_to_address): Ditto.
5335 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5336 * dwarf2expr.c (dwarf2_read_address): Ditto.
5337 * frame.c (frame_pc_unwind): Update comment.
5338 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5340 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5342 * infptrace.c (detach): Call print_sys_errmsg rather than
5343 perror_with_name to issue warning message when errno is non-zero
5344 after calling ptrace detach.
5346 2003-05-21 J. Brobecker <brobecker@gnat.com>
5348 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5349 macro definitions from here...
5350 * hppa-tdep.c: ...to there.
5352 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5354 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5355 register_ptrace_addr(). Fix all callers.
5357 2003-05-21 Andreas Schwab <schwab@suse.de>
5359 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5361 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5363 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5364 (_initialize_m68k_linux_tdep): New function.
5365 (m68k_linux_frame_saved_pc): Make static.
5366 (m68k_linux_extract_return_value): Likewise.
5367 (m68k_linux_store_return_value): Likewise.
5368 (m68k_linux_extract_struct_value_address): Likewise.
5369 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5371 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5372 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5373 (DEPRECATED_FRAME_SAVED_PC): Remove.
5375 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5377 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5378 regset numbering rather than our own.
5380 2003-05-19 David Carlton <carlton@bactrian.org>
5382 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5384 2003-05-19 David Carlton <carlton@bactrian.org>
5386 Partial fix for PR c++/827.
5387 * cp-support.h: Include symtab.h.
5388 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5389 * cp-namespace.c: Update contributors.
5390 (cp_lookup_symbol_nonlocal): New.
5391 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5392 (lookup_symbol_file): Ditto.
5393 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5394 * block.h: Declare block_scope, block_using, block_global_block.
5395 * block.c (block_scope): New.
5396 (block_using, block_global_block): Ditto.
5397 * Makefile.in (cp_support_h): Depend on symtab_h.
5398 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5400 2003-05-19 David Carlton <carlton@bactrian.org>
5402 * language.h (struct language_defn): Add 'la_value_of_this'
5403 and 'la_lookup_symbol_nonlocal' members.
5404 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5405 lookup_symbol_static, lookup_symbol_global,
5406 lookup_symbol_aux_block.
5407 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5408 if we should search fields of this and how to do static/global
5410 (lookup_symbol_aux_block): Make extern.
5411 (basic_lookup_symbol_nonlocal): New.
5412 (lookup_symbol_static, lookup_symbol_global): Ditto.
5413 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5414 'la_lookup_symbol_nonlocal' members.
5415 * c-lang.c (c_language_defn, cplus_language_defn)
5416 (asm_language_defn, minimal_language_defn): Ditto.
5417 * jv-lang.c (java_language_defn): Ditto.
5418 * language.c (unknown_language_defn, auto_language_defn)
5419 (local_language_defn): Ditto.
5420 * m2-lang.c (m2_language_defn): Ditto.
5421 * objc-lang.c (objc_language_defn): Ditto.
5422 * scm-lang.c (scm_language_defn): Ditto.
5423 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5424 * p-lang.c (pascal_language_defn): Ditto for both.
5425 * Makefile.in (f-lang.o): Depend on value_h.
5428 2003-05-19 David Carlton <carlton@bactrian.org>
5430 * block.h: Declare block_static_block.
5431 * block.c (block_static_block): New.
5432 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5433 lookup_symbol_aux_local, calling block_static_block instead.
5434 (lookup_symbol_aux_local): Delete 'static_block' argument.
5436 2003-05-19 David Carlton <carlton@bactrian.org>
5438 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5440 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5442 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5443 register numbers mapping.
5445 2003-05-18 Adam Fedor <fedor@gnu.org>
5447 * symtab.c (completion_list_objc_symbol): New function.
5448 (make_symbol_completion_list): Use it to add ObjC symbols
5449 when looking though the list.
5450 (language_search_unquoted_string): New function.
5451 (make_file_symbol_completion_list): Use it.
5453 2003-05-18 Andreas Schwab <schwab@suse.de>
5455 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5457 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5458 as m68k_linux_extract_return_value.
5459 (DEPRECATED_STORE_RETURN_VALUE): Define as
5460 m68k_linux_store_return_value.
5461 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5462 m68k_linux_extract_struct_value_address.
5463 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5464 get_next_frame, get_frame_base, get_frame_pc.
5465 (m68k_linux_frame_saved_pc): Use get_frame_base.
5466 (m68k_linux_extract_return_value): New function.
5467 (m68k_linux_store_return_value): New function.
5468 (m68k_linux_extract_struct_value_address): New function.
5469 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5471 * c-exp.y (typebase): Remove duplicate occurence of
5472 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5473 of lookup_signed_typename.
5475 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5477 * dwarf2loc.c (find_location_expression): Change type of second
5478 argument to `size_t *'.
5479 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5482 2003-05-18 David Carlton <carlton@bactrian.org>
5484 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5485 'linkage_name'. Add comment.
5486 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5488 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5489 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5490 (lookup_block_symbol): Ditto.
5492 2003-05-16 Andrew Cagney <cagney@redhat.com>
5494 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5495 * gdbarch.h, gdbarch.c: Re-generate.
5496 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5497 * TODO (REGISTER_BYTES): Delete reference.
5498 * alpha-tdep.c (alpha_gdbarch_init): Update.
5499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5500 * x86-64-tdep.c (x86_64_init_abi): Update.
5501 * vax-tdep.c (vax_gdbarch_init): Update.
5502 * v850-tdep.c (v850_gdbarch_init): Update.
5503 * sparc-tdep.c (sparc_gdbarch_init): Update.
5504 * sh-tdep.c (sh_gdbarch_init): Update.
5505 * s390-tdep.c (s390_gdbarch_init): Update.
5506 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5507 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5508 (ns32k_gdbarch_init_32382): Update.
5509 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5510 * mcore-tdep.c (mcore_gdbarch_init): Update.
5511 * m68k-tdep.c (m68k_gdbarch_init): Update.
5512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5513 * ia64-tdep.c (ia64_gdbarch_init): Update.
5514 * i386-tdep.c (i386_gdbarch_init): Update.
5515 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5516 * hppa-tdep.c (hppa_gdbarch_init): Update.
5517 * h8300-tdep.c (h8300_gdbarch_init): Update.
5518 * frv-tdep.c (frv_gdbarch_init): Update.
5519 * cris-tdep.c (cris_gdbarch_init): Update.
5520 * avr-tdep.c (avr_gdbarch_init): Update.
5521 * arm-tdep.c (arm_gdbarch_init): Update.
5522 * sparc-tdep.c (sparc_pop_frame): Update.
5523 * rs6000-tdep.c (rs6000_pop_frame): Update.
5524 * remote.c (init_remote_state): Update.
5525 (remote_prepare_to_store): Update.
5526 * remote-vx.c (vx_prepare_to_store): Update.
5527 * remote-sds.c (sds_fetch_registers): Update.
5528 (sds_prepare_to_store): Update.
5529 * remote-array.c: Update.
5530 * regcache.c (init_legacy_regcache_descr): Update.
5531 (init_regcache_descr): Update.
5532 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5533 (mips_o64_extract_return_value): Update.
5534 * irix5-nat.c (fetch_core_registers): Update.
5535 * irix4-nat.c (fetch_core_registers): Update.
5536 * i386-tdep.h: Update.
5537 * hppa-tdep.c (pa_do_registers_info): Update.
5538 (pa_do_strcat_registers_info): Update.
5539 * cris-tdep.c (cris_register_bytes_ok): Update.
5540 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5541 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5542 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5543 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5544 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5545 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5546 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5547 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5548 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5549 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5550 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5551 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5552 (REGISTER_BYTES_OK): Update.
5553 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5554 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5556 2003-05-16 Ian Lance Taylor <ian@airs.com>
5558 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5559 (vax_print_insn, print_insn_arg): Remove static functions.
5560 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5561 print_insn_vax from opcodes library.
5562 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5564 2003-05-15 Andrew Cagney <cagney@redhat.com>
5566 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5567 * target.h (memory_breakpoint_from_pc): Delete declaration.
5568 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5569 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5570 * monitor.c (monitor_insert_breakpoint): Use
5571 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5572 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5573 * gdbarch.h, gdbarch.c: Re-generate.
5574 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5575 (sparc_gdbarch_init): Set breakpoint_from_pc to
5576 sparc_breakpoint_from_pc.
5577 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5578 (BREAKPOINT_FROM_PC): Define.
5579 (sparc_breakpoint_from_pc): Declare.
5580 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5581 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5582 (BREAKPOINT_FROM_PC): Define.
5583 (BREAKPOINT): Delete macro.
5584 * target.h: Update comment.
5585 * s390-tdep.c (s390_gdbarch_init): Update comments.
5586 * remote.c: Update comments.
5587 * remote-mips.c: Update comments.
5588 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5589 * mem-break.c: Update comment.
5590 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5591 (ia64_memory_insert_breakpoint): Update.
5592 * config/sparc/tm-sparc.h: Update comment.
5593 * config/pa/tm-hppa64.h: Update comment.
5594 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5595 (rs6000_breakpoint_from_pc): Update.
5596 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5597 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5598 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5599 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5600 (mips_breakpoint_from_pc): Update.
5601 (mips_dump_tdep): Update.
5603 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5604 * minsyms.c (lookup_minimal_symbol): Inline
5605 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5607 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5608 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5609 * p-lang.c (pascal_printstr): Ditto.
5610 * objc-lang.c (objc_printstr): Ditto.
5611 * m2-lang.c (m2_printstr): Ditto.
5612 * jv-valprint.c (java_print_value_fields): Ditto.
5613 * f-lang.c (f_printstr): Ditto.
5614 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5615 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5616 for repeat_count_threshold.
5617 * Makefile.in (cp-valprint.o): Update dependencies.
5619 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5621 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5622 (examine_prologue): Support looking through leaf functions, knowing
5623 they start with mov r2,r12. Support skipping over indirect stores
5624 of the input registers. Upon hitting a non-nop branch instruction
5625 or predicated instruction, bail out by setting lim_pc to the current
5626 pc value in the loop. At the end, if the lim_pc value is still
5627 beyond our calculated value and we have trust_limit set,
5628 use the lim_pc value.
5630 2003-05-15 Andrew Cagney <cagney@redhat.com>
5632 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5633 generic_find_dummy_frame.
5634 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5635 (deprecated_generic_find_dummy_frame): Update.
5636 (deprecated_read_register_dummy): Update.
5637 * frame.c (deprecated_generic_get_saved_register): Update.
5639 2003-05-15 Theodore A. Roth <troth@openavr.org>
5641 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5642 (avr_gdbarch_init): Set breakpoint_from_pc method.
5644 2003-05-15 Andrew Cagney <cagney@redhat.com>
5646 * regcache.c (build_regcache): Set deprecated_register_valid
5648 (deprecated_grub_regcache_for_register_valid): Delete function.
5649 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5652 2003-05-15 David Carlton <carlton@bactrian.org>
5654 Committed by Elena Zannoni <ezannoni@redhat.com>
5655 * symtab.c (lookup_symbol_aux): Delete calls to
5656 lookup_symbol_aux_minsyms.
5657 (lookup_symbol_aux_minsyms): Comment out function and
5658 prototype. Delete lookup by mangled name.
5660 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5662 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5663 correctly indicate an empty stack and ``stack_allocated'' to the
5664 indicate the number of elements initially allocated.
5665 (dwarf_expr_grow_stack): Simplify method for computing new
5666 stack size. Don't loop infinitely if ``stack_len'' is zero.
5667 (execute_stack_op): Move ``ctx->in_reg'' initialization
5668 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5669 be used in conjuction with DW_OP_piece. Revise error message
5672 2003-05-14 Theodore A. Roth <troth@openavr.org>
5674 * MAINTAINERS: Update my email address.
5675 * avr-tdep.c: Ditto.
5677 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5679 * symtab.h (enum domain_enum): Rename from namespace_enum.
5680 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5681 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5682 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5683 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5684 TYPES_NAMESPACE, METHODS_NAMESPACE.
5685 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5686 (struct symbol, struct partial_symbol): Rename field
5687 'namespace_enum namespace' to 'domain_enum domain'.
5688 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5689 Delete old define kludge for namespace.
5691 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5692 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5693 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5694 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5695 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5696 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5697 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5698 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5699 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5700 occurrences of the above.
5702 2003-05-14 Ian Lance Taylor <ian@airs.com>
5704 * Makefile.in (install-only): Use $(SHELL) when running
5707 2003-05-13 Ian Lance Taylor <ian@airs.com>
5709 * MAINTAINERS (write after approval): Add myself.
5711 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5712 second and third arguments.
5713 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5714 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5716 2003-05-13 Andrew Cagney <cagney@redhat.com>
5718 * defs.h (store_address): Delete declaration.
5719 findvar.c (store_address): Delete function.
5720 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5721 store_unsigned_integer.
5722 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5723 * v850-tdep.c (v850_push_arguments): Ditto.
5724 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5725 * sh-tdep.c (sh64_get_saved_register): Ditto.
5726 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5727 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5728 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5729 (mips_get_saved_register): Ditto.
5730 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5731 (find_func_descr, ia64_push_arguments): Ditto.
5732 * i386-tdep.c (i386_push_arguments): Ditto.
5733 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5734 * frv-tdep.c (frv_push_arguments): Ditto.
5735 * frame.c (legacy_saved_regs_prev_register): Ditto.
5736 (deprecated_generic_get_saved_register): Ditto.
5737 * findvar.c (unsigned_address_to_pointer): Ditto.
5738 * dwarf2read.c (dwarf2_const_value): Ditto.
5739 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5740 * alpha-tdep.c (alpha_push_arguments): Ditto.
5742 2003-05-12 J. Brobecker <brobecker@gnat.com>
5744 * NEWS: Mention that the hppa-hpux port has been partially
5745 multiarched (32bit ABIT only, so far).
5747 2003-05-11 Andrew Cagney <cagney@redhat.com>
5749 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5750 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5751 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5752 sim/testsuite/sim/arm/misaligned2.ms, and
5753 sim/testsuite/sim/arm/misaligned3.ms.
5754 * disasm.h (struct ui_file): Add opaque struct declaration.
5755 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5756 * frame.h (struct ui_file): Ditto.
5758 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5760 * value.h: Pretty print.
5762 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5764 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5766 2003-05-08 Andrew Cagney <cagney@redhat.com>
5768 * regcache.h (max_register_size): Delete declaration.
5769 * regcache.c (max_register_size): Delete function.
5770 (struct regcache_descr): Delete field "max_register_size".
5771 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5772 registers fit in MAX_REGISTER_SIZE.
5773 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5774 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5775 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5776 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5777 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5778 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5779 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5780 * dve3900-rom.c, hppa-tdep.c: Ditto.
5782 2003-05-08 David Carlton <carlton@math.stanford.edu>
5784 * valops.c (push_word): Fix typo.
5786 2003-05-08 Andrew Cagney <cagney@redhat.com>
5788 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5789 * gdbarch.h: Re-generate.
5790 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5791 (legacy_max_register_raw_size): Delete declaration.
5792 * regcache.c (legacy_max_register_raw_size): Delete function.
5793 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5794 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5795 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5796 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5797 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5798 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5799 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5800 * findvar.c, dwarf2cfi.c: Ditto.
5802 2003-05-08 Andrew Cagney <cagney@redhat.com>
5804 * mips-tdep.c (read_signed_register): New function, moved to here
5806 (read_signed_register_pid): Ditto.
5807 * regcache.c (read_signed_register_pid): Delete function, moved to
5809 (read_signed_register): Ditto.
5810 * regcache.h (read_signed_register): Delete declaration.
5811 (read_signed_register_pid): Delete declaration.
5813 2003-05-08 Andrew Cagney <cagney@redhat.com>
5815 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5816 * gdbarch.h: Re-generate.
5817 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5818 (legacy_max_register_virtual_size): Delete declaration.
5819 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5820 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5821 * tracepoint.c (memrange_sortmerge): Ditto.
5822 * sparc-tdep.c (sparc_print_registers): Ditto.
5823 * regcache.c (legacy_max_register_virtual_size): Delete function.
5825 2002-05-08 J. Brobecker <brobecker@gnat.com>
5827 * fork-child.c (escape_bang_in_quoted_argument): New function.
5828 (fork_inferior): Escape '!' characters in quoted arguments
5831 2003-05-08 J. Brobecker <brobecker@gnat.com>
5833 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5834 the language of the CU is not currently supported by GDB.
5836 2003-05-08 J. Brobecker <brobecker@gnat.com>
5838 * defs.h (language): Add language_minimal enum value.
5839 * c-lang.c (minimal_language_defn): New language definition.
5840 (_initialize_c_language): Add the new minimal language to the list
5841 of languages known to GDB.
5843 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5845 * frame.c (get_frame_type): Don't attempt to lazily initialize
5846 frame's unwinder for legacy frames.
5848 2003-05-07 Andrew Cagney <cagney@redhat.com>
5850 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5851 and "regcache" parameters.
5852 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5854 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5856 * dwarf2read.c (dwarf_decode_lines): Only use output of
5857 check_cu_functions() when calling record_line(). Do not update
5858 the current address.
5860 2003-05-07 Andrew Cagney <cagney@redhat.com>
5862 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5865 2003-05-07 Jim Blandy <jimb@redhat.com>
5867 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5868 'maint info symtabs' and 'maint info psymtabs'.
5869 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5870 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5871 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5872 Declarations updated.
5873 * maint.c (maintenance_list_command): Delete.
5874 (_initialize_maint_cmds): Update calls to add_cmd.
5875 * gdbcmd.h (maintenancelistlist): Delete declaration.
5876 * cli/cli-cmds.c (maintenancelistlist): Delete.
5877 (init_cmd_lists): Don't initialize it.
5878 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5880 2003-05-07 Andrew Cagney <cagney@redhat.com>
5882 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5884 (d10v_print_registers_info): Update.
5885 (d10v_dmap_register, d10v_imap_register): Delete functions.
5886 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5887 and "imap_register".
5888 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5889 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5890 * arch-utils.c (generic_remote_translate_xfer_address): Add
5891 "regcache" and "gdbarch" parameters.
5892 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5893 parameter. Change class to multi-arch.
5894 * gdbarch.h, gdbarch.c: Re-generate.
5895 * remote.c (remote_xfer_memory): Use
5896 gdbarch_remote_translate_xfer_address.
5898 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5900 * infrun.c (prev_pc): Move declaration ahead of proceed().
5901 (proceed): Refresh prev_pc value before resuming.
5902 (stop_stepping): Remove code to refresh prev_pc.
5904 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5906 * nto-tdep.c: Removed stray comment.
5908 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5910 * i386-nto-tdep.c: Fix old K&R function definitions.
5911 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5912 Also change add_show_from_set() call to add_setshow_cmd().
5913 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5915 2003-05-05 Andrew Cagney <cagney@redhat.com>
5917 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5918 (fprint_dummy_frames): New function.
5919 (maintenance_print_dummy_frames): New function.
5920 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5921 * frame.c (fprint_frame_id): Make global.
5922 * frame.h (fprint_frame_id): Declare.
5923 * Makefile.in (dummy-frame.o): Update dependencies.
5925 2003-05-05 Andrew Cagney <cagney@redhat.com>
5927 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5928 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5929 SIZEOF_CALL_DUMMY_WORDS.
5930 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5931 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5932 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5933 CALL_DUMMY_BREAKPOINT_OFFSET.
5934 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5935 CALL_DUMMY_START_OFFSET.
5936 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5937 * gdbarch.h, gdbarch.c: Re-generate.
5938 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5939 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5940 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5941 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5942 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5943 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5944 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5945 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5946 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5947 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5948 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5949 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5950 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5951 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5952 * config/sparc/tm-sparc.h: Update.
5954 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5956 * configure.tgt: Add i[3456]86-*-nto*.
5957 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5958 * nto-tdep.c: New file. Neutrino target support routines.
5959 * nto-tdep.h: New file. Neutrino target header.
5960 * config/tm-qnxnto.h: New file.
5961 * config/i386/i386nto.mt: New file.
5962 * config/i386/tm-i386nto.h: New file.
5964 2003-05-04 Andrew Cagney <cagney@redhat.com>
5966 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5967 (load_infrun_state): Ditto.
5968 (struct thread_info): Drop "prev_func_name" field.
5969 * thread.c (load_infrun_state): Update.
5970 (save_infrun_state): Update.
5971 * infrun.c (prev_func_name): Delete variable.
5972 (init_wait_for_inferior): Do not clear prev_func_name.
5973 (stop_stepping, keep_going, context_switch): Do not swap
5975 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5976 instead of PC_IN_SIGTRAMP.
5978 2003-05-04 Andrew Cagney <cagney@redhat.com>
5980 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5981 REGISTER_BYTE with register_offset_hack.
5982 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5983 that REGISTER_BYTE is consistent with the regcache.
5984 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5985 * gdbarch.h, gdbarch.c: Regenerate.
5987 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5989 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5990 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5992 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5994 2003-05-03 J. Brobecker <brobecker@gnat.com>
5996 From Thierry Schneider <tpschneider1@yahoo.com>
5997 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5998 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5999 (mi-cmd-symbol.o): Add rule.
6001 2003-05-03 Andrew Cagney <cagney@redhat.com>
6003 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6004 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6005 * gdbarch.h, gdbarch.c: Re-generate.
6006 * d10v-tdep.c (d10v_push_dummy_code): New function.
6007 (d10v_gdbarch_init): Set push_dummy_code.
6008 * infcall.c (legacy_push_dummy_code): New function.
6009 (generic_push_dummy_code): New function.
6010 (push_dummy_code): New function.
6011 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6012 instead of dummy_addr, to push_dummy_call. Move call to
6013 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6015 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6017 2003-05-03 Andrew Cagney <cagney@redhat.com>
6019 * disasm.h (print_insn): Declare.
6020 * disasm.c (init_gdb_disassemble_info): New function.
6021 (gdb_disassembly): Call init_gdb_disassemble_info.
6022 (gdb_print_insn): New function.
6023 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6024 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6025 * mcore-tdep.c: Include "disasm.h"
6026 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6027 * d10v-tdep.c: Include "disasm.h".
6028 (display_trace): Call gdb_print_insn, instead of print_insn.
6029 (print_insn): Delete function.
6030 * printcmd.c: Include "disasm.h".
6031 (print_insn): Delete function.
6032 (print_formatted): Call gdb_print_insn, instead of print_insn.
6033 * Makefile.in (printcmd.o): Update dependencies.
6034 (mcore-tdep.o, d10v-tdep.o): Ditto.
6036 2003-05-02 Andrew Cagney <cagney@redhat.com>
6038 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6039 PC_REGNUM, re-indent.
6040 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6041 PC_REGNUM isn't set.
6043 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6044 * gdbarch.h, gdbarch.c: Re-generate.
6045 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6046 register_virtual_size, pc_regnum, or register_bytes.
6047 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6048 (d10v_register_type): Use D10V_PC_REGNUM.
6049 (d10v_print_registers_info, d10v_read_pc): Ditto.
6050 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6051 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6053 2003-05-02 David Carlton <carlton@bactrian.org>
6055 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6056 the name with mstrsave.
6058 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6060 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6061 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6062 (host_charset_name, target_charset_name): New vars for use by
6064 (host_charset_enum, target_charset_enum): New enums for set/show
6066 (set_charset_sfunc, set_host_charset_sfunc,
6067 set_target_charset_sfunc): New functions.
6068 (set_host_charset, set_target_charset): Make static.
6069 (list_charsets, set_host_charset_command,
6070 set_target_charset_command): Delete functions.
6071 (show_charset_command): Rewrite as....
6072 (show_charset): Hook this up with the set/show command mechanism.
6073 (_initialize_charset): Change names of charsets to match the
6074 set/show enums. Use host_charset_name and target_charset_name.
6075 Use set/show mechanism for charset, host-charset, target-charset
6076 commands. Do not make 'show host-charset' and 'show
6077 target-charset' be aliases of 'show charset'.
6079 * charset.h (set_host_charset, set_target_charset): Don't export,
6080 they are not used outside the file.
6082 2003-05-01 Andrew Cagney <cagney@redhat.com>
6084 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6085 (gdb_disassembly): Make "di" non static, always initialize and
6086 cleanup. Always use dis_asm_read_memory.
6087 (gdb_dis_asm_read_memory): Delete function.
6089 2003-05-01 Andrew Cagney <cagney@redhat.com>
6091 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6092 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6094 2003-04-30 Andrew Cagney <cagney@redhat.com>
6096 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6097 "tm_print_insn_info".
6098 (TARGET_PRINT_INSN_INFO): Delete macro.
6099 (dis_asm_read_memory): Delete function declaration.
6100 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6101 (tm_print_insn_info): Delete variable definition.
6102 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6103 * gdbarch.h, gdbarch.c: Re-generate.
6104 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6105 "deprecated_tm_print_insn_info".
6106 * mcore-tdep.c (mcore_dump_insn): Ditto.
6107 * mips-tdep.c (mips_gdbarch_init): Ditto.
6108 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6109 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6110 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6111 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6112 instead of TARGET_PRINT_INSN_INFO, add comment.
6113 * s390-tdep.c (s390_get_frame_info): Instead of
6114 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6115 (s390_check_function_end, s390_is_sigreturn): Ditto.
6116 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6117 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6118 * disasm.c: Include "gdbcore.h".
6119 (_initialize_disasm): New function, initialize
6120 "deprecated_tm_print_insn_info".
6121 (deprecated_tm_print_insn_info): New variable.
6122 (dis_asm_read_memory): Moved from "corefile.c", made static.
6123 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6124 * Makefile.in (disasm.o): Update dependencies.
6126 2003-04-30 Andrew Cagney <cagney@redhat.com>
6128 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6130 2003-04-29 Adam Fedor <fedor@gnu.org>
6132 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6133 * infcall.c (find_function_addr): Make non-static.
6134 * infcall.h (find_function_addr): Declare.
6135 * Makefile.in (eval.o): Update dependencies.
6137 2003-04-28 Adam Fedor <fedor@gnu.org>
6139 * symtab.c (symbol_find_demangled_name): Check for and demangle
6141 (symbol_init_demangled_name): Init for language_objc as well.
6143 2003-04-28 Andrew Cagney <cagney@redhat.com>
6145 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6146 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6147 * gdbarch.h, gdbarch.c: Re-generate.
6148 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6149 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6150 * inferior.h (deprecated_read_fp): Rename read_fp.
6151 (generic_target_read_fp): Delete declaration.
6152 * regcache.c (generic_target_read_fp): Delete function.
6153 (deprecated_read_fp): Replace read_fp, use
6154 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6155 * d10v-tdep.c (d10v_read_fp): Delete function.
6156 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6158 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6159 deprecated_target_read_fp to generic_target_read_fp.
6160 * sh-tdep.c (sh_gdbarch_init): Ditto.
6161 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6162 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6163 * frv-tdep.c (frv_gdbarch_init): Ditto.
6165 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6166 deprecated_fp_regnum.
6167 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6168 * vax-tdep.c (vax_gdbarch_init): Ditto.
6169 * v850-tdep.c (v850_gdbarch_init): Ditto.
6170 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6171 * sh-tdep.c (sh_gdbarch_init): Ditto.
6172 * s390-tdep.c (s390_gdbarch_init): Ditto.
6173 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6174 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6175 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6176 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6178 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6179 * i386-tdep.c (i386_gdbarch_init): Ditto.
6180 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6181 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6182 * frv-tdep.c (frv_gdbarch_init): Ditto.
6183 * cris-tdep.c (cris_gdbarch_init): Ditto.
6184 * avr-tdep.c (avr_gdbarch_init): Ditto.
6185 * arm-tdep.c (arm_gdbarch_init): Ditto.
6186 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6188 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6189 * v850-tdep.c (v850_gdbarch_init): Ditto.
6190 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6191 * sh-tdep.c (sh_gdbarch_init): Ditto.
6192 * s390-tdep.c (s390_gdbarch_init): Ditto.
6193 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6194 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6195 * mips-tdep.c (mips_gdbarch_init): Ditto.
6196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6197 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6198 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6199 * frv-tdep.c (frv_gdbarch_init): Ditto.
6200 * avr-tdep.c (avr_gdbarch_init): Ditto.
6201 * arm-tdep.c (arm_gdbarch_init): Ditto.
6203 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6204 DEPRECATED_FP_REGNUM.
6205 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6206 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6207 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6208 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6209 (sparc32_register_virtual_type): Ditto.
6210 * sh-tdep.c (sh64_frame_chain): Ditto.
6211 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6212 (sh_nofp_frame_init_saved_regs): Ditto.
6213 (sh64_nofp_frame_init_saved_regs): Ditto.
6214 (sh_fp_frame_init_saved_regs): Ditto.
6215 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6216 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6217 * procfs.c (procfs_fetch_registers): Ditto.
6218 (procfs_store_registers): Ditto.
6219 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6220 (store_inferior_registers, fetch_core_registers): Ditto.
6221 (fetch_kcore_registers, clear_regs): Ditto.
6222 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6223 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6224 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6225 * nlm/i386.c (do_status): Ditto.
6226 * mipsv4-nat.c (supply_gregset): Ditto.
6227 * mips-tdep.c: Ditto for comments.
6228 * mips-nat.c (fetch_inferior_registers): Ditto.
6229 (store_inferior_registers, fetch_core_registers): Ditto.
6230 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6231 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6232 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6233 (i386_do_pop_frame, i386_register_type): Ditto.
6234 * hppa-tdep.c (hppa_frame_chain): Ditto.
6235 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6236 (hppa_pop_frame, hppa_read_fp): Ditto.
6237 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6238 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6239 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6240 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6241 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6242 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6243 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6244 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6245 * blockframe.c: Ditto for comments.
6246 * arch-utils.h: Ditto for comments.
6247 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6248 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6249 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6250 * alpha-tdep.h: Ditto for comments.
6251 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6252 (alpha_cannot_store_register): Ditto.
6253 (alpha_push_dummy_frame): Ditto.
6254 * alpha-nat.c (supply_gregset): Ditto.
6256 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6257 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6258 * config/sparc/tm-sparc.h: Update comment.
6260 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6261 deprecated_read_fp instead of TARGET_READ_FP.
6262 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6263 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6264 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6265 deprecated_read_fp instead of read_fp.
6266 * s390-tdep.c (s390_push_arguments): Ditto.
6267 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6268 * frame.h: Ditto in comments.
6269 * frame.c (legacy_get_prev_frame): Ditto.
6270 * dummy-frame.c (dummy_frame_this_id): Ditto.
6271 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6273 2003-04-28 Andrew Cagney <cagney@redhat.com>
6275 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6276 * gdbarch.h, gdbarch.c: Re-generate.
6277 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6278 * vax-tdep.c (_initialize_vax_tdep): Update.
6279 * v850-tdep.c (_initialize_v850_tdep): Update.
6280 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6281 * s390-tdep.c (_initialize_s390_tdep): Update.
6282 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6283 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6284 * mips-tdep.c (_initialize_mips_tdep): Update.
6285 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6286 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6287 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6288 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6289 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6290 * frv-tdep.c (_initialize_frv_tdep): Update.
6291 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6292 (_initialize_cris_tdep): Update.
6293 * arch-utils.c (legacy_print_insn): Update.
6294 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6296 2003-04-26 Adam Fedor <fedor@gnu.org>
6298 * linespec.c (decode_objc): New function to decode ObjC calls
6299 (decode_line_1): Check for ObjC calls (using decode_objc)
6300 * Makefile (linespec.o): Update dependencies.
6302 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6304 * breakpoint.h (struct breakpoint_ops): New.
6305 (struct breakpoint): Add ops member.
6307 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6308 (mention): Use new breakpoint ops member.
6309 (set_raw_breakpoint): Initialize ops field to NULL.
6310 (print_exception_catchpoint, print_one_exception_catchpoint)
6311 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6312 (gnu_v3_exception_catchpoint_ops): New.
6313 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6315 2003-04-25 Adam Fedor <fedor@gnu.org>
6317 * Makefile.in (COMMON_OBS): Add objc-lang.o
6319 2003-04-25 Andrew Cagney <cagney@redhat.com>
6321 * d10v-tdep.c (print_insn): Delete function.
6322 (display_trace): Use TARGET_PRINT_INSN.
6323 (_initialize_d10v_tdep): Do not set tm_print_insn.
6324 (d10v_gdbarch_init): Set print_insn.
6326 2003-04-25 Andrew Cagney <cagney@redhat.com>
6328 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6329 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6330 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6331 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6332 (nr_dmap_regs, a0_regnum): ... new functions.
6333 (d10v_print_registers_info): Use a0_regnum, use register_size.
6334 (d10v_register_byte): Delete function.
6335 (d10v_register_raw_size): Delete function.
6336 (d10v_register_type): Use a0_regnum.
6337 (d10v_print_registers_info): Use a0_regnum.
6338 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6339 (d10v_gdbarch_init): Do not set register_byte or
6340 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6341 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6343 (trace_command): Use XCALLOC.
6344 (print_insn): Delete reference to tm_print_insn.
6345 (saved_regs_unwinder): Use store_unsigned_integer instead of
6347 * frame.h (FRAME_OBSTACK_CALLOC): Define
6349 2003-04-25 David Carlton <carlton@bactrian.org>
6351 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6353 2003-04-24 Adam Fedor <fedor@gnu.org>
6355 * objc-lang.c: Include "valprint.h"
6356 * Makefile.in (objc-lang.o): Update dependencies.
6358 2003-04-24 Adam Fedor <fedor@gnu.org>
6360 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6361 architecture dependant compilation and mark as unimplemented
6362 (until they get put in the gdbarch vector).
6364 2003-04-23 David Carlton <carlton@bactrian.org>
6366 * cp-support.c (cp_find_first_component): Accept 'operator' in
6369 2003-04-23 Andrew Cagney <cagney@redhat.com>
6371 * infcall.c (call_function_by_hand): Eliminate redundant
6372 indentation. Move "saved_async" and "old_cleanups" to where they
6375 2003-04-23 Andrew Cagney <cagney@redhat.com>
6377 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6378 and "buffer". Move the "name" code to where it is needed.
6380 2003-04-23 Andrew Cagney <cagney@redhat.com>
6382 * infcall.c (call_function_by_hand): Move variables "start_sp",
6383 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6384 code to ON_STACK switch branch.
6386 2003-04-23 Andrew Cagney <cagney@redhat.com>
6388 * infcall.c (call_function_by_hand): Make declaration of "i",
6389 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6392 2003-04-23 Andrew Cagney <cagney@redhat.com>
6394 * infcall.c (call_function_by_hand): Delete variable
6395 "n_method_args". Localize "param_type"'s declaration to the loop
6396 that it is used. Reinstate code assigning to said variable -
6397 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6398 Rationalize code using "param_type".
6400 2003-04-22 Andrew Cagney <cagney@redhat.com>
6402 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6403 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6404 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6405 to DEPRECATED_PUSH_RETURN_ADDRESS.
6407 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6409 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6410 on the DWARF2 register number prior to fetching a register.
6412 2003-04-22 J. Brobecker <brobecker@gnat.com>
6414 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6415 Update all the tests using SOFT_FLOAT considering the fact that
6416 this macro was always set to 0.
6417 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6418 considering the fact that this macro was always set to 0.
6419 * hppa-tdep.h (hppa_store_return_value): Likewise.
6420 (hppa_extract_return_value): Likewise.
6422 2003-04-22 J. Brobecker <brobecker@gnat.com>
6424 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6425 the hppa-pro target only.
6427 2003-04-21 J. Brobecker <brobecker@gnat.com>
6429 Ongoing multi-arch conversion effort for HP/UX:
6430 * config/pa/tm-hppa.h: Move all macro that are no longer
6431 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6432 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6434 2003-04-21 J. Brobecker <brobecker@gnat.com>
6436 * config/pa/tm-hppa.h: Obsolete a section that was only used
6439 2003-04-21 J. Brobecker <brobecker@gnat.com>
6441 Ongoing multi-arch conversion for HP/UX.
6442 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6443 if already defined (allows hppa64 to stay non-multiarched for now).
6444 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6446 2003-04-21 Andrew Cagney <cagney@redhat.com>
6448 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6450 2003-04-21 Andrew Cagney <cagney@redhat.com>
6452 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6453 "i386_num_mmx_regs".
6455 2003-04-21 Andrew Cagney <cagney@redhat.com>
6457 * infcall.c: New file.
6458 * infcall.h: New file.
6459 * valarith.c: Include "infcall.h".
6460 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6461 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6462 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6463 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6464 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6465 (SFILES): Add "infcall.c"
6466 (COMMON_OBS): Add "infcall.o".
6467 (infcall.o): Specify dependencies.
6468 * value.h (call_function_by_hand): Delete declaration.
6469 * inferior.h (run_stack_dummy): Delete declaration.
6470 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6471 (run_stack_dummy): Move to "infcall.c", merged into
6472 call_function_by_hand.
6473 * valops.c (call_function_by_hand): Moved to "infcall.c".
6474 (find_function_addr, value_arg_coerce): Ditto.
6475 (unwindonsignal_p, coerce_float_to_double): Ditto.
6476 (_initialize_valops): Move "set/show coerce-float-to-double", and
6477 "set/show unwindonsignal" commands to "infcall.c".
6478 * v850-tdep.c, target.h: Update comments.
6479 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6480 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6481 (sh64_init_extra_frame_info): Update comments.
6482 * mn10300-tdep.c: Update comments.
6483 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6484 * config/sparc/tm-sparc.h: Update comments.
6485 * breakpoint.h: Update comments.
6486 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6487 * arm-tdep.c: Update comment.
6489 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6491 * i386-tdep.c (i386_num_register_names): New variable.
6492 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6493 (MM0_REGNUM): Remove redundant parentheses in define.
6494 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6495 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6496 i386_mxcsr_regnum_p): Remove redundant parentheses.
6497 (i386_register_name): Use i386_num_register_names.
6499 * i386-tdep.c (i386_extract_return_value,
6500 i386_store_return_value): Correct check for availability of
6501 floating-point registers.
6503 * i386-tdep.c (i386_frame_num_args): Remove function.
6504 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6506 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6507 mmx_regnum_to_fp_regnum. Adjust all callers.
6509 * i386-tdep.c (i386_get_longjmp_target): Use
6510 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6511 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6514 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6516 * core-regset.c: Update comments to reflect reality. Re-order
6518 (fetch_core_registers): Use switch instead of if. Remove
6519 redundant prototype.
6521 2003-04-18 Jim Blandy <jimb@redhat.com>
6523 * s390-tdep.c (s390_frame_align): New function.
6524 (s390_gdbarch_init): Register it with the gdbarch object.
6526 2003-04-17 Richard Henderson <rth@redhat.com>
6528 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6530 2003-04-17 Michael Snyder <msnyder@redhat.com>
6531 Karen Bennet <bennet@redhat.com>
6533 Committed by Elena Zannoni <ezannoni@redhat.com>
6534 * gdb_gcore.sh: New script to create a core dump of a process.
6536 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6538 * values.c (value_being_returned): Don't fetch the return
6539 value if the return type is void.
6541 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6543 * thread-db.c: Reindented.
6545 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6547 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6548 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6575 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6577 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6578 the size of ``long double'' to 16, instead of 8.
6580 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6582 * i386-linux-nat.c: Add some whitespace to make things more
6584 (fetch_register, store_register, fetch_inferior_registers,
6585 store_inferior_registers): Get rid of assignment in if-statement.
6586 (store_register): Fix typo in error message.
6588 2003-04-16 Andrew Cagney <cagney@redhat.com>
6590 * utils.c (xmmalloc): Always allocate something, matches
6591 libiberty/xmalloc's semantics.
6592 (xmrealloc, xmcalloc): Ditto.
6594 2003-04-16 Andrew Cagney <cagney@redhat.com>
6596 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6598 (get_frame_type): Initialize unwind and type when needed.
6599 (get_frame_id, frame_register_unwind): Ditto.
6601 2003-04-16 Andrew Cagney <cagney@redhat.com>
6603 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6605 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6606 * sparcl-stub.c: Obsolete file.
6607 * config/sparc/tm-sparclet.h: Obsolete file.
6608 * sparclet-stub.c: Obsolete file.
6609 * sparclet-rom.c: Obsolete file.
6610 * sparcl-tdep.c: Obsolete file.
6611 * config/sparc/tm-sparclite.h: Obsolete file.
6612 * config/sparc/sparclite.mt: Obsolete file.
6613 * config/sparc/sparclet.mt: Obsolete file.
6614 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6615 sparc86x-*-* obsolete.
6617 2003-04-15 David Carlton <carlton@math.stanford.edu>
6619 * Makefile.in (SFILES): Add cp-namespace.c.
6620 (COMMON_OBS): Add cp-namespace.o.
6621 (block.o): Depend on gdb_obstack_h and cp_support_h.
6622 (buildsym.o): Depend on cp_support_h.
6623 (cp-namespace.o): New.
6624 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6625 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6626 (dwarf2read.o): Depend on cp_support_h.
6627 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6628 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6629 processing_current_namespace.
6630 (read_namespace): Update processing_current_namespace; check for
6631 anonymous namespaces.
6632 (dwarf2_name): New function.
6633 (dwarf2_extension): Ditto.
6634 * cp-support.h: Update copyright, contributors.
6635 Add inclusion guards.
6636 Add opaque declaration for structs obstack, block, symbol.
6637 (struct using_direct): New struct.
6638 Add declarations for cp_find_first_component,
6639 cp_entire_prefix_len, processing_has_namespace_info,
6640 processing_current_namespace, cp_is_anonymous,
6641 cp_add_using_directive, cp_initialize_namespace,
6642 cp_finalize_namespace, cp_set_block_scope,
6643 cp_scan_for_anonymous_namespaces.
6644 * cp-namespace.c: New file.
6645 * cp-support.c: Update copyright.
6646 Include ctype.h, gdb_assert.h, gdbcmd.h.
6647 New variable maint_cplus_cmd_list.
6648 (cp_find_first_component): New function.
6649 (cp_entire_prefix_len, maint_cplus_command)
6650 (first_component_command, _initialize_cp_support): Ditto.
6651 * buildsym.c: Include cp-support.h.
6652 New variable using_list.
6653 (add_symbol_to_list): Check for anonymous namespaces.
6654 (finish_block): Set block's scope.
6655 (start_symtab): Initialize C++ namespace support.
6656 (end_symtab): Finalize C++ namespace support.
6657 * block.h: Add opaque declarations for structs
6658 block_namespace_info, using_direct, and obstack.
6659 Add declarations for block_set_scope and block_set_using.
6660 (struct block): Add 'language_specific' member.
6661 (BLOCK_NAMESPACE): New macro.
6662 * block.c: Include gdb_obstack.h and cp-support.h.
6663 (struct block_namespace_info): New struct.
6664 (block_set_scope): New function.
6665 (block_set_using, block_initialize_namespace): Ditto.
6667 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6669 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6670 (locate_base): Return early if there aren't any link map offsets.
6671 (svr4_solib_create_inferior_hook): Warn if shared library support
6674 2003-04-14 David Carlton <carlton@math.stanford.edu>
6676 * symtab.c (symbol_set_names): Add prefix when storing Java names
6677 in hash table. Fix for PR java/1039.
6679 2003-04-14 David Carlton <carlton@math.stanford.edu>
6681 * symtab.c (symbol_set_names): Rename 'name' arg to
6682 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6683 * symtab.h: Change 'name' argument in declaration of
6684 symbol_set_names to 'linkage_name'.
6685 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6687 2003-04-14 Andrew Cagney <cagney@redhat.com>
6689 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6690 return the fully sign-extended register value.
6691 (get_frame_pointer): Ditto.
6692 (mips_pop_frame): Initialize "proc_desc" after checking for a
6695 2003-04-14 Andrew Cagney <cagney@redhat.com>
6697 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6698 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6699 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6700 (mips_push_register): Delete function.
6701 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6704 2003-04-14 Jim Blandy <jimb@redhat.com>
6706 * symmisc.c: #include "gdb_regex.h".
6707 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6709 * maint.c (maintenance_list_command): New function.
6710 (_initialize_maint_cmds): Register the above as commands.
6711 * symtab.h (maintenance_list_symtabs,
6712 maintenance_list_psymtabs): New declarations.
6713 * cli/cli-cmds.c (maintenancelistlist): New variable.
6714 (init_cmd_lists): Initialize it.
6715 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6716 * gdbcmd.h (maintenancelistlist): New declaration.
6717 * Makefile.in (symmisc.o): Update dependencies.
6719 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6721 * s390-nat.c: Include asm/types.h for addr_t.
6723 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6725 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6726 actually incoming type.
6728 2003-04-13 Andrew Cagney <cagney@redhat.com>
6730 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6731 get_next_frame and get_frame_saved_regs.
6733 2003-04-13 Andrew Cagney <cagney@redhat.com>
6735 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6736 of gdbarch_num_regs.
6738 2003-04-13 Andrew Cagney <cagney@redhat.com>
6740 * frame.h: Mention what replaced what in "struct frame_info".
6741 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6742 deprecated_update_frame_base_hack and
6743 deprecated_update_frame_pc_hack.
6744 * hppa-tdep.c: Ditto.
6746 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6748 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6749 to read_reg and update its comment. Remove regnum member.
6750 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6751 Don't call read_reg when setting in_reg. Call read_reg to get
6752 the frame base if it's in a register. Return the register number
6753 on the stack instead of in the context. Remove extra arguments
6755 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6756 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6757 the register number on the expression stack.
6758 (needs_frame_read_reg): Remove extra arguments.
6760 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6762 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6764 (execute_stack_op): All callers updated.
6765 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6766 * dwarf2loc.c (find_location_expression): New function.
6767 (dwarf_expr_frame_base): Call it.
6768 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6769 (dwarf2_tracepoint_var_ref): New function, broken out from
6770 locexpr_tracepoint_var_ref.
6771 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6773 (loclist_read_variable, loclist_read_needs_frame): New functions.
6774 (loclist_describe_location, loclist_tracepoint_var_ref): New
6776 (dwarf2_loclist_funcs): New struct location_funcs.
6777 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6778 (struct dwarf2_locexpr_baton): Add comments.
6779 (dwarf2_loclist_funcs): New extern.
6780 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6781 base_address and base_known.
6782 (dwarf_loc_buffer): New variable.
6783 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6784 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6785 (dwarf2_has_info): Initialize dwarf_loc_offset.
6786 (dwarf2_build_psymtabs): Read in .debug_loc.
6787 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6789 (psymtab_to_symtab_1): Likewise. Move base address calculation
6791 (dwarf2_get_pc_bounds): ... here. Use the base address from
6793 (dwarf2_symbol_mark_computed): Handle location lists.
6795 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6797 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6798 if the linkage name demangled successfully.
6800 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6802 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6803 disassmbly_flavour): Removed.
6805 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6807 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6809 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6811 2003-04-12 Andrew Cagney <cagney@redhat.com>
6813 * frame.h (struct frame_info): Move definition from here ...
6814 * frame.c (struct frame_info): ... to here.
6816 2003-04-12 Andrew Cagney <cagney@redhat.com>
6818 * gdbthread.h (save_infrun_state): Delete parameter
6820 (struct thread_info): Delete field "prev_func_start".
6821 (load_infrun_state): Ditto.
6822 * thread.c (load_infrun_state, save_infrun_state): Update.
6823 * infrun.c (prev_func_start): Delete variable.
6824 (context_switch, init_wait_for_inferior): Update.
6825 (stop_stepping, keep_going): Update.
6827 2003-04-12 Andrew Cagney <cagney@redhat.com>
6829 * gdbarch.sh: Add missing opaque declarations.
6830 * gdbarch.h: Regnerate.
6831 * symtab.h: Add missing opaque declarations.
6832 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6833 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6834 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6835 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6836 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6837 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6838 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6839 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6840 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6841 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6842 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6843 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6844 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6846 2003-04-11 Andrew Cagney <cagney@redhat.com>
6848 * frame.c (get_frame_id): Return this frame's "id".
6849 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6851 (legacy_saved_regs_this_id): Replace function body with
6853 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6854 FRAME_OBSTACK_ZALLOC.
6855 (create_new_frame): Mark the frame ID as valid.
6857 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6859 * Makefile.in (libbfd_h): Added missing setting.
6860 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6861 according to the selected ABI.
6863 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6865 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6867 2003-04-11 Andrew Cagney <cagney@redhat.com>
6869 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6870 SAVED_PC_AFTER_CALL.
6871 * gdbarch.h, gdbarch.c: Regenerate.
6872 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6873 * x86-64-tdep.c (x86_64_init_abi): Update.
6874 * vax-tdep.c (vax_gdbarch_init): Update.
6875 * v850-tdep.c (v850_gdbarch_init): Update.
6876 * sparc-tdep.c (sparc_gdbarch_init): Update.
6877 * sh-tdep.c (sh_gdbarch_init): Update.
6878 * s390-tdep.c (s390_gdbarch_init): Update.
6879 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6880 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6881 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6882 * mips-tdep.c (mips_gdbarch_init): Update.
6883 * mcore-tdep.c (mcore_gdbarch_init): Update.
6884 * m68k-tdep.c (m68k_gdbarch_init): Update.
6885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6886 * ia64-tdep.c (ia64_gdbarch_init): Update.
6887 (ia64_saved_pc_after_call): Update declaration.
6888 * i386ly-tdep.c (i386lynx_init_abi): Update.
6889 * i386-tdep.c (i386_gdbarch_init): Update.
6890 * hppa-tdep.c (hppa_gdbarch_init): Update.
6891 * h8300-tdep.c (h8300_gdbarch_init): Update.
6892 * frv-tdep.c (frv_gdbarch_init): Update.
6893 * cris-tdep.c (cris_gdbarch_init): Update.
6894 * avr-tdep.c (avr_gdbarch_init): Update.
6895 * arm-tdep.c (arm_gdbarch_init): Update.
6896 * alpha-tdep.c (alpha_gdbarch_init): Update.
6897 * ns32knbsd-nat.c (frame_num_args): Update.
6898 * ns32k-tdep.c (umax_frame_num_args): Update.
6899 * mips-tdep.c (mips_init_frame_pc_first): Update.
6900 * infrun.c (step_over_function): Update.
6901 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6902 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6903 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6904 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6905 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6906 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6907 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6908 * arch-utils.c (init_frame_pc_default): Update.
6909 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6910 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6913 2003-04-11 Andrew Cagney <cagney@redhat.com>
6915 * i387-tdep.c: Update copyright.
6916 (i387_to_double): Delete function.
6917 (double_to_i387): Delete function.
6919 2003-04-10 Andrew Cagney <cagney@redhat.com>
6921 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6922 frame's function's address. Simplify.
6923 (d10v_frame_unwind_cache): Check that the frame's function is
6926 2003-04-10 Jim Blandy <jimb@redhat.com>
6928 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6929 call to set_gdbarch_deprecated_push_arguments.
6931 2003-04-10 Andrew Cagney <cagney@redhat.com>
6933 * frame.c (fprint_frame_id): New function.
6934 (fprint_frame_type, fprint_frame): New function.
6935 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6936 (create_sentinel_frame, get_frame_id): Ditto.
6937 (frame_id_p, frame_id_eq): Ditto.
6938 (frame_id_inner, create_new_frame): Ditto.
6939 (legacy_get_prev_frame, get_prev_frame): Ditto.
6940 (deprecated_update_frame_pc_hack): Ditto.
6941 (frame_register_unwind): Ditto.
6942 (deprecated_update_frame_base_hack): Ditto.
6944 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6946 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6947 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6948 frame_chain function.
6949 * Makefile.in: Add dependencies due to above change.
6951 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6953 * blockframe.c (legacy_frame_chain_valid): Move call to
6954 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6957 2003-04-09 Andrew Cagney <cagney@redhat.com>
6959 * frame.h (struct frame_id): Replace "pc" and "base" with
6960 "stack_addr" and "code_addr". Update comments.
6961 (frame_id_build): Update parameter names and comment.
6962 (struct frame_info): Replace "id_p" and "id" with "this_id".
6963 * dummy-frame.c (dummy_frame_this_id): Update.
6964 * breakpoint.c (print_one_breakpoint): Update.
6965 * frame.c (get_frame_id): Update.
6966 (get_frame_base, frame_id_build): Update.
6967 (create_sentinel_frame, legacy_get_prev_frame): Update.
6968 (deprecated_update_frame_base_hack): Update.
6969 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6970 (frame_id_inner): Ditto.
6972 2003-04-09 Andrew Cagney <cagney@redhat.com>
6974 * defs.h (gdb_print_host_address): Make "addr" parameter a
6976 * utils.c (gdb_print_host_address): Update.
6978 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6980 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6981 register number for R0 is 0.
6983 2003-04-09 J. Brobecker <brobecker@gnat.com>
6985 * frame.h (struct gdbarch): Add opaque structure definition
6986 to avoid a compilation warning on LynxOS 4.0.
6988 2003-04-09 Andrew Cagney <cagney@redhat.com>
6990 * frame.h (struct frame_info): Delete field "pc". Replace
6991 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6993 * frame.c (frame_pc_unwind): Update.
6994 (create_sentinel_frame): Do not set "pc".
6995 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6996 (get_frame_pc): Call frame_pc_unwind.
6997 (deprecated_update_frame_pc_hack): Update.
6998 (create_new_frame): Use "pc" not "->pc".
7000 2003-04-09 Andrew Cagney <cagney@redhat.com>
7002 * frame.c (get_frame_id): Eliminate code updating "frame".
7003 (legacy_get_prev_frame): Ditto.
7004 (get_frame_base): Return id.base directly.
7005 (deprecated_update_frame_base_hack): Update "id.base".
7006 * frame.h (struct frame_info): Delete field "frame".
7008 2003-04-09 Andrew Cagney <cagney@redhat.com>
7010 * NEWS: Mention that the "Sequent family" is obsolete.
7011 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7012 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7013 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7014 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7015 * config/i386/tm-ptx4.h: Obsolete file.
7016 * config/i386/tm-ptx.h: Obsolete file.
7017 * symm-tdep.c: Obsolete file.
7018 * config/i386/symmetry.mt: Obsolete file.
7019 * config/i386/tm-symmetry.h: Obsolete file.
7020 * symm-nat.c: Obsolete file.
7021 * config/i386/nm-symmetry.h: Obsolete file.
7022 * config/i386/xm-symmetry.h: Obsolete file.
7023 * config/i386/symmetry.mh: Obsolete file.
7024 * config/i386/nm-ptx4.h: Obsolete file.
7025 * config/i386/ptx4.mh: Obsolete file.
7026 * config/i386/ptx.mt: Obsolete file.
7027 * config/i386/ptx.mh: Obsolete file.
7028 * config/i386/xm-ptx4.h: Obsolete file.
7029 * config/i386/xm-ptx.h: Obsolete file.
7031 2003-04-09 Andrew Cagney <cagney@redhat.com>
7033 Obsolete mips*-*-mach3*.
7034 * NEWS: Mention that mips*-*-mach3* is obsolete.
7035 * m3-nat.c: Obsolete file.
7036 * config/nm-m3.h: Obsolete file.
7037 * config/mips/tm-mipsm3.h: Obsolete file.
7038 * config/mips/mipsm3.mt: Obsolete file.
7039 * config/mips/mipsm3.mh: Obsolete file.
7040 * config/mips/xm-mipsm3.h: Obsolete file.
7041 * mipsm3-nat.c: Obsolete file.
7042 * configure.host: Obsolete mips-dec-mach3*.
7043 * configure.tgt: Obsolete mips*-*-mach3*.
7045 2003-04-09 Andrew Cagney <cagney@redhat.com>
7047 * doublest.h: Update copyright.
7048 (deprecated_store_floating, deprecated_extract_floating): Rename
7049 store_floating and extract_floating. Update comments.
7050 * doublest.c: Update copyright.
7051 (extract_floating_by_length): Replace extract_floating.
7052 (store_floating_by_length): Replace store_floating.
7053 (deprecated_extract_floating): New function.
7054 (deprecated_store_floating): New function.
7055 (extract_typed_floating): Call extract_floating_by_length.
7056 (store_typed_floating): Call store_floating_by_length.
7057 * x86-64-tdep.c (x86_64_store_return_value): Update.
7058 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7059 (sh64_extract_return_value): Update.
7060 (sh_sh4_register_convert_to_virtual): Update.
7061 (sh_sh64_register_convert_to_virtual): Update.
7062 (sh_sh4_register_convert_to_raw): Update.
7063 (sh_sh64_register_convert_to_raw): Update.
7064 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7065 (rs6000_register_convert_to_raw): Update.
7066 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7067 (ia64_register_convert_to_raw): Update.
7068 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7069 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7070 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7071 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7072 (alpha_register_convert_to_raw): Update.
7074 2003-04-08 Andrew Cagney <cagney@redhat.com>
7076 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7077 * gdbarch.h, gdbarch.c: Re-generate.
7078 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7079 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7080 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7081 conditionally, use frame_pc_unwind as an alternative. Add
7083 * arch-utils.c (init_frame_pc_default): Only call
7084 SAVED_PC_AFTER_CALL when available.
7086 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7088 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7089 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7090 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7091 (start_remote): Ditto.
7092 (handle_inferior_event): Ditto.
7093 (save_inferior_status): Ditto.
7094 (restore_inferior_status): Ditto.
7095 * infcmd.c (attach_command): Ditto.
7096 * fork-child.c (startup_inferior): Ditto.
7097 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7098 * alpha-tdep.c (heuristic_proc_start): Ditto.
7099 * mips-tdep.c (heuristic_proc_start): Ditto.
7100 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7101 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7102 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7103 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7104 * remote-vx.c (vx_create_inferior): Ditto.
7106 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7108 * infrun.c (stop_soon_quietly): Make it an enum, to better
7109 override the default behavior of handle_inferior_event.
7110 (clear_proceed_status): Update uses of stop_soon_quietly to
7111 reflect that it is now an enum.
7112 (start_remote): Ditto.
7113 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7114 is set to handle the new GNU/Linux kernel behavior for
7115 attach/sigstop. Update uses of stop_soon_quietly.
7116 * inferior.h (enum stop_kind): New enum.
7117 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7118 Reset normal handle_inferior_event behavior, afterwards.
7119 * fork-child.c (startup_inferior): Update.
7120 * alpha-tdep.c (heuristic_proc_start): Update.
7121 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7122 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7123 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7124 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7125 * remote-vx.c (vx_create_inferior): Update.
7126 * mips-tdep.c (heuristic_proc_start): Update.
7128 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7130 * disasm.c (dump_insns): Move variables inside loop, or they will
7131 be freed more than once, causing wild memory corruptions.
7132 (gdb_disassembly): Look for the substring "-thread",
7133 instead of "-threads" in the target name, to make sure to find
7134 the 'multi-thread' target. Also, make sure we do the right thing
7135 with the "core" target.
7137 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7139 * mips-tdep.c (mips_print_fp_register): New function, created from
7140 do_fp_register_row(). Registers are now (also) printed as hex.
7141 Only one register is printed per row.
7142 (mips_print_register, do_fp_register_row): Print floating point
7143 registers with mips_print_fp_register().
7145 2003-04-06 Andrew Cagney <cagney@redhat.com>
7147 * valprint.h (inspect_it): Add extern declaration.
7148 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7149 (selectors_info, classes_info): Ditto.
7150 (find_objc_msgcall): Fix indentation.
7151 (objc_printstr): Delete extern declarations.
7153 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7155 2003-04-06 Andrew Cagney <cagney@redhat.com>
7157 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7159 * frame.c (legacy_saved_regs_this_id): Update.
7160 (legacy_get_prev_frame): Update.
7161 * xstormy16-tdep.c: Update comment.
7162 * sparc-tdep.c (sparc_frame_chain): Update comment.
7163 * blockframe.c (legacy_frame_chain_valid): Update.
7165 2003-04-06 Andrew Cagney <cagney@redhat.com>
7167 * valprint.c (val_print_type_code_int): Delete #ifdef
7168 PRINT_TYPELESS_INTEGER code.
7170 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7171 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7172 multi-arch definition.
7173 * gdbarch.h: Re-generate.
7175 2003-04-05 Andrew Cagney <cagney@redhat.com>
7177 Eliminate FRAME_FIND_SAVED_REGS.
7178 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7179 Change FSR parameter to a pointer.
7180 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7181 Assume FSR parameter is a pointer.
7182 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7184 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7185 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7186 saved_regs a pointer.
7187 (hppa_frame_saved_pc): Ditto.
7188 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7189 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7191 (restore_pc_queue): Make fsr a pointer.
7192 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7193 (hppa_frame_chain): Make saved_regs a pointer, call
7194 hppa_frame_init_saved_regs.
7195 * sparc-tdep.c: Include "gdb_assert.h".
7196 (sparc_frame_find_saved_regs): Replace internal_error with
7198 * remote-vxsparc.c (vx_read_register): Delete reference to
7199 FRAME_FIND_SAVED_REGS.
7200 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7201 * gdbarch.h: Regenerate.
7202 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7203 (deprecated_get_frame_saved_regs): Delete declaration.
7204 (struct frame_saved_regs): Delete definition.
7205 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7206 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7207 (hppa_frame_find_saved_regs): Delete declaration.
7208 (FRAME_FIND_SAVED_REGS): Delete macro.
7209 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7210 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7211 FRAME_FIND_SAVED_REGS in comment.
7213 2003-04-05 Andrew Cagney <cagney@redhat.com>
7215 * frame.c (frame_func_unwind, get_frame_func): New functions.
7216 * frame.h (get_frame_func, frame_func_unwind): Declare.
7217 (struct frame_info): Add field "prev_func" for caching the
7218 previous frame's function address.
7219 * arm-tdep.c (arm_frameless_function_invocation): Combine
7220 get_pc_function_start and get_frame_pc into get_frame_func.
7221 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7222 (sh64_nofp_frame_init_saved_regs): Ditto.
7223 * s390-tdep.c (s390_function_start): Ditto.
7224 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7225 (rs6000_frameless_function_invocation): Ditto.
7226 (rs6000_frame_saved_pc): Ditto.
7227 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7228 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7229 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7230 (i386_frame_init_saved_regs): Ditto.
7231 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7232 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7233 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7234 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7235 * blockframe.c (frameless_look_for_prologue): Ditto.
7237 2003-04-05 Andrew Cagney <cagney@redhat.com>
7239 * frame.c (legacy_get_prev_frame): Link prev to next at the
7240 function start. Update comments.
7242 2003-04-05 Andrew Cagney <cagney@redhat.com>
7244 * frame.c (get_frame_id): Update comment.
7245 (legacy_get_prev_frame): Update comment.
7246 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7247 * gdbarch.h: Regenerate.
7248 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7249 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7251 2003-04-05 Andrew Cagney <cagney@redhat.com>
7253 * stack.c (print_frame_info): Use get_frame_pc.
7255 2003-04-04 Andrew Cagney <cagney@redhat.com>
7257 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7258 the frame's type from the unwinder.
7259 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7260 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7261 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7262 (get_frame_base_address): Use get_frame_type.
7263 (get_frame_locals_address, get_frame_args_address): Ditto.
7264 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7265 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7266 (struct frame_info): Add comment explaining why the frame contains
7268 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7269 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7270 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7272 * frame-unwind.h: Include "frame.h".
7273 (struct frame_unwind): Add "type" field.
7274 * Makefile.in (frame_unwind_h): Add $(frame_h).
7276 2003-04-04 Andrew Cagney <cagney@redhat.com>
7278 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7279 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7280 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7282 (d10v_unwind_dummy_id): Use frame_id_build.
7283 * frame.c (find_frame_sal): Use get_frame_pc.
7284 (create_new_frame): Use deprecated_update_frame_pc_hack and
7285 deprecated_update_frame_base_hack.
7286 (create_sentinel_frame): Add comment about ->pc going away.
7287 (get_prev_frame): Add comment about ->pc going away.
7288 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7289 frame_id_build, deprecated_update_frame_pc_hack and
7290 deprecated_update_frame_base_hack.
7291 (select_frame): Use get_frame_pc.
7292 (legacy_saved_regs_this_id): Use frame_id_build.
7294 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7296 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7297 signed integer case.
7298 (classify_argument): Handle enumerations and references.
7300 2003-04-04 Andrew Cagney <cagney@redhat.com>
7302 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7305 2003-04-01 Adam Fedor <fedor@gnu.org>
7307 * gdb/objc-lang.c (selectors_info): Replace calls to
7308 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7309 SYMBOL_NATURAL_NAME.
7310 (classes_info, find_methods): Likewise.
7312 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7314 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7315 ``mach'' to the value determined by bfd_default_set_arch_mach().
7317 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7319 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7320 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7321 (mi-cmd-file.o): Update dependencies.
7323 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7325 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7326 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7328 2003-04-01 Adam Fedor <fedor@gnu.org>
7330 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7331 * language.h (struct language_defn): Add la_demangle.
7332 (language_demangle): Declare.
7333 * language.c (language_demangle): New function.
7334 (unk_lang_demangle): Likewise.
7335 (unknown_language_defn, auto_language_defn, local_language_defn):
7336 Add ukn_lang_demangle.
7337 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7338 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7339 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7340 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7341 * jv-lang.c (java_demangle): New function
7342 (java_language_defn): Use it for la_demangle element.
7343 * objc-lang.c (objc_demangle): Add options argument
7344 (objc_language_defn): Use objc_demangle for la_demangle element.
7345 * maint.c (maintenance_demangle): Replace switch with
7346 call to language_demangle.
7347 * utils.c (fprintf_symbol_filtered): Likewise.
7349 2003-04-01 Andrew Cagney <cagney@redhat.com>
7351 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7352 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7353 PRINT_TYPELESS_INTEGER.
7354 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7355 PUSH_RETURN_ADDRESS.
7357 2003-04-01 Andrew Cagney <cagney@redhat.com>
7359 * Makefile.in (d10v-tdep.o): Update dependencies.
7360 * d10v-tdep.c: Include "frame-base.h".
7361 (d10v_frame_unwind): Make constant.
7362 (d10v_frame_base_address): New function.
7363 (d10v_frame_base): New variable.
7364 (d10v_gdbarch_init): Set frame_base default.
7365 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7367 (d10v_frame_unwind_cache): Set and use "prev_sp".
7368 (d10v_frame_this_id): Use the previous frame's inner most stack
7369 address and this frame's func address for the frame ID. Use
7370 frame_id_build. Don't analyze beyond the current instruction.
7372 2003-04-01 Andrew Cagney <cagney@redhat.com>
7374 * frame.h (get_frame_locals_address, get_frame_args_address):
7375 Refer to the base address, instead of the address of the first
7378 2003-04-01 Andrew Cagney <cagney@redhat.com>
7380 Add frame debug info addresses:
7381 * frame-base.c: New file.
7382 * frame-base.h: New file.
7383 * frame.h (struct frame_base): Add opaque declaration.
7384 (get_frame_base): Update comment.
7385 (get_frame_base_address): Declare.
7386 (get_frame_locals_address): Declare.
7387 (get_frame_args_address): Declare.
7388 (struct frame_info): Add "base" and "base_cache". Update
7389 comments on the unwinder.
7390 * frame.c: Include "frame-base.h".
7391 (get_frame_locals_address): New function.
7392 (get_frame_base_address): New function.
7393 (get_frame_args_address): New function.
7394 * findvar.c (read_var_value): Use get_frame_locals_address and
7395 get_frame_args_address.
7396 * stack.c (frame_info): Use get_frame_locals_address and
7397 get_frame_args_address.
7398 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7399 moved to "frame-base.c".
7400 * printcmd.c (print_frame_nameless_args): Ditto.
7401 * symtab.h (address_class): Update comments.
7402 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7403 get_frame_base_address.
7404 * dwarf2expr.c (execute_stack_op): Ditto.
7405 * Makefile.in (frame_base_h): Define.
7406 (frame.o): Update dependencies.
7407 (frame-base.o): Add dependencies.
7408 (SFILES): Add frame-base.c.
7409 (COMMON_OBS): Add frame-base.o.
7411 2003-04-01 Andrew Cagney <cagney@redhat.com>
7413 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7414 CALL_DUMMY_LENGTH): Ditto.
7415 * gdbarch.c: Re-generate.
7416 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7417 (CALL_DUMMY_LENGTH): Delete macro.
7418 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7419 * arm-tdep.c (arm_gdbarch_init): Ditto.
7420 * avr-tdep.c (avr_gdbarch_init): Ditto.
7421 * cris-tdep.c (cris_gdbarch_init): Ditto.
7422 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7423 * frv-tdep.c (frv_gdbarch_init): Ditto.
7424 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7425 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7426 * i386-tdep.c (i386_gdbarch_init): Ditto.
7427 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7429 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7430 * mips-tdep.c (mips_gdbarch_init): Ditto.
7431 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7432 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7433 * s390-tdep.c (s390_gdbarch_init): Ditto.
7434 * sh-tdep.c (sh_gdbarch_init): Ditto.
7435 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7436 * v850-tdep.c (v850_gdbarch_init): Ditto.
7437 * vax-tdep.c (vax_gdbarch_init): Ditto.
7438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7440 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7442 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7444 2003-04-01 Andrew Cagney <cagney@redhat.com>
7446 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7447 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7448 * gdbarch.h, gdbarch.c: Re-generate.
7449 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7450 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7451 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7452 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7453 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7454 * infcmd.c (run_stack_dummy): Simplify assuming
7455 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7456 * infrun.c (handle_inferior_event): Ditto.
7457 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7458 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7459 * arm-tdep.c (arm_gdbarch_init): Ditto.
7460 * avr-tdep.c (avr_gdbarch_init): Ditto.
7461 * cris-tdep.c (cris_gdbarch_init): Ditto.
7462 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7463 * frv-tdep.c (frv_gdbarch_init): Ditto.
7464 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7465 * i386-tdep.c (i386_gdbarch_init): Ditto.
7466 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7468 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7469 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7470 * mips-tdep.c (mips_gdbarch_init): Ditto.
7471 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7472 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7473 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7474 * s390-tdep.c (s390_gdbarch_init): Ditto.
7475 * sh-tdep.c (sh_gdbarch_init): Ditto.
7476 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7477 * v850-tdep.c (v850_gdbarch_init): Ditto.
7478 * vax-tdep.c (vax_gdbarch_init): Ditto.
7479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7481 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7483 * symfile.c (symfile_relocate_debug_section): Update call to
7484 bfd_simple_get_relocated_section_contents.
7486 2003-03-31 Andrew Cagney <cagney@redhat.com>
7488 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7489 * gdbarch.h, gdbarch.c: Regenerate.
7490 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7491 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7493 * frame.h (generic_fix_call_dummy): Delete declaration.
7494 * dummy-frame.h: Update comment.
7495 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7496 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7498 * sh-tdep.c (sh_gdbarch_init): Ditto.
7499 * s390-tdep.c (s390_gdbarch_init): Ditto.
7500 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7501 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7503 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7504 * i386-tdep.c (i386_gdbarch_init): Ditto.
7505 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7506 * frv-tdep.c (frv_gdbarch_init): Ditto.
7507 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7508 * cris-tdep.c (cris_gdbarch_init): Ditto.
7509 * avr-tdep.c (avr_gdbarch_init): Ditto.
7510 * arm-tdep.c (arm_gdbarch_init): Ditto.
7512 2003-03-31 J. Brobecker <brobecker@gnat.com>
7514 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7515 (INIT_FRAME_AP): Likewise.
7516 (EXTRA_FRAME_INFO): Likewise.
7518 2003-03-31 Andrew Cagney <cagney@redhat.com>
7520 * gdbarch.sh: Include "symfile.h".
7521 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7522 * gdbarch.h, gdbarch.c: Re-generate.
7523 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7524 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7525 call_dummy_address, the default is at entry_point_address.
7526 * v850-tdep.c (v850_gdbarch_init): Ditto.
7527 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7528 * sh-tdep.c (sh_gdbarch_init): Ditto.
7529 * s390-tdep.c (s390_gdbarch_init): Ditto.
7530 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7531 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7532 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7533 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7534 * i386-tdep.c (i386_gdbarch_init): Ditto.
7535 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7536 * frv-tdep.c (frv_gdbarch_init): Ditto.
7537 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7538 * cris-tdep.c (cris_gdbarch_init): Ditto.
7539 * arm-tdep.c (arm_gdbarch_init): Ditto.
7541 2003-03-31 Andrew Cagney <cagney@redhat.com>
7543 * gdbarch.sh (CALL_DUMMY_P): Delete.
7544 * gdbarch.h, gdbarch.c: Re-generate.
7545 * inferior.h (CALL_DUMMY_P): Delete macro.
7546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7547 * vax-tdep.c (vax_gdbarch_init): Update.
7548 * v850-tdep.c (v850_gdbarch_init): Update.
7549 * sparc-tdep.c (sparc_gdbarch_init): Update.
7550 * sh-tdep.c (sh_gdbarch_init): Update.
7551 * s390-tdep.c (s390_gdbarch_init): Update.
7552 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7553 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7554 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7555 * mips-tdep.c (mips_gdbarch_init): Update.
7556 * mcore-tdep.c (mcore_gdbarch_init): Update.
7557 * m68k-tdep.c (m68k_gdbarch_init): Update.
7558 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7559 * ia64-tdep.c (ia64_gdbarch_init): Update.
7560 * i386-tdep.c (i386_gdbarch_init): Update.
7561 * h8300-tdep.c (h8300_gdbarch_init): Update.
7562 * frv-tdep.c (frv_gdbarch_init): Update.
7563 * d10v-tdep.c (d10v_gdbarch_init): Update.
7564 * cris-tdep.c (cris_gdbarch_init): Update.
7565 * breakpoint.c (deprecated_frame_in_dummy): Update.
7566 * avr-tdep.c (avr_gdbarch_init): Update.
7567 * alpha-tdep.c (alpha_gdbarch_init): Update.
7568 * arm-tdep.c (arm_gdbarch_init): Update.
7569 * dummy-frame.c (dummy_frame_this_id): Update comments.
7570 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7571 * frame.c (legacy_get_prev_frame): Ditto.
7572 * valops.c (call_function_by_hand): Delete function.
7573 (hand_function_call): Rename to call_function_by_hand
7575 2003-03-30 Andrew Cagney <cagney@redhat.com>
7577 2002-11-10 Klee Dienes <kdienes@apple.com>
7578 * value.h (struct value): Update comment.
7580 2003-03-30 Andrew Cagney <cagney@redhat.com>
7582 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7584 (d10v_gdbarch_init): Do not set fp_regnum.
7586 * frame.c (get_frame_base): Force ID initialization.
7587 (get_prev_frame): Move computation of the frame ID from here ...
7588 (get_frame_id): ... to here.
7589 (legacy_get_prev_frame): Mark the frame ID as valid.
7590 * frame.h (struct frame_info): Add field "id_p".
7592 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7594 * i386-tdep.c (i386_store_struct_return): Removed.
7595 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7597 2003-03-30 Andrew Cagney <cagney@redhat.com>
7599 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7600 * gdbarch.h, gdbarch.c: Regenerate.
7601 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7603 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7604 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7605 * i386-tdep.c (i386_gdbarch_init): Ditto.
7606 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7607 * cris-tdep.c (cris_gdbarch_init): Ditto.
7608 * vax-tdep.c (vax_gdbarch_init): Ditto.
7609 * s390-tdep.c (s390_gdbarch_init): Ditto.
7610 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7611 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7612 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7613 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7614 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7615 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7616 * sparc-tdep.c (sparc_gdbarch_init): Update.
7617 * sh-tdep.c (sh_gdbarch_init): Update.
7618 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7619 * mips-tdep.c (mips_gdbarch_init): Update.
7620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7621 * ia64-tdep.c (ia64_gdbarch_init): Update.
7622 * frv-tdep.c (frv_gdbarch_init): Update.
7623 * avr-tdep.c (avr_gdbarch_init): Update.
7624 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7625 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7626 instead of when push_dummy_call is not available.
7628 2003-03-30 Andrew Cagney <cagney@redhat.com>
7630 * infttrace.c: Include "gdbthread.h".
7631 (parent_attach_all): Fix function signature.
7632 (call_ptrace): Update call.
7633 * Makefile.in (infttrace.o): Update dependencies.
7635 2003-03-30 Andrew Cagney <cagney@redhat.com>
7637 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7638 PUSH_RETURN_ADDRESS.
7639 * gdbarch.h, gdbarch.c: Regenerate.
7640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7641 * x86-64-tdep.c (x86_64_init_abi): Update.
7642 * v850-tdep.c (v850_gdbarch_init): Update.
7643 * sparc-tdep.c (sparc_gdbarch_init): Update.
7644 * sh-tdep.c (sh_gdbarch_init): Update.
7645 * s390-tdep.c (s390_gdbarch_init): Update.
7646 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7647 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7648 * mips-tdep.c (mips_gdbarch_init): Update.
7649 * mcore-tdep.c (mcore_gdbarch_init): Update.
7650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7651 * ia64-tdep.c (ia64_gdbarch_init): Update.
7652 * i386-tdep.c (i386_gdbarch_init): Update.
7653 * h8300-tdep.c (h8300_gdbarch_init): Update.
7654 * frv-tdep.c (frv_gdbarch_init): Update.
7655 * cris-tdep.c (cris_gdbarch_init): Update.
7656 * avr-tdep.c (avr_gdbarch_init): Update.
7657 * arm-tdep.c (arm_gdbarch_init): Update.
7658 * valops.c (hand_function_call): Update.
7660 2003-03-29 Andrew Cagney <cagney@redhat.com>
7662 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7663 sizeof_call_dummy_words.
7664 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7666 * gdbarch.h: Regenerate.
7668 2003-03-29 Andrew Cagney <cagney@redhat.com>
7670 * infttrace.h: New file.
7671 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7672 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7673 (hpread_read_doc_function_type): Detect an initialized type1.
7674 (hpread_quick_traverse): Initialize mod_name_string.
7675 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7676 (som_solib_get_solib_by_pc): Declare.
7677 (so_lib_thread_start_addr): Declare.
7678 (no_shared_libraries): Declare.
7679 * somread.c (init_import_symbols): Make static. Add forward
7681 * config/pa/nm-hppah.h: Include "infttrace.h" for
7683 (hppa_insert_hw_watchpoint): Declare.
7684 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7685 * hppah-nat.c: Include "gdb_string.h".
7686 (parent_attach_all): Delete extern declaration, moved to
7688 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7690 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7691 * Makefile.in (infttrace_h): Define.
7692 (hpread.o): Update dependencies.
7693 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7694 * hppa-hpux-tdep.c: Include "gdb_string.h".
7695 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7696 * infrun.c (handle_inferior_event): Always initialize
7697 stepped_after_stopped_by_watchpoint. Add default and remove
7698 fallthrough in switch statement.
7699 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7701 (hppa_remove_hw_watchpoint): Ditto.
7703 2003-03-29 Andrew Cagney <cagney@redhat.com>
7705 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7708 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7710 * arm-tdep.c (arm_push_arguments): Delete.
7711 (struct stack_item): New type.
7712 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7713 (arm_store_struct_return): Delte.
7714 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7715 arm_push_arguments or arm_store_struct_return.
7717 2003-03-28 Andrew Cagney <cagney@redhat.com>
7719 * Makefile.in (d10v-tdep.o): Update dependencies.
7720 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7721 * d10v-tdep.c: Include "remote.h".
7722 (target_resume_hook): Delete extern declaration.
7723 (target_wait_loop_hook): Ditto.
7724 (tdisassemble_command): Eliminate assignment in "if" conditional.
7725 (d10v_ts2_register_sim_regno): Eliminate call to
7726 legacy_register_sim_regno.
7727 (d10v_ts3_register_sim_regno): Ditto.
7729 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7731 * thread.c: Reindented.
7733 * linux-proc.c: Ditto.
7735 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7737 * MAINTAINERS (write after approval): Add myself.
7739 2003-03-27 Theodore A. Roth <troth@openavr.org>
7741 * objc-exp.y: Add missing semi-colons.
7743 2003-03-27 Andrew Cagney <cagney@redhat.com>
7745 * regcache.c (write_sp): Delete function and references.
7746 * inferior.h (write_sp): Delete declaration.
7747 * valops.c (hand_function_call): Replace write_sp with
7749 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7750 (sparc_pop_frame): Ditto.
7752 2003-03-27 Andrew Cagney <cagney@redhat.com>
7754 * NEWS: Mention removal of support for hppa*-*-bsd* and
7755 hppa*-*-osf* natives, and hppa*-*-pro* target.
7756 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7757 * config/pa/xm-pa.h: Obsolete file.
7758 * config/pa/xm-hppab.h: Obsolete file.
7759 * config/pa/nm-hppab.h: Obsolete file.
7760 * config/pa/tm-hppab.h: Obsolete file.
7761 * config/pa/tm-hppao.h: Obsolete file.
7762 * config/pa/nm-hppao.h: Obsolete file.
7763 * config/pa/tm-pro.h: Obsolete file.
7764 * config/pa/hppaosf.mt: Obsolete file.
7765 * config/pa/hppaosf.mh: Obsolete file.
7766 * config/pa/hppapro.mt: Obsolete file.
7767 * config/pa/hppabsd.mt: Obsolete file.
7768 * config/pa/hppabsd.mh: Obsolete file.
7769 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7770 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7773 2003-03-27 Andrew Cagney <cagney@redhat.com>
7775 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7776 push_arguments. Don't set push_return_address or write_sp.
7777 (d10v_push_dummy_call): Replace d10v_push_arguments.
7778 (d10v_push_return_address, d10v_write_sp): Delete function,
7779 handled by push_dummy_call.
7781 2003-03-26 Andrew Cagney <cagney@redhat.com>
7783 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7784 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7785 regcache and dummy_addr parameters.
7786 * gdbarch.h, gdbarch.c: Re-generate.
7787 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7788 available; assume it will handle stack alignment and return
7789 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7790 legacy_push_arguments.
7791 (legacy_push_arguments): Rename default_push_arguments.
7792 * value.h (legacy_push_arguments): Rename default_push_arguments.
7793 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7794 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7795 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7796 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7797 * config/i386/tm-symmetry.h: Update.
7798 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7799 * x86-64-tdep.c (x86_64_init_abi): Update.
7800 * v850-tdep.c (v850_gdbarch_init): Update.
7801 * sparc-tdep.c (sparc_gdbarch_init): Update.
7802 * sh-tdep.c (sh_gdbarch_init): Update.
7803 * s390-tdep.c (s390_gdbarch_init): Update.
7804 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7805 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7806 * mips-tdep.c (mips_gdbarch_init): Update.
7807 * mcore-tdep.c (mcore_gdbarch_init): Update.
7808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7809 * ia64-tdep.c (ia64_gdbarch_init): Update.
7810 * i386-tdep.c (i386_gdbarch_init): Update.
7811 * hppa-tdep.c (hppa_gdbarch_init): Update.
7812 * h8300-tdep.c (h8300_gdbarch_init): Update.
7813 * frv-tdep.c (frv_gdbarch_init): Update.
7814 * d10v-tdep.c (d10v_gdbarch_init): Update.
7815 * cris-tdep.c (cris_gdbarch_init): Update.
7816 * avr-tdep.c (avr_gdbarch_init): Update.
7817 * arm-tdep.c (arm_gdbarch_init): Update.
7818 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7819 * alpha-tdep.c (alpha_gdbarch_init): Update.
7821 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7823 * signals/signals.c (do_target_signal_to_host): Correct realtime
7826 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7828 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7829 (struct sal_chain, map_catch_names): Remove.
7830 (catch_exception_command_1): Don't call
7831 handle_gnu_4_16_catch_command.
7833 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7835 From Mark Dettinger <dettinge@de.ibm.com>:
7836 * dwarf2cfi.c (read_2u): Increment pointer by two.
7838 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7840 * signals/signals.c: Fix typos in last change.
7842 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7844 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7845 not already defined. Use __SIGRTMIN if available.
7846 (target_signal_from_host): Remove SIGRTMIN block.
7847 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7848 the signal is within the realtime range.
7850 2003-03-25 Adam Fedor <fedor@gnu.org>
7852 * Makefile.in (infrun.o): Add $(language_h)
7853 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7854 for language specific trampolines.
7855 * language.h (struct language_defn): Add skip_trampoline.
7856 (skip_language_trampoline): Declare.
7857 * language.c (unk_lang_trampoline, skip_language_trampoline):
7859 (unknown_language_defn, auto_language_defn, local_language_defn):
7860 Add ukn_lang_trampoline.
7861 * ada-lang.c (ada_language_defn): Add NULL for language
7862 specific skip_trampoline.
7863 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7864 scm-lang.c: Likewise.
7865 * objc-lang.c (objc_skip_trampoline): New function.
7866 (objc_language_defn): Add objc_skip_trampoline.
7868 2003-03-25 Andrew Cagney <cagney@redhat.com>
7870 * frame.c (get_prev_frame): Delay validating a frame's ID -
7871 non-NULL, didn't go backwards - until an attempt to unwind it to
7874 2003-03-25 Andrew Cagney <cagney@redhat.com>
7876 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7877 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7878 * gdbarch.h, gdbarch.c: Re-generate.
7879 * config/sparc/tm-sparc.h
7880 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7881 * sparc-tdep.c (sparc_gdbarch_init): Set
7882 deprecated_extra_stack_alignment_needed.
7883 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7884 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7885 extra_stack_alignment_needed.
7886 * v850-tdep.c (v850_gdbarch_init): Ditto.
7887 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7888 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7889 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7890 * cris-tdep.c (cris_gdbarch_init): Ditto.
7891 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7894 2003-03-25 Andrew Cagney <cagney@redhat.com>
7896 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7897 STORE_STRUCT_RETURN.
7898 * gdbarch.h, gdbarch.c: Regenerate.
7899 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7900 (d10v_push_arguments): Set the struct return register.
7901 (d10v_gdbarch_init): Update.
7902 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7903 * x86-64-tdep.c (x86_64_init_abi): Update.
7904 * vax-tdep.c (vax_gdbarch_init): Update.
7905 * v850-tdep.c (v850_gdbarch_init): Update.
7906 * sparc-tdep.c (sparc_gdbarch_init): Update.
7907 * sh-tdep.c (sh_gdbarch_init): Update.
7908 * s390-tdep.c (s390_gdbarch_init): Update.
7909 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7910 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7911 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7912 * mips-tdep.c (mips_gdbarch_init): Update.
7913 * mcore-tdep.c (mcore_gdbarch_init): Update.
7914 * m68k-tdep.c (m68k_gdbarch_init): Update.
7915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7916 * ia64-tdep.c (ia64_gdbarch_init): Update.
7917 * i386-tdep.c (i386_gdbarch_init): Update.
7918 * hppa-tdep.c (hppa_gdbarch_init): Update.
7919 * h8300-tdep.c (h8300_gdbarch_init): Update.
7920 * frv-tdep.c (frv_gdbarch_init): Update.
7921 * cris-tdep.c (cris_gdbarch_init): Update.
7922 * avr-tdep.c (avr_gdbarch_init): Update.
7923 * arm-tdep.c (arm_gdbarch_init): Update.
7924 * alpha-tdep.c (alpha_gdbarch_init): Update.
7926 2003-03-25 Andrew Cagney <cagney@redhat.com>
7928 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7929 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7930 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7931 * gdbarch.h, gdbarch.c: Regenerate.
7932 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7933 call_dummy_stack_adjust_p.
7934 * vax-tdep.c (vax_gdbarch_init): Ditto.
7935 * v850-tdep.c (v850_gdbarch_init): Ditto.
7936 * sh-tdep.c (sh_gdbarch_init): Ditto.
7937 * s390-tdep.c (s390_gdbarch_init): Ditto.
7938 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7939 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7940 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7941 * mips-tdep.c (mips_gdbarch_init): Ditto.
7942 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7943 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7945 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7946 * i386-tdep.c (i386_gdbarch_init): Ditto.
7947 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7948 * frv-tdep.c (frv_gdbarch_init): Ditto.
7949 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7950 * cris-tdep.c (cris_gdbarch_init): Ditto.
7951 * avr-tdep.c (avr_gdbarch_init): Ditto.
7952 * arm-tdep.c (arm_gdbarch_init): Ditto.
7953 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7954 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7955 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7956 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7957 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7958 call_dummy_stack_adjust_p.
7959 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7960 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7961 * sparc-tdep.c (sparc32_push_arguments): Update.
7962 * valops.c (hand_function_call): Update.
7964 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7966 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7967 set_gdbarch_char_signed.
7969 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7972 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7974 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7976 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7977 (_initialize_arm_tdep): Don't set tm_print_insn.
7979 2003-03-24 Adam Fedor <fedor@gnu.org>
7981 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7982 * objc-lang.h: Add multiple inclusion protection.
7983 (start_msglist, add_msglist, end_msglist): Additional declarations.
7985 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7987 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7988 value was renamed to ARM_FLOAT_SOFT_FPA.
7990 2003-03-23 Andrew Cagney <cagney@redhat.com>
7992 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7993 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7994 * gdbarch.h, gdbarch.c: Regenerate.
7995 * valops.c (hand_function_call): Update.
7996 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7997 * frame.c (legacy_saved_regs_this_id): Update.
7998 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7999 * dummy-frame.h: Update.
8000 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8001 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8002 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8003 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8004 * config/m68k/tm-sun3.h: Update.
8005 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8007 * x86-64-tdep.c (x86_64_init_abi): Update.
8008 * vax-tdep.c (vax_gdbarch_init): Update.
8009 * v850-tdep.c (v850_gdbarch_init): Update.
8010 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8011 * sh-tdep.c (sh_gdbarch_init): Update.
8012 * s390-tdep.c (s390_gdbarch_init): Update.
8013 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8014 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8015 (frame_get_saved_regs): Update.
8016 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8017 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8018 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8019 * mips-tdep.c (mips_gdbarch_init): Update.
8020 * mcore-tdep.c (mcore_gdbarch_init): Update.
8021 * m68k-tdep.c (m68k_gdbarch_init): Update.
8022 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8023 * ia64-tdep.c (ia64_gdbarch_init): Update.
8024 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8025 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8026 (i386_interix_back_one_frame): Update.
8027 * hppa-tdep.c (hppa_gdbarch_init): Update.
8028 (hppa_init_extra_frame_info): Update.
8029 * h8300-tdep.c (h8300_gdbarch_init): Update.
8030 * frv-tdep.c (frv_gdbarch_init): Update.
8031 * cris-tdep.c (cris_gdbarch_init): Update.
8032 * avr-tdep.c (avr_gdbarch_init): Update.
8033 * arm-tdep.c (arm_gdbarch_init): Update.
8034 * alpha-tdep.c (alpha_gdbarch_init): Update.
8036 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8038 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8039 (arm_get_fp_model): Declare.
8040 * arm-tdep.c (fp_model_strings): New string array.
8041 (arm_fp_model, current_fp_model): New variables.
8042 (arm_get_fp_model): New function.
8043 (arm_set_fp): New function.
8044 (set_fp_model_sfunc): New function.
8045 (show_fp_model): New function.
8046 (_initialize_arm_tdep): Add new command to set/show the FPU.
8047 (arm_extract_return_value): Use arm_get_fp_model.
8048 (arm_store_return_value): Likewise.
8049 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8050 to initialize the floating-point data types.
8051 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8054 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8056 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8057 the current setting of each value.
8058 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8059 new_set and new_show. Use add_setshow_cmd_full and
8060 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8061 commands and add new version as subcommands of "set/show arm".
8063 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8065 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8066 (set_arm_command, show_arm_command): New functions.
8067 (_initialize_arm_tdep): Add them.
8068 (num_disassembly_options): Renamed from num_flavor_options.
8069 (valid_disassembly_styles): Renamed from valid_flavors.
8070 (disassembly_style): Renamed from disassembly_flavor.
8071 (set_disassembly_style_sfunc): Renamed from
8072 set_disassembly_flavor_sfunc.
8073 (set_disassembly_style): Renamed from set_disassembly_flavor.
8074 (arm_othernames): Updated.
8075 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8076 command. Add "set/show arm disassembly" commands. Deprecate
8077 "othernames" command.
8079 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8081 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8082 (arm-tdep.o): Depend on elf_arm_h.
8084 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8086 * Makefile.in (coff_internal_h): Define.
8087 (arm-tdep.o): Update dependencies.
8089 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8091 * arm-tdep.c (prologue_cache): Delete.
8092 (check_prologue_cache, save_prologue_cache): Delete.
8093 (arm_scan_prologue): Don't check or update the prologue_cache.
8094 (arm_gdb_arch_init): Don't initialize it.
8095 (_initialize_arm_tdep): Likewise.
8097 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8099 * MAINTAINERS (tui): Maintainer of tui code.
8101 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8103 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8104 (i386-cygwin-tdep.o): Add dependencies.
8105 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8106 * i386-cygwin-tdep.c: New file.
8107 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8108 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8110 2003-03-20 Andrew Cagney <cagney@redhat.com>
8112 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8113 (handle_inferior_event): Remove code calling
8114 DYNAMIC_TRAMPOLINE_NEXTPC.
8116 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8117 already has a full path.
8119 * main.c (gdb_main): Return 1.
8120 (captured_main): Call error to report an invalid interpreter.
8122 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8123 * alpha-osf1-tdep.c: Include "gdb_string.h".
8125 2003-03-19 J. Brobecker <brobecker@gnat.com>
8127 Continuing work to convert the hppa targets to multiarch partial.
8129 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8130 method, now that hppa_push_dummy_frame has a conformant prototype.
8131 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8132 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8133 for the switch to multiarch partial.
8135 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8137 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8138 when iss is issNull.
8140 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8142 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8143 NUM_REGS bounds check.
8145 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8147 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8148 * mips-tdep.c (gdb_assert.h): Include.
8149 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8150 (mips_register_name): Handle integer registers explicitly. Add
8152 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8153 (mips_lsi33k_reg_names): Don't list integer registers; they're
8154 handled by mips_register_name() now.
8155 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8156 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8157 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8158 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8159 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8161 2003-03-18 Andrew Cagney <cagney@redhat.com>
8163 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8165 * gdbtypes.h (print_scalar_formatted): Update declaration.
8166 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8168 2003-03-18 J. Brobecker <brobecker@gnat.com>
8170 * infrun.c (observer.h): Add #include.
8171 (normal_stop): Add call to observer_notify_normal_stop.
8172 * Makefile.in (infrun.o): Add dependency on observer.h.
8174 2003-03-18 J. Brobecker <brobecker@gnat.com>
8176 Continuing work to convert the hppa targets to multiarch partial.
8177 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8178 parameter. Reformat comment.
8179 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8180 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8181 to match new profile.
8183 2003-03-18 J. Brobecker <brobecker@gnat.com>
8185 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8186 appear to be working in any case.
8188 2003-03-18 J. Brobecker <brobecker@gnat.com>
8190 * observer.c (observer_test_first_observer): New static variable.
8191 (observer_test_second_observer): Likewise.
8192 (observer_test_third_observer): Likewise.
8193 (observer_test_first_notification_function): New static function.
8194 (observer_test_second_notification_function): Likewise.
8195 (observer_test_third_notification_function): Likewise.
8197 2003-03-17 J. Brobecker <brobecker@gnat.com>
8199 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8200 * somsolib.c (gdb_assert.h): Likewise.
8201 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8202 (somsolib.o): Likewise.
8204 2003-03-17 Andrew Cagney <cagney@redhat.com>
8206 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8207 BFD. Simplify setting of di.endian.
8209 2003-03-17 Andrew Cagney <cagney@redhat.com>
8211 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8212 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8214 From Elena Zannoni <ezannoni@redhat.com>
8215 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8216 vector and floating-point parameters.
8217 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8219 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8221 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8223 * MAINTAINERS: Remove my name from several maintainership roles.
8225 2003-03-17 Andrew Cagney <cagney@redhat.com>
8227 Fix frame off-by-one bug.
8228 * frame-unwind.h (frame_this_id_ftype): Replace
8229 frame_unwind_id_ftype.
8230 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8231 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8232 with "prev_register".
8233 * frame-unwind.c (frame_unwind_find_by_pc): Return
8234 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8236 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8237 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8238 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8239 (dummy_frame_unwind): Update.
8240 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8241 sentinel_frame_register_unwind.
8242 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8243 (sentinel_frame_unwinder): Update.
8244 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8245 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8246 * frame.c (create_sentinel_frame): Update. Initialize
8247 "prologue_cache" instead of "unwind_cache".
8248 (frame_register_unwind): Call this frame's prev_register with the
8249 next frame and this frame's prologue cache.
8250 (get_prev_frame): Simplify. Always call prev frame's this_id with
8251 this frame and prev frame's prologue cache. Document that this
8252 call is shifted one to the left when compared to the
8253 frame_register_unwind call.
8254 (legacy_saved_regs_prev_register): Replace
8255 frame_saved_regs_register_unwind.
8256 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8257 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8258 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8259 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8260 (d10v_frame_unwind): Update.
8261 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8262 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8263 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8264 "saved_regs" with "this_saved_regs".
8266 2003-03-16 Andrew Cagney <cagney@redhat.com>
8268 * frame.c (frame_pop): Don't call target_store_registers. Fix
8269 problem reported by Mark Kettenis.
8271 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8273 * i386-tdep.c (i386_register_type): Renamed from
8274 i386_register_virtual_type. Adjust function signature.
8275 (i386_gdbarch_init): Set register_type instead of
8276 deprecated_max_register_raw_size,
8277 deprecated_max_register_virtual_size and register_virtual_type.
8279 2003-03-14 Andrew Cagney <cagney@redhat.com>
8281 * frame.c (get_prev_frame): When a legacy frame, always call
8282 legacy_get_prev_frame. Simplify unwind code using assumption that
8283 the unwinder is new.
8284 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8285 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8286 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8288 2003-03-14 Andrew Cagney <cagney@redhat.com>
8290 * frame.c (get_saved_register): Delete function.
8291 * frame.h (get_saved_register): Delete declaration.
8292 * xstormy16-tdep.c: Update comment.
8293 * regcache.h: Update comments.
8294 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8295 get_saved_register and extract_address, use
8296 frame_read_unsigned_register.
8297 (sparc_frame_saved_pc): Ditto.
8298 (sparc_get_saved_register): Instead of get_saved_register, use
8300 (sparc_pop_frame): Ditto.
8301 * findvar.c: Update comments.
8302 (value_of_register): Call frame_register instead of
8304 (value_from_register): Ditto.
8305 * config/sparc/tm-sparc.h: Update comment.
8306 * breakpoint.c: Update comment.
8308 2003-03-14 Andrew Cagney <cagney@redhat.com>
8310 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8312 * gdbarch.h, gdbarch.c: Re-generate.
8313 * frame.h: Update comments.
8314 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8315 * x86-64-tdep.c (x86_64_init_abi): Update.
8316 * sparc-tdep.c (sparc_gdbarch_init): Update.
8317 * sh-tdep.c (sh_gdbarch_init): Update.
8318 * mips-tdep.c (mips_gdbarch_init): Update.
8319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8320 * cris-tdep.c (cris_gdbarch_init): Update.
8321 * ia64-tdep.c (ia64_gdbarch_init): Update.
8322 * frame.c (frame_register): Update.
8323 (get_saved_register): Update.
8324 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8326 2003-03-13 Andrew Cagney <cagney@redhat.com>
8328 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8329 * gdbarch.h, gdbarch.c: Regenerate.
8330 * valops.c (hand_function_call): Update comment.
8331 * stack.c (return_command): Update comment.
8332 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8333 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8335 * x86-64-tdep.c (x86_64_init_abi): Update.
8336 * vax-tdep.c (vax_gdbarch_init): Update.
8337 * v850-tdep.c (v850_gdbarch_init): Update.
8338 * sparc-tdep.c (sparc_gdbarch_init): Update.
8339 * sh-tdep.c (sh_gdbarch_init): Update.
8340 * s390-tdep.c (s390_gdbarch_init): Update.
8341 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8342 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8343 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8344 * mips-tdep.c (mips_gdbarch_init): Update.
8345 * mcore-tdep.c (mcore_gdbarch_init): Update.
8346 * m68k-tdep.c (m68k_gdbarch_init): Update.
8347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8348 * ia64-tdep.c (ia64_gdbarch_init): Update.
8349 * i386-tdep.c (i386_gdbarch_init): Update.
8350 * hppa-tdep.c (hppa_gdbarch_init): Update.
8351 * h8300-tdep.c (h8300_gdbarch_init): Update.
8352 * frv-tdep.c (frv_gdbarch_init): Update.
8353 * cris-tdep.c (cris_gdbarch_init): Update.
8354 * avr-tdep.c (avr_gdbarch_init): Update.
8355 * arm-tdep.c (arm_gdbarch_init): Update.
8356 * alpha-tdep.c (alpha_gdbarch_init): Update.
8358 2003-03-13 Andrew Cagney <cagney@redhat.com>
8360 * frame.c (legacy_frame_p): New function.
8361 (get_prev_frame): Use legacy_frame_p.
8362 * frame.h (legacy_frame_p): Declare.
8364 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8366 * MAINTAINERS (write after approval): Alphabetically
8369 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8371 * MAINTAINERS (write after approval): Add myself.
8373 2003-03-12 Andrew Cagney <cagney@redhat.com>
8375 * frame.c (get_prev_frame): Rename the frame parameter to
8377 (get_next_frame, legacy_get_prev_frame): Ditto.
8379 2003-03-12 Andrew Cagney <cagney@redhat.com>
8381 * frame.c (get_current_frame): Check target_has_registers before
8382 checking target_has_stack.
8383 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8384 instead of deprecated_selected_frame.
8385 * findvar.c (value_of_register): Pass "frame", not
8386 deprecated_selected_frame, to value_of_builtin_reg.
8388 2003-03-12 Andrew Cagney <cagney@redhat.com>
8390 * regcache.c (regcache_cooked_write_signed): New function.
8391 (regcache_cooked_write_unsigned): New function.
8392 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8393 (regcache_cooked_read_signed): Fix regnum in range assertion.
8394 * regcache.h (regcache_cooked_write_signed): Declare.
8395 (regcache_cooked_write_unsigned): Declare.
8397 2003-03-12 Andrew Cagney <cagney@redhat.com>
8399 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8400 * gdbarch.h, gdbarch.c: Re-generate.
8401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8402 * x86-64-tdep.h: Update.
8403 * x86-64-tdep.c (x86_64_init_abi): Update.
8404 * v850-tdep.c (v850_gdbarch_init): Update.
8405 * sparc-tdep.c (sparc_gdbarch_init): Update.
8406 * sh-tdep.c (sh_gdbarch_init): Update.
8407 * s390-tdep.c (s390_gdbarch_init): Update.
8408 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8409 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8410 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8411 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8412 * mips-tdep.c (mips_gdbarch_init): Update.
8413 * mcore-tdep.c (mcore_gdbarch_init): Update.
8414 * m68k-tdep.c (m68k_gdbarch_init): Update.
8415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8416 * ia64-tdep.c (ia64_gdbarch_init): Update.
8417 * i386-tdep.c (i386_gdbarch_init): Update.
8418 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8419 * hppa-tdep.c (hppa_gdbarch_init): Update.
8420 * h8300-tdep.c (h8300_gdbarch_init): Update.
8421 * frv-tdep.c (frv_gdbarch_init): Update.
8422 * cris-tdep.c (cris_gdbarch_init): Update.
8423 * avr-tdep.c (avr_gdbarch_init): Update.
8424 * arm-tdep.c (arm_gdbarch_init): Update.
8425 * alpha-tdep.c (alpha_gdbarch_init): Update.
8426 * sh-tdep.c (sh_init_extra_frame_info): Update.
8427 (sh64_init_extra_frame_info): Update.
8428 * ns32knbsd-nat.c (frame_num_args): Update.
8429 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8430 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8431 (xstormy16_frame_chain_valid): Update.
8432 * vax-tdep.c (vax_saved_pc_after_call): Update.
8433 * v850-tdep.c (v850_frame_chain): Update.
8434 (v850_pop_frame): Update.
8435 (v850_init_extra_frame_info): Update.
8436 * sparc-tdep.c (setup_arbitrary_frame): Update.
8437 * ns32k-tdep.c (umax_frame_num_args): Update.
8438 * s390-tdep.c (s390_pop_frame_regular): Update.
8439 * mn10300-tdep.c (mn10300_frame_chain): Update.
8440 (mn10300_pop_frame_regular): Update.
8441 (mn10300_init_extra_frame_info): Update.
8442 * mips-tdep.c (mips_init_frame_pc_first): Update.
8443 (mips_frame_chain): Update.
8444 (mips_pop_frame): Update.
8445 * mcore-tdep.c (mcore_frame_chain): Update.
8446 (mcore_pop_frame): Update.
8447 (mcore_init_extra_frame_info): Update.
8448 * arch-utils.c (init_frame_pc_default): Update.
8449 * m68k-tdep.c (isi_frame_num_args): Update.
8450 (delta68_frame_num_args): Update.
8451 (news_frame_num_args): Update.
8452 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8453 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8454 (alpha_frame_chain): Update.
8455 (alpha_pop_frame): Update.
8456 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8457 (hppa_init_extra_frame_info): Update.
8458 (hppa_frame_chain): Update.
8459 (hppa_frame_chain_valid): Update.
8460 * cris-tdep.c (cris_init_extra_frame_info): Update.
8461 * avr-tdep.c (avr_init_extra_frame_info): Update.
8462 * arm-tdep.c (arm_frame_chain_valid): Update.
8463 (arm_init_extra_frame_info): Update.
8464 (arm_pop_frame): Update.
8465 * frame.c (frame_pc_unwind): Update.
8466 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8467 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8468 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8469 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8470 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8471 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8473 2003-03-12 Andrew Cagney <cagney@redhat.com>
8475 Eliminate the need for POP_FRAME.
8476 * frame.c (do_frame_unwind_register): New function.
8477 (frame_pop): When no POP_FRAME, pop the frame using register
8478 unwind and a scratch regcache.
8479 (frame_saved_regs_pop): Delete function.
8480 (trad_frame_unwinder): Update.
8481 * d10v-tdep.c (d10v_frame_pop): Delete function.
8482 (d10v_frame_unwind): Update.
8483 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8484 (sentinel_frame_unwinder): Update.
8485 * dummy-frame.c (dummy_frame_pop): Delete function.
8486 (dummy_frame_unwind): Update.
8487 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8488 (struct frame_unwind): Update.
8490 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8492 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8493 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8494 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8495 Do range checks on register number obtained from debugging info.
8496 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8497 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8498 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8500 (do_fp_register_row): Fix typo which caused double type to be
8501 used when attempting to unpack a float.
8503 2003-03-11 J. Brobecker <brobecker@gnat.com>
8505 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8507 2003-03-11 Andrew Cagney <cagney@redhat.com>
8509 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8510 frame. Problem found by Corinna Vinschen.
8512 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8514 * doublest.c (floatformat_from_length): Accept also
8515 the real size of 'long double' type.
8517 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8519 From Klee Dienes <kdienes@apple.com>:
8520 * breakpoint.c (bpstat_copy): Copy the command lines as well
8521 as the old value, to match what is freed in bpstat_clear.
8523 2003-03-10 David Carlton <carlton@math.stanford.edu>
8525 * minsyms.c (add_minsym_to_hash_table): Replace
8526 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8527 (compare_minimal_symbols, compact_minimal_symbols)
8528 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8529 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8530 of DEPRECATED_SYMBOL_MATCHES_NAME.
8531 (lookup_minimal_symbol_solib_trampoline): Ditto.
8533 2003-03-10 Andrew Cagney <cagney@redhat.com>
8535 * regcache.h (regcache_cooked_read_ftype): Define.
8536 (regcache_save, regcache_restore): Add a cooked_read parameter.
8537 * regcache.c (regcache_save, regcache_restore): Update.
8538 (do_cooked_read): New function.
8539 (regcache_cpy): Pass do_cooked_read to regcache_save and
8542 2003-03-10 Andrew Cagney <cagney@redhat.com>
8544 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8545 * gdbarch.h, gdbarch.c: Re-generate.
8546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8547 * x86-64-tdep.h: Update.
8548 * x86-64-tdep.c (x86_64_init_abi): Update.
8549 * v850-tdep.c (v850_gdbarch_init): Update.
8550 * sparc-tdep.c (sparc_gdbarch_init): Update.
8551 * sh-tdep.c (sh_gdbarch_init): Update.
8552 * s390-tdep.c (s390_gdbarch_init): Update.
8553 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8554 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8555 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8556 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8557 * mips-tdep.c (mips_gdbarch_init): Update.
8558 * mcore-tdep.c (mcore_gdbarch_init): Update.
8559 * m68k-tdep.c (m68k_gdbarch_init): Update.
8560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8561 * ia64-tdep.c (ia64_gdbarch_init): Update.
8562 * i386-tdep.c (i386_gdbarch_init): Update.
8563 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8564 * hppa-tdep.c (hppa_gdbarch_init): Update.
8565 * h8300-tdep.c (h8300_gdbarch_init): Update.
8566 * frv-tdep.c (frv_gdbarch_init): Update.
8567 * cris-tdep.c (cris_gdbarch_init): Update.
8568 * avr-tdep.c (avr_gdbarch_init): Update.
8569 * arm-tdep.c (arm_gdbarch_init): Update.
8570 * alpha-tdep.c (alpha_gdbarch_init): Update.
8571 * sh-tdep.c (sh_init_extra_frame_info): Update.
8572 (sh64_init_extra_frame_info): Update.
8573 * ns32knbsd-nat.c (frame_num_args): Update.
8574 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8575 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8576 (xstormy16_frame_chain_valid): Update.
8577 * vax-tdep.c (vax_saved_pc_after_call): Update.
8578 * v850-tdep.c (v850_frame_chain): Update.
8579 (v850_pop_frame): Update.
8580 (v850_init_extra_frame_info): Update.
8581 * sparc-tdep.c (setup_arbitrary_frame): Update.
8582 * ns32k-tdep.c (umax_frame_num_args): Update.
8583 * s390-tdep.c (s390_pop_frame_regular): Update.
8584 * mn10300-tdep.c (mn10300_frame_chain): Update.
8585 (mn10300_pop_frame_regular): Update.
8586 (mn10300_init_extra_frame_info): Update.
8587 * mips-tdep.c (mips_init_frame_pc_first): Update.
8588 (mips_frame_chain): Update.
8589 (mips_pop_frame): Update.
8590 * mcore-tdep.c (mcore_frame_chain): Update.
8591 (mcore_pop_frame): Update.
8592 (mcore_init_extra_frame_info): Update.
8593 * arch-utils.c (init_frame_pc_default): Update.
8594 * m68k-tdep.c (isi_frame_num_args): Update.
8595 (delta68_frame_num_args): Update.
8596 (news_frame_num_args): Update.
8597 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8598 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8599 (alpha_frame_chain): Update.
8600 (alpha_pop_frame): Update.
8601 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8602 (hppa_init_extra_frame_info): Update.
8603 (hppa_frame_chain): Update.
8604 (hppa_frame_chain_valid): Update.
8605 * cris-tdep.c (cris_init_extra_frame_info): Update.
8606 * avr-tdep.c (avr_init_extra_frame_info): Update.
8607 * arm-tdep.c (arm_frame_chain_valid): Update.
8608 (arm_init_extra_frame_info): Update.
8609 (arm_pop_frame): Update.
8610 * frame.c (frame_pc_unwind): Update.
8611 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8612 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8613 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8614 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8615 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8616 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8618 2003-03-10 Andrew Cagney <cagney@redhat.com>
8620 * gdbarch.sh (gdbarch_unwind_pc): New method.
8621 * gdbarch.h, gdbarch.c: Regenerate.
8622 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8623 but use read_pc and FRAME_SAVED_PC as fall backs.
8624 (frame_saved_regs_pc_unwind): Delete function.
8625 (trad_frame_unwinder): Update.
8626 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8627 (struct frame_unwind): Update.
8628 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8629 (dummy_frame_unwind): Update.
8630 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8631 (sentinel_frame_unwinder): Update.
8632 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8633 (d10v_frame_unwind): Update.
8634 (d10v_unwind_pc): New function.
8635 (d10v_gdbarch_init): Set unwind_pc.
8637 2003-03-10 Andrew Cagney <cagney@redhat.com>
8639 * gdbarch.h: Re-generate.
8641 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8643 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8646 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8648 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8650 2003-03-08 Andrew Cagney <cagney@redhat.com>
8652 * cli-out.c: Update copyright.
8653 (cli_out_data): Define typedef. Use instead of ui_out_data.
8655 2003-03-08 Andrew Cagney <cagney@redhat.com>
8657 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8660 2003-03-07 Andrew Cagney <cagney@redhat.com>
8662 * gdbarch.sh: Don't generate two macro definitions when an
8663 undefined macro taking no arguments.
8664 * gdbarch.h: Regenerate.
8666 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8668 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8669 (x86_64_unwind_dummy_id): New functions.
8670 (x86_64_init_abi): Register these two new functions.
8672 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8674 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8675 (x86_64_skip_prologue): Move prologue detection to
8677 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8679 2003-03-05 Andrew Cagney <cagney@redhat.com>
8681 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8682 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8683 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8684 to use unwind_dummy_id when a dummy frame.
8685 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8687 * gdbarch.h, gdbarch.c: Regneerate.
8689 2003-03-05 Andrew Cagney <cagney@redhat.com>
8691 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8692 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8693 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8696 2003-03-05 Andrew Cagney <cagney@redhat.com>
8698 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8699 (struct d10v_unwind_cache): Delete field "frameless". Replace
8700 "next_addr" with "sp_offset". Add "r11_offset".
8701 (d10v_frame_unwind_cache): Update.
8702 (prologue_find_regs): Update. When "mv r11, sp", save the
8703 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8704 RN was saved in r11_offset.
8706 2003-03-05 Andrew Cagney <cagney@redhat.com>
8708 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8709 cached PC value in the next frame.
8711 2003-03-05 Andrew Cagney <cagney@redhat.com>
8713 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8714 "id_unwind_cache" with "id".
8715 (frame_id_unwind): Delete declaration.
8716 * frame.c (frame_id_unwind): Delete function.
8717 (get_prev_frame): Call the frame id unwind method directly. Store
8718 the returned next frame's ID value in NEXT_FRAME. Note that there
8719 is a problem with the wrong unwind ID being called with the wrong
8722 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8724 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8726 2003-03-05 James Ingham <jingham@apple.com>
8727 Daniel Jacobowitz <drow@mvista.com>
8729 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8730 (auto_cp_abi): New variable.
8731 (current_cp_abi, num_cp_abis): Make static.
8732 (CP_ABI_MAX): Define.
8733 (cp_abis): Turn into an array.
8734 (value_virtual_fn_field): Fix formatting.
8735 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8737 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8738 (list_cp_abis, _initialize_cp_abi): New functions.
8739 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8740 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8741 switch_to_cp_abi. Update prototype for register_cp_abi.
8742 * Makefile.in (cp-abi.o): Update dependencies.
8743 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8744 instead of switch_to_cp_abi.
8745 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8747 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8749 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8751 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8753 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8754 * dwarf2loc.c: Include "regcache.h".
8755 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8757 * Makefile.in (dwarf2loc.o): Update dependencies.
8759 2003-03-04 Theodore A. Roth <troth@openavr.org>
8761 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8762 number of io registers reported by remote target is not a multiple of
8765 2003-03-04 David Carlton <carlton@math.stanford.edu>
8767 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8768 (lookup_symbol_aux_psymtabs): Update call to
8769 lookup_partial_symbol.
8770 (lookup_transparent_type, find_main_psymtab)
8771 (make_symbol_overload_list): Ditto.
8773 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8775 * MAINTAINERS (Write after approval): Update my email address.
8777 2003-03-03 Andrew Cagney <cagney@redhat.com>
8779 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8780 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8781 predicate. Replace MAX_REGISTER_RAW_SIZE.
8782 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8783 MAX_REGISTER_VIRTUAL_SIZE.
8784 * regcache.c (legacy_max_register_raw_size): New function.
8785 (legacy_max_register_virtual_size): New function.
8786 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8787 (MAX_REGISTER_RAW_SIZE): Define.
8788 (legacy_max_register_raw_size): Declare.
8789 (legacy_max_register_virtual_size): Declare.
8790 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8791 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8792 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8793 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8794 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8795 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8796 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8797 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8798 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8800 * vax-tdep.c (vax_gdbarch_init): Update.
8801 * v850-tdep.c (v850_gdbarch_init): Update.
8802 * sparc-tdep.c (sparc_gdbarch_init): Update.
8803 * sh-tdep.c (sh_gdbarch_init): Update.
8804 * s390-tdep.c (s390_gdbarch_init): Update.
8805 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8806 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8807 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8808 * mips-tdep.c (mips_gdbarch_init): Update.
8809 * mcore-tdep.c (mcore_gdbarch_init): Update.
8810 * m68k-tdep.c (m68k_gdbarch_init): Update.
8811 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8812 * ia64-tdep.c (ia64_gdbarch_init): Update.
8813 * i386-tdep.c (i386_gdbarch_init): Update.
8814 * hppa-tdep.c (hppa_gdbarch_init): Update.
8815 * h8300-tdep.c (h8300_gdbarch_init): Update.
8816 * frv-tdep.c (frv_gdbarch_init): Update.
8817 * cris-tdep.c (cris_gdbarch_init): Update.
8818 * avr-tdep.c (avr_gdbarch_init): Update.
8819 * arm-tdep.c (arm_gdbarch_init): Update.
8820 * alpha-tdep.c (alpha_gdbarch_init): Update.
8821 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8822 max_register_raw_size or max_register_virtual_size.
8824 2003-03-03 David Carlton <carlton@math.stanford.edu>
8826 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8827 SYMBOL_MATCHES_NAME, add comment.
8828 (SYMBOL_MATCHES_NATURAL_NAME): New.
8829 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8830 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8831 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8832 * symtab.c (lookup_partial_symbol): Use
8833 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8835 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8836 SYMBOL_MATCHES_NAME.
8839 2003-03-03 David Carlton <carlton@math.stanford.edu>
8841 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8842 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8843 by regexp matching against SYMBOL_NATURAL_NAME.
8845 2003-03-03 David Carlton <carlton@math.stanford.edu>
8847 * linespec.c (find_method): Extract code into collect_methods.
8848 (collect_methods): New.
8850 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8852 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8855 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8856 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8858 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8860 * arch-utils.c (generic_register_byte): Fix to use the loop index
8861 and not regnum when summing the size of all registers up to regnum.
8863 2003-03-01 Andrew Cagney <cagney@redhat.com>
8865 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8866 FRAME_INIT_SAVED_REGS.
8867 * gdbarch.h, gdbarch.c: Regenerate.
8868 * stack.c (frame_info): Update.
8869 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8870 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8871 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8872 * ns32k-tdep.c (ns32k_pop_frame): Update.
8873 * mips-tdep.c (mips_pop_frame): Update.
8874 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8875 * ia64-tdep.c (ia64_frame_chain): Update.
8876 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8877 (ia64_frameless_function_invocation): Update.
8878 (ia64_init_extra_frame_info): Update.
8879 (ia64_pop_frame_regular): Update.
8880 * frame.h (struct frame_info): Update comment.
8881 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8882 * frame.c (frame_saved_regs_register_unwind): Update.
8883 (frame_saved_regs_register_unwind): Update.
8884 (deprecated_generic_get_saved_register): Update.
8885 * cris-tdep.c: Update comment.
8886 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8889 * x86-64-tdep.c (x86_64_init_abi): Update.
8890 * vax-tdep.c (vax_gdbarch_init): Update.
8891 * v850-tdep.c (v850_gdbarch_init): Update.
8892 * sparc-tdep.c (sparc_gdbarch_init): Update.
8893 * sh-tdep.c (sh_gdbarch_init): Update.
8894 * s390-tdep.c (s390_gdbarch_init): Update.
8895 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8896 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8897 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8898 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8899 * mips-tdep.c (mips_gdbarch_init): Update.
8900 * mcore-tdep.c (mcore_gdbarch_init): Update.
8901 * m68k-tdep.c (m68k_gdbarch_init): Update.
8902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8903 * ia64-tdep.c (ia64_gdbarch_init): Update.
8904 * i386-tdep.c (i386_gdbarch_init): Update.
8905 * frv-tdep.c (frv_gdbarch_init): Update.
8906 * avr-tdep.c (avr_gdbarch_init): Update.
8907 * arm-tdep.c (arm_gdbarch_init): Update.
8908 * alpha-tdep.c (alpha_gdbarch_init): Update.
8910 2003-03-01 Andrew Cagney <cagney@redhat.com>
8912 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8913 option enum and switch. When no windows, set the interpreter to
8916 2003-03-01 Andrew Cagney <cagney@redhat.com>
8918 * main.c (captured_main): Replace magic option characters with an
8921 2003-03-01 Andrew Cagney <cagney@redhat.com>
8923 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8924 INIT_EXTRA_FRAME_INFO.
8925 * gdbarch.h, gdbarch.c: Regenerate.
8926 * arm-tdep.c: Update comments.
8927 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8928 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8929 * frame.h, avr-tdep.c: Ditto.
8930 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8931 (create_new_frame, legacy_get_prev_frame): Ditto.
8932 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8933 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8934 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8935 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8936 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8937 * v850-tdep.c (v850_gdbarch_init): Ditto.
8938 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8939 * sh-tdep.c (sh_gdbarch_init): Ditto.
8940 * s390-tdep.c (s390_gdbarch_init): Ditto.
8941 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8942 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8943 * mips-tdep.c (mips_gdbarch_init): Ditto.
8944 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8946 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8947 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8948 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8949 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8950 * frv-tdep.c (frv_gdbarch_init): Ditto.
8951 * cris-tdep.c (cris_gdbarch_init): Ditto.
8952 * avr-tdep.c (avr_gdbarch_init): Ditto.
8953 * arm-tdep.c (arm_gdbarch_init): Ditto.
8954 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8955 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8957 2003-03-01 Andrew Cagney <cagney@redhat.com>
8959 * gdbarch.sh (register_type): New function with predicate.
8960 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8961 * gdbarch.h, gdbarch.c: Re-generate.
8962 * arch-utils.c (generic_register_byte): Use generic_register_size.
8963 (generic_register_size): When available, use
8964 gdbarch_register_type.
8965 * regcache.c (init_regcache_descr): When available, initialize the
8966 register type array using gdbarch_register_type. If the
8967 architecture supplies gdbarch_register_type, do not use the legacy
8969 * d10v-tdep.c (d10v_register_type): Replace
8970 d10v_register_virtual_type.
8971 (d10v_gdbarch_init): Set register_type instead of
8972 register_virtual_type.
8974 2003-03-01 Andrew Cagney <cagney@redhat.com>
8976 * Makefile.in (ax-gdb.o): Update dependencies.
8977 * ax-gdb.c: Include "regcache.h".
8978 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8979 * findvar.c (value_of_register): Ditto.
8980 * infcmd.c (default_print_registers_info): Ditto.
8982 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8984 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8985 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8987 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8989 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8992 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8994 * Makefile.in (dwarf2loc.o): Update dependencies.
8995 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8996 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8997 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8998 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8999 (locexpr_tracepoint_var_ref): New function.
9000 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9002 2003-02-28 Andrew Cagney <cagney@redhat.com>
9004 * regcache.c (register_size): New function.
9005 * regcache.h (register_size): Declare
9006 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9007 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9009 2003-02-28 David Carlton <carlton@math.stanford.edu>
9011 * linespec.c (decode_compound): Extract code into find_method.
9014 2003-02-28 J. Brobecker <brobecker@gnat.com>
9016 * Makefile.in: Add rules to build and link in observer.o.
9018 2003-02-27 J. Brobecker <brobecker@gnat.com>
9020 * observer.c: Minor comments edits.
9022 2003-02-27 J. Brobecker <brobecker@gnat.com>
9024 * observer.h, observer.c: New file.
9026 2003-02-27 Andrew Cagney <cagney@redhat.com>
9028 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9030 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9032 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9033 (M6812_OP_STS_EXT): Likewise.
9034 (m6811_prologue): Use the above to recognize prologue.
9035 (m6812_prologue): Likewise.
9037 2003-02-27 David Carlton <carlton@math.stanford.edu>
9039 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9041 (compare_psymbols): Ditto.
9042 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9044 2003-02-27 Michael Snyder <msnyder@redhat.com>
9046 * f-lang.c (build_fortran_types): New function.
9047 (_initialize_f_language): Gdbarch-register built-in fortran types.
9048 * doublest.c (extract_floating): Fix warning text.
9050 2003-02-27 Andrew Cagney <cagney@redhat.com>
9052 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9053 predicate. Replaces PUSH_DUMMY_FRAME.
9054 * gdbarch.h, gdbarch.c: Regnerate.
9055 * valops.c (hand_function_call): Update. Call
9056 generic_push_dummy_frame directly.
9057 * vax-tdep.c (vax_gdbarch_init): Update.
9058 * sparc-tdep.c (sparc_gdbarch_init): Update.
9059 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9060 * m68k-tdep.c (m68k_gdbarch_init): Update.
9061 * hppa-tdep.c (hppa_gdbarch_init): Update.
9062 * alpha-tdep.c (alpha_gdbarch_init): Update.
9063 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9064 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9065 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9066 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9067 push_dummy_frame to generic_push_dummy_frame.
9068 * v850-tdep.c (v850_gdbarch_init): Ditto.
9069 * sh-tdep.c (sh_gdbarch_init): Ditto.
9070 * s390-tdep.c (s390_gdbarch_init): Ditto.
9071 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9072 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9073 * mips-tdep.c (mips_gdbarch_init): Ditto.
9074 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9076 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9077 * i386-tdep.c (i386_gdbarch_init): Ditto.
9078 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9079 * frv-tdep.c (frv_gdbarch_init): Ditto.
9080 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9081 * cris-tdep.c (cris_gdbarch_init): Ditto.
9082 * avr-tdep.c (avr_gdbarch_init): Ditto.
9083 * arm-tdep.c (arm_gdbarch_init): Ditto.
9085 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9087 * mips-tdep.c (show_mips_abi): New function.
9088 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9089 command ``show mips abi''.
9091 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9093 From Elena Zannoni <ezannoni@redhat.com>
9094 * dbxread.c (process_one_symbol): Only record line 0 if one or
9095 more sline entries have been seen for the function.
9097 2003-02-26 Michael Chastain <mec@shout.net>
9099 * configure: Regenerate with autoconf 000227.
9101 2003-02-26 Michael Chastain <mec@shout.net>
9104 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9105 for old libc5/glibc.
9106 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9108 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9110 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9111 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9113 2003-02-26 Michael Chastain <mec@shout.net>
9115 * configure.in: New variable HAVE_UINTPTR_T.
9116 * configure, config.in: Regenerated.
9118 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9121 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9123 2003-02-25 Andrew Cagney <cagney@redhat.com>
9125 * frame.c (get_prev_frame): Add comment on check for
9126 inside_entry_func. Only check for inside_entry_file when not a
9127 dummy and not a sentinel. Check that the new frame is not inner
9130 2003-02-25 Andrew Cagney <cagney@redhat.com>
9132 * frame.c (frame_debug): New variable.
9133 (_initialize_frame): Add "set/show debug frame" command.
9134 (get_prev_frame): When frame_debug, print reason why unwind
9137 2003-02-25 Michael Chastain <mec@shout.net>
9139 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9140 to avoid uintptr_t definition problems.
9142 2003-02-25 David Carlton <carlton@math.stanford.edu>
9144 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9145 (SYMBOL_LINKAGE_NAME): Ditto.
9146 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9147 SYMBOL_LINKAGE_NAME.
9148 (struct general_symbol_info): Expand comment.
9149 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9150 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9151 (SYMBOL_MATCHES_REGEXP): Ditto.
9152 * symtab.c (symbol_natural_name): New function.
9153 * objfiles.h: Replace all uses of SYMBOL_NAME by
9154 DEPRECATED_SYMBOL_NAME.
9155 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9156 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9157 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9158 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9159 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9160 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9161 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9162 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9163 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9164 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9166 * ada-exp.y: Update copyright.
9167 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9168 * cp-valprint.c: Ditto.
9170 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9172 * infptrace.c (detach): Do not flag error if ptrace detach fails
9173 and errno is set to ESRCH.
9175 2003-02-24 Andrew Cagney <cagney@redhat.com>
9177 * infptrace.c (udot_info): Change type of udot_off to long. Use
9178 paddr when printing udot_off's value.
9180 2003-02-24 David Carlton <carlton@math.stanford.edu>
9182 * symtab.c (make_symbol_overload_list): Only read in partial
9183 symtabs containing a matching partial symbol.
9185 2003-02-24 David Carlton <carlton@math.stanford.edu>
9187 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9188 do the comparison, not strcmp.
9189 * symfile.c (compare_psymbols): Ditto.
9190 * defs.h: Declare strcmp_iw_ordered.
9191 * utils.c (strcmp_iw_ordered): New function.
9193 2003-02-24 Jim Blandy <jimb@redhat.com>
9195 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9196 support, shared libs): Remove my name from here, to better reflect
9199 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9201 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9202 (target_ops): Add to_have_continuable_watchpoint.
9203 * target.c (update_current_target): Add INHERIT line for
9204 to_have_continuable_watchpoint.
9205 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9206 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9207 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9208 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9210 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9212 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9215 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9217 * solib.c (solib_open): Call target defined search function after
9218 failing with solib-search-path.
9219 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9220 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9222 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9224 * MAINTAINERS: Add myself to Write After section.
9226 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9228 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9230 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9232 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9233 (m68hc11_add_reggroups): New function.
9234 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9235 (m68hc11_gdbarch_init): Install the reggroups.
9236 (_initialize_m68hc11_tdep): Initialize them.
9238 2003-02-21 James E Wilson <wilson@tuliptree.org>
9240 * MAINTAINERS: Update my email address.
9242 2003-02-21 David Carlton <carlton@math.stanford.edu>
9244 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9246 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9248 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9249 * symtab.h: Add opaque declarations of struct axs_value and
9251 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9252 (struct location_funcs): New type.
9253 (struct symbol): Add "loc" to aux_value.
9254 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9255 * dwarf2read.c: Include "dwarf2expr.h".
9256 (dwarf2_symbol_mark_computed): New function.
9257 (read_func_scope): Use it.
9258 (var_decode_location): New function.
9259 (new_symbol): Use it.
9260 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9262 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9263 (dwarf2expr_h, dwarf2loc_h): New variables.
9264 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9265 (dwarf2expr.o, dwarf2loc.o): New rules.
9266 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9267 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9269 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9270 * m2-exp.y (yylex): Likewise.
9271 * printcmd.c (address_info, print_frame_args): Likewise.
9272 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9273 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9274 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9275 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9276 * symtab.c (lookup_block_symbol): Likewise.
9278 2003-02-20 Adam Fedor <fedor@gnu.org>
9280 * symtab.h: Remove objc_specific struct
9281 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9282 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9283 Have language_objc use cplus_specific struct.
9285 2003-02-20 Tom Tromey <tromey@redhat.com>
9287 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9288 TYPE_NAME, when printing a String value. PR java/1075.
9290 2003-02-20 Adam Fedor <fedor@gnu.org>
9292 * objc-lang.h (find_methods): Remove declaration.
9293 * objc-lang.c (find_methods): Make static.
9295 2003-02-20 Christopher Faylor <cgf@redhat.com>
9297 * win32-nat.c (get_image_name): Check return value from
9299 (child_xfer_memory): Ditto.
9301 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9303 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9304 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9305 '${exec_prefix}' (in addition to the expansion thereof) as
9307 * configure: Rebuilt.
9309 2003-02-20 David Carlton <carlton@math.stanford.edu>
9311 * symtab.c (search_symbols): Revert the search_symbols part of my
9312 2002-12-23 patch. Add comment.
9314 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9316 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9317 * dbxread.c (elfstab_build_psymtabs): Don't call
9318 install_minimal_symbols.
9319 (stabsect_build_psymtabs): Likewise.
9320 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9322 * somread.c (som_symfile_read): Call install_minimal_symbols
9323 and do_cleanups earlier.
9324 * nlmread.c (nlm_symfile_read): Likewise.
9325 * mdebugread.c (elfmdebug_build_psymtabs): Call
9326 install_minimal_symbols and make appropriate cleanups.
9328 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9330 * solib.c (reload_shared_libraries): New function.
9331 (_initialize_solib): Add callbacks for ``set solib-search-path''
9332 and ``set solib-absolute-prefix''.
9334 2003-02-20 David Carlton <carlton@math.stanford.edu>
9336 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9338 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9339 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9340 * ada-typeprint.c (ada_typedef_print): Ditto.
9341 * ax-gdb.c (gen_var_ref): Ditto.
9342 * breakpoint.c (print_one_breakpoint): Ditto.
9343 * buildsym.c (finish_block): Ditto.
9344 * c-valprint.c (c_val_print): Ditto.
9345 * expprint.c (print_subexp): Ditto.
9346 * findvar.c (locate_var_value): Ditto.
9347 * infcmd.c (jump_command): Ditto.
9348 * linespec.c (decode_line_2, decode_compound): Ditto.
9349 * maint.c (maintenance_translate_address): Ditto.
9350 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9351 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9353 * p-valprint.c (pascal_val_print): Ditto.
9354 * stabsread.c (define_symbol): Ditto.
9355 * stack.c (print_frame, frame_info, print_block_frame_locals)
9356 (print_frame_arg_vars, return_command): Ditto.
9357 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9358 * symmisc.c (print_symbol): Ditto.
9359 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9360 (compare_search_syms, print_symbol_info, print_msymbol_info)
9361 (rbreak_command): Ditto.
9362 * tracepoint.c (tracepoints_info): Ditto.
9363 * typeprint.c (typedef_print): Ditto.
9364 * valops.c (value_of_variable, hand_function_call): Ditto.
9365 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9366 * ada-typeprint.c: Update Copyright.
9367 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9368 * tracepoint.c, cli/cli-cmds.c: Ditto.
9370 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9372 * frame.c (generic_unwind_get_saved_register): Make non-static.
9373 * frame.h (generic_unwind_get_saved_register): Declare.
9374 * mips-tdep.c (read_next_frame_reg): Fetch register from
9375 current regcache when frame is NULL.
9376 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9378 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9379 instead of frame_register_unwind().
9381 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9383 * remote-sim.c (gdbsim_insert_breakpoint)
9384 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9387 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9389 * remote.c (_initialize_remote): Add commands "set/show remote
9390 hardware-watchpoint-limit" and "set/show remote
9391 hardware-breakpoint-limit".
9392 (remote_hw_watchpoint_limit): Initialize to -1.
9393 (remote_hw_breakpoint_limit): Ditto.
9394 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9396 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9398 * coff-pe-read.c: New file - support reading of minimal symbols from a
9399 portable executable using the export table.
9400 * coff-pe-read.h: New file.
9401 * coffread.c: Include coff-pe-read.h.
9402 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9403 debugging symbols found.
9404 * Makefile.in (SFILES): Add coff-pe-read.o.
9405 (coff_pe_read_h): Define.
9406 (COMMON_OBS): Add coff-pe-read.o.
9407 (coffread.o): Add coff_pe_read_h dependency.
9408 (coff-pe-read.o): New target.
9410 2003-02-19 David Carlton <carlton@math.stanford.edu>
9412 * Makefile.in (SFILES): Add block.c.
9414 (COMMON_OBS): Add block.o.
9416 (x86-64-tdep.o): Add $(block_h).
9417 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9418 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9419 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9420 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9421 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9422 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9423 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9424 * value.h: Add opaque declaration for struct block.
9425 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9426 * ada-lang.h: Ditto.
9427 * x86-64-tdep.c: #include "block.h"
9428 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9429 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9430 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9431 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9432 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9433 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9434 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9435 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9436 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9437 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9438 * symtab.c (block_function): Ditto.
9439 (contained_in): Ditto.
9440 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9441 block.h. Add opaque declaration for struct block.
9442 * symtab.h: Move block_function and contained_in declarations to
9443 block.h. Add opaque declarations for struct block, struct
9445 (struct block): Move to block.h.
9446 (struct blockvector): Ditto.
9447 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9448 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9449 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9450 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9451 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9453 * block.c: New file.
9454 * block.h: New file.
9456 2003-02-19 Theodore A. Roth <troth@openavr.org>
9458 * avr-tdep.c (avr_extract_return_value): Remove function.
9459 (avr_store_return_value): Remove function.
9460 (avr_extract_struct_value_address): Remove function.
9461 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9463 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9465 * rs6000-tdep.c: Include "gdb_assert.h".
9466 (registers_e500): Add "acc" and "spefscr".
9467 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9468 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9469 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9471 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9473 2003-02-18 Keith Seitz <keiths@redhat.com>
9475 * Makefile.in: Add gdbtk-interps.c.
9477 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9479 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9480 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9482 2003-02-18 Andrew Cagney <cagney@redhat.com>
9484 * symtab.h (struct objfile): Add opaque declaration.
9486 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9488 From Jim Ingham <jingham@apple.com>:
9489 * dbxread.c (process_one_symbol): Use last_function_start rather
9490 than function_start_offset to find the real beginning of the
9491 current function. The latter is just the text section offset on
9492 some systems, the former is always the real function start.
9494 2003-02-17 Andrew Cagney <cagney@redhat.com>
9496 * configure.in: Revert ${target} != ${host}.
9498 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9500 * configure.in (Makefile): Use the test ${target} != ${host},
9501 instead of the absence of the "nm.h" file, to determine of the
9502 configuration non-native.
9503 * configure: Regenerate.
9505 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9507 From Brian Ford <ford@vss.fsi.com>
9509 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9510 conditionalize tui_active test.
9511 (lookup_cmd_1): Ditto.
9513 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9515 * configure.in: Add check for _etext.
9516 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9518 * config.in, configure: regenerated.
9520 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9522 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9524 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9526 * main.c (tui_version): Delete variable.
9527 (captured_main): When --tui, set interpreter_p to "tui" instead of
9528 enabling tui_version.
9529 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9531 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9532 * cli/cli-cmds.c (disassemble_command): Ditto.
9533 * defs.h (tui_version): Delete declaration.
9534 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9535 (tui-interp.o): Add rules.
9536 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9538 2003-02-14 Christopher Faylor <cgf@redhat.com>
9540 * win32-nat.c (register_loaded_dll): Correctly set address range for
9543 2003-02-12 Jason Molenda (jmolenda@apple.com)
9545 * symmisc.c (print_objfile_statistics): Include information about
9546 the number of psymtabs and symtabs in each object file.
9548 2003-02-13 Keith R Seitz <keiths@redhat.com>
9550 * main.h (struct captured_main_args): Add interpreter_p.
9551 * main.c (captured_main): Initialize interpreter_p from context.
9552 * gdb.c (main): Set interpreter_p argument.
9553 * Makefile.in (gdb.o): Add dependency for interps.h.
9555 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9557 * event-top.c (cli_command_loop): Delete declaration.
9558 (_initialize_event_loop): Delete function setting event_loop_hook.
9559 * event-top.h (cli_command_loop): Declare. Update copyright.
9560 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9561 * interps.c (current_interp_command_loop): When event_loop_p, call
9564 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9566 * interps.h (interp_command_loop_ftype): Change return type to
9569 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9571 * x86-64-tdep.c (x86_64_extract_return_value)
9572 (x86_64_store_return_value): Use regcache instead of regbuf.
9573 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9574 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9576 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9578 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9579 * aclocal.m4: Regenerate.
9580 * configure: Regenerate.
9582 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9583 TCL_LD_SEARCH_FLAGS.
9585 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9587 * dwarf2cfi.c: Reindented.
9589 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9591 * interps.c (clear_interpreter_hooks): Convert function definition
9594 2003-02-07 David Carlton <carlton@math.stanford.edu>
9596 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9598 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9600 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9601 (struct type): ...to here.
9602 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9604 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9605 (replace_type): Set length on all type variants for a given type.
9607 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9609 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9611 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9613 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9615 * Makefile.in (symm-nat.o): Update dependencies.
9616 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9617 (lynx-nat.o, ia64-linux-nat.): Ditto.
9618 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9619 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9620 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9622 * Makefile.in (inflow_h): Define.
9623 (procfs.o, inflow.o, procfs.o): Update dependencies.
9624 * inftarg.c (child_stop): Delete extern declaration of
9625 inferior_process_group. Include "inflow.h".
9626 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9627 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9628 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9629 (our_process_group, inferior_process_group): Extern declarations.
9631 * procfs.c: Include "gdb_assert.h".
9633 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9634 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9635 * jv-typeprint.c (java_type_print_base): Ditto.
9636 * typeprint.c (typedef_print): Eliminate STREQ.
9637 * cli/cli-script.c (define_command, define_command): Ditto.
9638 * main.c (captured_main): Ditto.
9639 * values.c (lookup_internalvar): Ditto.
9640 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9641 within `if' conditional.
9642 * linespec.c (decode_line_2): Ditto.
9643 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9644 (bfd_openw_with_cleanup): Ditto.
9646 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9648 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9649 legacy_extract_return_value and store_return_value to
9650 legacy_return_value.
9652 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9654 * win32-nat.c (get_relocated_section_addrs): New function. Find
9655 section load addresses for symbol handling in relocated DLLs.
9656 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9658 2003-02-05 Fred Fish <fnf@intrinsity.com>
9660 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9662 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9664 (angel_RDI_info): Ditto.
9665 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9667 (threads_continue_all_with_signals): Ditto.
9669 2003-02-05 Jim Ingham <jingham@apple.com>
9670 Keith Seitz <keiths@redhat.com>
9671 Elena Zannoni <ezannoni@redhat.com>
9672 Andrew Cagney <ac131313@redhat.com>
9674 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9675 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9676 (SUBDIR_MI_OBS): Add "mi-interp.o".
9677 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9678 (SFILES): Add "interps.c".
9679 (COMMON_OBS): Add "interps.o".
9680 (interps_h, mi_main_h): Define.
9681 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9682 (mi-main.o, main.o, event-top.o): Update dependencies.
9683 * cli/cli-interp.c: New file.
9684 * interps.h, interps.c: New files.
9685 * top.c: (gdb_init): Don't install the default interpreter, handed
9687 * main.c: Include "interps.h".
9688 (interpreter_p): Note that it should malloc'ed.
9689 (captured_command_loop): Call current_interp_command_loop.
9690 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9691 xfree and xstrdup when updating interpreter_p. Install the
9692 default interpreter. Add hack to stop mi1's copyright notice
9694 * event-top.h (gdb_setup_readline): Declare.
9695 (gdb_disable_readline): Declare.
9696 * event-top.c: Include "interps.h".
9697 (display_gdb_prompt): Call current_interp_display_prompt_p.
9698 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9699 gdb_stdlog, and gdb_stdtarg.
9700 (_initialize_event_loop): Don't call gdb_setup_readline.
9701 * cli-out.c (cli_out_set_stream): New function.
9702 * cli-out.h (cli_out_set_stream): Declare.
9704 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9706 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9707 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9708 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9709 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9710 config/i386/i386v42mp.mt: Removed.
9712 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9714 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9717 2003-02-05 Michael Chastain <mec@shout.net>
9719 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9720 2.12.1 and earlier versions.
9722 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9724 Remove orphaned hosts, targets and files.
9725 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9726 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9727 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9728 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9729 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9730 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9731 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9732 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9733 * config/sparc/tm-sp64sim.h: Delete.
9734 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9736 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9737 mips*-dec-mach3* targets.
9739 2003-02-04 Michael Chastain <mec@shout.net>
9741 * NEWS: Fix typo: sepcifying -> specifying.
9743 2003-02-04 Michael Chastain <mec@shout.net>
9745 * dwarfread.c: Add documentation on the state of dwarf-1,
9746 looking towards obsoletion.
9748 2003-02-03 Michael Chastain <mec@shout.net>
9750 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9751 gdb/testsuite/gdb.c++/pr-1023.exp.
9753 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9755 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9756 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9758 * utils.c (init_page_info): Delete reference to MPW in comments.
9759 * main.c (captured_main): Delete #ifdef MPW.
9761 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9763 * NEWS: Note that the m32r-*-elf* is obsolete.
9764 * monitor.c (monitor_expect): Obsolete reference to m32r.
9765 * configure.tgt: Mark m32r-*-elf* as obsolete.
9766 * MAINTAINERS: Mark m32k as obsolete.
9767 * m32r-rom.c: Obsolete file.
9768 * config/m32r/m32r.mt: Obsolete file.
9769 * config/m32r/tm-m32r.h: Obsolete file.
9770 * m32r-stub.c: Obsolete file.
9771 * m32r-tdep.c: Obsolete file.
9773 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9775 * NEWS: Mention that the z8k-zilog-none is obsolete.
9776 * MAINTAINERS: Mark z8k as obsolete.
9777 * configure.tgt: Obsolete the z8k-*-coff* target.
9778 * config/z8k/z8k.mt: Obsolete file.
9779 * config/z8k/tm-z8k.h: Obsolete file.
9780 * z8k-tdep.c: Obsolete file.
9782 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9784 * NEWS: Mention that the mn10200-elf is obsolete.
9785 * configure.tgt: Obsolete mn10200-*-* target.
9786 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9787 mention that the mn10200 is obsolete.
9788 * breakpoint.h: Ditto.
9789 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9790 * config/mn10200/mn10200.mt: Obsolete file.
9791 * config/mn10200/tm-mn10200.h: Obsolete file.
9792 * mn10200-tdep.c: Obsolete file.
9794 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9796 * MAINTAINERS: Mark h8500 as obsolete.
9797 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9798 * findvar.c (value_from_register): Ditto.
9799 * h8500-tdep.c: Mark file as obsolete.
9800 * config/h8500/h8500.mt: Ditto.
9801 * config/h8500/tm-h8500.h: Ditto.
9802 * NEWS: Mention that h8500 is obsolete.
9804 2003-02-04 David Carlton <carlton@math.stanford.edu>
9806 * objfiles.c (allocate_objfile): Always set name. Add comment at
9808 * jv-lang.c (get_dynamics_objfile): Add comment.
9810 2003-02-04 David Carlton <carlton@math.stanford.edu>
9812 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9813 * printcmd.c (build_address_symbolic): Replace uses of
9814 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9815 SYMBOL_NAME, and asm_demangle.
9818 2003-02-04 David Carlton <carlton@math.stanford.edu>
9820 * linespec.c (decode_compound): Extract code into
9822 (lookup_prefix_sym): New function.
9824 2003-02-04 David Carlton <carlton@math.stanford.edu>
9826 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9827 FLOAT_COERCION_BADNESS.
9828 * gdbtypes.c (rank_one_type): Replace all uses of
9829 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9831 2003-02-04 Jim Blandy <jimb@redhat.com>
9833 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9834 section, let dwarf_macinfo_section point to it, not
9837 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9839 Pointed out by Anton Blanchard <anton@samba.org>.
9840 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9841 (ppc_linux_at_sigtramp_return_path): Use it.
9843 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9845 * defs.h (streq): Add prototype.
9846 * utils.c (streq): New function.
9848 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9849 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9850 * mdebugread.c (new_symbol): Likewise.
9851 * stabsread.c (define_symbol): Likewise.
9852 * coffread.c (process_coff_symbol): Likewise.
9853 * dwarfread.c (new_symbol): Likewise.
9855 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9856 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9858 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9859 SYMBOL_INIT_DEMANGLED_NAME.
9860 * objfiles.c: Include "hashtab.h".
9861 (allocate_objfile): Call htab_set_functions_ex for the
9862 demangled_names_hash.
9863 (free_objfile): Call htab_delete for the demangled_names_hash.
9864 * objfiles.h (struct htab): Add declaration.
9865 (struct objfile): Add demangled_names_hash.
9866 * symfile.c: Include "hashtab.h".
9867 (reread_symbols): Call htab_delete for the demangled_names_hash.
9868 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9869 SYMBOL_NAME in the bcache.
9870 * symtab.c: Include "hashtab.h". Update comments.
9871 (create_demangled_names_hash, symbol_set_names): New functions.
9872 (symbol_find_demangled_name): New function, broken out from
9873 symbol_init_demangled_names.
9874 (symbol_init_demangled_names): Use it.
9875 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9876 (SYMBOL_SET_NAMES): New macro.
9877 (symbol_set_names): Add prototype.
9879 2003-02-03 Jim Blandy <jimb@redhat.com>
9881 Use a single, consistent representation for an empty minimal
9882 symbol table in an objfile.
9883 * objfiles.c (terminate_minimal_symbol_table): New function.
9884 (allocate_objfile): Call it.
9885 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9886 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9888 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9889 objfile has minimal symbols, compare minimal_symbol_count to zero,
9890 instead of comparing msymbols with NULL.
9891 * objfiles.c (have_minimal_symbols): Same.
9892 * solib-sunos.c (solib_add_common_symbols): Call
9893 terminate_minimal_symbol_table.
9894 * symfile.c (reread_symbols): Same.
9896 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9898 * s390-tdep.c (s390_address_class_type_flags)
9899 (s390_address_class_type_flags_to_name)
9900 (s390_address_class_name_to_type_flags): New functions.
9901 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9902 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9904 2003-02-03 Michael Snyder <msnyder@redhat.com>
9906 * arm-tdep.c: Fix spell-o in comment.
9908 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9910 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9911 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9912 error messages to contain BFD filename.
9914 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9916 Fix PR gdb/742 gdb/743 gdb/877
9917 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9918 (do_mixed_source_and_assembly): Use
9919 make_cleanup_ui_out_tuple_begin_end and
9920 make_cleanup_ui_out_tuple_begin_end.
9921 (do_mixed_source_and_assembly): Ditto.
9922 * thread.c (do_captured_list_thread_ids): Ditto.
9923 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9924 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9925 ui_out_tuple_end): Delete prototypes.
9926 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9927 ui_out_list_end, ui_out_tuple_end): Delete.
9929 From Kevin Buettner <kevinb@redhat.com>:
9930 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9931 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9932 (do_cleanup_table_end): New functions.
9933 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9934 Use cleanups to invoke_ui_out_tuple_end().
9935 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9936 * cli/cli-setshow.c (cmd_show_list): Use
9937 make_cleanup_ui_out_tuple_begin_end.
9939 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9941 * frame.c (frame_unwind_register): New function.
9942 (frame_unwind_unsigned_register): Use.
9943 (frame_unwind_signed_register): Use.
9944 (frame_read_register): New function.
9945 * frame.h (frame_unwind_register): Declare.
9946 (frame_read_register): Declare.
9948 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9949 and frame_unwind_register instead of read_memory, write_register
9950 and deprecated_write_register_bytes.
9952 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9954 * frame.h: Note that namelen can be negative.
9955 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9958 * NEWS: Mention that the d10v's `regs' command is deprecated.
9959 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9960 (d10v_print_registers_info): New function.
9961 (show_regs): Call d10v_print_registers_info.
9962 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9964 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9966 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9967 lost in the previous patch.
9969 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9971 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9972 * stack.c (print_frame_info_base): Output complete FRAME tuple
9973 for synthesized frames.
9975 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9977 * mips-nat.c (zerobuf): Delete.
9978 (fetch_inferior_registers): Alloc local zerobuf.
9979 (fetch_core_registers): Alloc local zerobuf.
9980 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9981 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9982 * thread-db.c (thread_db_store_registers): Ditto.
9983 * sh-tdep.c (sh_do_register): Ditto.
9984 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9985 * remote-sim.c (gdbsim_store_register): Ditto.
9986 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9987 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9988 * monitor.c (monitor_supply_register): Ditto.
9989 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9990 * mips-nat.c (fetch_inferior_registers): Ditto.
9991 * m68klinux-nat.c (fetch_register): Ditto.
9992 * lynx-nat.c (fetch_inferior_registers): Ditto.
9993 (fetch_inferior_registers): Ditto.
9994 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9995 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9996 (hpux_thread_store_registers): Ditto.
9997 * hppah-nat.c (fetch_register): Ditto.
9998 * hppab-nat.c (fetch_register): Ditto.
9999 * hppa-tdep.c (pa_register_look_aside): Ditto.
10000 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10001 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10003 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10005 * gdbarch.sh: Explictly specify all method levels. When a
10006 variable with an empty level, provide a non-multi-arch default.
10007 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10008 * gdbarch.h: Re-generate.
10009 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10010 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10012 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10014 * defs.h (host_pointer_to_address): Delete declaration.
10015 (address_to_host_pointer): Delete declaration.
10016 * utils.c (host_pointer_to_address): Delete function.
10017 (address_to_host_pointer): Delete function.
10018 * procfs.c (procfs_address_to_host_pointer): New function.
10019 * procfs.c (proc_set_watchpoint): Use.
10020 (procfs_can_use_hw_breakpoint): Update comments.
10021 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10022 (som_solib_add): Use.
10023 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10024 * hppa-tdep.c (unwind_command): Use.
10026 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10028 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10031 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10032 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10033 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10034 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10035 (define_symbol): Update.
10036 * symfile.c (generic_load): Remove references to nindy.
10037 * symtab.c: Remove references to nindy.
10039 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10041 * infcmd.c (print_float_info): Delete code conditional on
10043 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10044 * config/m68k/nm-apollo68b.h: Ditto.
10045 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10046 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10047 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10049 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10051 * config/i386/tm-i386os9k.h: Removed.
10053 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10054 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10055 they're identical to i[3456]86-*-sysv* now.
10056 * config/i386/i386v32.mh: Removed.
10057 * config/i386/xm-i386v32.h: Removed.
10058 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10060 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10062 * config/i386/i386dgux.mh: Removed.
10063 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10065 * configure.in: Fix typo.
10066 * configure: Regenerated.
10068 2003-01-31 David Carlton <carlton@math.stanford.edu>
10070 * dwarf2read.c (dwarf2_locate_sections): Set
10071 dwarf_ranges_section.
10073 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10075 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10076 * utils.c: Update comments documenting legitimate uses of PTR.
10078 * utils.c: Re-indent.
10080 * config/djgpp/fnchange.lst: Delete nindy files.
10081 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10082 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10083 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10084 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10085 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10086 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10087 * Makefile.in (init.c): Remove nindy references.
10088 (saber_gdb): Delete rule.
10089 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10090 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10092 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10093 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10094 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10095 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10096 nindy-share/stop.h.
10097 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10098 * saber.suppress: Delete file.
10100 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10102 * dbxread.c (stabs_data): New static variable.
10103 (fill_symbuf): Support an in-memory buffer for stabs data.
10104 (stabs_seek): New function.
10105 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10106 (read_ofile_symtab): Use stabs_seek.
10107 (elfstab_build_psymtabs): Take an asection* instead of
10108 an offset and size. Relocate the stabs data if necessary.
10109 Save the section* for dbx_psymtab_to_symtab.
10110 * dwarf2read.c: Add section variables for each debug section.
10111 (dwarf2_locate_sections): Fill them in.
10112 (dwarf2_read_section): Take an asection* argument.
10113 Relocate the section contents if necessary.
10114 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10115 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10116 it to dwarf2_read_section.
10117 (dwarf2_build_frame_info): Update callers.
10118 * elfread.c (elf_symfile_read): Update call to
10119 elfstab_build_psymtabs.
10120 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10121 (DBX_STAB_SECTION): New macro.
10122 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10123 * symfile.c (symfile_dummy_outputs): New function.
10124 (symfile_relocate_debug_section): New function.
10125 * symfile.h (symfile_relocate_debug_section): Add prototype.
10127 2003-01-31 Richard Henderson <rth@redhat.com>
10129 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10130 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10131 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10132 * alpha-tdep.c (alpha_register_name): Add "unique".
10133 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10134 (ALPHA_UNIQUE_REGNUM): New.
10135 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10137 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10139 * README: Remove reference to Ericsson 1800 monitor.
10140 * Makefile.in (remote-es.o): Delete rule.
10141 (ALLDEPFILES): Delete remote-es.c.
10142 * remote-es.c: Delete file.
10143 * config/m68k/es1800.mt: Delete file.
10144 * config/djgpp/fnchange.lst: Update.
10145 * configure.tgt: Delete m68*-ericsson-* target.
10147 2003-01-31 Adam Fedor <fedor@gnu.org>
10149 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10150 Remove duplicate/shadowing variable of same name.
10152 2003-01-30 Jim Blandy <jimb@redhat.com>
10154 * symfile.c (find_separate_debug_file): Assert that the objfile's
10155 directory name we compute ends with a slash, and then assume that
10156 that's so everywhere we use it.
10158 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10160 * valops.c (value_assign): Flush frame cache after stores to memory
10163 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10165 * Makefile.in (mon960-rom.o): Delete rule.
10166 * mon960-rom.c: Delete file.
10168 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10170 * d10v-tdep.c: Include "frame-unwind.h".
10171 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10173 (next_addr, uses_frame): Delete.
10174 (struct d10v_unwind_cache): Define.
10175 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10176 Use info instead of next_addr and uses_frame globals.
10177 (d10v_frame_init_saved_regs): Delete function.
10178 (d10v_init_extra_frame_info): Delete function.
10179 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10180 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10181 init_frame_pc or frame_saved_pc.
10182 (d10v_pop_frame): Delete function.
10183 (do_d10v_pop_frame): Delete function.
10184 (d10v_frame_chain): Delete function.
10185 (d10v_frame_chain_valid): Delete function.
10186 (d10v_frame_pc_unwind): New function.
10187 (d10v_frame_id_unwind): New function.
10188 (saved_regs_unwinder): New function.
10189 (d10v_frame_register_unwind): New function.
10190 (d10v_frame_pop): New function.
10191 (d10v_frame_unwind): New variable.
10192 (d10v_frame_p): New function.
10193 (d10v_frame_saved_pc): Delete function.
10194 * Makefile.in (d10v-tdep.o): Update dependencies.
10196 2003-01-30 J. Brobecker <brobecker@gnat.com>
10198 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10199 causing some regressions due to a change in the default value
10202 2003-01-29 Richard Henderson <rth@redhat.com>
10203 Elena Zannoni <ezannoni@redhat.com>
10204 Daniel Jacobowitz <drow@mvista.com>
10207 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10209 (RANGES_SECTION): New.
10210 (dwarf_ranges_buffer): New variable.
10211 (struct comp_unit_head): Add member "die".
10212 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10213 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10214 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10215 (dwarf2_locate_sections): Likewise.
10216 (dwarf2_build_psymtabs): Read .debug_ranges.
10217 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10218 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10219 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10220 Look for DW_AT_ranges and return the bounding box.
10222 2003-01-29 Brian Ford <ford@vss.fsi.com>
10224 * win32-nat.c (cygwin_pid): Removed as unused.
10225 (child_attach): Try fall back to Cygwin pid.
10227 2003-01-29 Jim Blandy <jimb@redhat.com>
10229 * objfiles.h (struct objfile): Doc fix.
10231 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10233 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10234 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10235 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10236 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10237 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10238 (FRAME_SAVED_PC): Change to a function with predicate.
10239 * gdbarch.h, gdbarch.c: Re-generate.
10241 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10243 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10245 * complaints.c (complain): Delete function.
10246 * complaints.h (struct deprecated_complaint): Delete definition.
10247 (complain): Delete declaration.
10249 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10251 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10254 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10256 * sentinel-frame.h, sentinel-frame.c: New files.
10257 * Makefile.in (frame.o): Update dependencies.
10258 (SFILES): Add sentinel-frame.c.
10259 (sentinel_frame_h): Define.
10260 (COMMON_OBS): Add sentinel-frame.o.
10261 (sentinel-frame.o): Specify dependencies.
10262 * frame.c: Include "sentinel-frame.h".
10263 (frame_register_unwind): Rewrite assuming that there is always a a
10265 (frame_register, generic_unwind_get_saved_register): Ditto.
10266 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10267 (create_sentinel_frame, unwind_to_current_frame): New functions.
10268 (get_current_frame): Rewrite using create_sentinel_frame and
10269 unwind_to_current_frame. When possible, always create a frame.
10270 (create_new_frame): Set next to the sentinel frame.
10271 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10272 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10273 ID cache when necessary.
10274 (frame_saved_regs_id_unwind): Use frame_relative_level.
10275 (deprecated_generic_get_saved_register): Use frame_relative_level,
10276 get_frame_saved_regs, get_frame_pc, get_frame_base and
10278 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10281 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10283 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10285 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10287 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10288 (maintenance_set_profile_cmd): Use error () instead of warning ().
10290 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10292 * configure.in: Check that -pg works if using --enable-profiling.
10293 Check for monstartup and _mcleanup regardless of --enable-profiling.
10294 * maint.c: Check for monstartup and _mcleanup before using them.
10295 * config.in: Regenerated.
10296 * configure: Regenerated.
10298 2003-01-24 Nick Clifton <nickc@redhat.com>
10300 * Add sh2e support:
10302 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10304 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10305 (sh2e_show_regs): New.
10306 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10307 * config/sh/tm-sh.h: Added sh2e to comments.
10309 2003-01-23 Jim Blandy <jimb@redhat.com>
10311 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10312 symbols found)" message here; we haven't checked for a separate
10313 debug info file yet, so we don't know yet.
10314 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10315 we've looked everywhere. Also, there's no need to print a special
10316 message when we're loading the separate debug info file: the one
10317 symbol_file_add prints is fine.
10319 2003-01-23 Alexander Larsson <alexl@redhat.com>
10320 Jim Blandy <jimb@redhat.com>
10322 Add support for executables whose debug info has been separated
10323 out into a separate file, leaving only a link behind.
10324 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10325 and separate_debug_objfile_backlink.
10326 (put_objfile_before): New declaration.
10327 * symfile.c: #include "filenames.h".
10328 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10329 debug info in a separate file, read that, too. Save the addrs
10330 argument, so we can use it again to read the separated debug info;
10331 syms_from_objfile modifies the table we pass it.
10332 (reread_symbols): After re-reading an objfile, call
10333 reread_separate_symbols to refresh its separate debug info
10334 objfile, if it has one.
10335 (reread_separate_symbols, find_separate_debug_file,
10336 get_debug_link_info, separate_debug_file_exists): New functions.
10337 (debug_file_directory): New global var.
10338 (_initialize_symfile): Initialize debug_file_directory, and
10339 provide the new `set debug-file-directory' command to let the user
10341 * objfiles.c (free_objfile): If this objfile has its debug info in
10342 a separate objfile, free that one too. If this is itself a
10343 separate debug info objfile, clear our parent's backlink.
10344 (put_objfile_before): New function.
10345 * utils.c (gnu_debuglink_crc32): New function.
10346 * defs.h (gnu_debuglink_crc32): New declaration.
10347 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10348 * configure.in: Handle --with-separate-debug-dir config option.
10349 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10350 * acconfig.h (DEBUGDIR): New macro.
10351 * configure, aclocal.m4, config.in: Regenerated.
10353 2003-01-22 Jim Blandy <jimb@redhat.com>
10355 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10356 like the old symbol_file_add, but taking new arguments: you can
10357 now pass in either a `struct section_addr_info' list to say where
10358 each section is loaded, or a `struct section_offsets' table. Pass
10359 these new arguments through to syms_from_objfile as appropriate.
10360 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10361 with the appropriate quiescent values for the new arguments.
10363 * symfile.c: #include "gdb_assert.h".
10364 (syms_from_objfile): Add the ability to pass in a section offset
10365 table directly, as an alternative to the section_addr_info table.
10366 Document arguments better.
10367 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10368 * symfile.h (syms_from_objfile): Update declaration.
10369 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10371 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10373 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10375 Original patch by Tom Tromey <tromey@cygnus.com> and
10376 Jason Molenda <jmolenda@apple.com>.
10377 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10378 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10379 * NEWS: Mention profiling.
10380 * configure.in (--enable-gdbtk): Fix typo.
10381 (--enable-profiling): New. Set PROFILE_CFLAGS.
10382 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10384 (profiling_state): New variable.
10385 (mcleanup_wrapper): New function.
10386 (_initialize_maint): Remove NOTYET, fix call to
10387 add_setshow_boolean_cmd for "maint set profile".
10388 * configure: Regenerated.
10390 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10392 * Makefile.in (install-gdbtk): Install PNG images too.
10394 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10396 * exec.c (text_start): Delete global variable.
10397 (exec_file_attach): Make text_start local to the function.
10398 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10399 * valops.c (hand_function_call): Delete code that handles
10400 BEFORE_TEXT_END and AFTER_TEXT_END.
10401 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10402 of CALL_DUMMY_LOCATION.
10403 * gdbarch.c: Regenerate.
10404 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10405 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10406 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10407 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10408 (text_end): Delete extern declaration.
10410 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10412 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10413 * blockframe.c (backtrace_below_main): Move to "frame.c".
10414 (frame_chain_valid): Delete check for backtrace_below_main.
10415 (_initialize_blockframe): Delete initialization, move ``set
10416 backtrace-below-main'' command to "frame.c".
10417 (do_flush_frames_sfunc): Delete function.
10418 * frame.c: Include "command.h" and "gdbcmd.h".
10419 (frame_type_from_pc): New function.
10420 (create_new_frame): Use frame_type_from_pc.
10421 (legacy_get_prev_frame): New function.
10422 (get_prev_frame): Rewrite. When an old style frame, call
10423 legacy_get_prev_frame. Otherwize, unwind the PC first.
10424 (_initialize_frame): Add ``set backtrace-below-main'' command.
10425 * Makefile.in (frame.o): Update dependencies.
10427 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10429 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10430 DEPRECATED_REGISTERS_INFO.
10432 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10434 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10435 Maintainers'. Update `Various Maintainers'.
10437 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10439 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10440 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10441 Suppress actual parameters when `-'.
10442 * gdbarch.h, gdbarch.c: Regenerate.
10444 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10446 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10447 code handling dummy frames.
10449 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10451 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10452 (struct frame_unwind): Add field pop.
10453 * frame.h (frame_pop): Declare.
10454 * frame.c (frame_saved_regs_pop): New function.
10455 (trad_frame_unwinder): Add frame_saved_regs_pop.
10456 (frame_pop): New function.
10457 * dummy-frame.c (dummy_frame_pop): New function.
10458 (discard_innermost_dummy): New function.
10459 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10460 (dummy_frame_unwind): Add dummy_frame_pop.
10461 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10462 * valops.c (hand_function_call): Ditto.
10463 * stack.c (return_command): Ditto.
10465 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10467 * cris-tdep.c: Fix function declaration indentation.
10468 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10469 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10470 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10471 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10472 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10473 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10475 2003-01-18 Michael Chastain <mec@shout.net>
10477 * README (Unpacking and Installation -- quick overview):
10478 Warn against ".../gdb-5.3/gdb/configure".
10480 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10482 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10483 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10484 (struct frame_unwind): Declare opaque.
10485 (dummy_frame_p): Declare function.
10486 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10487 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10488 * dummy-frame.c: Include "frame-unwind.h".
10489 (dummy_frame_p): New function.
10490 (dummy_frame_unwind): New variable.
10491 * frame.c: Include "frame-unwind.h".
10492 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10493 to use the new unwind field.
10494 (set_unwind_by_pc): Delete function.
10495 (create_new_frame, get_prev_frame): Set unwind field using
10496 frame_unwind_find_by_pc.
10497 (trad_frame_unwind, trad_frame_unwinder): New variables.
10498 * frame.h (trad_frame_unwind): Declare variable.
10499 (frame_id_unwind_ftype): Delete declaration.
10500 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10501 (struct frame_unwind): Declare opaque.
10502 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10503 register_unwind with a single unwind pointer.
10504 * frame-unwind.h, frame-unwind.c: New files.
10505 * Makefile.in (SFILES): Add frame-unwind.c.
10506 (frame_unwind_h): Define.
10507 (COMMON_OBS): Add frame-unwind.o.
10508 (frame-unwind.o): Specify dependencies.
10509 (frame.o, dummy-frame.o): Update dependencies.
10511 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10513 * ada-valprint.c: Eliminate PTR.
10514 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10515 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10516 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10517 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10518 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10519 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10520 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10522 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10524 * main.c (captured_main): Don't use PTR.
10525 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10526 * gdbtypes.c (lookup_primitive_typename): Ditto.
10527 (lookup_struct_elt_type): Ditto.
10528 * f-valprint.c (info_common_command): Ditto.
10529 (list_all_visible_commons): Ditto.
10530 * jv-typeprint.c (java_type_print_base): Ditto.
10532 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10533 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10534 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10535 i386-interix-nat.c and i386-interix-tdep.c. Rename
10536 m68klinux-nat.c and m68klinux-tdep.c. Rename
10537 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10538 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10539 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10540 * main.c (captured_main): Use xfree, not free.
10542 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10544 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10545 ID back using a parameter.
10546 * frame.c (frame_id_unwind): Update call.
10547 (frame_saved_regs_id_unwind): Update.
10548 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10549 * dummy-frame.h (struct frame_id): Add opaque declaration.
10550 (dummy_frame_id_unwind): Update declaration.
10552 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10554 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10556 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10558 * MAINTAINERS (Stephen P. Smith): Updated email address.
10560 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10563 * breakpoint.c (until_break_command): Add new argument. Use it to
10564 decide whether to stop only at the current frame or not.
10565 * breakpoint.h (until_break_command): Update prototype.
10566 * infcmd.c (until_command): Add new argument to until_break_command
10568 (advance_command): New function.
10569 (_initialize_infcmd): Update help string for 'until' command.
10570 Add new 'advance' command.
10572 2003-01-14 David Carlton <carlton@math.stanford.edu>
10574 * linespec.c (decode_line_1): Normalize comments.
10575 (set_flags): Ditto.
10576 (locate_first_half): Ditto.
10577 (decode_compound): Ditto.
10578 (symtab_from_filename): Ditto.
10579 (decode_all_digits): Ditto.
10580 (decode_dollar): Ditto.
10581 (find_methods): Ditto.
10582 (find_toplevel_char): Ditto.
10584 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10586 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10587 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10588 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10589 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10590 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10591 * language.c, language.h, m32r-tdep.c: Update copyright.
10592 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10593 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10594 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10595 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10596 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10597 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10599 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10601 * stabsread.h (process_later, resolve_cfront_continuation):
10603 Update copyright years.
10604 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10605 Update copyright year.
10606 * dbxread.c(struct cont_elem): Obsolete.
10607 (process_later, process_now): Obsolete functions.
10608 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10609 Update copyright year.
10610 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10611 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10612 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10613 (parse_partial_symbols): Obsolete cfront support.
10615 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10617 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10618 read_cfront_baseclasses, read_cfront_member_functions,
10619 resolve_cfront_continuation,read_cfront_static_fields,
10620 copy_cfront_struct_fields): Obsolete functions.
10621 (define_symbol, read_one_struct_field): Obsolete cfront support.
10622 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10623 Update Copyright year.
10625 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10627 * stack.c (print_frame_info, print_stack_frame_base_stub,
10628 print_stack_frame_base, show_and_print_stack_frame_stub,
10629 show_and_print_stack_frame, print_only_stack_frame_stub,
10630 print_only_stack_frame): Delete functions.
10631 (print_stack_frame_stub): Call print_frame_info instead of
10632 print_frame_info_base.
10633 (print_frame_info_base): Rename to print_frame_info.
10634 (backtrace_command_1): Call print_frame_info, instead of
10635 print_frame_info_base.
10636 (current_frame_command): Call print_stack_frame, instead of
10637 print_only_stack_frame.
10638 (frame_command): Call print_stack_frame, instead of
10639 show_and_print_stack_frame.
10640 (up_command): Ditto.
10641 (down_command): Ditto.
10642 * frame.h (print_only_stack_frame): Delete prototype.
10643 * infrun.c (normal_stop): Call print_stack_frame, instead of
10644 show_and_print_stack_frame.
10645 * thread.c (info_threads_command): Call print_stack_frame, instead
10646 of print_only_stack_frame.
10648 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10650 * README (Graphical interface to GDB): Update URL. Point at
10653 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10656 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10658 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10661 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10663 * thread-db.c (attach_thread): Prototype.
10664 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10665 thread information (ti), and valid flags (th_valid, ti_valid).
10666 (attach_thread): Move target_pid_to_str call to after the thread
10667 is added to GDB's list. Initialize the cache.
10668 (thread_get_info_callback, thread_db_map_id2thr)
10669 (thread_db_get_info): New functions.
10670 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10671 (thread_db_store_registers, thread_db_thread_alive)
10672 (thread_db_get_thread_local_address): Use them.
10673 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10674 of calling error() for threads in unknown state.
10676 (clear_lwpid_callback): New function.
10677 (thread_db_resume): Use it to clear the cache.
10679 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10681 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10682 (resume_callback): Remove dead code.
10684 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10686 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10688 * gdbarch.h, gdbarch.c: Regenerate.
10689 * stack.c (frame_info): Only initialize the saved registers when
10690 FRAME_INIT_SAVED_REGS_P.
10691 * frame.c (frame_saved_regs_register_unwind): Assert
10692 FRAME_INIT_SAVED_REGS_P.
10693 (deprecated_generic_get_saved_register): Ditto.
10695 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10697 * source.c (openp): Squelch warning about "filename".
10699 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10701 * source.c (openp): If the file does not exist don't necessarily
10704 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10707 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10708 (integer_types_same_name_p): New function.
10709 (rank_one_type): Use it.
10710 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10712 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10714 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10716 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10717 * configure.in: Add --with-sysroot.
10718 * configure: Regenerated.
10719 * main.c (gdb_sysroot): New variable.
10720 (captured_main): Initialize gdb_sysroot.
10721 * defs.h (gdb_sysroot): New extern declaration.
10722 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10724 2003-01-12 Michael Chastain <mec@shout.net>
10726 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10728 2003-01-12 Michael Chastain <mec@shout.net>
10730 * top.c (print_gdb_version): Bump copyright year to 2003.
10732 2003-01-12 David Carlton <carlton@bactrian.org>
10734 * linespec.c (symtab_from_filename): Rename variable 's' to
10737 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10739 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10741 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10743 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10745 * d10v-tdep.c: Include "gdb_assert.h".
10746 (d10v_store_return_value): Rewrite to match current interface.
10747 (d10v_extract_struct_value_address): Ditto.
10748 (d10v_extract_return_value): Ditto.
10749 (d10v_gdbarch_init): Set store_restore_value,
10750 extract_struct_value_address and extract_return_value.
10752 2003-01-12 J. Brobecker <brobecker@gnat.com>
10754 * hpread.c (set_namestring): New procedure replacing the
10755 SET_NAMESTRING macro.
10756 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10757 by calls to set_namestring.
10759 2003-01-11 J. Brobecker <brobecker@gnat.com>
10761 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10762 a compilation warning.
10763 (hpread_process_one_debug_symbol): Likewise.
10765 2003-01-10 David Carlton <carlton@math.stanford.edu>
10767 * linespec.c (decode_line_1): Rename variable 's' to
10769 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10770 (decode_dollar): Ditto.
10771 (decode_variable): Ditto.
10772 (symbol_found): Ditto.
10774 2003-01-09 Michael Chastain <mec@shout.net>
10776 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10778 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10780 * win32-nat.c (set_process_privilege): New function.
10781 (child_attach): Call set_process_privilege() to enable the
10782 SE_DEBUG_NAME user privilege if available in process token.
10784 2003-01-10 J. Brobecker <brobecker@gnat.com>
10786 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10787 compilation error in the previous revision.
10789 2003-01-09 David Carlton <carlton@math.stanford.edu>
10791 * linespec.c: Update copyright.
10793 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10795 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10796 than inferior_ptid.
10797 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10799 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10801 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10803 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10804 (frame_saved_regs_zalloc): Update.
10805 (frame_saved_regs_register_unwind): Update.
10806 (create_new_frame): Update.
10807 (get_prev_frame): Update.
10808 (frame_extra_info_zalloc): Update.
10809 (deprecated_get_frame_saved_regs): Update.
10810 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10811 * cris-tdep.c: Update comment.
10813 * somsolib.h: Fix function indentation.
10814 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10815 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10816 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10817 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10818 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10820 * infrun.c (follow_fork): Use ISO C definition.
10821 * expprint.c (print_subexp): Use xfree instead of free.
10822 * charset.c: Include "gdb_string.h" instead of <string.h>.
10823 (register_iconv_charsets): Use ISO C definition.
10824 (host_charset, target_charset): Ditto.
10825 * Makefile.in (charset.o): Update dependencies.
10826 (mi-cmd-env.o): Update dependencies.
10828 2003-01-08 Andrew Cagney <cagney@redhat.com>
10830 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10833 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10835 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10836 build directories. Save edited gdb output in Mbuild.log. If a
10837 build fails, remove any final GDB executable.
10839 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10841 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10842 replacing hex constants with function names and stripping leading
10843 file name directory prefixes.
10845 2003-01-08 Andrew Cagney <cagney@redhat.com>
10847 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10850 2003-01-08 David Carlton <carlton@math.stanford.edu>
10852 * linespec.c (decode_line_1): Move code into decode_variable.
10853 (decode_variable): New function.
10855 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10857 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10859 2003-01-08 Andrew Cagney <cagney@redhat.com>
10861 * cris-tdep.c (cris_frame_init_saved_regs): Use
10862 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10864 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10865 (sh64_nofp_frame_init_saved_regs): Ditto.
10866 (sh_fp_frame_init_saved_regs): Ditto.
10867 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10868 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10869 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10870 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10872 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10874 * minsyms.c (lookup_minimal_symbol): Update comment.
10875 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10876 (lookup_minimal_symbol_solib_trampoline): Likewise.
10878 2003-01-08 Andrew Cagney <cagney@redhat.com>
10880 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10881 frame_relative_level.
10883 * alpha-tdep.c: Use get_frame_extra_info.
10884 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10885 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10886 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10887 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10889 * alpha-tdep.c: Use get_next_frame.
10890 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10891 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10892 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10893 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10894 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10895 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10896 * xstormy16-tdep.c: Ditto.
10898 2003-01-07 Andrew Cagney <cagney@redhat.com>
10900 * alpha-tdep.c: Use get_frame_base.
10901 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10902 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10903 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10904 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10905 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10906 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10907 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10908 * config/sparc/tm-sparc.h: Ditto.
10910 2003-01-07 Andrew Cagney <cagney@redhat.com>
10912 * frame.c (deprecated_get_frame_context): New function.
10913 (deprecated_set_frame_context): New function.
10914 * frame.h (deprecated_get_frame_context): Declare.
10915 (deprecated_set_frame_context): Declare.
10916 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10917 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10919 2003-01-07 Andrew Cagney <cagney@redhat.com>
10921 * frame.c (deprecated_set_frame_next_hack): New function.
10922 (deprecated_set_frame_prev_hack): New function.
10923 * frame.h (deprecated_set_frame_next_hack): Declare.
10924 (deprecated_set_frame_prev_hack): Declare.
10925 * mcore-tdep.c (analyze_dummy_frame): Use
10926 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10927 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10929 2003-01-07 David Carlton <carlton@math.stanford.edu>
10931 * linespec.c (decode_line_1): Move code into decode_dollar.
10932 (decode_dollar): New function.
10934 2003-01-07 Andrew Cagney <cagney@redhat.com>
10936 * arm-tdep.c (arm_init_extra_frame_info): Use
10937 deprecated_update_frame_base_hack.
10938 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10939 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10940 (fix_frame_pointer): Ditto.
10941 (mn10300_analyze_prologue): Ditto.
10943 2003-01-07 Andrew Cagney <cagney@redhat.com>
10945 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10946 extra_info using frame_extra_info_zalloc.
10947 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10948 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10949 (sh64_init_extra_frame_info): Ditto.
10950 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10951 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10952 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10953 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10954 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10955 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10956 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10957 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10958 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10959 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10960 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10961 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10963 * mn10300-tdep.c (analyze_dummy_frame): Use
10964 deprecated_set_frame_extra_info_hack.
10965 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10967 2003-01-07 J. Brobecker <brobecker@gnat.com>
10969 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10970 class is not scText. These do not define "real" procedures.
10971 (parse_partial_symbols): Likewise.
10973 2003-01-06 Michael Snyder <msnyder@redhat.com>
10975 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10977 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10979 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10980 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10981 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10982 deprecated_frame_xmalloc_with_cleanup.
10983 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10984 deprecated_frame_xmalloc.
10985 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10986 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10988 2003-01-06 Andrew Cagney <cagney@redhat.com>
10990 * x86-64-linux-tdep.c: Include "osabi.h".
10991 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10993 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10995 2003-01-06 Andrew Cagney <cagney@redhat.com>
10997 * MAINTAINERS (Target Instruction Set Architectures): Update
10998 arm-elf. Can be built with -Werror, has been multiarched.
11000 * value.h (unpack_long): Make buffer parameter constant.
11001 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11002 * scm-lang.h (scm_parse): Ditto.
11003 * defs.h (extract_typed_address, extract_address): Ditto.
11004 (extract_long_unsigned_integer): Ditto.
11005 * inferior.h (unsigned_pointer_to_address): Ditto.
11006 (signed_pointer_to_address): Ditto.
11007 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11008 * gdbarch.h, gdbarch.c: Regenerate.
11009 * findvar.c (extract_long_unsigned_integer): Update.
11010 (extract_address): Update.
11011 (extract_typed_address): Update.
11012 (unsigned_pointer_to_address): Update.
11013 * values.c (unpack_long): Update.
11014 (unpack_double): Update.
11015 (unpack_pointer): Update.
11016 (unpack_field_as_long): Update.
11017 * d10v-tdep.c (d10v_pointer_to_address): Update.
11018 * avr-tdep.c (avr_pointer_to_address): Update.
11019 * scm-lang.c (scm_unpack): Update.
11020 * findvar.c (signed_pointer_to_address): Update.
11022 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11024 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11025 since it is in i386-tdep.c.
11027 2003-01-06 J. Brobecker <brobecker@gnat.com>
11029 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11030 failure introduced in the previous change.
11032 2003-01-05 Michael Chastain <mec@shout.net>
11034 * README: Remove references to deleted remote-*.c files:
11035 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11036 remote-nrom.c, remote-os9k.c, remote-udi.c.
11038 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11040 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11041 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11042 i386_get_longjmp_target.
11044 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11046 * arm-tdep.c (prologue_cache): Change to a pointer.
11047 (_initialize_arm_tdep): Allocate prologue_cache.
11048 (check_prologue_cache): Update.
11049 (save_prologue_cache): Update.
11050 (arm_gdbarch_init): Update.
11052 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11054 * stabsread.c (update_method_name_from_physname): Call complaint()
11057 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11059 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11060 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11061 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11063 * blockframe.c: Include "gdbcmd.h" and "command.h".
11064 (backtrace_below_main): New variable.
11065 (file_frame_chain_valid, func_frame_chain_valid)
11066 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11067 (generic_func_frame_chain_valid): Remove functions.
11068 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11069 (_initialize_blockframe): New function.
11070 * Makefile.in (blockframe.o): Update dependencies.
11071 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11072 comment. Call frame_chain_valid ().
11073 * frame.h: Remove old prototypes. Add prototype for
11074 frame_chain_valid and update comments to match.
11075 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11076 Remove old comment.
11077 * gdbarch.h: Regenerated.
11078 * gdbarch.c: Regenerated.
11080 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11081 set_gdbarch_frame_chain_valid.
11082 * avr-tdep.c (avr_gdbarch_init): Likewise.
11083 * cris-tdep.c (cris_gdbarch_init): Likewise.
11084 * frv-tdep.c (frv_gdbarch_init): Likewise.
11085 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11086 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11087 (i386_nw_init_abi): Likewise.
11088 (i386_gdbarch_init): Likewise.
11089 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11091 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11092 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11093 * mips-tdep.c (mips_gdbarch_init): Likewise.
11094 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11095 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11096 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11097 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11098 * s390-tdep.c (s390_gdbarch_init): Likewise.
11099 * sh-tdep.c (sh_gdbarch_init): Likewise.
11100 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11101 * v850-tdep.c (v850_gdbarch_init): Likewise.
11102 * vax-tdep.c (vax_gdbarch_init): Likewise.
11103 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11105 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11106 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11107 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11108 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11109 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11110 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11111 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11112 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11114 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11116 * Makefile.in (acconfig_h): Remove incorrect macro.
11117 (config_h): Define.
11118 (osabi.o): Update dependencies.
11119 * configure.tgt: Set gdb_osabi based on target triplet.
11120 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11121 * configure: Regenerated.
11122 * config.in: Regenerated.
11123 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11124 (GDB_OSABI_DEFAULT): Define if not already defined.
11125 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11126 (set_osabi_string): New variables.
11127 (gdbarch_register_osabi): Add new OS ABI to
11128 gdb_osabi_available_names.
11129 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11130 (set_osabi, show_osabi): New functions.
11131 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11133 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11135 * arch-utils.c (gdbarch_info_init): Set osabi to
11136 GDB_OSABI_UNINITIALIZED.
11137 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11138 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11139 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11140 * gdbarch.c: Regenerated.
11141 * gdbarch.h: Regenerated.
11142 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11144 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11145 * osabi.h (enum gdb_osabi): Move to defs.h.
11146 (gdbarch_init_osabi): Update prototype.
11147 * defs.h (enum gdb_osabi): Moved here.
11148 * Makefile.in: Update dependencies.
11150 * alpha-tdep.h: Don't include "osabi.h".
11151 (struct gdbarch_tdep): Remove osabi member.
11152 * alpha-tdep.c: Include "osabi.h".
11153 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11154 iterate over arches. Update call to gdbarch_init_osabi.
11155 (alpha_dump_tdep): Don't dump osabi.
11156 * alpha-linux-tdep.c: Include "osabi.h".
11157 * alpha-osf1-tdep.c: Include "osabi.h".
11158 * alphafbsd-tdep.c: Include "osabi.h".
11159 * alphanbsd-tdep.c: Include "osabi.h".
11161 * arm-tdep.h: Don't include "osabi.h".
11162 (struct gdbarch_tdep): Remove osabi member.
11163 * arm-tdep.c: Include "osabi.h".
11164 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11165 iterate over arches. Update call to gdbarch_init_osabi.
11166 (arm_dump_tdep): Don't dump osabi.
11167 * arm-linux-tdep.c: Include "osabi.h".
11168 * armnbsd-tdep.c: Include "osabi.h".
11170 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11171 Update call to gdbarch_init_osabi.
11173 * i386-tdep.h: Don't include "osabi.h".
11174 (struct gdbarch_tdep): Remove osabi member.
11175 * i386-tdep.c: Include "osabi.h".
11176 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11177 iterate over arches. Update call to gdbarch_init_osabi.
11178 (i386_dump_tdep): Don't dump osabi.
11179 * i386-linux-tdep.c: Include "osabi.h".
11180 * i386-sol2-tdep.c: Include "osabi.h".
11181 * i386bsd-tdep.c: Include "osabi.h".
11182 * i386gnu-tdep.c: Include "osabi.h".
11183 * i386ly-tdep.c: Include "osabi.h".
11184 * i386nbsd-tdep.c: Include "osabi.h".
11185 * i386obsd-tdep.c: Include "osabi.h".
11187 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11188 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11189 check osabi when iterating over arches. Update call to
11190 gdbarch_init_osabi.
11191 (mips_dump_tdep): Don't dump osabi.
11193 * ns32k-tdep.h: Don't include "osabi.h".
11194 (struct gdbarch_tdep): Remove.
11195 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11196 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11197 allocate tdep. Update call to gdbarch_init_osabi.
11198 (ns32k_dump_tdep): Remove.
11199 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11200 * ns32knbsd-tdep.c: Include "osabi.h".
11202 * ppc-tdep.h: Don't include "osabi.h".
11203 (struct gdbarch_tdep): Remove osabi member.
11204 * rs6000-tdep.c: Include "osabi.h".
11205 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11206 osabi when iterating over arches. Update call to
11207 gdbarch_init_osabi.
11208 (rs6000_dump_tdep): Don't dump osabi.
11209 * ppc-linux-tdep.c: Include "osabi.h".
11210 * ppcnbsd-tdep.c: Include "osabi.h".
11212 * sh-tdep.h: Don't include "osabi.h".
11213 (struct gdbarch_tdep): Remove osabi member.
11214 * sh-tdep.c: Include "osabi.h".
11215 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11216 iterate over arches. Update call to gdbarch_init_osabi.
11217 (sh_dump_tdep): Don't dump osabi.
11218 * shnbsd-tdep.c: Include "osabi.h".
11220 * sparc-tdep.c: Include "osabi.h".
11221 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11222 iterate over arches. Update call to gdbarch_init_osabi.
11223 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11226 * vax-tdep.h: Don't include "osabi.h".
11227 (struct gdbarch_tdep): Remove.
11228 * vax-tdep.c: Include "osabi.h".
11229 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11230 iterate over arches. Don't allocate tdep. Update call
11231 to gdbarch_init_osabi.
11232 (vax_dump_tdep): Remove.
11233 (_initialize_vax_tdep): Update call to gdbarch_register.
11235 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11237 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11239 (breakpoint_re_set_one): Don't fetch the value for a disabled
11242 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11244 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11245 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11246 (COERCE_FLOAT_TO_DOUBLE): Remove.
11247 * gdbarch.c: Regenerate.
11248 * gdbarch.h: Regenerate.
11249 * Makefile.in: Remove value_h from gdbarch_h.
11250 * valops.c (coerce_float_to_double): New variable.
11251 (default_coerce_float_to_double): Remove.
11252 (standard_coerce_float_to_double): Remove.
11253 (value_arg_coerce): Use coerce_float_to_double.
11254 (_initialize_valops): Add "set coerce-float-to-double".
11255 * value.h (default_coerce_float_to_double): Remove prototype.
11256 (standard_coerce_float_to_double): Remove prototype.
11258 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11260 * mdebugread.c (parse_symbol): Likewise.
11261 * stabsread.c (define_symbol): Mark all functions as prototyped.
11263 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11264 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11265 set_gdbarch_coerce_float_to_double.
11266 * arm-tdep.c (arm_gdbarch_init): Likewise.
11267 * frv-tdep.c (frv_gdbarch_init): Likewise.
11268 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11269 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11270 * mips-tdep.c (mips_gdbarch_init): Likewise.
11271 (mips_coerce_float_to_double): Remove.
11272 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11273 (rs6000_coerce_float_to_double): Remove.
11274 * s390-tdep.c (s390_gdbarch_init): Likewise.
11275 * sh-tdep.c (sh_gdbarch_init): Likewise.
11276 (sh_coerce_float_to_double): Remove.
11277 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11278 (sparc_coerce_float_to_double): Remove.
11279 * v850-tdep.c (v850_gdbarch_init): Likewise.
11280 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11281 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11282 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11283 (hppa_coerce_float_to_double): Remove prototype.
11284 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11286 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11288 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11290 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11292 Suggested by Stewart Brown <sb24@avaya.com>:
11293 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11294 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11295 (c_type_print_varspec_suffix): Likewise.
11297 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11299 * configure.in: Don't set and AC_SUBST SUBDIRS.
11300 * configure: Regenerated.
11302 * configure.in: Remove code dealing with shared libraries.
11303 * Makefile.in: Remove HLDFLAGS and HLDENV.
11304 * configure: Regenerated.
11306 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11308 * frame.c (deprecated_frame_xmalloc): New function.
11309 (deprecated_set_frame_saved_regs_hack): New function.
11310 (deprecated_set_frame_extra_info_hack): New function.
11311 * frame.h (deprecated_frame_xmalloc): Declare.
11312 (deprecated_set_frame_saved_regs_hack): Declare.
11313 (deprecated_set_frame_extra_info_hack): Declare.
11315 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11317 * configure.in: Move code that provides the --enable-gdbtk option
11318 right after the code that handles the --enable-tui option, and
11319 polish it somewhat.
11320 * configure: Regenerated.
11322 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11323 AC_CHECK_FUNCS and remove the old check for pread64.
11324 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11325 * acconfig.h (_GNU_SOURCE): Add.
11326 (HAVE_PREAD64): Remove.
11327 * configure, aclocal.m4, config.in: Regenerated.
11329 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11331 * alpha-tdep.c: Use get_frame_saved_regs.
11332 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11333 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11334 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11335 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11336 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11338 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11340 * configure.in: Remove all use of the SUBDIRS variable; add
11341 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11342 code providing the --enable-multi-ice option, and move it right in
11343 front of the code that checks whether gdbserver is supported.
11345 * configure: Regenerated.
11346 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11349 2003-01-03 Andrew Cagney <cagney@redhat.com>
11351 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11352 * avr-tdep.c, cris-tdep.c: Ditto.
11353 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11354 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11356 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11358 * configure.in: Remove --enable-netrom option.
11359 * configure: Regenerated.
11361 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11363 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11364 declaration for `struct re_pattern_buffer' instead.
11365 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11367 2003-01-03 J. Brobecker <brobecker@gnat.com>
11369 * mdebugread.c (parse_symbol): Count until the stEnd matching
11370 the structure name.
11372 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11374 * configure.in: Remove --with-cpu option.
11375 subscripts. Remove evil changequotes here.
11376 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11377 * config.in, configure: Regenerated.
11379 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11380 * configure.in: Cleanup section that sources GDB and BFD configure
11381 subscripts. Remove evil changequotes here.
11382 * config.in, configure: Regenerated.
11384 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11386 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11387 frame accessor methods.
11388 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11389 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11390 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11391 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11392 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11393 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11394 * z8k-tdep.c: Ditto.
11396 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11398 * configure.in: Remove UI_OUT configuration code.
11399 * ada-lang.c: Update assuming UI_OUT is always true.
11400 * Makefile.in (UIOUT_CFLAGS): Remove.
11401 * configure: Regenerated.
11402 * TODO: Remove blurb about elimination of -DUI_OUT.
11404 * configure.in: Move code that provides the --enable-gdbcli,
11405 --enable-gdbmi options right before the code that handles the
11406 --enable-tui option. Polish a bit.
11407 * configure: Regenerated.
11409 * configure.in: Rewrite check for GNU regex and the
11410 --without-included regex option, and move it into the "Checks for
11411 library functions" section. This makes us use the system regex
11412 again by default on systems with version 2 of the GNU C library.
11413 This was apparently broken.
11414 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11415 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11416 * config.in, configure: Regenerated.
11418 * configure.in: Move code that provides the --enable-tui option
11419 before the "Checks for libraries" section. Polish the code
11420 somewhat and set need_curses to yes if we build the TUI. Rewrite
11421 code that looks for a library providing termcap functionality to
11422 match more closely what's done in the Readline library, and move
11423 it into to the "Checks for libraries" section.
11424 * configure: Regenerated.
11425 * Makefile.in (TERMCAP): Remove variable.
11426 * config/i386/go32.mh (TERMCAP): Remove variable.
11428 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11430 * MAINTAINERS: Mention gdb_mbuild.sh.
11431 * gdb_mbuild.sh: Rewrite.
11433 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11435 * configure.in: Fix typo in last change.
11436 * config.in, configure: Regenerated.
11438 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11440 * valarith.c (value_binop): Delete obsolete code and comments.
11441 * configure.host: Ditto.
11442 * buildsym.h (make_blockvector): Ditto.
11443 * buildsym.c (make_blockvector): Ditto.
11444 * defs.h (enum language): Ditto.
11445 (chill_demangle): Ditto.
11446 * elfread.c (elf_symtab_read): Ditto.
11447 * dwarfread.c (CHILL_PRODUCER): Ditto.
11448 (set_cu_language): Ditto.
11449 (handle_producer): Ditto.
11450 * expprint.c (print_subexp): Ditto.
11451 * gdbtypes.c (chill_varying_type): Ditto.
11452 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11453 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11454 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11455 (chill_varying_type): Ditto.
11456 * language.h (_LANG_chill): Ditto.
11457 * language.c (binop_result_type, integral_type): Ditto.
11458 (character_type, string_type, structured_type): Ditto.
11459 (lang_bool_type, binop_type_check): Ditto.
11460 * stabsread.h (os9k_stabs): Ditto.
11461 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11462 (define_symbol, read_type, read_struct_fields): Ditto.
11463 (read_array_type, read_enum_type, read_huge_number): Ditto.
11464 (read_range_type, start_stabs): Ditto.
11465 * symfile.c (init_filename_language_table): Ditto.
11466 (add_psymbol_with_dem_name_to_list): Ditto.
11467 * symtab.c (symbol_init_language_specific): Ditto.
11468 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11469 * symtab.h (struct general_symbol_info): Ditto.
11470 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11471 * typeprint.c (typedef_print): Ditto.
11472 * utils.c (fprintf_symbol_filtered): Ditto.
11473 * valops.c (value_cast, search_struct_field, value_slice): Delete
11475 (varying_to_slice): Delete function.
11476 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11477 (varying_to_slice): Delete declaration.
11478 * MAINTAINERS: Update.
11480 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11482 * configure.in: Reorganize "Checks for library functions section"
11483 a bit. Remove check for `btowc' and `isascii' functions.
11484 * configure: Regenerated.
11486 * acconfig.h (_MSE_INT_H): Remove.
11487 * configure.in: Create "Checks for header files" section, and move
11488 appropriate tests there. Don't check for objlist.h, wchar.h,
11489 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11490 misdetection fix. Also add "Checks for types", "Checks for
11491 compiler characteristics" and "Checks for library functions"
11493 * config.in, configure: Regenerated.
11495 * configure.in: Create "Checks for programs" section, and move
11496 appropriate tests there.
11498 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11500 * configure.in: Create "Checks for libraries" section, and move
11501 appropriate tests there. Cleanup check for wctype in libw. Use
11502 AC_SEARCH_LIBS to see whether we need libsocket.
11503 * configure: Regenerated.
11505 For older changes see ChangeLog-2002
11511 version-control: never