bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool 2.2.2 cross-compile to mingw problems


From: Charles Wilson
Subject: Re: libtool 2.2.2 cross-compile to mingw problems
Date: Sat, 26 Apr 2008 20:53:19 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

Ralf Wildenhues wrote:

Alternatively, for $host=cygwin|mingw, make the executable wrapper
capable of manipulating the environment of the child process, and
directly exec the target executable.  Would libtool --exec gdb work in
this case, and allow to debug the actual target exe?

Dunno, but it would be good if it worked.  :-)

FWIW, it /does/ indeed work:


Failure:

$ gdb .libs/depdemo.exe
GNU gdb 6.8.0.20080328-cvs (cygwin-special)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) break main
Breakpoint 1 at 0x401075: file /usr/src/packages/libtool/git/libtool/tests/depdemo/main.c, line 33.
(gdb) run
Starting program: /usr/src/packages/libtool/git/build-cwrapper-exec-target/tests/depdemo/.libs/depdemo.exe
[New thread 1052.0xbcc]
gdb: unknown target exception 0xc0000135 at 0x77788fc7

Program exited with code 030000000465.
You can't do that without a process to debug.
(gdb) q


Success:

$ ./libtool --mode=execute gdb ./depdemo.exe
GNU gdb 6.8.0.20080328-cvs (cygwin-special)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) break main
Breakpoint 1 at 0x401075: file /usr/src/packages/libtool/git/libtool/tests/depdemo/main.c, line 33.
(gdb) run
Starting program: /usr/src/packages/libtool/git/build-cwrapper-exec-target/tests/depdemo/.libs/depdemo.exe
[New thread 6100.0x15f8]
[New thread 6100.0x1670]

Breakpoint 1, main (argc=1, argv=0x1222c80) at /usr/src/packages/libtool/git/libtool/tests/depdemo/main.c:33
33      {
(gdb) q
The program is running.  Exit anyway? (y or n) y
$

--
Chuck





reply via email to

[Prev in Thread] Current Thread [Next in Thread]