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>2016-09-11 15:41:32 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2016-10-20 15:12:20 +0300
commitafcde266182f4283a3a777570face6457b8d22b0 (patch)
tree4c220e9d6823ebc0bf12f355c98e62199263ec88 /winsup/doc/faq-programming.xml
parente3ccb686104103898ac9615a72f0189aa980c273 (diff)
Update FAQ answer about setting an early breakpoint
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Diffstat (limited to 'winsup/doc/faq-programming.xml')
-rw-r--r--winsup/doc/faq-programming.xml17
1 files changed, 13 insertions, 4 deletions
diff --git a/winsup/doc/faq-programming.xml b/winsup/doc/faq-programming.xml
index c64ab4a03..5234414b1 100644
--- a/winsup/doc/faq-programming.xml
+++ b/winsup/doc/faq-programming.xml
@@ -811,13 +811,22 @@ Guide here: <ulink url="https://cygwin.com/cygwin-ug-net/dll.html"/>.
</answer></qandaentry>
<qandaentry id="faq.programming.breakpoint">
-<question><para>How can I set a breakpoint at MainCRTStartup?</para></question>
+<question><para>How can I set a breakpoint at mainCRTStartup?</para></question>
<answer>
-<para><emphasis role='bold'>(Please note: This section has not yet been updated for the latest net release.)</emphasis>
+<para>
+ Set a breakpoint in <command>gdb</command> with <command>b *0x401000</command>
+ (for i686), or <command>b *0x100401000</command> (for x86_64).
+</para>
+
+<para>
+ This entrypoint address can be computed as the sum of the ImageBase and
+ AddressOfEntryPoint values given by <command>objdump -p</command>.
</para>
-<para>Set a breakpoint at *0x401000 in gdb and then run the program in
-question.
+
+<para>
+ Note that the DllMain entrypoints for linked DLLs will have been executed
+ before this breakpoint is hit.
</para>
</answer></qandaentry>