Arhold
2007-Jan-12 07:29 UTC
Re: [Xen-devel] a problem when I''m try to debug xen boot codes
Hi Ming, Could you share some experience on how to enable the xen debug? I try to build the xen with a kgdb patched kernel, but failed. Arhold ~~~~~~~~~~~~~~~~~~~~~~~ hi, I want to learn xen boot codes. I use bochs with gdb stub to implement source codes debug. I rebuild xen kernel with "debug=y, debugger=y" to enable debug, boot xen by bochs, connect gdb remote target, set breakpoint. All are ok now.(I run gdb in directory "xen", and set breakpoint at __start_xen.) But, when the breakpoint is hit, gdb displays:"setup.c:no such file or directory". Of course, I can use directory to add search path to gdb. But if trace into a different directory, I have to use "direcotry" again. You know, the directory structure is some complex, so it's so boring to add all directory to gdb. As I know, some debug information of elf file includes directory of file. But there is just only the file name without directory. Does anybody know how to deal with it? Thanks. Ming _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn _______________________________________________ Xen-devel mailing listXen-devel@xxxxxxxxxxxxxxxxxxxhttp://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel