From 20872945106c67962ad17853d53ed20ad95d2338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Thu, 29 Mar 2018 11:37:25 +0200 Subject: [PATCH] Implement simple HistoryMonitor for GDB monitoring --- lib/tfw/components/history_monitor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/tfw/components/history_monitor.py b/lib/tfw/components/history_monitor.py index cd68a09..a4ce76e 100644 --- a/lib/tfw/components/history_monitor.py +++ b/lib/tfw/components/history_monitor.py @@ -70,3 +70,9 @@ class BashMonitor(HistoryMonitor): def sanitize_command(self, command): return command.strip() + + +class GDBMonitor(HistoryMonitor): + @property + def command_pattern(self): + return r'(?<=\n)\+(.+)\n'