* executing shell commands at gdb prompt
@ 2008-09-16 10:18 ranjith kumar
2008-09-16 10:23 ` M R Swami Reddy
0 siblings, 1 reply; 2+ messages in thread
From: ranjith kumar @ 2008-09-16 10:18 UTC (permalink / raw)
To: gdb
Hi,
I am new to gdb.
I want to know is there any way to execute shell commands (like ls, ps
.......) at gdb command prompt??
Suppose if I want to know list of files in current directory while
running "gdb", I have to open another shell to know it. Without
opening it, is it possible to execute "ls " command at gdb command
prompt??
Thanks in advance.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: executing shell commands at gdb prompt
2008-09-16 10:18 executing shell commands at gdb prompt ranjith kumar
@ 2008-09-16 10:23 ` M R Swami Reddy
0 siblings, 0 replies; 2+ messages in thread
From: M R Swami Reddy @ 2008-09-16 10:23 UTC (permalink / raw)
To: ranjith kumar; +Cc: gdb
ranjith kumar wrote:
> Hi,
> I am new to gdb.
> I want to know is there any way to execute shell commands (like ls, ps
> .......) at gdb command prompt??
>
> Suppose if I want to know list of files in current directory while
> running "gdb", I have to open another shell to know it. Without
> opening it, is it possible to execute "ls " command at gdb command
> prompt??
Yes, you can do it. See below "shell command" in gdb prompt.
==
(gdb) help shell
Execute the rest of the line as a shell command.
With no arguments, run an inferior shell.
(gdb) shell ls
==
Best Regards
Swami
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-16 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-16 10:18 executing shell commands at gdb prompt ranjith kumar
2008-09-16 10:23 ` M R Swami Reddy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox