The .py files that are outside configs are compiled into the gem5 binary,
so if you change any of them you have to re-run scons to see the effect.

At one time we had an environment variable that you could set that would
force gem5 to ignore the compiled-in python files and use the ones in the
filesystem instead, which is handy for when you're debugging/developing in
the python code, but I can't find it now... I vaguely recall that that
feature may have been removed in some rewrite.  (Nate?)

You can also pass --pdb to gem5 to fire up pdb before any config files are
processed.  You can probably set breakpoints from the command line at that
point, though it's unclear to me what file path you would need to use for
pdb to find the right files.

I updated the wiki with some of this information; please add more if you
have other suggestions or find out further details:
http://gem5.org/Debugging#Debugging_Python_with_PDB

Steve

On Sat, Mar 24, 2012 at 2:13 PM, Tony Feng <[email protected]> wrote:

> Hi,
>
> I find PDB very handy when debugging configuration files. However, when I
> try inserting the line
> import pdb; pdb.set_trace()
> into .py files which are outside the configs folder, it seems PDB can't
> detect it. Any suggestions?
>
> Thanks,
> Tony
>
> On Tue, Mar 20, 2012 at 4:28 PM, Tony Feng <[email protected]> wrote:
>
>> Hi,
>>
>> I continue to try to run ARM FS with ruby. The error I have now is the
>> following:
>>
>> Listening for system connection on port 3456
>> Listening for system connection on port 5900
>> fatal: CPU system.cpu has no interrupt controller.
>> Ensure createInterruptController() is called.
>>  @ cycle 0
>> [BaseCPU:build/ARM/cpu/base.cc, line 226]
>> Memory Usage: 478012 KBytes
>>
>> I didn't initialize any interrupt controller in my new ruby_fs.py since I
>> think it is done in fs.py, or should I do it elsewhere? Thanks.
>>
>> -Tony
>>
>>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to