summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2021-04-28 22:45:34 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2021-04-28 22:45:34 +0000
commit10f7ce7d3e951951ff557203ff4e1acb0326e58f (patch)
tree57c51a49d8f547bffc62c02208ff4304d7261707 /gnu
parentb6df56ae75e0ee5fedcc87df469bdcd010035f67 (diff)
Enable libunwind on riscv64
getWCookie() is an OpenBSD addition that is needed on new architectures. ok kettenis@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/llvm/libunwind/src/Registers.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/llvm/libunwind/src/Registers.hpp b/gnu/llvm/libunwind/src/Registers.hpp
index 3fd8b8abf1d..16824caa042 100644
--- a/gnu/llvm/libunwind/src/Registers.hpp
+++ b/gnu/llvm/libunwind/src/Registers.hpp
@@ -3894,6 +3894,7 @@ public:
void setSP(uint64_t value) { _registers[2] = value; }
uint64_t getIP() const { return _registers[0]; }
void setIP(uint64_t value) { _registers[0] = value; }
+ uint64_t getWCookie() const { return 0; }
private:
// _registers[0] holds the pc