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

DWARF Typedefs Handled Confusingly #6493

Open
edmcman opened this issue May 9, 2024 · 2 comments
Open

DWARF Typedefs Handled Confusingly #6493

edmcman opened this issue May 9, 2024 · 2 comments
Assignees
Labels
Feature: DWARF Status: Prioritize This is currently being prioritized Type: Enhancement New feature or request

Comments

@edmcman
Copy link

edmcman commented May 9, 2024

Describe the bug
C allows typedefs such as typedef struct foo * foo; because struct foo and foo are not the same type. When Ghidra imports such a typedef, it results in this non-sensical type: typedef list list *

To Reproduce
Steps to reproduce the behavior:

  1. Load attached executable
  2. Look at list in data type manager

Expected behavior
I expected the typedefee to have a different name, maybe struct list.

Screenshots
image

Attachments
exe.zip

Environment (please complete the following information):

  • OS: Ubuntu 22.04.04
  • Java Version: OpenJDK Runtime Environment Temurin-17.0.11+9 (build 17.0.11+9)
  • Ghidra Version: 11.0.3
  • Ghidra Origin: official distro

Additional context

@dev747368 dev747368 self-assigned this May 9, 2024
@dev747368 dev747368 added Feature: DWARF Type: Enhancement New feature or request labels May 9, 2024
@dev747368
Copy link
Collaborator

I can see how it could improve things. This won't be a high priority, but I'll talk it over with the team.

@dev747368 dev747368 added the Status: Prioritize This is currently being prioritized label May 9, 2024
@edmcman
Copy link
Author

edmcman commented May 10, 2024

If you provide some guidance on where/how to change the behavior, I can also take a stab at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: DWARF Status: Prioritize This is currently being prioritized Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants