X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=gdb%2Fbreak-catch-sig.c;h=e3e6f6fd8c9d1ee73ae9f0805067a5983e73546a;hb=975f8708de015fb2b813edbf8b714f4777c57a41;hp=14f901f07c257c9982f1e3d654e57dd5abacae07;hpb=d55e5aa6b29906346c51ad00e6a9b112590aa294;p=deliverable%2Fbinutils-gdb.git
diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c
index 14f901f07c..e3e6f6fd8c 100644
--- a/gdb/break-catch-sig.c
+++ b/gdb/break-catch-sig.c
@@ -1,6 +1,6 @@
/* Everything about signal catchpoints, for GDB.
- Copyright (C) 2011-2019 Free Software Foundation, Inc.
+ Copyright (C) 2011-2020 Free Software Foundation, Inc.
This file is part of GDB.
@@ -18,23 +18,19 @@
along with this program. If not, see . */
#include "defs.h"
-
-/* Standard C includes. */
-#include
-
-/* Standard C++ includes. */
-#include
-
-/* Local non-gdb includes. */
-#include "annotate.h"
#include "arch-utils.h"
+#include
#include "breakpoint.h"
-#include "cli/cli-utils.h"
-#include "completer.h"
#include "gdbcmd.h"
#include "inferior.h"
#include "infrun.h"
+#include "annotate.h"
#include "valprint.h"
+#include "cli/cli-utils.h"
+#include "completer.h"
+#include "cli/cli-style.h"
+
+#include
#define INTERNAL_SIGNAL(x) ((x) == GDB_SIGNAL_TRAP || (x) == GDB_SIGNAL_INT)
@@ -185,12 +181,11 @@ static enum print_stop_action
signal_catchpoint_print_it (bpstat bs)
{
struct breakpoint *b = bs->breakpoint_at;
- ptid_t ptid;
struct target_waitstatus last;
const char *signal_name;
struct ui_out *uiout = current_uiout;
- get_last_target_status (&ptid, &last);
+ get_last_target_status (nullptr, nullptr, &last);
signal_name = signal_to_name_or_int (last.value.sig);
@@ -246,7 +241,8 @@ signal_catchpoint_print_one (struct breakpoint *b,
}
else
uiout->field_string ("what",
- c->catch_all ? "" : "");
+ c->catch_all ? "" : "",
+ metadata_style.style ());
uiout->text ("\" ");
if (uiout->is_mi_like_p ())
@@ -428,8 +424,9 @@ initialize_signal_catchpoint_ops (void)
ops->explains_signal = signal_catchpoint_explains_signal;
}
+void _initialize_break_catch_sig ();
void
-_initialize_break_catch_sig (void)
+_initialize_break_catch_sig ()
{
initialize_signal_catchpoint_ops ();