It uses GDB to attach to the process. And then evaluates the code inside the process using GDB.
Reply on news.ycombinator.com