From: Juan Quintela Date: Mon, 27 Jul 2009 14:13:02 +0000 (+0200) Subject: rename HAVE_GPROF to TARGET_GPROF X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~7590 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9788c9cadf42e4814b0ed0c491734292a13a0b2d;p=sdk%2Femulator%2Fqemu.git rename HAVE_GPROF to TARGET_GPROF Use was not consistent, in Makefile was TARGET_GPROF and in *h HAVE_GPROF Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c index 4f713f2e8f..3cff35765a 100644 --- a/bsd-user/syscall.c +++ b/bsd-user/syscall.c @@ -66,7 +66,7 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, abi_long arg1, switch(num) { case TARGET_FREEBSD_NR_exit: -#ifdef HAVE_GPROF +#ifdef TARGET_GPROF _mcleanup(); #endif gdb_exit(cpu_env, arg1); @@ -138,7 +138,7 @@ abi_long do_netbsd_syscall(void *cpu_env, int num, abi_long arg1, switch(num) { case TARGET_NETBSD_NR_exit: -#ifdef HAVE_GPROF +#ifdef TARGET_GPROF _mcleanup(); #endif gdb_exit(cpu_env, arg1); @@ -210,7 +210,7 @@ abi_long do_openbsd_syscall(void *cpu_env, int num, abi_long arg1, switch(num) { case TARGET_OPENBSD_NR_exit: -#ifdef HAVE_GPROF +#ifdef TARGET_GPROF _mcleanup(); #endif gdb_exit(cpu_env, arg1); diff --git a/configure b/configure index 61f4c7830d..ac8273e7e2 100755 --- a/configure +++ b/configure @@ -1583,7 +1583,7 @@ if test -n "$sparc_cpu"; then fi if test "$gprof" = "yes" ; then echo "TARGET_GPROF=yes" >> $config_host_mak - echo "#define HAVE_GPROF 1" >> $config_host_h + echo "#define TARGET_GPROF 1" >> $config_host_h fi if test "$static" = "yes" ; then echo "CONFIG_STATIC=y" >> $config_host_mak diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7b57323886..4b230ddfc9 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -57,7 +57,7 @@ #include #include #include -#ifdef HAVE_GPROF +#ifdef TARGET_GPROF #include #endif @@ -4162,7 +4162,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, pthread_exit(NULL); } #endif -#ifdef HAVE_GPROF +#ifdef TARGET_GPROF _mcleanup(); #endif gdb_exit(cpu_env, arg1); @@ -5676,7 +5676,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, #ifdef __NR_exit_group /* new thread calls */ case TARGET_NR_exit_group: -#ifdef HAVE_GPROF +#ifdef TARGET_GPROF _mcleanup(); #endif gdb_exit(cpu_env, arg1);