7

(gdb) target remote machine-XYZ:5001
(gdb) b some_function_name
(gdb) c
Continuing.

Now here the remote process have not hit the function and gdb is still in continuing stage. But if I have to add more break point or if I have to detach how can I do that, this can't be done without returning to prompt.

1 Answers1

6

Use control-c to interrupt. This will bring you back to the gdb prompt, where you can enter commands.

Tom Tromey
  • 21,507
  • 2
  • 45
  • 63
  • 1
    The problem with this is the remote process is getting stopped and I dont want to do that – Marathi Manus Mar 26 '14 at 00:55
  • If you have multiple threads you can look at gdb's scheduler locking feature, in conjunction with target-async. If you don't, then you are just out of luck. I really understand why you have this constraint, though. – Tom Tromey Mar 26 '14 at 03:50
  • FYI, I have to press ctrl-c twice. I have not looked into why. – altendky Apr 30 '15 at 13:01