[lldb-dev] [Bug 15854] New: lldb is unable to call/print c++ demangled functions in the global namespace
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 26 12:50:28 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15854
Bug ID: 15854
Summary: lldb is unable to call/print c++ demangled functions
in the global namespace
Product: lldb
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at cs.uiuc.edu
Reporter: matt.kopec at intel.com
Classification: Unclassified
Example program:
static int static_value = 0;
int
a_function_to_call()
{
static_value++;
return static_value;
}
int main (int argc, char const *argv[])
{
a_function_to_call();
return 0;
}
Compiling this as a c++ program with -O0 and -g and trying to call or print the
function pointer 'a_function_to_call' fails.
Output:
(lldb) b main
(lldb) r
...
(lldb) expression a_function_to_call
error: use of undeclared identifier 'a_function_to_call'
error: 1 errors parsing expression
(lldb) expression a_function_to_call()
error: use of undeclared identifier 'a_function_to_call'
error: 1 errors parsing expression
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130426/8d2cb0bd/attachment.html>
More information about the lldb-dev
mailing list