[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Simulavr-devel] Connect with gdb to a core of a python simulation
From: |
Petr Hluzín |
Subject: |
Re: [Simulavr-devel] Connect with gdb to a core of a python simulation |
Date: |
Mon, 15 Aug 2011 22:34:18 +0200 |
On 15 August 2011 21:55, Sebastian
<address@hidden> 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
Re: [Simulavr-devel] Connect with gdb to a core of a python simulation, ThomasK, 2011/08/18