[llvm-bugs] [Bug 27416] New: missing global variables

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 18 16:38:50 PDT 2016


            Bug ID: 27416
           Summary: missing global variables
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: ribrdb at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

If you look up one or more globals using FindGlobalVariables, a later call to
sc.comp_unit->GetVariableList() only contains the previously found globals

$ cat /tmp/test.c
int a = 0;
int b = 1;
int c = 2;

int main() {
  return 0;
$ lldb /tmp/test
(lldb) b main
(lldb) r
(lldb) target variable c
(int) c = 2
(lldb) target variable
Global variables for /tmp/test.c in /tmp/test:
(int) c = 2

This should show all 3 globals, just like if you run "target variable" first:
$ lldb /tmp/test
(lldb) b main
(lldb) r
(lldb) target variable
Global variables for /tmp/test.c in /tmp/test:
(int) c = 2
(int) a = 0
(int) b = 1

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160418/23d76864/attachment.html>

More information about the llvm-bugs mailing list