Calling __stdcall functions in the inferior

Eli Zaretskii eliz@gnu.org
Fri Oct 12 10:44:00 GMT 2012


> 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.



More information about the Gdb mailing list