* config/nm-linux.h (struct target_ops): Remove forward declaration.
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 11 Jun 2010 12:10:13 +0000 (12:10 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 11 Jun 2010 12:10:13 +0000 (12:10 +0000)
(lin_thread_get_thread_signals): Remove prototype.
(GET_THREAD_SIGNALS): Remove.
* linux-nat.h (lin_thread_get_thread_signals): Add prototype.
* linux-thread-db.c (check_thread_signals): Directly call
lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.

gdb/ChangeLog
gdb/config/nm-linux.h
gdb/linux-nat.h
gdb/linux-thread-db.c

index 9f7ac39755c2884a9faba6223e06521e467650c3..cbac1f518308a1884caaf9b7fb1627787c4daec6 100644 (file)
@@ -1,3 +1,12 @@
+2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * config/nm-linux.h (struct target_ops): Remove forward declaration.
+       (lin_thread_get_thread_signals): Remove prototype.
+       (GET_THREAD_SIGNALS): Remove.
+       * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
+       * linux-thread-db.c (check_thread_signals): Directly call
+       lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
+
 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * gregset.h (GDB_FPXREGSET_T): Remove.
index ba2a56ffc0d519b4fbb11a3388f4f3f9b36abd8d..2e3d85169bad391ac38783e483f5877755896e41 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-struct target_ops;
-
-extern void lin_thread_get_thread_signals (sigset_t *mask);
-#define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask)
-
 /* Use elf_gregset_t and elf_fpregset_t, rather than
    gregset_t and fpregset_t.  */
 
index 5aba089eaf3d20a703b0f7db9ed8607a0b3d375e..2858f08f545a20bada40bd3997f4c18409350732 100644 (file)
@@ -118,6 +118,9 @@ void check_for_thread_db (void);
 
 int thread_db_attach_lwp (ptid_t ptid);
 
+/* Return the set of signals used by the threads library.  */
+extern void lin_thread_get_thread_signals (sigset_t *mask);
+
 /* Find process PID's pending signal set from /proc/pid/status.  */
 void linux_proc_pending_signals (int pid, sigset_t *pending, sigset_t *blocked, sigset_t *ignored);
 
index 2b1fb70ebdad8dcc34a6f043486dc92784b47404..6cbf6c3d396da46c70d92abde2e80e93a281dcca 100644 (file)
@@ -928,13 +928,12 @@ disable_thread_event_reporting (struct thread_db_info *info)
 static void
 check_thread_signals (void)
 {
-#ifdef GET_THREAD_SIGNALS
   if (!thread_signals)
     {
       sigset_t mask;
       int i;
 
-      GET_THREAD_SIGNALS (&mask);
+      lin_thread_get_thread_signals (&mask);
       sigemptyset (&thread_stop_set);
       sigemptyset (&thread_print_set);
 
@@ -950,7 +949,6 @@ check_thread_signals (void)
            }
        }
     }
-#endif
 }
 
 /* Check whether thread_db is usable.  This function is called when
This page took 0.030252 seconds and 4 git commands to generate.