Next: DJGPP Native, Previous: BSD libkvm Interface, Up: Native
Many versions of SVR4 and compatible systems provide a facility called
‘/proc’ that can be used to examine the image of a running
process using file-system subroutines. If gdb is configured
for an operating system with this facility, the command info
proc is available to report information about the process running
your program, or about any process running on your system. info
proc works only on SVR4 systems that include the procfs code.
This includes, as of this writing, gnu/Linux, OSF/1 (Digital
Unix), Solaris, Irix, and Unixware, but not HP-UX, for example.
info procinfo proc process-idOn some systems, process-id can be of the form
‘[pid]/tid’ which specifies a certain thread ID
within a process. If the optional pid part is missing, it means
a thread from the process being debugged (the leading ‘/’ still
needs to be present, or else gdb will interpret the number as
a process ID rather than a thread ID).
info proc mappingsinfo proc statinfo proc statusinfo proc allinfo proc subcommands.
set procfs-traceprocfs API calls.
show procfs-traceprocfs API call tracing.
set procfs-file fileprocfs API trace to the named
file. gdb appends the trace info to the previous
contents of the file. The default is to display the trace on the
standard output.
show procfs-fileprocfs API trace is written.
proc-trace-entryproc-trace-exitproc-untrace-entryproc-untrace-exitsyscall interface.
info pidlistinfo meminfo