No program to debug. GDBserver exiting.

Sysprogs forums Forums VisualGDB No program to debug. GDBserver exiting.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7714
    dmitryponv
    Participant

    Hello, this is a basic question.

    I have a program that builds with a cross-compiler and copies to the target and executes.

    Before this was working fine and without issues,
    Recently, during the execution stage, VisualGDB started giving me errors:

    Process /home/root/Demo created; pid = 965
    Cannot exec /home/root/Demo: Permission denied.
    
    Child exited with status 127
    No program to debug.  GDBserver exiting.

    I found that I can resolve the program by typing chmod +x /home/root/Demo

    I believe VisualGDB was doing this initially for me, but for some reason it had stopped.

    Is there an option to re-enable this setting? I haven’t changed any settings myself since the program stopped executing

    I know there are VisualGDB startup commands, and I tied putting chmod +x /home/root/Demo into both the BEFORE and AFTER additional commands, but this did not work and I was getting the same error. I never had to do this before either.

    • This topic was modified 8 years, 9 months ago by dmitryponv.
    #7722
    support
    Keymaster

    Hi,

    VisualGDB always runs chmod +x on the deployed files. Perhaps some permissions problem is preventing it from working properly? Are you connecting to your device as root?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.