a problem when I'm try to debug xen boot codes
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