public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
* [PATCH] Cygwin: Improve FAQ on early breakpoint for ASLR
@ 2022-11-03 17:04 Jon Turney
  2022-11-03 18:22 ` Jeremy Drake
  0 siblings, 1 reply; 15+ messages in thread
From: Jon Turney @ 2022-11-03 17:04 UTC (permalink / raw)
  To: cygwin-patches; +Cc: Jon Turney

gdb supports 'set disable-randomization off' on Windows since [1]
(included in gdb 13).

https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=bcb9251f029da8dcf360a4f5acfa3b4211c87bb0;hp=8fea1a81c7d9279a6f91e49ebacfb61e0f8ce008
---
 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..41cd5e423 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 off</command> to turn off ASLR for the debugee to
+  prevent the base address getting randomized.)
+</para>
 </answer></qandaentry>
 
 <qandaentry id="faq.programming.debug">
-- 
2.38.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-03-28  8:26 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-03 17:04 [PATCH] Cygwin: Improve FAQ on early breakpoint for ASLR Jon Turney
2022-11-03 18:22 ` Jeremy Drake
2022-11-04 10:34   ` Corinna Vinschen
2022-11-04 12:53     ` Jon Turney
2022-11-04 13:16       ` Corinna Vinschen
2022-11-04 15:29       ` Pedro Alves
2022-11-12 14:30         ` Jon Turney
2022-11-15 10:46           ` Corinna Vinschen
2022-11-28 13:00             ` Jon Turney
2022-11-28 14:41               ` Corinna Vinschen
2022-12-05 15:23                 ` Johannes Schindelin
2022-12-11 13:54                   ` Jon Turney
2022-12-11 14:45                     ` Johannes Schindelin
2022-12-14 17:37                       ` Jon Turney
2023-03-28  8:26                         ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).