aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2002-11-242002-11-24 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-1/+4
* arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2002-11-242002-11-24 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-4/+21
* frame.c (set_unwind_by_pc): Revert change below, use PC_IN_CALL_DUMMY. (get_prev_frame): Ditto.
2002-11-242002-11-24 Andrew Cagney <ac131313@redhat.com>Andrew Cagney4-8/+65
* 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-242002-11-23 Andrew Cagney <ac131313@redhat.com>Andrew Cagney4-23/+35
* 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-242002-11-23 Andrew Cagney <ac131313@redhat.com>Andrew Cagney7-28/+30
* 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*** empty log message ***gdbadmin1-1/+1
2002-11-23 * Makefile.in (m68k_tdep_h): Define.Andreas Schwab12-93/+144
(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-232002-11-23 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-49/+6
* 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* win32-nat.c (child_attach): Reset saw_create counter or subsequent attachChristopher Faylor3-0/+7
will hang.
2002-11-232002-11-22 Andrew Cagney <ac131313@redhat.com>Andrew Cagney16-50/+41
* 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-232002-11-22 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+12
* thread-db.c (thread_db_load): Tell the user what's going on if dlopen fails on libthread_db.
2002-11-23*** empty log message ***gdbadmin1-1/+1
2002-11-22 * m68k-tdep.c (m68k_register_virtual_type): Use architectureAndreas Schwab2-12/+18
invariant return values.
2002-11-222002-11-22 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-1/+6
* Makefile.in (install): Make 'install' do some real work.
2002-11-22Revert previous change --- the hour was late, and I was confused aboutJim Blandy3-75/+0
its status.
2002-11-22 * valops.c (value_slice): Move declaration of `offset' to avoidAndreas Schwab2-2/+7
warning.
2002-11-22* win32-nat.c (psapi_get_dll_name): Fix a compiler warning.Christopher Faylor4-7/+66
(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* gdb.base/step-line.exp: Check that GDB can handle filenames thatJim Blandy3-0/+75
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 * gdb.base/maint.exp (help maint dump-me): Update with typo fix.Daniel Jacobowitz2-1/+5
2002-11-22 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPCAndreas Schwab2-7/+17
and FPS registers.
2002-11-22*** empty log message ***gdbadmin1-1/+1
2002-11-21 * tui-hooks.c (tui_init_hook): Don't enable the TUI if a specificStephane Carrez2-0/+9
interpreter is installed.
2002-11-21 * maint.c (_initialize_maint_cmds): Fix typo. FromDaniel Jacobowitz2-1/+6
Francesco Potorti` <pot@gnu.org>.
2002-11-212002-11-21 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-38/+11
* 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*** empty log message ***gdbadmin1-1/+1
2002-11-20 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead ofDaniel Jacobowitz2-1/+7
defined(PT_FPR0_HI).
2002-11-202002-11-19 Klee Dienes <kdienes@apple.com>Klee Dienes3-7/+39
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-202002-11-19 Andrew Cagney <ac131313@redhat.com>Andrew Cagney4-2/+14
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*** empty log message ***gdbadmin1-1/+1
2002-11-19 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)Andreas Schwab5-98/+137
(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-19Revert to old skip_quoted usage.Adam Fedor2-3/+5
2002-11-19* Makefile.in (SFILES): Add objc-exp.y objc-lang.c.Adam Fedor2-0/+37
(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-192002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2-4/+42
* 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* expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,Adam Fedor3-1/+64
OP_OBJC_MSGCALL, and OP_OBJC_SELF. (op_name): Handle OP_OBJC_SELF. * Makefile.in (expprint.o): Add additional depends.
2002-11-19* expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,Adam Fedor4-27/+34
OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF. * parse.c (length_of_subexp, prefixify_subexp): Likewise. * objc-exp.y: Likewise.
2002-11-19gdb/parser-defs.h: (struct objc_class_str): New structureAdam Fedor2-0/+13
for parsing ObjC classes.
2002-11-192002-11-18 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-16/+17
* stack.c (frame_relative_level): Copy function from here ... * frame.c (frame_relative_level): ...to here.
2002-11-19*** empty log message ***gdbadmin1-1/+1
2002-11-182002-11-18 Andrew Cagney <ac131313@redhat.com>Andrew Cagney26-133/+286
* 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-182002-11-18 Klee Dienes <kdienes@apple.com>Klee Dienes2-3/+7
* Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2002-11-182002-11-18 Klee Dienes <kdienes@apple.com>Klee Dienes2-0/+7
* buildsym.c (pop_context): Add comment.
2002-11-182002-11-18 Klee Dienes <kdienes@apple.com>Klee Dienes4-6/+36
* 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 * linux-arm-low.c (arm_num_regs): Increase.Daniel Jacobowitz3-3/+12
(arm_regmap): Include status register. * linux-low.c (register_addr): Remove incorrect -1 check.
2002-11-18*** empty log message ***gdbadmin1-1/+1
2002-11-17*** empty log message ***gdbadmin1-1/+1
2002-11-16 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don'tDaniel Jacobowitz11-276/+35
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 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,Daniel Jacobowitz9-271/+259
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 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.Daniel Jacobowitz8-139/+35
* 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-162002-11-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney14-26/+18
* 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-162002-11-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-0/+16
* x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from i386-tdep.c.