c - gdb disassemble by line number -


say want disassemble lines m-n of file x, file x not in current context. operation possible, , if so, how? note: working on x86 linux.

here's kludgy way it: set breakpoint on line you're interested in, , breakpoint acknowledgement gives address. clear breakpoint , run disas or x/20i on address.


Comments