Menu

#3759 SDCDB hardcoded settings

open
nobody
None
other
5
2024-07-11
2024-07-11
Dzid
No

I was attempting to run sdcdb on stm8 ucsim.

  1. The -m command is not honored.
    https://github.com/rurban/sdcc/blob/eada2a4a225a9911302b5926bcaefb152dc9d2fb/sdcc/debugger/mcs51/sdcdb.c#L1952-L1960
    The values are hardcoded and don't match the exe file names except s51 and it should be generic. It should be something like that instead:
strncpy(model_str, &argv[i][2], 15);
snprintf(simArgs[0], 15+7, "ucsim_%s", model_str);

2, Another one is here - the program always starts with 0x0, but for stm8 it should start at 0x8000:
https://github.com/rurban/sdcc/blob/eada2a4a225a9911302b5926bcaefb152dc9d2fb/sdcc/debugger/mcs51/simi.c#L669
In simulator just typing run start correctly at 0x8000. So hardcoded 0x0 probably should be removed.

I tried overriding with !pc 0x8000 and !run 0x8000, but overall I wan not able to get it work properly. Maybe because of https://sourceforge.net/p/sdcc/patches/445/

Discussion


Log in to post a comment.

MongoDB Logo MongoDB