- 论坛徽章:
- 0
|
我用gdb调试 一个apache demo模块的时候,不知怎么会是,出现下面这种情况,感觉就像多线程一样。- [root@localhost modules]# gdb httpd
- GNU gdb (GDB) Fedora (7.3.50.20110722-13.fc16)
- Copyright (C) 2011 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law. Type "show copying"
- and "show warranty" for details.
- This GDB was configured as "i686-redhat-linux-gnu".
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>...
- Reading symbols from /usr/sbin/httpd...Reading symbols from /usr/lib/debug/usr/sbin/httpd.debug...done.
- done.
- (gdb) b read_post_data
- Function "read_post_data" not defined.
- Make breakpoint pending on future shared library load? (y or [n]) y
- Breakpoint 1 (read_post_data) pending.
- (gdb) run -X -f /etc/httpd/conf/httpd.conf
- Starting program: /usr/sbin/httpd -X -f /etc/httpd/conf/httpd.conf
- [Thread debugging using libthread_db enabled]
- Using host libthread_db library "/lib/libthread_db.so.1".
- httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
- warning: Temporarily disabling breakpoints for unloaded shared library "/etc/httpd/modules/mod_pronunciation_score.so"
- Breakpoint 1, read_post_data (req=0x801a71d0, post=0xbfffee68, post_size=0xbfffee6c)
- at mod_pronunciation_score.c:17
- 17 static int read_post_data(request_rec *req, char **post, size_t *post_size){
- Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-27.fc16.i686 nspr-4.9-2.fc16.i686 nss-3.13.4-2.fc16.i686 nss-util-3.13.4-2.fc16.i686
- (gdb) n
- 18 char buffer[DFT_BUF_SIZE] = {0};
- (gdb) n
- 17 static int read_post_data(request_rec *req, char **post, size_t *post_size){
- (gdb) n
- 18 char buffer[DFT_BUF_SIZE] = {0};
- (gdb) n
- 17 static int read_post_data(request_rec *req, char **post, size_t *post_size){
- (gdb) n
- 18 char buffer[DFT_BUF_SIZE] = {0};
- (gdb) n
- 17 static int read_post_data(request_rec *req, char **post, size_t *post_size){
- (gdb) n
- 23 if(ap_setup_client_block(req, REQUEST_CHUNKED_DECHUNK) != OK){
- (gdb) n
- 17 static int read_post_data(request_rec *req, char **post, size_t *post_size){
- (gdb) n
- 21 bytes = count = offset = 0;
- (gdb)
复制代码 |
|