From: Michael Snyder Date: Wed, 2 Mar 2011 18:09:11 +0000 (+0000) Subject: 2011-03-02 Michael Snyder X-Git-Tag: cgen-snapshot-20110401~448 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d42de051e78088a2b486aeb03ff34d247fcdb6c2;p=platform%2Fupstream%2Fbinutils.git 2011-03-02 Michael Snyder * record.c (record_restore): Move printf to before error return. --- 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 + + * record.c (record_restore): Move printf to before error return. + 2011-03-02 Yao Qi * 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));