Modernize configure.ac's
[deliverable/binutils-gdb.git] / gdb / frame.c
index 00a5ebcf090319d42ffc0ba892b591e39d111966..48c9b33cf3e7546bc47305a8cd7a303a811943a3 100644 (file)
@@ -1473,14 +1473,7 @@ get_current_frame (void)
     error (_("No memory."));
   /* Traceframes are effectively a substitute for the live inferior.  */
   if (get_traceframe_number () < 0)
-    {
-      if (ptid_equal (inferior_ptid, null_ptid))
-       error (_("No selected thread."));
-      if (is_exited (inferior_ptid))
-       error (_("Invalid selected thread."));
-      if (is_executing (inferior_ptid))
-       error (_("Target is executing."));
-    }
+    validate_registers_access ();
 
   if (current_frame == NULL)
     {
This page took 0.024081 seconds and 4 git commands to generate.