[LLVMbugs] [Bug 4240] New: clang: broken debug info for restrict
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu May 21 13:28:31 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4240
Summary: clang: broken debug info for restrict
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu, rdivacky at freebsd.org
Created an attachment (id=3010)
--> (http://llvm.org/bugs/attachment.cgi?id=3010)
gnuregex.i
clang compiled gnuregex.i, cannot breakpoint in re_compile_internal, or
stacktrace into that function, because gdb shows a dwarf error:
Die: DW_TAG_restrict_type (abbrev = 33, offset = 27216)
has children: FALSE
attributes:
DW_AT_type (DW_FORM_ref4) constant: 16237
Dwarf Error: Cannot find type of die [in module
/usr/obj/usr/src/gnu/lib/libregex/libgnuregex.so.4]
(gdb) bt
#0 0x280a9f4c in re_string_construct_common (str=0x0, len=3, pstr=0x280b3124,
trans=0xbfbfe860 "", icase=-1077941050, dfa=0x3) at regex_internal.c:192
#1 0x280aa577 in re_string_construct (pstr=0x280b3124, str=0x0, len=3,
trans=0xbfbfe860 "", icase=-1077941050, dfa=0x3) at regex_internal.c:87
Die: DW_TAG_restrict_type (abbrev = 33, offset = 48651)
has children: FALSE
attributes:
DW_AT_type (DW_FORM_ref4) constant: 12449
Dwarf Error: Cannot find type of die [in module
/usr/obj/usr/src/gnu/lib/libregex/libgnuregex.so.4]
Preprocessed test file attached.
Compile on FreeBSD 32-bit as:
clang gnuregex.i -o x.so -^Cared -fPIC -DPIC -march=native -std=gnu99 -O0 -g
Then try to breakpoint at re_compile_internal, gdb refuses due to dwarf error.
When I remove all the restrict qualifiers from the gnuregex.i, gdb can
breakpoint and stacktrace that function.
Sorry if this bugreport is a bit sketchy.
Please ask if you need more information.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list