GDB remote debug "permission denied" when trying to remotely debug program
by jguo5258 from LinuxQuestions.org on (#4W83D)
I am trying to remotely run and debug a very simple test program using gdbserver and gdb-multiarch. On the Raspberry Pi, I start gdbserver with
Code:sudo gdbserver --multiI then start sudo gdb-multiarch and extend the target to the raspberry pi. When I try to run the program remotely, I get the error "permission denied" on the raspberry pi. The program exits with error code 127. Why is the permission denied, even when I start gdbserver and remote gdb with root? How do I fix this?


Code:sudo gdbserver --multiI then start sudo gdb-multiarch and extend the target to the raspberry pi. When I try to run the program remotely, I get the error "permission denied" on the raspberry pi. The program exits with error code 127. Why is the permission denied, even when I start gdbserver and remote gdb with root? How do I fix this?