How to do "Set Next Statement" or "Set Instruction Pointer" in GDBEdit

This is actually quite simple! a quick look into the manual gave me the answer.

Constraint: It's disallowed to jump between functions, as the stack frames are left unchanged.

Suppose you want to go to line #n, type these two commands in GDB and you're there:

tbreak n
jump n

tbreak - so that debugger will be in "break" mode

jump - to actually change the PC.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.