[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 25/29] contrib/plugins: fix imatch
From: |
Alex Bennée |
Subject: |
[PATCH v4 25/29] contrib/plugins: fix imatch |
Date: |
Tue, 27 Feb 2024 14:43:31 +0000 |
We can't directly save the ephemeral imatch from argv as that memory
will get recycled.
Message-Id: <20240103173349.398526-40-alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@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 v4 12/29] gdbstub: Infer number of core registers from XML, (continued)
- [PATCH v4 12/29] gdbstub: Infer number of core registers from XML, Alex Bennée, 2024/02/27
- [PATCH v4 10/29] gdbstub: Change gdb_get_reg_cb and gdb_set_reg_cb, Alex Bennée, 2024/02/27
- [PATCH v4 05/29] target/arm: Use GDBFeature for dynamic XML, Alex Bennée, 2024/02/27
- [PATCH v4 06/29] target/ppc: Use GDBFeature for dynamic XML, Alex Bennée, 2024/02/27
- [PATCH v4 08/29] gdbstub: Use GDBFeature for gdb_register_coprocessor, Alex Bennée, 2024/02/27
- [PATCH v4 14/29] gdbstub: Add members to identify registers to GDBFeature, Alex Bennée, 2024/02/27
- [PATCH v4 29/29] docs/devel: plugins can trigger a tb flush, Alex Bennée, 2024/02/27
- [PATCH v4 16/29] plugins: add qemu_plugin_num_vcpus function, Alex Bennée, 2024/02/27
- [PATCH v4 17/29] plugins: fix order of init/idle/resume callback, Alex Bennée, 2024/02/27
- [PATCH v4 13/29] hw/core/cpu: Remove gdb_get_dynamic_xml member, Alex Bennée, 2024/02/27
- [PATCH v4 25/29] contrib/plugins: fix imatch,
Alex Bennée <=
- [PATCH v4 15/29] plugins: remove previous n_vcpus functions from API, Alex Bennée, 2024/02/27
- [PATCH v4 19/29] cpu: call plugin init hook asynchronously, Alex Bennée, 2024/02/27
- [PATCH v4 28/29] docs/devel: document some plugin assumptions, Alex Bennée, 2024/02/27
- [PATCH v4 21/29] gdbstub: expose api to find registers, Alex Bennée, 2024/02/27
- [PATCH v4 26/29] contrib/plugins: extend execlog to track register changes, Alex Bennée, 2024/02/27
- [PATCH v4 27/29] docs/devel: lift example and plugin API sections up, Alex Bennée, 2024/02/27
- [PATCH v4 23/29] plugins: add an API to read registers, Alex Bennée, 2024/02/27
- [PATCH v4 20/29] plugins: Use different helpers when reading registers, Alex Bennée, 2024/02/27