Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <ghost@cs.msu.su>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: gdb@sources.redhat.com
Subject: Re: MI error messages
Date: Mon, 13 Feb 2006 07:05:00 -0000	[thread overview]
Message-ID: <200602131005.45774.ghost@cs.msu.su> (raw)
In-Reply-To: <17388.62632.330005.663964@kahikatea.snap.net.nz>

On Friday 10 February 2006 23:16, Nick Roberts wrote:
>  > Below is a short MI session:
>  >
>  >        (gdb) -var-assign KDEVTMP br
>  >        &"mi_cmd_var_assign: Could not assign expression to varible
>  > object\n" ^error,msg="mi_cmd_var_assign: Could not assign expression to
>  > varible
>  >
>  > The good thing about this is that I can easily detect that's an error,
>  > and show a message to the user. The bad thing is that the message
>  > includes 'mi_cmd_var_assign:' part. For end user of KDevelop, or even
>  > end user of gdb, this makes no sense -- it's the name of internal
>  > function. It can only confuse.
>
> In June of last year there was a thread ([PATCH] MI error messages) about
> this subject (see archives).  I think it was similarly suggested that the
> procedure name was unnecessary.  Some error messages are for the user, and
> some should only occur if there is a bug in the front end and should never
> really be seen by the user.  The example you give above is the latter. 

I believe you're wrong. The example I given actually results from situation 
where user specifies a wrong new value for a variable. The specific testcase 
I've tried in KDevelop is assigning value of "br" to "int" variable. That's 
clearly a user error.

>  > 3. If not, can the function name be removed?
>
> I think error reporting needs to be overhauled.  Many changes could be
> made, removing function names is one of them.

Ok. I'll try to find time to remove some of function names.

- Volodya


  reply	other threads:[~2006-02-13  7:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-10 11:36 Vladimir Prus
2006-02-10 11:54 ` Eli Zaretskii
2006-02-10 13:47   ` Daniel Jacobowitz
2006-02-10 14:03     ` Vladimir Prus
2006-02-10 15:00       ` Daniel Jacobowitz
2006-02-10 20:31         ` Mark Kettenis
2006-02-10 15:22     ` Eli Zaretskii
2006-02-10 15:26       ` Daniel Jacobowitz
2006-02-10 15:45         ` Eli Zaretskii
2006-02-10 20:35       ` Mark Kettenis
2006-02-12  7:49         ` Jim Blandy
2006-02-12  9:22           ` Nick Roberts
2006-02-10 20:17 ` Nick Roberts
2006-02-13  7:05   ` Vladimir Prus [this message]
2006-02-13  7:43     ` Nick Roberts

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=200602131005.45774.ghost@cs.msu.su \
    --to=ghost@cs.msu.su \
    --cc=gdb@sources.redhat.com \
    --cc=nickrob@snap.net.nz \
    /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