hello
there are problem with local function pointers to structure
example:
typedef struct some_struct_t {
uint8_t some_field;
uint8_t buf[8];
} SOME_STATE, *pSOME_STATE;
SOME_STATE gSTATE;
void func() {
pSOME_STATE xx = &gSTATE;
}
in debugger: xx != &gSTATE.
tested with:
SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ez80_z80/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk14/pdk15 3.9.0 #11195 (MINGW64)
published under GNU General Public License (GPL)
and
SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ez80_z80/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15 3.9.1 #11242 (MINGW64)
published under GNU General Public License (GPL)
br
Zahari
Could this be a duplicate of bug [#2701] (an issue with debug information)?
Philipp
Related
Bugs: #2701
Last edit: Maarten Brock 2019-11-02