From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6779 invoked by alias); 29 Dec 2007 16:07:15 -0000 Received: (qmail 6721 invoked by uid 22791); 29 Dec 2007 16:07:14 -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 16:07:08 +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 JTE61490 (AUTH halo1); Sat, 29 Dec 2007 18:06:39 +0200 (IST) Date: Sat, 29 Dec 2007 16:08:00 -0000 Message-Id: From: Eli Zaretskii To: Pedro Alves CC: gdb-patches@sourceware.org, bodzio131@op.pl In-reply-to: <47765912.5060600@portugalmail.pt> (message from Pedro Alves on Sat, 29 Dec 2007 14:26:26 +0000) Subject: Re: PR/2386 [2/2]: MinGW attach to process without an exec file Reply-to: Eli Zaretskii References: <47744F9C.8040604@portugalmail.pt> <47765912.5060600@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/msg00459.txt.bz2 > Date: Sat, 29 Dec 2007 14:26:26 +0000 > From: Pedro Alves > CC: gdb-patches@sourceware.org, bodzio131@op.pl > > > 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? > > > > I wasn't talking about 9x, there we always have ToolHelp32 available. > I meant better ways to get at the full path to the image from a > pid *on NT* without using NtQueryObject (ObjectNameInfo), which I > don't think we can rely on to always work, or relying on > having psapi.dll available. How about ToolHelp32: is that available on NT? If so, perhaps using it instead of Nt* internal APIs is a better way?