From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7106 invoked by alias); 29 Dec 2007 11:30:01 -0000 Received: (qmail 7096 invoked by uid 22791); 29 Dec 2007 11:30:00 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (213.8.233.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 29 Dec 2007 11:29:54 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-229-120-75.inter.net.il [84.229.120.75]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id JTD83175 (AUTH halo1); Sat, 29 Dec 2007 13:29:02 +0200 (IST) Date: Sat, 29 Dec 2007 11:33:00 -0000 Message-Id: From: Eli Zaretskii To: Pedro Alves CC: gdb-patches@sourceware.org, bodzio131@op.pl In-reply-to: <47744F9C.8040604@portugalmail.pt> (message from Pedro Alves on Fri, 28 Dec 2007 01:21:32 +0000) Subject: Re: PR/2386 [2/2]: MinGW attach to process without an exec file Reply-to: Eli Zaretskii References: <47744F9C.8040604@portugalmail.pt> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00448.txt.bz2 > Date: Fri, 28 Dec 2007 01:21:32 +0000 > From: Pedro Alves > CC: Bogdan Slusarczyk > > 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?