This is the mail archive of the
mailing list for the GDB project.
Re: a question about gdb and simulator
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: liu lijuan <lljchina at hotmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 27 Feb 2003 11:38:37 -0500
- Subject: Re: a question about gdb and simulator
- References: <F84byfA34cnFqUob5MF00027426@hotmail.com>
>>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.
> 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.