This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: powerpc-linux assemble, gdb "don't know how to run"


<quchen@infinito.it> writes:

> I have another question here, also with gdb:
> I configured both binutils2.14 and gdb6.0 as ./configure 
> --target=powerpc-linux --program-prefix=ppc-
> 
> I took a sample program hello-ppc.s from 
> www-900.ibm.com/developerWorks/cn/linux/hardware/ppc/assembly/hello-ppc.s
> 
> First, assemble with $ppc-as -o hello-ppc.o hello-ppc.s
> then, link it with $ppc-ld -o hello-ppc hello-ppc.o
> 
> Then, $ppc-gdb hello-ppc <return>
> "The GDB was configured as "--host=i686-pc-linux-gnu 
> --target=powerpc-linux"
> (gdb)run <return>
> Don't know how to run. Try "help target"
> 
> Could anybody direct me the way where I can find an answer 
> for this? Again, thank you all!

Hey, call me crazy, but did you try "help target"?

You are running a cross-gdb.  A native gdb can just run the program on
the native machine.  A cross-gdb has no such luxury.  You have to tell
it where you want to run the program.  For that, you use the target
command.

Further questions about gdb should be directed to gdb@sourceware.org.
See http://sourceware.org/gdb/mailing-lists/

Ian


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