aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/armos.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-21 01:27:18 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-21 01:41:07 -0500
commit3cf7f9363d4eedc3bd783c6174db872cb69c5d97 (patch)
tree4eabac25d79f9dd3372a4c8bc54c873492e618b1 /sim/arm/armos.c
parentc5190830dbb6c3c875d853b46d742c444fece838 (diff)
downloadgdb-3cf7f9363d4eedc3bd783c6174db872cb69c5d97.zip
gdb-3cf7f9363d4eedc3bd783c6174db872cb69c5d97.tar.gz
gdb-3cf7f9363d4eedc3bd783c6174db872cb69c5d97.tar.bz2
sim: arm: add missing breaks to SWI processing
Seems unlikely we want the remove syscall to fallthrough into the rename syscall since we can't rename files that have been removed.
Diffstat (limited to 'sim/arm/armos.c')
-rw-r--r--sim/arm/armos.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/arm/armos.c b/sim/arm/armos.c
index 42d1dfb..374861d 100644
--- a/sim/arm/armos.c
+++ b/sim/arm/armos.c
@@ -697,11 +697,13 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number)
case AngelSWI_Reason_Remove:
SWIremove (state,
ARMul_ReadWord (state, addr));
+ break;
case AngelSWI_Reason_Rename:
SWIrename (state,
ARMul_ReadWord (state, addr),
ARMul_ReadWord (state, addr + 4));
+ break;
}
}
else