fix(ghidra): resolve file offsets in decompile (#2101)
* fix(native): expose loaded image bases in overviews * test(ghidra): retain resources when verifier cleanup fails * docs(ghidra): spell out file-offset address mapping * fix(ci): separate and retry NativeAOT dependency restoration * fix(test): resolve CI script file URLs on Windows * fix(native): retain conflict observations and actionable CLI guidance * fix(fixtures): keep NativeAOT retry logs credential-safe * fix(fixtures): redact authenticated URLs at diagnostic creation * fix(ghidra): restrict source-coordinate observations to decompilation * fix(cli): identify conflicting file-offset selectors accurately * fix(ghidra): bind file offsets to admitted target sources * fix(ghidra): preserve resolved file-offset failure context * test(ghidra): verify ELF address and file-offset round trips * test(nativeaot): align diagnostic regressions with fixture host support
This commit is contained in:
@@ -137,6 +137,13 @@ const registerDecompileCommand = (
|
||||
.describe(
|
||||
"Procedure name or address; use --procedure=<value> for leading dashes",
|
||||
),
|
||||
"file-offset": z
|
||||
.string()
|
||||
.regex(/^0x[0-9a-fA-F]+$/u)
|
||||
.optional()
|
||||
.describe(
|
||||
"Ghidra source-file byte offset; mapped internally to an analysis address",
|
||||
),
|
||||
snapshot: z
|
||||
.string()
|
||||
.min(1)
|
||||
@@ -152,8 +159,17 @@ const registerDecompileCommand = (
|
||||
{
|
||||
procedure: resolveCliAnalysisSelector(
|
||||
args.address,
|
||||
options.procedure,
|
||||
"procedure",
|
||||
options["file-offset"] === undefined
|
||||
? options.procedure
|
||||
: resolveCliAnalysisSelector(
|
||||
options.procedure,
|
||||
`file-offset:${options["file-offset"]}`,
|
||||
"file-offset",
|
||||
"procedure_pseudo_code",
|
||||
),
|
||||
options["file-offset"] === undefined
|
||||
? "procedure"
|
||||
: "file-offset",
|
||||
"procedure_pseudo_code",
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user