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 · 543 阅读 · 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 · 355 阅读 · 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 · 201 阅读 · 0 评论 -
GDB的堆栈
[code="java"] #include #include #include #define MAX (1UL原创 2012-09-16 18:16:00 · 295 阅读 · 0 评论 -
gdb log
有时候比如使用gdb的时候 查看help很长, 比如 help info 可能想grep 很麻烦 虽然gdb可以使用 shell pwd shell ls 调用系统命令 但是不能用管道和gdb命令交互 所以打印出log 再grep log 比较简单 如下 [code="java"] (gdb) show logging Future logs will be w...原创 2012-09-11 23:38:29 · 750 阅读 · 0 评论 -
gdb参数
参考http://hong7917-163-com.iteye.com/blog/1119882 http://hi.baidu.com/iamstupid/blog/item/2b98bf953f3a0d0c7bf48080.html 比如调试程序 ./UDPClient 127.0.0.1 hello 8999的时候 使用gdb gdb ./UDPClient set args...原创 2011-12-06 23:46:11 · 125 阅读 · 0 评论 -
value optimized out
gdb -d ../nginx_10081/sbin/ nginx 8751 |tee ./gdb.log 打印log gcore生成core文件或 generate-core-file http://stackoverflow.com/questions/1345338/gdb-behavior-value-optimized-out [color=red]ctrl+x...原创 2011-12-05 11:36:43 · 374 阅读 · 0 评论 -
mac下的gdb生成core
lion下似乎没有/etc/sysctl.conf 如果是linux下设置的 kernel.core_pattern=/var/core/%t-%e-%p-%c.core kernel.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 · 483 阅读 · 0 评论 -
查看进程的内存映射
cat /proc//maps 或 (gdb)i proc mapping原创 2011-09-24 00:04:35 · 1427 阅读 · 0 评论 -
人类已经阻止不了gdb了
gdb保留历史: show history set history expansion set history save sethistory size 256 保存在 ~/.gdb_history 干掉的进程会重建 __epoll_wait_nocancel () 怎么建立的?不要忽略!! ctrl+f (gdb) [code="linux"][root@re...原创 2011-09-23 00:21:20 · 431 阅读 · 0 评论 -
(转载)gdb调试java
转载http://blog.csdn.net/haoel/article/details/2289305 http://gcc.gnu.org/java/gdb.html http://www.linuxjournal.com/article/4860 [code="java"]用GDB 调试Java程序 陈皓 http://blog.csdn.net/haoel 背景...原创 2011-09-21 23:12:16 · 573 阅读 · 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 · 211 阅读 · 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 · 1040 阅读 · 0 评论
分享