x86: drop a few dead macros
[deliverable/binutils-gdb.git] / gdb / inferior.h
index f98e67d33f4b8d2e9b82daf1527e3d73199c516e..9e0e3b30e882b061d42deb291d926acca552e3a6 100644 (file)
@@ -68,7 +68,18 @@ struct infcall_suspend_state_deleter
 {
   void operator() (struct infcall_suspend_state *state) const
   {
-    restore_infcall_suspend_state (state);
+    try
+      {
+       restore_infcall_suspend_state (state);
+      }
+    catch (const gdb_exception_error &e)
+      {
+       /* If we are restoring the inferior state due to an exception,
+          some error message will be printed.  So, only warn the user
+          when we cannot restore during normal execution.  */
+       if (!std::uncaught_exception ())
+         warning (_("Failed to restore inferior state: %s"), e.what ());
+      }
   }
 };
 
This page took 0.034214 seconds and 4 git commands to generate.