This tutorial will walk you through debugging amd64 AT&T ASM using the GNU
as assembler and
gdb. Why would you ever want to do this? More than likely you were sitting around bored drinking cocktails and decided to give assembly a try.
If you are running an amd64 distribution of Linux, you just need
as installed. Otherwise, you need to download VirtualBox and install amd64 Linux to follow along. The distribution shouldn't matter.
We are going to use an example application that is fairly common. It comes from the book Programming from the Ground Up by Jonathan