[LLVMbugs] [Bug 8045] New: gdb - Cannot evaluate function -- may be inlined

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 31 18:49:05 PDT 2010


           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: unassignedclangbugs at nondot.org
        ReportedBy: grosser at fim.uni-passau.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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)
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:
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
[Thread debugging using libthread_db enabled]

Breakpoint 1, runOnFunction (this=0x11a7820, F=...) at
35      DT->recalculate(F);
(gdb) call F.dump()
Cannot evaluate function -- may be inlined

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.

More information about the llvm-bugs mailing list