/* Annotation routines for GDB.
- Copyright 1986, 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
+ Copyright 1986, 1989, 1990, 1991, 1992, 1995 Free Software Foundation, Inc.
This file is part of GDB.
#include "breakpoint.h"
\f
static void print_value_flags PARAMS ((struct type *));
+static void breakpoint_changed PARAMS ((struct breakpoint *));
+
+void (*annotate_starting_hook) PARAMS ((void));
+void (*annotate_stopped_hook) PARAMS ((void));
+void (*annotate_signalled_hook) PARAMS ((void));
+void (*annotate_exited_hook) PARAMS ((void));
static void
print_value_flags (t)
void
annotate_starting ()
{
- if (annotation_level > 1)
+
+ if (annotate_starting_hook)
+ annotate_starting_hook ();
+ else
{
- printf_filtered ("\n\032\032starting\n");
+ if (annotation_level > 1)
+ {
+ printf_filtered ("\n\032\032starting\n");
+ }
}
}
void
annotate_stopped ()
{
- if (annotation_level > 1)
- printf_filtered ("\n\032\032stopped\n");
+ if (annotate_stopped_hook)
+ annotate_stopped_hook ();
+ else
+ {
+ if (annotation_level > 1)
+ printf_filtered ("\n\032\032stopped\n");
+ }
}
void
annotate_exited (exitstatus)
int exitstatus;
{
- if (annotation_level > 1)
- printf_filtered ("\n\032\032exited %d\n", exitstatus);
+ if (annotate_exited_hook)
+ annotate_exited_hook ();
+ else
+ {
+ if (annotation_level > 1)
+ printf_filtered ("\n\032\032exited %d\n", exitstatus);
+ }
}
void
annotate_signalled ()
{
+ if (annotate_signalled_hook)
+ annotate_signalled_hook ();
+
if (annotation_level > 1)
printf_filtered ("\n\032\032signalled\n");
}
else
printf_filtered ("\032\032");
- printf_filtered ("%s:%d:%d:%s:", filename,
+ printf_filtered ("%s:%d:%d:%s:0x", filename,
line, character,
mid ? "middle" : "beg");
print_address_numeric (pc, 0, gdb_stdout);
{
if (annotation_level > 1)
{
- printf_filtered ("\n\032\032frame-begin %d ", level);
+ printf_filtered ("\n\032\032frame-begin %d 0x", level);
print_address_numeric (pc, 0, gdb_stdout);
printf_filtered ("\n");
}