David Carlton
933c6fe40c
2002-11-25 David Carlton <carlton@math.stanford.edu>
...
* dwarf2read.c (scan_partial_symbols): Descend into namespace
pdi's with no name.
2002-11-25 22:01:39 +00:00
Andrew Cagney
158a8022ae
2002-11-25 Andrew Cagney <ac131313@redhat.com>
...
* MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2002-11-25 21:07:51 +00:00
Jim Blandy
e828957292
* symfile.c (init_objfile_sect_indices): New function.
...
(default_symfile_offsets): Move the section-index-initializing
stuff into init_objfile_sect_indices, and call that.
2002-11-25 21:00:51 +00:00
Jim Blandy
b29c9944fa
* symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
...
(SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2002-11-25 20:31:06 +00:00
Jim Blandy
13de58df8b
* symfile.c (syms_from_objfile): Adjust indentation.
2002-11-25 20:11:35 +00:00
Jim Blandy
481d0f4121
* symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
...
|| info_verbose isn't true.
2002-11-25 20:01:06 +00:00
Jim Blandy
f1c8a9492e
* lib/mi-support.exp (mi_delete_breakpoints): Change name of
...
function appearing in error message.
2002-11-25 19:54:09 +00:00
Andrew Cagney
7d6a26a7dc
2002-11-24 Andrew Cagney <ac131313@redhat.com>
...
* gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
default to get_frame_base.
* gdbarch.h, gdbarch.c: Regenerate.
* arch-utils.c (default_frame_address): Delete function.
* arch-utils.h (default_frame_address): Delete declaration
2002-11-25 04:47:56 +00:00
gdbadmin
aeb5439ec8
*** empty log message ***
2002-11-25 00:00:02 +00:00
Pierre Muller
6abe1021c1
2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
...
* varobj.c (find_frame_addr_in_frame_chain):
Use get_frame_base instead of FRAME_FP,
obvious fix.
2002-11-24 23:05:03 +00:00
Andrew Cagney
c193f6ac9c
2002-11-19 Andrew Cagney <ac131313@redhat.com>
...
* frame.h (FRAME_FP): Delete macro.
(get_frame_base): New function declaration.
* frame.c (get_frame_base): New function.
(get_frame_id): Use ->frame.
(frame_find_by_id): Rewrite to use get_frame_id.
* blockframe.c: Use get_frame_base instead of FRAME_FP.
* cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
* hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
* m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
* mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
* sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
* v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2002-11-24 19:48:13 +00:00
Andrew Cagney
e5d2af146b
2002-11-24 Andrew Cagney <ac131313@redhat.com>
...
* arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2002-11-24 18:23:37 +00:00
Andrew Cagney
931d12c681
2002-11-24 Andrew Cagney <ac131313@redhat.com>
...
* frame.c (set_unwind_by_pc): Revert change below, use
PC_IN_CALL_DUMMY.
(get_prev_frame): Ditto.
2002-11-24 15:41:59 +00:00
Andrew Cagney
5e0f933e90
2002-11-24 Andrew Cagney <ac131313@redhat.com>
...
* dummy-frame.c (pc_in_dummy_frame): New function.
(generic_pc_in_call_dummy): Call pc_in_dummy_frame.
(find_dummy_frame): Update comment.
(generic_pop_current_frame): Use get_frame_type.
* dummy-frame.h (pc_in_dummy_frame): Declare.
* frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
(create_new_frame): Use pc_in_dummy_frame.
(get_prev_frame): Use pc_in_dummy_frame.
(frame_saved_regs_register_unwind): Use get_prev_frame.
(deprecated_generic_get_saved_register): Use get_prev_frame.
2002-11-24 15:06:08 +00:00
Andrew Cagney
7d8547c960
2002-11-23 Andrew Cagney <ac131313@redhat.com>
...
* blockframe.c (find_frame_addr_in_frame_chain): Move function
from here ...
* varobj.c (find_frame_addr_in_frame_chain): ... to here.
(varobj_create): Note that frame ID should be used.
* frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2002-11-24 14:16:38 +00:00
Andrew Cagney
0225421b7c
2002-11-23 Andrew Cagney <ac131313@redhat.com>
...
* breakpoint.c: Include "gdb_assert.h".
(deprecated_frame_in_dummy): Assert that generic dummy frames are
not being used.
* Makefile.in (breakpoint.o): Update dependencies.
* ada-lang.c (find_printable_frame): Use get_frame_type instead of
deprecated_frame_in_dummy.
* stack.c (print_frame_info_base): Ditto.
(frame_info): Ditto.
(print_frame_info_base): Ditto. Delete dead code.
Index: tui/ChangeLog
2002-11-23 Andrew Cagney <ac131313@redhat.com>
* tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of
deprecated_frame_in_dummy. Fix coding style.
2002-11-24 03:20:09 +00:00
gdbadmin
86a2cbee55
*** empty log message ***
2002-11-24 00:00:03 +00:00
Andreas Schwab
32eeb91a76
* Makefile.in (m68k_tdep_h): Define.
...
(abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
(remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
* m68k-tdep.c: Move register number enum ...
* m68k-tdep.h: ... to this new file and rename the constants from
E_* to M68K_*. All uses changed.
* config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
* abug-rom.c: Include "m68k-tdep.h". Use
M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
* cpu32bug-rom.c: Likewise.
* dbug-rom.c: Likewise.
* m68k-tdep.c: Likewise.
* m68klinux-nat.c: Likewise.
* remote-est.c: Likewise.
* rom68k-rom.c: Likewise.
* config/m68k/tm-linux.h: Likewise.
2002-11-23 19:45:12 +00:00
Andrew Cagney
9648bac836
2002-11-23 Andrew Cagney <ac131313@redhat.com>
...
* arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
dummy frame initialization code.
* mips-tdep.c (mips_gdbarch_init): Ditto.
2002-11-23 17:17:29 +00:00
Christopher Faylor
91a175b3f1
* win32-nat.c (child_attach): Reset saw_create counter or subsequent attach
...
will hang.
2002-11-23 02:49:45 +00:00
Andrew Cagney
f4ded5b121
2002-11-22 Andrew Cagney <ac131313@redhat.com>
...
* gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
to default_frame_address.
* gdbarch.h, gdbarch.c: Re-generate.
* d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
or frame_locals_address to default_frame_address.
* m68k-tdep.c (m68k_gdbarch_init): Update.
* i386-tdep.c (i386_gdbarch_init): Update.
* frv-tdep.c (frv_gdbarch_init): Update.
* sh-tdep.c (sh_gdbarch_init): Update.
* v850-tdep.c (v850_gdbarch_init): Update.
* sparc-tdep.c (sparc_gdbarch_init): Update.
* mips-tdep.c (mips_gdbarch_init): Update.
* mn10300-tdep.c (mn10300_gdbarch_init): Update.
* x86-64-tdep.c (x86_64_gdbarch_init): Update.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
* cris-tdep.c (cris_frame_args_address): Delete function.
(cris_frame_locals_address): Delete function.
(cris_gdbarch_init): Do not set frame_args_address or
frame_locals_address.
2002-11-23 01:39:25 +00:00
Michael Snyder
f7c1e0f3da
2002-11-22 Michael Snyder <msnyder@redhat.com>
...
* thread-db.c (thread_db_load): Tell the user what's going on
if dlopen fails on libthread_db.
2002-11-23 01:34:43 +00:00
gdbadmin
6a0f58b7bc
*** empty log message ***
2002-11-23 00:00:02 +00:00
Andreas Schwab
03dac896be
* m68k-tdep.c (m68k_register_virtual_type): Use architecture
...
invariant return values.
2002-11-22 23:59:20 +00:00
Elena Zannoni
35db026050
2002-11-22 Elena Zannoni <ezannoni@redhat.com>
...
* Makefile.in (install): Make 'install' do some real work.
2002-11-22 21:02:20 +00:00
Jim Blandy
f81a4d0bea
Revert previous change --- the hour was late, and I was confused about
...
its status.
2002-11-22 19:07:28 +00:00
Andreas Schwab
7a67d0fe2b
* valops.c (value_slice): Move declaration of `offset' to avoid
...
warning.
2002-11-22 16:32:45 +00:00
Christopher Faylor
5633f84268
* win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
...
(struct so_stuff): Add end_addr field.
(register_loaded_dll): Calculate and store end address of loaded dll.
(solib_address): New function.
(child_solib_loaded_library_pathname): Pass carefully constructed section info
to safe_symbol_file_add rather than ignoring it.
(get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a DLL is
loaded.
(do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
(child_create_inferior): Fix a compiler warning.
* config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
(solib_address): Declare new function.
2002-11-22 07:34:55 +00:00
Jim Blandy
b6d3ce7015
* gdb.base/step-line.exp: Check that GDB can handle filenames that
...
appear in the line number info, but not in the preprocessor macro
info.
* lib/gdb.exp (gdb_internal_error_regexp): New variable.
(gdb_internal_error_resync): New procedure.
(gdb_test): If the command results in an internal error,
answer GDB's questions until we get back to a prompt.
2002-11-22 07:00:37 +00:00
Daniel Jacobowitz
9e297a9744
* gdb.base/maint.exp (help maint dump-me): Update with typo fix.
2002-11-22 04:31:21 +00:00
Andreas Schwab
d85fe7f7fa
* m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
...
and FPS registers.
2002-11-22 00:02:03 +00:00
gdbadmin
a3ced1cbd6
*** empty log message ***
2002-11-22 00:00:02 +00:00
Stephane Carrez
9c393d00b5
* tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific
...
interpreter is installed.
2002-11-21 21:25:22 +00:00
Daniel Jacobowitz
8308e54c58
* maint.c (_initialize_maint_cmds): Fix typo. From
...
Francesco Potorti` <pot@gnu.org>.
2002-11-21 19:38:02 +00:00
Andrew Cagney
8997bd5e3f
2002-11-21 Andrew Cagney <cagney@redhat.com>
...
* mips-tdep.c (mips_dump_tdep): Delete references to
GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
* config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
(GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
* printcmd.c (build_address_symbolic): Delete calls to
GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
(address_info): Ditto.
Fix PR gdb/773.
2002-11-21 18:54:44 +00:00
gdbadmin
444d9f96ab
*** empty log message ***
2002-11-21 00:00:33 +00:00
Daniel Jacobowitz
a1358604f1
* linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
...
defined(PT_FPR0_HI).
2002-11-20 16:31:08 +00:00
Klee Dienes
4e87b8328c
2002-11-19 Klee Dienes <kdienes@apple.com>
...
Adam Fedor <fedor@gnu.org>
* completer.c (skip_quoted_chars): Renamed from skip_chars. Add
the ability to explicitly specify the quote characters and word
break characters; if NULL is specified for either, use the old
behavior of using the characters used by the completer.
(skip_chars): New function. Convenience wrapper around
skip_quoted_chars to provide the original skip_chars behavior.
* completer.h (skip_quoted_chars): Add prototype.
2002-11-20 08:58:01 +00:00
Andrew Cagney
9ba8d803d0
2002-11-19 Andrew Cagney <ac131313@redhat.com>
...
Problems reported by Paul Eggert.
* gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
Index: doc/ChangeLog
2002-11-19 Andrew Cagney <ac131313@redhat.com>
Fix POSIX problem reported by Paul Eggert.
* Makefile.in (GDBvn.texi): Use `sed q' instead of `head -1'.
2002-11-20 00:47:59 +00:00
gdbadmin
e8bce06be3
*** empty log message ***
2002-11-20 00:00:34 +00:00
Andreas Schwab
0a59580323
* m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
...
(m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
(UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
(m68k_linux_frame_saved_pc): Move to ...
* m68klinux-tdep.c: ... here. New file.
* Makefile.in (m68klinux-tdep.o): Add dependencies.
* config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2002-11-19 23:14:45 +00:00
Adam Fedor
e8afa4d797
Revert to old skip_quoted usage.
2002-11-19 15:23:58 +00:00
Adam Fedor
a76c9d7283
* Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
...
(objc_lang_h): Define.
(YYFILES): Add objc-exp.tab.c.
(local-maintainer-clean): Remove objc-exp.tab.c.
(objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2002-11-19 15:17:50 +00:00
Pierre Muller
fd0e9d45dd
2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
...
* p-exp.y (typecast rule): Add automatic dereference of
pascal classes if needed.
(THIS): Set current_type.
Automatically dereference pascal classes.
(typebase rule): Add ^typebase recognition.
2002-11-19 12:44:43 +00:00
Adam Fedor
82eeeb9451
* expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
...
OP_OBJC_MSGCALL, and OP_OBJC_SELF.
(op_name): Handle OP_OBJC_SELF.
* Makefile.in (expprint.o): Add additional depends.
2002-11-19 03:36:44 +00:00
Adam Fedor
646df18d28
* expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
...
OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
* parse.c (length_of_subexp, prefixify_subexp): Likewise.
* objc-exp.y: Likewise.
2002-11-19 03:23:40 +00:00
Adam Fedor
379b85dfc1
gdb/parser-defs.h: (struct objc_class_str): New structure
...
for parsing ObjC classes.
2002-11-19 03:15:01 +00:00
Andrew Cagney
85cf597a18
2002-11-18 Andrew Cagney <ac131313@redhat.com>
...
* stack.c (frame_relative_level): Copy function from here ...
* frame.c (frame_relative_level): ...to here.
2002-11-19 00:46:00 +00:00
gdbadmin
66b7e2229f
*** empty log message ***
2002-11-19 00:00:35 +00:00
Andrew Cagney
5a203e4405
2002-11-18 Andrew Cagney <ac131313@redhat.com>
...
* frame.h (enum frame_type): Define.
(get_frame_type): Declare.
(struct frame_info): Add field `type'. Delete field
signal_handler_caller.
(deprecated_set_frame_signal_handler_caller): Declare.
* frame.c (get_frame_type): New function.
(deprecated_set_frame_type): New function.
(create_new_frame): Set the frame's type.
(get_prev_frame): Similar.
* sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
* s390-tdep.c: Ditto.
* m68klinux-nat.c: Ditto.
* ns32k-tdep.c: Ditto.
* x86-64-linux-tdep.c: Ditto.
* vax-tdep.c: Ditto.
* rs6000-tdep.c: Ditto.
* ppc-linux-tdep.c: Ditto.
* i386-interix-tdep.c: Ditto.
* mips-tdep.c: Ditto.
* m68k-tdep.c: Ditto.
* hppa-tdep.c: Ditto.
* ia64-tdep.c: Ditto.
* cris-tdep.c: Ditto.
* arm-tdep.c: Ditto.
* alpha-tdep.c: Ditto.
* i386-tdep.c: Ditto.
* stack.c: Ditto.
* ada-lang.c: Ditto.
* blockframe.c: Update.
* i386-interix-tdep.c (i386_interix_back_one_frame): Use
deprecated_set_frame_type instead of signal_handler_caller.
* ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
* rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
* breakpoint.h: Delete FIXME suggesting get_frame_type.
Index: tui/ChangeLog
2002-11-18 Andrew Cagney <ac131313@redhat.com>
* tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of
signal_handler_caller.
2002-11-18 22:19:33 +00:00
Klee Dienes
bf4ae8b20c
2002-11-18 Klee Dienes <kdienes@apple.com>
...
* Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2002-11-18 21:53:31 +00:00
Klee Dienes
a672ef1326
2002-11-18 Klee Dienes <kdienes@apple.com>
...
* buildsym.c (pop_context): Add comment.
2002-11-18 20:57:55 +00:00
Klee Dienes
0c5e171aed
2002-11-18 Klee Dienes <kdienes@apple.com>
...
* buildsym.h (pop_context): Convert to function, defined in
buildsym.c.
* buildsym.c: Include gdb_assert.h.
(pop_context): Implement as C function. Add check for stack
underflow.
* dbxread.c (process_one_symbol): Complain and stop processing
that symbol if we are already at the top of the context stack for
a function-end N_FUN (this would imply an umatched RBRAC). Ditto
when processing N_RBRAC.
2002-11-18 19:14:10 +00:00
Daniel Jacobowitz
23ce3b1cd0
* linux-arm-low.c (arm_num_regs): Increase.
...
(arm_regmap): Include status register.
* linux-low.c (register_addr): Remove incorrect -1 check.
2002-11-18 00:37:50 +00:00
gdbadmin
aaa824b549
*** empty log message ***
2002-11-18 00:00:05 +00:00
gdbadmin
3d4fbb13e5
*** empty log message ***
2002-11-17 00:00:33 +00:00
Daniel Jacobowitz
8a1f4c4c14
* config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
...
define.
(struct target_waitstatus): Add opaque definition.
* corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
* exec.c (init_exec_ops): Likewise.
* fork-child.c (clone_and_follow_inferior): Remove.
* hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
* inferior.h (clone_and_follow_inferior): Remove prototype.
* infrun.c (follow_fork_mode_both): Remove.
(follow_fork_mode_kind_names): Remove commented out "both".
(follow_inferior_fork): Remove follow_fork_mode_both support.
* inftarg.c (child_clone_and_follow_inferior): Remove.
(child_post_follow_inferior_by_clone): Remove.
(init_child_ops): Don't set to_clone_and_follow_inferior
or to_post_follow_inferior_by_clone.
* target.c (default_clone_and_follow_inferior): Remove.
(cleanup_target): Don't set to_clone_and_follow_inferior
or to_post_follow_inferior_by_clone.
(find_default_clone_and_follow_inferior): Remove.
(init_dummy_target): Don't set to_clone_and_follow_inferior.
(debug_to_clone_and_follow_inferior): Remove.
(debug_to_post_follow_inferior_by_clone): Remove.
(setup_target_debug): Don't set to_clone_and_follow_inferior
or to_post_follow_inferior_by_clone.
* target.h (struct target_ops): Remove to_clone_and_follow_inferior
and to_post_follow_inferior_by_clone.
(child_clone_and_follow_inferior): Remove prototype.
(child_post_follow_inferior_by_clone): Remove prototype.
(target_clone_and_follow_inferior): Remove macro.
(target_post_follow_inferior_by_clone): Remove macro.
(find_default_clone_and_follow_inferior): Remove prototype.
2002-11-16 19:23:52 +00:00
Daniel Jacobowitz
47932f85ce
* breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
...
inferior_has_vforked, and inferior_has_execd instead of
target_has_forked, target_has_vforked, and target_has_execd.
* config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
(CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
(CHILD_WAIT): Define.
(child_wait): Add prototype.
* hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
Add prototype.
(hpux_has_vforked): Likewise, from child_has_vforked.
(hpux_has_execd): Likewise, from child_has_execd.
(hpux_has_syscall_event): Likewise, from child_has_syscall_event.
(not_same_real_pid, child_wait): New, copied from inftarg.c.
Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
and hpux_has_syscall_event instead of the target hooks.
* infrun.c (inferior_has_forked, inferior_has_vforked)
(inferior_has_execd): New functions.
* inftarg.c (not_same_real_pid): Remove.
(child_wait): Remove references to not_same_real_pid,
target_has_forked, target_has_vforked, target_has_execd,
and target_has_syscall_event.
(child_has_forked, child_has_vforked, child_has_execd)
(child_has_syscall_event): Remove.
(init_child_ops): Remove references to child_has_forked,
child_has_vforked, child_has_execd, and child_has_syscall_event.
* infttrace.c (hpux_has_forked): Rename from child_has_forked.
(hpux_has_vforked): Likewise, from child_has_vforked.
(hpux_has_execd): Likewise, from child_has_execd.
(hpux_has_syscall_event): Likewise, from child_has_syscall_event.
* target.c (cleanup_target): Remove references to
to_has_forked, to_has_vforked, to_has_execd, and
to_has_syscall_event.
(update_current_target): Likewise.
(setup_target_debug): Likewise.
(debug_to_has_forked): Remove.
(debug_to_has_vforked): Remove.
(debug_to_has_execd): Remove.
(debug_to_has_syscall_event): Remove.
* target.h (struct target_ops): Remove to_has_forked.
to_has_vforked, to_has_execd, and to_has_syscall_event.
(child_has_forked, child_has_vforked, child_has_execd)
(child_has_syscall_event): Remove prototypes.
(inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
prototypes.
(target_has_forked, target_has_vforked, target_has_execd)
(target_has_syscall_event): Remove macros.
2002-11-16 19:22:59 +00:00
Daniel Jacobowitz
4088142aae
* hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
...
* inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
(init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
* infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
* target.c (cleanup_target): Remove reference to
to_can_follow_vfork_prior_to_exec.
(update_current_target): Likewise.
(debug_to_can_follow_vfork_prior_to_exec): Remove.
(setup_target_debug): Remove reference to
to_can_follow_vfork_prior_to_exec.
* target.h (struct target_ops): Remove
to_can_follow_vfork_prior_to_exec.
(child_can_follow_vfork_prior_to_exec): Remove prototype.
(target_can_follow_vfork_prior_to_exec): Remove definition.
* config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
define.
* infrun.c (follow_vfork_when_exec): Remove.
(follow_inferior_fork): Remove references to follow_vfork_when_exec.
(follow_exec): Likewise.
(handle_inferior_event): Likewise.
(keep_going): Likewise.
2002-11-16 19:21:44 +00:00
Andrew Cagney
18cde8d5ad
2002-11-15 Andrew Cagney <cagney@redhat.com>
...
* frame.c (generic_unwind_get_saved_register): Make static.
* frame.h (generic_unwind_get_saved_register): Delete declaration.
* avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
defaults to generic_unwind_get_saved_register.
* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
* h8300-tdep.c (h8300_gdbarch_init): Ditto.
* frv-tdep.c (frv_gdbarch_init): Ditto.
* i386-tdep.c (i386_gdbarch_init): Ditto.
* s390-tdep.c (s390_gdbarch_init): Ditto.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* v850-tdep.c (v850_gdbarch_init): Ditto.
* mcore-tdep.c (mcore_gdbarch_init): Ditto.
* d10v-tdep.c (d10v_gdbarch_init): Ditto.
* config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2002-11-16 01:00:07 +00:00
Andrew Cagney
a6b063af0f
2002-11-15 Andrew Cagney <cagney@redhat.com>
...
* x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
i386-tdep.c.
2002-11-16 00:53:23 +00:00
gdbadmin
ddeb4f2231
*** empty log message ***
2002-11-16 00:00:33 +00:00
Andrew Cagney
f407986f1a
2002-11-15 Andrew Cagney <cagney@redhat.com>
...
* frame.h (sigtramp_saved_pc): Delete declaration.
* blockframe.c (sigtramp_saved_pc): Delete function.
* ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
(ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
* vax-tdep.c (vax_sigtramp_saved_pc): New function.
(vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2002-11-15 23:24:21 +00:00
Andrew Cagney
f18c5a7303
2002-11-15 Andrew Cagney <ac131313@redhat.com>
...
* frame.c (frame_pc_unwind): New function.
(frame_saved_regs_pc_unwind): New function.
(frame_register_unwind): Pass unwind_cache instead of
register_unwind_cache.
(set_unwind_by_pc): Add unwind_pc parameter, set.
(create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
(get_prev_frame): Ditto.
* frame.h (frame_pc_unwind_ftype): Declare.
(struct frame_info): Add pc_unwind, pc_unwind_cache_p and
pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
(frame_pc_unwind): Declare.
* dummy-frame.c (dummy_frame_pc_unwind): New function.
(struct dummy_frame): Add comment mentioning that values are for
previous frame.
* dummy-frame.h (dummy_frame_pc_unwind): Declare.
* blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
(generic_file_frame_chain_valid): Ditto.
* stack.c (frame_info): Ditto.
2002-11-15 22:16:25 +00:00
David Carlton
d9285969ae
Fix date stamp on ChangeLog entry.
2002-11-15 21:55:44 +00:00
David Carlton
0960f083cc
2002-11-12 David Carlton <carlton@math.stanford.edu>
...
* linespec.c (locate_first_half): New function.
(decode_line_1): Move code into locate_first_half.
2002-11-15 21:55:16 +00:00
Andrew Cagney
24382c5ce8
* complaints.h: Fix spelling errors.
2002-11-15 21:08:11 +00:00
Andrew Cagney
d741b867bb
2002-11-15 Andrew Cagney <ac131313@redhat.com>
...
* complaints.h: Add comment explaining how to eliminate a
deprecated_complain call.
2002-11-15 20:55:45 +00:00
David Carlton
82d03c99f5
2002-11-15 David Carlton <carlton@math.stanford.edu>
...
* printcmd.c: Remove #include "disasm.h".
2002-11-15 19:14:47 +00:00
Andrew Cagney
c97eb5d982
2002-11-14 Andrew Cagney <ac131313@redhat.com>
...
* frame.h: Move the most relevant interface functions to the start
of the file.
2002-11-15 15:50:21 +00:00
gdbadmin
2fa1f77a28
*** empty log message ***
2002-11-15 00:01:02 +00:00
Andrew Cagney
524d7c188c
2002-11-14 Andrew Cagney <ac131313@redhat.com>
...
* regcache.h (deprecated_registers): Rename registers.
* a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
* hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
* hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
* ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
* irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
* m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
* mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
* ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
* remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
* remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
* sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
* v850ice.c: Update.
2002-11-14 20:37:29 +00:00
Andrew Cagney
6411e720c0
Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
...
* utils.c (gdb_realpath): Add comment mentioning realpath with a
NULL buffer.
2002-11-14 00:50:04 +00:00
Andrew Cagney
73937e031a
2002-11-13 Andrew Cagney <cagney@redhat.com>
...
* regcache.h (deprecated_read_register_bytes): Rename
read_register_bytes.
(deprecated_write_register_bytes): Rename write_register_bytes.
* alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
* dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
* m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
* ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
* remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
* sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
* xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
* config/nm-m3.h, config/h8500/tm-h8500.h: Update.
* config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
* config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
* config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
* config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
* config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
* config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2002-11-13 Andrew Cagney <ac131313@redhat.com>
* mi-main.c (mi_cmd_data_write_register_values): Use
deprecated_write_register_bytes instead of write_register_bytes.
2002-11-14 00:25:05 +00:00
gdbadmin
2c85904f5a
*** empty log message ***
2002-11-14 00:00:01 +00:00
Jim Blandy
fb0cd46ee8
* findvar.c (read_var_value): Doc fix.
2002-11-13 18:13:17 +00:00
Andrew Cagney
2d28509afb
2002-11-13 Andrew Cagney <cagney@redhat.com>
...
* regcache.c (struct regcache): Replace passthough_p with
readonly_p.
(regcache_xmalloc): Initialize readonly_p.
(build_regcache): Initialize readonly_p.
(regcache_save): New function.
(regcache_restore): New function.
(regcache_cpy): Re-implement using regcache_save and
regcache_restore.
(regcache_raw_read): Update.
(regcache_cooked_read): When a read-only cache, checked for cached
pseudo register values.
(regcache_raw_write): Assert that the cache is not read-only.
Remove code handling a non-passthrough cache.
* regcache.h (regcache_save): Declare.
(regcache_restore): Declare.
2002-11-13 17:59:40 +00:00
Andrew Cagney
067df2e5b4
2002-11-13 Andrew Cagney <cagney@redhat.com>
...
* regcache.c (struct regcache_descr): Add fields
sizeof_cooked_registers and sizeof_cooked_register_valid_p.
(init_legacy_regcache_descr): Compute the size of a cooked
register cache and then assign that to sizeof_raw_registers. Set
sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
(init_legacy_regcache_descr): Ditto.
2002-11-13 16:57:36 +00:00
Andrew Cagney
51b1fe4e63
2002-11-13 Andrew Cagney <cagney@redhat.com>
...
* regcache.c (register_buffer): Move to near start of file, update
description.
(regcache_raw_read): Use.
(regcache_raw_write): Use.
(struct regcache): Rename raw_registers to registers and
raw_register_valid_p to register_valid_p.
(regcache_xmalloc): Update.
(regcache_xfree): Update.
(register_buffer): Update.
(regcache_cpy): Update.
(regcache_cpy_no_passthrough): Update.
(regcache_valid_p): Update.
(deprecated_grub_regcache_for_registers): Update.
(deprecated_grub_regcache_for_register_valid): Update.
(set_register_cached): Update.
(regcache_raw_write): Update.
2002-11-13 16:07:03 +00:00
Pierre Muller
80b4c67709
2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
...
* p-exp.y (name_not_typename): Use copy_name to
set current_type variable for fields of THIS.
2002-11-13 09:13:39 +00:00
gdbadmin
700c7a2951
*** empty log message ***
2002-11-13 00:00:03 +00:00
Daniel Jacobowitz
0f3fafde68
* gnu-nat.c (init_gnu_ops): Remove NULL initializations.
...
* monitor.c (init_base_monitor_ops): Likewise.
* ppc-bdm.c (init_bdm_ppc_ops): Likewise.
* remote-array.c (init_array_ops): Likewise.
* remote-e7000.c (init_e7000_ops): Likewise.
* remote-es.c (init_es1800_ops): Likewise.
(init_es1800_child_ops): Likewise.
* remote-rdp.c (init_remote_rdp_ops): Likewise.
* remote-sim.c (init_gdbsim_ops): Likewise.
* remote-st.c (init_st2000_ops): Likewise.
* sol-thread.c (init_sol_core_ops): Likewise.
(init_sol_thread_ops): Likewise.
* v850ice.c (init_850ice_ops): Likewise.
* win32-nat.c (init_child_ops): Likewise.
* wince.c (init_child_ops): Likewise.
2002-11-12 21:43:55 +00:00
Andrew Cagney
82c0260ec6
2002-11-12 Andrew Cagney <ac131313@redhat.com>
...
* utils.c (gdb_realpath): Make rp a constant pointer.
2002-11-12 20:26:05 +00:00
Andrew Cagney
70d358198f
2002-11-12 Andrew Cagney <ac131313@redhat.com>
...
* utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
a constant buffer; cannonicalize_file_name(); realpath() with a
pathconf() defined buffer, xstrdup().
2002-11-12 17:19:06 +00:00
Andrew Cagney
9835a8b012
2002-11-12 Andrew Cagney <ac131313@redhat.com>
...
* config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
to hang2.C; hang3.c to hang3.C.
2002-11-12 16:30:08 +00:00
Elena Zannoni
3f47be5ca1
2002-11-11 Elena Zannoni <ezannoni@redhat.com>
...
* findvar.c (read_var_value): Reenable TLS code.
2002-11-11 Elena Zannoni <ezannoni@redhat.com>
Jim Blandy <jimb@redhat.com>
* gdb_thread_db.h (enum): Add TD_NOTALLOC.
* target.c (update_current_target): Add
to_get_thread_local_address.
* target.h (to_get_thread_local_address): Export.
(target_get_thread_local_address): Define.
(target_get_thread_local_address_p): Define.
* thread-db.c: Include solib-svr4.h.
(td_thr_tls_get_addr_p): Define.
(thread_db_load): Get a pointer to td_thr_tls_get_addr.
(thread_db_get_thread_local_address): New function.
(init_thread_db_ops): Initialize to_get_thread_local_address.
* configure.in: Add test for TD_NOTALLOC in thread_db.h.
* configure: Regenerate.
* config.in: Regenerate.
2002-11-12 02:39:41 +00:00
gdbadmin
4894709537
*** empty log message ***
2002-11-12 00:00:04 +00:00
David Carlton
636b1a6d8e
2002-11-11 David Carlton <carlton@math.stanford.edu>
...
* linespec.c (set_flags): New function.
(decode_line_1): Move code into set_flags.
2002-11-11 23:20:07 +00:00
David Carlton
44fe14ab8c
2002-11-11 David Carlton <carlton@math.stanford.edu>
...
* linespec.c (decode_line_1): Move chunks of code to separate
functions.
(initialize_defaults): New function.
(decode_indirect): New function.
2002-11-11 21:18:55 +00:00
Jeff Johnston
46ae13f0c9
2002-11-11 Jeff Johnston <jjohnstn@redhat.com>
...
* gdbmi.texinfo (-var-assign): Add comments about interaction
with -var-update and add an example. Part of fix for gdb/702.
2002-11-11 17:09:50 +00:00
Andrew Cagney
8971b011f4
2002-11-11 Andrew Cagney <ac131313@redhat.com>
...
* blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
instead of void_code_ptr.
(sigtramp_saved_pc): Ditto.
2002-11-11 16:23:58 +00:00
Andrew Cagney
e6f181f51f
2002-11-11 Andrew Cagney <ac131313@redhat.com>
...
* x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
i386_fp_regnum_p.
2002-11-11 16:00:57 +00:00
Daniel Jacobowitz
01ad7f3617
* gdbtypes.h (struct main_type): Move artificial flag out of
...
loc. New member of ``struct field'' named static_kind. Reduce
overloaded meaning of bitsize.
(FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
(TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
(FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
* ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
new fields.
(template_to_fixed_record_type, template_to_static_fixed_type)
(to_record_with_fixed_variant_part): Likewise.
* coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
* dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
* dwarfread.c (struct_type, enum_type): Likewise.
* hpread.c (hpread_read_enum_type)
(hpread_read_function_type, hpread_read_doc_function_type)
(hpread_read_struct_type): Likewise.
* mdebugread.c (parse_symbol): Likewise.
2002-11-11 00:55:34 +00:00
gdbadmin
299aba957e
*** empty log message ***
2002-11-11 00:01:02 +00:00
Andrew Cagney
bf1e52be95
2002-11-10 Andrew Cagney <ac131313@redhat.com>
...
* breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
* stack.c (print_frame_info_base): Update.
(print_frame_info_base, frame_info): Update.
* sparc-tdep.c (sparc_init_extra_frame_info): Update.
(sparc_frame_saved_pc): Update.
* ada-lang.c (find_printable_frame): Update.
* breakpoint.c (deprecated_frame_in_dummy): Update.
2002-11-10 15:36:26 +00:00
gdbadmin
f8f016f4d7
*** empty log message ***
2002-11-10 00:00:02 +00:00
Mark Kettenis
ce556f8539
* i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
...
defined.
(regmap): Extend to cover all registers.
(PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
definitions.
(fetch_register, sore_register): Simplify.
(old_fetch_inferior_registers, old_store_inferior_registers):
Remove functions.
(cannot_fetch_register, cannot_store_register): Change
implementation to use regmap array to decide which registers
cannot be fetched/stored. This removes $orig_eax from the
registers that cannot be fetched/stored.
(fetch_inferior_registers): Call fetch_register directly instead
of calling old_fetch_inferior_registers.
(store_inferior_registers): Call store_register directly instead
of calling old_store_inferior_registers.
(i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
(i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
* config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2002-11-09 21:31:12 +00:00
Klee Dienes
932bb5249e
2002-11-09 Klee Dienes <kdienes@apple.com>
...
* i387-tdep.c (i387_supply_register): When called with NULL as a
buffer, mark the register as not provided (to mirror the behavior
of supply_register).
(i387_supply_fxsave): Ditto.
(i387_supply_fsave): Ditto (inherits the behavior from
i387_supply_register).
2002-11-09 19:34:35 +00:00
Klee Dienes
ebe68b2757
2002-11-09 Klee Dienes <kdienes@apple.com>
...
* blockframe.c (sigtramp_saved_pc): Use
builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2002-11-09 19:28:22 +00:00
Klee Dienes
82661bd0df
2002-11-09 Klee Dienes <kdienes@apple.com>
...
* chexp.exp: Mark as obsolete.
* pr-5016.exp: Remove stray trailing newline.
2002-11-09 19:15:23 +00:00