[Lldb-commits] [Bug 12621] New: can not print vector element
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Apr 22 08:31:09 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12621
Bug #: 12621
Summary: can not print vector element
Product: lldb
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: lldb-commits at cs.uiuc.edu
ReportedBy: dmarkman at mac.com
Classification: Unclassified
suppose we have the following program
#include <iostream>
#include <vector>
int main (int argc, char * const argv[]) {
std::vector<int> v;
std::string str = "Hello World";
for(int i = 0; i < 1000; i++) v.push_back(i);
std::cout << str << std::endl;
return 0;
}
if we stop in lldb at the line std::cout << str << std::endl;
and issue the command
p v[1]
I'll see the error message
error: call to a function '_ZNSt6vectorIiSaIiEEixEm' that is not present in the
target
error: Couldn't materialize struct: Structure hasn't been laid out yet
in contrast if I issue the command p str[1], I'm getting normal result:
(char) $1 = 'e'
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the lldb-commits
mailing list