From: Eran Ifrah <eran.ifrah@gmail.com>
To: Tom Tromey <tromey@redhat.com>
Cc: BarrRobot <robert@rwall.plus.com>, gdb@sourceware.org
Subject: Re: MI Interface - interpretation of value returned by -stack-list-locals (C++)
Date: Wed, 30 Mar 2011 14:05:00 -0000 [thread overview]
Message-ID: <AANLkTinqt-Cwr_wFtGdTET0ZcmuppmfyEHTYiV1aWKDM@mail.gmail.com> (raw)
In-Reply-To: <m38vvyotxo.fsf@fleche.redhat.com>
On Tue, Mar 29, 2011 at 4:57 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> ">" == BarrRobot <robert@rwall.plus.com> writes:
>
>>> Is there an intention to present the entire output of these commands
>>> in the defined MI output syntax
>
> I haven't heard of any plans in that direction.
>
>>> and if not, what is the recommended way to handle this part of the
>>> output, i.e. is it the expectation to present it 'as is' to the user,
>>> or is it safe to attempt to parse out the component parts and their
>>> values with rules derived from the CLI output?
>
> All I can think of is that you could make a varobj for the arguments you
> are interested in displaying in more detail.
This is how I chose to implement this under codelite IDE, the problem
is that it doubles the calls I need to pass to the GDB process from
the IDE - and when you have a frame with many variable (I am using
-stack-list-locals followed by -stack-list-arguments 2 0 0 to get the
function arguments as well) it starts to show lag.
BTW, I noticed the Mac's GDB creates a varobj per argument on the
stack / function arg (i.e. the output for -stack-list-locals is list
of varobj ID, the attribute name is the varobj unique id)
>
> Tom
>
--
Eran Ifrah
Cross platform, open source C++ IDE: http://www.codelite.org
prev parent reply other threads:[~2011-03-30 14:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-26 16:36 BarrRobot
2011-03-28 6:13 ` André Pönitz
2011-03-29 14:58 ` Tom Tromey
2011-03-29 15:31 ` BarrRobot
2011-03-30 13:50 ` Tom Tromey
2011-04-09 11:50 ` Dodji Seketeli
2011-04-13 13:57 ` Tom Tromey
2011-03-29 15:31 ` BarrRobot
2011-03-30 14:05 ` Eran Ifrah [this message]
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=AANLkTinqt-Cwr_wFtGdTET0ZcmuppmfyEHTYiV1aWKDM@mail.gmail.com \
--to=eran.ifrah@gmail.com \
--cc=gdb@sourceware.org \
--cc=robert@rwall.plus.com \
--cc=tromey@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