colorizing mamon’s gdbinit
i doubt anyone will find this enhancement particularly useful. i simply just colorized the “context” output to increase readability and added a user-defined instruction “bhb” which is just a wrapper around the “hb” instruction.
some screenshots:
this is the original gdbinit[1] and here’s the colorized[2] one im using.
update:
patched[3] by zhang le
[1] http://www.eccentrix.com/members/mammon/gdb_init.txt
[2] get [3] instead
[3] http://www.esnips.com/doc/34523412-65b8-433e-ae75-cc0a46d65818

I made a little change to your colorized gdbinit
— /tmp/gdb_init_color.txt 2006-12-22 11:01:33.358185057 +0800
+++ .gdbinit 2006-12-22 11:31:55.000000000 +0800
@@ -372,7 +372,7 @@
# ________________process context______________
define context
- echo 33[33[36m33]
+ echo 33[36m
printf “—————————————-”
printf “———————————[ regs]n”
echo 33[32m
@@ -984,7 +984,7 @@
# __________________gdb options_________________
set confirm off
set verbose off
-set prompt 33[33[31;m33] gdb $ 33[0m
+set prompt 33[01;33mgdb > 33[0m
set output-radix 0x10
set input-radix 0x10
# These make gdb never pause in its output
otherwise, i can’t launch gdb in xterm/konsole and screen in gnome-terminal
Comment by zhllg — December 22, 2006 @ 11:40 am
works like a charm! thanks =) yipee!
Comment by sleepy jenkins — December 23, 2006 @ 10:25 am
These comments have been invaluable to me as is this whole site. I thank you for your comment.
Comment by Annerose — June 3, 2007 @ 11:23 pm