From: Robin Singh <netcables6@et...> - 2003-01-17 06:01:03
I am assuming that I can post issues regarding sdcdb on this list.
Pardon me if I am wrong.
I have a nagging problem with debugging a project consisting of multiple
interdependent asm and C files using sdcdb.
Consider a scenario where I have one .asm file called asm_file.asm and a
regular C file called C_file.c. The asm file calls C functions and vice
I assemble asm_file.asm by issuing:
$asx8051 -losgj asm_file.asm
I proceed to compile C_file.c by issuing:
$sdcc -c --debug C_file.c
To link the generated relocatable objects I issue:
$aslink -f link.script
where link.script is a text file whose contents are:
-b CSEG = 0x0000
-b DSEG = 0x0030
-b XSEG = 0x0000
-b ISEG = 0x0080
-b BSEG = 0x0000
All is fine and I get the appropriate output files and the Intel Hex output
I assume that all sdcdb needs is the .map, .cdb and .ihx files. (Are there any
else that sdcdb needs ?)
Now when I load this file for debugging by issuing:
I get the sdcdb introduction messages (version number etc), following which I
get a prompt.
In order to get a listing, I type in an 'l' but I get the following response:
Missing context at 1472. Try list filename:lineno
If I try issuing :
I get the appropriate listing but if I repeat the procedure or attempt to set
a breakpoint, I get a cascade of the following message:
accept: Socket operation on non-socket
until I break out (Ctrl-C).
What am I missing ?
Regards and thanks,