aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-11-10 15:58:48 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-11-10 15:58:48 +0000
commit89ce0c8f50b02eecbb87ad6246299fd214724846 (patch)
tree74740b5ad2238c6d62afbed66c688b4c70abb4c7 /gdb/thread.c
parent27ed24c3649226227ff66f8ba53b4966ffd20c86 (diff)
downloadgdb-89ce0c8f50b02eecbb87ad6246299fd214724846.zip
gdb-89ce0c8f50b02eecbb87ad6246299fd214724846.tar.gz
gdb-89ce0c8f50b02eecbb87ad6246299fd214724846.tar.bz2
gcc -Wall lint:
* thread.c: Include "gdbcmd.h" and <ctype.h>. * Makefile.in: Update dependency. * thread.c (thread_command): Remove unused variable p. * values.c (unpack_double): Use len instead of TYPE_LENGTH (type). * valprint.c (print_floating): Correctly check sign bit now that we are using unsigned arithmetic. * symtab.c (find_pc_line_range): Remove unused variables exact_match, ind, and l.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index a060bec..c3d52c3 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -29,7 +29,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "target.h"
#include "thread.h"
#include "command.h"
+#include "gdbcmd.h"
+#include <ctype.h>
#include <sys/types.h>
#include <signal.h>
@@ -323,7 +325,6 @@ thread_command (tidstr, from_tty)
{
int num;
struct thread_info *tp;
- char *p;
if (!tidstr)
error ("Please specify a thread ID. Use the \"info threads\" command to\n\