From 674c854436a800e2fc4e072b6f7713aa2a40fb12 Mon Sep 17 00:00:00 2001 From: "munkyu.im" Date: Wed, 5 Dec 2012 18:32:36 +0900 Subject: [PATCH] Revert "sdb: display arch name" This reverts commit eafc7331be620eec85569e31906d23da52ef3f45. --- tizen/src/emulator.c | 9 ++------- tizen/src/sdb.c | 13 +------------ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/tizen/src/emulator.c b/tizen/src/emulator.c index 659cc40..f0d2c80 100644 --- a/tizen/src/emulator.c +++ b/tizen/src/emulator.c @@ -83,11 +83,6 @@ MULTI_DEBUG_CHANNEL(qemu, main); #define LCD_WIDTH_PREFIX "width=" #define LCD_HEIGHT_PREFIX "height=" #define MIDBUF 128 -#if defined(TARGET_I386) -#define ARCH "x86" -#else -#define ARCH "arm" -#endif int tizen_base_port; char tizen_target_path[MAXLEN]; @@ -213,7 +208,7 @@ void make_shdmem(void) ERR("shmat failed\n"); return; } - sprintf(shared_memory, "%s:%s", tizen_target_path, ARCH); + sprintf(shared_memory, "%s", tizen_target_path); INFO("shared memory key: %d value: %s\n", tizen_base_port, (char *)shared_memory); #elif defined(CONFIG_WIN32) @@ -222,7 +217,7 @@ void make_shdmem(void) char *port_in_use; char *shared_memory; - shared_memory = g_strdup_printf("%s:%s", tizen_target_path, ARCH); + shared_memory = g_strdup_printf("%s", tizen_target_path); port_in_use = g_strdup_printf("%d", tizen_base_port); hMapFile = CreateFileMapping( INVALID_HANDLE_VALUE, /* use paging file */ diff --git a/tizen/src/sdb.c b/tizen/src/sdb.c index f27c243..b8cdab2 100644 --- a/tizen/src/sdb.c +++ b/tizen/src/sdb.c @@ -30,15 +30,9 @@ #include "nbd.h" #include "tizen/src/debug_ch.h" +//DEFAULT_DEBUG_CHANNEL(qemu); MULTI_DEBUG_CHANNEL(qemu, sdb); -#if defined(TARGET_I386) -#define ARCH "x86" -#else -#define ARCH "arm" -#endif - - /* QSOCKET_CALL is used to deal with the fact that EINTR happens pretty * easily in QEMU since we use SIGALRM to implement periodic timers */ @@ -364,12 +358,7 @@ void notify_sdb_daemon_start(void) { } /* length is hex host:emulator:port: -> 0x13 = 20 */ -#if defined(CONFIG_DARWIN) - //TODO: not supported arch name on mac yet. sprintf(tmp, "00%2xhost:emulator:%d:%s", 20 + strlen(targetname), tizen_base_port + 1, targetname); -#else - sprintf(tmp, "00%2xhost:emulator:%d:%s:%s", 23 + strlen(targetname), tizen_base_port + 1, targetname, ARCH); -#endif INFO("message to send to SDB server: %s\n", tmp); if (socket_send(s, tmp, MAXPACKETLEN) < 0) { ERR( "message sending to SDB server error!\n"); -- 2.7.4