• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine 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

Revision3f64f7b1c773929215cd1284c891f371e4fc625f (tree)
Zeit2006-07-25 03:57:32
AutorDaniel Jacobowitz <drow@fals...>
CommiterDaniel Jacobowitz

Log Message

* linux-thread-db.c (thread_db_wait): Remove libthread_db
after exec events.

Ändern Zusammenfassung

Diff

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
1+2006-07-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2+ Daniel Jacobowitz <dan@codesourcery.com>
3+
4+ * linux-thread-db.c (thread_db_wait): Remove libthread_db
5+ after exec events.
6+
17 2006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
28
39 * NEWS: Mention Windows cross debugging support.
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -875,6 +875,15 @@ thread_db_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
875875 if (ourstatus->kind == TARGET_WAITKIND_EXITED)
876876 return pid_to_ptid (-1);
877877
878+ if (ourstatus->kind == TARGET_WAITKIND_EXECD)
879+ {
880+ remove_thread_event_breakpoints ();
881+ unpush_target (&thread_db_ops);
882+ using_thread_db = 0;
883+
884+ return pid_to_ptid (GET_PID (ptid));
885+ }
886+
878887 if (ourstatus->kind == TARGET_WAITKIND_STOPPED
879888 && ourstatus->value.sig == TARGET_SIGNAL_TRAP)
880889 /* Check for a thread event. */