[Lldb-commits] [PATCH] D130972: [LLDB][NFC] Fix LLDB_WATCH_TYPE_IS_VALID macro
Slava Gurevich via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 2 13:05:48 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0a569274cb3b: [LLDB][NFC] Fix LLDB_WATCH_TYPE_IS_VALID macro (authored by fixathon).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130972/new/
https://reviews.llvm.org/D130972
Files:
lldb/include/lldb/lldb-defines.h
Index: lldb/include/lldb/lldb-defines.h
===================================================================
--- lldb/include/lldb/lldb-defines.h
+++ lldb/include/lldb/lldb-defines.h
@@ -45,7 +45,7 @@
#define LLDB_WATCH_TYPE_READ (1u << 0)
#define LLDB_WATCH_TYPE_WRITE (1u << 1)
#define LLDB_WATCH_TYPE_IS_VALID(type) \
- ((type | LLDB_WATCH_TYPE_READ) || (type | LLDB_WATCH_TYPE_WRITE))
+ ((type & LLDB_WATCH_TYPE_READ) || (type & LLDB_WATCH_TYPE_WRITE))
// Generic Register Numbers
#define LLDB_REGNUM_GENERIC_PC 0 // Program Counter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130972.449400.patch
Type: text/x-patch
Size: 588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220802/82a68fc7/attachment.bin>
More information about the lldb-commits
mailing list