-
Notifications
You must be signed in to change notification settings - Fork 34
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
Some structures from symbols not being applied #18
Comments
Thanks, I'll check it. |
Fixed via d8c76ac. |
May I ask you: how did you get this SYM file? How it was generated? |
by compiling this source https://github.com/FoxdieTeam/mgs_reversing |
Thanks. If you will find some other problems, feel free to create an issue with a bunch of mistakes related to mgs_reversing. |
There still seems to be something strange going on here, the output is now: void FUN_8003853c(void)
{
FUN_80038004();
unk_8009E280.dword_8009E28C = 0;
FUN_80024098();
return;
} However as you can see some function names are now missing and also the correct name of the var is missing (it should be dword_8009E280 not unk_8009E280). There is maybe another existing issue where some function names do not get applied too:
When checking say MENU_JimakuClear_80049518 its name is FUN_80049518 which is not correct in respect to the symbol file. |
|
hmm let me try again... |
it always repros with this sym for me, might not be the same as the one I originally used in this bug |
You've modified your sym file, so...:
|
damn by bad, I'll try again with the original |
As I understand your current situation: your sym file was modified, but you're still using the original executable. |
Yeah I rebuilt from a bad version of the code, sorry about wasting your time on that. However even with the original symbol file the global var name is still incorrect? /* File: E:\DATA\MGS\MGS_REVERSING\SRC\JIMCTRL_KILL_8003853C.C */
void jimctrl_kill_8003853C(void *pJimCtrl)
{
sub_80038004();
unk_8009E280.dword_8009E28C = 0;
sub_80024098();
return;
} Edit: Issue with the names not applying from the exception messages still seems to stand too. |
Yes, fixing it... |
I also noticed another possible regression, in function 80018384 the first argument is undefined but it should be DRAWENV pointer |
New fixes via: 7f76770. |
/* File: E:\DATA\MGS\MGS_REVERSING\SRC\JIMCTRL_KILL_8003853C.C */
void jimctrl_kill_8003853C(void *pJimCtrl)
{
sub_80038004();
DAT_8009e28c = 0;
sub_80024098();
return;
} Still looks like it isn't working? |
It's strange, but not all structures defined in SYM file: |
Maybe you can add verbose loading option so its easier for noob user like me to understand what is wrong. Right now I can't know if the structure for DAT_8009e28c is in sym file or not. |
Any progress? I've created a fork so I can build this and the latest code has a null pointer exception. I've also been trying to hack in a menu item to re-apply symbols after creating the ghidra DB. |
Unfortunately, I've stucked for now in fixing SIM file reading. Requires
more time than I thought.
вс, 16 февр. 2020 г. в 18:43, Paul <notifications@github.com>:
… Any progress? I've created a fork so I can build this and the latest code
has a null pointer exception. I've also been trying to hack in a menu item
to re-apply symbols after creating the ghidra DB.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#18?email_source=notifications&email_token=ABW3GPJQTANTF7X4ZRZNPT3RDFNIHA5CNFSM4KLXHNC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL4KMDA#issuecomment-586720780>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABW3GPPUQDKZRH5BL7FF2YTRDFNIHANCNFSM4KLXHNCQ>
.
|
Ghidra/plugin output:
Original code:
Binary and symbol file attached for repro.
ghidra.zip
The text was updated successfully, but these errors were encountered: