|
From: openocd-gerrit <ope...@us...> - 2026-05-17 20:57:53
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main OpenOCD repository".
The branch, master has been updated
via c177844f4ae148846c1086c898ad1ace51f4dcd6 (commit)
from 6fc1cf08562f30bfb9dc8b9ac8cbe0a4594fdcec (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c177844f4ae148846c1086c898ad1ace51f4dcd6
Author: Richard Allen <rs...@gm...>
Date: Fri Nov 29 12:27:40 2024 -0600
target: const-correct write_gmon
Mark samples buffer pointer as const, since
write_gmon() will not change it.
Change-Id: I38276dd1be013ee5981b0264b7cbb08c32a1a2a2
Signed-off-by: Richard Allen <rs...@gm...>
Reviewed-on: https://review.openocd.org/c/openocd/+/8603
Reviewed-by: Antonio Borneo <bor...@gm...>
Reviewed-by: Samuel Obuch <sam...@es...>
Tested-by: jenkins
diff --git a/src/target/target.c b/src/target/target.c
index d0776834e..105a38881 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -4155,7 +4155,7 @@ static void write_string(FILE *f, char *s)
typedef unsigned char UNIT[2]; /* unit of profiling */
/* Dump a gmon.out histogram file. */
-static void write_gmon(uint32_t *samples, uint32_t sample_num, const char *filename, bool with_range,
+static void write_gmon(const uint32_t *samples, uint32_t sample_num, const char *filename, bool with_range,
uint32_t start_address, uint32_t end_address, struct target *target, uint32_t duration_ms)
{
uint32_t i;
-----------------------------------------------------------------------
Summary of changes:
src/target/target.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
Main OpenOCD repository
|