Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Shell commands
@ 2005-01-03  5:34 Russell Shaw
  2005-01-03  6:50 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Russell Shaw @ 2005-01-03  5:34 UTC (permalink / raw)
  To: gdb

Hi,
Does the gdb shell have a command to run a unix shell command?


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

* Re: Shell commands
  2005-01-03  5:34 Shell commands Russell Shaw
@ 2005-01-03  6:50 ` Eli Zaretskii
  2005-01-03  7:00   ` Russell Shaw
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2005-01-03  6:50 UTC (permalink / raw)
  To: Russell Shaw; +Cc: gdb

> Date: Mon, 03 Jan 2005 16:38:03 +1100
> From: Russell Shaw <rjshaw@netspace.net.au>
> 
> Does the gdb shell have a command to run a unix shell command?

Yes, and it's called `shell'.  That is, "shell ls" will run `ls' in
the current directory.  Just "shell" starts an inferior shell (you
need to explicitly exit the shell to return to GDB).

If you tried to look for that in the GDB manual, but failed to find,
please describe how you tried to find it, as that might be some
problem with the manual indexing or something.


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

* Re: Shell commands
  2005-01-03  6:50 ` Eli Zaretskii
@ 2005-01-03  7:00   ` Russell Shaw
  2005-01-03 12:55     ` Andreas Schwab
  0 siblings, 1 reply; 4+ messages in thread
From: Russell Shaw @ 2005-01-03  7:00 UTC (permalink / raw)
  Cc: gdb

Eli Zaretskii wrote:
>>Date: Mon, 03 Jan 2005 16:38:03 +1100
>>From: Russell Shaw <rjshaw@netspace.net.au>
>>
>>Does the gdb shell have a command to run a unix shell command?
> 
> 
> Yes, and it's called `shell'.  That is, "shell ls" will run `ls' in
> the current directory.  Just "shell" starts an inferior shell (you
> need to explicitly exit the shell to return to GDB).

I thought i typed "shell" in gdb and got on error response, but trying
it again now showed it's there.

I searched in all the help categories in gdb, but didn't find anything
at the time.

> If you tried to look for that in the GDB manual, but failed to find,
> please describe how you tried to find it, as that might be some
> problem with the manual indexing or something.

Page 15 in the contents shows "shell commands", which was so obvious
i thought it meant the general gdb shell instead of the unix shell.

Just an unfortunate bunch of coincidences:(


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

* Re: Shell commands
  2005-01-03  7:00   ` Russell Shaw
@ 2005-01-03 12:55     ` Andreas Schwab
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2005-01-03 12:55 UTC (permalink / raw)
  To: Russell Shaw; +Cc: gdb

Russell Shaw <rjshaw@netspace.net.au> writes:

> I searched in all the help categories in gdb, but didn't find anything
> at the time.

Try "apropos shell".

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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

end of thread, other threads:[~2005-01-03 12:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-03  5:34 Shell commands Russell Shaw
2005-01-03  6:50 ` Eli Zaretskii
2005-01-03  7:00   ` Russell Shaw
2005-01-03 12:55     ` Andreas Schwab

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