From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by sourceware.org (Postfix) with ESMTPS id 45D473851891 for ; Mon, 12 Dec 2022 17:05:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 45D473851891 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-io1-xd2f.google.com with SMTP id b192so248936iof.8 for ; Mon, 12 Dec 2022 09:05:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=noDGrfBRBlmgubQqLYZdqroP2/P44QzlmsvrhEY0ZXw=; b=X2Q9QtQVZ9eO4EHbBZa2eyuN+m5YZOGDqmvuIbLf6iEEG6bpSxSoLF89KV0RYy5aac qvDXTBJ28wSQEoKD8DpafwNXoD8COiVozusbtaMU1jZOYvBj0x4VYTExiIZAsdkkoHdi JepQT7fKQW/4vH2fAWPvzmIEpDKCt2weFSyQB4n4qDTLuUVZEE39/0DYw0XgkZdqqCTT n0QhcTF/ldN5C76JV5ATt7dvBrUYbr+Q8Sa8A8wfzt2/Dgf0XIfZO+cmimvjQgBXf9J1 7Rg2ou/2J+YBd+C/bi2D9PeKy43yIiCUsRhXVa1ajPZCcsfHFtMnw8fXbMPU1dhAeWuA zUlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=noDGrfBRBlmgubQqLYZdqroP2/P44QzlmsvrhEY0ZXw=; b=jK6nHMSGzIwxpGYvq7F8llkKhBgYZF1MVtAUlKXo4ZCXqaR2Pb1LaKxmVHX2+Ss6pL lPVKQWQN1Yf5SMofg+G1VXldszhxszVmwSfPfjs1wp5aTBA50MQGjRPRk2vmo/cyUpfs /UjXDPrYYG5edn0hXTVWI4lfGQ1iixHUWCLopbhg2AMX1S2EoJsX3hOEvm5wbXtj3yMC F3r1xj+ywnZ2hotb/6ATseX+UYzalg+UGkpBPZSdp7kbHdO7RlIJQa5rd0c9OR3bBc5o AYz8eTS4isqmhjCzm4Qn6ISWzq9fKG1c9NScO3++qfGGhEW6dDeWkVJF+JmLfEXgVLwF 5/Dg== X-Gm-Message-State: ANoB5plNzWqtvfPCP2KBa/AcXWWhl5RF8/GG0EG3ZTIKbWBa0xrXmQcr Nc1s0kA8DN/H4sLWfYaOV24yeA== X-Google-Smtp-Source: AA0mqf571RfHRfDQQLG+J4M3p68OizWAi3vIEn5j1urLlG4HCAd1L2b9CFeYVE+MQlxVecOqHioO/Q== X-Received: by 2002:a5d:861a:0:b0:6df:9d01:3376 with SMTP id f26-20020a5d861a000000b006df9d013376mr9019631iol.21.1670864722499; Mon, 12 Dec 2022 09:05:22 -0800 (PST) Received: from murgatroyd (97-122-76-186.hlrn.qwest.net. [97.122.76.186]) by smtp.gmail.com with ESMTPSA id s2-20020a02cf22000000b00356738a2aa2sm93295jar.55.2022.12.12.09.05.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 09:05:22 -0800 (PST) From: Tom Tromey To: Tom Tromey Cc: Hannes Domani , "gdb-patches@sourceware.org" Subject: Re: [PATCH 3/3] Fix control-c handling on Windows References: <20221205185651.2704492-1-tromey@adacore.com> <20221205185651.2704492-4-tromey@adacore.com> <102195784.4047621.1670433222150@mail.yahoo.com> <87ilikin72.fsf@tromey.com> <1095715284.5500968.1670602756752@mail.yahoo.com> <87edt8ijd7.fsf@tromey.com> <127884065.5583846.1670609613440@mail.yahoo.com> <87cz8ohbwf.fsf@tromey.com> X-Attribution: Tom Date: Mon, 12 Dec 2022 10:05:21 -0700 In-Reply-To: <87cz8ohbwf.fsf@tromey.com> (Tom Tromey's message of "Mon, 12 Dec 2022 08:36:32 -0700") Message-ID: <878rjch7se.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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 List-Id: Tom> I used RDP and started powershell, then ran gdb there. I did 6 tests: a Tom> C-c and a C-break test of "run", "run" with "set new-console 1", and Tom> "attach" -- and in all these cases, it worked. I found out how to reproduce the crash you saw. In my tests, I was doing everything in a single gdb instance. However, if I start a new gdb, then "set new-console 1", and then "run", I can make it crash. Changing sigint_ours to a gdb::optional fixes this problem. I couldn't reproduce your problem #3 ... my python-less build seems to work fine in other situations. I'll send v2 of this series shortly. Tom