rtos: constify symbol names and lists
Change-Id: I72f3cd50fc6a33a178e72e169c9660e707751524 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/2292 Tested-by: jenkins
This commit is contained in:
@@ -147,7 +147,7 @@ int gdb_thread_packet(struct connection *connection, char const *packet, int pac
|
||||
return target->rtos->gdb_thread_packet(connection, packet, packet_size);
|
||||
}
|
||||
|
||||
static char *next_symbol(struct rtos *os, char *cur_symbol, uint64_t cur_addr)
|
||||
static const char *next_symbol(struct rtos *os, char *cur_symbol, uint64_t cur_addr)
|
||||
{
|
||||
symbol_table_elem_t *s;
|
||||
|
||||
@@ -191,7 +191,8 @@ int rtos_qsymbol(struct connection *connection, char const *packet, int packet_s
|
||||
int rtos_detected = 0;
|
||||
uint64_t addr = 0;
|
||||
size_t reply_len;
|
||||
char reply[GDB_BUFFER_SIZE], cur_sym[GDB_BUFFER_SIZE / 2] = "", *next_sym;
|
||||
char reply[GDB_BUFFER_SIZE], cur_sym[GDB_BUFFER_SIZE / 2] = "";
|
||||
const char *next_sym;
|
||||
struct target *target = get_target_from_connection(connection);
|
||||
struct rtos *os = target->rtos;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user