Skip to content

Instantly share code, notes, and snippets.

@jwandblue
Last active March 1, 2019 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwandblue/e1ede3f41a4e7effa7e80d5066c96724 to your computer and use it in GitHub Desktop.
Save jwandblue/e1ede3f41a4e7effa7e80d5066c96724 to your computer and use it in GitHub Desktop.
(gdb) file image.elf
A program is being debugged already.
Are you sure you want to change the file? (y or n) y
Load new symbol table from "image.elf"? (y or n) y
Reading symbols from image.elf...
(gdb) load
Loading section .text, size 0x12e8 lma 0x20
Start address 0x12ac, load size 4840
Transfer rate: 2363 KB/sec, 4840 bytes/write.
(gdb) set debug remote 1
(gdb) info br
Num     Type           Disp Enb Address    What
1       breakpoint     keep y   0x000012b0 in _c_int00 at source/HL_sys_startup.c:98
(gdb) c
Continuing.
Sending packet: $Z0,12b0,4#0b...Packet received: OK
Sending packet: $Hcdead#39...Packet received: OK
Sending packet: $c#63...Packet received: T05thread:0000DEAD;
Sending packet: $g#67...Packet received: 4000000048ffffff00000000010000000000000000000000000000003f010008314d8952c1444c00516c228d16acb100917c4ca80001018008000000b01200009b030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000db030000314d8952c1444c00516c228d16acb100917c4ca8a00b000837010008048d221800022000751ccd8f001e3e40000015880080002071f27791[104 bytes omitted]
Sending packet: $qfThreadInfo#bb...Packet received: m0000dead
Sending packet: $qsThreadInfo#c8...Packet received: l

Program received signal SIGTRAP, Trace/breakpoint trap.
Sending packet: $z0,12b0,4#2b...Packet received: OK
Sending packet: $mb0120000,4#82...Packet received: E01
0xb0120000 in ?? ()
(gdb) next
Cannot find bounds of current function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment