* linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
Use LWP IDs.
This commit is contained in:
parent
632d447c67
commit
d35870480f
|
@ -1,3 +1,8 @@
|
||||||
|
2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
|
||||||
|
Use LWP IDs.
|
||||||
|
|
||||||
2005-02-28 Daniel Jacobowitz <dan@codesourcery.com>
|
2005-02-28 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* dwarf2loc.c (loclist_read_variable): Set optimized_out
|
* dwarf2loc.c (loclist_read_variable): Set optimized_out
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* GNU/Linux native-dependent code common to multiple platforms.
|
/* GNU/Linux native-dependent code common to multiple platforms.
|
||||||
|
|
||||||
Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
Copyright 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
|
|
||||||
|
@ -293,9 +293,12 @@ linux_supports_tracevforkdone (int pid)
|
||||||
void
|
void
|
||||||
linux_enable_event_reporting (ptid_t ptid)
|
linux_enable_event_reporting (ptid_t ptid)
|
||||||
{
|
{
|
||||||
int pid = ptid_get_pid (ptid);
|
int pid = ptid_get_lwp (ptid);
|
||||||
int options;
|
int options;
|
||||||
|
|
||||||
|
if (pid == 0)
|
||||||
|
pid = ptid_get_pid (ptid);
|
||||||
|
|
||||||
if (! linux_supports_tracefork (pid))
|
if (! linux_supports_tracefork (pid))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -340,7 +343,9 @@ child_follow_fork (int follow_child)
|
||||||
|
|
||||||
get_last_target_status (&last_ptid, &last_status);
|
get_last_target_status (&last_ptid, &last_status);
|
||||||
has_vforked = (last_status.kind == TARGET_WAITKIND_VFORKED);
|
has_vforked = (last_status.kind == TARGET_WAITKIND_VFORKED);
|
||||||
parent_pid = ptid_get_pid (last_ptid);
|
parent_pid = ptid_get_lwp (last_ptid);
|
||||||
|
if (parent_pid == 0)
|
||||||
|
parent_pid = ptid_get_pid (last_ptid);
|
||||||
child_pid = last_status.value.related_pid;
|
child_pid = last_status.value.related_pid;
|
||||||
|
|
||||||
if (! follow_child)
|
if (! follow_child)
|
||||||
|
|
Loading…
Reference in New Issue