[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 19/23] contrib/plugins: fix imatch
From: |
Alex Bennée |
Subject: |
[PATCH 19/23] contrib/plugins: fix imatch |
Date: |
Fri, 16 Feb 2024 16:30:21 +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 09/23] gdbstub: Infer number of core registers from XML, (continued)
- [PATCH 09/23] gdbstub: Infer number of core registers from XML, Alex Bennée, 2024/02/16
- [PATCH 11/23] gdbstub: Add members to identify registers to GDBFeature, Alex Bennée, 2024/02/16
- [PATCH 08/23] gdbstub: Simplify XML lookup, Alex Bennée, 2024/02/16
- [PATCH 12/23] plugins: remove previous n_vcpus functions from API, Alex Bennée, 2024/02/16
- [PATCH 07/23] gdbstub: Change gdb_get_reg_cb and gdb_set_reg_cb, Alex Bennée, 2024/02/16
- [PATCH 13/23] plugins: add qemu_plugin_num_vcpus function, Alex Bennée, 2024/02/16
- [PATCH 23/23] docs/devel: plugins can trigger a tb flush, Alex Bennée, 2024/02/16
- [PATCH 22/23] docs/devel: document some plugin assumptions, Alex Bennée, 2024/02/16
- [PATCH 20/23] contrib/plugins: extend execlog to track register changes, Alex Bennée, 2024/02/16
- [PATCH 19/23] contrib/plugins: fix imatch,
Alex Bennée <=
- [PATCH 17/23] gdbstub: expose api to find registers, Alex Bennée, 2024/02/16
- [PATCH 18/23] plugins: add an API to read registers, Alex Bennée, 2024/02/16
- Re: [PATCH 18/23] plugins: add an API to read registers, Akihiko Odaki, 2024/02/17
- Re: [PATCH 18/23] plugins: add an API to read registers, Alex Bennée, 2024/02/20
- Re: [PATCH 18/23] plugins: add an API to read registers, Akihiko Odaki, 2024/02/20
- Re: [PATCH 18/23] plugins: add an API to read registers, Alex Bennée, 2024/02/21
- Re: [PATCH 18/23] plugins: add an API to read registers, Akihiko Odaki, 2024/02/21
- Re: [PATCH 18/23] plugins: add an API to read registers, Alex Bennée, 2024/02/21
- Re: [PATCH 18/23] plugins: add an API to read registers, Akihiko Odaki, 2024/02/22
- Re: [PATCH 18/23] plugins: add an API to read registers, Alex Bennée, 2024/02/22