|
Edited by nopnop2002 at 2017-3-25 14:54
The login user is probably unrelated.
It may be a permission.
- orangepi@orangepizero:~/test$ cc -o test2 test2.c -g
- orangepi@orangepizero:~/test$ gdb ./test2
- GNU gdb (Debian 7.7.1+dfsg-5) 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 ./test2...done.
- (gdb) list
- 1 #include <stdio.h>
- 2
- 3 int main (void)
- 4 {
- 5 printf("hello, world!\n");
- 6 return 0;
- 7 }
- (gdb) break main
- Breakpoint 1 at 0x103d8: file test2.c, line 5.
- (gdb) run
- Starting program: /home/orangepi/test/test2
- Breakpoint 1, main () at test2.c:5
- 5 printf("hello, world!\n");
- (gdb)
Copy code
|
|