From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12725 invoked by alias); 12 Oct 2012 06:50:36 -0000 Received: (qmail 12711 invoked by uid 22791); 12 Oct 2012 06:50:34 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_BR,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RCVD_IN_JMF_BR,RCVD_IN_NIX_SPAM,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 12 Oct 2012 06:50:29 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MBR00J00PM58300@a-mtaout22.012.net.il> for gdb@sourceware.org; Fri, 12 Oct 2012 08:50:01 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MBR00IAFPNDZ860@a-mtaout22.012.net.il> for gdb@sourceware.org; Fri, 12 Oct 2012 08:50:01 +0200 (IST) Date: Fri, 12 Oct 2012 06:50:00 -0000 From: Eli Zaretskii Subject: Calling __stdcall functions in the inferior To: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83a9vs89r9.fsf@gnu.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00061.txt.bz2 Is there a way to call __stdcall functions in the inferior from GDB, while debugging a C program? The case in point is GetLastError, but any other function from the Windows API has this problem. TIA