This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] mingw64: Skip over __main in main
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: pierre dot muller at ics-cnrs dot unistra dot fr
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 27 Sep 2010 19:43:07 +0200 (CEST)
- Subject: Re: [RFA] mingw64: Skip over __main in main
- References: <007f01cb5e60$971b6f20$c5524d60$@muller@ics-cnrs.unistra.fr>
> From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> Date: Mon, 27 Sep 2010 18:25:25 +0200
>
> This patch enables recognition of call to __main
> as part of the prologue of main for mingw64 binaries.
>
> It's almost a copy of the i386-tdep.c counterpart
> (expect that I removed the 32-bit specific overflow code).
>
> It makes things more consistent with the way 32-bit binaries
> are treated and allows to run testsuite on Cygwin
> (after a few tricks ...).
>
> Is this patch OK?
Fine with me.
> 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
>
> * src/gdb/amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
> (amd64_windows_init_abi): Register amd64_skip_main_prologue
> as gdbarch skip_main_prologue method.