forked from auracaster/openocd
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>
This commit is contained in:
committed by
Matthias Welwarsky
parent
d92adf8abf
commit
e65acd889c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user