octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #38556] dbwhere pointer is not updated during


From: Rik
Subject: [Octave-bug-tracker] [bug #38556] dbwhere pointer is not updated during if/elseif or switch statements
Date: Wed, 20 Mar 2013 17:24:48 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0

URL:
  <http://savannah.gnu.org/bugs/?38556>

                 Summary: dbwhere pointer is not updated during if/elseif or
switch statements
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 20 Mar 2013 10:24:46 AM PDT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The current line being executed during debugging is available by calling
dbwhere() and is also printed out at the debug prompt.  The line number is not
accurate if the statement being debugged is an "if" or "switch" statement. 
Instead of advancing to the next branch of an if/elseif tree the pointer
remains stuck at the first line containing the "if" statement.  A similar
thing happens with switch statements where the pointer remains stuck at the
line containing the "switch" statement and each dbnext causes the next "case"
to be evaluated.

Sample code uses the attached dbgtst.m file.

Example:


dbstop dbgtst
dbgtst (1,5,10)
dbnext
<RETURN> as many times as necessary to step through the code
         and monitor the current line being debugged.






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 20 Mar 2013 10:24:47 AM PDT  Name: dbgtst.m  Size: 920B   By: rik5

<http://savannah.gnu.org/bugs/download.php?file_id=27638>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38556>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]