From 3cd8157c52121bd6cf9b3f7b3dd047ba6ca9974f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sat, 6 Feb 2016 03:00:04 +0100 Subject: [PATCH] Fix path escaping issue --- src/frida/tracer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frida/tracer.py b/src/frida/tracer.py index 09a21d7..2120b5a 100644 --- a/src/frida/tracer.py +++ b/src/frida/tracer.py @@ -787,10 +787,10 @@ def main(): self._print("%6d ms %s%s%s%s" % (timestamp, attributes, indent, message, no_attributes)) def on_trace_handler_create(self, function, handler, source): - self._print("%s: Auto-generated handler at \"%s\"" % (function, source)) + self._print("%s: Auto-generated handler at \"%s\"" % (function, source.replace("\\", "\\\\"))) def on_trace_handler_load(self, function, handler, source): - self._print("%s: Loaded handler at \"%s\"" % (function, source)) + self._print("%s: Loaded handler at \"%s\"" % (function, source.replace("\\", "\\\\"))) def _get_attributes(self, thread_id): attributes = self._attributes_by_thread_id.get(thread_id, None)