aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-07-17 03:20:48 +0000
committerAndrew Cagney <cagney@redhat.com>2004-07-17 03:20:48 +0000
commit045e8821f9437e04b520d9ee3ad576421ba1bdc9 (patch)
tree903d691fea66da94502e1be6f229fa9a3c515710 /gdb
parent6085cfdc509ea11fc169b54676e5611c3eb34a64 (diff)
downloadgdb-045e8821f9437e04b520d9ee3ad576421ba1bdc9.zip
gdb-045e8821f9437e04b520d9ee3ad576421ba1bdc9.tar.gz
gdb-045e8821f9437e04b520d9ee3ad576421ba1bdc9.tar.bz2
Index: ChangeLog
2004-07-16 Andrew Cagney <cagney@gnu.org> * defs.h (event_loop_p): Replace variable declaration with macro, always 1. * main.c (captured_main): Delete options "-async" and "-noasync". (event_loop_p): Delete variable. * NEWS: Mention that "-async" and "-noasync" were removed. Index: doc/ChangeLog 2004-07-16 Andrew Cagney <cagney@gnu.org> * gdb.texinfo (Mode Options): Delete documentation on "-async" and "-noasync".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/NEWS5
-rw-r--r--gdb/defs.h7
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo24
-rw-r--r--gdb/main.c8
6 files changed, 23 insertions, 34 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2c130bc..35f7586 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
2004-07-16 Andrew Cagney <cagney@gnu.org>
+ * defs.h (event_loop_p): Replace variable declaration with macro,
+ always 1.
+ * main.c (captured_main): Delete options "-async" and "-noasync".
+ (event_loop_p): Delete variable.
+ * NEWS: Mention that "-async" and "-noasync" were removed.
+
+2004-07-16 Andrew Cagney <cagney@gnu.org>
+
* infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
calls, no longer applicable. Update comments and rename parameter
"step_frame" to "return_frame".
diff --git a/gdb/NEWS b/gdb/NEWS
index 7c4dc38..f9d48d5 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,11 @@
*** Changes since GDB 6.1:
+* "-async" and "-noasync" options removed.
+
+Support for the broken "-noasync" option has been removed (it caused
+GDB to dump core).
+
* New ``start'' command.
This command runs the program until the begining of the main procedure.
diff --git a/gdb/defs.h b/gdb/defs.h
index 8ccad52..deee6bf 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1216,8 +1216,11 @@ struct target_waitstatus;
struct cmd_list_element;
/* Should the asynchronous variant of the interpreter (using the
- event-loop) be enabled? */
-extern int event_loop_p;
+ event-loop) be enabled? */
+/* NOTE: cagney/2004-06-10: GDB changed to always uses the event-loop.
+ A follow-on cleanup is to eliminate references to
+ "event_loop_p". */
+#define event_loop_p 1
extern void (*deprecated_pre_add_symbol_hook) (const char *);
extern void (*deprecated_post_add_symbol_hook) (void);
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index a98ffe0..8723926 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-16 Andrew Cagney <cagney@gnu.org>
+
+ * gdb.texinfo (Mode Options): Delete documentation on "-async" and
+ "-noasync".
+
2004-07-09 Eli Zaretskii <eliz@gnu.org>
* gdb.texinfo: Fix @kindex entries so that multiple commands that
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 329971f..4acd231 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1065,30 +1065,6 @@ that control @value{GDBN}, and level 2 has been deprecated.
The annotation mechanism has largely been superseeded by @sc{gdb/mi}
(@pxref{GDB/MI}).
-@item -async
-@cindex @code{--async}
-Use the asynchronous event loop for the command-line interface.
-@value{GDBN} processes all events, such as user keyboard input, via a
-special event loop. This allows @value{GDBN} to accept and process user
-commands in parallel with the debugged process being
-run@footnote{@value{GDBN} built with @sc{djgpp} tools for
-MS-DOS/MS-Windows supports this mode of operation, but the event loop is
-suspended when the debuggee runs.}, so you don't need to wait for
-control to return to @value{GDBN} before you type the next command.
-(@emph{Note:} as of version 5.1, the target side of the asynchronous
-operation is not yet in place, so @samp{-async} does not work fully
-yet.)
-@c FIXME: when the target side of the event loop is done, the above NOTE
-@c should be removed.
-
-When the standard input is connected to a terminal device, @value{GDBN}
-uses the asynchronous event loop by default, unless disabled by the
-@samp{-noasync} option.
-
-@item -noasync
-@cindex @code{--noasync}
-Disable the asynchronous event loop for the command-line interface.
-
@item --args
@cindex @code{--args}
Change interpretation of command line so that arguments following the
diff --git a/gdb/main.c b/gdb/main.c
index a419309..4e5fd2a 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -49,12 +49,6 @@ int display_time;
int display_space;
-/* Whether this is the async version or not. The async version is
- invoked on the command line with the -nw --async options. In this
- version, the usual command_loop is substituted by and event loop which
- processes UI events asynchronously. */
-int event_loop_p = 1;
-
/* The selected interpreter. This will be used as a set command
variable, so it should always be malloc'ed - since
do_setshow_command will free it. */
@@ -253,8 +247,6 @@ captured_main (void *data)
};
static struct option long_options[] =
{
- {"async", no_argument, &event_loop_p, 1},
- {"noasync", no_argument, &event_loop_p, 0},
#if defined(TUI)
{"tui", no_argument, 0, OPT_TUI},
#endif