[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 18/22] contrib/plugins: fix imatch
|
From: |
Alex Bennée |
|
Subject: |
[PULL 18/22] contrib/plugins: fix imatch |
|
Date: |
Tue, 16 Jan 2024 10:48:05 +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>
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
- [PULL 11/22] gdbstub: Simplify XML lookup, (continued)
- [PULL 11/22] gdbstub: Simplify XML lookup, Alex Bennée, 2024/01/16
- [PULL 19/22] contrib/plugins: extend execlog to track register changes, Alex Bennée, 2024/01/16
- [PULL 21/22] docs/devel: lift example and plugin API sections up, Alex Bennée, 2024/01/16
- [PULL 10/22] gdbstub: Change gdb_get_reg_cb and gdb_set_reg_cb, Alex Bennée, 2024/01/16
- [PULL 16/22] gdbstub: expose api to find registers, Alex Bennée, 2024/01/16
- [PULL 13/22] hw/core/cpu: Remove gdb_get_dynamic_xml member, Alex Bennée, 2024/01/16
- [PULL 22/22] docs/devel: document some plugin assumptions, Alex Bennée, 2024/01/16
- [PULL 15/22] plugins: Use different helpers when reading registers, Alex Bennée, 2024/01/16
- [PULL 18/22] contrib/plugins: fix imatch,
Alex Bennée <=
- [PULL 17/22] plugins: add an API to read registers, Alex Bennée, 2024/01/16
Re: [PULL 00/22] gdb cleanups and tcg plugin register access, Peter Maydell, 2024/01/18