From: "Gerrit van Niekerk" <gerritvn@gpvno.co.za>
To: DJ Delorie <dj@redhat.com>
Cc: gdb@sourceware.org
Subject: Re: GDB/Mingw make problem
Date: Tue, 15 Jan 2008 07:33:00 -0000 [thread overview]
Message-ID: <478C7DE1.26386.407C750@gerritvn.gpvno.co.za> (raw)
In-Reply-To: <200801142112.m0ELCgA2007612@greed.delorie.com>
On 14 Jan 2008 at 16:12, DJ Delorie wrote:
>
> > ?? I'd expect --target=djgpp do that automatically (it's a
> > cross-compilation, right?)
>
> It's the difference between a cygwin-x-djgpp cross compiler and a
> mingw-x-djgpp cross compiler. If --host is mingw, you're actually
> doing a canadian (although configure doesn't realize it, so it's not
> the traditional build/host/target canadian), so you need to ensure
> that CC is set right.
>
> Otherwise, in the example given, you're trying to build cygwin
> programs using mingw headers, or something like that. Subtle bugs
> ensue.
The idea is to get a cross debugger to debug a remote DJGPP system using a MinGw GDB and a TCP/IP
connection. The stock MinGW GDB works fine, except that it expects a PE target and fails to do
address to symbol conversions correctly. The other way round works fine and one can do debugging,
but a backtrace gives completely wrong results.
I have managed to move on from the last reported problem which was caused by configure/make
specifying the wrong include path for libintl.h. I solved that one by copying libintl.h to the
specified directory. Now I am having a problem with conflicts between winsock2.h and unistd.h both
declaring Winsock functions like gethostname(). It seems that the makefile uses Cygwin headers
rather than MinGW headers.
next prev parent reply other threads:[~2008-01-15 7:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-13 19:18 Gerrit van Niekerk
2008-01-13 20:05 ` Eli Zaretskii
2008-01-13 20:59 ` Gerrit van Niekerk
2008-01-14 4:05 ` Eli Zaretskii
2008-01-14 16:42 ` Gerrit van Niekerk
2008-01-14 16:45 ` Bob Rossi
2008-01-14 17:41 ` Andrew STUBBS
2008-01-14 17:43 ` Andrew STUBBS
2008-01-14 20:39 ` Eli Zaretskii
2008-01-14 21:13 ` DJ Delorie
2008-01-15 7:33 ` Gerrit van Niekerk [this message]
2008-01-15 11:07 ` Andrew STUBBS
2008-01-15 16:04 ` Gerrit van Niekerk
2008-02-09 0:48 ` Dave Murphy
2008-02-10 19:35 ` Gerrit van Niekerk
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=478C7DE1.26386.407C750@gerritvn.gpvno.co.za \
--to=gerritvn@gpvno.co.za \
--cc=dj@redhat.com \
--cc=gdb@sourceware.org \
--cc=gpvno@telkomsa.net \
/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