[newlib-cygwin] Cygwin: Improve FAQ on early breakpoint for ASLR

Jon TURNEY jturney@sourceware.org
Fri Nov 4 15:11:36 GMT 2022


commit 8c68a8a4898f2607bf940716dbce5654f10c481b
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Tue Nov 1 16:52:57 2022 +0000

    Cygwin: Improve FAQ on early breakpoint for ASLR
    gdb supports the 'disable-randomization' setting on Windows since [1]
    (included in gdb 13).

 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: <ulink url="https://cygwin.com/cygwin-ug-net/dll.html"/>.
   Note that the DllMain entrypoints for linked DLLs will have been executed
   before this breakpoint is hit.
+  (It may be necessary to use the <command>gdb</command> command <command>set
+  disable-randomization on</command> to turn off ASLR for the debugee to
+  prevent the base address getting randomized.)
 <qandaentry id="faq.programming.debug">

More information about the Cygwin-cvs mailing list