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

stabs: Implement support for bit fields #48

Merged
merged 2 commits into from
Oct 21, 2023
Merged

stabs: Implement support for bit fields #48

merged 2 commits into from
Oct 21, 2023

Conversation

abelbriggs1
Copy link
Contributor

Currently, bit fields are not imported into Ghidra even if they exist in the STABS data.

struct _hierhead { // 0x4
	/* 0x0:0 */ unsigned int opcode : 6;
	/* 0x0:6 */ unsigned int isRelocated : 1;
	/* 0x0:7 */ unsigned int id2 : 11;
	/* 0x2:2 */ unsigned int id1 : 14;
};

image

This PR implements support for bit fields to be imported.

image

@chaoticgd
Copy link
Owner

Looks good. Works fine with all the games I've just tested it on.

@chaoticgd chaoticgd merged commit c9d6034 into chaoticgd:main Oct 21, 2023
1 check passed
@abelbriggs1 abelbriggs1 deleted the stabs_bitfields branch October 21, 2023 20:45
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.

2 participants