From: Joel Brobecker Date: Thu, 27 Sep 2012 12:52:10 +0000 (+0000) Subject: Add procfs_find_LDT_entry declaration (procfs.h). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f00482b6037e39ffc01e0e58e8d97c151857c8c6;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a61ac643633..eb35a8d654f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-09-27 Joel Brobecker + + * 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 * procfs.c (proc_get_LDT_entry): Make static. 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 + diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index 3577b5affd0..cd3761537d9 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