From: Daniel Jacobowitz <drow@false.org>
To: Maik Beckmann <maikbeckmann@gmx.de>
Cc: gdb@sourceware.org
Subject: Re: how to view content in stl vector
Date: Mon, 18 Jun 2007 14:44:00 -0000 [thread overview]
Message-ID: <20070618144438.GA22051@caradoc.them.org> (raw)
In-Reply-To: <200706181634.31544.maikbeckmann@gmx.de>
On Mon, Jun 18, 2007 at 04:34:31PM +0200, Maik Beckmann wrote:
> Am Montag, 18. Juni 2007 15:06:35 schrieb Daniel Jacobowitz:
>
> > You have to specify the instantiation manually
>
> hm, how is this be done?
> I tried this
> <gdb> call foo<int>(i) </gdb>
> but gdb responds
> <gdb>No symbol "foo<int>" in current context.</gdb>
>
> or is it about the mangled symbol from the disassembly?
> 0x08048972 <main+30>: call 0x8048b66 <_Z3fooIiEbT_>
>
> Doing
> <gdb>p _Z3fooIiEbT_(i) </gdb>
> crahes gdb.
> ( btw.
> <gdb>p p _Z3fooIiEbT_ </gdb>
> gives "{bool (int)} 0x8048b66 <bool foo<int>(int)>"
> )
>
> How looks the line for calling foo correctly?
I don't know. It may just be broken. I did provoke an amusing
internal error trying to get it to work...
(gdb) p 'int f<int>'()
/space/debian/gdb/build-area/gdb-6.6.dfsg/gdb/valops.c:2112:
internal-error: find_oload_champ_namespace_loop: Assertion
`new_oload_champ != -1' failed.
A problem internal to GDB has been detected,
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-06-18 14:44 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 [this message]
2007-06-18 14:57 ` Maik Beckmann
2007-06-18 15:03 ` Maik Beckmann
2007-06-18 15:28 ` Andreas Schwab
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=20070618144438.GA22051@caradoc.them.org \
--to=drow@false.org \
--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