diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-02 18:09:11 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-02 18:09:11 +0000 |
commit | d42de051e78088a2b486aeb03ff34d247fcdb6c2 (patch) | |
tree | 7d51edcf02ee0f0634dd013a98519d6ff99f13b2 /gdb/record.c | |
parent | 14aa5a8bf34a6229e81be221d47a5ab6492f6af4 (diff) | |
download | gdb-d42de051e78088a2b486aeb03ff34d247fcdb6c2.zip gdb-d42de051e78088a2b486aeb03ff34d247fcdb6c2.tar.gz gdb-d42de051e78088a2b486aeb03ff34d247fcdb6c2.tar.bz2 |
2011-03-02 Michael Snyder <msnyder@vmware.com>
* record.c (record_restore): Move printf to before error return.
Diffstat (limited to 'gdb/record.c')
-rw-r--r-- | gdb/record.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/record.c b/gdb/record.c index 3567382..4d3d0d6 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -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)); |