From: Andreas Schwab <schwab@suse.de>
To: Maik Beckmann <maikbeckmann@gmx.de>
Cc: gdb@sourceware.org
Subject: Re: how to view content in stl vector
Date: Mon, 18 Jun 2007 15:28:00 -0000 [thread overview]
Message-ID: <jewsy15lks.fsf@sykes.suse.de> (raw)
In-Reply-To: <200706181702.43269.maikbeckmann@gmx.de> (Maik Beckmann's message of "Mon\, 18 Jun 2007 17\:02\:43 +0200")
Maik Beckmann <maikbeckmann@gmx.de> writes:
> even better.... after I read you last mail entirely
>
>
> 1. start and run gdb:
>
> 3. let gdb say what it has to say:
> output 'bool foo<int>'
> {bool (int)} 0x8048b66 <bool foo<int>(int)>
>
> 4. call it like this:
> p ({bool (int)} 0x8048b66)(i)
> $1 = true
(gdb) p ({bool(int)}'bool foo<int>(int)')(i)
Hello from foo
$3 = true
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2007-06-18 15:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-12 15:05 kdsfinger
2007-06-15 19:52 ` Mark Kettenis
2007-06-18 8:53 ` Alpár Jüttner
2007-06-18 11:15 ` Maik Beckmann
2007-06-18 11:27 ` Daniel Jacobowitz
2007-06-18 12:27 ` Maik Beckmann
2007-06-18 12:36 ` Daniel Jacobowitz
2007-06-18 12:54 ` Maik Beckmann
2007-06-18 13:06 ` Daniel Jacobowitz
2007-06-18 14:35 ` Maik Beckmann
2007-06-18 14:44 ` Daniel Jacobowitz
2007-06-18 14:57 ` Maik Beckmann
2007-06-18 15:03 ` Maik Beckmann
2007-06-18 15:28 ` Andreas Schwab [this message]
2007-06-18 15:49 ` Maik Beckmann
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=jewsy15lks.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=gdb@sourceware.org \
--cc=maikbeckmann@gmx.de \
/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