+2004-04-30 Andrew Cagney <cagney@redhat.com>
+
+ * gdb-events.sh (selected_thread_changed)
+ (selected_frame_level_changed, target_changed): Delete.
+ * gdb-events.h, gdb-events.c: Re-generate.
+ * valops.c (value_assign): Update.
+ * stack.c (select_frame_command, up_silently_base)
+ (down_silently_base): Update.
+
2004-04-29 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
current_event_hooks->architecture_changed ();
}
-void
-target_changed_event (void)
-{
- if (gdb_events_debug)
- fprintf_unfiltered (gdb_stdlog, "target_changed_event\n");
- if (!current_event_hooks->target_changed)
- return;
- current_event_hooks->target_changed ();
-}
-
-void
-selected_frame_level_changed_event (int level)
-{
- if (gdb_events_debug)
- fprintf_unfiltered (gdb_stdlog, "selected_frame_level_changed_event\n");
- if (!current_event_hooks->selected_frame_level_changed)
- return;
- current_event_hooks->selected_frame_level_changed (level);
-}
-
-void
-selected_thread_changed_event (int thread_num)
-{
- if (gdb_events_debug)
- fprintf_unfiltered (gdb_stdlog, "selected_thread_changed_event\n");
- if (!current_event_hooks->selected_thread_changed)
- return;
- current_event_hooks->selected_thread_changed (thread_num);
-}
-
struct gdb_events *
set_gdb_event_hooks (struct gdb_events *vector)
{
tracepoint_delete,
tracepoint_modify,
architecture_changed,
- target_changed,
- selected_frame_level_changed,
- selected_thread_changed,
nr_gdb_events
};
int number;
};
-struct selected_frame_level_changed
- {
- int level;
- };
-
-struct selected_thread_changed
- {
- int thread_num;
- };
-
struct event
{
enum gdb_event type;
struct tracepoint_create tracepoint_create;
struct tracepoint_delete tracepoint_delete;
struct tracepoint_modify tracepoint_modify;
- struct selected_frame_level_changed selected_frame_level_changed;
- struct selected_thread_changed selected_thread_changed;
}
data;
};
append (event);
}
-static void
-queue_target_changed (void)
-{
- struct event *event = XMALLOC (struct event);
- event->type = target_changed;
- append (event);
-}
-
-static void
-queue_selected_frame_level_changed (int level)
-{
- struct event *event = XMALLOC (struct event);
- event->type = selected_frame_level_changed;
- event->data.selected_frame_level_changed.level = level;
- append (event);
-}
-
-static void
-queue_selected_thread_changed (int thread_num)
-{
- struct event *event = XMALLOC (struct event);
- event->type = selected_thread_changed;
- event->data.selected_thread_changed.thread_num = thread_num;
- append (event);
-}
-
void
gdb_events_deliver (struct gdb_events *vector)
{
case architecture_changed:
vector->architecture_changed ();
break;
- case target_changed:
- vector->target_changed ();
- break;
- case selected_frame_level_changed:
- vector->selected_frame_level_changed
- (event->data.selected_frame_level_changed.level);
- break;
- case selected_thread_changed:
- vector->selected_thread_changed
- (event->data.selected_thread_changed.thread_num);
- break;
}
delivering_events = event->next;
xfree (event);
queue_event_hooks.tracepoint_delete = queue_tracepoint_delete;
queue_event_hooks.tracepoint_modify = queue_tracepoint_modify;
queue_event_hooks.architecture_changed = queue_architecture_changed;
- queue_event_hooks.target_changed = queue_target_changed;
- queue_event_hooks.selected_frame_level_changed = queue_selected_frame_level_changed;
- queue_event_hooks.selected_thread_changed = queue_selected_thread_changed;
c = add_set_cmd ("eventdebug", class_maintenance, var_zinteger,
(char *) (&gdb_events_debug), "Set event debugging.\n\
typedef void (gdb_events_tracepoint_delete_ftype) (int number);
typedef void (gdb_events_tracepoint_modify_ftype) (int number);
typedef void (gdb_events_architecture_changed_ftype) (void);
-typedef void (gdb_events_target_changed_ftype) (void);
-typedef void (gdb_events_selected_frame_level_changed_ftype) (int level);
-typedef void (gdb_events_selected_thread_changed_ftype) (int thread_num);
/* gdb-events: object. */
gdb_events_tracepoint_delete_ftype *tracepoint_delete;
gdb_events_tracepoint_modify_ftype *tracepoint_modify;
gdb_events_architecture_changed_ftype *architecture_changed;
- gdb_events_target_changed_ftype *target_changed;
- gdb_events_selected_frame_level_changed_ftype *selected_frame_level_changed;
- gdb_events_selected_thread_changed_ftype *selected_thread_changed;
};
extern void tracepoint_delete_event (int number);
extern void tracepoint_modify_event (int number);
extern void architecture_changed_event (void);
-extern void target_changed_event (void);
-extern void selected_frame_level_changed_event (int level);
-extern void selected_thread_changed_event (int thread_num);
/* Install custom gdb-events hooks. */
extern struct gdb_events *set_gdb_event_hooks (struct gdb_events *vector);