Don't include sys/personality.h in linux-low.cc anymore
[deliverable/binutils-gdb.git] / gdb / nat / gdb_thread_db.h
index 2938eaf8d7beb5e74d8da88b5cfa98e48f3635ef..6b3be8bdf3ac5c801862d832afc947968c962a3b 100644 (file)
@@ -1,3 +1,23 @@
+/* Copyright (C) 2000-2021 Free Software Foundation, Inc.
+
+   This file is part of GDB.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+
+#ifndef NAT_GDB_THREAD_DB_H
+#define NAT_GDB_THREAD_DB_H
+
 #ifdef HAVE_THREAD_DB_H
 #include <thread_db.h>
 #else
@@ -21,6 +41,7 @@ typedef td_err_e (td_init_ftype) (void);
 
 typedef td_err_e (td_ta_new_ftype) (struct ps_prochandle * ps,
                                    td_thragent_t **ta);
+typedef td_err_e (td_ta_delete_ftype) (td_thragent_t *ta_p);
 typedef td_err_e (td_ta_map_lwp2thr_ftype) (const td_thragent_t *ta,
                                            lwpid_t lwpid, td_thrhandle_t *th);
 typedef td_err_e (td_ta_thr_iter_ftype) (const td_thragent_t *ta,
@@ -37,7 +58,6 @@ typedef td_err_e (td_ta_clear_event_ftype) (const td_thragent_t *ta,
 typedef td_err_e (td_ta_event_getmsg_ftype) (const td_thragent_t *ta,
                                             td_event_msg_t *msg);
 
-typedef td_err_e (td_thr_validate_ftype) (const td_thrhandle_t *th);
 typedef td_err_e (td_thr_get_info_ftype) (const td_thrhandle_t *th,
                                          td_thrinfo_t *infop);
 typedef td_err_e (td_thr_event_enable_ftype) (const td_thrhandle_t *th,
@@ -52,3 +72,5 @@ typedef td_err_e (td_thr_tlsbase_ftype) (const td_thrhandle_t *th,
 
 typedef const char ** (td_symbol_list_ftype) (void);
 typedef td_err_e (td_ta_delete_ftype) (td_thragent_t *);
+
+#endif /* NAT_GDB_THREAD_DB_H */
This page took 0.024933 seconds and 4 git commands to generate.