aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2013-06-24 22:03:51 +0000
committerJoel Brobecker <brobecker@gnat.com>2013-06-24 22:03:51 +0000
commitb9b26a166a203fda2e1422a2981831196cbd6598 (patch)
tree10836f0b92bbb0edf3e734f2e37e935692855787 /gdb
parent477330fc7d21eb6b5fa4b2adfe11d71b27c85970 (diff)
downloadgdb-b9b26a166a203fda2e1422a2981831196cbd6598.zip
gdb-b9b26a166a203fda2e1422a2981831196cbd6598.tar.gz
gdb-b9b26a166a203fda2e1422a2981831196cbd6598.tar.bz2
Fix host_name and target_name generation by common/create-version.sh.
This new script has one small snafoo, which prevented the $host_alias and $target_alias from being expanded during the generation of the version.c file. As a result, the version info yields: This GDB was configured as "--host=$host_alias --target=$target_alias". ^^^^^^^^^^^ ^^^^^^^^^^^^^ This patch fixes this issue. gdb/ChangeLog: * common/create-version.sh: Fix expansion of $host_alias and $target_alias in generation of HOST_NAME and TARGET_NAME (resp.).
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rwxr-xr-xgdb/common/create-version.sh4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0b81e33..adaf463 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2013-06-24 Joel Brobecker <brobecker@adacore.com>
+
+ * common/create-version.sh: Fix expansion of $host_alias
+ and $target_alias in generation of HOST_NAME and TARGET_NAME
+ (resp.).
+
2013-06-24 Tom Tromey <tromey@redhat.com>
* common/create-version.sh: New file.
diff --git a/gdb/common/create-version.sh b/gdb/common/create-version.sh
index 2d2bc74..56871bf 100755
--- a/gdb/common/create-version.sh
+++ b/gdb/common/create-version.sh
@@ -32,7 +32,7 @@ date=`sed -n -e 's/^.* BFD_VERSION_DATE \(.*\)$$/\1/p' $srcdir/../bfd/version.h`
sed -e "s/DATE/$date/" < $srcdir/common/version.in > version.tmp
echo '#include "version.h"' >> version.c-tmp
echo 'const char version[] = "'"`sed q version.tmp`"'";' >> version.c-tmp
-echo 'const char host_name[] = "$host_alias";' >> version.c-tmp
-echo 'const char target_name[] = "$target_alias";' >> version.c-tmp
+echo 'const char host_name[] = "'"$host_alias"'";' >> version.c-tmp
+echo 'const char target_name[] = "'"$target_alias"'";' >> version.c-tmp
mv version.c-tmp $output
rm -f version.tmp