Dbx 1024 User's Guide Page 36

  • Download
  • Add to my manuals
  • Print
  • Page
    / 158
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 35
22
Chapter 4: Controlling dbx
Examining the History List
dbx stores all commands that you enter in the history list. The value of the
dbx variable $lines determines how many commands are stored in the history
list. The default value is 100.
Display the history list with the history command. For example, after setting
a breakpoint, running a program, and examining some variables, your
history list might look something like this:
(dbx) history
1 set $prompt = “(dbx)”
2 set $page=0
3 set $pimode=1
4 stop in main
5 history
Repeating Commands
You can execute any of the commands contained in the history list. Each
history command begins with an exclamation point (!):
!! Repeats the previous command. If the value of the dbx
variable $repeatmode is set to 1, then entering a carriage
return at an empty line is equivalent to executing !!. By
default, $repeatmode is set to 0.
!string Repeats the most recent command that starts with the
specified string.
!integer Repeats the command associated with the specified integer
in the history list.
!-integer Repeats the command that occurred integer times before the
most recent command. Entering !-1 executes the previous
command, !-2 the command before that, and so forth.
You can use the !! command to facilitate single-stepping through your
program. (Single-stepping is described in “Stepping Through Your
Program” on page 78.) The following illustrates using the next command to
execute 5 lines of source code and then using the !! command to repeat the
next command.
Page view 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 157 158

Comments to this Manuals

No comments