Contents


On-line Guides
All Guides
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems

How To Guides
Xen Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions

 

 

4.3. Shell commands

If you need to execute occasional shell commands during your debugging session, there is no need to leave or suspend gdb; you can just use the shell command.

shell command string

Invoke a standard shell to execute command string. If it exists, the environment variable SHELL determines which shell to run. Otherwise gdb uses the default shell (/bin/sh on Unix systems, COMMAND.COM on MS-DOS, etc.).

The utility make is often needed in development environments. You do not have to use the shell command for this purpose in gdb:

make make-args

Execute the make program with the specified arguments. This is equivalent to shell make make-args.

 
 
  Published under the terms of the GNU General Public License Design by Interspire