From: Eran Ifrah <eran.ifrah@gmail.com>
To: Andrew Burgess <aburgess@broadcom.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: GDB/MI - var-update/create BUG
Date: Wed, 27 Oct 2010 08:09:00 -0000 [thread overview]
Message-ID: <AANLkTi=yytFBZW8C9vA4iEWqX00vZEpf69d98_upMs9J@mail.gmail.com> (raw)
In-Reply-To: <89AE14E37D740B4796DC14566DF6325ECB7F3CD215@SJEXCHCCR02.corp.ad.broadcom.com>
On Wed, Oct 27, 2010 at 9:50 AM, Andrew Burgess <aburgess@broadcom.com> wrote:
>> 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.
>
Thank you! this was exactly what I was overlooked.
I was using the wrong docs link:
http://www.delorie.com/gnu/docs/gdb/gdb_235.html
While I should have looked at:
http://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Variable-Objects.html#GDB_002fMI-Variable-Objects
> Thanks,
> Andrew
>
>
--
Eran Ifrah
Cross platform, open source C++ IDE: http://www.codelite.org
next prev parent reply other threads:[~2010-10-27 8:09 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
2010-10-27 8:09 ` Eran Ifrah [this message]
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='AANLkTi=yytFBZW8C9vA4iEWqX00vZEpf69d98_upMs9J@mail.gmail.com' \
--to=eran.ifrah@gmail.com \
--cc=aburgess@broadcom.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