swiftlang / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Swift’s stable releases of Clang as well as support the Swift project.
https://llvm.org
Other
1.11k stars 328 forks source link

[GDBRemote] Fix processing of comma-separated memory region entries #9176

Closed felipepiovezan closed 3 weeks ago

felipepiovezan commented 3 weeks ago

The existing algorithm was performing the following comparisons for an aaa,bbb,ccc,ddd:

aaa\0bbb,ccc,ddd == "stack" aaa\0bbb\0ccc,ddd == "stack" aaa\0bbb\0ccc\0ddd == "stack"

Which wouldn't work. This commit just dispatches to a known algorithm implementation.