GDB reading eh_frame/eh_frame_hdr from disk

Simon Marchi
Mon Jun 22 18:08:45 GMT 2020

On 2020-06-18 6:37 p.m., Mitch Souders wrote:
> Is there any way to tell gdb to use the in-memory representation from the
> inferior of the .eh_frame/.eh_frame_hdr sections when doing stack
> unwinding? As best I can determine, gdb always reaches out to disk to find
> .eh_frame/.eh_frame_hdr to do stack unwinding. Our product is doing some
> runtime manipulation of these sections and gdb's current behavior is
> undesired.

If the section is allocated in the process, then I'd expect GDB to read
it from memory (when there's a process).  You would need to step into
GDB when it's doing one such read to see which target ends up handling
the memory read.


More information about the Gdb mailing list