Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ghidra exporter script when structure field name is empty #1443

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

mateusfavarin
Copy link
Contributor

No description provided.

@ghost
Copy link

ghost commented Sep 12, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.02% ⚠️

Comparison is base (4a9a8eb) 8.63% compared to head (b544d77) 8.61%.
Report is 11 commits behind head on main.

❗ Current head b544d77 differs from pull request most recent head 1b6ba11. Consider uploading reports for the commit 1b6ba11 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1443      +/-   ##
==========================================
- Coverage    8.63%    8.61%   -0.02%     
==========================================
  Files         409      409              
  Lines      125568   125568              
==========================================
- Hits        10842    10821      -21     
- Misses     114726   114747      +21     
Files Changed Coverage Δ
src/core/disr3000a.cc 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -15,6 +15,8 @@
type_name = component.getDataType().getName()
print('type: ' + type_name)
field_name = component.getFieldName()
if field_name is None:
field_name = component.getDefaultFieldName()
print('field name: ' + field_name)
Copy link
Member

Choose a reason for hiding this comment

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

The proper python-y syntax would've been

print('field name: ' + field_name if field_name != None else component.getDefaultFieldName())

but that's okay :)

@nicolasnoble nicolasnoble merged commit d7336ec into grumpycoders:main Sep 13, 2023
15 checks passed
@mateusfavarin mateusfavarin deleted the ghidra-exporter-fix branch December 26, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants