aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>1996-11-12 23:33:32 +0000
committerJim Wilson <wilson@tuliptree.org>1996-11-12 23:33:32 +0000
commit119dfbb7c16c594e26b4745e5efaf836b48d8c1b (patch)
tree5419bf9c17f940431f9c133e1d977c1720324c0c /gdb/values.c
parentcf13e3fc30bee23f8c794c0dcd7924733e2e1d3e (diff)
downloadgdb-119dfbb7c16c594e26b4745e5efaf836b48d8c1b.zip
gdb-119dfbb7c16c594e26b4745e5efaf836b48d8c1b.tar.gz
gdb-119dfbb7c16c594e26b4745e5efaf836b48d8c1b.tar.bz2
Patches to add Irix6 host support.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 0c3a6b9..3f9e7bb 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -676,10 +676,10 @@ unpack_double (type, valaddr, invp)
{
/* Unsigned -- be sure we compensate for signed LONGEST. */
#ifndef _MSC_VER
- return (unsigned LONGEST) unpack_long (type, valaddr);
+ return (ULONGEST) unpack_long (type, valaddr);
#else
#if (_MSC_VER > 800)
- return (unsigned LONGEST) unpack_long (type, valaddr);
+ return (ULONGEST) unpack_long (type, valaddr);
#else
/* FIXME!!! msvc22 doesn't support unsigned __int64 -> double */
return (LONGEST) unpack_long (type, valaddr);
@@ -1147,8 +1147,8 @@ unpack_field_as_long (type, valaddr, fieldno)
char *valaddr;
int fieldno;
{
- unsigned LONGEST val;
- unsigned LONGEST valmask;
+ ULONGEST val;
+ ULONGEST valmask;
int bitpos = TYPE_FIELD_BITPOS (type, fieldno);
int bitsize = TYPE_FIELD_BITSIZE (type, fieldno);
int lsbcount;
@@ -1168,7 +1168,7 @@ unpack_field_as_long (type, valaddr, fieldno)
if ((bitsize > 0) && (bitsize < 8 * (int) sizeof (val)))
{
- valmask = (((unsigned LONGEST) 1) << bitsize) - 1;
+ valmask = (((ULONGEST) 1) << bitsize) - 1;
val &= valmask;
if (!TYPE_UNSIGNED (TYPE_FIELD_TYPE (type, fieldno)))
{
@@ -1220,9 +1220,9 @@ modify_field (addr, fieldval, bitpos, bitsize)
/* Mask out old value, while avoiding shifts >= size of oword */
if (bitsize < 8 * (int) sizeof (oword))
- oword &= ~(((((unsigned LONGEST)1) << bitsize) - 1) << bitpos);
+ oword &= ~(((((ULONGEST)1) << bitsize) - 1) << bitpos);
else
- oword &= ~((~(unsigned LONGEST)0) << bitpos);
+ oword &= ~((~(ULONGEST)0) << bitpos);
oword |= fieldval << bitpos;
store_signed_integer (addr, sizeof oword, oword);