From: Keir Fraser Subject: Re: anybody using pdb? Date: Fri, 12 Mar 2004 07:50:51 +0000 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: References: <148801c4078d$548e1f80$070414ac@pin> Return-path: In-Reply-To: Your message of "Thu, 11 Mar 2004 18:21:44 +0100." <148801c4078d$548e1f80$070414ac@pin> Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Christian Limpach Cc: Keir Fraser , xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org > > I've fixed this a better way, by enabling interrupts before calling > > the pdb handler. Let me know if it still doesn't work. > > No it doesn't work, at least not for the "jump to the debugger by pressing > D" case. Maybe because you only enabled interrupts during traps but not > during interrupts? AFAICT there's also some locking/flag setting which > might prevent further interrupts while the handler is still running (if I'm > looking at the right code, do_IRQ in xen/arch/i386/irq.c). > > I considered enabling interrupts at first but I couldn't exclude re-entrance > issues. Also I think that it's not the right thing to do in this case: if > you're using the debugger on Xen, you don't want interrupts enabled. I > think you'd actually want them explicitly disabled (as opposed to the > previous/current implicit disabling). Hmmmm... maybe you're right. :-) Certainly I've changed my mind about yesterday's fix. I'll back it out and do something along the lines of what you posted in the first place. -- Keir ------------------------------------------------------- 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