developerWorks: GNU Project Debugger: More Fun with GDB
Oct 11, 2006, 05:15 (0 Talkback[s])
(Other stories by Bill Zimmerly)
[ Thanks to An Anonymous Reader for
this link. ]
"The previous article on this topic, 'Fun with strace and GDB,'
covered the basics of using these tools to explore your system and
attach to programs that are already running to see what they were
doing. This article presses on to customize the debugger to make
the experience more personal and efficient.
"When GDB, the GNU Project Debugger, starts up, it looks for a
file in the current user's home directory called .gdbinit; if the
file exists, GDB executes all the commands in the file. Normally,
this file is used for simple configuration commands, such as
setting the default assembler format desired (Intel® or
Motorola) or default radix to display input and output data
(decimal or hexadecimal). It can also read a macro-coding language
that allows more powerful customizations..."