[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4A7AC6FD.6080600@pardus.org.tr>
Date: Thu, 06 Aug 2009 15:05:17 +0300
From: Ozan Çağlayan <ozan@...dus.org.tr>
To: Matthew Wilcox <matthew@....cx>
CC: Arjan van de Ven <arjan@...radead.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Fix markup_oops to work with 32-bit userspace on a 64-bit
kernel
Matthew Wilcox wrote On 13-07-2009 17:18:
> A 32-bit perl can't handle 64-bit addresses without using the BigInt package.
>
>
> -my $decodestart = hex($target) - hex($func_offset);
> -my $decodestop = hex($target) + 8192;
> +my $decodestart = Math::BigInt->from_hex("0x$target") - Math::BigInt->from_hex("0x$func_offset");
> +my $decodestop = Math::BigInt->from_hex("0x$target") + 8192;
> if ($target eq "0") {
> print "No oops found!\n";
> print "Usage: \n";
>
$func_offset has already "0x" so this commit prepends another "0x"
causing decodestart to be NaN.
Regards,
Ozan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists