PR/2386 [2/2]: MinGW attach to process without an exec file
Sat Dec 29 16:08:00 GMT 2007
> Date: Sat, 29 Dec 2007 14:26:26 +0000
> From: Pedro Alves <email@example.com>
> CC: firstname.lastname@example.org, email@example.com
> > 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?
More information about the Gdb-patches