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]

gdbserver Solaris [1/9] - gdb


The first part...


gdb ChangeLog entry:

2010-04-23  Pieter Maljaars  <pieter.maljaars@altenpts.nl>

        * configure.tgt (i[34567]86-*-solaris*): Add build_gdbserver=yes.
        (sparc-*-solaris2* | sparcv9-*-solaris2*): Add build_gdbserver=yes.

        * sol-thread.c (check_for_thread_db): Return function when running
        remote target.

diff -upN src-orig/src/gdb/configure.tgt src/gdb/configure.tgt
--- src-orig/src/gdb/configure.tgt	2010-04-20 02:21:33.000000000 +0200
+++ src/gdb/configure.tgt	2010-04-23 11:40:07.000000000 +0200
@@ -201,6 +201,7 @@ i[34567]86-*-solaris*)
 	# Target: Solaris x86
 	gdb_target_obs="i386-tdep.o i387-tdep.o i386-sol2-tdep.o sol2-tdep.o \
 			corelow.o solib.o solib-svr4.o"
+	build_gdbserver=yes
 	;;
 i[34567]86-*-linux*)
 	# Target: Intel 386 running GNU/Linux
@@ -511,6 +512,7 @@ sparc-*-solaris2* | sparcv9-*-solaris2* 
 	# Target: Solaris UltraSPARC
 	gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
 			sparc-sol2-tdep.o sol2-tdep.o solib.o solib-svr4.o"
+	build_gdbserver=yes
 	;;
 sparc-*-rtems*)
 	# Target: SPARC embedded with simulator
diff -upN src-orig/src/gdb/sol-thread.c src/gdb/sol-thread.c
--- src-orig/src/gdb/sol-thread.c	2010-01-01 08:31:41.000000000 +0100
+++ src/gdb/sol-thread.c	2010-04-16 08:14:00.000000000 +0200
@@ -652,6 +652,10 @@ check_for_thread_db (void)
        target vector was already activated.  */
     return;
 
+  /* Don't attempt to use sol-thread for remote targets.  */
+  if (!target_can_run (&current_target))
+    return;
+
   /* Now, initialize libthread_db.  This needs to be done after the
      shared libraries are located because it needs information from
      the user's thread library.  */


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