How does a debugger work?

Let's show the internals of a debugger...

In this post, the main goal is to understand how a debugger (like gdb) works. In that purpose, the exemples will be based on my personnal toy debugger Edb (Easy DeBugger). Because of few bugs in the x86_64 version, the article is based on the i386 (32 bits) version. How to handle i386 and x86_64 I wanted my debugger to be able to debug 32 and 64 bits x86 programs. [Read More]