We know that disassembling instructions after a given address (inclusively) can be achieved with something like:
x/5i address
which will print 5 instructions, but how do I parse the previous instruction?
I am debugging JIT code, so things like disassembling a string do not work. I could parse a random range containing the address:
disas address-10 address+10
but this is very inconvenient, and you will see (bad) (hopefully not in the middle!), and start to worry that you are not getting something right. I am looking for something like:
x/-5i address
but the above will not work.
source share