Added minimum Dwarf aranges. Cleaned up some section headers. Line number

support now works in gdb.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25417 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Laskey
2006-01-18 16:54:26 +00:00
parent 99fa0a102a
commit e719a7c40b
3 changed files with 65 additions and 25 deletions

View File

@ -215,17 +215,18 @@ namespace {
: DwarfWriter(o, ap)
{
needsSet = true;
DwarfAbbrevSection = ".section __DWARFA,__debug_abbrev,regular,debug";
DwarfInfoSection = ".section __DWARFA,__debug_info,regular,debug";
DwarfLineSection = ".section __DWARFA,__debug_line,regular,debug";
DwarfFrameSection = ".section __DWARFA,__debug_frame,regular,debug";
DwarfPubNamesSection = ".section __DWARFA,__debug_pubnames,regular,debug";
DwarfPubTypesSection = ".section __DWARFA,__debug_pubtypes,regular,debug";
DwarfStrSection = ".section __DWARFA,__debug_str,regular,debug";
DwarfLocSection = ".section __DWARFA,__debug_loc,regular,debug";
DwarfARangesSection = ".section __DWARFA,__debug_aranges,regular,debug";
DwarfRangesSection = ".section __DWARFA,__debug_ranges,regular,debug";
DwarfMacInfoSection = ".section __DWARFA,__debug_macinfo,regular,debug";
DwarfAbbrevSection = ".section __DWARFA,__debug_abbrev";
DwarfInfoSection = ".section __DWARFA,__debug_info";
DwarfLineSection = ".section __DWARFA,__debug_line";
DwarfFrameSection =
".section __DWARFA,__debug_frame,,coalesced,no_toc+strip_static_syms";
DwarfPubNamesSection = ".section __DWARFA,__debug_pubnames";
DwarfPubTypesSection = ".section __DWARFA,__debug_pubtypes";
DwarfStrSection = ".section __DWARFA,__debug_str";
DwarfLocSection = ".section __DWARFA,__debug_loc";
DwarfARangesSection = ".section __DWARFA,__debug_aranges";
DwarfRangesSection = ".section __DWARFA,__debug_ranges";
DwarfMacInfoSection = ".section __DWARFA,__debug_macinfo";
TextSection = ".text";
DataSection = ".data";
}
@ -233,7 +234,6 @@ namespace {
/// DarwinAsmPrinter - PowerPC assembly printer, customized for Darwin/Mac OS
/// X
///
struct DarwinAsmPrinter : public PPCAsmPrinter {
DarwinDwarfWriter DW;