MacDBG 是一款OS X 平台简单易用的调试框架

网友投稿 579 2022-10-30

MacDBG 是一款OS X 平台简单易用的调试框架

MacDBG 是一款OS X 平台简单易用的调试框架

Mac Debugger

Mac Debugger was created with the focus on giving the programmer a powerful framework to programatically create scripts to debug programs on Mac OSX not found in other products for the platform.

The core of macdbg, written in C, is kept as minimal as possible to provide enough basic interaction between the kernel and userland to create powerful features. Higher level functionality is left to the Python implementation such as stack tracing, dissasembly, watchpoints, thread state, and more. A wrapper class is provided for the programmer to create a scripting program.

NOTE: This is an Alpha implementation more showing concepts and ideas but not fully refined. Expect the Beta version in the coming months with more refined variable naming cleaner code and more useable examples. Thanks for all the interest suggestions comments and help welcome!

Getting Started

$ git clone https://github.com/blankwall/MacDBG.git

Navigate to the MacDBG directory, then cd src and make. The shared library libmcdb.dylib will be compiled and several binaries.

Plugins

Capstone disassembler -- optional

Usage

Running a test debugger on a test program.

cd Python/examples and open another terminal.Run sudo ./basic_example.pyThis is just a test rogram which we will be attach and set breakpoints on. Hit f to fork the program enter to continue or press c to crash it. You should see breakpoint output like seen below.There are many other examples in the examples directory most having at least a small description available, nore descriptions and usage coming soon.Most examples will spawn a program but nearly all of them can take a PID and attach to that. Please note some were written specifaclly for a specific program such as malloc.py was written to track mallocs on Firefox changes would need to be made to make it work on other programs.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Hypercrud: 用于可组合UI的clojure客户端/服务器框架
下一篇:关于springboot加载yml配置文件的no字段自动转义问题
相关文章

 发表评论

暂时没有评论,来抢沙发吧~