Skip to content

Commit

Permalink
Fix multiline string indentation regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jul 27, 2023
1 parent 3cddb47 commit 72338de
Showing 1 changed file with 25 additions and 41 deletions.
66 changes: 25 additions & 41 deletions src/agent/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,21 @@ function _configHelpJavaWait() {

function _configHelpSearchIn() {
return `Specify which memory ranges to search in, possible values:
perm:--- filter by permissions (default: 'perm:r--')
current search the range containing current offset
heap search inside the heap allocated regions
path:pattern search ranges mapping paths containing 'pattern'
perm:--- filter by permissions (default: 'perm:r--')
current search the range containing current offset
heap search inside the heap allocated regions
path:pattern search ranges mapping paths containing 'pattern'
`;
}

function _configHelpStalkerEvent() {
return `Specify the event to use when stalking, possible values:
call trace calls
ret trace returns
exec trace every instruction
block trace basic block execution (every time)
compile trace basic blocks once (this is the default)
call trace calls
ret trace returns
exec trace every instruction
block trace basic block execution (every time)
compile trace basic blocks once (this is the default)
`;
}

Expand All @@ -113,29 +112,22 @@ function _configHelpStalkerTimeout() {
function _configHelpFileLog() {
return `Set filename to save all the tracing logs generated by :dt
string specify file path of the log file
`;
string specify file path of the log file`;
}

function _configHelpHookUseCmd() {
return `Use the given command when registering a new trace (dt) or injection (di) to be executed when hits
'' | 'r2cmd' the r2 command will be executed from the host side and r2frida commands can be also recursively called
`;
'' | 'r2cmd' the r2 command will be executed from the host side and r2frida commands can be also recursively called`;
}

function _configHelpHookVerbose() {
return `Show trace messages to the console. They are also logged in :dtl
true | false to enable or disable the option
`;
true | false to enable or disable the option`;
}

function _configHelpHookLogs() {
return `Save hook trace logs internally in the agent. Use :dtl to list them
true | false to enable or disable the option (enabled by default)
`;
true | false to enable or disable the option (enabled by default)`;
}

function _configHelpHookOutput() {
Expand All @@ -147,33 +139,25 @@ function _configHelpHookOutput() {

function _configHelpHookBacktrace() {
return `Append the backtrace on each trace hook registered with :dt commands
true | false to enable or disable the option
`;
true | false to enable or disable the option`;
}

function _configHelpStalkerIn() {
return `Restrict stalker results based on where the event has originated:
raw stalk everywhere (the default)
app stalk only in the app module
modules stalk in app module and all linked libraries
`;
raw stalk everywhere (the default)
app stalk only in the app module
modules stalk in app module and all linked libraries`;
}

function _configHelpSymbolsModule() {
return `When set ignore offset to tell frida which module to use for symbols:
See :dm command to get all maps and :dmm for modules
`;
See :dm command to get all maps and :dmm for modules`;
}

function _configHelpSymbolsUnredact() {
return `Try to get symbol names from debug symbols when they're "redacted":
true try to unredact (the default)
false do not attempt to unredact
`;
true try to unredact (the default)
false do not attempt to unredact`;
}

function _configValidateStalkerTimeout(val: number): boolean {
Expand Down Expand Up @@ -290,11 +274,11 @@ export function evalConfigSearch(args: string[]) {
const from = currentRange.base;
const to = from.add(currentRange.size);
return `e search.in=range
e search.from=${from}
e search.to=${to}
e anal.in=range
e anal.from=${from}
e anal.to=${to}`;
e search.from=${from}
e search.to=${to}
e anal.in=range
e anal.from=${from}
e anal.to=${to}`;
}

export function set(k: string, v: any) {
Expand Down

0 comments on commit 72338de

Please sign in to comment.