From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55321 invoked by alias); 3 Nov 2015 11:26:25 -0000 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 Received: (qmail 55309 invoked by uid 89); 3 Nov 2015 11:26:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 03 Nov 2015 11:26:22 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 64BE6461D6; Tue, 3 Nov 2015 11:26:21 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tA3BQJuS028998; Tue, 3 Nov 2015 06:26:20 -0500 Message-ID: <563899DB.10205@redhat.com> Date: Tue, 03 Nov 2015 11:26:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: fracting@gmail.com CC: gdb-patches@sourceware.org Subject: Re: [PATCH 00/11] C++/MinGW patches References: <1446492970-21432-1-git-send-email-palves@redhat.com> <5637C1FA.2060708@redhat.com> <5637CB96.4010106@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-11/txt/msg00064.txt.bz2 On 11/03/2015 11:14 AM, Qian Hong wrote: > On Tue, Nov 3, 2015 at 6:46 PM, Qian Hong wrote: >> actual result: >> gdb exit with error message: "This application has requested the >> Runtime to terminate it in an unusual way. Please contact the >> application's support team for more information." when debugging a >> simple hello world program. " > > > Update: > > I also test it on Wine, for your convenient, if you don't have Windows > nearby to test, maybe Wine is an option. I've actually tried Wine multiple times before over the years. I've managed to run gdbserver under Wine (in the past, haven't tried recently), and connect to it with a GNU/Linux-hosted cross debugger (--host=linux --target=mingw), but gdb running under Wine has never worked for me. The problem for me is that input does not work. > > I tested with Wine Staging 1.7.53, which provides prebuilt binaries to > mainstream Linux distributions [1]. Using Wine Staging 1.7.51 I get: $ ./gdb.exe fixme:winediag:start_process Wine Staging 1.7.51 is a testing version containing experimental patches. fixme:winediag:start_process Please report bugs at http://bugs.wine-staging.com (instead of winehq.org). Z:\home\pedro\gdb\mygit\cxx-convertion\build-c-mingw\gdb\gdb.exe: warning: cannot automatically find executable file or library to read symbols. Use "file" or "dll" command to load executable/libraries directly. GNU gdb (GDB) 7.10.50.20151029-cvs Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-w64-mingw32". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046} p 1 ^CQuit (gdb) bt ^CQuit (gdb Those brank lines are me pressing enter. Seems like the newline/input never reaches gdb. ctrl-c does work, as can be seen by the "Quit"s. This is on Fedora 20. Thanks, Pedro Alves