Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB's command qualifier character is `/'
@ 2003-10-19 16:50 Andrew Cagney
  2003-10-20  0:32 ` Daniel Jacobowitz
  2003-10-20 21:54 ` Jim Blandy
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Cagney @ 2003-10-19 16:50 UTC (permalink / raw)
  To: gdb

This seems to keep comming up, sigh!

GDB's CLI, long ago established `/' as its command qualifier character vis:

	x/i
	display/i
	print/x

GDB's user base is very familar with this syntax(1) so adding new 
qualfiers using this syntax would provide a consistent user experience 
(if there is x/i, how come there isn't "info break/l"?).

In fact, in the case of all these specific commands (including "info 
break/l") trying to switch to UNIX's option syntax vis:

	x --i

would be a disaster!

What's unfortunate in all this is that the current CLI code doesn't 
directly parse the qualifier convention.  For instance:

	(gdb) x<TAB>
	x/i x/b x/8 x/4
and
	(gdb) load/vma /lma
(load, using vma addresses, the file "/lma").

If the command doesn't involve files, though, I can't think of a reason 
for not using the `/' qualifier.  If it does involve files, then I guess 
  the work needed to add the qualifier will need to include modifing the 
cli.

Note that this doesn't address "parameterized qualifiers" (tar/dump 
convention?) and "qualified parameters" (not allowed?).

enjoy,
Andrew

(1) Personally, I'm always using the `/' qualifier, but I can't remember 
when, if ever, I used one of the UNIX style command options.


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

end of thread, other threads:[~2003-10-22 14:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-19 16:50 GDB's command qualifier character is `/' Andrew Cagney
2003-10-20  0:32 ` Daniel Jacobowitz
2003-10-21 19:29   ` Andrew Cagney
2003-10-22  9:56     ` Andreas Schwab
2003-10-22 14:38       ` Andrew Cagney
2003-10-20 21:54 ` Jim Blandy

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