[ia64] small integral parameters and return values
authorJoel Brobecker <brobecker@gnat.com>
Thu, 13 Jan 2011 16:23:00 +0000 (16:23 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 13 Jan 2011 16:23:00 +0000 (16:23 +0000)
commit825d6d8a6983bce3664db1058afb19335db795cc
treeceeb6cf15a9dd5a730c48f947b72a571a79c70f7
parent7458e66756c1515ff07193a097c2cdc71837012c
[ia64] small integral parameters and return values

This patch fixes a small problem on ia64-hpux when calling functions
whose parameter are small integral values (less than 8 bytes).  In
that case, the parameter value was stored on the wrong side of the
register.  Same problem for return values.

With this patch, the results for gdb.base/callfuncs.exp improve from

        # of expected passes            41
        # of unexpected failures        78

To:

        # of expected passes            95
        # of unexpected failures        24

gdb/ChangeLog:

        * ia64-tdep.c (ia64_struct_type_p): New function.
        (ia64_extract_return_value): Handle integral values that are
        less than 8 bytes long.
        (ia64_push_dummy_call): Likewise.
gdb/ChangeLog
gdb/ia64-tdep.c