public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
* New linespec error messages
@ 2012-03-13 19:27 Keith Seitz
  2012-03-13 20:18 ` [Archer] " Joel Brobecker
  0 siblings, 1 reply; 5+ messages in thread
From: Keith Seitz @ 2012-03-13 19:27 UTC (permalink / raw)
  To: archer

Hi,

I'm nearly finished cleaning up my linespec rewrite. I have an enormous 
amount of bugs that I've fixed while writing some tests for it.

One thing that has evolved out of this work, though, is the ability to 
provide "better" error messages for the user. For example:

(gdb-head) b main.c:
Function "" not defined in "main.c".

(gdb-linespec-rewrite) b main.c:
malformed linespec error: unexpected EOF

Similarly, for other possible error conditions, my rewrite will 
(currently) output error messages such as:

malfomred linespec error: unexpected TOKEN[, "TOKEN_STRING"]

where TOKEN is one of the token types ("keyword", "string", "number", 
"EOF", "COLON", etc) and TOKEN_STRING is a string representation of what 
the user wrote. Here's another example:

(gdb-head) break main.c:3 +1000
Junk at end of arguments.

(gdb-linespec-rewrite) b main.c:3 +1000
malformed linespec error: unexpected number, "+1000"

Does anyone have any input on the text of these error messages? Any 
changes that maintainers might like?

Keith

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

end of thread, other threads:[~2012-03-17  3:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-13 19:27 New linespec error messages Keith Seitz
2012-03-13 20:18 ` [Archer] " Joel Brobecker
2012-03-16 13:38   ` Daniel Jacobowitz
2012-03-16 14:12     ` Keith Seitz
2012-03-17  3:36       ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).