gdb fabs错误输出

 

https://sourceware.org/gdb/wiki/FAQ

GDB doesn't know the return type nor the type of the arguments for that function call, because there's no debug information available for it. Either provide debuginfo for the program or library which contains the function, or cast the function to a function pointer of the appropriate signature.

For example, to call fabs, which takes a double and returns a double, use:

(gdb) print ((double (*) (double)) fabs) ( -1.25 )

 

https://stackoverflow.com/questions/8570196/gdb-gives-strange-output-when-using-math-h-functions

posted on 2018-08-02 09:22  阿笨猫  阅读(255)  评论(0编辑  收藏  举报