anjiahao1 opened a new pull request, #22408:
URL: https://github.com/apache/nuttx/pull/22408
## Summary
Improve symbol and source path resolution in tools/abi_check.py:
- Resolve a DIE's source file path from DW_AT_decl_file through the CU
line table, following DW_AT_abstract_origin and DW_AT_specification
links, instead of using the CU's top-level name. Falls back to the
CU name when no line table information is available.
- Skip subprograms nested in a namespace (Rust library functions) when
deciding whether a DIE is a real function.
- Prefer DW_AT_linkage_name over DW_AT_name when both are present, so
C++ mangled names are compared instead of the short name.
- Fix the absolute_offset() call in the DW_AT_specification path, which
passed the tuple itself where an address was expected.
## Impact
* Is new feature added? NO - tool accuracy fixes.
* Impact on user: NO - host tool only.
* Impact on build: NO
* Impact on hardware: NO
* Impact on documentation: NO
* Impact on security: NO
* Impact on compatibility: NO - the JSON output format is unchanged.
## Testing
Build host: Linux x86_64, Python 3.
```
python3 tools/abi_check.py -h
```
The tool starts and prints its usage. black, flake8, isort and
codespell pass on the changed file.
## PR verification
* [x] This PR introduces only one functional change.
* [x] I have updated all required description fields above.
* [x] My PR adheres to Contributing Guidelines and Documentation.
* [ ] My PR is still work in progress (not ready for review).
* [x] My PR is ready for review and can be safely merged into a codebase.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]