X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Ftarget_type.h;h=bc42c2d16e630a3516868cb7033a6679c127e669;hb=1b0ffa97ea90c09e96b068450644e462102c10ae;hp=678ce0f466ec0e30f4d257292430d714dddc842a;hpb=67675323e1ea09b5d1a4250bf58163103c85b844;p=openocd.git diff --git a/src/target/target_type.h b/src/target/target_type.h index 678ce0f466..bc42c2d16e 100644 --- a/src/target/target_type.h +++ b/src/target/target_type.h @@ -83,7 +83,7 @@ struct target_type { * if dynamic allocation is used for this value, it must be managed by * the target, ideally by caching the result for subsequent calls. */ - const char *(*get_gdb_arch)(struct target *target); + const char *(*get_gdb_arch)(const struct target *target); /** * Target register access for GDB. Do @b not call this function