Переглянути джерело

* 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 роки тому
батько
коміт
f0d42db82d
1 змінених файлів з 7 додано та 0 видалено
  1. 7 0
      compiler/dbgdwarf.pas

+ 7 - 0
compiler/dbgdwarf.pas

@@ -4303,6 +4303,13 @@ implementation
         end;
 
       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
           st_shortstring:
             begin