aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2002-12-17Replace complain() with complaint().Kevin Buettner15-717/+644
2002-12-17*** empty log message ***gdbadmin1-1/+1
2002-12-162002-12-16 Andrew Cagney <ac131313@redhat.com>Andrew Cagney73-21275/+35
* config/arc/arc.mt, config/arc/tm-arc.h: Delete. * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete. * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete. * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete. * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete. * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete. * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete. * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete. * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete. * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete. * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete. * config/i960/mon960.mt, config/i960/nindy960.mt: Delete. * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete. * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete. * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete. * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete. * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete. * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete. * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete. * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete. * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete. * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete. * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete. * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete. * config/m88k/xm-dgux.h: Delete. * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete. * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete. * os9kread.c, remote-bug.c, remote-nindy.c: Delete. * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete. * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete. * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete. * ch-valprint.c: Delete.
2002-12-162002-12-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-3/+20
* lib/mi-support.exp (mi_reinitialize_dir): Check mi level to see whether we are using the new -environment-directory command which resets via -r or the old version of the command which may prompt the user. Part of fix for gdb/741.
2002-12-16Remove obsolete testsuite code.Andrew Cagney78-7572/+47
2002-12-16 * hppa-hpux-tdep.c: New file.Joel Brobecker5-3/+54
* hppa-tdep.c (hppa_gdbarch_init): call the registered osabi- specific initialization routines. * Makefile.in (ALLDEPFILES): Add hppa-hpux-tdep.c. (hppa-hpux-tdep.o): Add rule. * config/pa/hppahpux.mt (TDEPFILES): Add hppa-hpux-tdep.o. * config/pa/hppa64.mt (TDEPFILES): Likewise.
2002-12-16*** empty log message ***gdbadmin1-1/+1
2002-12-15 * infrun.c (handle_inferior_event): Rearrange code to resume ifDaniel Jacobowitz2-47/+22
no catchpoint triggers for an event.
2002-12-15 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKEDDaniel Jacobowitz2-51/+6
and TARGET_WAITKIND_VFORKED cases.
2002-12-15 * infrun.c (handle_inferior_event): Assume that catchpointsDaniel Jacobowitz2-33/+32
are not affected by DECR_PC_AFTER_BREAK.
2002-12-15 * target.c (update_current_target): Don't inherit DONT_USE.Daniel Jacobowitz3-8/+6
* target.h (struct target_ops): Remove DONT_USE. (target_next): Remove macro.
2002-12-15* ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.Mark Kettenis2-1/+5
2002-12-15*** empty log message ***gdbadmin1-1/+1
2002-12-14* arm-tdep.c (convert_from_extended): New argument to hold theRichard Earnshaw2-23/+147
type of floating point result we want to convert to. Make input argument const. Fix all callers. (convert_to_extended): Similarly. (arm_extract_return_value): Now takes a regcache argument. Change code to use regcache accessor functions. Correctly extract smaller-than-word results on big-endian machines. (arm_store_return_value): Now takes a regcache argument. Change code to use regcache accessor functions. Correctly zero/sign extend smaller than word results before storing into r0. (arm_gdbarch_init): Register new-style extract_return_value and store_return_value functions.
2002-12-14*** empty log message ***gdbadmin1-1/+1
2002-12-132002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>Michael Snyder2-5/+17
* thread-db.c (thread_from_lwp): Uniquify error msg. (lwp_from_thread): Ditto. (check_event): Ditto. (find_new_threads_callback): Ditto. (thread_db_pid_to_str): Ditto.
2002-12-132002-12-13 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-2/+22
* frame.h (get_frame_saved_regs): Declare. (frame_saved_regs_zalloc): Change return type to CORE_ADDR pointer. * frame.c (get_frame_saved_regs): New function. (frame_saved_regs_zalloc): Return the allocated saved_regs.
2002-12-132002-12-13 Andrew Cagney <ac131313@redhat.com>Andrew Cagney4-2/+30
* frame.c (deprecated_update_current_frame_pc_hack): New function. * frame.h (deprecated_update_current_frame_pc_hack): Declare. * infrun.c (normal_stop): Use said function instead of directly modifying the frame's PC.
2002-12-13* frame.h (frame_id_unwind_ftype): Fix typo in return type.Alexandre Oliva2-2/+6
2002-12-13Multiarch NUM_REGS for MIPS.Kevin Buettner5-17/+24
2002-12-132002-12-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-7/+85
* mi-basics.exp: Change tests for -environment-directory. Also add tests for -environment-cd, -environment-pwd, and -environment-path. Part of fix for PR gdb/741.
2002-12-132002-12-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston4-6/+53
* defs.h (init_last_source_visited): New prototype. (add_path): Ditto. * source.c (add_path): New function that adds to a specified path. (mod_path): Change to call add_path. (init_last_source_visited): New function to allow interfaces to initialize static variable: last_source_visited. Part of fix for PR gdb/741. * Makefile.in: Add support for mi/mi-cmd-env.c.
2002-12-132002-12-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston5-12/+330
* mi-cmds.c (-environment-directory) Change to use mi_cmd_env_dir, (-environment-cd): Change to use mi_cmd_env_cd,. (-environment-pwd): Change to use mi_cmd_env_pwd. (-environment-path): Change to use mi_cmd_env_path. * mi-cmds.h (mi_cmd_env_cd, mi_cmd_env_dir): New prototypes. (mi_cmd_env_path, mi_cmd_env_pwd): Ditto. * mi-cmd-env.c: New file. Part of fix for PR gdb/741. * gdbmi.texinfo (environment-cd): Update output and example. (environment-pwd): Ditto. (environment-dir): Update output, description, and examples. (environment-path): Ditto.
2002-12-132002-12-13 Andrew Cagney <ac131313@redhat.com>Andrew Cagney5-3/+137
* frame.h (frame_id_unwind): Declare. (struct frame_info): Add fields id_unwind, id_unwind_cache_p and id_unwind_cache. (frame_id_unwind_ftype): Declare. * frame.c (frame_id_unwind): New function. (set_unwind_by_pc): Add unwind_id parameter. Initialized. (create_new_frame, get_prev_frame): Pass id_unwind to set_unwind_by_pc. (frame_saved_regs_id_unwind): New function. (frame_saved_regs_id_unwind): New function. * dummy-frame.c (dummy_frame_id_unwind): New function. (struct dummy_frame): Add field id. (generic_push_dummy_frame): Initialize `id'. * dummy-frame.h (dummy_frame_id_unwind): Declare.
2002-12-132002-12-13 Andrew Cagney <ac131313@redhat.com>Andrew Cagney4-42/+28
* infcmd.c (run_stack_dummy): Create a frame ID directly and then pass that to set_momentary_breakpoint. Move comments to where they belong. * frame.h (set_current_frame): Delete declaration. * frame.c (set_current_frame): Delete function.
2002-12-132002-12-13 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-4/+18
* frame.c (frame_extra_info_zalloc): New function. * frame.h (frame_extra_info_zalloc): Declare.
2002-12-13 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introducedJoel Brobecker2-1/+6
in the previous prototype change to set_momentary_breakpoint.
2002-12-13*** empty log message ***gdbadmin1-1/+1
2002-12-12 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,Daniel Jacobowitz2-36/+8
and saw_child_exec. (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove references to saw_parent_fork, saw_child_fork, and saw_child_exec. (stop_stepping): Remove outdated check for child vfork events.
2002-12-125.3 released.Andrew Cagney1-0/+4
2002-12-12 * corelow.c (init_core_ops): Delete references to to_require_attachDaniel Jacobowitz10-173/+58
and to_require_detach. * exec.c (init_exec_ops): Likewise. * hppah-nat.c (child_follow_fork): Call hppa_require_attach and hppa_require_detach directly. * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete. * inftarg.c (child_detach): Remove. (child_detach_from_process): Rename to child_detach, remove after_fork argument. (child_attach): Remove. (child_attach_to_process): Rename to child_attach, remove after_fork argument. (init_child_ops): Delete references to to_require_attach and to_require_detach. * infttrace.c (hppa_require_attach): Update comment. * target.c (cleanup_target, update_current_target) (init_dummy_target, setup_target_debug): Delete references to to_require_attach and to_require_detach. (find_default_require_detach, find_default_require_attach) (debug_to_require_attach, debug_to_require_detach): Remove functions. * target.h (struct target_ops): Remove to_require_attach and to_require_detach. (target_require_attach, target_require_detach): Delete macros. (find_default_require_detach, find_default_require_attach): Delete prototypes. * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
2002-12-122002-12-11 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-0/+19
* frame.c (get_frame_extra_info): New function. * frame.h (get_frame_extra_info): Declare.
2002-12-12*** empty log message ***gdbadmin1-1/+1
2002-12-112002-12-06 Andrew Cagney <ac131313@redhat.com>Andrew Cagney5-37/+54
* breakpoint.h (struct breakpoint): Replace frame with frame_id. (set_momentary_breaokpoint): Replace `struct frame_info' parameter with `struct frame_id'. (set_longjmp_resume_breakpoint): Ditto. * infrun.c (handle_inferior_event): Update. * breakpoint.c (watch_command_1, until_break_command): Update. * infrun.c (handle_inferior_event, check_sigtramp2): Update. (handle_inferior_event, step_over_function): Update. * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update. (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update. (set_momentary_breakpoint, deprecated_frame_in_dummy): Update. * infcmd.c (finish_command, run_stack_dummy): Update.
2002-12-11Convert complain() to complaint().Kevin Buettner2-195/+179
2002-12-112002-12-11 Andrew Cagney <cagney@redhat.com>Andrew Cagney6-17/+27
* frame.c (deprecated_get_frame_saved_regs): Rename get_frame_saved_regs. * frame.h (deprecated_get_frame_saved_regs): Update declaration. * sparc-tdep.c: Update. * hppa-tdep.c: Update. * h8500-tdep.c: Update.
2002-12-11 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)Kevin Buettner7-11/+22
(ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of ``char *'' for return and parameter types. * gdbarch.h, gdbarch.c: Regenerate. * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change return type from ``char *'' to ``const char *''. * c-typeprint.c (c_type_print_modifier): Make ``address_space_id'' const.
2002-12-112002-12-11 David Carlton <carlton@math.stanford.edu>David Carlton3-7/+35
* gdb.c++/m-data.exp: Add test for members that shadow global variables: see PR gdb/804. * gdb.c++/m-data.cc: Ditto.
2002-12-11* i386-tdep.c: Include "dummy-frame.h".Mark Kettenis2-4/+10
(i386_frame_chain, i386_frame_saved_pc): Replace DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame. (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
2002-12-11Fix date on changelog entry :-/Andrew Cagney1-1/+1
2002-12-112002-12-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney38-95/+246
* gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC. Change to a function with predicate. * gdbarch.h, gdbarch.c: Re-generate. * frame.c (get_prev_frame): Update. Test DEPRECATED_INIT_FRAME_PC_P. * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update. * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update. * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update. * alpha-tdep.c (alpha_gdbarch_init): Update. * mn10300-tdep.c (mn10300_gdbarch_init): Update. * mips-tdep.c (mips_gdbarch_init): Update. * i386-interix-tdep.c (i386_interix_init_abi): Update. * arm-tdep.c: Update comments. * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc. * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto. * frv-tdep.c (frv_gdbarch_init): Ditto. * x86-64-tdep.c (x86_64_init_abi): Ditto. * ia64-tdep.c (ia64_gdbarch_init): Ditto. * s390-tdep.c (s390_gdbarch_init): Ditto. * v850-tdep.c (v850_gdbarch_init): Ditto. * vax-tdep.c (vax_gdbarch_init): Ditto. * sh-tdep.c (sh_gdbarch_init): Ditto. * ns32k-tdep.c (ns32k_gdbarch_init): Ditto. * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. * mcore-tdep.c (mcore_gdbarch_init): Ditto. * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto. * i386-tdep.c (i386_gdbarch_init): Ditto. * d10v-tdep.c (d10v_gdbarch_init): Ditto. * cris-tdep.c (cris_gdbarch_init): Ditto. * avr-tdep.c (avr_gdbarch_init): Ditto. * arm-tdep.c (arm_gdbarch_init): Ditto. * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro. (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
2002-12-11 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change toDaniel Jacobowitz10-253/+254
CHILD_FOLLOW_FORK. * hppah-nat.c (saved_vfork_pid): Add. (child_post_follow_vfork): Remove. (child_follow_fork): New function. (child_wait): Call detach_breakpoints after receiving the child vfork. Call child_resume directly instead of going through resume (). Make sure we have the exec before reporting the vfork. * inferior.h (follow_inferior_reset_breakpoints): Add prototype. * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove. (follow_fork): New function. Call target_follow_fork. (follow_inferior_reset_breakpoints): New function broken out from old follow_inferior_fork. (resume): Remove hack to follow exec after vfork. * inftarg.c (child_post_follow_vfork): Remove. (child_follow_fork): New function. (init_child_ops): Replace to_post_follow_vfork with to_follow_fork. * target.c (cleanup_target): Replace to_post_follow_vfork with to_follow_fork. (update_current_target): Likewise. (setup_target_debug): Likewise. (debug_to_post_follow_vfork): Remove. (debug_to_follow_fork): New function. * target.h (struct target_ops): Replace to_post_folow_vfork with to_follow_fork. (child_post_follow_vfork): Remove prototype. (child_follow_fork): Add prototype. (target_post_follow_vfork): Remove macro. (target_follow_fork): Add macro. testsuite/ * gdb.base/foll-vfork.exp: Re-enable test on HP/UX.
2002-12-11 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.Daniel Jacobowitz4-49/+113
(child_post_follow_vfork): Cancel pending exec event if we follow the parent. (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary events have been processed. Return a fake TARGET_WAITKIND_EXECD event at the following wait call if necessary. * infrun.c (follow_vfork): Don't follow_exec here. (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD case about HP/UX 10.20. Remove code pushed down to hppah-nat.c:child_wait. * infttrace.c (child_resume): Use TT_PROC_CONTINUE if vfork_in_flight is set.
2002-12-11 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNOREDaniel Jacobowitz4-32/+37
for the parent's fork event. * infrun.c (handle_inferior_event): Only expect one fork event. Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment. * target.h: Update comment for TARGET_WAITKIND_IGNORE.
2002-12-11*** empty log message ***gdbadmin1-1/+1
2002-12-102002-12-10 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-10/+2
* PROBLEMS: Delete reference to PR gdb/725.
2002-12-102002-12-10 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-0/+5
* MAINTAINERS (gdb.c++): Add David Carlton.
2002-12-102002-12-09 David Carlton <carlton@math.stanford.edu>David Carlton3-2/+7
* cli/cli-setshow.c: #include <readline/tilde.h> after defs.h. * cli/cli-cmds.c: Ditto.
2002-12-10*** empty log message ***gdbadmin1-1/+1
2002-12-09* gdbarch.sh (gdbarch_dump): Wrap function addresses in <>.Andrew Cagney3-89/+90