bugGNU Octave - Bugs: bug #56018, "dbclear all" does not...

 
 

bug #56018: "dbclear all" does not fully remove breakpoints in subfunctions

Submitter:  Muhali <muhali>
Submitted:  Thu 28 Mar 2019 09:55:33 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 5.1.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 28 Mar 2019 03:14:38 PM UTC, comment #1: 

Confirmed.  In fact, I checked backwards through version 4.2.1 and this behavior has always been the same.

I changed the summary to be more specific about the issue involved.  I've also attached the file goo.m that is used for testing.

Here is a test session which demonsrates the problem


octave:2> dbstop goo 2
ans =  2
octave:3> dbstop goo 6
ans =  6
octave:4> dbstatus
breakpoint in goo at line 2
breakpoint in goo>hoo at line 6
octave:5> dbclear all
octave:6> dbstatus
octave:7> dbstop goo 2
ans =  2
octave:8> dbstatus
breakpoint in goo at line 2
breakpoint in goo>hoo at line 6


If the breakpoint in the subfunction is explicitly cleared then there is no issue.  See the slightly different sequence below.


octave:2> dbstop goo 2
ans =  2
octave:3> dbstop goo 6
ans =  6
octave:4> dbstatus
breakpoint in goo at line 2
breakpoint in goo>hoo at line 6
octave:5> dbclear goo>hoo
octave:6> dbstatus
breakpoint in goo at line 2
octave:7> dbclear all
octave:8> dbstatus
octave:9> dbstop goo 2
ans =  2
octave:10> dbstatus
breakpoint in goo at line 2


This is likely to be related to how breakpoints are organized which is under the name of the main function. 


(file #46655)

Rik <rik5>
Group administrator
Thu 28 Mar 2019 09:55:33 AM UTC, original submission:  

below is a funny looking script showing – at least in my view – that dbclear is not working as expected.


fid = fopen("goo.m", "wt") ;
fputs(fid, "function goo\n\
   hoo() ;\n\
endfunction\n\
\n\
function hoo\n\
   disp('hoo') ;\n\
endfunction\n") ;
fclose(fid) ;

addpath .

dbstop goo 2 ;
dbstop goo 6 ;
dbstatus

dbclear all

dbstop goo 2 ;
dbstatus


The second dbstop (goo 6) is still there.

Muhali <muhali>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #46655:  goo.m added by rik5 (79B - text/x-matlab)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-28 rik5 Attached File- Added goo.m, #46655
        Item GroupNone Incorrect Result
        StatusNone Confirmed
        Summarydbclear not working as expected "dbclear all" does not fully remove breakpoints in subfunctions

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code