public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Dave Murphy <wintermute2k4@ntlworld.com>
To: Andrew STUBBS <andrew.stubbs@st.com>
Cc: insight@sources.redhat.com, gdb list <gdb@sourceware.org>
Subject: Re: MinGW setjmp SEGV
Date: Wed, 21 Sep 2005 02:25:00 -0000	[thread overview]
Message-ID: <4330C474.6010401@ntlworld.com> (raw)
In-Reply-To: <op.su1e3pz3o669wz@terrorhawk.bri.st.com>

Andrew STUBBS wrote:

> Hi,
>
> 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:  
> http://sources.redhat.com/ml/insight/2004-q1/msg00021.html.
>
> 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 
> 'deprecated'  prefix.
>
> 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.
>
> Andrew Stubbs

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?

bfd_get_section_size_before_reloc'
DEPRECATED_REGISTER_CONVERTIBLE'
DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL
DEPRECATED_REGISTER_VIRTUAL_SIZE

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
ibgui.a -L/c/projects/devkitPro/sources/arm-elf/insight/itcl/itcl 
-litcl32 -L/c/projects/devkitPro/sources/arm-elf/insight/itcl/itk -litk32
-L/c/projects/devkitPro/sources/arm-elf/insight/tk/win -ltk84 
-L/c/projects/devkitPro/sources/arm-elf/insight/tcl/win -ltcl84    
-lgdi32 -lc
omdlg32 -limm32 -lcomctl32 -lshell32 -lm  ../libiberty/libiberty.a 
-luser32 -lwsock32 -lpsapi
libgdb.a(gdbtk-cmds.o)(.text+0x2ee1): In function `gdb_load_info':
c:/projects/devkitPro/sources/arm-elf/insight/gdb/../../../insight/src-new/gdb/gdbtk/generic/gdbtk-cmds.c:901: 
undefined reference to `bfd_g
et_section_size_before_reloc'
libgdb.a(gdbtk-register.o)(.text+0x368): In function `get_register':
c:/projects/devkitPro/sources/arm-elf/insight/gdb/../../../insight/src-new/gdb/gdbtk/generic/gdbtk-register.c:305: 
undefined reference to `D
EPRECATED_REGISTER_CONVERTIBLE'
libgdb.a(gdbtk-register.o)(.text+0x38d):c:/projects/devkitPro/sources/arm-elf/insight/gdb/../../../insight/src-new/gdb/gdbtk/generic/gdbtk-r
egister.c:307: undefined reference to 
`DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL'
libgdb.a(gdbtk-register.o)(.text+0x4b9):c:/projects/devkitPro/sources/arm-elf/insight/gdb/../../../insight/src-new/gdb/gdbtk/generic/gdbtk-r
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 
direction.

Dave

  parent reply	other threads:[~2005-09-21  2:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-05 13:44 Andrew STUBBS
2005-08-05 14:01 ` Dave Korn
2005-08-05 14:40   ` Andrew STUBBS
2005-08-05 15:28     ` Dave Korn
2005-08-05 15:57       ` Andrew STUBBS
2005-08-05 16:35         ` Dave Korn
2005-08-05 21:43 ` Steven Johnson
2005-08-08  9:38   ` Andrew STUBBS
2005-09-21  2:25 ` Dave Murphy [this message]
2005-09-21  9:00   ` Andrew STUBBS
2005-09-21 21:25     ` Dave Murphy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4330C474.6010401@ntlworld.com \
    --to=wintermute2k4@ntlworld.com \
    --cc=andrew.stubbs@st.com \
    --cc=gdb@sourceware.org \
    --cc=insight@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).