This is an automated email from Gerrit. Steven Stallion ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/3535
-- gerrit commit 13c5a4473743fef75ef55d591c124e25cdba97c8 Author: Steven Stallion <[email protected]> Date: Thu Jun 30 22:06:41 2016 -0500 target: Send semihosting output to log It is often useful to receive semihosting output (SYS_WRITEC/SYS_WRITE0) in GDB during debugging. This patch substitutes calls to putchar for LOG_USER_N. I suspect this may be contentious, so I kept the changes simple in the hopes this can be iterated upon. Change-Id: I411021560cbe5ef32244db79b3294177b25e973c Signed-off-by: Steven Stallion <[email protected]> diff --git a/src/target/arm_semihosting.c b/src/target/arm_semihosting.c index 2fd6580..94b4ce8 100644 --- a/src/target/arm_semihosting.c +++ b/src/target/arm_semihosting.c @@ -129,7 +129,7 @@ static int do_semihosting(struct target *target) retval = target_read_memory(target, r1, 1, 1, &c); if (retval != ERROR_OK) return retval; - putchar(c); + LOG_USER_N("%c", c); result = 0; } break; @@ -142,7 +142,7 @@ static int do_semihosting(struct target *target) return retval; if (!c) break; - putchar(c); + LOG_USER_N("%c", c); } while (1); result = 0; break; -- ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
