This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Calling __stdcall functions in the inferior
> 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.