<html>
<head>
<base href="https://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 --- - missing global variables"
href="https://llvm.org/bugs/show_bug.cgi?id=27416">27416</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>missing global variables
</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>All
</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@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ribrdb@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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</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>