From: Doug Evans <dje@google.com>
To: Pierre Muller <pierre.muller@ics-cnrs.unistra.fr>
Cc: gdb-patches@sourceware.org, Eli Zaretskii <eliz@gnu.org>,
asmwarrior@gmail.com, Tom Tromey <tromey@redhat.com>
Subject: Re: Possible fix for mingw32 directory relocation problems
Date: Tue, 17 Jan 2012 16:11:00 -0000 [thread overview]
Message-ID: <CADPb22Qf2QdFYTnQPG3_2VaDWvN4pLMY4yK5jKCxiQghH=pdVA@mail.gmail.com> (raw)
In-Reply-To: <4f158a77.833ed80a.629b.7837SMTPIN_ADDED@mx.google.com>
On Tue, Jan 17, 2012 at 6:49 AM, Pierre Muller
<pierre.muller@ics-cnrs.unistra.fr> wrote:
> Nevertheless, if you run gdb directly in the compilation directory,
> you will notice the GDB_DATADIR macro set to '/usr/local/share/gdb' in
> config.h
> into 'e:\usr\local\share\gdb'
> due to a call to lrealpath which calls GetFullPathName if __WIN32 is
> defined.
A similar thing happens when running gdb from the build directory on
all systems,
this is not win32 specific.
GDB does not (currently) automagically support it.
> Thus, I wonder if the correct solution should not be to
> convert all the paths in config.h to mingw32 type at configure time.
> But, once again, I don't really know how to do this....
When running gdb from the build directory,
pass -data-directory=$build_directory/data-directory.
> I went on to try to use this to test mingw64 Windows-64bit GDB debugger
> using Cygwin cross-compiler x86_64-w64-mingw32 target, but
> I couldn't get configure to accept the Windows 64-bit 2.7 python...
> apparently because not libpython2.7.a is included in the distribution
> (the library is, according to web search, non-functional...)
> Does anyone know howto force python use for cygwin to mingw64 cross
> compilation of GDB?
I'm not sure the issue I'm referring to below is the issue you're
running into, but Python doesn't handle cross compilation very well,
and one workaround is the following hack.
When configuring gdb pass --with-python=/path/to/config-python-hack,
where /path/to/config-python-hack is a script like the following:
[edit the paths in this example to match your environment]
#! /bin/sh
if [ $# -ne 2 ]
then
echo "Bad # args. Blech!" >&2
exit 1
fi
# The first argument is the path to python-config.py, ignore it.
case "$2" in
--includes) echo "-I/usr/include/python2.6 -I/usr/include/python2.6" ;;
--ldflags) echo "-L/usr/lib/python2.6/config -lpthread -ldl -lutil -lm
-lpython2.6" ;;
--exec-prefix) echo "/usr" ;;
*) echo "Bad arg $2. Blech!" >&2 ; exit 1 ;;
esac
exit 0
next prev parent reply other threads:[~2012-01-17 15:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4f143c53.ca3c440a.1d95.ffff9b71SMTPIN_ADDED@mx.google.com>
2012-01-17 9:56 ` Doug Evans
2012-01-17 13:40 ` asmwarrior
2012-01-17 14:15 ` asmwarrior
2012-01-17 15:03 ` Pierre Muller
[not found] ` <4f158a75.65ecd80a.69cb.7083SMTPIN_ADDED@mx.google.com>
2012-01-17 15:34 ` asmwarrior
[not found] ` <4f158a77.833ed80a.629b.7837SMTPIN_ADDED@mx.google.com>
2012-01-17 16:11 ` Doug Evans [this message]
2012-01-18 19:01 ` Doug Evans
[not found] <4f143c35.4fecd80a.473e.ffffbd75SMTPIN_ADDED@mx.google.com>
2012-01-17 2:49 ` asm warrior
[not found] ` <CADPb22SvBMEt9=EwMNZE6m+=_jfJZxTt1C2Pn-rH9OpHKUJCJQ@mail.gmail.com>
[not found] ` <4F150434.3020102@gmail.com>
[not found] ` <CADPb22TK7_csatjnORZoLeuRty9aXM+=hzBykYeWk6XzG-aPjQ@mail.gmail.com>
2012-01-17 6:48 ` asmwarrior
2012-01-17 7:00 ` Asmwarrior
2012-01-16 15:17 Pierre Muller
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='CADPb22Qf2QdFYTnQPG3_2VaDWvN4pLMY4yK5jKCxiQghH=pdVA@mail.gmail.com' \
--to=dje@google.com \
--cc=asmwarrior@gmail.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=pierre.muller@ics-cnrs.unistra.fr \
--cc=tromey@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