public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Craig Maloney <cmaloney@physics.ucsb.edu>
To: gdb@sources.redhat.com
Subject: problems with list...
Date: Wed, 11 Sep 2002 17:29:00 -0000	[thread overview]
Message-ID: <3D7FDFFA.9060902@physics.ucsb.edu> (raw)

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

             reply	other threads:[~2002-09-12  0:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-11 17:29 Craig Maloney [this message]
2003-03-01 16:57 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D7FDFFA.9060902@physics.ucsb.edu \
    --to=cmaloney@physics.ucsb.edu \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).