From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kip Macy Subject: [PATCH] xc_ptrace.c fix Date: Sat, 2 Jul 2005 18:07:59 -0700 Message-ID: Reply-To: Kip Macy Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org Could you please apply the following trivial patch (yes I know, gmail screws up whitespace). It fixes a crash in the gdbserver that can be hit when debugging linux. --- a/tools/libxc/xc_ptrace.c Fri Jul 1 21:25:45 2005 +++ b/tools/libxc/xc_ptrace.c Sun Jul 3 01:05:21 2005 @@ -200,7 +200,7 @@ pde_phys[cpu] >> PAGE_SHIFT)) =3D=3D NULL) goto error_out; } - if ((page =3D pde_virt[cpu][vtopti(va)]) =3D=3D 0) /* logical address = */ + if ((pde_virt[cpu] =3D=3D NULL) || (page =3D pde_virt[cpu][vtopti(va)]= ) =3D=3D 0) /* logical address */ goto error_out; if (ctxt[cpu].flags & VGCF_VMX_GUEST) page =3D page_array[page >> PAGE_SHIFT] << PAGE_SHIFT;