Hi,
I'd like to post-process the debug info generated by sdcc for a source
level debugger. Now Im using the latest stable version of SDCC under
windows.
For PIC I have tried this:
------
#include "pic18f2585.h"
void main()
{
unsigned char count;
TRISB = 0;
count = 0;
for (;;)
{
PORTB = count;
count++;
}
}
------
-----
sdcc -c --debug -mpic16 -p18f2585 port_test.c
sdcc -o noname.hex -mpic16 -p18f2585 port_test.o
-----
The generated adb file is containing one line
M:port_test
For 8051 a bit better
------
#include "at89x51.h"
void main(void)
{
unsigned char count;
while (1) {
P0 = count;
count++;
}
}
------
-----
sdcc -c --debug test1.c
sdcc -o noname.hex test1.rel
-----
The result adb doesnt contain the 'count' word.
I'd like to show the value of 'count' in a window for PIC and 8051.
Thanks
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user