dart-sdk/build/config
Vyacheslav Egorov 5ddb1b8ea7 [vm/service] Use getline to read /proc/self/smaps
Previously the code was using `fgets` with a fixed
size buffer. This lead to a confusing behavior where
lines longer than 255 characters would be read
in multiple chunks and cause crashes in the parsing code.

Additionally make extraction of the path component slightly
more robust by searching for path field forward rather than
backwards. Path might contain white space and searching
backwards might stumble on that.

This is a reland of 95474f44f1
with changes to android min-sdk to make android ARM builds
succeed (getline requires SDK 18+).

TEST=manually

Change-Id: I8b36fcd178680aed7f856bc884a5cd188a5f6e85
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/319480
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2023-08-09 12:59:31 +00:00
..
android [vm/service] Use getline to read /proc/self/smaps 2023-08-09 12:59:31 +00:00
c++
clang
compiler
gcc
linux
mac
sanitizers
templates
win
arm.gni
BUILD.gn
BUILDCONFIG.gn [build] Build libcxx from source when using TSAN. 2023-07-18 23:01:12 +00:00
host_byteorder.gni
locales.gni
sysroot.gni [infra] Add sysroot config for alpine linux riscv64 2023-06-13 09:53:05 +00:00