diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdbsupport/common-regcache.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
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); |