aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-05-12 21:36:08 +0000
committerMark Kettenis <kettenis@gnu.org>2005-05-12 21:36:08 +0000
commitd45b6f32f0191ed252efbe7526b1ac0e94723aa7 (patch)
tree696af13e49bb159062c904bf965635dcfb28419e
parenteaae39195e3ebc6d1bd7d9d5750552184c32dc1f (diff)
downloadgdb-d45b6f32f0191ed252efbe7526b1ac0e94723aa7.zip
gdb-d45b6f32f0191ed252efbe7526b1ac0e94723aa7.tar.gz
gdb-d45b6f32f0191ed252efbe7526b1ac0e94723aa7.tar.bz2
* sol-thread.c: Include "solib.h".
(sol_thread_attach): Use solib_add instead of SOLIB_ADD. * Makefile.in (sol-thread.o): Update dependencies.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/Makefile.in2
-rw-r--r--gdb/sol-thread.c7
3 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9f6960a..34306ce 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2005-05-12 Mark Kettenis <kettenis@gnu.org>
+ * sol-thread.c: Include "solib.h".
+ (sol_thread_attach): Use solib_add instead of SOLIB_ADD.
+ * Makefile.in (sol-thread.o): Update dependencies.
+
* NEWS: Mention OpenBSD/mips64 as a new native configuration.
2005-05-12 Eli Zaretskii <eliz@gnu.org>
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 4241ffd..728ec8c 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -2551,7 +2551,7 @@ solib-svr4.o: solib-svr4.c $(defs_h) $(elf_external_h) $(elf_common_h) \
$(solist_h) $(solib_svr4_h) $(bfd_target_h) $(exec_h)
sol-thread.o: sol-thread.c $(defs_h) $(gdbthread_h) $(target_h) \
$(inferior_h) $(gdb_stat_h) $(gdbcmd_h) $(gdbcore_h) $(regcache_h) \
- $(symfile_h) $(gdb_string_h) $(gregset_h)
+ $(solib_h) $(symfile_h) $(gdb_string_h) $(gregset_h)
somread.o: somread.c $(defs_h) $(bfd_h) $(symtab_h) $(symfile_h) \
$(objfiles_h) $(buildsym_h) $(stabsread_h) $(gdb_stabs_h) \
$(complaints_h) $(gdb_string_h) $(demangle_h) $(som_h) $(libhppa_h) \
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index 8b20876..87357f4 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -1,7 +1,7 @@
/* Solaris threads debugging interface.
- Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
- Free Software Foundation, Inc.
+ Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+ 2005 Free Software Foundation, Inc.
This file is part of GDB.
@@ -64,6 +64,7 @@
#include "gdbcmd.h"
#include "gdbcore.h"
#include "regcache.h"
+#include "solib.h"
#include "symfile.h"
#include "gdb_string.h"
@@ -353,7 +354,7 @@ sol_thread_attach (char *args, int from_tty)
procfs_ops.to_attach (args, from_tty);
/* Must get symbols from shared libraries before libthread_db can run! */
- SOLIB_ADD ((char *) 0, from_tty, (struct target_ops *) 0, auto_solib_add);
+ solib_add (NULL, from_tty, (struct target_ops *) 0, auto_solib_add);
if (sol_thread_active)
{