From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by sourceware.org (Postfix) with ESMTPS id 8169D3858C2C for ; Mon, 12 Feb 2024 20:01:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8169D3858C2C 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 8169D3858C2C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707768121; cv=none; b=FqG5u0RUKjGf3/4EenRowLCaw1ooQ4xHL2RBnoAEmQm110GPcl6FcBiBhU3Jj+VY1hTC3f+34z/ui0MVbV14hW0zDFNDH2z4gSO7ztEBc+/ViqplrLrbugIz14G1IKkzUjFZQ6gfdjITx/77ANZ24yagZgnE2/vJlwz89/JXnGM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707768121; c=relaxed/simple; bh=ExTXX7N9qMhRx88ye2mS13xVl93BymVRtc4GhmdsU7M=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=t51P1zqehRCJIqv9dfEY8rutnCFVLQ+bg18SWgSsUdW8OXCMs4Q7+CmcwkshApEwrZRyE+qzstTEruqUf95MPtlcBVJBnfVZS5OQtOpB+kYLL6prHZEJJgLht7KQ/5Fm4aoEWdYdHDxxKQhbYRLjB2XoNRA3+G04fuCU8KBcfX4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-410cb9315f6so10864555e9.2 for ; Mon, 12 Feb 2024 12:01:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707768118; x=1708372918; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XDQ7z0ElPstNqXVYbyODHfw8NnplRCeauL/YUfhQq9U=; b=lXNNrsvMNy9xd6YufCHabwwHqsdsNc/ntLAvpZ4fl8PIsGrIgJUmNmqas9/J0ac3al YeVcGiKTIugp8tTP/FMUpy8pUqzh0I4rnwO1rpWHZ4KVwbL8b1LUs8m6Phq2vyzJpBlH EBSHIDx1FVbKsnL24M1gKtnNRHYLcxCt4Xbm13j9XOSyXLb+ccKQCVdfiJ153KwjM0lu hmdyGKupsbU8Md+DWPEZ3oAmYVC38b6uq5GUsBrazcQO6Y1Tw/IewiztoamL+nYryBP+ D1C5vYt/M41ufLUpHimR0kY61MBn56iPbsvOq/MV3a/VjE+/poXtLsghGc6ogiTiJayH yVPQ== X-Gm-Message-State: AOJu0YxLPZ7gUQWYJMR6C128IFTaMmwyWTTXwVNJaQgSN1AZ8Yqw12T3 pnk/MF2XguhSZFY9u/qIGdOsazegmrENjpoMPKBPYlinzIcUGCvytksgpjqXPoQ= X-Google-Smtp-Source: AGHT+IEBvZvDlStrAzNdxSS21TPIvAZvG7v+Vi6vCAXsw5axXND2Gm2aqGsgHOKmgkh8Y06vepjO2w== X-Received: by 2002:a05:600c:4f85:b0:410:78fb:c00c with SMTP id n5-20020a05600c4f8500b0041078fbc00cmr6511715wmq.4.1707768117941; Mon, 12 Feb 2024 12:01:57 -0800 (PST) Received: from localhost ([2001:8a0:f923:4f00:6d21:130f:e0dc:ea4b]) by smtp.gmail.com with UTF8SMTPSA id jg8-20020a05600ca00800b00410820995dcsm9027963wmb.23.2024.02.12.12.01.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Feb 2024 12:01:57 -0800 (PST) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/3] "run" and "attach" failure handling problems Date: Mon, 12 Feb 2024 20:01:50 +0000 Message-ID: <20240212200153.882582-1-pedro@palves.net> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: While looking at gdb.base/attach.exp testsuite results on native Cygwin, I noticed that "attach PID" or "run" would hang if the previous command was an "attach" or "run" command that failed. After fixing that on the Windows backend, I wrote a testcase for the "run" scenario, and that revealed that GDBserver (all ports) also did not handle that well. This series thus fixes GDBserver, adds said testcase, and then finally fixes native Cygwin. Pedro Alves (3): Fix "run" failure with GDBserver Improve vRun error reporting Windows: Fix run/attach hang after bad run/attach gdb/remote.c | 23 +++++++- gdb/testsuite/gdb.base/run-fail-twice.exp | 67 +++++++++++++++++++++++ gdb/windows-nat.c | 15 +++-- gdbserver/server.cc | 10 +++- 4 files changed, 106 insertions(+), 9 deletions(-) create mode 100644 gdb/testsuite/gdb.base/run-fail-twice.exp base-commit: cda750802aef3beea582f0f3cad824be491abb4d -- 2.43.0