diff options
author | Paul Fertser <fercerpav@gmail.com> | 2014-10-25 11:20:10 +0400 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2014-11-24 22:21:37 +0000 |
commit | 6d562283b5191fc3949894cd49f767fc299ca404 (patch) | |
tree | ebd69bd66bbb179e85dc6535813301dadc1dee1b /src/rtos/ThreadX.c | |
parent | 08607aefc0da2394bcce067989812081f742f5e2 (diff) | |
download | riscv-openocd-6d562283b5191fc3949894cd49f767fc299ca404.zip riscv-openocd-6d562283b5191fc3949894cd49f767fc299ca404.tar.gz riscv-openocd-6d562283b5191fc3949894cd49f767fc299ca404.tar.bz2 |
rtos: allow symbols to be optional for a particular RTOS
Default to non-optional.
Change-Id: Ifc9ddb1ab701a19c3760f95da47da6f7d412ff2e
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2355
Tested-by: jenkins
Reviewed-by: Christian Gudrian <christian.gudrian@gmx.de>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/rtos/ThreadX.c')
-rw-r--r-- | src/rtos/ThreadX.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtos/ThreadX.c b/src/rtos/ThreadX.c index 88470b6..fb9f5f7 100644 --- a/src/rtos/ThreadX.c +++ b/src/rtos/ThreadX.c @@ -330,8 +330,8 @@ static int ThreadX_get_thread_reg_list(struct rtos *rtos, int64_t thread_id, cha static int ThreadX_get_symbol_list_to_lookup(symbol_table_elem_t *symbol_list[]) { unsigned int i; - *symbol_list = malloc( - sizeof(symbol_table_elem_t) * ARRAY_SIZE(ThreadX_symbol_list)); + *symbol_list = calloc( + ARRAY_SIZE(ThreadX_symbol_list), sizeof(symbol_table_elem_t)); for (i = 0; i < ARRAY_SIZE(ThreadX_symbol_list); i++) (*symbol_list)[i].symbol_name = ThreadX_symbol_list[i]; |