diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2009-01-03 20:25:48 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2009-01-03 20:25:48 +0000 |
commit | e56b67eda787f2b925d1ca916e7bfc437bc4fc45 (patch) | |
tree | 92825c9b87d72331500a986347b7dc8444b84a23 /sim/cris | |
parent | 7a9d7282f3807cc8bcf3afbdcb3271377ad3780f (diff) | |
download | gdb-e56b67eda787f2b925d1ca916e7bfc437bc4fc45.zip gdb-e56b67eda787f2b925d1ca916e7bfc437bc4fc45.tar.gz gdb-e56b67eda787f2b925d1ca916e7bfc437bc4fc45.tar.bz2 |
* cris/traps.c (TARGET_SYS_exit_group): Define.
(cris_break_13_handler): Handle it like the exit for the last
thread.
Diffstat (limited to 'sim/cris')
-rw-r--r-- | sim/cris/traps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/cris/traps.c b/sim/cris/traps.c index b11cd86..081273f 100644 --- a/sim/cris/traps.c +++ b/sim/cris/traps.c @@ -113,6 +113,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define TARGET_SYS_getegid32 202 #define TARGET_SYS_getgid32 200 #define TARGET_SYS_fcntl64 221 +#define TARGET_SYS_exit_group 252 #define TARGET_PROT_READ 0x1 #define TARGET_PROT_WRITE 0x2 @@ -1456,7 +1457,8 @@ cris_break_13_handler (SIM_CPU *current_cpu, USI callnum, USI arg1, s.arg2 = arg2; s.arg3 = arg3; - if (callnum == TARGET_SYS_exit && current_cpu->m1threads == 0) + if (callnum == TARGET_SYS_exit_group + || (callnum == TARGET_SYS_exit && current_cpu->m1threads == 0)) { if (CPU_CRIS_MISC_PROFILE (current_cpu)->flags & FLAG_CRIS_MISC_PROFILE_ALL) |