From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28164 invoked by alias); 16 Jun 2011 11:54:07 -0000 Received: (qmail 28154 invoked by uid 22791); 16 Jun 2011 11:54:07 -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-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Jun 2011 11:53:52 +0000 Received: by wyf19 with SMTP id 19so1202754wyf.0 for ; Thu, 16 Jun 2011 04:53:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.202.147 with SMTP id d19mr832344weo.23.1308225230899; Thu, 16 Jun 2011 04:53:50 -0700 (PDT) Received: by 10.216.236.1 with HTTP; Thu, 16 Jun 2011 04:53:50 -0700 (PDT) In-Reply-To: <20110616025342.GS5944@adacore.com> References: <20110616025342.GS5944@adacore.com> Date: Thu, 16 Jun 2011 11:54:00 -0000 Message-ID: Subject: Re: Cross debugger From: Chris Sutcliffe To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00115.txt.bz2 On 15 June 2011 22:53, Joel Brobecker wrote: > What I don't understand is why you created a cross compiler/debugger, > while it seems to me you could have just created a native x64 MinGW > toolset. =A0That's what we do at AdaCore: We use cygwin as the build > environment, but then build a MinGW toolset by configuring with > --build=3Dx86_64-pc-mingw32. As far as I know, the gdbserver will > be automatically built. Good point, for some reason I was thinking that since gdb would be running withing the Cygwin environment I would need the '--host=3Di686-pc-cygwin'. If I build a native x64 MinGW gdb will it understand Cygwin paths correctly? >> (gdb) start > [...] >> Don't know how to run. =A0Try "help target". > > And that's also expected, since you have a cross-debugger. So the > debugger is expecting you to connect to the target where the process > is running. Ah, I didn't realize a cross-debugger could only be used to connect to running process. > But the nice thing is that, if I understand your situation correctly, > as soon as you build a native debugger, you will not have to worry > about that anymore. Indeed, I hope so. Thank you, Chris --=20 Chris Sutcliffe http://emergedesktop.org http://www.google.com/profiles/ir0nh34d