diff options
author | Roland McGrath <roland@gnu.org> | 2003-09-09 07:01:01 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-09-09 07:01:01 +0000 |
commit | 7f08f55a9f88d23fcfbf1fed00f4d5a094e5fffc (patch) | |
tree | 5796d7f5d713c3c264a70a6039b0ba52e262b06f /nptl_db/td_symbol_list.c | |
parent | 2003-09-08 Roland McGrath <roland@frob.com> (diff) | |
download | glibc-7f08f55a9f88d23fcfbf1fed00f4d5a094e5fffc.tar.gz glibc-7f08f55a9f88d23fcfbf1fed00f4d5a094e5fffc.tar.bz2 glibc-7f08f55a9f88d23fcfbf1fed00f4d5a094e5fffc.zip |
* sysdeps/unix/sysv/linux/speed.c
(cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
(cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
* sysdeps/unix/sysv/linux/bits/termios.h
(_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
* sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
Diffstat (limited to 'nptl_db/td_symbol_list.c')
-rw-r--r-- | nptl_db/td_symbol_list.c | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/nptl_db/td_symbol_list.c b/nptl_db/td_symbol_list.c index 252faa418d..061767eb74 100644 --- a/nptl_db/td_symbol_list.c +++ b/nptl_db/td_symbol_list.c @@ -25,17 +25,26 @@ static const char *symbol_list_arr[] = { - [SYM_PTHREAD_THREADS_EVENTS] = "__nptl_threads_events", - [SYM_PTHREAD_LAST_EVENT] = "__nptl_last_event", - [SYM_PTHREAD_NTHREADS] = "__nptl_nthreads", - [SYM_PTHREAD_STACK_USED] = "stack_used", - [SYM_PTHREAD_STACK_USER] = "__stack_user", - [SYM_PTHREAD_KEYS] = "__pthread_keys", - [SYM_PTHREAD_KEYS_MAX] = "__pthread_pthread_keys_max", - [SYM_PTHREAD_SIZEOF_DESCR] = "__pthread_pthread_sizeof_descr", - [SYM_PTHREAD_CREATE_EVENT] = "__nptl_create_event", - [SYM_PTHREAD_DEATH_EVENT] = "__nptl_death_event", - [SYM_PTHREAD_VERSION] = "nptl_version", +# 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_VARIABLE(name) \ + [SYM_##name] = #name, \ + [SYM_DESC_##name] = "_thread_db_" #name, +# include "structs.def" +# undef DB_STRUCT +# 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", + [SYM_NUM_MESSAGES] = NULL }; @@ -47,7 +56,7 @@ td_symbol_list (void) } -int +ps_err_e td_lookup (struct ps_prochandle *ps, int idx, psaddr_t *sym_addr) { assert (idx >= 0 && idx < SYM_NUM_MESSAGES); |