This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Shell commands


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]