This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Testsuite centralize -DSYMBOL_PREFIX uses


On Tuesday 24 May 2011 08:48:38, Pierre Muller wrote:

> +# gdb_target_symbol_prefix_flags returns a string that can be added
> +# to gdb_compile options to define SYMBOL_PREFIX macro value
> +# symbol_prefix_flags returns a string that can be added
> +# for targets that use underscore as symbol prefix.

> +# The list of targets is incomplete and should be enhanced as
> +# reports about missing targets come in.

This sentence is useless, IMO.

> +# TODO: find out automatically if the target needs this.
> +
> +proc gdb_target_symbol_prefix_flags {} {
> +if { [istarget "*-*-cygwin*"] || [istarget "i?86-*-mingw*"]

Missing indentation.

> +     || [istarget "*-*-msdosdjgpp*"] || [istarget "*-*-go32*"]
> +     || [istarget "arm*-*-wince*"] || [istarget "arm*-*-mingwce*"]} {
> +	return "additional_flags=-DSYMBOL_PREFIX=\"_\""

ARM Windows CE is not underscored.  Is DJGPP/GO32?  bfd/config.bfd
appears to indicate it isn't.  None of the places you touched listed
wince or djgpp, afaics.

> +    } else {
> +	return ""
> +    }
> +}
> +

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]