From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id D52CE3858286; Fri, 4 Nov 2022 15:11:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D52CE3858286 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667574696; bh=nQsgm892wU3E+HG+oWCuvOcv8Ev44OF1iXLw0L1AG0E=; h=From:To:Subject:Date:From; b=bt3DeXyQkIjbRIwa+WoJ4TSwaD4CO+jVLba2zNNvZYT/8n2zEKLQv6vc3I2BT4pSy 53MS/BRJhuLD/3pnlN4+4b7zRFmYp/6LQbxD8MyLii7wh2AEBYjl9SsoFQHYIpB9h4 2xKv1WVqeioNYVK2z+cuvMeNzjk1NFLIstmxql24= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jon TURNEY To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: Improve FAQ on early breakpoint for ASLR X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: 564c88b89833d711281f7b5dd2b74b453dc66ea9 X-Git-Newrev: 8c68a8a4898f2607bf940716dbce5654f10c481b Message-Id: <20221104151136.D52CE3858286@sourceware.org> Date: Fri, 4 Nov 2022 15:11:36 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D8c68a8a4898= f2607bf940716dbce5654f10c481b commit 8c68a8a4898f2607bf940716dbce5654f10c481b Author: Jon Turney Date: Tue Nov 1 16:52:57 2022 +0000 Cygwin: Improve FAQ on early breakpoint for ASLR =20 gdb supports the 'disable-randomization' setting on Windows since [1] (included in gdb 13). =20 https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommitdiff;h=3Dbcb= 9251f029da8dcf360a4f5acfa3b4211c87bb0;hp=3D8fea1a81c7d9279a6f91e49ebacfb61e= 0f8ce008 Diff: --- winsup/doc/faq-programming.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/winsup/doc/faq-programming.xml b/winsup/doc/faq-programming.xml index 7945b6b88..36d0a401f 100644 --- a/winsup/doc/faq-programming.xml +++ b/winsup/doc/faq-programming.xml @@ -844,6 +844,12 @@ Guide here: . Note that the DllMain entrypoints for linked DLLs will have been executed before this breakpoint is hit. + + + (It may be necessary to use the gdb command = set + disable-randomization on to turn off ASLR for the debugee to + prevent the base address getting randomized.) + =20