|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
mecej4
Joined: 31 Oct 2006 Posts: 1887
|
Posted: Sat Apr 14, 2018 5:27 pm Post subject: SDBG64 Breakpoint Bugs |
|
|
When running a program with multiple ENTRY statements, I found that SDBG64 allows breakpoints to be set on the lines with the ENTRY statements. This is probably wrong, since ENTRY is a non-executable statement, just as SUBROUTINE and FUNCTION lines are. On the other hand, this could be a "convenience feature", and that is tolerable.
Unfortunately, although SDBG64 allows placing these breakpoints, it completely ignores them when the program is executed. If no other breakpoints have been set (on executable statement lines, or with conditions on expression values), the program runs to completion, to the surprise of the user.
Code: | ! Compile with ftn95 V8.10 /64 /debug
! Link with SLINK64 1.8
! Open with SDBG64 8.10.11; set breakpoints on lines with ENTRY;
! Run and observe program running to finish without stopping at breakpoints
!
program entrybug
implicit none
integer a,b,r
a=3
b=4
call add(a,b,r)
write(*,10)a,b,r
10 format('ADD: ',3I4)
call sub(a,b,r)
write(*,20)a,b,r
20 format('SUB: ',3I4)
call mul(a,b,r)
write(*,30)a,b,r
30 format('MUL: ',3I4)
call div(a,b,r)
write(*,40)a,b,r
40 format('DIV: ',3I4)
stop
end program
subroutine arith(a,b,r)
implicit none
integer a,b,r
ENTRY add(a,b,r) ! place breakpoint here (probably should not allow it, but does)
r=a+b
return
ENTRY sub(a,b,r) ! and here
r=a-b
return
ENTRY mul(a,b,r) ! and here
r=a*b
return
ENTRY div(a,b,r) ! and here
r=a/b
return
end |
|
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2824 Location: South Pole, Antarctica
|
Posted: Sun Apr 15, 2018 11:52 am Post subject: |
|
|
Looks like with 8.30 this was fixed |
|
Back to top |
|
|
mecej4
Joined: 31 Oct 2006 Posts: 1887
|
Posted: Wed Apr 18, 2018 2:32 am Post subject: |
|
|
They made 8.30 Personal available today, so I installed it and tried it on this test program. SDBG64 still has bugs. In fact, you cannot place a breakpoint on any line after the first ENTRY line.
Dan, I should appreciate your trying to run this program again in SDBG64, trying to set breakpoints on any line after Line-29. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|