I am making a JIT recompiler, which means I generate blocks of code at runtime. I would like to be able to tell gdb that a host region, say
0x7f00'0ac0
–0x7f00'03c0
has the name block_1000_0ac0
because in this example that host region maps to a block generated from the guest address 0x1000'0ac0
.
I want this to happen from within my C++ app, so that the JIT can mark the blocks it recompiles with symbols. This will make it so that when I break in gdb I know which guest region my recompiled block maps to.
Is there a way to accomplish this?