[llvm-commits] CVS: llvm/lib/CodeGen/DwarfWriter.cpp
Jim Laskey
jlaskey at apple.com
Thu Nov 30 03:09:57 PST 2006
Changes in directory llvm/lib/CodeGen:
DwarfWriter.cpp updated: 1.103 -> 1.104
---
Log message:
Temp fix to deal gdb issue.
---
Diffs of the changes: (+6 -1)
DwarfWriter.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/DwarfWriter.cpp
diff -u llvm/lib/CodeGen/DwarfWriter.cpp:1.103 llvm/lib/CodeGen/DwarfWriter.cpp:1.104
--- llvm/lib/CodeGen/DwarfWriter.cpp:1.103 Wed Nov 29 10:55:57 2006
+++ llvm/lib/CodeGen/DwarfWriter.cpp Thu Nov 30 05:09:42 2006
@@ -2198,7 +2198,8 @@
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 @@
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";
More information about the llvm-commits
mailing list