Skip to content

Commit 0da1599

Browse files
anchaoxiaoxiang781216
authored andcommitted
tools/nuttx-gdbinit: correct xcp context size
Signed-off-by: chao an <anchao@xiaomi.com>
1 parent 9cd8ff5 commit 0da1599

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/nuttx-gdbinit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ define _examine_target
5959
if ($_target_examined == 0x0)
6060
_examine_arch
6161

62-
set $_tcb0 = g_pidhash[0]
63-
set $_xcp_nregs = sizeof($_tcb0->xcp.regs) / sizeof($_tcb0->xcp.regs[0])
62+
set $_xcp_nregs = sizeof(g_last_regs) / sizeof(void *)
6463
set $_target_has_fpu = 0
6564

6665
if ($_streq($_target_arch, "armv7e-m") == 1)

0 commit comments

Comments
 (0)