Using NDK gdb in Cygwin, how do I interrupt (interrupt) debuggee

I use NDK for Windows, which means that I have to run gdb from cygwin in order to do my own debugging. This works, but there is one thing I cannot understand:

Once the debugger is connected and the process is started for free (for example, I gave gdb a command to continue and there are no breakpoints), how do I interrupt the debuggee process? I understand that for gdb in a normal Linux environment, you do this with Ctrl-c. However, in a Cygwin environment, this seems to kill the (?) Gdb process.

Provided most people probably don’t do NDK debugging on Windows, but it is supported ... the debugger is almost not applicable if you cannot break asynchronously. How can I debug someone?

+4
source share
2 answers

gdb on MS-Windows supports Ctrl-BREAK as an alternative interrupt key sequence that can be used to interrupt debuggee even if it ignores Ctrl-c . Doesn't this trick work for Android gdb too?

0
source

When Cygwin on windows starts ndk-gdb, there is no way to interrupt the Android process that gdb is connected to. Ctrl-C and Ctrl-Break are both exits from gdb.

-1
source

Source: https://habr.com/ru/post/1469366/


All Articles