Examining line numbers

Through command parsing, you can specify procedure-relative versus file-relative line numbers for the following examine commands. Note that the configuration variable procRelativeLines controls whether the interpretation of line numbers defaults to being procedure-relative or file-relative.
Examining line numbers
Expression Meaning
e 10
Examine line number 10 in current procedure of file.
e +10
Examine 10 lines from current position.
e 0x1234
Examine address 0x1234.
e proc#4
Examine (procedure-relative) line 4 of procedure proc.
e "foo.c"#4
Examine (file relative) line 4 of file foo.c.
e "foo.c"#proc#4
Examine (procedure relative) line 4 of procedure proc in file foo.c.
e (expression)
Examine the address which is the value of the expression.
e ($ret())
Examine the return address of the current procedure.
e *
Examine procedure list.
e 2b
Examine breakpoint #2.
e 2_
Examine call stack trace depth 2 (our caller's caller).

C Labels:

C label
Expression Meaning
e "foo.c"#proc##label
Examine C Label label in procedure proc in file foo.c.
e proc##label
Examine C Label label in procedure proc.
e ##label
Examine C Label label in current procedure.

Procedure-relative mode:

Expression Meaning
e proc#4
Examine (procedure-relative) line 4 of procedure proc.

File-relative (non-procedure-relative) mode:

Expression Meaning
e proc#4
Examine (file-relative) line 4 of file containing procedure proc.

Related topic:


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.