summaryrefslogtreecommitdiff
path: root/gdb/procfs.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-09-27 12:52:10 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-09-27 12:52:10 +0000
commitc19b8f7d74011b53e8618688d74c2d55107139fb (patch)
tree8c0b4a503f905192d5b692643ea0fadf3fc19a74 /gdb/procfs.h
parent2331e6c8bcb55df4a61cbc852409e00d752f777f (diff)
downloadgdb-c19b8f7d74011b53e8618688d74c2d55107139fb.tar.gz
Add procfs_find_LDT_entry declaration (procfs.h).
Add a declaration for procfs_find_LDT_entry in order to prevent a compiler warning about this function missing one. This also helps making sure that declaration and definition remain consistent. gdb/ChangeLog: * procfs.h (procfs_find_LDT_entry): Add declaration. * sol-thread.c (ps_lgetLDT): Delete local declaration of function procfs_find_LDT_entry.
Diffstat (limited to 'gdb/procfs.h')
-rw-r--r--gdb/procfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/procfs.h b/gdb/procfs.h
index 8293322e40d..6c4e137496c 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
+