I am just starting out with gdb so I got a CrackMe application I am trying to debug. So I ran the application, fired up gdb in terminal and attached it to CrackMe's PID and it crashed the application.
(gdb) attach 6040
Attaching to program: `/Users/***/Desktop/CrackMe.app/Contents/MacOS/CrackMe', process 6040.
Reading symbols for shared libraries + done
Re-enabling shared library breakpoint 1
Re-enabling shared library breakpoint 2
0x00007fff8428767a in mach_msg_trap ()
And after this, the program becomes unresponsive. Is there so other argument that I need to pass to attach that I am missing? Thanks