From: Keir Fraser Subject: Re: [Xen-devel] [PATCH][XEN] __trap_to_gdb should return something different Date: Mon, 25 Sep 2006 14:34:58 +0100 Message-ID: References: <1651B386-9BF7-46F2-97D0-4ABD228E49FA@watson.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1651B386-9BF7-46F2-97D0-4ABD228E49FA@watson.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-ppc-devel-bounces@lists.xensource.com Errors-To: xen-ppc-devel-bounces@lists.xensource.com To: Jimi Xenidis Cc: xen-devel@lists.xensource.com, xen-ppc-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 25/9/06 14:27, "Jimi Xenidis" wrote: > Currently there are two failure cases: > 1) GDB had no transport available for its use (UART or otherwise) > 2) "unexpected trap", usually another trap occurs while gdb is in > control > > I suppose we could have (1) -EIO and (2) -EBUSY. > My logic was that either gdb was available or not and that I needed > to continue as if gdb was not enabled at all. How would your behaviour differ if gdbstub actually ran and eventually returned control to you, versus the trap into the debugger being a simple no-op? Surely the caller doesn't really care either way? -- Keir