sprhawk / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 0 forks source link

Enable HAVE_DEBUG_INFO on mbed platform #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Issue #103 brought readable tracebacks to the VM.  This capability should be 
copied from the desktop to the mbed platform.

Original issue reported on code.google.com by dwhall...@gmail.com on 7 Aug 2010 at 4:35

GoogleCodeExporter commented 9 years ago
r568
- Copied plat_reportError from desktop.
- Enabled HAVE_DEBUG_INFO in mbed/pmfeatures.h

Cannot create system regression test.
Tested manually on mbed target using ipm.
Mainlined directly.

Test output:

ipm> import sys; sys.heap(); sys.gc(); sys.heap()
(22688, 28672)
(23616, 28672)
ipm> import mbed
ipm> dir(mbed)
['set_led', 'TextLCD', 'I2C', 'SPI', 'Serial', 'PwmOut', 'DigitalOut', 
'DigitalIn', 'AnalogOut', 'AnalogIn', '__doc__']
ipm> mbed.set_led(2,1)
ipm> 4/0
Traceback (most recent call first):
  File "<ipm>", line 1, in <ipm>
  File "../lib/ipm.py", line 99, in ipm
  File "main.py", line 14, in main
ZeroDivisionError detected by FileId 0x00 line 0
ipm> 

Original comment by dwhall...@gmail.com on 7 Aug 2010 at 9:14