Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2022-11-01 19:52:57 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2022-11-04 16:25:56 +0300
commit8c68a8a4898f2607bf940716dbce5654f10c481b (patch)
tree14910cd38acb481b0d50be9dd36fca85ccdf61c5 /winsup/doc
parent564c88b89833d711281f7b5dd2b74b453dc66ea9 (diff)
Cygwin: Improve FAQ on early breakpoint for ASLR
gdb supports the 'disable-randomization' setting on Windows since [1] (included in gdb 13). https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=bcb9251f029da8dcf360a4f5acfa3b4211c87bb0;hp=8fea1a81c7d9279a6f91e49ebacfb61e0f8ce008
Diffstat (limited to 'winsup/doc')
-rw-r--r--winsup/doc/faq-programming.xml6
1 files changed, 6 insertions, 0 deletions
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.
</para>
+
+<para>
+ (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.)
+</para>
</answer></qandaentry>
<qandaentry id="faq.programming.debug">