Skip to content
Commit d98968ab authored by Evgeny Astigeevich's avatar Evgeny Astigeevich Committed by Jacob Bramley
Browse files

Fix MaskAddresses to support AOSP toybox sed

In MaskAddresses sed is used to preprocess traces.
In AOSP switching to use a toybox sed instead of GNU sed for build tools was done.
Command line options and regular expressions for GNU sed don't work for the
toybox sed causing test failures:
1. Toybox sed does not support '--in-place --regexp-extended'.
2. Toybox sed does not support hexadecimal expressions.

The CL changes MaskAddresses to work with toybox sed:
1. Use '-i -E' instead of '--in-place --regexp-extended' because they
have the same meaning. GNU sed also supports '-i -E' instead of
'--in-place --regexp-extended'.
2. Encode the ESC character directly in the source.

As the CL makes some macros redundant the macros are removed.

Change-Id: I072e59ed765adff574c8890eb8610799602a1b78
parent 6af2cf40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment