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 | |
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')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/record.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 15fcd54..257586b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 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)); |