aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2010-01-25 13:22:02 +0000
committerRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2010-01-25 13:22:02 +0000
commit6bcc772dec145e131137cf8cbc3786f3c4d96003 (patch)
tree505e1d50b9754d34827de8516854b25bba5e6ba7
parent1c1238a5e85604eb3e351c06973c61599072320f (diff)
downloadfsf-binutils-gdb-6bcc772dec145e131137cf8cbc3786f3c4d96003.zip
fsf-binutils-gdb-6bcc772dec145e131137cf8cbc3786f3c4d96003.tar.gz
fsf-binutils-gdb-6bcc772dec145e131137cf8cbc3786f3c4d96003.tar.bz2
* configure.ac: Only use host_os part when disabling TUI on osf.
Use test to check variables, prefix strings with x. * configure: Regenerate. * solib-osf.c (osf_current_sos): Initialize tail.
-rw-r--r--gdb/ChangeLog8
-rwxr-xr-xgdb/configure6
-rw-r--r--gdb/configure.ac6
-rw-r--r--gdb/solib-osf.c2
4 files changed, 15 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fc32140..8ab26f6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * configure.ac: Only use host_os part when disabling TUI on osf.
+ Use test to check variables, prefix strings with x.
+ * configure: Regenerate.
+
+ * solib-osf.c (osf_current_sos): Initialize tail.
+
2010-01-25 gingold <gingold@adacore.com>
* windows-nat.c (windows_continue): Use %x to print thread id.
diff --git a/gdb/configure b/gdb/configure
index 4980106..d444b08 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -8518,11 +8518,11 @@ _ACEOF
# broken on alpha-osf.
case $host_os in
- alpha*-*-osf* )
- if "$enable_tui" = "yes"; then
+ osf* )
+ if test x"$enable_tui" = xyes; then
as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
fi
- if "$enable_tui" = "auto"; then
+ if test x"$enable_tui" = xauto; then
enable_tui=no
fi
;;
diff --git a/gdb/configure.ac b/gdb/configure.ac
index a756a2d..8da6867 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -447,11 +447,11 @@ AM_ICONV
# broken on alpha-osf.
case $host_os in
- alpha*-*-osf* )
- if "$enable_tui" = "yes"; then
+ osf* )
+ if test x"$enable_tui" = xyes; then
AC_MSG_ERROR([Building GDB with TUI mode is not supported on this host])
fi
- if "$enable_tui" = "auto"; then
+ if test x"$enable_tui" = xauto; then
enable_tui=no
fi
;;
diff --git a/gdb/solib-osf.c b/gdb/solib-osf.c
index ab6ea56..a8354a1 100644
--- a/gdb/solib-osf.c
+++ b/gdb/solib-osf.c
@@ -536,7 +536,7 @@ close_map (struct read_map_ctxt *ctxt)
static struct so_list *
osf_current_sos (void)
{
- struct so_list *head = NULL, *tail, *newtail, so;
+ struct so_list *head = NULL, *tail = NULL, *newtail, so;
struct read_map_ctxt ctxt;
int skipped_main;