blob: 9788d13683fa87ef936d3bcb9922749664b854f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# dotfiles -- gdbinit
# author: johannst
set history filename ~/.gdb/gdb_history
set history save on
set prompt do_wizardry>
set disassembly-flavor intel
define bs
save breakpoints ~/.gdb/breakpoint.$arg0.save
end
define br
source ~/.gdb/breakpoint.$arg0.save
end
# gdb hooks -- just define a macro with hook-<cmd_name>, eg:
# define foo
# # do sth ...
# end
# define hook-foo
# # do sth ...
# end
#
# run foo in gdb, then hook-foo will be executed prior
define hook-quit
bs q
end
|