Name

shell

Synopsis

shell [command args]

Run the shell command command with arguments args without leaving GDB. With no arguments, start an interactive subshell.

Example

Run grep to find the definition of a macro:

    510             return tmp_number((AWKNUM) len);
    (gdb) shell grep tmp_number *.h
    whizprog.h:#define   tmp_number(x)   mk_number((x), TEMP)
    (gdb)

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.