diff options
author | Christian Eggers <ceggers@gmx.de> | 2014-02-14 21:48:52 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2014-03-04 20:17:34 +0000 |
commit | 9b2577742cc49683ab0ea8506d93e3e285b53bbd (patch) | |
tree | 6e9bcaf54e5ea440d87c37eb8b15ce1f3bfe5e95 /src/rtos/rtos.h | |
parent | 537b06a810778995d7f79d9120f4063f33dee635 (diff) |
Constify received GDB packet
v2:
- Split work into separate patches
The received packet will not be altered in any of the processing functions.
Some it can be made "const".
Change-Id: I7bb410224cf6daa74a6c494624176ccb9ae638ac
Signed-off-by: Christian Eggers <ceggers@gmx.de>
Reviewed-on: http://openocd.zylin.com/1919
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/rtos/rtos.h')
-rw-r--r-- | src/rtos/rtos.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtos/rtos.h b/src/rtos/rtos.h index f8aa33f1..a81f67e2 100644 --- a/src/rtos/rtos.h +++ b/src/rtos/rtos.h @@ -56,7 +56,7 @@ struct rtos { threadid_t current_thread; struct thread_detail *thread_details; int thread_count; - int (*gdb_thread_packet)(struct connection *connection, char *packet, int packet_size); + int (*gdb_thread_packet)(struct connection *connection, char const *packet, int packet_size); void *rtos_specific_params; }; @@ -95,12 +95,12 @@ int rtos_generic_stack_read(struct target *target, int64_t stack_ptr, char **hex_reg_list); int rtos_try_next(struct target *target); -int gdb_thread_packet(struct connection *connection, char *packet, int packet_size); +int gdb_thread_packet(struct connection *connection, char const *packet, int packet_size); int rtos_get_gdb_reg_list(struct connection *connection); int rtos_update_threads(struct target *target); void rtos_free_threadlist(struct rtos *rtos); int rtos_smp_init(struct target *target); /* function for handling symbol access */ -int rtos_qsymbol(struct connection *connection, char *packet, int packet_size); +int rtos_qsymbol(struct connection *connection, char const *packet, int packet_size); #endif /* RTOS_H */ |