2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
authorJeff Johnston <jjohnstn@redhat.com>
Mon, 22 Sep 2003 17:46:28 +0000 (17:46 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Mon, 22 Sep 2003 17:46:28 +0000 (17:46 +0000)
        * top.c (quit_force): Fix indirect call to quit_target so
        a struct qt_args pointer is passed.

gdb/ChangeLog
gdb/top.c

index 4a080e9425591e6f65726358f2241fac19165560..b2cded9aa9d85734f6ad252f133b78462a4a2406 100644 (file)
@@ -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.
index 82b7ca6cecaafd86b4c7bfb4b1196506a238f31b..baeaa9339213b043c6e3a08631302cc479845f4c 100644 (file)
--- 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);
This page took 0.03436 seconds and 4 git commands to generate.