diff options
Diffstat (limited to 'src/AddressSpace.hpp')
-rw-r--r-- | src/AddressSpace.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AddressSpace.hpp b/src/AddressSpace.hpp index 30ad35995aece..49bb360d79411 100644 --- a/src/AddressSpace.hpp +++ b/src/AddressSpace.hpp @@ -534,11 +534,11 @@ inline bool LocalAddressSpace::findUnwindSections(pint_t targetAddr, #endif cbdata->sects->dwarf_index_section = eh_frame_hdr_start; cbdata->sects->dwarf_index_section_length = phdr->p_memsz; - EHHeaderParser<LocalAddressSpace>::decodeEHHdr( + found_hdr = EHHeaderParser<LocalAddressSpace>::decodeEHHdr( *cbdata->addressSpace, eh_frame_hdr_start, phdr->p_memsz, hdrInfo); - cbdata->sects->dwarf_section = hdrInfo.eh_frame_ptr; - found_hdr = true; + if (found_hdr) + cbdata->sects->dwarf_section = hdrInfo.eh_frame_ptr; } } |