Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* MI error messages
@ 2006-02-10 11:36 Vladimir Prus
  2006-02-10 11:54 ` Eli Zaretskii
  2006-02-10 20:17 ` Nick Roberts
  0 siblings, 2 replies; 15+ messages in thread
From: Vladimir Prus @ 2006-02-10 11:36 UTC (permalink / raw)
  To: gdb


Hello!

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.

So, could somebody tell:

1. Is it guaranteed that all MI error message start with function name and a
semicolon?
2. If not, is there any regexp that can be used to remove the function name,
that's guaranteed to work for all current and future MI error messages.
Removing anything before first semicolon is risky -- error message can
contain ':' for other reasons.
3. If not, can the function name be removed?

- Volodya






^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2006-02-13  7:43 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-10 11:36 MI error messages 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
2006-02-13  7:43     ` Nick Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox