This is somewhat related to gdb set overwrite logging on should overwrite gdb.txt correct? .
Let's say I'm running a session of some application. For example purposes, let me take the example of qbittorrent again.
As shared before this is how a run happens -
$ gdb qbittorrent (gdb) set logging overwrite on (gdb) set logging on (gdb) set pagination 0 (gdb) run
one way I know is exiting the application gracefully but sometimes the application hangs/takes too much time or simply doesn't respond.
Then the only option which remains with me is using
CTRL+C which if I understand correctly kills the underlying application, in our example qbittorrent and then am able to quit gdb by means of
Is/would there be any other way of quitting the application and still let the gdb session keep running or the only way is the crude way I mentioned above.
AFAI know killing an application process should be the last solution and not the first.