[PATCH v3] gdbserver: fix the standalone build

Yao Qi yao@codesourcery.com
Fri Jun 28 12:18:00 GMT 2013


On 06/28/2013 07:59 PM, Mircea Gherzan wrote:
> When directly invoking gdb/gdbserver/configure && make, the build will
> fail because the $(host_alias) is empty and thus create-version.sh does
> not get enough parameters.
>
> The output of gdbserver --version without this patch (built like above):
>
>    [...]
>    This gdbserver was configured as ""
>
> After applying this patch:
>
>    [...]
>    This gdbserver was configured as "x86_64-unknown-linux-gnu"
>
> Ok to commit?
>
> 2013-06-28  Mircea Gherzan<mircea.gherzan@intel.com>
>
> gdbserver:
>
> 	* configure.ac (version_host): Add it.
> 	(version_host): Add it.
> 	* configure: Rebuild.
> 	* Makefile.in (version_host): Add it.
> 	(version_target): Add it.
> 	(version.c): Use $(version_host) and $(version_target).

If we commit this patch, probably my patch to common/create-version.sh 
becomes useless, because 'target_alias' or 'target' will be always 
passed to it.

2013-06-27  Yao Qi  <yao@codesourcery.com>

	* common/create-version.sh: Update comments.  Handle the case
	that TARGET_ALIAS is empty.

revert it?

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list