You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "dlizewski (via GitHub)" <gi...@apache.org> on 2026/03/01 19:17:45 UTC
[I] [BUG] GDB info threads broken after PR #18221 [nuttx]
dlizewski opened a new issue, #18474:
URL: https://github.com/apache/nuttx/issues/18474
### Description / Steps to reproduce the issue
nuttx aware debugging using tools/pynuttx/gdbinit.py was broken in https://github.com/apache/nuttx/pull/18221
The PR claimed it was only used by the single function, but it was used by tools/pynuttx/nxgdb/thread.py
"info threads" can no longer access g_statenames
Steps to reproduce:
1. Launch GDB with nuttx aware debugging "gdb-multiarch nuttx -ix=tools/pynuttx/gdbinit.py"
2. Execute "info threads"
```
(gdb) info threads
Traceback (most recent call last):
File "/home/daniellizewski/revisioned/nuttx/tools/pynuttx/nxgdb/thread.py", line 219, in invoke
statenames = gdb.parse_and_eval("g_statenames")
gdb.error: No symbol "g_statenames" in current context.
Error occurred in Python: No symbol "g_statenames" in current context.
(gdb) info nxthreads
Traceback (most recent call last):
File "/home/daniellizewski/revisioned/nuttx/tools/pynuttx/nxgdb/thread.py", line 219, in invoke
statenames = gdb.parse_and_eval("g_statenames")
gdb.error: No symbol "g_statenames" in current context.
Error occurred in Python: No symbol "g_statenames" in current context.
```
Reverting https://github.com/apache/nuttx/pull/18221 locally solved the problem.
### On which OS does this issue occur?
[OS: Linux]
### What is the version of your OS?
Ubuntu 22.04
### NuttX Version
master
### Issue Architecture
[Arch: all]
### Issue Area
[Area: Other]
### Host information
_No response_
### Verification
- [x] I have verified before submitting the report.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] GDB info threads broken after PR #18221 [nuttx]
Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on issue #18474:
URL: https://github.com/apache/nuttx/issues/18474#issuecomment-3980853657
Hi @dlizewski thank you very much for reporting the issue and for figuring out which PR broke it.
@hujun260 Could you please take a look?
@xiaoxiang781216 @raiden00pl for visibility
I think GDB awareness is another thing we need to test after each PR, not only if everything is running fine in the board.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] GDB info threads broken after PR #18221 [nuttx]
Posted by "dlizewski (via GitHub)" <gi...@apache.org>.
dlizewski commented on issue #18474:
URL: https://github.com/apache/nuttx/issues/18474#issuecomment-3984438008
thanks for such a quick response!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] GDB info threads broken after PR #18221 [nuttx]
Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis closed issue #18474: [BUG] GDB info threads broken after PR #18221
URL: https://github.com/apache/nuttx/issues/18474
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] GDB info threads broken after PR #18221 [nuttx]
Posted by "XuNeo (via GitHub)" <gi...@apache.org>.
XuNeo commented on issue #18474:
URL: https://github.com/apache/nuttx/issues/18474#issuecomment-3981726803
Hi @dlizewski Could you please try #18478 ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] GDB info threads broken after PR #18221 [nuttx]
Posted by "linguini1 (via GitHub)" <gi...@apache.org>.
linguini1 commented on issue #18474:
URL: https://github.com/apache/nuttx/issues/18474#issuecomment-3981347337
I think we can revert the commit, this introduced a bug, not sure that outweighs MISRA compliance
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] GDB info threads broken after PR #18221 [nuttx]
Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on issue #18474:
URL: https://github.com/apache/nuttx/issues/18474#issuecomment-3984517968
Thank you @XuNeo ! Nice work!!!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org