public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "msebor at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/29588] New: Cannot find bounds of current function in Clang Date: Tue, 20 Sep 2022 15:29:30 +0000 [thread overview] Message-ID: <bug-29588-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=29588 Bug ID: 29588 Summary: Cannot find bounds of current function in Clang Product: gdb Version: HEAD Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: msebor at gmail dot com Target Milestone: --- The latest GDB () as well as GNU gdb (GDB) Fedora 11.1-5.fc35 fails with the following error when debugging the top of tree Clang. LLDB 13.0.0 works fine. $ ~/bin/gdb-13.0.50.20220919/bin/gdb -nx -q -ex 'break clang::Sema::VerifyIntegerConstantExpression' -ex 'r -S t.C' -ex n -ex n /build/llvm-clang/bin/clang Reading symbols from /build/llvm-clang/bin/clang... Function "clang::Sema::VerifyIntegerConstantExpression" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (clang::Sema::VerifyIntegerConstantExpression) pending. Starting program: /ssd/build/llvm-clang/bin/clang -S t.C This GDB supports auto-downloading debuginfo from the following URLs: <https://debuginfod.fedoraproject.org/> Enable debuginfod for this session? (y or [n]) y Debuginfod has been enabled. To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Breakpoint 1, 0x00007fffe32ee180 in clang::Sema::VerifyIntegerConstantExpression(clang::Expr*, llvm::APSInt*, clang::Sema::AllowFoldKind)@plt () from /ssd/build/llvm-clang/bin/../lib/../lib/libclangSema.so.16git Single stepping until exit from function _ZN5clang4Sema31VerifyIntegerConstantExpressionEPNS_4ExprEPN4llvm6APSIntENS0_13AllowFoldKindE@plt, which has no line number information. 0x00007fffe32e5840 in ?? () from /ssd/build/llvm-clang/bin/../lib/../lib/libclangSema.so.16git Cannot find bounds of current function To reproduce git clone the latest Clang, build it with GCC (I used gcc version 11.2.1 20220127 (Red Hat 11.2.1-9) (GCC)), and run it as shown above with the following in t.C: enum { e = "" != 0 }; -- You are receiving this mail because: You are on the CC list for the bug.
reply other threads:[~2022-09-20 15:29 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-29588-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).