On 15 August 2011 21:55, Sebastian <sebastianspublicaddr...@googlemail.com> wrote: > Hi, > is it possible to connect with gdb to a core of a python simulation? > > Something like > device = pysimulavr.AvrFactory.instance().makeDevice(mcu) > device.Load(program) > device.SetClockFreq(clock_setting) > sim.Add(device) > device.setPortForGDB(1212) # I'm looking for this function > which also works for simulations with multiple devices.
This is an interesting question. I was thinking about combining Python and GDB debugging, e.g. Python script simulating an integrated circuit. They ways of controlling the simulation would be pretty limited, though. Right now I think simulavr cannot be used from GDB and Python at the same time. Or maybe you can: you can derive a python class from Hardware, attach yourself to pins/networks and add itself to AvrDevice::AddToCycleList(). And create GdbServer and then call SystemClock::Endless(). You cannot simulate multiple AVR chips with GDB because our GDB processing code does not support multiple processes and we cannot pretend multiple GDB servers now. -- Petr Hluzin _______________________________________________ Simulavr-devel mailing list Simulavr-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/simulavr-devel