You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next we will have to connect to the GDB stub. It runs on `localhost:1337` per default so in order to
48
-
connect to it run the following:
48
+
connect to it run the following on the gdb commandline (`(gdb)`):
49
49
50
50
```shell
51
51
(gdb) target remote :1337
52
52
Remote debugging using :1337
53
-
0x00000116 in nrf52833_pac::{{impl}}::fmt (self=0xd472e165, f=0x3c195ff7) at /home/nix/.cargo/registry/src/github.com-1ecc6299db9ec823/nrf52833-pac-0.9.0/src/lib.rs:157
54
-
157 #[derive(Copy, Clone, Debug)]
53
+
(...)
54
+
0x00000100 in cortex_m::delay::Delay::delay_us (self=0xedbeff37, us=439704628) at src/delay.rs:56
55
+
56 self.syst.set_reload(ticks - 1);
55
56
```
56
57
57
58
Next what we want to do is get to the main function of our program.
58
-
We will do this by first setting a breakpoint there and the continuing
59
+
We will do this by first setting a breakpoint there and then continuing
59
60
program execution until we hit the breakpoint:
60
61
61
62
```
62
63
(gdb) break main
63
-
Breakpoint 1 at 0x104: file src/05-led-roulette/src/main.rs, line 9.
64
+
Breakpoint 1 at 0x15c: file src/05-led-roulette/src/main.rs, line 9.
64
65
Note: automatically using hardware breakpoints for read-only addresses.
0 commit comments