摘要: break file.c:100 thread all 在file.c文件第100行处为所有经过这里的线程设置断点。set scheduler-locking off|on|step,这个是问得最多的。在使用step或者continue命令调试当前被调试线程的时候,其他线程也是同时执行的,怎么只让被... 阅读全文
posted @ 2014-10-25 20:20 helloweworld 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 4 using namespace std; 5 static int a = 1; 6 7 void *thread0(void*) 8 { 9 while (1)10 {11 a++;12 }13 return (void*)0;14 }1... 阅读全文
posted @ 2014-10-25 20:00 helloweworld 阅读(320) 评论(0) 推荐(0) 编辑
摘要: void fun(){ int b = 0; b++;}int main(int argc, char** argv){ while (1) { int a = 0; a++; fun(); }}main.cpp1. 运行上面程... 阅读全文
posted @ 2014-10-25 19:42 helloweworld 阅读(500) 评论(0) 推荐(0) 编辑
摘要: date -d "1970-01-01 UTC `echo "$(date +%s)-$(cat /proc/uptime|cut -f 1 -d' ')+12288812.926194"|bc ` seconds"用dmesg显示的时间替换红色字 阅读全文
posted @ 2014-10-25 18:32 helloweworld 阅读(820) 评论(0) 推荐(0) 编辑