Skip to content

tools/pynuttx: skip modules without a name in elfimport - #22801

Open
anjiahao1 wants to merge 1 commit into
apache:masterfrom
anjiahao1:20261203_nxgdb-elfimport-modname
Open

anjiahao1 wants to merge 1 commit into
apache:masterfrom
anjiahao1:20261203_nxgdb-elfimport-modname

Conversation

@anjiahao1

Copy link
Copy Markdown
Contributor

Summary

A module that was not loaded from a file has an empty modname, so there
is no file for add-symbol-file to read. Filter those entries out
before building the module list.

Depends on #22800 (the protocol accessors used here); the first commit in
this branch is that change.

Impact

tools/pynuttx/nxgdb/elf.py only.

Testing

  • tools/checkpatch.sh -c -u -m passes.
  • python3 -m py_compile tools/pynuttx/nxgdb/elf.py passes.

xiaoxiang781216
xiaoxiang781216 previously approved these changes Dec 3, 2026
@github-actions github-actions Bot added Area: Tooling Size: S The size of the change in this PR is small labels Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

@anjiahao1
anjiahao1 force-pushed the 20261203_nxgdb-elfimport-modname branch from 5348927 to 448fbce Compare December 3, 2026 08:03
GUIDINGLI
GUIDINGLI previously approved these changes Dec 4, 2026
@anjiahao1 anjiahao1 closed this Dec 4, 2026
@anjiahao1 anjiahao1 reopened this Dec 4, 2026
@anjiahao1
anjiahao1 dismissed stale reviews from GUIDINGLI and xiaoxiang781216 via a39928e December 4, 2026 03:01
@anjiahao1
anjiahao1 force-pushed the 20261203_nxgdb-elfimport-modname branch from 448fbce to a39928e Compare December 4, 2026 03:01
@github-actions github-actions Bot added Size: XS The size of the change in this PR is very small and removed Size: S The size of the change in this PR is small labels Dec 4, 2026
A module that was not loaded from a file has an empty modname, so there
is no file for add-symbol-file to read.  Filter those entries out before
building the module list.

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
@anjiahao1
anjiahao1 force-pushed the 20261203_nxgdb-elfimport-modname branch from a39928e to 841f209 Compare December 4, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Tooling Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants