From: Mark Geisert <mark@maxrnd.com>
To: cygwin@cygwin.com
Subject: Re: How to break cygwin inside dcrt0.cc ?
Date: Fri, 05 May 2017 01:17:00 -0000 [thread overview]
Message-ID: <590BD2A3.8000706@maxrnd.com> (raw)
In-Reply-To: <c90cbfa5-3411-f7bd-587c-7ef70e1e2cbf@gmail.com>
Marco Atzeri wrote:
> I am likely missing something obvious, but I do not succeed to put
> a breakpoint inside child_info_fork::alloc_stack
>
> break child_info_fork::alloc_stack
> Function "child_info_fork::alloc_stack" not defined.
>
> break /usr/src/debug/cygwin-2.8.0-1/winsup/cygwin/dcrt0.cc:408
> No source file named /usr/src/debug/cygwin-2.8.0-1/winsup/cygwin/dcrt0.cc
>
> Is dcrt0.cc built differently than the rest of cygwin dll ?
WFM. This is with self-built cygwin1.dll. Only obvious difference is my build
directory is set up like FAQ says, building in /oss/build and with /oss/src
symlinked to where Cygwin source tree resides. Here's what that looks like:
~/src/forker gdb forker
GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
[...]
Reading symbols from forker...done.
(gdb) b child_info_fork::alloc_stack
Function "child_info_fork::alloc_stack" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (child_info_fork::alloc_stack) pending.
(gdb) b main
Breakpoint 2 at 0x100401253: file forker.c, line 158.
(gdb) r 1
Starting program: /home/Mark/src/forker/forker 1
[New Thread 12628.0x494]
[New Thread 12628.0x327c]
Breakpoint 2, main (argc=2, argv=0xffffcc10) at forker.c:158
158 if (argc != 2) {
(gdb) i br
Num Type Disp Enb Address What
1 breakpoint keep y 0x0000000180046350 in
child_info_fork::alloc_stack() at /oss/src/winsup/cygwin/dcrt0.cc:407
2 breakpoint keep y 0x0000000100401253 in main at forker.c:158
breakpoint already hit 1 time
(gdb)
..mark
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next prev parent reply other threads:[~2017-05-05 1:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-04 12:08 Marco Atzeri
2017-05-05 1:17 ` Mark Geisert [this message]
2017-05-05 2:01 ` Mark Geisert
2017-05-05 7:44 ` Marco Atzeri
2017-05-05 8:47 ` Mark Geisert
2017-05-05 10:06 ` Jon Turney
2017-05-05 13:25 ` Marco Atzeri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=590BD2A3.8000706@maxrnd.com \
--to=mark@maxrnd.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).