aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>1999-01-19 16:20:39 +0000
committerDavid Taylor <taylor@redhat.com>1999-01-19 16:20:39 +0000
commit5337bd558beaa4f86b7cf9855ffee766754b3b42 (patch)
tree3131626f9e1ea84d2ab379c26ff6848b0e185001 /gdb/breakpoint.c
parent9a0c4d8ca956b9b7b064d0e435fef7038880093f (diff)
downloadgdb-5337bd558beaa4f86b7cf9855ffee766754b3b42.zip
gdb-5337bd558beaa4f86b7cf9855ffee766754b3b42.tar.gz
gdb-5337bd558beaa4f86b7cf9855ffee766754b3b42.tar.bz2
disable_breakpoints_in_shlibs now takes a new parameter -- silent; callers
updated. new callers -- clear_solib (irix5-nat.c, osfsolib.c, solib.c). PR 16495 / PR 18213.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index bcee5f9..8ca2916 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3122,7 +3122,8 @@ create_solib_event_breakpoint (address)
}
void
-disable_breakpoints_in_shlibs ()
+disable_breakpoints_in_shlibs (silent)
+ int silent;
{
struct breakpoint * b;
int disabled_shlib_breaks = 0;
@@ -3139,17 +3140,20 @@ disable_breakpoints_in_shlibs ()
PC_SOLIB (b->address))
{
b->enable = shlib_disabled;
- if (!disabled_shlib_breaks)
- {
- target_terminal_ours_for_output ();
- printf_filtered ("Temporarily disabling shared library breakpoints:\n");
- }
- disabled_shlib_breaks = 1;
- printf_filtered ("%d ", b->number);
+ if (!silent)
+ {
+ if (!disabled_shlib_breaks)
+ {
+ target_terminal_ours_for_output ();
+ printf_filtered ("Temporarily disabling shared library breakpoints:\n");
+ }
+ disabled_shlib_breaks = 1;
+ printf_filtered ("%d ", b->number);
+ }
}
#endif
}
- if (disabled_shlib_breaks)
+ if (disabled_shlib_breaks && !silent)
printf_filtered ("\n");
}