bugGNU Octave - Bugs: bug #41540, dbstatus doesn't correctly list...


bug #41540: dbstatus doesn't correctly list file name for class methods with breakpoints

Submitted by:  Rik <rik5>
Submitted on:  Mon Feb 10 17:50:41 2014  
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Lachlan Andrew <lachlan>
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Sun Feb 14 21:13:54 2016, comment #6:

I applied the patch here http://hg.savannah.gnu.org/hgweb/octave/rev/b248c28d9a7b. I also followed it with some cleanup of debug.cc. I think when Philip applied the original patch there might have been an expansion from tabs to spaces because many of the comments were incorrectly indented. Cleanup patch is here http://hg.savannah.gnu.org/hgweb/octave/rev/4ee768b71a0e.

Fixed, closing report.

Rik <rik5>
Project Administrator
Fri Feb 12 11:04:50 2016, comment #5:

The attached patch seems to give the correct behaviour. I've added a BIST entry testing the four combinations of class/normal and sub-function/main-function.

(file #36322)

Lachlan Andrew <lachlan>
Project MemberIn charge of this item.
Fri Feb 12 06:27:57 2016, comment #4:

The canonicalized name probably differs if there is a relative entry on your path. Without canonicalization, I was getting things like /something/.build/../scripts/something

I'll look into what is causing @ftp/dir>dir.

Lachlan Andrew <lachlan>
Project MemberIn charge of this item.
Fri Feb 12 06:21:40 2016, comment #3:

What is a test case where I would see the difference between the regular name and the canonicalized name? I applied the patch and used the example in the original submission, but the output is the same as without the patch.

Incidentally, the output for @ftp/dir is @ftp/dir>dir. This is a little odd because the hierarchy operator '>' is usually used only when the object to the right is a subfunction within the main file. If there is only one function in a file then it is simpler to just list the file. This is the case if you use dbstop with a simple function, for example, 'dbstop ls'.

Rik <rik5>
Project Administrator
Mon Feb 8 06:02:45 2016, comment #2:

Oops. I forgot to add the patch to return the canonicalized filename.

(file #36274)

Lachlan Andrew <lachlan>
Project MemberIn charge of this item.
Sat Jan 30 22:42:46 2016, comment #1:

This works, since Philip applied

If you want a canonicalized filename, apply the attached patch.

Can this bug be closed now?

Lachlan Andrew <lachlan>
Project MemberIn charge of this item.
Mon Feb 10 17:50:41 2014, original submission:

When there is more than one function file with the same name, such as dir.m and @ftp/dir.m, dbstatus incorrectly lists the wrong file as having the breakpoint. The actual breakpoint is set correctly.


For methods which do not overlap with another function, no file is printed at all. This is also wrong.

Rik <rik5>
Project Administrator


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

Attach File(s):

Attached Files
file #36322:  bug_41540_v2.cset added by lachlan (4kB - application/octet-stream)
file #36274:  bug_41540.cset added by lachlan (1kB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by rik5 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Feb 14 21:13:54 2016rik5StatusIn Progress=>Fixed
    Fri Feb 12 11:04:49 2016lachlanAttached File-=>Added bug_41540_v2.cset, #36322
    Fri Feb 12 06:27:57 2016lachlanStatusFixed=>In Progress
    Mon Feb 8 06:02:45 2016lachlanAttached File-=>Added bug_41540.cset, #36274
      Assigned toNone=>lachlan

    Back to the top

    Powered by Savane 3.1-cleanup1