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 | 5b202a0a49d112338a6346dd7e22692de8fba504 (patch) | |
tree | e221b06f408bb578d99fe0d4da2d48efa954e5c1 /gdb | |
parent | e830d3371e7dc111fe1bd56b4be23df50ea8fd4b (diff) | |
download | gdb-5b202a0a49d112338a6346dd7e22692de8fba504.tar.gz |
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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/top.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4a080e94255..b2cded9aa9d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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. + 2003-09-22 Andrew Cagney <cagney@redhat.com> * arch-utils.h (init_frame_pc_noop): Delete declaration. diff --git a/gdb/top.c b/gdb/top.c index 82b7ca6ceca..baeaa933921 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -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); |