From: "Marc - A. Dahlhaus [ Administration | Westermann GmbH ]" Subject: Re: Re: GDB stub for stubdom Date: Thu, 30 Apr 2009 15:24:50 +0200 Message-ID: <1241097890.10463.21.camel@marc> References: <87ab5y4bjx.fsf@tac.ki.iif.hu> <1241093552.22119.83.camel@zakaz.uk.xensource.com> <87tz462t46.fsf@tac.ki.iif.hu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <87tz462t46.fsf@tac.ki.iif.hu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ferenc Wagner Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Am Donnerstag, den 30.04.2009, 15:01 +0200 schrieb Ferenc Wagner: > Ian Campbell writes: >=20 > > On Thu, 2009-04-30 at 07:37 -0400, Ferenc Wagner wrote: > >=20 > >> Did anybody consider adding some remote debugging facility to stubdo= m? > >> Or maybe it's already present? If not, putting in a GDB remote stub > >> shouldn't be too hard, though I don't know much about the low level > >> architecture. Such code is present in gPXE, for example. > > > > I think gdbserver-xen should be able to debug a stub dom just like an= y > > other. >=20 > Thanks, I haven't yet heard about it. I'd try it if it compiled, but > apparently I'm missing something (Xen-3.3.1, still :): >=20 > In file included from ../../../gdb-6.2.1/gdb/gdbserver/linux-xen-low.c:= 38: > ../../../../../libxc/xenctrl.h:36:32: error: xen/foreign/x86_32.h: No s= uch file or directory > ../../../../../libxc/xenctrl.h:37:32: error: xen/foreign/x86_64.h: No s= uch file or directory > In file included from ../../../gdb-6.2.1/gdb/gdbserver/linux-xen-low.c:= 38: > ../../../../../libxc/xenctrl.h:175: error: expected specifier-qualifier= -list before =E2=80=98vcpu_guest_context_x86_64_t=E2=80=99 > ../../../../../libxc/xenctrl.h:184: error: expected specifier-qualifier= -list before =E2=80=98shared_info_x86_64_t=E2=80=99 > ../../../../../libxc/xenctrl.h:193: error: expected specifier-qualifier= -list before =E2=80=98start_info_x86_64_t=E2=80=99 > ../../../../../libxc/xenctrl.h:966: error: expected declaration specifi= ers or =E2=80=98...=E2=80=99 before =E2=80=98hvmmem_type_t=E2=80=99 >=20 > That foreign directory is definitely not there... You have to build the rest of the tree first. There should be a README file... Builds fine here. Marc