diff options
author | Alan Hayward <alan.hayward@arm.com> | 2017-06-22 14:09:52 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2017-06-22 14:10:34 +0100 |
commit | 4fa847d78edd4a3901414655bd4b31234b91ba2a (patch) | |
tree | 2e3db21979a1c9f660987321ba5cfe118f1dee75 /gdb/regcache.h | |
parent | 48580982ef41907a45cda259a63d9e6878cbbea3 (diff) | |
download | gdb-4fa847d78edd4a3901414655bd4b31234b91ba2a.zip gdb-4fa847d78edd4a3901414655bd4b31234b91ba2a.tar.gz gdb-4fa847d78edd4a3901414655bd4b31234b91ba2a.tar.bz2 |
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.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r-- | gdb/regcache.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h index 3f3f823..b416d5e 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -232,6 +232,14 @@ enum regcache_dump_what regcache_dump_remote }; +/* A (register_number, register_value) pair. */ + +typedef struct cached_reg +{ + int num; + gdb_byte *data; +} cached_reg_t; + /* The register cache for storing raw register values. */ class regcache |