bugGNU Octave - Bugs: bug #40397, Scope is not changed with dbup /...

 
 

bug #40397: Scope is not changed with dbup / dbdown in debug mode

Submitted by:  Markus Appel <mappel>
Submitted on:  Mon 28 Oct 2013 06:09:40 PM UTC  
 
Category: InterpreterSeverity: 5 - Blocker
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: John W. Eaton <jwe>
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

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)

Fri 01 Nov 2013 02:04:06 PM UTC, comment #7:

I've re-tested the original reporter's code and this works for me now. Closing report.

Rik <rik5>
Project Administrator
Tue 29 Oct 2013 08:31:12 PM UTC, comment #6:

I checked in the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/6b51f5f44aea

It seems to fix the problem for me, but could probably use more testing.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Tue 29 Oct 2013 05:02:37 PM UTC, comment #5:

Thanks. I'm looking at it.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Tue 29 Oct 2013 04:59:36 PM UTC, comment #4:

Doesn't matter, I have seen the problem within one file and in two seperate files, as well as with copy&paste the function definitions to command line.

Markus Appel <mappel>
Tue 29 Oct 2013 04:21:02 PM UTC, comment #3:

OK, I see the problem when functionA and functionB are in separate files.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Tue 29 Oct 2013 04:08:39 PM UTC, comment #2:

Is functionA a single .m file with a subfunction called functionB, or are these two separate .m files?

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Mon 28 Oct 2013 06:15:35 PM UTC, comment #1:

Sorry, I messed up the markup for the web version, here is the example again (why is there no preview button...):
Debugging the error:

Additional minor problem: dbup needs two bumps to move up the stack from the lowest level when stopped due to an error, but only one when stopped with "keyboard". I think this has been like this for a long time, but the scope problem is new (to me).

Markus Appel <mappel>
Mon 28 Oct 2013 06:09:40 PM UTC, original submission:

current tip (17780:8b353af4a1ca), built on Ubuntu 12.04.
When moving up and down the stack in debug mode, the variable scope is not properly changed. 'whos' lists the right scope, but debug commands are always executed at the lowest level.

Minimal example:

Markus Appel <mappel>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by mappel (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
    Fri 01 Nov 2013 02:04:06 PM UTCrik5StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Tue 29 Oct 2013 08:31:12 PM UTCjweStatusIn Progress=>Ready For Test
    Tue 29 Oct 2013 05:02:37 PM UTCjweStatusConfirmed=>In Progress
      Assigned toNone=>jwe
    Tue 29 Oct 2013 04:21:02 PM UTCjweSeverity3 - Normal=>5 - Blocker
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup