Menu

#3760 SDCDB parsing cdb newlines

open
nobody
None
other
5
2025-10-03
2024-07-11
Dzid
No

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

Discussion

  • Dzid

    Dzid - 2024-07-11

    Attaching that output properly:

    sdcdb bin/main --directory=src/                    
    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
    SDCDB is free software and you are welcome to distribute copies of it
    under certain conditions; type "show copying" to see the conditions.
    There is absolutely no warranty for SDCDB; type "show warranty" for details.
    SDCDB 0.9. Copyright (C) 1999 Sandeep Dutta (sandeep.dutta@usa.net)
    Type ? for help
    WARNING: SDCDB is EXPERIMENTAL.
    (sdcdb) Unknown record type 3(0x3)
    23667 words read from bin/main.ihx
    
     

    Last edit: Dzid 2024-07-11
  • manchicken

    manchicken - 2025-10-03

    I'm also having this problem. It also shows up when you list functions:

    (sdcdb) info functions
    All defined functions:
    
    File utils
    .c
    Delay2400();
    short_delay();
    _nop_();
    
    File display
    .c
    enable_digits();
    select_digit_addr();
    show_digit();
    display_number();
    
    File keypad
    .c
    keypressed_numval();
    keypressed_details();
    keypad_enable();
    detect_keypress();
    
    File calc
    .c
    sendChar();
    sendCRLF();
    sendStr();
    dump_register();
    disable_comparators();
    main();
    _main();
    (sdcdb)
    
     

Log in to post a comment.

MongoDB Logo MongoDB