This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] update gdb.base/shreloc.exp to use new shared library infrastructure
- From: Paul Gilliam <pgilliam at us dot ibm dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: Daniel Jacobowitz <drow at false dot org>
- Date: Fri, 15 Apr 2005 11:40:40 -0800
- Subject: Re: [patch] update gdb.base/shreloc.exp to use new shared library infrastructure
- References: <200504131013.36814.pgilliam@us.ibm.com> <20050414192309.GA19262@nevyn.them.org>
- Reply-to: pgilliam at us dot ibm dot com
On Thursday 14 April 2005 12:23, Daniel Jacobowitz wrote:
> On Wed, Apr 13, 2005 at 09:13:36AM -0800, Paul Gilliam wrote:
> > This patch updates gdb.base/shreloc.exp to use the new shared library infrastructure in
> > lib/gdb.exp. All the stuff that has been cut from shlib-call.exp is now part of 'gdb-compile'
> > or 'gdb-compile-shlib' (new) in lib/gdb.exp.
> >
> > This patch depends on the shared infrastructure patch:
> > http://sources.redhat.com/ml/gdb-patches/2005-04/msg00096.html
>
> Waitasec...
>
> > ! set additional_flags "additional_flags=-shared"
> > !
> > ! if {([istarget "*pc-cygwin"] || [istarget "*pc-mingw32"]) } {
> > ! set additional_flags "${additional_flags} -Wl,--image-base,0x04000000"
> > }
>
> The common bits don't have support for cygwin/mingw32 DLLs. So just
> removing this isn't right.
>
OK, sorry. I'll put it back in my next rev of the patch (comming soon)
>
> > ! set lib_opts [list debug additional_flags=-qstatsym additional_flags=-qdbxextra]
>
> Remind me what this option means?
>
>
IBM's xlc compiler doesn't add static variables to the symtab by default.
"-qstatsym" causes them to be added. 'xlc' will optimize un-used varialbe out
of the symtab, "-qdbxextra" disable this default behavior.
Maybe this should have been a seperate patch. Would that help?
-=# Paul #=-