From: "Andrew Burgess" <aburgess@broadcom.com>
To: "Eran Ifrah" <eran.ifrah@gmail.com>,
"gdb@sourceware.org" <gdb@sourceware.org>
Subject: RE: GDB/MI - var-update/create BUG
Date: Wed, 27 Oct 2010 07:50:00 -0000 [thread overview]
Message-ID: <89AE14E37D740B4796DC14566DF6325ECB7F3CD215@SJEXCHCCR02.corp.ad.broadcom.com> (raw)
In-Reply-To: <AANLkTinUo3LMBBmDWPm_jp2md3Xzi=06NBf2qJ2S6NF2@mail.gmail.com>
> On 26 October 2010 23:02, Behalf Of Eran Ifrah wrote:
>
> Here is the debug session for the above code:
>
> ( starting from first line of main() )
> (gdb)
> -var-create - * mystr._M_dataplus._M_p
> ^done,name="var1",numchild="1",value="0x28ff28 \"h\\377(\"",type="char
> *",thread-id="1",has_more="0"
Using "*" ties the creation of the variable to the current frame. Changing to use "@" will create a floating variable that will use the current _active_ frame. This seems to produce the result you are looking for.
Thanks,
Andrew
next prev parent reply other threads:[~2010-10-27 7:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-26 22:02 Eran Ifrah
2010-10-27 7:50 ` Andrew Burgess [this message]
2010-10-27 8:09 ` Eran Ifrah
2010-10-27 17:28 ` Jan Kratochvil
2010-10-27 17:18 ` Eran Ifrah
2010-10-27 17:31 ` Robert Dewar
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=89AE14E37D740B4796DC14566DF6325ECB7F3CD215@SJEXCHCCR02.corp.ad.broadcom.com \
--to=aburgess@broadcom.com \
--cc=eran.ifrah@gmail.com \
--cc=gdb@sourceware.org \
/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