32 Commits

Author SHA1 Message Date
Saleem Abdulrasool
0b953adb44 SwiftInspectLinux: re-order initialization
It seems that a recent change to the compiler will now optimize the
initializer and then the SIL verifier will fail due to the unintialized
member when the initializer is throwing and will never return without
initializing the member unless the initialization fails.
2025-04-22 11:15:14 -07:00
Andrew Rogers
f2649f20c8 PR Feedback: make PTrace.init fileprivate 2025-01-15 10:55:31 -08:00
Andrew Rogers
a4a7384de4 add CMake build support for Android 2025-01-13 08:56:01 -08:00
Andrew Rogers
5cc83ccd88 Merge branch 'main' into swift-inspect-android 2025-01-06 13:40:26 -08:00
Andrew Rogers
9604994645 PR Feedback: make PTrace a non-copyable struct 2025-01-06 13:09:41 -08:00
Andrew Rogers
5488f2fa88 PR Feedback: improve PTrace implementation 2025-01-06 12:46:39 -08:00
Andrew Rogers
d965cc6612 [swift-inspect] add #pragma once to system header wrappers 2024-12-18 13:20:44 -08:00
Andrew Rogers
c0257d8f53 add missing copyright header to RegisterSet.swift 2024-12-18 11:51:08 -08:00
Andrew Rogers
03dae5d175 [swift-inspect] minor cleanup and documentation 2024-12-18 11:51:08 -08:00
Andrew Rogers
0a436ba32f [swift-inspect] minor cleanup 2024-12-18 11:51:08 -08:00
Andrew Rogers
ac3fec1abe [swift-inspect] move Android-specific memory region naming to Android
class
2024-12-18 11:51:08 -08:00
Andrew Rogers
714ce52eeb [swift-inspect] indent RegisterSet.swift 2024-12-18 11:51:08 -08:00
Andrew Rogers
d7e8c74616 [swift-inspect] add ptrace retries 2024-12-18 11:51:07 -08:00
Andrew Rogers
43c9623d2c [swift-inspect] misc cleanup 2024-12-18 11:51:07 -08:00
Andrew Rogers
e90f5c5d4b [swift-inspect] refactor heap iteration 2024-12-18 11:51:07 -08:00
Andrew Rogers
f981f35fb5 [swift-inspect] full Android implementation including heap iteration 2024-12-18 11:51:07 -08:00
Andrew Rogers
627f7876b5 PR feedback in ElfFile.init 2024-12-16 13:49:05 -08:00
Andrew Rogers
b12188296f use memory-mapped IO instead of file reads 2024-12-16 12:54:18 -08:00
Andrew Rogers
b7dff4232e PR feedback 2024-12-16 11:41:00 -08:00
Andrew Rogers
3aef500131 formatting fixes and missed copyright date updates 2024-12-10 10:34:18 -08:00
Andrew Rogers
61f6b0e704 PR Feedback: make ProcFS an enum instead of a class 2024-12-05 09:57:57 -08:00
Andrew Rogers
278f90cf93 PR feedback: fix typo 2024-12-04 13:52:03 -08:00
Andrew Rogers
e702be9cdc PR feedback: rework error definitions 2024-12-04 13:50:34 -08:00
Andrew Rogers
6e466c44e1 minimize ELF parsing support to ELF64 only 2024-12-04 13:10:56 -08:00
Andrew Rogers
48cd587866 PR feedback: add Process.readRawString to get byte count in GetStringLengthFunction 2024-12-04 11:35:12 -08:00
Andrew Rogers
5a277d499d PR feedback: short-circuit return on readArray of 0 items 2024-12-04 11:23:32 -08:00
Andrew Rogers
671db08c1d PR feedback: use precondition in place of assert 2024-12-04 11:19:54 -08:00
Andrew Rogers
3b0e5bb160 consistent use of /proc 2024-12-04 11:19:25 -08:00
Andrew Rogers
9e5f0ca9cd PR feedback: update copyright to 2024 2024-12-04 11:00:37 -08:00
Andrew Rogers
6dc7c3265d address some code review comments 2024-12-03 17:15:02 -08:00
Andrew Rogers
4906ed9c36 [linux] define _GNU_SOURCE for process_vm_readv 2024-12-03 15:53:05 -08:00
Andrew Rogers
2ee5d15886 [linux] swift-inspect support for Linux 2024-12-03 14:47:16 -08:00