# GDB not functioning on target!

**URL:** <https://forum.legato.io/t/gdb-not-functioning-on-target/2923>\
**Category:** Uncategorized\
**Created:** [January 1, 2018, 11:54am UTC](https://forum.legato.io/t/gdb-not-functioning-on-target/2923 "2018-01-01T11:54:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codegit001](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@codegit001](https://forum.legato.io/u/codegit001)\
**Post date:** [January 1, 2018, 11:54am UTC](https://forum.legato.io/t/gdb-not-functioning-on-target/2923/1 "2018-01-01T11:54:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/dfrey/32/563_2.png) [@dfrey](https://forum.legato.io/u/dfrey)\
**Post date:** [January 2, 2018, 3:58pm UTC](https://forum.legato.io/t/gdb-not-functioning-on-target/2923/2 "2018-01-02T15:58:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![codegit001](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@codegit001](https://forum.legato.io/u/codegit001)\
**Post date:** [January 5, 2018, 4:38am UTC](https://forum.legato.io/t/gdb-not-functioning-on-target/2923/3 "2018-01-05T04:38:32Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [September 4, 2018, 2:15pm UTC](https://forum.legato.io/t/gdb-not-functioning-on-target/2923/4 "2018-09-04T14:15:35Z")

</div>

Hi codegit001  
are you still facing any issue?
