Editing Source Files - Red Hat ENTERPRISE LINUX 3 - DEBUGGING WITH GDB Manual

Debugging with gdb
Hide thumbs Also See for ENTERPRISE LINUX 3 - DEBUGGING WITH GDB:
Table of Contents

Advertisement

60
list
linespec
Print lines centered around the line specified by
list
,
first
last
Print lines from
list ,
last
Print lines ending with
list
,
first
Print lines starting with
list +
Print lines just after the lines last printed.
list -
Print lines just before the lines last printed.
list
As described in the preceding table.
Here are the ways of specifying a single source line--all the kinds of linespec.
number
Specifies line
number
refers to the same source file as the first linespec.
+
offset
Specifies the line
command that has two, this specifies the line
list
-
offset
Specifies the line
:
filename
number
Specifies line
number
function
Specifies the line that begins the body of the function
line with the open brace.
:
filename
function
Specifies the line of the open-brace that begins the body of the function
. You only need the file name with a function name to avoid ambiguity when there are
filename
identically named functions in different source files.
*
address
Specifies the line containing the program address
to
. Both arguments are linespecs.
first
last
.
last
.
first
of the current source file. When a
lines after the last line printed. When used as the second linespec in a
offset
lines before the last line printed.
offset
in the source file
Chapter 9. Examining Source Files
.
linespec
list
lines down from the first linespec.
offset
.
filename
function
.
address
address
command has two linespecs, this
. For example: in C, this is the
function
may be any expression.
in the file

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 3 - DEBUGGING WITH GDB and is the answer not in the manual?

Questions and answers

Table of Contents