This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PR/2386 [2/2]: MinGW attach to process without an exec file
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pedro Alves <pedro_alves at portugalmail dot pt>
- Cc: gdb-patches at sourceware dot org, bodzio131 at op dot pl
- Date: Sat, 29 Dec 2007 13:29:25 +0200
- Subject: Re: PR/2386 [2/2]: MinGW attach to process without an exec file
- References: <47744F9C.8040604@portugalmail.pt>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Fri, 28 Dec 2007 01:21:32 +0000
> From: Pedro Alves <pedro_alves@portugalmail.pt>
> CC: Bogdan Slusarczyk <bodzio131@op.pl>
>
> This patch fills the gap. The patch covers 9x/NT, and tries to
> work even if psapi.dll isn't present, as it isn't part of
> the OS. To do that, it has to resort to non documented
> NT funcionality...
Sorry, I don't understand: NT functionality is not relevant to Windows
9x, is it? So could you please say in more detail what undocumented
APIs you had in mind, and why are they necessary on modern Windows
systems?
> I'd be very happy if someone could
> point me at better ways to get at executable from a PID on
> Windows, or at a filename from a file handle.
Better ways than what? Perhaps I misunderstood the patch, but it
looks like you are using Process32First on Windows 9x, which is a
perfectly good way. What am I missing?