[fpc-devel] win32 debugging broken in fixes_2_2?

Martin Schreiber fpmse at bluewin.ch
Tue Jul 10 17:42:48 CEST 2007


On Tuesday 10 July 2007 17.04, Jonas Maebe wrote:
> It seems that either your specific gdb is broken, or that gdb for
> win32 is broken in this regard. By default, gdb's setting for SIGILL
> should be:
>
> (gdb) info handle SIGILL
> Signal        Stop      Print   Pass to program Description
> SIGILL        Yes       Yes     Yes             Illegal instruction
>
Same with the FPC supplied gdb:
"
G:\testcase\mse\console>E:\FPC\2.0.4\bin\i386-win32\gdb.exe console.exe
GNU gdb 6.2.1
Copyright 2004 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-cygwin"...
(gdb) r
Starting program: /cygdrive/g/testcase/mse/console/console.exe

Program received signal SIGILL, Illegal instruction.
$00402091 in SYSTEM_FPC_CPUCODEINIT ()
(gdb) c
Continuing.

Program received signal SIGILL, Illegal instruction.
$00402091 in SYSTEM_FPC_CPUCODEINIT ()
(gdb) c
Continuing.

Program exited with code 0200.
(gdb) info signal SIGILL
Signal        Stop      Print   Pass to program Description
SIGILL        Yes       Yes     Yes             Illegal instruction
(gdb)
"
Is someone able to reproduce on a PII Windows box?
The test program is attached.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: console.pas
Type: text/x-pascal
Size: 220 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20070710/2ffba635/attachment.pas>


More information about the fpc-devel mailing list