summaryrefslogtreecommitdiff
path: root/.gdbinit
blob: d3ae63a480084243e8f621430d14e7912f627f86 (plain)
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
define target hookpost-remote
    monitor arm semihosting enable
    monitor reset halt
    set remotetimeout 10
end

define target hookpost-extended-remote
    monitor arm semihosting enable
    monitor reset halt
    set remotetimeout 10
end

define run_firmware
    make -C build -j 4 firmware

    monitor reset halt

    set confirm off
    file build/firmware
    set confirm on

    load
    continue
end

set print pretty

target extended-remote :3333
set confirm off
file build/firmware
hb halt
hb main
disable 2