Re: [patch] update gdb.base/shreloc.exp to use new shared library infrastructure

Paul Gilliam
2005-04-15T19:41:05Z

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 #=-