Message ID | 20240507234233.371123-2-pedro@palves.net |
---|---|
State | New |
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4D4A63845148 for <patchwork@sourceware.org>; Tue, 7 May 2024 23:43:16 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by sourceware.org (Postfix) with ESMTPS id 7BFDB3858C50 for <gdb-patches@sourceware.org>; Tue, 7 May 2024 23:42:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7BFDB3858C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7BFDB3858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715125361; cv=none; b=e2I9w27MU9Nr+L5CqwTQ16s33QjrgYOhKPSHkaS0sLkXhwoYy6WKHg5LVfaeqDXy1uYNQKsb7fX2M/B4pH+YmX0iQiVozFqUCVSSiPieBM2tTlJWDrYDU9Pw3fomu2yeDJk4JSY5E82QrdveH5TGA6FQN3UhO36GmEDOHLPQXr0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715125361; c=relaxed/simple; bh=xptMg/qb4yOYVLqcp4yTAXGSQ8ZkB5uVsFkIn3FJ5l4=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=R9kQcMnZgD45S159HYpsse92oTdirXeB8Y8KDOK3Dy0aYx+Xa7/OsBFSxIrvH8ZkBQ6NTCBmm65l8/loYBRzESaCytSBaZFSU8z+GtM6DoPPzbq8jB+qSBT5vMRcDqyGDJ3FQ1yVq7craOYdY/D0ZCALvgcw/KF+GzPpu+tsxzA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-34db6a29a1eso2492352f8f.1 for <gdb-patches@sourceware.org>; Tue, 07 May 2024 16:42:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715125359; x=1715730159; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Nwud8M8VBLTtBe5saRE8t08iHm1+gH01LgLmBN0vLco=; b=Lf5ZfxIhfja8igEkvA8dvOi8OvS+aoMsYjhv8zCJUZF44bF+XlbX+JsB2Punc4sFOm V8bx+R2lmfDcwqQOyKh9YKNTCZMrNkr9dQ6CwOOq4za89VS3XUoLnKZ9UY3ZZ1Iu/p2U 2ew0C4FXFbDG2x+ampiQphgi28LNdpUxSAIaatCXxJOM00FZTjfWQ11Z87vIYY3L8ov1 3Lxqq530Kl5z0JKWw7KbBijHaFU99YkV4PC0ofzMDSWzTpV6gWUG+rVJOvZpU7EkKicV n53Pd1p8e2xv7J4gObjWoI5MGc080eUvZSB1uJwTrhpUClG5/AadW0SWWgBwR5Ybmqmu GIDw== X-Gm-Message-State: AOJu0YwK0rW94rYmnV6imtU2o4orUS8yZ/gKX72CdbTdEmWDguSb1Zqd Re3twfBGqRRfvQ2NwuDMX27PHw5LErOF+3X2kPIKukfZa/036mdZHtv4JYMI X-Google-Smtp-Source: AGHT+IFA6CtSFKgAWjXxKbDp1YnnCiafN96gol8v0lTwt78/erIEo+kFiw45NpUI6Eipd0y0wMwxKw== X-Received: by 2002:a05:6000:36a:b0:34d:a60d:551e with SMTP id ffacd0b85a97d-34fca241089mr713778f8f.18.1715125359104; Tue, 07 May 2024 16:42:39 -0700 (PDT) Received: from localhost ([2001:8a0:f908:4900:2dd1:1a0d:2b75:dc42]) by smtp.gmail.com with UTF8SMTPSA id bf9-20020a0560001cc900b00341b451a31asm13929071wrb.36.2024.05.07.16.42.38 for <gdb-patches@sourceware.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 May 2024 16:42:38 -0700 (PDT) From: Pedro Alves <pedro@palves.net> To: gdb-patches@sourceware.org Subject: [PATCH 01/34] Windows gdb: Dead code in windows_nat_target::do_initial_windows_stuff Date: Wed, 8 May 2024 00:42:00 +0100 Message-ID: <20240507234233.371123-2-pedro@palves.net> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240507234233.371123-1-pedro@palves.net> References: <20240507234233.371123-1-pedro@palves.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org |
Series |
Windows non-stop mode
|
|
Commit Message
Pedro Alves
May 7, 2024, 11:42 p.m. UTC
In windows_nat_target::do_initial_windows_stuff, there's no point in setting windows_process.current_event.dwProcessId. It's a nop, given the following memset. Change-Id: I2fe460341b598ad293ea60d5f702b10cefc30711 --- gdb/windows-nat.c | 1 - 1 file changed, 1 deletion(-)
Comments
>>>>> "Pedro" == Pedro Alves <pedro@palves.net> writes:
Pedro> In windows_nat_target::do_initial_windows_stuff, there's no point in
Pedro> setting windows_process.current_event.dwProcessId. It's a nop, given
Pedro> the following memset.
This one looks obvious to me.
Approved-By: Tom Tromey <tom@tromey.com>
Tom
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 70f955d9797..5578ae250a6 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1900,7 +1900,6 @@ windows_nat_target::do_initial_windows_stuff (DWORD pid, bool attaching) windows_process.cygwin_load_start = 0; windows_process.cygwin_load_end = 0; #endif - windows_process.current_event.dwProcessId = pid; memset (&windows_process.current_event, 0, sizeof (windows_process.current_event)); inf = current_inferior ();