소스 검색

* fixed debug information for strings (index starts from 1, not from 0)
(mantis #25226)

git-svn-id: trunk@26140 -

Jonas Maebe 11 년 전
부모
커밋
5e0589f0a5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/dbgdwarf.pas

+ 1 - 1
compiler/dbgdwarf.pas

@@ -1806,7 +1806,7 @@ implementation
           append_labelentry_ref(DW_AT_type,def_dwarf_lab(cansichartype));
           append_labelentry_ref(DW_AT_type,def_dwarf_lab(cansichartype));
           finish_entry;
           finish_entry;
           append_entry(DW_TAG_subrange_type,false,[
           append_entry(DW_TAG_subrange_type,false,[
-            DW_AT_lower_bound,DW_FORM_udata,0,
+            DW_AT_lower_bound,DW_FORM_udata,1,
             DW_AT_upper_bound,DW_FORM_udata,qword(slen)
             DW_AT_upper_bound,DW_FORM_udata,qword(slen)
             ]);
             ]);
           append_labelentry_ref(DW_AT_type,def_dwarf_lab(lendef));
           append_labelentry_ref(DW_AT_type,def_dwarf_lab(lendef));