Hi All,
Iam working on ESI part of Varnish, and to understand the code flow, i was
trying to use gdb debugger, but didn't have any luck so far.
Please help me out in understanding how to debug Varnish source code using gdb.
I checked with the Make i could find that it compiled with -g Option, but still
face these errors.
dev03:/home/varnish/varnish/sbin # gdb ./varnishd GNU gdb 6.4Copyright 2005
Free Software Foundation, Inc.GDB is free software, covered by the GNU General
Public License, and you arewelcome to change it and/or distribute copies of it
under certain conditions.Type "show copying" to see the conditions.There is
absolutely no warranty for GDB. Type "show warranty" for details.This GDB was
configured as "x86_64-suse-linux"...Using host libthread_db library
"/lib64/libthread_db.so.1".
(gdb) b esi_handle_include Breakpoint 1 at 0x432533: file cache_vrt_esi.c, line
351.(gdb) r -T 127.0.0.1:200 -a 0.0.0.0:2030 -f
/home/varnish/varnish/etc/varnish/varnish.vcl -u varnishStarting program:
/home/varnish/varnish/sbin/varnishd -T 127.0.0.1:200 -a 0.0.0.0:2030 -f
/home/varnish/varnish/etc/varnish/varnish.vcl -u varnish[Thread debugging using
libthread_db enabled][New Thread 47413511004080 (LWP 16317)]Error while mapping
shared library sections:./vcl.1P9zoqAU.so: No such file or directory.Error
while reading shared library symbols:./vcl.1P9zoqAU.so: No such file or
directory.Error while reading shared library symbols:./vcl.1P9zoqAU.so: No such
file or directory.storage_file: filename: ./varnish.bjsqBo (unlinked) size 8921
MB.Using old SHMFILE
Program exited normally.(gdb) Thanks in advance, Jaysingh
_________________________________________________________________
Green cities and the melting world
http://green.in.msn.com/
_______________________________________________
varnish-dev mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-dev