Skip to content

Conversation

@skyfish4tb
Copy link
Contributor

gas64 : Fixed the signature returned in the debug information is not the signature of the currently compiled FBC source code version. For example, if you use a compiler with a compiler signature of "freebasic 1.08.1" to compile the FBC source code with a signature of "freebasic 1.07.3", the signature returned in the debugging information of the compiled FBC source code is "freebasic 1.08.1".

…the signature of the currently compiled FBC source code version. For example, if you use a compiler with a compiler signature of "freebasic 1.08.1" to compile the FBC source code with a signature of "freebasic 1.07.3", the signature returned in the debugging information of the compiled FBC source code is "freebasic 1.08.1".
@SARG-FB
Copy link
Contributor

SARG-FB commented May 12, 2021

I'm not sure to understand :-)
FB_SIGN is internal.
FB_SIGNATURE seems to be the same that FB_SIGN

@skyfish4tb
Copy link
Contributor Author

One is the signature of the compiler used to compile the source code, and another is the signature of the compiled source code itself.

@skyfish4tb
Copy link
Contributor Author

If the compiled source code is version 1.08, and FBC v1.06 is used to compile the source code. FB_Signature is "FreeBasic 1.06"
, and FB_Sign is "FreeBasic 1.08".

@SARG-FB
Copy link
Contributor

SARG-FB commented May 13, 2021

Ok understood. Thanks

Btw do you study all the code or are you using gas64 ?

@skyfish4tb
Copy link
Contributor Author

Add this to the debug information to indicate which compiler version you are using?

@skyfish4tb
Copy link
Contributor Author

skyfish4tb commented May 13, 2021

A test code was compiled with FBC v1.08.0 (which was compiled by FBC v1.06.0). The version of the generated debugging information is "freebasic 1.06.0".

@SARG-FB
Copy link
Contributor

SARG-FB commented May 13, 2021

Add this to the debug information to indicate which compiler version you are using?

Yes the purpose is to get the version of the compiler used for compiling the debuggee, not the compiler :-)
Tested on my side. It's ok.

Notes :

  • It's an information that doesn't exist in the original Stabs (debug data). I use the code = 255
  • the debug data can only be used with the new version of fbdebugger, currently work in progress, as other debuggers on 64bit don't know that format (only 32bit).

@skyfish4tb
Copy link
Contributor Author

If you compile the source code of FBC v1.08 with other compilers, and then use the newly compiled FBC (v1.08) to compile other codes, the resulting signature will be incorrect.

@SARG-FB
Copy link
Contributor

SARG-FB commented May 13, 2021

Sorry I wanted to say Tested on my side. It's ok now with your mod........

@jayrm jayrm merged commit ea8c233 into freebasic:master May 15, 2021
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