Line 1... |
Line 1... |
This is ./gdb.info, produced by Makeinfo version 3.12f from gdb.texinfo.
|
This is ./gdb.info, produced by makeinfo version 4.0 from gdb.texinfo.
|
|
|
INFO-DIR-SECTION Programming & development tools.
|
INFO-DIR-SECTION Programming & development tools.
|
START-INFO-DIR-ENTRY
|
START-INFO-DIR-ENTRY
|
* Gdb: (gdb). The GNU debugger.
|
* Gdb: (gdb). The GNU debugger.
|
END-INFO-DIR-ENTRY
|
END-INFO-DIR-ENTRY
|
Line 895... |
Line 895... |
known by the kernel.
|
known by the kernel.
|
|
|
There is currently no way to determine whether a given operating
|
There is currently no way to determine whether a given operating
|
system is supported other than to try it.
|
system is supported other than to try it.
|
|
|
|
|
|
File: gdb.info, Node: Configurations, Next: Controlling GDB, Prev: Targets, Up: Top
|
|
|
|
Configuration-Specific Information
|
|
**********************************
|
|
|
|
While nearly all GDB commands are available for all native and cross
|
|
versions of the debugger, there are some exceptions. This chapter
|
|
describes things that are only available in certain configurations.
|
|
|
|
There are three major categories of configurations: native
|
|
configurations, where the host and target are the same, embedded
|
|
operating system configurations, which are usually the same for several
|
|
different processor architectures, and bare embedded processors, which
|
|
are quite different from each other.
|
|
|
|
* Menu:
|
|
|
|
* Native::
|
|
* Embedded OS::
|
|
* Embedded Processors::
|
|
* Architectures::
|
|
|
|
|
|
File: gdb.info, Node: Native, Next: Embedded OS, Up: Configurations
|
|
|
|
Native
|
|
======
|
|
|
|
This section describes details specific to particular native
|
|
configurations.
|
|
|
|
* Menu:
|
|
|
|
* HP-UX:: HP-UX
|
|
* SVR4 Process Information:: SVR4 process information
|
|
|
|
|
|
File: gdb.info, Node: HP-UX, Next: SVR4 Process Information, Up: Native
|
|
|
|
HP-UX
|
|
-----
|
|
|
|
On HP-UX systems, if you refer to a function or variable name that
|
|
begins with a dollar sign, GDB searches for a user or system name
|
|
first, before it searches for a convenience variable.
|
|
|
|
|
|
File: gdb.info, Node: SVR4 Process Information, Prev: HP-UX, Up: Native
|
|
|
|
SVR4 process information
|
|
------------------------
|
|
|
|
Many versions of SVR4 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 on several
|
|
kinds of information about the process running your program. `info
|
|
proc' works only on SVR4 systems that include the `procfs' code. This
|
|
includes OSF/1 (Digital Unix), Solaris, Irix, and Unixware, but not
|
|
HP-UX or Linux, for example.
|
|
|
|
`info proc'
|
|
Summarize available information about the process.
|
|
|
|
`info proc mappings'
|
|
Report on the address ranges accessible in the program, with
|
|
information on whether your program may read, write, or execute
|
|
each range.
|
|
|
|
`info proc times'
|
|
Starting time, user CPU time, and system CPU time for your program
|
|
and its children.
|
|
|
|
`info proc id'
|
|
Report on the process IDs related to your program: its own process
|
|
ID, the ID of its parent, the process group ID, and the session ID.
|
|
|
|
`info proc status'
|
|
General information on the state of the process. If the process is
|
|
stopped, this report includes the reason for stopping, and any
|
|
signal received.
|
|
|
|
`info proc all'
|
|
Show all the above information about the process.
|
|
|
|
|
|
File: gdb.info, Node: Embedded OS, Next: Embedded Processors, Prev: Native, Up: Configurations
|
|
|
|
Embedded Operating Systems
|
|
==========================
|
|
|
|
This section describes configurations involving the debugging of
|
|
embedded operating systems that are available for several different
|
|
architectures.
|
|
|
|
* Menu:
|
|
|
|
* VxWorks:: Using GDB with VxWorks
|
|
|
|
GDB includes the ability to debug programs running on various
|
|
real-time operating systems.
|
|
|