Hacker News new | past | comments | ask | show | jobs | submit login
Implementing breakpoints on x86 Linux (mainisusuallyafunction.blogspot.com)
2 points by kmc on Jan 9, 2011 | hide | past | favorite | 1 comment



That's a good informative article. I'd never stopped to think about how breakpoints work. Basically, you overwrite part the code to call an interrupt which sends SIGTRAP. Your SIGTRAP handler then has to both do what you want and execute the code that you patched over. Thanks for posting this, and please keeping posting more like it! It deserves more attention than it got.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: