Ruby:获取mach-o的进程加载地址?

时间:2013-01-15 22:18:53

标签: ruby debugging

有没有人知道是否有一个库提供了获取进​​程基础/加载地址的功能?我想以编程方式使用Ragweed添加断点,但是我只有从IDA导出的断点偏移量。我唯一能找到的是:

Getting process base address in Mac OSX

1 个答案:

答案 0 :(得分:0)

通过Ragweed(https://github.com/tduehr/ragweed)

x = Ragweed::Debuggerosx.new(pid)
x.attach
puts x.region_info(0).base_address