aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2011-09-21 15:21:28 +0000
committerJoseph Myers <joseph@codesourcery.com>2011-09-21 15:21:28 +0000
commitb2cd6b294833b0dd0d5b913580fa7e5a72565b41 (patch)
tree21a7a46c8c5cf7ea3612373589a4ca4a441dfa28 /gdb/top.c
parent09b4ad9fcbb1a946df939adeb373d1be0e701694 (diff)
downloadfsf-binutils-gdb-b2cd6b294833b0dd0d5b913580fa7e5a72565b41.zip
fsf-binutils-gdb-b2cd6b294833b0dd0d5b913580fa7e5a72565b41.tar.gz
fsf-binutils-gdb-b2cd6b294833b0dd0d5b913580fa7e5a72565b41.tar.bz2
* 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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 22178b7..ec475a8 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 */