tools: Fix nuttx-gdbinit

Summary:
- I noticed that nuttx-gdbinit does not work.
- Finally, I found that the g_pidhash had been changed recently.
- This commit fixes this issue.

Impact:
- None

Testing:
- Tested with lm3s6965-ek:discover (QEMU)

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2021-07-21 17:15:57 +09:00 committed by David Sidrane
parent 301ec1ca9d
commit 8660572a3c

View File

@ -65,7 +65,7 @@ define _examine_target
python if (type(gdb.lookup_global_symbol("g_assignedtasks")) is gdb.Symbol) : \ python if (type(gdb.lookup_global_symbol("g_assignedtasks")) is gdb.Symbol) : \
gdb.execute("set $_target_has_smp = 1") gdb.execute("set $_target_has_smp = 1")
set $_target_max_tasks = sizeof(g_pidhash) / sizeof(struct pidhash_s) set $_target_max_tasks = g_npidhash
python if (type(gdb.lookup_global_symbol("up_check_tcbstack")) is gdb.Symbol) : \ python if (type(gdb.lookup_global_symbol("up_check_tcbstack")) is gdb.Symbol) : \
gdb.execute("set $_target_has_stack_coloration = 1") gdb.execute("set $_target_has_stack_coloration = 1")