java_deobfuscate: Update regex for logcat with space before PID

Change-Id: I48112c8f4524588bcec5904ba2b049aa711bfea6
Reviewed-on: https://chromium-review.googlesource.com/734239
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: agrieve <agrieve@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#511141}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f7552dac6ef9a55487d337bc903e8b3d8bb479f0
This commit is contained in:
Andrew Grieve 2017-10-24 14:29:49 +00:00 коммит произвёл Commit Bot
Родитель 281706c644
Коммит 815811f407
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -21,11 +21,11 @@ import proguard.retrace.ReTrace;
*/
public class FlushingReTrace {
// E.g.: D/ConnectivityService(18029): Message
// E.g.: W/GCM (15158): Message
// E.g.: W/GCM ( 151): Message
// E.g.: 09-08 14:22:59.995 18029 18055 I ProcessStatsService: Message
// E.g.: 09-08 14:30:59.145 17731 18020 D MDnsDS : Message
private static final String LOGCAT_PREFIX =
"(?:[VDIWEF]/.*?\\(\\d+\\): |\\d\\d-\\d\\d [0-9:. ]+[VDIWEF] .*?: )?";
"(?:[VDIWEF]/.*?\\( *\\d+\\): |\\d\\d-\\d\\d [0-9:. ]+[VDIWEF] .*?: )?";
// Note: Order of these sub-patterns defines their precedence.
// Note: Deobfuscation of methods without the presense of line numbers basically never works.

Просмотреть файл

@ -17,6 +17,7 @@ LINE_PREFIXES = [
'09-08 14:38:35.535 18029 18084 E qcom_sensors_hal: ',
# logcat
'W/GCM (15158): ',
'W/GCM ( 158): ',
]
TEST_MAP = """\