diff options
author | Stan Shebs <shebs@codesourcery.com> | 1999-04-26 18:34:20 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1999-04-26 18:34:20 +0000 |
commit | 7a292a7adf506b866905b06b3024c0fd411c4583 (patch) | |
tree | 5b208bb48269b8a82d5c3a5f19c87b45a62a22f4 /sim/arm/thumbemu.c | |
parent | 1996fae84682e8ddd146215dd2959ad1ec924c09 (diff) | |
download | gdb-7a292a7adf506b866905b06b3024c0fd411c4583.zip gdb-7a292a7adf506b866905b06b3024c0fd411c4583.tar.gz gdb-7a292a7adf506b866905b06b3024c0fd411c4583.tar.bz2 |
import gdb-19990422 snapshot
Diffstat (limited to 'sim/arm/thumbemu.c')
-rw-r--r-- | sim/arm/thumbemu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/arm/thumbemu.c b/sim/arm/thumbemu.c index eaf6e0c..c610b97 100644 --- a/sim/arm/thumbemu.c +++ b/sim/arm/thumbemu.c @@ -29,6 +29,7 @@ existing ARM simulator. */ #include "armdefs.h" #include "armemu.h" +#include "armos.h" /* Decode a 16bit Thumb instruction. The instruction is in the low 16-bits of the tinstr field, with the following Thumb instruction @@ -356,6 +357,9 @@ ARMul_ThumbDecode (state,pc,tinstr,ainstr) /* Breakpoint must be handled specially. */ if ((tinstr & 0x00FF) == 0x18) *ainstr |= ((tinstr & 0x00FF) << 16); + /* New breakpoint value. See gdb/arm-tdep.c */ + else if ((tinstr & 0x00FF) == 0xFE) + * ainstr |= SWI_Breakpoint; else *ainstr |= (tinstr & 0x00FF); } |