From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin-patches@cygwin.com
Subject: Re: [PATCH] Improve strace to log most Windows debug events
Date: Wed, 10 Jun 2015 15:44:00 -0000 [thread overview]
Message-ID: <20150610154400.GI31537@calimero.vinschen.de> (raw)
In-Reply-To: <20150610141827.GH31537@calimero.vinschen.de>
[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]
On Jun 10 16:18, Corinna Vinschen wrote:
> On Jun 10 16:11, Corinna Vinschen wrote:
> > Hi Jon,
> >
> > On Jun 10 13:05, Jon TURNEY wrote:
> > > Not sure if this is wanted, but on a couple of occasions recently I have been
> > > presented with strace output which contains an exception at an address in an
> > > unknown module (i.e. not in the cygwin DLL or the main executable), so here is a
> > > patch which adds some more information, including DLL load addresses, to help
> > > interpret such straces.
> >
> > That's a nice addition. Two points, though:
> >
> > - Do we *always* want that output or do we want a way to switch it on
> > and off? If the latter, we can simply add another _STRACE_foo option
> > for it.
> >
> > - The GetFileNameFromHandle function could be much simpler. Rather than
> > opening a mapping object for ev.u.LoadDll.hFile, just use the existing
> > mapping object from ev.u.LoadDll.lpBaseOfDll.
>
> ...with the process handle taken from get_child(ev.dwProcessId).
And since I'm generally fuzzy and unclear in my first reply:
Of course, ev.u.LoadDll.lpBaseOfDll is not the mapping *object*, but the
mapping *address*. So you neither have to call CreateFileMapping nor
MapViewOfFile. Just call GetMappedFileNameW (get_child (ev.dwProcessId),
ev.u.LoadDll.lpBaseOfDll, ...)
Sorry,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-06-10 15:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-10 12:05 Jon TURNEY
2015-06-10 14:11 ` Corinna Vinschen
2015-06-10 14:18 ` Corinna Vinschen
2015-06-10 15:44 ` Corinna Vinschen [this message]
2015-06-10 17:23 ` Corinna Vinschen
2015-06-10 18:47 ` Jon TURNEY
2015-06-10 18:44 ` Jon TURNEY
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=20150610154400.GI31537@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin-patches@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).