This is the mail archive of the gdb@sourceware.org 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] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |