Reputation: 6547
I am able to start the gdb debugger with a QNX target with the commands as specified in the documentation.
There is only one workaround that I don't like about my setup. Before I run all these commands, I have already installed and deployed my executables (yes, multiple) to the target machine. I do not require to upload
them again, but I cannot find the command to launch an application without running upload
.
The steps that I do now:
pdebug 1234
on the target machine.gdb
on windows and perform the following commands:
file my_application
target qnx ipaddress:1234
upload my_application /tmp/my_application
run
Is there a command to replace upload
with just assigning the executable that I want to run?
Upvotes: 1
Views: 1352
Reputation: 31
In gdb, do:
(gdb) set nto-executable /path/to/binary
This tells gdb the remote file that is being debugged.
Note, the /path/to/binary
is the path on the remote target, not the local file.
Upvotes: 3