mirror of
https://github.com/bitwiseworks/gcc-os2.git
synced 2026-04-22 22:09:52 +00:00
IBM debuggers can't show variable content #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ydario on GitHub (Dec 17, 2019).
With code generated by gcc 4.x, the variable content is not visible most of the times.
Hand editing an assembly file generated from gcc 4.9.2 (using gcc3 output), showed that the only real difference is access to variables: gcc 4 uses ESP to access stack vars, gcc3 uses EBP.
Changing gcc4 assembly to use EBP makes debuggers to work again.
Access with ESP seems a OS/2 only feature, gcc 9.2 on linux still uses EBP.
Also assembly of function start is not correctly aligned.

stab1.gcc4A.txt
stab1.gcc3.txt