about summary refs log tree commit diff
path: root/nptl_db/td_symbol_list.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2009-02-28 02:26:51 +0000
committerRoland McGrath <roland@gnu.org>2009-02-28 02:26:51 +0000
commite965d5147e216ceb4157ad478cd271af96866e77 (patch)
tree7b1fadba2e158c0b428475c5dae5bf49d26c6327 /nptl_db/td_symbol_list.c
parent8744841f9ab79b725d37395d6f4057a92bdc9953 (diff)
downloadglibc-e965d5147e216ceb4157ad478cd271af96866e77.tar.gz
glibc-e965d5147e216ceb4157ad478cd271af96866e77.tar.xz
glibc-e965d5147e216ceb4157ad478cd271af96866e77.zip
* Makeconfig (%.v.i): Depend on Makeconfig.
	Exclude % lines from initial #-comment removal.
Diffstat (limited to 'nptl_db/td_symbol_list.c')
-rw-r--r--nptl_db/td_symbol_list.c36
1 files changed, 6 insertions, 30 deletions
diff --git a/nptl_db/td_symbol_list.c b/nptl_db/td_symbol_list.c
index 5d6c94e5b7..79498404cb 100644
--- a/nptl_db/td_symbol_list.c
+++ b/nptl_db/td_symbol_list.c
@@ -1,5 +1,5 @@
 /* Return list of symbols the library can request.
-   Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+   Copyright (C) 2001,2002,2003,2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
 
@@ -22,37 +22,13 @@
 #include <gnu/lib-names.h>
 #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) \
-  [SYM_SIZEOF_##type] = "_thread_db_sizeof_" #type,
-# define DB_STRUCT_FIELD(type, field) \
-  [SYM_##type##_FIELD_##field] = "_thread_db_" #type "_" #field,
-# define DB_SYMBOL(name) \
-  [SYM_##name] = #name,
-# define DB_FUNCTION(name) \
-  [SYM_##name] = DOT #name,
-# define DB_VARIABLE(name) \
-  [SYM_##name] = #name, \
-  [SYM_DESC_##name] = "_thread_db_" #name,
-# include "structs.def"
-# undef DB_STRUCT
-# undef DB_FUNCTION
-# undef DB_SYMBOL
-# undef DB_VARIABLE
-
-  [SYM_TH_UNIQUE_CONST_THREAD_AREA] = "_thread_db_const_thread_area",
-  [SYM_TH_UNIQUE_REGISTER64] = "_thread_db_register64",
-  [SYM_TH_UNIQUE_REGISTER32] = "_thread_db_register32",
-  [SYM_TH_UNIQUE_REGISTER32_THREAD_AREA] = "_thread_db_register32_thread_area",
-  [SYM_TH_UNIQUE_REGISTER64_THREAD_AREA] = "_thread_db_register64_thread_area",
+# define DB_LOOKUP_NAME(idx, name)		[idx] = #name,
+# define DB_LOOKUP_NAME_TH_UNIQUE(idx, name)	[idx] = #name,
+# include "db-symbols.h"
+# undef	DB_LOOKUP_NAME
+# undef	DB_LOOKUP_NAME_TH_UNIQUE
 
   [SYM_NUM_MESSAGES] = NULL
 };