Skip to content

Conversation

@Kaben123
Copy link

For the following code, we need to check 'type_attr.form'. type_attr = DIE.attributes["DW_AT_type"]
base_type_die = dwarfinfo.get_DIE_from_refaddr(xxx)

When type_attr.form==DW_FORM_ref_addr, 'type_attr.value' means global reference (across compilation units).

When type_attr.form==DW_FORM_ref4, 'type_attr.value' means local reference (within the same compilation unit).

Note: Please adhere to Contributing Guidelines.

Summary

Update this section with information on why change is necessary,
what it exactly does and how, if new feature shows up, provide
references (dependencies, similar problems and solutions), etc.

Impact

Update this section, where applicable, on how change affects users,
build process, hardware, documentation, security, compatibility, etc.

Testing

This section should provide a detailed description of what you did
to verify your changes work and do not break existing code.

Please provide information about your host machine, the board(s) you
tested your changes on, and how you tested. Logs should be included.

For example, when changing something in the core OS functions, you
may want to run the OSTest application to verify that there are no
regressions. Changes to ADC code may warrant running the adc
example. Adding a new uORB driver may require that you run
uorb_listener to verify correct operation.

Pure documentation changes can just be tested with make html
(see docs) and verification of the correct format in your
browser.

PRs without testing information will not be accepted. We will
request test logs.

For the following code, we need to check 'type_attr.form'.
type_attr = DIE.attributes["DW_AT_type"]
base_type_die = dwarfinfo.get_DIE_from_refaddr(xxx)

When type_attr.form==DW_FORM_ref_addr, 'type_attr.value' means
global reference (across compilation units).

When type_attr.form==DW_FORM_ref4, 'type_attr.value' means
local reference (within the same compilation unit).

Signed-off-by: yukangzhi <yukangzhi@xiaomi.com>
@Kaben123 Kaben123 requested a review from anchao as a code owner January 23, 2026 03:10
@github-actions github-actions bot added Area: Tooling Size: S The size of the change in this PR is small labels Jan 23, 2026
@acassis
Copy link
Contributor

acassis commented Jan 23, 2026

@Kaben123 please read the CONTRIBUTING.md and fix the PR.

@simbit18
Copy link
Contributor

Hi @Kaben123, can you please create a basic (initial) Documentation to parsetrace.py ?
https://github.com/apache/nuttx/blob/master/Documentation/components/tools/index.rst

Copy link
Contributor

@acassis acassis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kaben123 please include basic Documentation about parsetrace.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants