# Remote GDB of Linux app

**URL:** https://forums.sifive.com/t/remote-gdb-of-linux-app/6273
**Category:** HiFive Unmatched
**Created:** [August 24, 2023, 3:46pm UTC](https://forums.sifive.com/t/remote-gdb-of-linux-app/6273 "2023-08-24T15:46:05Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![michael67](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@michael67](https://forums.sifive.com/u/michael67)
#### Post date: [August 30, 2023, 3:41am UTC](https://forums.sifive.com/t/remote-gdb-of-linux-app/6273/5 "2023-08-30T03:41:12Z")

</div>

Yes, that was it! OpenOCD sets three break bits in dcsr: ebreakm, ebreaks, and ebreaku. Since dcsr is only available while in debug mode, I modified OpenOCD to set the ebreak\* bits to zero rather than one. I’m now able to debug a Linux application using gdbserver and gdb.

Thanks!

---

_[View the full topic](https://forums.sifive.com/t/remote-gdb-of-linux-app/6273)._
