Marnix
Marnix

Reputation: 6547

Debug QNX on gdb without upload command

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:

  1. Deploy my executables on the target machine.
  2. Run pdebug 1234 on the target machine.
  3. Run gdb on windows and perform the following commands:
    1. file my_application
    2. target qnx ipaddress:1234
    3. upload my_application /tmp/my_application
    4. Set a breakpoint
    5. run

Is there a command to replace upload with just assigning the executable that I want to run?

Upvotes: 1

Views: 1352

Answers (1)

awesomo4000
awesomo4000

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

Related Questions