PR/2386 [2/2]: MinGW attach to process without an exec file

Pedro Alves pedro_alves@portugalmail.pt
Sat Dec 29 14:33:00 GMT 2007


Eli Zaretskii wrote:
> 
> 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?
> 

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.

-- 
Pedro Alves



More information about the Gdb-patches mailing list