http://llvm.org/bugs/show_bug.cgi?id=8045
Summary: gdb - Cannot evaluate function -- may be inlined
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Hi,
I created a self hosted llvm/clang build with "-O0 -g" and try to debug
the newly built opt binary.
$gdb bin/opt
GNU gdb (GDB) 7.2.50.20100829-cvs
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/grosser/Projekte/llvm/build_selfhost/bin/opt...done.
(gdb) b PostDominators.cpp:35
Breakpoint 1 at 0xbbbfc6: file
/home/grosser/Projekte/llvm/git/lib/Analysis/PostDominators.cpp, line 35.
(gdb) r -postdomtree test/Analysis/LoopInfo/2003-05-15-NestingProblem.ll
Starting program: bin/opt -postdomtree
test/Analysis/LoopInfo/2003-05-15-NestingProblem.ll
[Thread debugging using libthread_db enabled]
Breakpoint 1, runOnFunction (this=0x11a7820, F=...) at
/home/grosser/Projekte/llvm/git/lib/Analysis/PostDominators.cpp:35
35 DT->recalculate(F);
(gdb) call F.dump()
Cannot evaluate function -- may be inlined
(gdb)
Using gcc to build llvm I can call F.dump() without problems in gdb.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs