This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: target sim question
You're right, my target doesn't have a built-in simulator, that's my task.
I've to define the simulator for our processor, but first i want to know waht
should I do to use a simulator (anyone). There are some yet-defined sims in
the sim directory. Do you how could I use (just for trying) one of these
simulator. E.G. I wanto to experiment first with the m68HC11 from motorola, I
want to know which steps should I take to debug with that simulated target,
than when I understand that , I would like to know the steps to define my own
simulator.
Thank You!!
Reply me please!! I'm hooked!
Zitat von Andrew Cagney <ac131313@redhat.com>:
> > How may I use this instruction? , actually I tried to execute "target sim"
> on
> > gdb's prompt, but I get the message :
> >
> > (gdb) target sim
> > Error: Undefined target command: "sim". Try "help target".
>
> It would appear that your target doesn't have a built-in simulator.
>
> > What should I do? I need to know how to use a simulator, than I want to
> > define my own simulator for a new processor. Any idea?
>
> You'll need to implement a library that exports the interface described
> in include/gdb/remote-sim.h. See the sim/* directory for examples.
>
> Andrew
>
>