This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
problems with list...
- From: Craig Maloney <cmaloney at physics dot ucsb dot edu>
- To: gdb at sources dot redhat dot com
- Date: Wed, 11 Sep 2002 17:29:46 -0700
- Subject: problems with list...
Hi all.
I've been having problems using list functions inside of gdb.
-----------------------------------
#include <list>
#include <vector>
using namespace std;
main(){
list<int> l;
vector<int> v;
l.push_back(0);
l.push_back(1);
v.push_back(0);
v.push_back(1);
}
--------------------------------------------
if I try:
"p l.size()"
I get a "Cannot evaluate function -- may be inlined" even if I compile
with an -fno-inline.
"ptype l" gives something reasonable which shows "size_t size() const;"
None of the same problems with the vector.
Does anyone have any idea why this doesn't work?
Thanks in advance,
Craig