This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] testsuite: Avoid auto-import warning on cygwin/mingw
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- Date: Fri, 2 Oct 2009 01:23:53 +0100
- Subject: Re: [RFA] testsuite: Avoid auto-import warning on cygwin/mingw
- References: <000f01ca42e3$e13cad60$a3b60820$@u-strasbg.fr>
On Thursday 01 October 2009 23:09:42, Pierre Muller wrote:
> Adding --enable-auto-import to link stage
> fixes this problem.
>
> Is this OK?
>
I _think_ the idea is fine. IWBN to have basic tests covering
printing auto-imported vs dllimported variables,
and covering stepping into import-lib'ed dll functions (through
the __imp_ trampolines).
> --- lib/gdb.exp 13 Jul 2009 19:24:18 -0000 1.119
> +++ lib/gdb.exp 1 Oct 2009 22:03:25 -0000
> @@ -1731,7 +1731,10 @@ proc gdb_compile {source dest type optio
> lappend options "additional_flags=-L${outdir}"
> } elseif { [istarget "mips-sgi-irix*"] } {
> lappend options "additional_flags=-rpath ${outdir}"
> - }
> + } elseif { ([istarget "*-*-mingw*"]
> + || [istarget *-*-cygwin*]) } {
> + lappend new_options
> "additional_flags=-Wl,--enable-auto-import"
Did you mean 'lappend options'?
> + }
> }
> } elseif { $opt == "shlib_load" } {
> if { ([istarget "*-*-mingw*"]
>
>
--
Pedro Alves