• Tony Luck's avatar
    [PATCH] ia64: make kcore work · d46d26aa
    Tony Luck authored
    /proc/kcore is what you need, but it is broken on ia64 (and
    has been since the dawn of time for access to region 5) because
    it assumes that all kernel virtual addresses are above PAGE+AF8-OFFSET.
    This isn't true on ia64, VMALLOC+AF8-START is smaller than PAGE+AF8-OFFSET.
    
    Attached is a patch (applies to 2.4.19 and to 2.5.39) that fixes the
    assumption.  After applying you'll be able to use:
    
            +ACM- gdb vmlinux /proc/kcore
    
    and happily ask gdb to examine addresses in region 5.
    d46d26aa
kcore.c 11.7 KB