* fixed DWARF debug info for powerpc64/linux, correcting the procedure entry symbol (must be the dotted symbol, not the function descriptor location, otherwise gdb cannot find locals

git-svn-id: trunk@6242 -
This commit is contained in:
tom_at_work 2007-01-28 12:12:12 +00:00
parent e8050233af
commit a0813b42bf

View File

@ -1491,6 +1491,7 @@ implementation
var
procendlabel : tasmlabel;
mangled_length : longint;
procentry : String;
p : pchar;
hs : string;
begin
@ -1514,7 +1515,12 @@ implementation
current_asmdata.getlabel(procendlabel,alt_dbgtype);
current_asmdata.asmlists[al_procedures].insertbefore(tai_label.create(procendlabel),pd.procendtai);
append_labelentry(DW_AT_low_pc,current_asmdata.RefAsmSymbol(pd.mangledname));
if (target_info.system = system_powerpc64_linux) then
procentry := '.' + pd.mangledname
else
procentry := pd.mangledname;
append_labelentry(DW_AT_low_pc,current_asmdata.RefAsmSymbol(procentry));
append_labelentry(DW_AT_high_pc,procendlabel);
(*