fix(native): preserve source attribution and compiler ownership

This commit is contained in:
morluto
2026-10-14 02:40:36 +08:00
parent 60c34b6907
commit b576b347b1
3 changed files with 45 additions and 6 deletions
+4 -1
View File
@@ -122,7 +122,10 @@ export const nativeCodeLocationSchema = z.strictObject({
column: z.number().int().positive().nullable(),
})
.nullable()
.optional(),
.optional()
.describe(
"Compiler or debugger source attribution only; REA does not read or verify the named source-file bytes.",
),
});
/** One observed entry into a requested function or method. */
+1
View File
@@ -31,6 +31,7 @@ export const NATIVE_CALL_OBSERVATION_LIMITATIONS = [
"Registers are the raw integer argument registers at entry. For Objective-C methods the first two hold the receiver and the selector.",
"Receiver classes come from LLDB's Objective-C runtime reader without running target code; they are null for class methods and for receivers LLDB cannot classify.",
"Calls that never reach a symbol's entry, such as inlined code or objc_direct methods called directly, are not observed.",
"Source locations come from LLDB line-table metadata; REA does not read or verify the named source-file contents.",
"The target is launched directly under LLDB, not through LaunchServices; LLDB disables ASLR for it, so load addresses can equal file addresses.",
"The observation window is checked about once a second, and recording pauses the process at every entry, which slows it.",
] as const;