From: "Bjarke Viksoe" <bviksoe@hotmail.com>
To: gdb@sourceware.org
Subject: RE: MI error msgs and localization
Date: Tue, 14 Feb 2006 17:40:00 -0000 [thread overview]
Message-ID: <BAY111-F568DDE3EF5C08D19CCC49A0060@phx.gbl> (raw)
In-Reply-To: <17393.12925.270558.512941@kahikatea.snap.net.nz>
> > 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 would guess that most of time GDB is used from the command line where
>there
>is simply no front-end, dumb or otherwise.
But we are talking about MI mode now and how that should be shaped?
>
>The error message "Unrecognized option" is not intended to provide
>information
>about the GDB version. If you want to use it for that purpose, thats your
>choice, but you can hardly expect the GDB community to "support" that
>feature.
I don't get your point. A front-end can decide how it wants to interpret an
error message as it pleases. I do it because this is the error I get when
-i=mi is used on a version that does not support it at all. It makes sense
in that context since I'm building the command line.
I don't particular like to hard-code these strings. The list of messages I
gave previously are all marked as console-stream-output. What I am saying is
that localizing such error messages will hurt MI dependant tools since the
messages are highly useful for the front-end. I'm not sure what purpose
console-output really has in a Machine Interface as it tends to make sense
only to humans - but I guess some systems are making use of them.
What I'd really like is to see them also wrapped in result-records (sample;
ignore syntax):
^failed,type="init-option-unrecognized",msg="Unrecognized option"
Does that make any sense?
My initial warning was that without "cleaning" the code and making sure
*all* spurious messages are classified and wrapped in proper MI records,
localizing may break some tools or see important features disappear because
they were using the raw console output in lack of proper MI structure
wrapping.
regards, bjarke viksoe
80386.NET - http://www.viksoe.dk/code/asmil.htm
next prev parent reply other threads:[~2006-02-14 17:40 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
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 [this message]
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-F568DDE3EF5C08D19CCC49A0060@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