Remove MAX_REGISTER_SIZE from py-unwind.c
authorAlan Hayward <alan.hayward@arm.com>
Thu, 22 Jun 2017 13:09:52 +0000 (14:09 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Thu, 22 Jun 2017 13:10:34 +0000 (14:10 +0100)
commit4fa847d78edd4a3901414655bd4b31234b91ba2a
tree2e3db21979a1c9f660987321ba5cfe118f1dee75
parent48580982ef41907a45cda259a63d9e6878cbbea3
Remove MAX_REGISTER_SIZE from py-unwind.c

gdb/
* remote.c (cached_reg): Move from here...
* regcache.h (cached_reg): ...to here.
* python/py-unwind.c (struct reg_info): Remove.
(cached_frame_info): Use cached_reg_t.
(pyuw_prev_register): Likewise.
(pyuw_sniffer): Use cached_reg_t and allocate registers.
(pyuw_dealloc_cache): Free all registers.
gdb/ChangeLog
gdb/python/py-unwind.c
gdb/regcache.h
gdb/remote.c