I am running:
sdcdb bin/main --directory=src/
I am getting:
sdcdb: cannot open module main
.c -- use '--directory=<source directory> option
sdcdb: cannot open module main
.asm -- use '--directory=<source directory> option
√☺ √♥file "bin/main.ihx"
Loading from bin/main.ihx
(...)WARNING: SDCDB is EXPERIMENTAL.
(sdcdb) Unknown record type 3(0x3)
23667 words read from bin/main.ihx
Notice newline between main and .c. I think this is the reason it can't find main.
I tried saving main.cdb with CL line endings instead of CLRF, but it didn't help.
Idk, I don't see clearing /n in the code:
https://github.com/rurban/sdcc/blob/eada2a4a225a9911302b5926bcaefb152dc9d2fb/sdcc/debugger/mcs51/sdcdb.c#L418
Attaching that output properly:
Last edit: Dzid 2024-07-11
I'm also having this problem. It also shows up when you list functions: