mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 07:28:26 +02:00
llvmdbg: emit uppercase symbol names unless C++-style debug info is selected
Otherwise gdb won't find the symbols unless you use the exact case
This commit is contained in:
parent
9a7a97175e
commit
ccc843f983
@ -2153,10 +2153,15 @@ implementation
|
||||
|
||||
function TDebugInfoLLVM.symdebugname(sym: tsym): TSymStr;
|
||||
begin
|
||||
result:=sym.RealName;
|
||||
if (result<>'') and
|
||||
(result[1]='$') then
|
||||
delete(result,1,1);
|
||||
if ds_dwarf_cpp in current_settings.debugswitches then
|
||||
begin
|
||||
result:=sym.RealName;
|
||||
if (result<>'') and
|
||||
(result[1]='$') then
|
||||
delete(result,1,1);
|
||||
end
|
||||
else
|
||||
result:=sym.name
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user