From: Fernando Nasser <fnasser@redhat.com>
To: Mickael Gicquaire <Mickael.Gicquaire@st.com>
Cc: "gdb@sources.redhat.com" <gdb@sources.redhat.com>
Subject: Re: gdb questions
Date: Mon, 01 Oct 2001 07:20:00 -0000 [thread overview]
Message-ID: <3BB87A8F.5A0B1231@redhat.com> (raw)
In-Reply-To: <1011001121906.ZM9441@bristol.st.com>
Mickael Gicquaire wrote:
>
> Hi all,
> I have a few enquiries concerning GDB.
>
> It seems that there is no way at the moment to see what commands are being
> issued to gdb while sourcing a file using the source command. I am right?
> I think it could be useful in some instances.
>
Sure. We just need a volunteer to submit a patch.
However, this will require that a switch is added to the "source"
command syntax
and that will lead us to a long discussion on the syntax of switches
("\" or "-").
> Another thing is why is it not possible to issue mi commands inside a file that
> is being sourced or why is there not an equivalent command to the source
> command in the mi set of commands ?
>
IMO, that is conceptually wrong. The MI is not another command line
syntax -- it is
a machine protocol between two programs. It was chosen to be in ASCII
and readable
for easy of debugging and implementation.
The idea is that the MI source command reads and executes commands (from
a file) that
are in the normal GDB command line (cli) script language. It was not
implemented yet
because GDB is slowly being modified to allow switching the format of
commands on the
fly. This requires adding parameters to functions and passing them down
so it takes
some time to do.
Thanks for the comments and suggestions.
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
next prev parent reply other threads:[~2001-10-01 7:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-01 4:20 Mickael Gicquaire
2001-10-01 7:20 ` Fernando Nasser [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-07-18 11:51 Andrew Zimmerman
2001-07-18 13:44 ` Eli Zaretskii
2001-07-18 14:03 ` Andrew Zimmerman
2001-07-18 23:27 ` Eli Zaretskii
2001-07-18 14:36 ` Jamie Guinan
2001-07-18 23:28 ` Eli Zaretskii
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=3BB87A8F.5A0B1231@redhat.com \
--to=fnasser@redhat.com \
--cc=Mickael.Gicquaire@st.com \
--cc=gdb@sources.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