diff options
author | Ed Maste <emaste@FreeBSD.org> | 2014-12-30 01:27:18 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2014-12-30 01:27:18 +0000 |
commit | 42bfa111d731278ff40f9ce45298e65a373c2064 (patch) | |
tree | 93decb044b3639075e37c0f46bef0c1b6a0529f8 /libdwarf/libdwarf_info.c | |
parent | 5eccfb5cf5403e9e564066e0a75d80534b49e91d (diff) | |
download | src-16fb2d8d94abee19a191ed8b2fc0d5a36651503c.tar.gz src-16fb2d8d94abee19a191ed8b2fc0d5a36651503c.zip |
Import elftoolchain rev 3136vendor/elftoolchain/elftoolchain-r3136
From svn.code.sf.net/p/elftoolchain/code/trunk
Diffstat (limited to 'libdwarf/libdwarf_info.c')
-rw-r--r-- | libdwarf/libdwarf_info.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libdwarf/libdwarf_info.c b/libdwarf/libdwarf_info.c index 261bee6d933e..74765930aaed 100644 --- a/libdwarf/libdwarf_info.c +++ b/libdwarf/libdwarf_info.c @@ -27,7 +27,7 @@ #include "_libdwarf.h" -ELFTC_VCSID("$Id: libdwarf_info.c 3041 2014-05-18 15:11:03Z kaiwang27 $"); +ELFTC_VCSID("$Id: libdwarf_info.c 3136 2014-12-24 16:04:38Z kaiwang27 $"); int _dwarf_info_first_cu(Dwarf_Debug dbg, Dwarf_Error *error) @@ -153,7 +153,8 @@ _dwarf_info_load(Dwarf_Debug dbg, Dwarf_Bool load_all, Dwarf_Bool is_info, return (ret); offset = dbg->dbg_info_off; ds = dbg->dbg_info_sec; - assert(ds != NULL); + if (ds == NULL) + return (DW_DLE_NO_ENTRY); } else { if (dbg->dbg_types_loaded) return (ret); |