gdb 工作原理和内核实现

Posted by 夏泽民

gdb主要功能的实现依赖于一个系统函数ptrace,通过man手册可以了解到,ptrace可以让父进程观察和控制其子进程的检查、执行,改变其寄存器和内存的内容,主要应用于打断点(也是gdb的主要功能)和打印系统调用轨迹。



gdb 调试golang

Posted by 夏泽民

编译过的二进制文件已经包含了 DWARFv3 调试信息,只要 GDB7.1 以上版本都可以进行调试。 在OSX下,如无法执行调试指令,可尝试用sudo方式执行gdb。



go-bindata Go 语言打包静态文件

Posted by 夏泽民

https://github.com/jteeuwen/go-bindata go get -u github.com/jteeuwen/go-bindata/… 执行后仍然没有找到go-bindata命令



esc

Posted by 夏泽民

https://github.com/mjibson/esc https://mattjibson.com/esc/



go Generate

Posted by 夏泽民

在有些场景下,我们会使用go generate:



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at [email protected]

Subscribe to our mailing list

* indicates required