Search code examples
assemblygdbatt

GDB: until command stops where?


After running the program in gdb and disas command:

   0x0000555555556692 <+0>:  sub    $0x18,%rsp
   0x0000555555556696 <+4>:  mov    %0x28,%rax
   0x00005555555566da <+13>: jmpq   *%rax

if i use

(gdb) until *0x000055555555669f

which is line <+13>, does it execute line 13 then stops or does it execute only line 4 then stops?


Solution

  • gdb will always break before executing the instruction it breaks on.