aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-04-02 18:00:10 +0000
committerFred Fish <fnf@specifix.com>1992-04-02 18:00:10 +0000
commit5c1c5e6745dbf2352a962b54601f436ddeb49571 (patch)
tree2533ffee4f7467c5e2771da541aedc9cf073fb43 /gdb/values.c
parent03c93c664dd6dfafaf12522b9ae01e015bbd570a (diff)
downloadgdb-5c1c5e6745dbf2352a962b54601f436ddeb49571.zip
gdb-5c1c5e6745dbf2352a962b54601f436ddeb49571.tar.gz
gdb-5c1c5e6745dbf2352a962b54601f436ddeb49571.tar.bz2
Fix bug in values.c unpacking signed characters on hosts where the default
character type is unsigned. Add some cases to the tables in procfs.c for constants defined in newer SVR4 systems and reorder the tests for ioctl support of resetting the inherit-on-fork flag to favor the latest method using PIOCRESET.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 512cc64..895df77 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -649,7 +649,7 @@ unpack_long (type, valaddr)
{
if (len == sizeof (char))
{
- char retval;
+ SIGNED char retval; /* plain chars might be unsigned on host */
bcopy (valaddr, &retval, sizeof (retval));
SWAP_TARGET_AND_HOST (&retval, sizeof (retval));
return retval;