如何查出某个宏定义在哪个头文件内?
想要查找一个宏定义在哪个文件中,可以使用下面的方法:
find /usr/include/ -name *.h | xargs grep 'ORIG_EAX'
输出结果如下:
/usr/include/x86_64-linux-gnu/sys/reg.h:# define ORIG_EAX 11
/usr/include/x86_64-linux-gnu/asm/ptrace-abi.h:#define ORIG_EAX 11
想要查找一个宏定义在哪个文件中,可以使用下面的方法:
find /usr/include/ -name *.h | xargs grep 'ORIG_EAX'
输出结果如下:
/usr/include/x86_64-linux-gnu/sys/reg.h:# define ORIG_EAX 11
/usr/include/x86_64-linux-gnu/asm/ptrace-abi.h:#define ORIG_EAX 11