Skip to content

Instantly share code, notes, and snippets.

@Arnold1
Created June 1, 2015 21:10
Show Gist options
  • Save Arnold1/c5728aea64fea257603e to your computer and use it in GitHub Desktop.
Save Arnold1/c5728aea64fea257603e to your computer and use it in GitHub Desktop.
disassemble2
gdb rust_blink
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from rust_blink...done.
(gdb) start
Temporary breakpoint 1 at 0x4434
Starting program: /home/rust_blink
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Temporary breakpoint 1, 0x2a004434 in main ()
(gdb) c
Continuing.
Program received signal SIGBUS, Bus error.
0x36f524a0 in memset () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb)
Continuing.
Program received signal SIGILL, Illegal instruction.
0x2a00b05c in sys::stack_overflow::imp::signal_handler::hccc68ea01534bf99AWu
()
(gdb) disassemble
Dump of assembler code for function _ZN3sys14stack_overflow3imp14signal_handler20hccc68ea01534bf99AWuE:
0x2a00adf0 <+0>: push {r4, r5, r6, r7, r8, lr}
0x2a00adf4 <+4>: sub sp, sp, #80 ; 0x50
0x2a00adf8 <+8>: mov r4, r0
0x2a00adfc <+12>: mov r0, #0
0x2a00ae00 <+16>: mov r8, r1
0x2a00ae04 <+20>: bl 0x2a00f190 <record_sp_limit>
0x2a00ae08 <+24>: ldr r0, [pc, #844] ; 0x2a00b15c <_ZN3sys14stack_overflow3imp14signal_handler20hccc68ea01534bf99AWuE+876>
0x2a00ae0c <+28>: add r0, pc, r0
0x2a00ae10 <+32>: bl 0x2a00332c
0x2a00ae14 <+36>: ldrb r0, [r0, #17]
0x2a00ae18 <+40>: cmp r0, #0
0x2a00ae1c <+44>: bne 0x2a00b080 <_ZN3sys14stack_overflow3imp14signal_handler20hccc68ea01534bf99AWuE+656>
0x2a00ae20 <+48>: ldr r0, [pc, #836] ; 0x2a00b16c <_ZN3sys14stack_overflow3imp14signal_handler20hccc68ea01534bf99AWuE+892>
0x2a00ae24 <+52>: add r0, pc, r0
0x2a00ae28 <+56>: bl 0x2a00332c
0x2a00ae2c <+60>: ldrh r0, [r0, #16]
0x2a00ae30 <+64>: tst r0, #255 ; 0xff
0x2a00ae34 <+68>: beq 0x2a00ae40 <_ZN3sys14stack_overflow3imp14signal---Type <return> to continue, or q <return> to quit---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment