From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7397 invoked by alias); 11 Sep 2012 18:27:02 -0000 Received: (qmail 7340 invoked by uid 22791); 11 Sep 2012 18:26:59 -0000 X-SWARE-Spam-Status: No, hits=-7.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_PGP_INLINE,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_DB,TW_TD X-Spam-Check-By: sourceware.org Received: from mail-lpp01m010-f41.google.com (HELO mail-lpp01m010-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Sep 2012 18:26:46 +0000 Received: by lahd3 with SMTP id d3so593293lah.0 for ; Tue, 11 Sep 2012 11:26:45 -0700 (PDT) Received: by 10.152.132.168 with SMTP id ov8mr16691199lab.0.1347388005038; Tue, 11 Sep 2012 11:26:45 -0700 (PDT) Received: from [192.168.4.39] (broadband-95-84-200-156.nationalcablenetworks.ru. [95.84.200.156]) by mx.google.com with ESMTPS id ba4sm4565752lbb.14.2012.09.11.11.26.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2012 11:26:43 -0700 (PDT) Message-ID: <504F8260.5060900@gmail.com> Date: Tue, 11 Sep 2012 18:27:00 -0000 From: LRN User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/18.0 Thunderbird/18.0a1 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [Bug win32/14529] Make gdb capable of JIT-debugging on W32 References: <503E575D.1000608@gmail.com> <83y5kvp0za.fsf@gnu.org> <5040DA38.2070802@gmail.com> <504D4EE1.5010507@gmail.com> <504F811C.8000409@redhat.com> In-Reply-To: <504F811C.8000409@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 2012-09/txt/msg00169.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11.09.2012 22:21, Pedro Alves wrote: > On 09/10/2012 03:22 AM, LRN wrote: >> >> +# This feature requires 3 things: +# 1) windows.h with >> SetEvent() and CloseHandle() prototypes +# 2) inttypes.h with >> uintptr_t type defined +# 3) libkernel32 that exports SetEvent() >> and CloseHandle() +# Because functions in (1) use stdcall on W32, >> it's impossible to +# check them with AC_SEARCH_LIBS. +# Until a >> more elaborate check is written (compile_ifelse or something), +# >> users will have to enable this feature explicitly. +# However, >> this feature is enabled by default for platforms where it should >> +# normally work (MinGW and Cygwin). + >> +AC_ARG_ENABLE(w32-jitdbg, +AS_HELP_STRING([--enable-w32-jitdbg], >> [enable W32 JIT debugging]), + [case $enableval in + yes) >> w32_jitdbg=1 ;; + no) w32_jitdbg=0 ;; + *) + >> AC_MSG_ERROR([bad value $enableval for --enable-w32-jitdbg]) ;; + >> esac], + [w32_jitdbg=$default_w32_jitdbg]) >> +AC_DEFINE_UNQUOTED(W32_JITDBG, $w32_jitdbg, + [Define to 1 if >> W32 JIT debugging support is enabled, to 0 otherwise]) + > > When would you ever want to --enable-w32-jitdbg on anything other > than Windows, where it is enabled by default? > No idea. But i like things to have built-in overrides, in case you need to do something that the developer have not foresaw. Better than patching gdb in that case. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQEcBAEBAgAGBQJQT4JeAAoJEOs4Jb6SI2CwWSMH/iqniyrvJUf6AB71PEFNW1NV EBfz4wJvwny2wsLWqH6p/u2N4maYbUsoxFpEJhtcgslPz5ERJu0nJlebzlWYcLLd zAY67H0aGvVmYG6rZOKnMeV/AI4qzUwuUlMqoWSXN2OcQF7noUN2Fk4bKgjK4Dor w58Y+UL6EpmnG97xxyWgzCNrCHYwrvu1f8Lln6yIfHUzqL2hWfiVhtMsFWfB4f7H 9J2dszPKuSfew/2MgbthSu9p3Brt7gLQja2Iva+JtApIa+lQMbpTsaQWb2kRJI4m j4zVlOWb6axQKtAjif78mrcs1P/E9Df3oNa96YPF7TUmMG4naeUhr3FW9OG+Tls= =7wgJ -----END PGP SIGNATURE-----