From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4047B3858D38; Tue, 20 Sep 2022 15:29:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4047B3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663687771; bh=ZkOWN10LHzdXzmcIlGOT/FjSCLSVSu7HTLIJ9/XyE94=; h=From:To:Subject:Date:From; b=MvTaxD35EEf0NY5czjKav6S9MUx+Kr3+0q20fKgNDPAtr3zmr9kQW/xVu45cvw9a1 PkmUY4ajgn5gXiu7JnuKaxE3rUtZc8BJnEjIOu1HfrCKPfoV+LyBnZKHt77EEZ8ZTf r/lT5688Bi6rCuIO6QqzbZUz4izpcNwUskQCFn7w= From: "msebor at gmail dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29588 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 fi= ne. $ ~/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: 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_4ExprEPN4llvm6APSIntENS= 0_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 vers= ion 11.2.1 20220127 (Red Hat 11.2.1-9) (GCC)), and run it as shown above with t= he following in t.C: enum { e =3D "" !=3D 0 }; --=20 You are receiving this mail because: You are on the CC list for the bug.=