Warning: this is an htmlized version!
The original is here, and
the conversion rules are here.
# .gdbinit for eev.el
# Edrx, 2000sep09
#
# The code below will define an "ee" command for gdb, like the one for
# the shell... use `M-x eeg' in Emacs to save the region to a
# temporary file, and `ee' in gdb to execute the temporary file as a
# block of gdb commands. Note: I don't know how to set up a verbose
# mode for gdb...

# Beginning of the eev block:
# See: (find-eev "eev-rctool" "new_block_gdbinit")
#      (find-eev-update-links)
#
define ee
  source ~/.eev/ee.gdb
end
#
# End of the eev block.

# Some interesting links to gdb docs:
#
# (find-node "(gdb)Top")
# (find-node "(gdb)Index")
# (find-node "(gdb)Running")
# (find-node "(gdb)Set Breaks")
# (find-node "(gdb)Print Settings")
# (find-node "(gdb)Print Settings" "`set print pretty on'")
# (find-node "(gdb)Print Settings" "`set print vtbl on'")
# (find-node "(gdb)Print Settings" "`set print object on'")
# (find-node "(gdb)Symbols" "ptype")
# (find-node "(gdb)Stack")
# (find-node "(gdb)Screen Size" "height of zero")
# (find-node "(gdb)Calling")
# (find-node "(gdb)Command Files" "`source FILENAME'")
# (find-node "(gdb)Source Path")

set print pretty on
set print object on
set print vtbl on
set height 0

# Note that the gdb manual mentions some key commands that would be
# useful to have, but that don't work by default:
#
# (find-node "(gdb)Emacs" "`M-s'")
# (find-e20node "Commands of GUD")
#
# One way to make them work is to add this to your .emacs:
#
# (easy-mmode-define-minor-mode
#  gdbk-mode
#  "GDB keys mode.\nUse `C-c C-t' and `C-c C-d' to set and delete breakpoints.
# See (find-e20node \"Commands of GUD\")"
#  nil
#  " gdbk"
#  '(("\M-s" . gud-step)
#    ("\M-n" . gud-next)
#    ("\M-c" . gud-cont)
#    ("\M-f" . gud-finish)))
#
# and to use lines like:
#
# (progn (eeg-bounded) (gdb "gdb demo3b") (gdbk-mode))
#
# inside `eeg-bounded' blocks to invoke gdb; then the short key
# commands will work inside the gdb/gud buffer in Emacs.