This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]