gdb - target sim

Helmut Kolb Helmut.Kolb@knapp.co.at
Sat Apr 1 00:00:00 GMT 2000


Hello!

I'm just beginning to play around with embedded systems, so please
be patient ;-)

I made binutils (2.9), gcc (2.95.2) and gdb (4.18) for hostsystem
linux and target i960-unknown-coff.
the compiler worked, as far as i can see (if i compile a simple 
"hello word" programm i get an executable). now i wanted to
test, if the executable makes something useful, and i tried
with gdb. maybe i asume something wrong here, but i thought
the "target sim" in gdb would be a fine thing to test the
binary. but whenever i try to do this i get a segmentation
fault. i also tried i960-sim-coff as target for gdb - same
results. i worked out, that in the function "sim_open" in file
"sim-if.c" under "sim/i960/" a null reference is used. in this
code (from line 146 to line 149 in this file):
-------------------
  /* Open a copy of the cpu descriptor table.  */
  {
    CGEN_CPU_DESC cd = i960_cgen_cpu_open (STATE_ARCHITECTURE (sd)->mach,
                                           CGEN_ENDIAN_LITTLE);
-------------------
"STATE_ARCHITECTURE (sd)" returns NULL, and therefore it segfaults
when trying to access "STATE_ARCHITECTURE (sd)->mach"...

hmm - sounds like a bug-report ;-)
but i think, that i have done something wrong when configuring, or
compiling gdb, or i don't understand that "target sim" and want
to know, what i could have done wrong.

yours
-- 
Helmut Kolb                              KNAPP Logistik & Automation G.m.b.H.
Kolb.Helmut@knapp.co.at     Guenter-Knapp-Str. 5-7 A-8075 Hart/Graz, Austria
A cat will go "quack" - if you squeeze it hard enough.

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list