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
> Date: Sat, 29 Dec 2007 14:26:26 +0000
> From: Pedro Alves <pedro_alves@portugalmail.pt>
> 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?