linux/arm linux gdb debugging

Debugging applications running on linux/arm linux on windows

Open gdbserver on linux/arm linux:
gdbserver localhost:[port, such as 2001] [program path] [parameter]

Windows PC:
arm-none-linux-gnueabi-gdb -q swd
target remote [target platform IP address]: [port, such as 2001]

ubuntu pc side:
arm-oe-linux-gnueabi-gdb -q swd
target remote [target platform IP address]: [port, such as 2001]

linux/arm linux end direct debugging

Arm-side debugging
One type: gdb [program path] After program operation parameters.
set args can specify runtime parameters. (For example: set args 10 20 30 40 50) The
show args command can view the set operating parameters.

Or:
gdb --args [program path] [arguments]

gdb related commands

r
Start running the program
c
Continue running the program until the next breakpoint is encountered
f
View the stack frame
bt to
view the function call information (stack)
q
Exit the GDB environment
i
Describe the status of the program
l
Display multiple lines of source code

Guess you like

Origin blog.csdn.net/skytering/article/details/102940578