diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-11-30 11:09:42 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-11-30 11:09:42 +0000 |
commit | 749b01d5ff44e34018254d1653982efa94642a26 (patch) | |
tree | 8895b73579034c4b901d97226d3ae4529270b47d /lib/CodeGen/DwarfWriter.cpp | |
parent | 12a447898a3c68c1a9489f71b82650b46244d00a (diff) |
Temp fix to deal gdb issue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DwarfWriter.cpp')
-rw-r--r-- | lib/CodeGen/DwarfWriter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index f5c854336b..f76316937d 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/lib/CodeGen/DwarfWriter.cpp @@ -2198,7 +2198,8 @@ private: unsigned ContentSize = Die->getSize() + sizeof(int16_t) + // DWARF version number sizeof(int32_t) + // Offset Into Abbrev. Section - sizeof(int8_t); // Pointer Size (in bytes) + sizeof(int8_t) + // Pointer Size (in bytes) + sizeof(int32_t); // FIXME - extra pad for gdb bug. EmitInt32(ContentSize); EOL("Length of Compilation Unit Info"); EmitInt16(DWARF_VERSION); EOL("DWARF version number"); @@ -2207,6 +2208,10 @@ private: EmitInt8(TAI->getAddressSize()); EOL("Address Size (in bytes)"); EmitDIE(Die); + EmitInt8(0); EOL("Extra Pad For GDB"); // FIXME - extra pad for gdb bug. + EmitInt8(0); EOL("Extra Pad For GDB"); // FIXME - extra pad for gdb bug. + EmitInt8(0); EOL("Extra Pad For GDB"); // FIXME - extra pad for gdb bug. + EmitInt8(0); EOL("Extra Pad For GDB"); // FIXME - extra pad for gdb bug. EmitLabel("info_end", Unit->getID()); O << "\n"; |