From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21814 invoked by alias); 16 Jun 2011 02:00:52 -0000 Received: (qmail 21734 invoked by uid 22791); 16 Jun 2011 02:00:51 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ww0-f41.google.com (HELO mail-ww0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Jun 2011 02:00:37 +0000 Received: by wwi18 with SMTP id 18so1157418wwi.0 for ; Wed, 15 Jun 2011 19:00:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.152.193 with SMTP id d43mr284145wek.53.1308189635589; Wed, 15 Jun 2011 19:00:35 -0700 (PDT) Received: by 10.216.236.1 with HTTP; Wed, 15 Jun 2011 19:00:35 -0700 (PDT) Date: Thu, 16 Jun 2011 02:00:00 -0000 Message-ID: Subject: Cross debugger From: Chris Sutcliffe To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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: 2011-06/txt/msg00112.txt.bz2 Hi All, I'm trying to debug a binary I made using the x86_64-w64-mingw32 cross compiler toolchain hosted on Cygwin. To that end I've attempted to create an x86_64-w64-mingw32 cross debugger by specifying '--target=x86_64-w64-mingw32' when configuring gdb 7.2. It worked in that a gdb.exe and gdbtui.exe were created (thought there was no gdbserver.exe created). I was off to a great start, in that this cross debugger was able to load the 64-bit binary, find the symbols and I was even able to set break points. I then tried to start the executable and that's where I hit the wall. I couldn't get gdb to run the executable: (gdb) start Temporary breakpoint 2 at 0x40f2e0: file /home/user/mingw64/mingw64-x86_64-runtime-1.0b_svn4075-1/src/mingw-w64-crt/crt/crt0_c.c, line 17. Starting program: /usr/src/emerge/experimental/Source/bin64/emergeLauncher.exe Don't know how to run. Try "help target". I'm running this on a 64-bit Win7 machine, so I would assume it should know how to run it. Did I miss something when creating this cross debugger? Thank you, Chris -- Chris Sutcliffe http://emergedesktop.org http://www.google.com/profiles/ir0nh34d