Shell commands

Russell Shaw rjshaw@netspace.net.au
Mon Jan 3 07:00:00 GMT 2005


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:(



More information about the Gdb mailing list