我正在寻找类似于 Haskell 的 Hoogle 之一的实用程序。举例来说,假设我需要一个函数 signature forall n m:nat, n <> m -> m <> n。
当我的谷歌搜索没有产生任何结果时,我会Definition foo: forall n m:nat, n <> m -> m <> n.写信intros; auto with arith.来证明这一点。但是有什么方法可以不让这些临时结果污染我的工作区并根据它们的类型搜索它们?我确定我在标准库的某处看到过这种对称性。
使用此选项,我在预处理后收到文件.有很多行像:
# 91 "/usr/include/stdint.h" 3 4
Run Code Online (Sandbox Code Playgroud)
这些数字是什么意思?首先,我认为这#91是包含文件的行数,但不是这样.关于3 4我根本不知道.
我想用来gdb调试代码.当我写命令时:
gdb gdns_processor
Run Code Online (Sandbox Code Playgroud)
它将从gdb以下位置输出警告消息:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/gdnscenter/bin/gdns_processor...
warning: the debug information found in "/usr/lib/debug//usr/local/gdnscenter/bin/gdns_processor.debug" does not match "/usr/local/gdnscenter/bin/gdns_processor" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/usr/local/gdnscenter/bin/gdns_processor.debug" does not match "/usr/local/gdnscenter/bin/gdns_processor" (CRC mismatch).
(no debugging symbols found)...done.
Run Code Online (Sandbox Code Playgroud)
我不明白CRC不匹配.为什么gdb找不到符号?
PS:我的gcc选择设置了-g标志.
CPPFLAGS="-D_LIBC_REENTRANT $CPPFLAGS -g"
Run Code Online (Sandbox Code Playgroud)