Re: [PATCH] BUG() disassembly tweak

Keith Owens (kaos@ocs.com.au)
Sat, 11 May 2002 12:21:55 +1000


On Sat, 11 May 2002 03:07:51 +0100 (BST),
Hugh Dickins <hugh@veritas.com> wrote:
>On Sat, 11 May 2002, Keith Owens wrote:
>>
>> IMNSHO the instructions _after_ the oops are almost useless.
>
>Oh, I agree: I'd be perfectly happy for ksymoops to abandon trying
>to disassemble the instructions after the oops, and I don't think
>it need try to disassemble the instructions before the oops either.
>
>It is important that it show the bytes (preferably before and)
>after the oops, so that an investigator can locate that sequence
>of bytes in a built object; and it is important that we have some
>tool (objdump) which can disassemble the built object despite ud2
>and its accompanying data; but ksymoops does not need to do it.

ksymoops does more than decode the instructions. It does all the work
required to build the dummy object ready for objdump to do the
decoding. It also massages the objdump output to make it more readable
and does symbol lookup on the absolute addresses returned by objdump.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/