This is the mail archive of the
mailing list for the Insight project.
Re: MinGW setjmp SEGV
- From: Dave Murphy <wintermute2k4 at ntlworld dot com>
- To: Andrew STUBBS <andrew dot stubbs at st dot com>
- Cc: insight at sources dot redhat dot com, gdb list <gdb at sourceware dot org>
- Date: Wed, 21 Sep 2005 03:24:52 +0100
- Subject: Re: MinGW setjmp SEGV
- References: <firstname.lastname@example.org>
Andrew STUBBS wrote:
I have been trying to build Insight 6.1 (patched into GDB 6.3) for
MinGW (and Linux and Solaris but they weren't much trouble).
The problem I hit has been previously reported here:
There are a number of patches required to make it build, but most are
trivial and may not be relevant since 6.1 so I shall not post them.
Basically I had to check whether the cygwin filename-handling tcl
functions exist before using them, define __INSIDE_CYGWIN__ in a
couple of tcl/tk files, and rename the hooks because they now have a
However, the most serious failure was caused by broken code in the tcl
dll screwing up the SEH and causing setjmp to fail. This problem has
been fixed in the latest tcl at tcl.sourceforge.net.
The attached patch (code copied from sourceforge) is sufficient to fix
the issue. Note that I have included the diff of the whole file and
it includes one of the minor changes mentioned above.
Hopefully this patch will help others who have hit the same problem.
You're an absolute star :)
Thanks for posting the patch. I got inspired to have another go at
building an arm-elf Insight under mingw/msys. I've now managed to build
Inisght 6.1 with gdb 6.3 up to a point. I have a functioning gdb but I'm
having problems with some deprecated functions in gdbtk-cmds.c and
gdb-register.c. Do you know what I need to use instead of these functions?
gcc -g -O2 \
-o insight.exe gdbtk-main.o libgdb.a \
../sim/arm/libsim.a ../bfd/libbfd.a ../readline/libreadline.a
../opcodes/libopcodes.a ../libiberty/libiberty.a ../libgui/src/l
-litcl32 -L/c/projects/devkitPro/sources/arm-elf/insight/itcl/itk -litk32
omdlg32 -limm32 -lcomctl32 -lshell32 -lm ../libiberty/libiberty.a
-luser32 -lwsock32 -lpsapi
libgdb.a(gdbtk-cmds.o)(.text+0x2ee1): In function `gdb_load_info':
undefined reference to `bfd_g
libgdb.a(gdbtk-register.o)(.text+0x368): In function `get_register':
undefined reference to `D
egister.c:307: undefined reference to
egister.c:311: undefined reference to `DEPRECATED_REGISTER_VIRTUAL_SIZE'
collect2: ld returned 1 exit status
make: *** [insight.exe] Error 1
cross posted to gdb list in case anyone there can point me in the right