You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by da...@apache.org on 2021/07/21 10:49:46 UTC
[incubator-nuttx] branch master updated: tools: Fix nuttx-gdbinit
This is an automated email from the ASF dual-hosted git repository.
davids5 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 8660572 tools: Fix nuttx-gdbinit
8660572 is described below
commit 8660572a3c69e0e2ca24c3cabeaaaae3372a6960
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Wed Jul 21 17:15:57 2021 +0900
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 <Ma...@jp.sony.com>
---
tools/nuttx-gdbinit | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/nuttx-gdbinit b/tools/nuttx-gdbinit
index fb0b91d..c7b4f3f 100644
--- a/tools/nuttx-gdbinit
+++ b/tools/nuttx-gdbinit
@@ -65,7 +65,7 @@ define _examine_target
python if (type(gdb.lookup_global_symbol("g_assignedtasks")) is gdb.Symbol) : \
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) : \
gdb.execute("set $_target_has_stack_coloration = 1")