Relative Content

Tag Archive for cgdb

Pass symbols to gdb at runtime

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'0ac00x7f00'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.

gdb scripting for catching SIGSEGV

I try to debug a C program using gdb (not in the interactive mode). In the program, I use signal to inspect the segmentation fault, but I use gdb to find the location of the code.