2005-01-19 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Wed, 19 Jan 2005 21:15:44 +0000 (21:15 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 19 Jan 2005 21:15:44 +0000 (21:15 +0000)
* exceptions.h (deprecated_throw_reason): Rename throw_reason.
* exceptions.c (deprecated_throw_reason): Rename throw_reason.
* utils.c (internal_verror, quit): Update.
* remote-sds.c (interrupt_query): Update.
* remote-mips.c (mips_error, mips_kill): Update.
* remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
* remote.c (interrupt_query): Update.
* ocd.c (interrupt_query): Update.
* nto-procfs.c (interrupt_query): Update.
* monitor.c (monitor_interrupt_query): Update.
* breakpoint.c (break_command_1): Update.

12 files changed:
gdb/ChangeLog
gdb/breakpoint.c
gdb/exceptions.c
gdb/exceptions.h
gdb/monitor.c
gdb/nto-procfs.c
gdb/ocd.c
gdb/remote-fileio.c
gdb/remote-mips.c
gdb/remote-sds.c
gdb/remote.c
gdb/utils.c

index e5b35857189feb59e237a9a8aceeb12015cf68ed..1c63d23ec98fa00dccb1293c2beec5bb37cbd381 100644 (file)
@@ -1,5 +1,17 @@
 2005-01-19  Andrew Cagney  <cagney@gnu.org>
 
+       * exceptions.h (deprecated_throw_reason): Rename throw_reason.
+       * exceptions.c (deprecated_throw_reason): Rename throw_reason.
+       * utils.c (internal_verror, quit): Update.
+       * remote-sds.c (interrupt_query): Update.
+       * remote-mips.c (mips_error, mips_kill): Update.
+       * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
+       * remote.c (interrupt_query): Update.
+       * ocd.c (interrupt_query): Update.
+       * nto-procfs.c (interrupt_query): Update.
+       * monitor.c (monitor_interrupt_query): Update.
+       * breakpoint.c (break_command_1): Update.
+
        * infrun.c: (resume, proceed, wait_for_inferior)
        (handle_inferior_event, stop_stepping)
        (prepare_to_wait): Write debug output to gdb_stdlog.
index 3c0e8856d746bdcc89aab4b70d23284860c2af06..d92dbeb86f0fcbd10d19652746f3c6c972a55252 100644 (file)
@@ -5144,7 +5144,7 @@ break_command_1 (char *arg, int flag, int from_tty, struct breakpoint *pending_b
             error.  */
 
          if (pending_break_support == AUTO_BOOLEAN_FALSE)
-           throw_reason (RETURN_ERROR);
+           deprecated_throw_reason (RETURN_ERROR);
 
           /* If pending breakpoint support is auto query and the user
             selects no, then simply return the error code.  */
index e640b5fb70a8130e2c83812d34586326a3619666..9219462ac41f5561ef0cec9bc19effba5c7eaa26 100644 (file)
@@ -239,7 +239,7 @@ throw_exception (struct exception exception)
 static char *last_message;
 
 NORETURN void
-throw_reason (enum return_reason reason)
+deprecated_throw_reason (enum return_reason reason)
 {
   struct exception exception;
   memset (&exception, 0, sizeof exception);
index fddaf37ea1033017449c85356f7bbfdfaaf705a7..fe19ecdae80978a0cd95141822b59fc0606df4cd 100644 (file)
@@ -85,13 +85,16 @@ extern void exception_fprintf (struct ui_file *file, struct exception e,
    Wombat.  */
 
 extern NORETURN void throw_exception (struct exception exception) ATTR_NORETURN;
-extern NORETURN void throw_reason (enum return_reason reason) ATTR_NORETURN;
 extern NORETURN void throw_verror (enum errors, const char *fmt,
                                   va_list ap) ATTR_NORETURN;
 extern NORETURN void throw_vfatal (const char *fmt, va_list ap) ATTR_NORETURN;
 extern NORETURN void throw_error (enum errors error, const char *fmt,
                                  ...) ATTR_NORETURN ATTR_FORMAT (printf, 2, 3);
 
+/* Instead of deprecated_throw_reason, code should use catch_exception
+   and throw_exception.  */
+extern NORETURN void deprecated_throw_reason (enum return_reason reason) ATTR_NORETURN;
+
 /* Call FUNC(UIOUT, FUNC_ARGS) but wrapped within an exception
    handler.  If an exception (enum return_reason) is thrown using
    throw_exception() than all cleanups installed since
index 0e90fcdd74981a8a6e0ab44decb7c5ccf9ec43a5..a468e3ccd86a7f1e1ddf36bc6d378c211e1247d0 100644 (file)
@@ -1030,7 +1030,7 @@ monitor_interrupt_query (void)
 Give up (and stop debugging it)? "))
     {
       target_mourn_inferior ();
-      throw_reason (RETURN_QUIT);
+      deprecated_throw_reason (RETURN_QUIT);
     }
 
   target_terminal_inferior ();
index b88c53f8ad40ea97bab1a418092df1867837f58f..ad1bea0586f1897a8721a8125a6e4b50db82e7ac 100644 (file)
@@ -592,7 +592,7 @@ interrupt_query (void)
 Give up (and stop debugging it)? "))
     {
       target_mourn_inferior ();
-      throw_reason (RETURN_QUIT);
+      deprecated_throw_reason (RETURN_QUIT);
     }
 
   target_terminal_inferior ();
index 9adc4f7c9ae9bd885881dff75dda49cce8132007..710e4a06c5ec247669d9582102028b01567897ab 100644 (file)
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -397,7 +397,7 @@ interrupt_query (void)
 Give up (and stop debugging it)? "))
     {
       target_mourn_inferior ();
-      throw_reason (RETURN_QUIT);
+      deprecated_throw_reason (RETURN_QUIT);
     }
 
   target_terminal_inferior ();
index 9e6cc3f0b5191a41db02973bdb4b7cae6871b031..2ffc80311f49fe7f590e93cf27b5b1f83d47437c 100644 (file)
@@ -480,7 +480,7 @@ remote_fileio_ctrl_c_signal_handler (int signo)
   remote_fileio_sig_set (SIG_IGN);
   remote_fio_ctrl_c_flag = 1;
   if (!remote_fio_no_longjmp)
-    throw_reason (RETURN_QUIT);
+    deprecated_throw_reason (RETURN_QUIT);
   remote_fileio_sig_set (remote_fileio_ctrl_c_signal_handler);
 }
 
index 60f4546063b54870994cd18ddbf563d4426b4702..aa14c19c48aaabf9c7b98e330f7a3acd26d00759 100644 (file)
@@ -497,7 +497,7 @@ mips_error (char *string,...)
   printf_unfiltered ("Ending remote MIPS debugging.\n");
   target_mourn_inferior ();
 
-  throw_reason (RETURN_ERROR);
+  deprecated_throw_reason (RETURN_ERROR);
 }
 
 /* putc_readable - print a character, displaying non-printable chars in
@@ -2148,7 +2148,7 @@ Give up (and stop debugging it)? "))
          printf_unfiltered ("Ending remote MIPS debugging.\n");
          target_mourn_inferior ();
 
-         throw_reason (RETURN_QUIT);
+         deprecated_throw_reason (RETURN_QUIT);
        }
 
       target_terminal_inferior ();
index 1c62821934127f3583ed208e2f2d09884f1f094e..06763fa428ade10350aaf39d29a75adca5078eff 100644 (file)
@@ -386,7 +386,7 @@ interrupt_query (void)
 Give up (and stop debugging it)? "))
     {
       target_mourn_inferior ();
-      throw_reason (RETURN_QUIT);
+      deprecated_throw_reason (RETURN_QUIT);
     }
 
   target_terminal_inferior ();
index 7f1aa49be3c7d5d8c11d89ea7f52931449a7e54e..4cd4c449b90a46cb122ea8bd03cc775e3dc47b23 100644 (file)
@@ -2730,7 +2730,7 @@ interrupt_query (void)
 Give up (and stop debugging it)? "))
     {
       target_mourn_inferior ();
-      throw_reason (RETURN_QUIT);
+      deprecated_throw_reason (RETURN_QUIT);
     }
 
   target_terminal_inferior ();
index 08dfdd40c38e5e2f6a3e233ad4fd3d15da508a22..243fc754db6398f470a9693f1c8b9f8857b3958a 100644 (file)
@@ -779,7 +779,7 @@ NORETURN void
 internal_verror (const char *file, int line, const char *fmt, va_list ap)
 {
   internal_vproblem (&internal_error_problem, file, line, fmt, ap);
-  throw_reason (RETURN_ERROR);
+  deprecated_throw_reason (RETURN_ERROR);
 }
 
 NORETURN void
@@ -920,7 +920,7 @@ quit (void)
     fprintf_unfiltered (gdb_stderr,
                        "Quit (expect signal SIGINT when the program is resumed)\n");
 #endif
-  throw_reason (RETURN_QUIT);
+  deprecated_throw_reason (RETURN_QUIT);
 }
 
 /* Control C comes here */
This page took 0.039192 seconds and 4 git commands to generate.