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 assembler, GDB "dont know how to run"


<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


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