2011-03-02 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 2 Mar 2011 18:09:11 +0000 (18:09 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 2 Mar 2011 18:09:11 +0000 (18:09 +0000)
* record.c (record_restore): Move printf to before error return.

gdb/ChangeLog
gdb/record.c

index 15fcd546be06d4fdf51fc7623793a30ff88652fd..257586bfb0897fb509161f207a2b200b7b48f091 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-02  Michael Snyder  <msnyder@vmware.com>
+
+       * record.c (record_restore): Move printf to before error return.
+
 2011-03-02  Yao Qi  <yao@codesourcery.com>
 
        * arm-tdep.h (struct displaced_step_closure): Add two new fields
index 35673826f2e3e3ec7a3c788f287c720d757a422f..4d3d0d6f3dd42bdc6ff7cd3630cae14a3ea9eaad 100644 (file)
@@ -2214,12 +2214,12 @@ record_restore (void)
 
   /* Now need to find our special note section.  */
   osec = bfd_get_section_by_name (core_bfd, "null0");
-  if (osec == NULL)
-    return;
-  osec_size = bfd_section_size (core_bfd, osec);
   if (record_debug)
     fprintf_unfiltered (gdb_stdlog, "Find precord section %s.\n",
                        osec ? "succeeded" : "failed");
+  if (osec == NULL)
+    return;
+  osec_size = bfd_section_size (core_bfd, osec);
   if (record_debug)
     fprintf_unfiltered (gdb_stdlog, "%s", bfd_section_name (core_bfd, osec));