#include #include int main(void) int i =0; char *a[3]=for(i=0;i<3;i++) printf("a=[%s]\n", a[i]); }return 0;You can use strcmp:break x:20 if strcmp(y, "hello") == 020 is line number, x can be any filename and y can be any variable.
分享标题:gdb设置断点,多个源文件gdb时如何在指定的某个文件中设置断点
本文来源:http://kswjz.com/article/idiiij.html