hitzhangjie / tinydbg

This repo teaches you how to build a golang debugger in golang. This repo is forked from go-delve/delve and simplified for linux/amd64.
MIT License
3 stars 0 forks source link

关于trace功能的实现对比 #26

Open hitzhangjie opened 2 years ago

hitzhangjie commented 2 years ago

解释器的话,前面已经说了,sys.settrace指定一个函数来处理感兴趣的事情就可以了,可以做到:

对于编译型的,我们也没法对binary进行修改了,就得用些动态trace的技术,比如借助软件断点、硬件断点、硬件watchpoints等。

see:https://www.debuggingbook.org/beta/html/Tracer.html#:~:text=Debuggers%20that%20act,and%20hardware%20tracing.