2011-03-01 Michael Snyder <msnyder@vmware.com>
* reverse.c (record_restore): Move null-check to before pointer dereference.
This commit is contained in:
parent
bfffb7e32f
commit
d684ab85a3
@ -1,5 +1,8 @@
|
||||
2011-03-01 Michael Snyder <msnyder@vmware.com>
|
||||
|
||||
* reverse.c (record_restore): Move null-check to before pointer
|
||||
dereference.
|
||||
|
||||
* python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
|
||||
|
||||
* objc-lang.c (selectors_info): Add explanitory comment.
|
||||
|
@ -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;
|
||||
if (record_debug)
|
||||
fprintf_unfiltered (gdb_stdlog, "%s", bfd_section_name (core_bfd, osec));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user