A debugger from scratch

Опубликовано: 28 Сентябрь 2018
на канале: All Systems Go!
6,022
170

https://media.ccc.de/v/ASG2018-213-a_...



At some stage in your programming life you may well have used a debugger, but did you wonder how it was able to step into and control your executable? In this talk we'll see how debuggers work by building one from scratch in a few lines of Go.

In this talk Liz will explore how a debugger gains control of a process with the all-powerful ptrace system call. You'll see how we can find the machine code that corresponds to a line of human-readable source code and vice-versa. She will show how breakpoints are set, explain how the stack gets built up, and demonstrate how to generate a stack trace showing the path to that breakpoint.

Even if you know nothing about machine code, you'll leave this talk with a better understanding of how a computer runs an executable, and how a debugger is able to start and stop the executable as you wish.

Liz Rice

https://cfp.all-systems-go.io/en/ASG2...


Смотрите видео A debugger from scratch онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь All Systems Go! 28 Сентябрь 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 6,02 раз и оно понравилось 17 людям.