-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gdbinit
55 lines (51 loc) · 876 Bytes
/
.gdbinit
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
define print_program
set $i = 0
set $i_ = $arg0->size
while($i < $i_)
set $j = 0
set $j_ = $arg0->kernels[$i].size
while($j < $j_)
p (evoasm_x64_inst_id_t) $arg0->kernels[$i].insts[$j]
set $j = $j + 1
end
set $i = $i + 1
end
end
define aa
finish
continue
if (loss < deme->best_loss)
print loss
#print_program deme->program
else
continue
end
end
define print_tested_program
set breakpoint pending on
break evoasm_deme_test_program
commands
aa
end
end
define print_evald_programs
set breakpoint pending on
break evoasm_program_eval
commands
print_program program
continue
end
end
define shallow
set breakpoint pending on
break evoasm_pop_init
commands
delete 2-100
watch -l pop->params
commands $bpnum
bt 4
continue
end
continue
end
end