* linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
a more inner block. Remove its unused declaration initializer.
+2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
+ a more inner block. Remove its unused declaration initializer.
+
2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
* NEWS: Mention support for the new ptrace interface and hardware
{
int pid = GET_LWP (lp->ptid);
struct target_waitstatus *ourstatus = &lp->waitstatus;
- struct lwp_info *new_lp = NULL;
int event = status >> 16;
if (event == PTRACE_EVENT_FORK || event == PTRACE_EVENT_VFORK
ourstatus->kind = TARGET_WAITKIND_VFORKED;
else
{
+ struct lwp_info *new_lp;
+
ourstatus->kind = TARGET_WAITKIND_IGNORE;
+
new_lp = add_lwp (BUILD_LWP (new_pid, GET_PID (lp->ptid)));
new_lp->cloned = 1;
new_lp->stopped = 1;