]> git.sur5r.net Git - openocd/blobdiff - src/target/target.h
gdb_server: add support for architecture element
[openocd] / src / target / target.h
index 51a5b6935792e99d7d82c3cdf9df35feed4ed07a..5457f0abf63f2240f3b2a294b6312a10d2e899ed 100644 (file)
@@ -206,6 +206,8 @@ struct target {
        /* file-I/O information for host to do syscall */
        struct gdb_fileio_info *fileio_info;
 
+       char *gdb_port_override;                        /* target-specific override for gdb_port */
+
        /* The semihosting information, extracted from the target. */
        struct semihosting *semihosting;
 };
@@ -470,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.
  *
@@ -479,6 +488,13 @@ int target_get_gdb_reg_list(struct target *target,
                struct reg **reg_list[], int *reg_list_size,
                enum target_register_class reg_class);
 
+/**
+ * Check if @a target allows GDB connections.
+ *
+ * Some target do not implement the necessary code required by GDB.
+ */
+bool target_supports_gdb_connection(struct target *target);
+
 /**
  * Step the target.
  *