From: "Martin Schreiber" <[EMAIL PROTECTED]>
Hi,
Every program compiled with fixes_2_2 rev. 8006 crashes
in gdb:
"
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-mingw32"...
(gdb) run
Starting program: G:\testcase\mse\console/console.exe
Loaded symbols for C:\WINNT\system32\KERNEL32.DLL
Loaded symbols for C:\WINNT\system32\OLEAUT32.DLL
Loaded symbols for C:\WINNT\system32\OLE32.DLL
Loaded symbols for C:\WINNT\system32\rpcrt4.dll
Loaded symbols for C:\WINNT\system32\ADVAPI32.DLL
Loaded symbols for C:\WINNT\system32\GDI32.DLL
Loaded symbols for C:\WINNT\system32\USER32.DLL
Program received signal SIGILL, Illegal instruction.
0x00402091 in SYSTEM_FPC_CPUCODEINIT ()
(gdb) bt
#0 0x00402091 in SYSTEM_FPC_CPUCODEINIT ()
#1 0x0040a504 in SYSTEM_init ()
#2 0x00406114 in fpc_initializeunits ()
#3 0x7ffdf000 in ?? ()
#4 0x00000000 in ?? ()
(gdb)
"
The programs work without gdb.
System: win2000, PII.
The problem seems not to exist on another PC with win2000 and an AMD
Athlon.
Any hints?
If CPU have no SSE support an exception occurs, but it handled
properly by program. If running under gdb, it catches this exception.
Maybe other way to detect SSE support exists...
Yury.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel