forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SDBG64 Breakpoint Bugs

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
mecej4



Joined: 31 Oct 2006
Posts: 1024

PostPosted: Sat Apr 14, 2018 5:27 pm    Post subject: SDBG64 Breakpoint Bugs Reply with quote

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
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 1878
Location: South Pole, Antarctica

PostPosted: Sun Apr 15, 2018 11:52 am    Post subject: Reply with quote

Looks like with 8.30 this was fixed
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1024

PostPosted: Wed Apr 18, 2018 2:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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