diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-02-03 22:47:40 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-02-03 22:47:40 +0000 |
commit | cae688ecfaa1e1ff4f15fa569a9423bfd9385742 (patch) | |
tree | e4795910c6b6029e47834666148c2df9be80e889 | |
parent | 192176760511f2b6b617ceb60b9c5d4468056f91 (diff) | |
download | gdb-cae688ecfaa1e1ff4f15fa569a9423bfd9385742.zip gdb-cae688ecfaa1e1ff4f15fa569a9423bfd9385742.tar.gz gdb-cae688ecfaa1e1ff4f15fa569a9423bfd9385742.tar.bz2 |
2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
* breakpoint.c (struct captured_parse_breakpoint_args): Move
outside of #ifdef SOLIB_ADD region.
(do_restore_lang_radix_cleanup): Ditto.
(resolve_pending_breakpoint): Ditto.
-rw-r--r-- | gdb/ChangeLog | 11 | ||||
-rw-r--r-- | gdb/breakpoint.c | 110 |
2 files changed, 66 insertions, 55 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b1c4d0f..535ba2e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2004-02-03 Jeff Johnston <jjohnstn@redhat.com> + + * breakpoint.c (struct captured_parse_breakpoint_args): Move + outside of #ifdef SOLIB_ADD region. + (do_restore_lang_radix_cleanup): Ditto. + (resolve_pending_breakpoint): Ditto. + 2004-02-03 Andrew Cagney <cagney@redhat.com> * ia64-tdep.c (read_sigcontext_register): Delete unused function. @@ -19,6 +26,10 @@ 2004-02-02 Jeff Johnston <jjohnstn@redhat.com> + * NEWS: Add information about new pending breakpoint support. + +2004-02-02 Jeff Johnston <jjohnstn@redhat.com> + * breakpoint.h (struct breakpoint): Add new flag, from_tty, and pending fields for pending breakpoint support. * breakpoint.c (breakpoint_enabled): Add check for not pending. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 3c7ba46..a4cfa46 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -4269,61 +4269,6 @@ remove_thread_event_breakpoints (void) delete_breakpoint (b); } -#ifdef SOLIB_ADD -void -remove_solib_event_breakpoints (void) -{ - struct breakpoint *b, *temp; - - ALL_BREAKPOINTS_SAFE (b, temp) - if (b->type == bp_shlib_event) - delete_breakpoint (b); -} - -struct breakpoint * -create_solib_event_breakpoint (CORE_ADDR address) -{ - struct breakpoint *b; - - b = create_internal_breakpoint (address, bp_shlib_event); - return b; -} - -/* Disable any breakpoints that are on code in shared libraries. Only - apply to enabled breakpoints, disabled ones can just stay disabled. */ - -void -disable_breakpoints_in_shlibs (int silent) -{ - struct breakpoint *b; - int disabled_shlib_breaks = 0; - - /* See also: insert_breakpoints, under DISABLE_UNSETTABLE_BREAK. */ - ALL_BREAKPOINTS (b) - { -#if defined (PC_SOLIB) - if (((b->type == bp_breakpoint) || - (b->type == bp_hardware_breakpoint)) && - breakpoint_enabled (b) && - !b->loc->duplicate && - PC_SOLIB (b->loc->address)) - { - b->enable_state = bp_shlib_disabled; - if (!silent) - { - if (!disabled_shlib_breaks) - { - target_terminal_ours_for_output (); - warning ("Temporarily disabling shared library breakpoints:"); - } - disabled_shlib_breaks = 1; - warning ("breakpoint #%d ", b->number); - } - } -#endif - } -} - struct captured_parse_breakpoint_args { char **arg_p; @@ -4384,6 +4329,61 @@ resolve_pending_breakpoint (struct breakpoint *b) return rc; } +#ifdef SOLIB_ADD +void +remove_solib_event_breakpoints (void) +{ + struct breakpoint *b, *temp; + + ALL_BREAKPOINTS_SAFE (b, temp) + if (b->type == bp_shlib_event) + delete_breakpoint (b); +} + +struct breakpoint * +create_solib_event_breakpoint (CORE_ADDR address) +{ + struct breakpoint *b; + + b = create_internal_breakpoint (address, bp_shlib_event); + return b; +} + +/* Disable any breakpoints that are on code in shared libraries. Only + apply to enabled breakpoints, disabled ones can just stay disabled. */ + +void +disable_breakpoints_in_shlibs (int silent) +{ + struct breakpoint *b; + int disabled_shlib_breaks = 0; + + /* See also: insert_breakpoints, under DISABLE_UNSETTABLE_BREAK. */ + ALL_BREAKPOINTS (b) + { +#if defined (PC_SOLIB) + if (((b->type == bp_breakpoint) || + (b->type == bp_hardware_breakpoint)) && + breakpoint_enabled (b) && + !b->loc->duplicate && + PC_SOLIB (b->loc->address)) + { + b->enable_state = bp_shlib_disabled; + if (!silent) + { + if (!disabled_shlib_breaks) + { + target_terminal_ours_for_output (); + warning ("Temporarily disabling shared library breakpoints:"); + } + disabled_shlib_breaks = 1; + warning ("breakpoint #%d ", b->number); + } + } +#endif + } +} + /* Try to reenable any breakpoints in shared libraries. */ void re_enable_breakpoints_in_shlibs (void) |