diff options
author | Pedro Alves <palves@redhat.com> | 2017-09-27 23:37:48 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-09-27 23:37:48 +0100 |
commit | 2a015c47e1a4a9b117d54f357dc3540326811748 (patch) | |
tree | aa62d83c6770702191ff1b038f0183824bcec639 /gdb/mi/mi-cmd-break.c | |
parent | bea0a5aeece991b2f4f20a746ce655283607d9a6 (diff) | |
download | binutils-users/palves/catch_exceptions.zip binutils-users/palves/catch_exceptions.tar.gz binutils-users/palves/catch_exceptions.tar.bz2 |
zap catch_exceptionsusers/palves/catch_exceptions
Diffstat (limited to 'gdb/mi/mi-cmd-break.c')
-rw-r--r-- | gdb/mi/mi-cmd-break.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c index 188e4e2..c313c03 100644 --- a/gdb/mi/mi-cmd-break.c +++ b/gdb/mi/mi-cmd-break.c @@ -24,7 +24,6 @@ #include "mi-out.h" #include "breakpoint.h" #include "mi-getopt.h" -#include "gdb.h" #include "observer.h" #include "mi-main.h" #include "mi-cmd-break.h" @@ -53,7 +52,17 @@ static void breakpoint_notify (struct breakpoint *b) { if (mi_can_breakpoint_notify) - gdb_breakpoint_query (current_uiout, b->number, NULL); + { + TRY + { + print_breakpoint (b); + } + CATCH (ex, RETURN_MASK_ALL) + { + exception_print (gdb_stdout, ex); + } + END_CATCH + } } enum bp_type |