17.8. Summary of the info Command

 < Day Day Up > 

The info command displays information about the state of the debuggee (as opposed to show, which provides information about internal GDB features, variables and options). With no arguments, it provides a list of possible features about which information is available.

info ...

Information displayed

address sym

Information about where symbol sym is stored. This is either a memory address or a register name.

all-registers

Information about all registers, including floating-point registers.

args

Information about the arguments to the current function (stack frame).

break [bpnum]

Information about breakpoint bpnum if given, or about all breakpoints if not.

breakpoints [bpnum]

Same information as the info break command.

catch

Information on exception handlers active in the current frame.

classes [regexp]

Information about Objective-C classes that match regexp, or about all classes if regexp is not given.

display

Information about items in the automatic display list.

extensions

Information about the correspondence of filename extensions to source code programming languages.

f [address]

Same information as the info frame command.

files

Information about the current debugging target, including the current executable, core, and symbol files.

float

Information about the floating-point flags and registers.

frame [address]

With no argument, print information about the current frame. With an address, print information about the frame containing address, but do not make it the current frame.

functions [regexp]

With no argument, print the names and types of all functions. Otherwise, print information about functions whose names match regexp.

handle

The list of all signals and how GDB currently treats them.

line line-spec

The starting and ending address for the code containing the line specified by line-spec. See list for a description of line-spec. This sets the default address to the starting address for the given line, so that x/i may be used to examine instructions.

locals

Information about local variables (static or automatic) accessible from the current frame.

macro macroname

Show the definition and source location for the macro macroname.

mem

Information about memory regions and their attributes.

proc [item]

Information about the running debuggee. Available on systems that supply /proc. The optional item is one of: mappings for available address ranges and how they may be accessed, times for starting time and user and system CPU time, id for process ID information, status for general status of the process, or all for all of the above.

program

Information about the running debuggee, such as running or stopped, and the process ID.

registers [reg ...]

With no arguments, information about all machine registers except floating-point registers. Otherwise, information about the named registers.

s

Same information as the info stack command (which is the same as the backtrace command).

scope address

Information about variables local to the scope containing address, which can be a function name, source line, or absolute address preceded by *.

selectors [regexp]

Information about Objective-C selectors that match regexp, or about all selectors if regexp is not given.

set

Same as the show command with no arguments.

share

Same as the info sharedlibrary command.

sharedlibrary

Information about currently loaded shared libraries.

signal

Same as the info handle command.

source

Information about the source file, such as compilation directory, programming language, and debugging information.

sources

Information about all source files that have debugging information. The output is split into two lists: those whose information has already been read, and those whose information will be read when needed.

stack

Same information as the backtrace command.

symbol address

The name of the symbol (function, variable, etc.) stored at address address.

target

Identical to the info files command.

terminal

Current terminal modes settings.

threads

All the program's current threads.

types [regexp]

Information about types that match regexp, or about all types in the program if regexp is not given.

variables [regexp]

With no argument, print the names and types of all variables except for local variables. Otherwise, print information about variables whose names match regexp.

watchpoints [wpnum]

Information about watchpoint wpnum, or about all watchpoints if wpnum is not given.

win

The names and sizes of all displayed TUI windows.


     < Day Day Up > 


    Unix in a Nutshell
    Unix in a Nutshell, Fourth Edition
    ISBN: 0596100299
    EAN: 2147483647
    Year: 2005
    Pages: 201

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net