浏览代码

* 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;
         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