aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-04-30 14:12:46 +0000
committerAndrew Cagney <cagney@redhat.com>2004-04-30 14:12:46 +0000
commitee27e1b6c81d715f6c14f36522ac20d8a71acad7 (patch)
treef0081c3f8c8ecf4c67ec971f6d97b1669c0fdbf7 /gdb
parent755306bea8f1d30106422cc613728e33de9e51ba (diff)
downloadgdb-ee27e1b6c81d715f6c14f36522ac20d8a71acad7.zip
gdb-ee27e1b6c81d715f6c14f36522ac20d8a71acad7.tar.gz
gdb-ee27e1b6c81d715f6c14f36522ac20d8a71acad7.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/gdb-events.c85
-rw-r--r--gdb/gdb-events.h9
-rwxr-xr-xgdb/gdb-events.sh3
-rw-r--r--gdb/stack.c4
-rw-r--r--gdb/valops.c2
6 files changed, 9 insertions, 103 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d20fd2b..cd7d3d4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,12 @@
+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
diff --git a/gdb/gdb-events.c b/gdb/gdb-events.c
index 573df1f..d61409f 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 7f0d1cb..c8d5530 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 e1e26ac..c16a899 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 ce1b7b1..799232a 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 5ab4149..c638c91 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 (&current_target);
break;
}