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?
682 Views Asked by WilliamKF At
2
There are 2 best solutions below
0
Raam
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.
Related Questions in CONFIGURATION
- Logback stopped logging after splitting shared config file
- Understanding Grizzly 1.9.36 internals
- Symfony 2 and php.yml configuration
- Tree configuration to turn on/off the features in java
- Deleting Repeated Services from Android GCM Config File
- What does the dot mean in Symfony service names?
- How to manage configuration data in large projects?
- org.apache.commons.configuration.INIConfiguration: section name with dot (period)
- How to include js files in a Visual Studio project on build
- What is the correct way to use app.config for my plugin when using MEF?
- How run several instances of GWT application in IntelliJIDEA
- ejabberd block messages from users that don't stay in my friend list
- CMake error while configuring "install TARGETS given no RUNTIME DESTINATION for executable target "assimp_simpletexturedogl"."
- Need help in configuring Jenkins with Coverity. Getting Error Message
- How do I access the service provider when registering using typescript class
Related Questions in GDB
- How to run program in gdb via bashscript with backtrace?
- Starting GDB with interpreter mi via .gdbinit file
- How to find illegal instructions in a program?
- Strange gdb 7.9 boost on Yosemite 10.10.13
- How to call fortran module helper subroutine in GDB?
- GDB can't access/step into file for debugging
- Segmentation fault - Invalid free unresolved - C
- redirect I/Os in GDB in MI mode
- Understanding assembly of a simple C program
- GDB Python pretty-printer not indenting substructures
- Can gdb break on/dprintf on/specify location as: return from specified function?
- Understanding Red-Black Tree Traversal of STL multiset in GDB
- How to drill down into shared_ptr [Netbeans, clang++, gdb]
- Following memory allocation in gdb
- How can I break on UBSan reports in gdb and continue?
Related Questions in SOLARIS
- How to get Mouse support for dtterm terminal in solaris
- Tail command - follow by name on Solaris
- in Makefiles, how to test for gcc's --with-ld option?
- Configuring git and apache on solaris box
- How to find linux equivalent of solaris specific header files?
- How to match and remove the content preceding it from a file in unix
- writing device drivers for OpenIndiana
- How to convert Solaris MDB addresses into file names and line numbers?
- wheel group in OpenSolaris
- I want to update atime on large binary files
- Socket Descriptor closed from another thread on certain condition when accept() call on the same socket is going on in Linux?
- gzip and pipe to output (performance consideration)
- Setting LD_LIBRARY_PATH breaks my apache module, can rpath fix it?
- redirecting echo with undefined variable
- Can't take input from a terminal
Related Questions in REPEAT
- Remove repetitive string from sentence in java
- ExtJS 5: How do I throw an error for repeating rows?
- Regex not matching 6 repeated numbers
- How to create an histogram of asteriks from a Java array of number repetitions?
- More blocks in Simulink
- How can I fire a UILocalNotification for every 15 days with repeat interval in objc
- How to get index of repeat control in CSJS
- Trying to delete the selected item in the XPages repeat control, but does not work
- r create matrix from repeat loop output
- Create an array of sub-arrays with the value of an element and the number of times it has repeated in JavaScript
- Duplicate values with Polymer template repeat
- VBA - "For each"-loop inside for-loop only works the first time
- Unitegallery not working with repeat control
- Sort my str_repeat
- Mailchimp different background colors for repeatable
Related Questions in DBX
- In DBX i am not able to step into a particular function?
- How do you examine core files in dbx?
- Delphi won't let me insert rows with missing columns, but with triggers and generators for those fields
- How to attache source code when using dbx to analyze an core dump
- c++ standard library list usage?
- What is equivalent of .gdbinit file for dbx?
- Is there a way to configure dbx to treat a blank command as a repeat of the last command?
- What is gdb/dbx doing when ddd is "waiting for it to get ready"?
- For AIX dbx, why is there a syntax error with "set edit emacs" in the .dbxinit command file?
- Getting Last Day of Month (2 Months Ago) in ODBC
- Firebird, which driver?
- debugging a thread process using gdb/dbx
- Error message "Incorrect values within SQLDA structure" with Firebird and Delphi 2009
- How to log the dbx session in a text file?
- dbx variables not working
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can get that behavior by enabling "gdb mode" in dbx.
Here is the help for gdb mode from the latest dbx.
(dbx) help gdb gdb (command) gdb on | off Use `gdb on' to enter the gdb command mode under which dbx will understand and accept gdb commands. To exit the gdb command mode and return to the dbx command mode, enter "gdb off". Please note that the dbx commands will not be accepted while in gdb command mode and vice versa. All debugging settings such as breakpoints are preserved across different command modes. The following gdb commands are not supported in the current release: - commands - define - handle - hbreak - interrupt - maintenance - printf - rbreak - return - signal - tcatch - until