From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31110 invoked by alias); 27 Sep 2010 17:43:22 -0000 Received: (qmail 31100 invoked by uid 22791); 27 Sep 2010 17:43:21 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 27 Sep 2010 17:43:15 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id o8RHh9Tu001123; Mon, 27 Sep 2010 19:43:09 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id o8RHh7YS014909; Mon, 27 Sep 2010 19:43:07 +0200 (CEST) Date: Mon, 27 Sep 2010 19:01:00 -0000 Message-Id: <201009271743.o8RHh7YS014909@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: pierre.muller@ics-cnrs.unistra.fr CC: gdb-patches@sourceware.org In-reply-to: <007f01cb5e60$971b6f20$c5524d60$@muller@ics-cnrs.unistra.fr> (pierre.muller@ics-cnrs.unistra.fr) Subject: Re: [RFA] mingw64: Skip over __main in main References: <007f01cb5e60$971b6f20$c5524d60$@muller@ics-cnrs.unistra.fr> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-09/txt/msg00454.txt.bz2 > From: "Pierre Muller" > 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 > > * 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.