From 9cd6514517f8b385fda74dcdca2b9266c6f7eb14 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 5 Dec 2015 08:10:51 +0100 Subject: remove __UCLIBC_HAVE_ASM_GLOBAL_DOT_NAME__ It's even no longer required for non-ported ppc64 architecture. Sync with GNU C library. This simplify the macros in include/libc-symbols.h. --- libpthread/nptl_db/td_symbol_list.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'libpthread/nptl_db') diff --git a/libpthread/nptl_db/td_symbol_list.c b/libpthread/nptl_db/td_symbol_list.c index dcf7e5c73..fc5ee7cc5 100644 --- a/libpthread/nptl_db/td_symbol_list.c +++ b/libpthread/nptl_db/td_symbol_list.c @@ -23,13 +23,6 @@ #endif #include "thread_dbP.h" - -#ifdef HAVE_ASM_GLOBAL_DOT_NAME -# define DOT "." /* PPC64 requires . prefix on code symbols. */ -#else -# define DOT /* No prefix. */ -#endif - static const char *symbol_list_arr[] = { # define DB_STRUCT(type) \ @@ -39,7 +32,7 @@ static const char *symbol_list_arr[] = # define DB_SYMBOL(name) \ [SYM_##name] = #name, # define DB_FUNCTION(name) \ - [SYM_##name] = DOT #name, + [SYM_##name] = #name, # define DB_VARIABLE(name) \ [SYM_##name] = #name, \ [SYM_DESC_##name] = "_thread_db_" #name, @@ -73,14 +66,5 @@ td_lookup (struct ps_prochandle *ps, int idx, psaddr_t *sym_addr) assert (idx >= 0 && idx < SYM_NUM_MESSAGES); result = ps_pglobal_lookup (ps, LIBPTHREAD_SO, symbol_list_arr[idx], sym_addr); - -#ifdef HAVE_ASM_GLOBAL_DOT_NAME - /* For PowerPC, 64-bit uses dot symbols but 32-bit does not. - We could be a 64-bit libthread_db debugging a 32-bit libpthread. */ - if (result == PS_NOSYM && symbol_list_arr[idx][0] == '.') - result = ps_pglobal_lookup (ps, LIBPTHREAD_SO, &symbol_list_arr[idx][1], - sym_addr); -#endif - return result; } -- cgit v1.2.3