
gdb
echo_hello1
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用GDB,进行在Pyhon 级别的调试(python使用ctype引用动态库文件)
我在使用python运行一个程序,它引用ctypes调用了动态库,现在需要进行调试,那么可以使用GDB调试python程序。 gdb --args python main.py 进入gdb就可以设置断点了 b func_name run stackoverflow上有这个问题,出自How to debug python script in C level using GDB. Give me a simple example for this - Stack Overflow ...翻译 2022-04-03 11:23:49 · 424 阅读 · 0 评论 -
gdb在动态库 调式reverse功能
Process record does not support instruction 0xc5 at address 0x7ffff7dee6e7. Process record: failed to record execution log. 在被调用的动态库里使用gdb reverse会失败 报这个错误,stackflow上说倒三种办法: LD_BIND_NOW=1 LD_HWCAP_MASK=0 compiling with -static ...原创 2020-05-29 15:46:06 · 403 阅读 · 0 评论 -
使用gdb调试,如何保存关于库文件里的断点
gdb的 --command=FILE ,-x 不用多说了,是读取配置文件。但是如果要调试库文件,在编译库文件的时候记得加上-g选项。 而后如果直接用--command=FILE,-x 的话,如果配置FILE里存在设置库文件的函数的断点,就会提示该函数未。定义(Make breakpoint pending on future shared library load? (y or [n]) [...原创 2020-03-24 11:41:13 · 491 阅读 · 0 评论