a question about gdb and simulator

Andrew Cagney ac131313@redhat.com
Thu Feb 27 16:36:00 GMT 2003


>>
>>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




More information about the Gdb mailing list