--- svn-ref/linux-user/syscall.c 2008-06-11 07:53:45.000000000 +0200 +++ svn/linux-user/syscall.c 2008-06-12 17:18:15.000000000 +0200 @@ -3236,6 +3236,9 @@ #ifdef HAVE_GPROF _mcleanup(); #endif +#ifdef CONFIG_PROFILER + dump_exec_info(stderr, fprintf); +#endif gdb_exit(cpu_env, arg1); /* XXX: should free thread stack and CPU env */ _exit(arg1); @@ -4662,6 +4665,9 @@ #ifdef __NR_exit_group /* new thread calls */ case TARGET_NR_exit_group: +#ifdef CONFIG_PROFILER + dump_exec_info(stderr, fprintf); +#endif gdb_exit(cpu_env, arg1); ret = get_errno(exit_group(arg1)); break;