summaryrefslogtreecommitdiff
path: root/src/trace.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace.rs')
-rw-r--r--src/trace.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trace.rs b/src/trace.rs
index 2341394..157f2e7 100644
--- a/src/trace.rs
+++ b/src/trace.rs
@@ -66,7 +66,7 @@ pub fn trace(pid: Pid, args: &Args) -> anyhow::Result<Vec<RegistersData>> {
while let Some(reg) = trace_next(pid)? {
have_to_print ^= true;
if have_to_print {
- if !filters.is_empty() && !filters.contains(&reg.rax()) {
+ if !filters.is_empty() && !filters.contains(&reg.name()) {
continue;
}