mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-28 11:52:25 +00:00
This patch changes the Process class so that it delays *physically* enabling/disabling breakpoints until the process is about to resume/detach/be destroyed, potentially reducing the packets transmitted by batching all breakpoints together. Most classes only need to know whether a breakpoint is "logically" enabled, as opposed to "physically" enabled (i.e. the remote server has actually enabled the breakpoint). However, lower level classes like derived Process classes, or StopInfo may actually need to know whether the breakpoint was physically enabled. As such, this commit also adds a "IsPhysicallyEnabled" API. The following PRs are related to the MultiBreakpoint feature: * https://github.com/llvm/llvm-project/pull/192910 * https://github.com/llvm/llvm-project/pull/192914 * https://github.com/llvm/llvm-project/pull/192915 * https://github.com/llvm/llvm-project/pull/192919 * https://github.com/llvm/llvm-project/pull/192962 * https://github.com/llvm/llvm-project/pull/192964 * https://github.com/llvm/llvm-project/pull/192971 * https://github.com/llvm/llvm-project/pull/192988
7 lines
121 B
C
7 lines
121 B
C
int break_on_me() {
|
|
int i = 10; // breakhere
|
|
i++;
|
|
return i; // secondbreak
|
|
}
|
|
|
|
int main() { return break_on_me(); }
|