Selaa lähdekoodia

* When ds_dwarf_cpp option is enabled, use dwarf2 implementation of strings debug info. It makes LLDB happy.

git-svn-id: trunk@40492 -
yury 6 vuotta sitten
vanhempi
commit
f0d42db82d
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      compiler/dbgdwarf.pas

+ 7 - 0
compiler/dbgdwarf.pas

@@ -4303,6 +4303,13 @@ implementation
         end;
         end;
 
 
       begin
       begin
+        if (ds_dwarf_cpp in current_settings.debugswitches) then
+          begin
+            // At least LLDB 6.0.0 does not like this implementation of string types.
+            // Call the inherited DWARF 2 implementation, which works fine.
+            inherited;
+            exit;
+          end;
         case def.stringtype of
         case def.stringtype of
           st_shortstring:
           st_shortstring:
             begin
             begin