GDB not functioning on target!


#1

I am working using Linux terminals; not using DevStudio.

Anyways, running the following commad:

app runProc hw --exe=/usr/bin/gdbserver – localhost:2000 /bin/hw_exe
Logs say:
Starting process ‘gdbserver@0’ with pid 4708
Jan 1 11:41:48 swi-mdm9x15 user.info Legato: INFO | supervisor[4708]/supervisor T=main | proc.c proc_Start() 1199 | Execing '/usr/bin/gdbserver’
Jan 1 11:41:48 swi-mdm9x15 user.emerg Legato: EMR | supervisor[4708]/supervisor T=main | proc.c proc_Start() 1211 | Could not exec ‘/usr/bin/gdbserver’. No such file or directory.

yields nothing; and subsequent try via (gdb) from hostmachine fails.


#2

If you run app status on the target, do you see devMode. I think the devMode app is required to run gdbserver.


#3

@dfrey devMode was running; but the issue resided in the fact that I was debugging a single process app; I had to set up the sandbox by starting the app, stop the app, and then run app runProc… [ BTW hw was not the app I was testing]. I was able to set up GDB on both sides and establish connection.

Now I am facing some issues with setting up the debug symbols.