This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Debug a cross-compiled binary using GDB !!


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 <dk@artimi.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]