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

Re: [Xen-devel] anybody using pdb?

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] anybody using pdb?
From: Christian Limpach <chris@xxxxxx>
Date: Fri, 12 Mar 2004 16:10:49 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 12 Mar 2004 15:23:36 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <E1B1lDG-00074w-00@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> Okay, I checked in a fix somewhat like the one you initially
> proposed. Fancy giving it another spin? :-)

Ok, this works.  Thanks!

And breakpoints now work occasionally...  I think the problem is that my
test machine is 2-CPU SMP:
(from a log of the 'wire' between gdb and Xen, Xen->gdb is in [], everything
else is gdb->Xen)
$Mfc510390,1:cc#a5[+][$][O][K][#][9][$][S][a][0]
Here gdb sets the breakpoint by writing 0xcc to the breakpoint address.
Xen then would acknowledge this by replying with OK by sending "+$OK#9a" but
it doesn't get to entirely send the reply since I guess the breakpoint is
hit on the other CPU? (the breakpoint is on __enter_scheduler btw)

The log should look like this:
$Mfc510390,1:cc#a5[+][$][O][K][#][9][a]+$Hc0#db[+][$][O][K][#][9][a]+$C0a#d4
[+][$][S][0][5][#][b][8]+
Here the reply works and gdb sends commands Hc0 and C0a to continue
execution and only then Xen hits the breakpoint and sends $S05#b8 which gdb
then acknowledges with a +...

I guess we'd have to IPI the other CPUs when we hit a breakpoint?

    christian



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>