-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
162 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Syntax for Address Ranges | ||
========================= | ||
|
||
Address ranges are used in the `disassemble` command. It is like a | ||
range but we allow addresses. An add | ||
|
||
An address range is in one of the following forms: | ||
|
||
location # starting line only | ||
first, last # starting and ending line | ||
, last # ending line only | ||
|
||
|
||
A *location* is described elsewhere. *first* and *last* can also be | ||
linespecs but they also may be a number or address (bytecode | ||
offset). And finally *last* can be an (line number) offset. | ||
|
||
A number is just a decimal number. An offset is a number prefaced with "+" and | ||
indicates the number to increment the line number found in *first*. | ||
|
||
Examples | ||
-------- | ||
|
||
:: | ||
*5 # start from bytecode offset 5 of current file | ||
*5 , # Same as above. | ||
foo.py:*5 # start from bytecode offset 5 of file foo.py | ||
|
||
See also | ||
--------- | ||
`help syntax location` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Command examples | ||
================ | ||
|
||
# This line does nothing. It is a comment. Useful in debugger command files. | ||
# This line also does nothing. | ||
s # by default, this is an alias for the "step" command | ||
info program;;list # error no command 'program;;list' | ||
info program ;; list # Runs two commands "info program" and "list" | ||
|
||
See also: | ||
--------- | ||
|
||
`macro`, `alias`, `irb`, `set auto eval`, `set auto irb`, `set | ||
abbrev`, `info macro`, and the *show* variants of the above *set* | ||
commands. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Syntax for Indicating a Filename | ||
================================ | ||
|
||
Filename Examples: | ||
------------------ | ||
|
||
file.py => file.py | ||
/tmp/file.py => /tmp/file.py | ||
C\:file.py => C:file.py # For Microsoft OS's | ||
C\:\file.py => C:\file.py # For Microsoft OS's | ||
C\:\\file.py => C:\file.py # Note: double slash not needed | ||
\\new.py => \new.py # Note: double slash, or filename has newline | ||
my\ file.py => my file.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Syntax for List Ranges | ||
====================== | ||
|
||
List ranges are used in the `list` and `disassemble` commands. | ||
|
||
A list range is in one of the following forms: | ||
|
||
location # starting line only | ||
first, last # starting and ending line | ||
, last # ending line only | ||
|
||
|
||
A *location* is described elsewhere. *first* and *last* can also be | ||
locations but they also may be a number. And finally *last* can be a (line number) | ||
offset. | ||
|
||
A number is just a decimal number. An offset is a number prefaced with "+" and | ||
indicates the number to increment the line number found in *first*. | ||
|
||
Examples | ||
-------- | ||
|
||
5 # start from line 5 of current file | ||
5 , # Same as above. | ||
, 5 # listsize lines before and up to 5 | ||
foo.py:5 # start from line 5 of file foo.py | ||
foo() # start from function foo | ||
os.path:5 # start from line 5 of module os.path | ||
os.path:5 # Same as above. | ||
os.path:5, 6 # list lines 5 and 6 of os.path | ||
os.path:5, +1 # Same as above. +1 is an offset | ||
os.path:5, 1 # Same as above, since 1 < 5. | ||
os.path:5, +6 # lines 5-11 | ||
os.path.join() # lines starting with the os.join.path function. | ||
"c:\foo.py":10, # listsize lines starting from line 10 of c:\foo.py | ||
, 'My Doc/foo.py':20 # listsize lines ending at line 20 of file: My Doc/foo.py | ||
|
||
|
||
See also: | ||
--------- | ||
|
||
`help syntax location` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters