From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30298 invoked by alias); 6 Jul 2013 07:41:49 -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 30286 invoked by uid 89); 6 Jul 2013 07:41:49 -0000 X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_NIX_SPAM,SPF_SOFTFAIL autolearn=no version=3.3.1 Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 06 Jul 2013 07:41:48 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MPI0040080U2S00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Sat, 06 Jul 2013 10:41:26 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MPI003G0812YJ30@a-mtaout20.012.net.il>; Sat, 06 Jul 2013 10:41:26 +0300 (IDT) Date: Sat, 06 Jul 2013 07:41:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Fix up msymbol type of dll trampoline to mst_solib_trampoline In-reply-to: <51D7C543.7030905@codesourcery.com> To: Yao Qi Cc: asmwarrior@gmail.com, tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83sizsxhi3.fsf@gnu.org> 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> <51D6BA7A.7040500@codesourcery.com> <8361wpyta1.fsf@gnu.org> <51D7C543.7030905@codesourcery.com> X-SW-Source: 2013-07/txt/msg00218.txt.bz2 > Date: Sat, 6 Jul 2013 15:20:35 +0800 > From: Yao Qi > CC: , , > > On 07/05/2013 10:29 PM, Eli Zaretskii wrote: > >> Date: Fri, 5 Jul 2013 20:22:18 +0800 > >> From: Yao Qi > >> CC: Tom Tromey , > >> > >>> 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. > > > > What exactly do you see as a bug here? > > > > We can't set breakpoint on 'Add_S' in current GDB, > > (gdb) b Add_S > Function "Add_S" not defined. > Make breakpoint pending on future shared library load? (y or [n]) > > IMO, It is expected that 'b Add_S' can set a breakpoint on Add_S. Then GDB should look for Add_S@n symbols, where n is the number of bytes in the function's arguments.