From: Jeff Johnston Date: Mon, 22 Sep 2003 17:46:28 +0000 (+0000) Subject: 2003-09-22 Jeff Johnston X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=365c70b126a35ce512fb82daf89c99849f8f1e8f;p=binutils-gdb.git 2003-09-22 Jeff Johnston * top.c (quit_force): Fix indirect call to quit_target so a struct qt_args pointer is passed. --- 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 + + * top.c (quit_force): Fix indirect call to quit_target so + a struct qt_args pointer is passed. + 2003-09-22 Andrew Cagney * 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);