base,python: Fix to allow multiple --debug-ignore values.
authorIsaac Sánchez Barrera <isaac.sanchez@bsc.es>
Wed, 20 Mar 2019 13:32:22 +0000 (14:32 +0100)
committerIsaac Sánchez Barrera <isaac.sanchez@bsc.es>
Tue, 26 Mar 2019 07:25:11 +0000 (07:25 +0000)
commitca4c0a168ae3a48fe97f0c132fefbf606d925bb8
treeb321f70aa9285ed1f55a6eee5a0bea3facb7c49b
parent149c1fc2d070a8ce073263880ecf2ccf7535e569
base,python: Fix to allow multiple --debug-ignore values.

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 <isaac.sanchez@bsc.es>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17488
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/base/match.cc
src/base/match.hh
src/base/trace.hh
src/python/pybind11/debug.cc