X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Ftarget.c;h=478c39d1bba3a6f2051a9f46fbf4db1003f4775c;hp=060fbdca5af8e7eaf6713c7a8d3df338c2538b07;hb=24654759d5fd92c0dbafac40c8604842dd6d6709;hpb=6823a97beb706a5a3a4b7f813d33a7f3faadf2f0 diff --git a/src/target/target.c b/src/target/target.c index 060fbdca5a..478c39d1bb 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -1205,6 +1205,16 @@ int target_get_gdb_reg_list(struct target *target, { return target->type->get_gdb_reg_list(target, reg_list, reg_list_size, reg_class); } + +bool target_supports_gdb_connection(struct target *target) +{ + /* + * based on current code, we can simply exclude all the targets that + * don't provide get_gdb_reg_list; this could change with new targets. + */ + return !!target->type->get_gdb_reg_list; +} + int target_step(struct target *target, int current, target_addr_t address, int handle_breakpoints) {