RTEMS | libdebugger: Provide support for gdb agent expressions (#5556)

Joel Sherrill (@joel) gitlab at rtems.org
Wed Apr 22 14:24:08 UTC 2026



Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5556



## Summary

GDB can compile expressions into byte code and pass it to the target. libdebugger should support these.

For example, this is used in conditional breakpoints. The [documentation](https://sourceware.org/gdb/current/onlinedocs/gdb.html/Agent-Expressions.html) describes it along with the rationale for its existence.

There is an implementation in the GDB source (gdb/gdbserver/ax.c) which is unfortunately GPL and cannot be used with RTEMS. 

I came across an implementation in Rust while initially researching this but am not finding it again. If someone locates this or other implementations, please update.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5556
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260422/0dfda9e5/attachment-0001.htm>


More information about the bugs mailing list