From 7f08f55a9f88d23fcfbf1fed00f4d5a094e5fffc Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 9 Sep 2003 07:01:01 +0000 Subject: * 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. --- nptl/sysdeps/i386/tls.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nptl/sysdeps/i386/tls.h') diff --git a/nptl/sysdeps/i386/tls.h b/nptl/sysdeps/i386/tls.h index 85d6473380..873467ca77 100644 --- a/nptl/sysdeps/i386/tls.h +++ b/nptl/sysdeps/i386/tls.h @@ -251,6 +251,11 @@ union user_desc_init : "i" (offsetof (struct pthread, header.self))); \ __self;}) +/* Magic for libthread_db to know how to do THREAD_SELF. */ +# define DB_THREAD_SELF \ + REGISTER_THREAD_AREA (32, offsetof (struct user_regs_struct, xgs), 3) \ + REGISTER_THREAD_AREA (64, 26 * 8, 3) /* x86-64's user_regs_struct->gs */ + /* Read member of the thread descriptor directly. */ # define THREAD_GETMEM(descr, member) \ -- cgit v1.2.3