[Bug 15854] New: lldb is unable to call/print c++ demangled functions in the global namespace

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@cs.uiuc.edu
Reporter matt.kopec@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

Siva Chandra changed bug 15854

What Removed Added
Status NEW RESOLVED
CC sivachandra@gmail.com
Resolution FIXED

Comment # 3 on bug 15854 from Siva Chandra

Unable to reproduce. Marking it as RESOLVED.