From: "Bjarke Viksoe" <bviksoe@hotmail.com>
To: gdb@sourceware.org
Subject: RE: MI error msgs and localization
Date: Mon, 13 Feb 2006 18:37:00 -0000 [thread overview]
Message-ID: <BAY111-F650FDC6D2C35CF2364D80A0070@phx.gbl> (raw)
In-Reply-To: <17391.40721.926885.140030@kahikatea.snap.net.nz>
> > For instance, a cleanup must be done to make sure all errors are still
> > reported through MI in English  including the more exceptional ones
> > (especially during startup). For instance, I am actively interpreting
>raw
> > console-stream output for the following strings:
> >
> > No debugging symbols found
> > Unable to attach to process
> > No such process
> > No symbol table is loaded
> > No such file
> > gdb: unrecognized option
> > An internal GDB error was detected.
> > Thread x has terminated.
> > No executable file specified
> > No executable specified, useÂ
>
>These messages appear to be part of the CLI output intended for the user
>and
>not MI. It seems natural to translate them.
I really don't agree at all. Very few output in MI mode is/should be
intended for users only. You have got get past the stage where you think of
the front-end as a "dumb automated shell" and into thinking "integrated
environment with user friendly error messages". Preferrably these messages
should have been streamed out as a MI result-records.
I translate "No symbol table loaded..." into asking the user to switch to
debug-mode in my tool. "Unrecognized option" pop ups that the GDB version is
too old, reinstall needed. "Thread x has terminated" refreshed the thread
list etc etc etc. No user behind a front-end will understand "No such
process." or "No executable file specified" by itself when the cause of this
is some magic done by the controlling front-end.
>
>Patches are welcome for any further MI commands that you would like to see
>implemented.
>
>As stated in the manual, MI is still evolving. The best way to make it do
>the things you want is to participate in its development.
>
Unfortunately I see this reply too often here. The number of MI questions
are steadily increasing in this maillist. I believe that the MI interface
will be the dominant way of using GDB in the future since more people will
realise that there finally is a not-so-arcane way to interface with it and
thus integration into the various editor tools becomes wide-spread. So it's
sad to see the same basic functions with "N/A" in the documentation still.
I would love to participate but I'm primarily a Windows developer and tries
to focus on UI in my spare time and ancient C programs/style just scares me.
I really appreciate the work that has been done, just hope that GDB team
will keep focus on making MI integration a primarily target so the tool is
not just accessible for geeky developers that fathoms 2-letter shortcut
commands, but also to mainstream developers using high-level development
tools.
Sorry, just a litte frustrated that MI doesn't seem to move forward. I do
really appreciate the work that has been done on GDB already.
regards, bjarke viksoe
GMail Drive - http://www.viksoe.dk/gmail/
next prev parent reply other threads:[~2006-02-13 18:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-12 14:54 Bjarke Viksoe
2006-02-12 20:49 ` Nick Roberts
2006-02-13 18:37 ` Bjarke Viksoe [this message]
2006-02-13 19:56 ` Eli Zaretskii
2006-02-13 20:01 ` Daniel Jacobowitz
2006-02-14 1:30 ` Nick Roberts
2006-02-14 17:40 ` Bjarke Viksoe
2006-02-14 19:42 ` Eli Zaretskii
2006-02-14 20:59 ` Nick Roberts
2006-02-14 21:05 ` Daniel Jacobowitz
2006-02-14 23:26 ` Nick Roberts
2006-02-14 23:32 ` Daniel Jacobowitz
2006-02-15 1:48 ` Nick Roberts
2006-02-15 3:05 ` Daniel Jacobowitz
2006-02-15 4:48 ` Nick Roberts
2006-02-15 13:37 ` Daniel Jacobowitz
2006-02-15 21:03 ` Nick Roberts
2006-02-15 21:17 ` Daniel Jacobowitz
2006-02-15 1:55 ` Bob Rossi
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=BAY111-F650FDC6D2C35CF2364D80A0070@phx.gbl \
--to=bviksoe@hotmail.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