[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] anybody using pdb?



> 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.