blob: 01fa076c891525fe619ca92e5173583132b5f12b (
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
33
34
|
# dotfiles -- gdbinit
# author: johannst
set history filename ~/.gdb/gdb_history
set history save on
set prompt do_wizardry>
set disassembly-flavor intel
set breakpoint pending on
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
|