<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - lldb is unable to call/print c++ demangled functions in the global namespace"
href="http://llvm.org/bugs/show_bug.cgi?id=15854">15854</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lldb is unable to call/print c++ demangled functions in the global namespace
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>matt.kopec@intel.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>