diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-09-22 17:46:28 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-09-22 17:46:28 +0000 |
commit | 365c70b126a35ce512fb82daf89c99849f8f1e8f (patch) | |
tree | 2e263ff5cd37d72a99f178ddbdcb95be50508b85 /gdb/top.c | |
parent | 5d6eb653a494cfa3f7f85fae4f0e4937d1e8e298 (diff) | |
download | gdb-365c70b126a35ce512fb82daf89c99849f8f1e8f.zip gdb-365c70b126a35ce512fb82daf89c99849f8f1e8f.tar.gz gdb-365c70b126a35ce512fb82daf89c99849f8f1e8f.tar.bz2 |
2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
* top.c (quit_force): Fix indirect call to quit_target so
a struct qt_args pointer is passed.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1478,6 +1478,7 @@ void quit_force (char *args, int from_tty) { int exit_code = 0; + struct qt_args qt; /* An optional expression may be used to cause gdb to terminate with the value of that expression. */ @@ -1488,8 +1489,11 @@ quit_force (char *args, int from_tty) exit_code = (int) value_as_long (val); } + qt.args = args; + qt.from_tty = from_tty; + /* We want to handle any quit errors and exit regardless. */ - catch_errors (quit_target, args, + catch_errors (quit_target, &qt, "Quitting: ", RETURN_MASK_ALL); exit (exit_code); |