Re: a question about gdb and simulator

Andrew Cagney
2003-02-27T16:36:25Z

>>
>>Assuming you have the GDB sources in front of you, look at the file
>>"src/include/gdb/remote-sim.h". It defines the GDB-SIM interfaces that
>>GDB currently uses.
>>
>>Also, I'd not dismiss the "remote" method. Some simulators use that
>>interface as well.
>
>> >Andrew
> Thank you very much! It is very important to us. But I have some questions
> on remote debugging. Does it include the debugging of built-in cpu simulator
> by inputting "target sim" and the debugging using remote serial protocol to
> communicate by inputting "target remote xxxx"?

If the simulator is not built-in, you would any of:

(gdb) target remote host:port
(gdb) target remote |simulator
(gdb) target extended-remote <same-choices>

The option `|simulator' is probably the most useful. It talks remote
protocol on stdin/stdout.

Andrew