diff -ura gdb-6.8.orig/bfd/config.bfd gdb-6.8/bfd/config.bfd
--- gdb-6.8.orig/bfd/config.bfd	2008-02-14 10:20:24.000000000 -0500
+++ gdb-6.8/bfd/config.bfd	2008-08-20 03:53:26.000000000 -0400
@@ -483,14 +483,14 @@
     targ_defvec=bfd_elf32_i386_vec
     targ_selvecs=i386coff_vec
     ;;
-  i[3-7]86-*-solaris2*)
+  i[3-7]86-*-solaris2* | i[3-7]86-*-kopensolaris*-gnu*)
     targ_defvec=bfd_elf32_i386_vec
     targ_selvecs=i386coff_vec
     targ64_selvecs=bfd_elf64_x86_64_vec
     want64=true
     ;;
 #ifdef BFD64
-  x86_64-*-solaris2*)
+  x86_64-*-solaris2* | x86_64-*-kopensolaris*-gnu*)
     targ_defvec=bfd_elf32_i386_vec
     targ_selvecs="bfd_elf64_x86_64_vec i386coff_vec"
     want64=true
diff -ura gdb-6.8.orig/gdb/configure gdb-6.8/gdb/configure
--- gdb-6.8.orig/gdb/configure	2008-01-13 07:23:04.000000000 -0500
+++ gdb-6.8/gdb/configure	2008-08-20 03:52:47.000000000 -0400
@@ -20418,7 +20418,7 @@
 _ACEOF
 
       ;;
-  *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
+  *-*-solaris2.[6789] | *-*-solaris2.1[0-9]* | *-*-kopensolaris*-gnu*)
 
 cat >>confdefs.h <<\_ACEOF
 #define NEW_PROC_API 1
diff -ura gdb-6.8.orig/gdb/configure.ac gdb-6.8/gdb/configure.ac
--- gdb-6.8.orig/gdb/configure.ac	2008-01-13 07:23:05.000000000 -0500
+++ gdb-6.8/gdb/configure.ac	2008-08-20 03:52:47.000000000 -0400
@@ -828,7 +828,7 @@
       [Define if you want to use new multi-fd /proc interface
        (replaces HAVE_MULTIPLE_PROC_FDS as well as other macros).])
       ;;
-  *-*-solaris2.[[6789]] | *-*-solaris2.1[[0-9]]*)
+  *-*-solaris2.[[6789]] | *-*-solaris2.1[[0-9]]* | *-*-kopensolaris*-gnu*)
       AC_DEFINE(NEW_PROC_API, 1,
       [Define if you want to use new multi-fd /proc interface
        (replaces HAVE_MULTIPLE_PROC_FDS as well as other macros).])
diff -ura gdb-6.8.orig/gdb/configure.host gdb-6.8/gdb/configure.host
--- gdb-6.8.orig/gdb/configure.host	2008-01-19 10:03:50.000000000 -0500
+++ gdb-6.8/gdb/configure.host	2008-08-20 03:52:47.000000000 -0400
@@ -93,6 +93,7 @@
 			;;
 i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
 i[34567]86-*-linux*)	gdb_host=linux ;;
+i[34567]86-*-kopensolaris*-gnu*)	gdb_host=sol2-64 ;;
 i[34567]86-*-gnu*)	gdb_host=i386gnu ;;
 i[3456]86-*-nto*) 	gdb_host=nto ;;
 i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
diff -ura gdb-6.8.orig/gdb/configure.tgt gdb-6.8/gdb/configure.tgt
--- gdb-6.8.orig/gdb/configure.tgt	2008-02-11 16:58:41.000000000 -0500
+++ gdb-6.8/gdb/configure.tgt	2008-08-20 03:52:47.000000000 -0400
@@ -165,7 +165,7 @@
 	gdb_target_obs="i386-tdep.o i387-tdep.o corelow.o solib.o solib-svr4.o \
 			i386-nto-tdep.o nto-tdep.o"
 	;;
-i[34567]86-*-solaris2.1[0-9]*)
+i[34567]86-*-solaris2.1[0-9]* | i[34567]86-*-kopensolaris*-gnu*)
 	# Target: Solaris x86_64
 	gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \
 			i386-sol2-tdep.o sol2-tdep.o \

