From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10321 invoked by alias); 5 Jul 2013 12:22:43 -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 10296 invoked by uid 89); 5 Jul 2013 12:22:39 -0000 X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_SM autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 05 Jul 2013 12:22:37 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Uv523-00069S-Gj from Yao_Qi@mentor.com ; Fri, 05 Jul 2013 05:22:35 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 5 Jul 2013 05:22:35 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Fri, 5 Jul 2013 05:22:34 -0700 Message-ID: <51D6BA7A.7040500@codesourcery.com> Date: Fri, 05 Jul 2013 12:22:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: asmwarrior CC: Tom Tromey , Subject: Re: [PATCH] Fix up msymbol type of dll trampoline to mst_solib_trampoline References: <1372043502-4618-1-git-send-email-yao@codesourcery.com> <874ncjmgkl.fsf@fleche.redhat.com> <51CD0054.9040401@codesourcery.com> <87ehbmkzqr.fsf@fleche.redhat.com> <51D36FB3.4070006@codesourcery.com> <51D688D3.8000104@gmail.com> In-Reply-To: <51D688D3.8000104@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2013-07/txt/msg00192.txt.bz2 On 07/05/2013 04:50 PM, asmwarrior wrote: > This is my testing on the patch, it works fine. > It looks like the issue only happens when __declspec(dllimport) is NOT used when building the exe file. > Thanks for the clarification of this issue and playing with this patch. > > BTW: > 1, It looks like I can't set a breakpoint on a function with is __stdcall calling convention > When I type: > (gdb) b Add_S > Function "Add_S" not defined. > In fact, the symbol name about "Add_S" function is "Add_S@8", (This can be seen from the disassembler) > I don't know how to set such breakpoint by function names. I am not an expert on windows, but it is a bug to me. People, who know more about windows/mingw, can give comments here. > > 2, I see there are symbol names for Add_C: one is named "Add_C" and the other is "_imp__Add_C", > so it has "_imp__" before "Add_C". (One underline prefix and double underlines postfix). Yes, I can see "_imp__Add_C" too in the output of 'maintenance print msymbols'. -- Yao (齐尧)