aboutsummaryrefslogtreecommitdiff
path: root/src/target/target.h
diff options
context:
space:
mode:
authorSteven Stallion <stallion@squareup.com>2017-03-21 10:33:09 -0500
committerMatthias Welwarsky <matthias@welwarsky.de>2018-10-16 11:58:10 +0100
commite65acd889c61a424c7bd72fdee5d6a3aee1d8504 (patch)
treecbd8a13b34ada89a99b6090ba0ec650588f70120 /src/target/target.h
parentd92adf8abf6257c2d58ba409731f4d7fa5aa6b5f (diff)
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 <stallion@squareup.com> Reviewed-on: http://openocd.zylin.com/4078 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Diffstat (limited to 'src/target/target.h')
-rw-r--r--src/target/target.h7
1 files changed, 7 insertions, 0 deletions
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
@@ -473,6 +473,13 @@ 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.
*
* This routine is a wrapper for target->type->get_gdb_reg_list.