Support gdbarch_convert_register_p targets in address_from_register
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 10 Sep 2014 17:01:26 +0000 (19:01 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 10 Sep 2014 17:01:26 +0000 (19:01 +0200)
commiteeef931a6a0596c2121e66dd70e1a36ef0fc576f
tree898cc5ff0b9b043e3e97e9987658489d28c24b8f
parent4b4c407a349620e4a6b9cb36b77778fccb7ff00f
Support gdbarch_convert_register_p targets in address_from_register

Since the last change to address_from_register, it no longer supports
targets that require a special conversion (gdbarch_convert_register_p)
for plain pointer type; I had assumed no target does so.

This turned out to be incorrect: MIPS64 n32 big-endian needs such a
conversion in order to properly sign-extend pointer values.

This patch fixes this regression by handling targets that need a
special conversion in address_from_register as well.

gdb/ChangeLog:

* findvar.c (address_from_register): Handle targets requiring
a special conversion routine even for plain pointer types.
gdb/ChangeLog
gdb/findvar.c