WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] a problem when I'm try to debug xen boot codes

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] a problem when I'm try to debug xen boot codes
From: "wu ming" <wmy_dev@xxxxxxxxxxx>
Date: Sun, 05 Nov 2006 22:31:48 +0800
Bcc:
Delivery-date: Sun, 05 Nov 2006 06:32:10 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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 list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] a problem when I'm try to debug xen boot codes, wu ming <=