public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/29588] New: Cannot find bounds of current function in Clang
@ 2022-09-20 15:29 msebor at gmail dot com
  0 siblings, 0 replies; only message in thread
From: msebor at gmail dot com @ 2022-09-20 15:29 UTC (permalink / raw)
  To: gdb-prs

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-20 15:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20 15:29 [Bug gdb/29588] New: Cannot find bounds of current function in Clang msebor at gmail dot com

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).