aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb-events.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-04-29 18:00:08 +0000
committerAndrew Cagney <cagney@redhat.com>2004-04-29 18:00:08 +0000
commit711cc5cd074d90536d28426dbdaed62f0d3bf0a7 (patch)
treedd26885f9df3a914e2033d936584d581e01eb6f4 /gdb/gdb-events.c
parent8a7140c38f21984c512ac97bcfa2f0d7417bdc27 (diff)
downloadgdb-711cc5cd074d90536d28426dbdaed62f0d3bf0a7.zip
gdb-711cc5cd074d90536d28426dbdaed62f0d3bf0a7.tar.gz
gdb-711cc5cd074d90536d28426dbdaed62f0d3bf0a7.tar.bz2
2004-04-29 Andrew Cagney <cagney@redhat.com>
* gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references. Delete all disabled code. * gdb-events.h, gdb-events.c: Re-generate.
Diffstat (limited to 'gdb/gdb-events.c')
-rw-r--r--gdb/gdb-events.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/gdb/gdb-events.c b/gdb/gdb-events.c
index 63ee3bc..573df1f 100644
--- a/gdb/gdb-events.c
+++ b/gdb/gdb-events.c
@@ -1,6 +1,6 @@
/* User Interface Events.
- Copyright 1999, 2001, 2002 Free Software Foundation, Inc.
+ Copyright 1999, 2001, 2002, 2004 Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
@@ -39,16 +39,12 @@
#include "gdb-events.h"
#include "gdbcmd.h"
-#if WITH_GDB_EVENTS
static struct gdb_events null_event_hooks;
static struct gdb_events queue_event_hooks;
static struct gdb_events *current_event_hooks = &null_event_hooks;
-#endif
int gdb_events_debug;
-#if WITH_GDB_EVENTS
-
void
breakpoint_create_event (int b)
{
@@ -149,9 +145,6 @@ selected_thread_changed_event (int thread_num)
current_event_hooks->selected_thread_changed (thread_num);
}
-#endif
-
-#if WITH_GDB_EVENTS
struct gdb_events *
set_gdb_event_hooks (struct gdb_events *vector)
{
@@ -162,15 +155,12 @@ set_gdb_event_hooks (struct gdb_events *vector)
current_event_hooks = vector;
return old_events;
}
-#endif
-#if WITH_GDB_EVENTS
void
clear_gdb_event_hooks (void)
{
set_gdb_event_hooks (&null_event_hooks);
}
-#endif
enum gdb_event
{
@@ -415,7 +405,6 @@ void
_initialize_gdb_events (void)
{
struct cmd_list_element *c;
-#if WITH_GDB_EVENTS
queue_event_hooks.breakpoint_create = queue_breakpoint_create;
queue_event_hooks.breakpoint_delete = queue_breakpoint_delete;
queue_event_hooks.breakpoint_modify = queue_breakpoint_modify;
@@ -426,7 +415,6 @@ _initialize_gdb_events (void)
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;
-#endif
c = add_set_cmd ("eventdebug", class_maintenance, var_zinteger,
(char *) (&gdb_events_debug), "Set event debugging.\n\