• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修订版1db0791014f8cc5e0a29c12cf282e2c841fef4b7 (tree)
时间2013-12-16 23:06:49
作者Pedro Alves <palves@redh...>
CommiterPedro Alves

Log Message

PR 16329: remote debugging broken on Solaris.

Like on GNU/Linux (linux-thread-db.c), the Solaris solaris-threads
target (handles libthread_db.so) shouldn't be pushed when remote
debugging.

This uses the same predicate used by linux-thread-db.c.

gdb/
2013-12-16 Pedro Alves <palves@redhat.com>

PR 16329
* sol-thread.c (check_for_thread_db): If the target can't run or
isn't a core, return without pushing.

更改概述

差异

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
1+2013-12-16 Pedro Alves <palves@redhat.com>
2+
3+ PR 16329
4+ * sol-thread.c (check_for_thread_db): If the target can't run or
5+ isn't a core, return without pushing.
6+
17 2013-12-08 Joel Brobecker <brobecker@adacore.com>
28
39 * version.in: Set GDB version number to 7.6.2.20131208-cvs.
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -588,6 +588,10 @@ check_for_thread_db (void)
588588 td_err_e err;
589589 ptid_t ptid;
590590
591+ /* Don't attempt to use thread_db for remote targets. */
592+ if (!(target_can_run (&current_target) || core_bfd))
593+ return;
594+
591595 /* Do nothing if we couldn't load libthread_db.so.1. */
592596 if (p_td_ta_new == NULL)
593597 return;