Re: Calling __stdcall functions in the inferior

Eli Zaretskii
2012-10-12T10:44:51Z

> cc: eliz@gnu.org, gdb@sourceware.org
> Date: Fri, 12 Oct 2012 03:20:22 -0700
> From: John Gilmore <gnu@toad.com>
>
> If you just need this capability to debug a particular problem, add a
> dummy debugging function to the source code of your buggy program,
> which has the normal calling sequence, and which just calls
> GetLastError and returns its result. Then call *that* function from
> GDB.

Yes, Emacs on Windows already does that. I just thought there's a
better way, but I guess not.

Thanks.