This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: powerpc-linux assembler, GDB "dont know how to run"
- From: Ben Elliston <bje at au dot ibm dot com>
- To: binutils at sources dot redhat dot com
- Date: 20 Apr 2004 11:14:48 +1000
- Subject: Re: powerpc-linux assembler, GDB "dont know how to run"
- References: <web-1247781@infinito.it>
<quchen@infinito.it> writes:
> 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"
This is really a GDB question and should be directed to their mailing
list. However, the output from GDB above shows that you're in a cross
environment: i686 to powerpc. You can't run the program natively, of
course. Try loading the program into the built-in simulator instead:
(gdb) target sim
(gdb) load
(gdb) continue
Cheers, Ben