aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/rtos.h
diff options
context:
space:
mode:
authorMarc Schink <dev@zapb.de>2021-01-25 11:28:59 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2021-03-10 21:29:52 +0000
commita8b88acd994f758a02a48e2f6fb372caff887e75 (patch)
tree0aa531a810e0e162dd080e98d4e3b7d08d0f06c5 /src/rtos/rtos.h
parent307fe3730f1e8e48f41501b7f631e95f9dfc2a0d (diff)
downloadriscv-openocd-a8b88acd994f758a02a48e2f6fb372caff887e75.zip
riscv-openocd-a8b88acd994f758a02a48e2f6fb372caff887e75.tar.gz
riscv-openocd-a8b88acd994f758a02a48e2f6fb372caff887e75.tar.bz2
rtos: Remove typedef'd struct
The C style guide forbids typedef'd structs, see 'Naming Rules'. Change-Id: Ia7c8218fb61ff0c74b6dd0d10fb51a77cf059c14 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/6028 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/rtos/rtos.h')
-rw-r--r--src/rtos/rtos.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rtos/rtos.h b/src/rtos/rtos.h
index b437be0..b3fd01f 100644
--- a/src/rtos/rtos.h
+++ b/src/rtos/rtos.h
@@ -31,11 +31,11 @@ struct reg;
/**
* Table should be terminated by an element with NULL in symbol_name
*/
-typedef struct symbol_table_elem_struct {
+struct symbol_table_elem {
const char *symbol_name;
symbol_address_t address;
bool optional;
-} symbol_table_elem_t;
+};
struct thread_detail {
threadid_t threadid;
@@ -47,7 +47,7 @@ struct thread_detail {
struct rtos {
const struct rtos_type *type;
- symbol_table_elem_t *symbols;
+ struct symbol_table_elem *symbols;
struct target *target;
/* add a context variable instead of global variable */
/* The thread currently selected by gdb. */
@@ -78,7 +78,7 @@ struct rtos_type {
struct rtos_reg **reg_list, int *num_regs);
int (*get_thread_reg)(struct rtos *rtos, int64_t thread_id,
uint32_t reg_num, struct rtos_reg *reg);
- int (*get_symbol_list_to_lookup)(symbol_table_elem_t *symbol_list[]);
+ int (*get_symbol_list_to_lookup)(struct symbol_table_elem *symbol_list[]);
int (*clean)(struct target *target);
char * (*ps_command)(struct target *target);
int (*set_reg)(struct rtos *rtos, uint32_t reg_num, uint8_t *reg_value);