|
steps to reproduce
install the orange pi armbian onto an sd card
ssh to Orange PI as root
create a file like this
- #include <stdio.h>
- int main(void)
- {
- printf("hi\n");
- }
Copy code
install and dev and build
- #sudo apt-get install g++, gdb
- #g++ hello.c -o hello -g
Copy code
run the debugger
Program received signal SIGSEGV, Segmentation fault.
0xb6fd9822 in ?? () from /lib/ld-linux-armhf.so.3
(gdb) |
|