Re: [hatari-devel] CPU trace disassembly doesn't go to specified trace file?

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


Le 02/12/2019 à 00:39, Eero Tamminen a écrit :
Hi,

Regarding user reported issue:
http://www.atari-forum.com/viewtopic.php?f=51&t=37922

Is there any good reason why these:
--------------------------------------------------
$ grep m68k_disasm_file src/cpu/newcpu.c
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
m68k_disasm_file(stderr, m68k_getpc (), NULL, m68k_getpc (), 1);
--------------------------------------------------

Shouldn't be fixed with:
sed -i 's/m68k_disasm_file(stderr,/m68k_disasm_file(TraceFile,/' src/cpu/newcpu.c
?

Hi

no reason for this, I usually trace by doing "hatari 2>log.txt", so I didn't notice stderr was used instead of "TraceFile".

You can replace it as above with you "sed" command.

Nicolas



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