* mi/mi-interp.c (mi_on_resume): Account for whole process

resumes.
This commit is contained in:
Pedro Alves 2009-05-21 15:21:28 +00:00
parent c244a140a5
commit 9944e9c2ac
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-05-21 Pedro Alves <pedro@codesourcery.com>
* mi/mi-interp.c (mi_on_resume): Account for whole process
resumes.
2009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
* m2-exp.y (MAX_FUNC): Fix trailing UNOP_MAX.

View File

@ -419,7 +419,7 @@ mi_on_resume (ptid_t ptid)
{
struct thread_info *tp = NULL;
if (ptid_equal (ptid, minus_one_ptid))
if (ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid))
tp = inferior_thread ();
else
tp = find_thread_pid (ptid);