gdb
linux内核控
这个作者很懒,什么都没留下…
展开
-
gdb的helloworld
想起东软的1个linux老师,就讲了两天基本就把这书讲完了,刚买了本书,一定要一星期内看完《debug hacks》源码在http://www.oreilly.co.jp/books/9784873114040/日语,google翻译吧奶奶的幸好哥我练过,要不被你成那啥呀~先 ulimit -c 内核转储文件的大小限制ulimit -c 1073741842或开机启...原创 2011-09-16 22:35:06 · 472 阅读 · 0 评论 -
qemu+emacs+gdb调试内核
emacs -nw[b]1.debug方式编译内核2.qemu -S启动3.设置emacs参数 ,启用gdb模式远程调试[/b][b]环境:[/b][code="java"][root@centos140_11 ~]# cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core) [root@c...原创 2015-12-02 22:15:52 · 279 阅读 · 0 评论 -
gdb emacs
参考[url]http://www.cnblogs.com/qlwy/archive/2012/06/04/2535297.html[/url][url]http://blog.csdn.net/liigo/article/details/582231[/url][code="java"][root@node11 ~]# cat gdb-sample.c#include...原创 2015-11-20 22:24:15 · 130 阅读 · 0 评论 -
GDB的堆栈
[code="java"]#include #include #include #define MAX (1UL原创 2012-09-16 18:16:00 · 226 阅读 · 0 评论 -
gdb log
有时候比如使用gdb的时候查看help很长,比如help info 可能想grep 很麻烦虽然gdb可以使用shell pwdshell ls调用系统命令但是不能用管道和gdb命令交互所以打印出log 再grep log 比较简单如下[code="java"](gdb) show loggingFuture logs will be w...原创 2012-09-11 23:38:29 · 673 阅读 · 0 评论 -
gdb参数
参考http://hong7917-163-com.iteye.com/blog/1119882http://hi.baidu.com/iamstupid/blog/item/2b98bf953f3a0d0c7bf48080.html比如调试程序./UDPClient 127.0.0.1 hello 8999的时候使用gdbgdb ./UDPClientset args...原创 2011-12-06 23:46:11 · 76 阅读 · 0 评论 -
value optimized out
gdb -d ../nginx_10081/sbin/ nginx 8751 |tee ./gdb.log打印loggcore生成core文件或generate-core-filehttp://stackoverflow.com/questions/1345338/gdb-behavior-value-optimized-out[color=red]ctrl+x...原创 2011-12-05 11:36:43 · 297 阅读 · 0 评论 -
mac下的gdb生成core
lion下似乎没有/etc/sysctl.conf如果是linux下设置的kernel.core_pattern=/var/core/%t-%e-%p-%c.corekernel.core_uses_pid=0也没有用,sysctl -a查看所有比如看cpu信息就sysctl -a|grep cpu[code="java"]sh-3.2# sysctl -a|g...原创 2011-11-29 00:33:56 · 402 阅读 · 0 评论 -
查看进程的内存映射
cat /proc//maps或(gdb)i proc mapping原创 2011-09-24 00:04:35 · 1179 阅读 · 0 评论 -
人类已经阻止不了gdb了
gdb保留历史:show historyset history expansionset history savesethistory size 256保存在 ~/.gdb_history干掉的进程会重建__epoll_wait_nocancel ()怎么建立的?不要忽略!!ctrl+f (gdb)[code="linux"][root@re...原创 2011-09-23 00:21:20 · 369 阅读 · 0 评论 -
(转载)gdb调试java
转载http://blog.csdn.net/haoel/article/details/2289305http://gcc.gnu.org/java/gdb.htmlhttp://www.linuxjournal.com/article/4860[code="java"]用GDB 调试Java程序 陈皓http://blog.csdn.net/haoel 背景...原创 2011-09-21 23:12:16 · 495 阅读 · 0 评论 -
gdb调试nginx的helloworld
假设nginx装在了/usr/local/nginx/./nginx -c conf/nginx.conf在任意目录gdb -d /usr/local/nginx/objs/ nginx 10776或者gdb -d /usr/local/nginx/objs/ nginx进入后再attach 10777[code="java"](gdb) info program ...原创 2011-09-21 00:09:53 · 156 阅读 · 0 评论 -
nginx模块开发(二) 使用gdb-dashboard调试
gdb-dashboard或者 gdbgui 或者gdb自带的tui(ctl x + a )gdb-dashboard这个样子[img]http://dl2.iteye.com/upload/attachment/0126/4893/5f21001a-8bc9-3f1d-81a4-fee1ac3bee4e.png[/img][url]https://github.com/cyr...原创 2017-08-11 18:47:23 · 949 阅读 · 0 评论