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.
This commit is contained in:
parent
27ed24c364
commit
89ce0c8f50
5 changed files with 26 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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\
|
||||
|
|
19
gdb/values.c
19
gdb/values.c
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue