From ca4c0a168ae3a48fe97f0c132fefbf606d925bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20S=C3=A1nchez=20Barrera?= Date: Wed, 20 Mar 2019 14:32:22 +0100 Subject: base,python: Fix to allow multiple --debug-ignore values. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When adding multiple SimObjects to --debug-ignore, either separating the values with a colon or adding multiple --debug-ignore flags, the previous code only ignored the last SimObject in the list. This changeset adds and uses new `ObjectMatch::add` and `Logger::addIgnore` methods to make the functionality of the flag consistent with its description. Change-Id: Ib6967a48611ea59a211f81af2a970c4de429b1be Signed-off-by: Isaac Sánchez Barrera Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17488 Reviewed-by: Jason Lowe-Power Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/base/match.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/base/match.cc') diff --git a/src/base/match.cc b/src/base/match.cc index dc621b482..03f425f2e 100644 --- a/src/base/match.cc +++ b/src/base/match.cc @@ -43,6 +43,12 @@ ObjectMatch::ObjectMatch(const string &expr) setExpression(expr); } +void +ObjectMatch::add(const ObjectMatch &other) +{ + tokens.insert(tokens.end(), other.tokens.begin(), other.tokens.end()); +} + void ObjectMatch::setExpression(const string &expr) { -- cgit v1.2.3