* gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
* gdb-events.h, gdb-events.c: Re-generate.
* tui/tui-hooks.c (tui_install_hooks): Update.
(tui_remove_hooks): Update.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
+2004-06-26 Andrew Cagney <cagney@gnu.org>
+
+ * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
+ * gdb-events.h, gdb-events.c: Re-generate.
+ * tui/tui-hooks.c (tui_install_hooks): Update.
+ (tui_remove_hooks): Update.
+ * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
+
2004-06-26 Mark Kettenis <kettenis@gnu.org>
* amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
}
struct gdb_events *
-set_gdb_event_hooks (struct gdb_events *vector)
+deprecated_set_gdb_event_hooks (struct gdb_events *vector)
{
struct gdb_events *old_events = current_event_hooks;
if (vector == NULL)
void
clear_gdb_event_hooks (void)
{
- set_gdb_event_hooks (&null_event_hooks);
+ deprecated_set_gdb_event_hooks (&null_event_hooks);
}
enum gdb_event
extern void architecture_changed_event (void);
/* Install custom gdb-events hooks. */
-extern struct gdb_events *set_gdb_event_hooks (struct gdb_events *vector);
+extern struct gdb_events *deprecated_set_gdb_event_hooks (struct gdb_events *vector);
/* Deliver any pending events. */
extern void gdb_events_deliver (struct gdb_events *vector);
cat <<EOF
/* Install custom gdb-events hooks. */
-extern struct gdb_events *set_gdb_event_hooks (struct gdb_events *vector);
+extern struct gdb_events *deprecated_set_gdb_event_hooks (struct gdb_events *vector);
/* Deliver any pending events. */
extern void gdb_events_deliver (struct gdb_events *vector);
echo ""
cat <<EOF
struct gdb_events *
-set_gdb_event_hooks (struct gdb_events *vector)
+deprecated_set_gdb_event_hooks (struct gdb_events *vector)
{
struct gdb_events *old_events = current_event_hooks;
if (vector == NULL)
void
clear_gdb_event_hooks (void)
{
- set_gdb_event_hooks (&null_event_hooks);
+ deprecated_set_gdb_event_hooks (&null_event_hooks);
}
EOF
address = argv[optind];
/* Now we have what we need, let's insert the breakpoint! */
- old_hooks = set_gdb_event_hooks (&breakpoint_hooks);
+ old_hooks = deprecated_set_gdb_event_hooks (&breakpoint_hooks);
switch (type)
{
case REG_BP:
internal_error (__FILE__, __LINE__,
"mi_cmd_break_insert: Bad switch.");
}
- set_gdb_event_hooks (old_hooks);
+ deprecated_set_gdb_event_hooks (old_hooks);
if (rc == GDB_RC_FAIL)
return MI_CMD_CAUGHT_ERROR;
deprecated_query_hook = tui_query_hook;
/* Install the event hooks. */
- tui_old_event_hooks = set_gdb_event_hooks (&tui_event_hooks);
+ tui_old_event_hooks = deprecated_set_gdb_event_hooks (&tui_event_hooks);
deprecated_registers_changed_hook = tui_registers_changed_hook;
deprecated_register_changed_hook = tui_register_changed_hook;
deprecated_detach_hook = 0;
/* Restore the previous event hooks. */
- set_gdb_event_hooks (tui_old_event_hooks);
+ deprecated_set_gdb_event_hooks (tui_old_event_hooks);
}
void _initialize_tui_hooks (void);