In the function below, let's say EIP is 0x400688. Now, I want to step over the call instead of stepping inside the subroutine.
0x40067a <main+4> sub $0x20,%rsp │
│0x40067e <main+8> mov $0x3c00,%edi │
│0x400683 <main+13> mov $0x0,%eax │
>│0x400688 <main+18> callq 0x400560 <alarm@plt> │
│0x40068d <main+23> mov 0x2009ac(%rip),%rax # 0x601040 <stdout@@GLIBC_2.2.5> │
│0x400694 <main+30> mov $0x0,%ecx │
│0x400699 <main+35> mov $0x2,%edx │
│0x40069e <main+40> mov $0x0,%esi
I used the next command however it starts executing the main() function itself instead of just executing call and breaking at instruction: 0x40068d as shown below:
(gdb) next
Single stepping until exit from function main,
which has no line number information.