ia64/xen-unstable

changeset 19052:71e0b8adeb1f

ptrace_core: Handle FV cross-bitness.

Signed-off-by: Bruce Rogers <brogers@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jan 16 11:46:51 2009 +0000 (2009-01-16)
parents 40d9d9ff435a
children 0ab57e6e440a
files tools/libxc/xc_ptrace_core.c
line diff
     1.1 --- a/tools/libxc/xc_ptrace_core.c	Thu Jan 15 12:54:31 2009 +0000
     1.2 +++ b/tools/libxc/xc_ptrace_core.c	Fri Jan 16 11:46:51 2009 +0000
     1.3 @@ -540,7 +540,9 @@ xc_waitdomain_core_elf(
     1.4                               XEN_ELFNOTE_DUMPCORE_XEN_VERSION,
     1.5                               (void**)&xen_version) < 0)
     1.6          goto out;
     1.7 -    if (xen_version->xen_version.pagesize != PAGE_SIZE)
     1.8 +    /* shifted case covers 32 bit FV guest core file created on 64 bit Dom0 */
     1.9 +    if (xen_version->xen_version.pagesize != PAGE_SIZE &&
    1.10 +        (xen_version->xen_version.pagesize >> 32) != PAGE_SIZE)
    1.11          goto out;
    1.12  
    1.13      /* .note.Xen: format_version */