[英]GDB Conditional breakpoint, Weird Behaviour
GDB Version: 8.1 GDB版本:8.1
The following, does not work: 以下内容不起作用:
condition 2 strcmp(x,"hello") == 0
The following, works 以下作品
condition 2 strcmp()(x,"hello") == 0
why? 为什么?
why? 为什么?
Assuming you are on a Linux system, this is most likely caused by the fact that strcmp
is a GNU indirect function . 假设您使用的是Linux系统,这很可能是由于strcmp
是GNU间接函数 。
Installing debug info for GLIBC ( libc-dbg
, or some such package) may help. 安装GLIBC的调试信息( libc-dbg
或某些此类软件包)可能会有所帮助。
This could be a considered a bug in GDB, feel free to create a new bugzilla issue for it. 这可能被认为是GDB中的错误,请随时为其创建一个新的bugzilla问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.