From: Michael Snyder Date: Wed, 2 Mar 2011 18:09:11 +0000 (+0000) Subject: 2011-03-02 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d42de051e78088a2b486aeb03ff34d247fcdb6c2;p=binutils-gdb.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 15fcd546be0..257586bfb08 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 35673826f2e..4d3d0d6f3dd 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));