is sim/common documented anywhere?

Mike Frysinger vapier@gentoo.org
Fri Aug 24 22:10:00 GMT 2012


On Friday 24 August 2012 16:03:51 DJ Delorie wrote:
> Ok, how do I get past this one...
> 
> sim-events.c:1076: assertion failed - events->nr_ticks_to_process != 0
> 
> This happens after sim_create_inferior is called, but before
> sim_engine_run is called.

ah, sometimes i think that error is the bane of my [sim] existence.  
annoyingly, it can arise for a few different reasons.

first, you don't want the common/sim-run.c [1].  although i'll probably just 
gut that already and make it usable since no one ever got back to me and make 
it so it is usable by default ...

second, you're using nrun.c right ?  make sure SIM_RUN_OBJS=nrun.o in your 
Makefile.in.

third, how are you launching ?  `gdb` or `run` ?

fourth, i vaguely recall not fulling initializing the state in the arch 
sim_open() can cause this to trip.
-mike

1: http://sourceware.org/ml/gdb/2010-02/msg00046.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb/attachments/20120824/e5d79e6d/attachment.sig>


More information about the Gdb mailing list