This is an automated email from Gerrit. "Richard Allen <rsa...@gmail.com>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8603
-- gerrit commit 515e81d798f41a769fb5eb39d678f836b654dc47 Author: Richard Allen <rsa...@gmail.com> 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 <rsa...@gmail.com> diff --git a/src/target/target.c b/src/target/target.c index 6c474899a4..d563be6d5f 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -4205,7 +4205,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; --