In gdb, if I just hit return, it repeats the last command. Is there a way to configure Sun/Oracle/Solaris dbx to do likewise?
Is there a way to configure dbx to treat a blank command as a repeat of the last command?
624 views Asked by WilliamKF At
2
There are 2 answers
0
On
Looks like you can use the $repeatmode for this. I got the following from the dbx-guide
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.
There also seems to be another option 'gdb on' which makes dbx behave like gdb. I haven't tried either as I don't have access to dbx right now, so you can let me know if this works for you.
You can get that behavior by enabling "gdb mode" in dbx.
Here is the help for gdb mode from the latest dbx.