fix some error on gdb 7.7 && add some customization for my own preference