summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/procfs.h7
-rw-r--r--gdb/sol-thread.c1
3 files changed, 13 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a61ac64363..eb35a8d654 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2012-09-27 Joel Brobecker <brobecker@adacore.com>
+ * procfs.h (procfs_find_LDT_entry): Add declaration.
+ * sol-thread.c (ps_lgetLDT): Delete local declaration of
+ function procfs_find_LDT_entry.
+
+2012-09-27 Joel Brobecker <brobecker@adacore.com>
+
* procfs.c (proc_get_LDT_entry): Make static.
2012-09-27 Joel Brobecker <brobecker@adacore.com>
diff --git a/gdb/procfs.h b/gdb/procfs.h
index 8293322e40..6c4e137496 100644
--- a/gdb/procfs.h
+++ b/gdb/procfs.h
@@ -34,3 +34,10 @@ extern void procfs_use_watchpoints (struct target_ops *t);
'live' procinfo. */
extern ptid_t procfs_first_available (void);
+
+#if (defined (__i386__) || defined (__x86_64__)) && defined (sun)
+struct ssd;
+
+extern struct ssd *procfs_find_LDT_entry (ptid_t);
+#endif
+
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index 3577b5affd..cd3761537d 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -1108,7 +1108,6 @@ ps_lgetLDT (gdb_ps_prochandle_t ph, lwpid_t lwpid,
struct ssd *pldt)
{
/* NOTE: only used on Solaris, therefore OK to refer to procfs.c. */
- extern struct ssd *procfs_find_LDT_entry (ptid_t);
struct ssd *ret;
/* FIXME: can't I get the process ID from the prochandle or