[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 39/43] contrib/plugins: fix imatch
From: |
Alex Bennée |
Subject: |
[PATCH v2 39/43] contrib/plugins: fix imatch |
Date: |
Wed, 3 Jan 2024 17:33:45 +0000 |
We can't directly save the ephemeral imatch from argv as that memory
will get recycled.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
contrib/plugins/execlog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/plugins/execlog.c b/contrib/plugins/execlog.c
index 82dc2f584e2..f262e5555eb 100644
--- a/contrib/plugins/execlog.c
+++ b/contrib/plugins/execlog.c
@@ -199,7 +199,7 @@ static void parse_insn_match(char *match)
if (!imatches) {
imatches = g_ptr_array_new();
}
- g_ptr_array_add(imatches, match);
+ g_ptr_array_add(imatches, g_strdup(match));
}
static void parse_vaddr_match(char *match)
--
2.39.2
- [PATCH v2 20/43] mtest2make: stop disabling meson test timeouts, (continued)
- [PATCH v2 20/43] mtest2make: stop disabling meson test timeouts, Alex Bennée, 2024/01/03
- [PATCH v2 42/43] docs/devel: lift example and plugin API sections up, Alex Bennée, 2024/01/03
- [PATCH v2 22/43] hw/riscv: Use misa_mxl instead of misa_mxl_max, Alex Bennée, 2024/01/03
- [PATCH v2 18/43] tests/unit: Bump test-crypto-block test timeout to 5 minutes, Alex Bennée, 2024/01/03
- [PATCH v2 37/43] gdbstub: expose api to find registers, Alex Bennée, 2024/01/03
- [PATCH v2 19/43] tests/fp: Bump fp-test-mulAdd test timeout to 3 minutes, Alex Bennée, 2024/01/03
- [PATCH v2 30/43] gdbstub: Use GDBFeature for GDBRegisterState, Alex Bennée, 2024/01/03
- [PATCH v2 39/43] contrib/plugins: fix imatch,
Alex Bennée <=
- [PATCH v2 41/43] contrib/plugins: optimise the register value tracking, Alex Bennée, 2024/01/03
- [PATCH v2 24/43] target/riscv: Move misa_mxl_max to class, Alex Bennée, 2024/01/03
- [PATCH v2 26/43] target/arm: Use GDBFeature for dynamic XML, Alex Bennée, 2024/01/03
- [PATCH v2 29/43] gdbstub: Use GDBFeature for gdb_register_coprocessor, Alex Bennée, 2024/01/03
- [PATCH v2 21/43] readthodocs: fully specify a build environment, Alex Bennée, 2024/01/03
- [PATCH v2 38/43] plugins: add an API to read registers, Alex Bennée, 2024/01/03