Rate This Document
Findability
Accuracy
Completeness
Readability

Single-Step Debugging Cannot Be Performed for a Fortran Function

When the GDB is used to debug executable programs generated after BiSheng compiler compiles Fortran code, function debugging cannot be performed in some scenarios. As a result, the n command cannot be used to perform single-step debugging for a function. Single-step debugging cannot be performed by running the s command and then the n command, as shown in figure 2.

Figure 1 Expected output
Figure 2 Actual output

Debugging can be performed using lldb.