This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch ARM] Prevent disassembler from aborting on an invalid Thumb2 instruction.
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: ramana dot radhakrishnan at arm dot com
- Cc: binutils at sourceware dot org
- Date: Tue, 17 Nov 2009 10:40:38 +0000
- Subject: Re: [Patch ARM] Prevent disassembler from aborting on an invalid Thumb2 instruction.
- References: <1258453632.19571.47.camel@e200593-lin.cambridge.arm.com>
On Tue, 2009-11-17 at 10:27 +0000, Ramana Radhakrishnan wrote:
> Hi,
>
> Ed Nevill discovered this and proposed the attached patch while debugging some code. The disassembler aborts when faced with an
> invalid instruction in Thumb2 state.
>
> The testcase is as simple as the following.
>
> .cpu cortex-a8
> .syntax unified
> .thumb
> .global main
> .type main,%function
> main:
> .inst.w 0xe81c0c20
>
> Without this patch objdump aborts - with this patch objdump prints out something more sensible like :
>
> Disassembly of section .text:
>
> 00000000 <main>:
> 0: e81c 0c20 undefined instruction 0xe81c0c20
>
> Tested cross with arm-none-eabi with no regressions. Ok to commit ?
>
> cheers
> Ramana
>
OK
R.