From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6806 invoked by alias); 16 Jul 2004 08:01:23 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6785 invoked from network); 16 Jul 2004 08:01:22 -0000 Received: from unknown (HELO web90108.mail.scd.yahoo.com) (66.218.94.79) by sourceware.org with SMTP; 16 Jul 2004 08:01:22 -0000 Message-ID: <20040716080121.45054.qmail@web90108.mail.scd.yahoo.com> Received: from [210.118.108.254] by web90108.mail.scd.yahoo.com via HTTP; Fri, 16 Jul 2004 01:01:21 PDT Date: Fri, 16 Jul 2004 09:04:00 -0000 From: karthik bala guru Subject: RE: Debug a cross-compiled binary using GDB !! To: Dave Korn , gdb@sources.redhat.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-07/txt/msg00196.txt.bz2 hi, Can the simulator in GDB used for debugging arm-cross-compiled programs from being in a i386 machine ? Thanx & regards, karthik bala guru --- Dave Korn wrote: > > -----Original Message----- > > From: gdb-owner On Behalf Of karthik bala guru > > Sent: 14 July 2004 10:02 > > > Hello, > > I have builded gcc, glibc and gdb as > ^^^ > > arm-targetted and i386-linux-hosted. > ^^^^^^^^^^^^^ > > I see you found out the answer to your last two > posts for yourself! > > > In my humble opinion, gdb couldn't > > execute arm-targetted binary on i386 > > machine and probably I need a arm simulator or arm > > > board connected to PC. > > Yes, you could use either a remote arm development > board, or a software > simulator; gdb comes with a simulator built in. > > > I think "target sim" has something to do with it. > But > > I > > can't find any information about "target sim". Can > > > anyone help me or advice me what to do? > > Check the gdb texinfo files by doing "info gdb", > then search for "target > sim". Basically you just say "target sim" instead > of "target remote" or > "target exec", then use commands like load, run, > break, continue etc. as > normal. > > > Or Is it possible to cross debug a application > > from within a i386 machine. > > It certainly ought to work. Note however that the > simulator will have no > notion of i/o hardware or similar. > > cheers, > DaveK > -- > Can't think of a witty .sigline today.... > > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail