]> git.sur5r.net Git - openocd/blobdiff - src/target/target.c
gdb_server: add support for architecture element
[openocd] / src / target / target.c
index 3aaebcd49f4666f351dc93a3aef23f7755513835..c1ccf962e9cd514f12394d6f2e089d60e9738d9b 100644 (file)
@@ -1199,6 +1199,13 @@ int target_hit_watchpoint(struct target *target,
        return target->type->hit_watchpoint(target, hit_watchpoint);
 }
 
+const char *target_get_gdb_arch(struct target *target)
+{
+       if (target->type->get_gdb_arch == NULL)
+               return NULL;
+       return target->type->get_gdb_arch(target);
+}
+
 int target_get_gdb_reg_list(struct target *target,
                struct reg **reg_list[], int *reg_list_size,
                enum target_register_class reg_class)