From e65acd889c61a424c7bd72fdee5d6a3aee1d8504 Mon Sep 17 00:00:00 2001 From: Steven Stallion Date: Tue, 21 Mar 2017 10:33:09 -0500 Subject: gdb_server: add support for architecture element This change adds optional support for a target to report architecture information in the target description to GDB. This is needed by some GDB implementations to properly support remote target with custom behavior. More information on the architecture element can be found here: https://sourceware.org/gdb/onlinedocs/gdb/Target-Description-Format.html#Target-Description-Format Change-Id: I57b19cae5ac3496256e4e5cc52cf6526ca5c322d Signed-off-by: Steven Stallion Reviewed-on: http://openocd.zylin.com/4078 Tested-by: jenkins Reviewed-by: Antonio Borneo Reviewed-by: Matthias Welwarsky --- src/target/target.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/target/target.h') diff --git a/src/target/target.h b/src/target/target.h index fe7e1a7d..5457f0ab 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -472,6 +472,13 @@ int target_remove_watchpoint(struct target *target, int target_hit_watchpoint(struct target *target, struct watchpoint **watchpoint); +/** + * Obtain the architecture for GDB. + * + * This routine is a wrapper for target->type->get_gdb_arch. + */ +const char *target_get_gdb_arch(struct target *target); + /** * Obtain the registers for GDB. * -- cgit v1.2.3-18-g5258