From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by sourceware.org (Postfix) with ESMTPS id 8428E3858C27 for ; Fri, 11 Mar 2022 18:57:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8428E3858C27 Received: by mail-io1-xd35.google.com with SMTP id l18so3895051ioj.2 for ; Fri, 11 Mar 2022 10:57:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=jXn3hWiihKbJ+ol3F/0zHFNJYybycXfRiwlXsycvGEA=; b=QCMLYFBMjeght0x2I7Ch3jesoBjayYstPTeVztTvMePi1U2HfiTIhxjBqp29JpdJg0 MnXDufWyD8ouvrnqeLT8/mFnOUmHy+duiP4rPZGEmXYrmabkzsulUfkg/30XM5iBnd8/ lPHohitR7HJR9JxzdL9YKDrGE+2kTMNxfqLItjYk3EjOcEWPgAGHwaRgE/1xNKgvtGXW PCVrRUY/i+LmHQXmt/I0byDmWrfMyriUfhYgGst65zZwVF7N9lDhdu7FmnVxkNm4SvGF T9vQSqJS7juQ80obTmVwu+okSwKl+Di9Rf7NDp1tOTVIZH8fpqLMdd1SJZdC7G94YXHv Mj4A== X-Gm-Message-State: AOAM531QGmP87fw9CXSw+k5mFPPYAI8d38A9SV0Mt2QsgujA0xQbjemE DtzKSPFlBhmdGNXj2dtJXIR8lvq6SVeCVQ== X-Google-Smtp-Source: ABdhPJxhPgHMOq5o7Kua0b6VvK7gzs5gOah1rvMv4tiwAYXbtDC8dj17lrDxtd3XHiGOefqHYZevjQ== X-Received: by 2002:a02:19c6:0:b0:30e:e6a5:67ad with SMTP id b189-20020a0219c6000000b0030ee6a567admr9683443jab.45.1647025026836; Fri, 11 Mar 2022 10:57:06 -0800 (PST) Received: from murgatroyd.Home (75-166-141-253.hlrn.qwest.net. [75.166.141.253]) by smtp.gmail.com with ESMTPSA id o6-20020a056e02188600b002c61b4fef99sm5129268ilu.1.2022.03.11.10.57.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 10:57:06 -0800 (PST) From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH v2 0/2] Make "set disable-randomization" work on Windows Date: Fri, 11 Mar 2022 11:57:03 -0700 Message-Id: <20220311185705.774197-1-tromey@adacore.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.3 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2022 18:57:09 -0000 Here's v2 of the series to make "set disable-randomization" work on Windows. v1 was here: https://sourceware.org/pipermail/gdb-patches/2021-October/182438.html I believe this version addresses all the review comments. In particular, it now dynamically checks for the needed APIs and should not need a newer version of Windows in order to build. There are some caveats: This passes regular testing against the AdaCore internal test suite. I've never gotten dejagnu to work on Windows, so I can't run the gdb test suite there. I can no longer actually test whether ASLR disabling works, as it is globally disabled on all the Windows machines I can access. I can't actually test building on an older version of Windows, so I don't know whether my attempts were actually successful. Tom