gcc -Wall lint:
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 10 Nov 1993 15:58:48 +0000 (15:58 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 10 Nov 1993 15:58:48 +0000 (15:58 +0000)
* 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.

gdb/ChangeLog
gdb/Makefile.in
gdb/symtab.c
gdb/thread.c
gdb/values.c

index 859dee66f52c03d55686be83188f67af68f5bbde..844e0559547de46f62dc1834d78fd36b5fddd012 100644 (file)
@@ -1,3 +1,15 @@
+Wed Nov 10 09:31:10 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       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.
+
 Tue Nov  9 17:42:25 1993  Kung Hsu  (kung@cirdan.cygnus.com)
 
        * valarith.c (value_x_binop): fix search operator in class bug
index 6a83cfeddea2b2e77a74afacd845517a99f6f24f..ac3ee3f4d4e6e12a6e448d17f872b6640132cfe7 100644 (file)
@@ -1401,7 +1401,7 @@ tahoe-pinsn.o: tahoe-pinsn.c $(OP_INCLUDE)/tahoe.h $(defs_h) \
 target.o: target.c $(bfd_h) $(defs_h) $(gdbcmd_h) $(inferior_h) \
        objfiles.h symfile.h target.h
 
-thread.o: thread.c $(defs_h) thread.h 
+thread.o: thread.c $(defs_h) thread.h $(gdbcmd_h)
 
 typeprint.o: typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
        $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
index 582ca04696b5490ee220c52e710e9a581d182fad..2dcc8777449f5d7ee438f2c23d4e4c5e55af72c4 100644 (file)
@@ -1284,9 +1284,6 @@ find_line_pc_range (sal, startptr, endptr)
      struct symtab_and_line sal;
      CORE_ADDR *startptr, *endptr;
 {
-  struct linetable *l;
-  int ind;
-  int exact_match;             /* did we get an exact linenumber match */
   CORE_ADDR startaddr;
   struct symtab_and_line found_sal;
 
index a060beccf7c9adcc34100ecb5d2b5b6671f8d5f6..c3d52c33b4de69e8c0edc2e96a801d110c46877f 100644 (file)
@@ -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\
index 494f5bd06da97b2bfebb4339b0f7c034288b4a31..7191abaa7101341391b92ac1228fb886b83a0085 100644 (file)
@@ -647,15 +647,18 @@ unpack_double (type, valaddr, invp)
          *invp = 1;
          return 1.234567891011121314;
        }
-      return extract_floating (valaddr, TYPE_LENGTH (type));
+      return extract_floating (valaddr, len);
+    }
+  else if (nosign)
+    {
+      /* Unsigned -- be sure we compensate for signed LONGEST.  */
+      return (unsigned LONGEST) unpack_long (type, valaddr);
+    }
+  else
+    {
+      /* Signed -- we are OK with unpack_long.  */
+      return unpack_long (type, valaddr);
     }
-  else if (nosign) {
-   /* Unsigned -- be sure we compensate for signed LONGEST.  */
-   return (unsigned LONGEST) unpack_long (type, valaddr);
-  } else {
-    /* Signed -- we are OK with unpack_long.  */
-    return unpack_long (type, valaddr);
-  }
 }
 
 /* Unpack raw data (copied from debugee, target byte order) at VALADDR