You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2018/04/13 09:36:01 UTC
svn commit: r1829048 - /httpd/httpd/trunk/.gdbinit
Author: jorton
Date: Fri Apr 13 09:36:01 2018
New Revision: 1829048
URL: http://svn.apache.org/viewvc?rev=1829048&view=rev
Log:
Dump server_rec ->addrs list in dump_server_rec.
Modified:
httpd/httpd/trunk/.gdbinit
Modified: httpd/httpd/trunk/.gdbinit
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/.gdbinit?rev=1829048&r1=1829047&r2=1829048&view=diff
==============================================================================
--- httpd/httpd/trunk/.gdbinit (original)
+++ httpd/httpd/trunk/.gdbinit Fri Apr 13 09:36:01 2018
@@ -330,10 +330,26 @@ document dump_process_rec
Print process_rec info
end
+define dump_server_addr_recs
+ set $sa_ = $arg0
+ set $san_ = 0
+ while $sa_
+ ### need to call apr_sockaddr_info_getbuf to print ->host_addr properly
+ ### which is a PITA since we need a buffer :(
+ printf " addr#%d: vhost=%s -> :%d\n", $san_++, $sa_->virthost, $sa_->host_port
+ set $sa_ = $sa_->next
+ end
+end
+document dump_server_addr_recs
+ Print server_addr_rec info
+end
+
+
define dump_server_rec
set $s = $arg0
- printf "name=%s:%d\n", \
- $s->server_hostname, $s->port
+ printf "name=%s:%d (0x%lx)\n", \
+ $s->server_hostname, $s->port, $s
+ dump_server_addr_recs $s->addrs
dump_process_rec($s->process)
end
document dump_server_rec