Feature#1: User-defined Commands
http://sourceware.org/gdb/current/onlinedocs/gdb/
http://sourceware.org/gdb/current/onlinedocs/gdb/Define.html#Define
Source Code: test.c
Debug Call: test.gdb
Feature#2: debug a active process(/user/test.c) which has been in gdb
1. kill the gdb process
2. gdb /user/test => (should be full path of binary)
3. attach pid => (the pid of binary, "ps + grep" to get it)
4. source test.gdb => (load our own gdb commands)