llvm with tablegen backend for capstone disassembler
Go to file
Jason Molenda 933ad5c897 [lldb] Add 'modify' type watchpoints, make it default (#66308)
Watchpoints in lldb can be either 'read', 'write', or 'read/write'. This
is exposing the actual behavior of hardware watchpoints. gdb has a
different behavior: a "write" type watchpoint only stops when the
watched memory region *changes*.

A user is using a watchpoint for one of three reasons:

1. Want to find what is changing/corrupting this memory.
2. Want to find what is writing to this memory.
3. Want to find what is reading from this memory.

I believe (1) is the most common use case for watchpoints, and it
currently can't be done in lldb -- the user needs to continue every time
the same value is written to the watched-memory manually. I think gdb's
behavior is the correct one. There are some use cases where a developer
wants to find every function that writes/reads to/from a memory region,
regardless of value, I want to still allow that functionality.

This is also a bit of groundwork for my large watchpoint support
proposal
https://discourse.llvm.org/t/rfc-large-watchpoint-support-in-lldb/72116
where I will be adding support for AArch64 MASK watchpoints which watch
power-of-2 memory regions. A user might ask to watch 24 bytes, and a
MASK watchpoint stub can do this with a 32-byte MASK watchpoint if it is
properly aligned. And we need to ignore writes to the final 8 bytes of
that watched region, and not show those hits to the user.

This patch adds a new 'modify' watchpoint type and it is the default.

Re-landing this patch after addressing testsuite failures found in CI on
Linux, Intel machines, and windows.

rdar://108234227
2023-09-20 13:42:16 -07:00
.ci [ci] builkite don't escape windows targets (#66192) 2023-09-13 13:02:55 +02:00
.github Revert "[Workflow] Add new code format helper. (#66684)" 2023-09-20 10:01:37 +02:00
bolt [BOLT][runtime] Test for outline-atomics support 2023-09-19 23:29:05 +04:00
clang Fix sphinx bot build 2023-09-20 22:27:29 +02:00
clang-tools-extra [clang-tidy] Fix support for typedefs in readability-identifier-naming (#66835) 2023-09-20 21:29:54 +02:00
cmake
compiler-rt [NFC][hwasan] Collect heap allocations early (#66682) 2023-09-19 19:29:33 -07:00
cross-project-tests [Dexter] Associate parser errors with correct file (#66765) 2023-09-19 14:16:17 +01:00
flang [MLIR][OpenMP] Initial Lowering of Declare Target for Data 2023-09-20 13:31:15 -05:00
libc [libc][Obvious] Fix incorrect RPC opcode for clearerr 2023-09-20 11:54:35 -05:00
libclc libclc: Fix signed integer underflow in abs_diff 2023-08-31 14:28:16 +01:00
libcxx [libc++] Sort available features before printing them 2023-09-20 09:53:07 -04:00
libcxxabi Implement mangling rules for C++20 concepts and requires-expressions. 2023-09-20 12:38:15 -07:00
libunwind [libunwind][AIX] Fix up TOC register if unw_getcontext is called from a different module (#66549) 2023-09-19 10:37:30 -04:00
lld [ELF] Postpone "unable to move location counter backward" error (#66854) 2023-09-20 09:06:45 -07:00
lldb [lldb] Add 'modify' type watchpoints, make it default (#66308) 2023-09-20 13:42:16 -07:00
llvm [Coverage][llvm-cov] Enable MC/DC Support in LLVM Source-based Code Coverage (2/3) 2023-09-20 15:30:47 -05:00
llvm-libgcc [llvm-libgcc][CMake] Refactor llvm-libgcc (#65455) 2023-09-18 22:56:03 -07:00
mlir [MLIR][OpenMP] Initial Lowering of Declare Target for Data 2023-09-20 13:31:15 -05:00
openmp [MLIR][OpenMP] Initial Lowering of Declare Target for Data 2023-09-20 13:31:15 -05:00
polly Move CallInst::CreateFree to IRBuilderBase 2023-09-19 12:04:17 +02:00
pstl
runtimes [llvm-libgcc][CMake] Refactor llvm-libgcc (#65455) 2023-09-18 22:56:03 -07:00
third-party Reland "Update GoogleTest to v1.14.0 (#65823)" 2023-09-13 14:17:24 -07:00
utils [bazel] Port D149368 mlir openmp 2023-09-20 11:53:59 -07:00
.arcconfig
.arclint
.clang-format
.clang-tidy
.git-blame-ignore-revs Revert "[mlir][spirv] Add D155747 to .git-blame-ignore-revs" 2023-07-21 10:59:16 -04:00
.gitignore Revert accidental .gitignore change from 9b7763821a 2023-09-07 22:42:05 -07:00
.mailmap
CODE_OF_CONDUCT.md [llvm] Add CODE_OF_CONDUCT.md (#65816) 2023-09-09 10:55:31 -07:00
CONTRIBUTING.md Update CONTRIBUTING.md to remove the not about not accepting PR 2023-09-10 15:21:06 -07:00
LICENSE.TXT
README.md
SECURITY.md

The LLVM Compiler Infrastructure

Welcome to the LLVM project!

This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.

The LLVM project has multiple components. The core of the project is itself called "LLVM". This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.

C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.

Other components include: the libc++ C++ standard library, the LLD linker, and more.

Getting the Source Code and Building LLVM

Consult the Getting Started with LLVM page for information on building and running LLVM.

For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.

Getting in touch

Join the LLVM Discourse forums, Discord chat, or #llvm IRC channel on OFTC.

The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.