From: "Jacques Le Normand" <jacqueslen@sympatico.ca>
To: <gdb@sources.redhat.com>
Subject: casting in gdb
Date: Thu, 12 Dec 2002 22:29:00 -0000 [thread overview]
Message-ID: <002301c2a270$e82f3540$c11ffea9@ehville> (raw)
In-Reply-To: <20021212231745.A32385@welcomehome.org>
how do you get gdb to cast to size_t?
I realize that size_t is a typedef to unsigned long long or somesuch.
A little background:
when I'm debugging my vector<int> v, gdb won't let me type v[0], instead =
it says this: "One of the arguments you tried to pass to operator[] =
could not be converted to what the funtion wants."
I then looked up what operator[] took in the sgi docs and it said a =
size_t. Anyone have any ideas?
(I realize I can do p *(v._M_start+n) , but having a method for casting =
would help me later on)
--Jacques
next prev parent reply other threads:[~2002-12-13 6:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-20 12:22 dejagnu bemis
2002-11-20 20:37 ` dejagnu Andrew Cagney
2002-12-05 16:26 ` dejagnu Fernando Nasser
2002-12-05 16:58 ` dejagnu bemis
2002-12-05 17:08 ` dejagnu Fernando Nasser
2002-12-12 22:26 ` dejagnu Rob Savoye
2002-12-12 22:29 ` Jacques Le Normand [this message]
2002-12-13 7:33 ` *****SPAM***** casting in gdb Daniel Berlin
2002-12-13 8:46 ` Daniel Jacobowitz
2002-12-13 11:43 ` Jacques Le Normand
2002-12-13 23:34 ` Daniel Jacobowitz
2002-12-14 11:55 ` Daniel Berlin
2002-12-14 19:49 Jacques Le Normand
2002-12-14 19:59 ` Daniel Jacobowitz
2002-12-14 21:47 Michael Elizabeth Chastain
2002-12-14 22:48 ` Jacques Le Normand
2002-12-15 8:05 ` Daniel Jacobowitz
2003-01-15 18:47 ` David Carlton
[not found] <1042721692.8268.ezmlm@sources.redhat.com>
2003-01-16 18:53 ` Jim Ingham
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='002301c2a270$e82f3540$c11ffea9@ehville' \
--to=jacqueslen@sympatico.ca \
--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