[hatari-devel] Core dump if using LOG_TRACE function during Hatari's init

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hello

while testing some code, I noticed it's not possible to use LOG_TRACE function before Main_Init() is called, as this calls Log_Init.

Doing so will result in a core dump (because TraceFile==NULL in debug/log.c).

Eero, do you think it could be possible to call Log_Init at the very beginning with TraceFile="stderr" and then call it again after command line / config file were parsed in case the user gave another filename for TraceFile ?

Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/