|
@@ -1603,6 +1603,7 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
|
|
#ifdef HAVE_GPROF
|
|
#ifdef HAVE_GPROF
|
|
_mcleanup();
|
|
_mcleanup();
|
|
#endif
|
|
#endif
|
|
|
|
+ gdb_exit(cpu_env, arg1);
|
|
/* XXX: should free thread stack and CPU env */
|
|
/* XXX: should free thread stack and CPU env */
|
|
_exit(arg1);
|
|
_exit(arg1);
|
|
ret = 0; /* avoid warning */
|
|
ret = 0; /* avoid warning */
|
|
@@ -2409,6 +2410,7 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
|
|
#ifdef __NR_exit_group
|
|
#ifdef __NR_exit_group
|
|
/* new thread calls */
|
|
/* new thread calls */
|
|
case TARGET_NR_exit_group:
|
|
case TARGET_NR_exit_group:
|
|
|
|
+ gdb_exit(cpu_env, arg1);
|
|
ret = get_errno(exit_group(arg1));
|
|
ret = get_errno(exit_group(arg1));
|
|
break;
|
|
break;
|
|
#endif
|
|
#endif
|