Small fix to gdb.Value constructor doc
[deliverable/binutils-gdb.git] / gdb / gdbarch-selftests.c
index 50062abe8ae401803e956f4ac300230c77397b5f..0efd4bc13055c6ef33a1a193ccf18b1a3d8d76de 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "defs.h"
 #if GDB_SELF_TEST
-#include "selftest.h"
+#include "common/selftest.h"
 #include "selftest-arch.h"
 #include "inferior.h"
 #include "gdbthread.h"
@@ -104,13 +104,7 @@ register_to_value_test (struct gdbarch *gdbarch)
   push_target (&mock_target);
 
   /* Pop it again on exit (return/exception).  */
-  struct on_exit
-  {
-    ~on_exit ()
-    {
-      pop_all_targets_at_and_above (process_stratum);
-    }
-  } pop_targets;
+  SCOPE_EXIT { pop_all_targets_at_and_above (process_stratum); };
 
   /* Switch to the mock thread.  */
   scoped_restore restore_inferior_ptid
This page took 0.026104 seconds and 4 git commands to generate.