From ee27e1b6c81d715f6c14f36522ac20d8a71acad7 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 30 Apr 2004 14:12:46 +0000 Subject: [PATCH] 2004-04-30 Andrew Cagney * 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. --- gdb/ChangeLog | 9 +++++ gdb/gdb-events.c | 85 ----------------------------------------------- gdb/gdb-events.h | 9 ----- gdb/gdb-events.sh | 3 -- gdb/stack.c | 4 --- gdb/valops.c | 2 -- 6 files changed, 9 insertions(+), 103 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d20fd2b403..cd7d3d4ea2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2004-04-30 Andrew Cagney + + * 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 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI diff --git a/gdb/gdb-events.c b/gdb/gdb-events.c index 573df1fd45..d61409fffd 100644 --- a/gdb/gdb-events.c +++ b/gdb/gdb-events.c @@ -115,36 +115,6 @@ architecture_changed_event (void) 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) { @@ -171,9 +141,6 @@ enum gdb_event tracepoint_delete, tracepoint_modify, architecture_changed, - target_changed, - selected_frame_level_changed, - selected_thread_changed, nr_gdb_events }; @@ -207,16 +174,6 @@ struct tracepoint_modify int number; }; -struct selected_frame_level_changed - { - int level; - }; - -struct selected_thread_changed - { - int thread_num; - }; - struct event { enum gdb_event type; @@ -229,8 +186,6 @@ struct event 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; }; @@ -309,32 +264,6 @@ queue_architecture_changed (void) 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) { @@ -383,17 +312,6 @@ 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); @@ -412,9 +330,6 @@ _initialize_gdb_events (void) 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\ diff --git a/gdb/gdb-events.h b/gdb/gdb-events.h index 7f0d1cb602..c8d5530218 100644 --- a/gdb/gdb-events.h +++ b/gdb/gdb-events.h @@ -55,9 +55,6 @@ typedef void (gdb_events_tracepoint_create_ftype) (int number); 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. */ @@ -71,9 +68,6 @@ struct gdb_events 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; }; @@ -87,9 +81,6 @@ extern void tracepoint_create_event (int number); 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); diff --git a/gdb/gdb-events.sh b/gdb/gdb-events.sh index e1e26ac20c..c16a899032 100755 --- a/gdb/gdb-events.sh +++ b/gdb/gdb-events.sh @@ -47,9 +47,6 @@ f:void:tracepoint_create:int number:number f:void:tracepoint_delete:int number:number f:void:tracepoint_modify:int number:number f:void:architecture_changed:void -f:void:target_changed:void -f:void:selected_frame_level_changed:int level:level -f:void:selected_thread_changed:int thread_num:thread_num EOF grep -v '^#' } diff --git a/gdb/stack.c b/gdb/stack.c index ce1b7b1808..799232a46b 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -1703,8 +1703,6 @@ select_frame_command (char *level_exp, int from_tty) frame = parse_frame_specification (level_exp); select_frame (frame); - if (level != frame_relative_level (deprecated_selected_frame)) - selected_frame_level_changed_event (frame_relative_level (deprecated_selected_frame)); } /* The "frame" command. With no arg, print selected frame briefly. @@ -1747,7 +1745,6 @@ up_silently_base (char *count_exp) if (count1 != 0 && count_exp == 0) error ("Initial frame selected; you cannot go up."); select_frame (fi); - selected_frame_level_changed_event (frame_relative_level (deprecated_selected_frame)); } static void @@ -1791,7 +1788,6 @@ down_silently_base (char *count_exp) } select_frame (frame); - selected_frame_level_changed_event (frame_relative_level (deprecated_selected_frame)); } static void diff --git a/gdb/valops.c b/gdb/valops.c index 5ab41496e9..c638c91d56 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -609,7 +609,6 @@ value_assign (struct value *toval, struct value *fromval) write_memory (changed_addr, dest_buffer, changed_len); if (deprecated_memory_changed_hook) deprecated_memory_changed_hook (changed_addr, changed_len); - target_changed_event (); } break; @@ -701,7 +700,6 @@ value_assign (struct value *toval, struct value *fromval) } if (deprecated_register_changed_hook) deprecated_register_changed_hook (-1); - target_changed_event (); observer_notify_target_changed (¤t_target); break; }