This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: powerpc-linux assemble, gdb "don't know how to run"
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: <quchen at infinito dot it>
- Cc: binutils at sources dot redhat dot com
- Date: 19 Apr 2004 16:38:11 -0400
- Subject: Re: powerpc-linux assemble, gdb "don't know how to run"
- References: <web-1245829@infinito.it>
<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