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 proc
info 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 mappings
info proc stat
info proc status
info proc all
info proc
subcommands.
set procfs-trace
procfs
API calls.
show procfs-trace
procfs
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-file
procfs
API trace is written.
proc-trace-entry
proc-trace-exit
proc-untrace-entry
proc-untrace-exit
syscall
interface.
info pidlist
info meminfo