diff options
author | Joseph Myers <jsm@polyomino.org.uk> | 2011-09-21 15:21:25 +0000 |
---|---|---|
committer | Joseph Myers <jsm@polyomino.org.uk> | 2011-09-21 15:21:25 +0000 |
commit | 42b0a89ba60936910216f803670c75a3585fcc66 (patch) | |
tree | c2853f8e71450733807dcf7ecd50d0c6ba32f074 /gdb/top.c | |
parent | a3086f1764d548cc8e727be83799e51097beaf54 (diff) | |
download | gdb-42b0a89ba60936910216f803670c75a3585fcc66.tar.gz |
* event-top.c (async_disconnect): If an exception is thrown from
quit_cover, call pop_all_targets. Use TRY_CATCH instead of
catch_errors.
* top.c (quit_cover): Return void and take no arguments.
* top.h (quit_cover): Update prototype.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/top.c b/gdb/top.c index 22178b73ba4..ec475a8e5ac 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -288,14 +288,13 @@ void (*deprecated_context_hook) (int id); /* NOTE 1999-04-29: This function will be static again, once we modify gdb to use the event loop as the default command loop and we merge event-top.c into this file, top.c. */ -/* static */ int -quit_cover (void *s) +/* static */ void +quit_cover (void) { caution = 0; /* Throw caution to the wind -- we're exiting. This prevents asking the user dumb questions. */ quit_command ((char *) 0, 0); - return 0; } #endif /* defined SIGHUP */ |