October 2005
Intermediate to advanced
908 pages
46h 42m
English
Just like the Bash shell (see Chapter 4), GDB uses the readline library to provide command-line history and editing. You may use either vi- or Emacs-style commands for editing your command line. The readline library reads the file ~/.inputrc to initialize its settings and options. The details are beyond the scope of this book; see the Bash and GDB documentation or the online Info system for the full story. Here is a sample .inputrc file:
set editing-mode vi Use vi editor commands set horizontal-scroll-mode On Scroll line left/right as cursor moves along it control-h: backward-delete-char Use ^H as backspace character set comment-begin # For Bash, # starts comments set expand-tilde On Expand ~ notation "\C-r": redraw-current-lineMake ^R redraw the current input line
Read now
Unlock full access