Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to return to gdb prompt after continuing and gdb have not hit the breakpoint

Tags:

gdb

gdbserver

(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.

like image 850
Marathi Manus Avatar asked Mar 25 '14 23:03

Marathi Manus


Video Answer


1 Answers

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

like image 93
Tom Tromey Avatar answered Jan 04 '23 00:01

Tom Tromey