K
K
Kirill Zhilyaev2018-10-14 23:54:28
gdb
Kirill Zhilyaev, 2018-10-14 23:54:28

How to stop a program in GDB?

There is a program, and I need to pause it in an arbitrary place (not with a breakpoint, but manually by pressing a combination from the keyboard) and find out where the program has become. Can this be done or not?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2018-10-15
@kirill_782

manually by pressing a combination from the keyboard) you need to pause and find out where the program has become.

^C, or by sending a signal ( kill <signal> <pid>) to stop.
bt- See where you're staying.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question