aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2008-07-29 14:16:15 +0000
committerStan Shebs <shebs@codesourcery.com>2008-07-29 14:16:15 +0000
commit938f4ca847f819898155e5079db4fc8ae2a4c926 (patch)
tree736a688edf1676965df16ab8f049039aff3bb315
parent086c6838fab1ebd605b03d14e4fbd7a31a86062d (diff)
downloadgdb-938f4ca847f819898155e5079db4fc8ae2a4c926.zip
gdb-938f4ca847f819898155e5079db4fc8ae2a4c926.tar.gz
gdb-938f4ca847f819898155e5079db4fc8ae2a4c926.tar.bz2
* main.c (captured_main): Remove long-unused #if 0 blocks.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/main.c44
2 files changed, 4 insertions, 44 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1c0129c..ec170a4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2008-07-29 Stan Shebs <stan@codesourcery.com>
+
+ * main.c (captured_main): Remove long-unused #if 0 blocks.
+
2008-07-28 Tom Tromey <tromey@redhat.com>
* annotate.h (deprecated_annotate_starting_hook): Remove.
diff --git a/gdb/main.c b/gdb/main.c
index c4b7951..15a6558 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -783,23 +783,6 @@ Can't attach to process and specify a core file at the same time."));
for (i = 0; i < ncmd; i++)
{
-#if 0
- /* NOTE: cagney/1999-11-03: SET_TOP_LEVEL() was a macro that
- expanded into a call to setjmp(). */
- if (!SET_TOP_LEVEL ()) /* NB: This is #if 0'd out */
- {
- /* NOTE: I am commenting this out, because it is not clear
- where this feature is used. It is very old and
- undocumented. ezannoni: 1999-05-04 */
-#if 0
- if (cmdarg[i][0] == '-' && cmdarg[i][1] == '\0')
- read_command_file (stdin);
- else
-#endif
- source_script (cmdarg[i], !batch);
- do_cleanups (ALL_CLEANUPS);
- }
-#endif
if (cmdarg[i].type == CMDARG_FILE)
catch_command_errors (source_script, cmdarg[i].string,
!batch, RETURN_MASK_ALL);
@@ -839,33 +822,6 @@ Can't attach to process and specify a core file at the same time."));
#endif
}
-#if 0
- /* FIXME: cagney/1999-11-06: The original main loop was like: */
- while (1)
- {
- if (!SET_TOP_LEVEL ())
- {
- do_cleanups (ALL_CLEANUPS); /* Do complete cleanup */
- /* GUIs generally have their own command loop, mainloop, or
- whatever. This is a good place to gain control because
- many error conditions will end up here via longjmp(). */
- if (deprecated_command_loop_hook)
- deprecated_command_loop_hook ();
- else
- deprecated_command_loop ();
- quit_command ((char *) 0, instream == stdin);
- }
- }
- /* NOTE: If the command_loop() returned normally, the loop would
- attempt to exit by calling the function quit_command(). That
- function would either call exit() or throw an error returning
- control to SET_TOP_LEVEL. */
- /* NOTE: The function do_cleanups() was called once each time round
- the loop. The usefulness of the call isn't clear. If an error
- was thrown, everything would have already been cleaned up. If
- command_loop() returned normally and quit_command() was called,
- either exit() or error() (again cleaning up) would be called. */
-#endif
/* NOTE: cagney/1999-11-07: There is probably no reason for not
moving this loop and the code found in captured_command_loop()
into the command_loop() proper. The main thing holding back that