Everytime I attach to a process using gdb, it will stop the target program, and I need to type ‘cont’ to let it go. Is there a way to attach to a process without stopping it? This makes things easier if the process will behave differently if it stops for a while.
Share
You can’t make it not stop. You can however instantly continue… Create a simple batch script which will attach to a specific process and instantly continuing execution after attaching: