[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] xaaes: benchmarktest old vs new ?



Hello!

Don't know if it help:

PROCESS "KRONOS" KILLED:
MEMORY VIOLATION.

Type: private   PC: 01D098EC
Addr: 01D8D66E  BP: 01CA8000

If it's gcc compiled (with debug info) you can calculate the source line of the crash from the PC.

Yes it is, how can I do? I have no gdb (I can download it if need).

gdb is not needed (with gdb you can do source level debugging).

Compile a KRONOS version with debug (option -g). Then let the version run, remember the crashing PC and the BP. Now calculate PC - BP - 0x100 and enter this value into addr2line -e kronos.prg. If the PC is a useful PC (e.g. the PC is inside the program AND belongs to code that is compiled with debug info) addr2line print the corresponding source line.


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnaumann@freemint.de