rtos : remove unused parameter
authorMichel JAOUEN <michel.jaouen@stericsson.com>
Tue, 3 Jan 2012 14:34:14 +0000 (15:34 +0100)
committerØyvind Harboe <oyvindharboe@gmail.com>
Sun, 15 Jan 2012 22:07:24 +0000 (22:07 +0000)
Change-Id: I98c9f28a0085bd4713b694181ab544777091eac6
Signed-off-by: Michel JAOUEN <michel.jaouen@stericsson.com>
Reviewed-on: http://openocd.zylin.com/341
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
src/rtos/rtos.c
src/rtos/rtos.h
src/server/gdb_server.c

index ac7f89c7f14ed1c28b9c8820c2ed5f4f902e4e22..8a5db11c07fc96213d8c9081d1f92e611ea6f7f1 100644 (file)
@@ -424,7 +424,7 @@ int gdb_thread_packet(struct connection *connection, char *packet, int packet_si
        return GDB_THREAD_PACKET_NOT_CONSUMED;
 }
 
-int rtos_get_gdb_reg_list(struct connection *connection, struct reg **reg_list[], int *reg_list_size)
+int rtos_get_gdb_reg_list(struct connection *connection)
 {
        struct target *target = get_target_from_connection(connection);
 
index 269ae8d918034349d9af54890791627af1343b6c..4f190e9329dd1fbd0e3622bea4ae145915847a0b 100644 (file)
@@ -101,7 +101,7 @@ int rtos_create(Jim_GetOptInfo *goi, struct target * target);
 int rtos_generic_stack_read( struct target * target, const struct rtos_register_stacking* stacking, 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 rtos_get_gdb_reg_list(struct connection *connection, struct reg **reg_list[], int *reg_list_size);
+int rtos_get_gdb_reg_list(struct connection *connection);
 int rtos_update_threads( struct target *target );
 
 #endif // RTOS_H
index abec1383b122bb9263733a2a8855ed00586a7b69..70915556817cae9ddd4cfcbad3adcab8d10abe36 100644 (file)
@@ -1040,7 +1040,7 @@ static int gdb_get_registers_packet(struct connection *connection,
 #endif
 
        if ((target->rtos != NULL) &&
-               (ERROR_OK == rtos_get_gdb_reg_list(connection, &reg_list, &reg_list_size)))
+                (ERROR_OK == rtos_get_gdb_reg_list(connection)))
        {
                return ERROR_OK;
        }