diff options
author | Fernando Nasser <fnasser@redhat.com> | 2000-07-14 16:49:46 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 2000-07-14 16:49:46 +0000 |
commit | 5f114af0b61c1f00ebdaf772c37cc6f2368abbce (patch) | |
tree | 61a38443677b10d77d49490295b7276b5373f8ca /sim/arm/wrapper.c | |
parent | 982929a65a364b21f828947a940bc605ad2b2961 (diff) | |
download | gdb-5f114af0b61c1f00ebdaf772c37cc6f2368abbce.tar.gz |
2000-07-14 Fernando Nasser <fnasser@cygnus.com>
* wrapper.c (sim_create_inferior): Reset mode to ARM when creating a
new inferior.
Diffstat (limited to 'sim/arm/wrapper.c')
-rw-r--r-- | sim/arm/wrapper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c index 5db178c47ca..513c0d06d87 100644 --- a/sim/arm/wrapper.c +++ b/sim/arm/wrapper.c @@ -225,6 +225,10 @@ sim_create_inferior (sd, abfd, argv, env) case 7: /* armv5 */ case 8: /* armv5t */ ARMul_SelectProcessor (state, STRONGARM); + /* Reset mode to ARM. A gdb user may rerun a program that had entered + THUMB mode from the start and cause the ARM-mode startup code to be + executed in THUMB mode. */ + ARMul_SetCPSR (state, THUMB2MODE); break; case 3: /* armv3 */ |