diff options
Diffstat (limited to 'gdbsupport/common-regcache.h')
-rw-r--r-- | gdbsupport/common-regcache.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gdbsupport/common-regcache.h b/gdbsupport/common-regcache.h index e462f53..551b769 100644 --- a/gdbsupport/common-regcache.h +++ b/gdbsupport/common-regcache.h @@ -23,22 +23,22 @@ /* This header is a stopgap until we have an independent regcache. */ enum register_status : signed char - { - /* The register value is not in the cache, and we don't know yet +{ + /* The register value is not in the cache, and we don't know yet whether it's available in the target (or traceframe). */ - REG_UNKNOWN = 0, + REG_UNKNOWN = 0, - /* The register value is valid and cached. */ - REG_VALID = 1, + /* The register value is valid and cached. */ + REG_VALID = 1, - /* The register value is unavailable. E.g., we're inspecting a + /* The register value is unavailable. E.g., we're inspecting a traceframe, and this register wasn't collected. Note that this is different a different "unavailable" from saying the register does not exist in the target's architecture --- in that case, the target should have given us a target description that does not include the register in the first place. */ - REG_UNAVAILABLE = -1 - }; + REG_UNAVAILABLE = -1 +}; /* Return a pointer to the register cache associated with the thread specified by PTID. This function must be provided by @@ -62,8 +62,9 @@ extern CORE_ADDR regcache_read_pc (struct regcache *regcache); extern CORE_ADDR regcache_read_pc_protected (regcache *regcache); /* Read a raw register into a unsigned integer. */ -extern enum register_status regcache_raw_read_unsigned - (struct regcache *regcache, int regnum, ULONGEST *val); +extern enum register_status +regcache_raw_read_unsigned (struct regcache *regcache, int regnum, + ULONGEST *val); ULONGEST regcache_raw_get_unsigned (struct regcache *regcache, int regnum); |