+2008-09-18 Keith Seitz <keiths@redhat.com>
+
+ From Pedro Alves <pedro@codesourcery.com>:
+ * generic/gdbtk-cmds.c (gdb_cmd, gdb_immediate_command): Adjust to
+ new bpstat_do_actions inferface.
+ * generic/gdbtk-hooks.c: Include gdbthread.h.
+ (gdbtk_annotate_signal): Get the stop_signal from the current
+ thread.
+
2008-09-02 Keith Seitz <keiths@redhat.com>
* generic/gdbtk-cmds.c (gdb_listfuncs): Use SYMBOL_PRINT_NAME
result_ptr->flags |= GDBTK_TO_RESULT;
}
- bpstat_do_actions (&stop_bpstat);
+ bpstat_do_actions ();
return TCL_OK;
}
execute_command (Tcl_GetStringFromObj (objv[1], NULL), from_tty);
- bpstat_do_actions (&stop_bpstat);
+ bpstat_do_actions ();
result_ptr->flags |= GDBTK_TO_RESULT;
#include "annotate.h"
#include "cli/cli-decode.h"
#include "observer.h"
+#include "gdbthread.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
\f
/* notify GDBtk when a signal occurs */
static void
-gdbtk_annotate_signal ()
+gdbtk_annotate_signal (void)
{
char *buf;
+ struct thread_info *tp = inferior_thread ();
/* Inform gui that the target has stopped. This is
a necessary stop button evil. We don't want signal notification
timeout. */
Tcl_Eval (gdbtk_interp, "gdbtk_stop_idle_callback");
- xasprintf (&buf, "gdbtk_signal %s {%s}", target_signal_to_name (stop_signal),
- target_signal_to_string (stop_signal));
+ xasprintf (&buf, "gdbtk_signal %s {%s}",
+ target_signal_to_name (tp->stop_signal),
+ target_signal_to_string (tp->stop_signal));
if (Tcl_Eval (gdbtk_interp, buf) != TCL_OK)
report_error ();
free(buf);