This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: What should a CPU simulator support?
- From: Wenbo Yang <wenbo dot yang at simplnano dot com>
- To: dave dot tw at gmail dot com
- Cc: gdb at sourceware dot org
- Date: Thu, 05 Jul 2007 10:30:06 +0800
- Subject: Re: What should a CPU simulator support?
> I'm trying to implement a gdb stub for a CPU simulator.
> The CPU simulator interprets each instruction in a big while loop.
> My question is: Is it enough for my simulator to support a single step
> run (simulate a single instruction per called) function to the gdb
> stub?
If your simulator supports "break" or similar instruction, and the GDB
for your architecture can do software single stepping, I think you can
realize this function.
Regards,
Wenbo
--
Wenbo Yang
Intern Software Engineer
SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor, Beijing, China
Phone: +86-10-5126-6989 --- Email: wenbo.yang@simplnano.com