Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* naming command arguments
@ 2002-07-24 17:14 Anthony Green
  2002-07-25 16:23 ` Andrew Cagney
  2002-07-30 17:43 ` Fernando Nasser
  0 siblings, 2 replies; 9+ messages in thread
From: Anthony Green @ 2002-07-24 17:14 UTC (permalink / raw)
  To: gdb

I've been talking to some GDB users who are frustrated with some of
GDB's command syntax.  My understanding is that optional command
arguments must be the last possible arguments, and they get dropped off
right to left.  The problem is that some GDB commands have multiple
arguments, all of which make sense to be optional, but in no particular
order.

So, for instance, the restore command looks something like:

	restore FILENAME [OFFSET [START [STOP]]]

In this case, if you only want to specify the START argument, your
forced to give OFFSET argument.

They're suggestion, which seems to make sense to me, is to introduce the
concept of named parameters for GDB commands.  So, in my previous
example, they could simply write...

	restore FILENAME start:VALUE

...and let GDB make reasonable assumptions about OFFSET and STOP

How do people feel about introducing these kinds of arguments to certain
GDB commands (like restore)?

AG



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

end of thread, other threads:[~2002-08-04  4:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-24 17:14 naming command arguments Anthony Green
2002-07-25 16:23 ` Andrew Cagney
2002-07-25 17:48   ` Anthony Green
2002-07-26 15:02   ` Michael Snyder
2002-07-29  8:41     ` Andrew Cagney
2002-07-29  8:45       ` Daniel Jacobowitz
2002-07-30 20:32         ` Andrew Cagney
2002-07-30 17:43 ` Fernando Nasser
2002-08-03 21:31   ` Anthony Green

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