diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-09-11 22:33:45 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-09-11 22:33:45 +0000 |
commit | 4cfec37b92f672f0b9d9cee334e83e201470654d (patch) | |
tree | df5a44c00049adb8d835293a6eec913e9297615f /bfd/peicode.h | |
parent | 33d7d19757186703099a6fccaee20cb4cc77a6fa (diff) | |
download | gdb-4cfec37b92f672f0b9d9cee334e83e201470654d.zip gdb-4cfec37b92f672f0b9d9cee334e83e201470654d.tar.gz gdb-4cfec37b92f672f0b9d9cee334e83e201470654d.tar.bz2 |
1999-09-11 Donn Terry <donn@interix.com>
* coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG
to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
(coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if
there is no SEC_DEBUGGING section.
* peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of
IMAGE_FILE_DEBUG_STRIPPED.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r-- | bfd/peicode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h index 3737a57..e7bab84 100644 --- a/bfd/peicode.h +++ b/bfd/peicode.h @@ -2106,6 +2106,9 @@ pe_mkobject_hook (abfd, filehdr, aouthdr) if ((internal_f->f_flags & F_DLL) != 0) pe->dll = 1; + if ((internal_f->f_flags & IMAGE_FILE_DEBUG_STRIPPED) == 0) + abfd->flags |= HAS_DEBUG; + #ifdef COFF_IMAGE_WITH_PE if (aouthdr) pe->pe_opthdr = ((struct internal_aouthdr *)aouthdr)->pe; |