This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] cris-tdep.c signed char tweek
- To: gdb-patches at sources dot redhat dot com
- Subject: [patch] cris-tdep.c signed char tweek
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 19 Sep 2001 18:02:19 -0400
Hello,
I've committed the attached tweek. The cris target was assuming that
char's are always signed. It doesn't fix the uninitialized problem though.
Andrew
2001-09-19 Andrew Cagney <ac131313@redhat.com>
* cris-tdep.c (cris_get_signed_offset): Change return type to an
explicitly signed char.
Index: cris-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/cris-tdep.c,v
retrieving revision 1.2
diff -p -r1.2 cris-tdep.c
*** cris-tdep.c 2001/09/05 23:44:43 1.2
--- cris-tdep.c 2001/09/19 21:57:24
*************** cris_set_size_to_dword (unsigned short *
*** 352,361 ****
*insn |= 0x20;
}
! static char
cris_get_signed_offset (unsigned short insn)
{
! return ((char) (insn & 0x00FF));
}
/* Calls an op function given the op-type, working on the insn and the
--- 352,361 ----
*insn |= 0x20;
}
! static signed char
cris_get_signed_offset (unsigned short insn)
{
! return ((signed char) (insn & 0x00FF));
}
/* Calls an op function given the op-type, working on the insn and the