[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64271] dbstop (breakpoint_struct) does not co
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #64271] dbstop (breakpoint_struct) does not correctly restore breakpoints |
Date: |
Thu, 1 Jun 2023 12:37:42 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64271>
Summary: dbstop (breakpoint_struct) does not correctly
restore breakpoints
Group: GNU Octave
Submitter: rik5
Submitted: Thu 01 Jun 2023 09:37:39 AM PDT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: Confirmed
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 01 Jun 2023 09:37:39 AM PDT By: Rik <rik5>
It should be possible to save/restore breakpoints using a BP_STRUCT.
According to Octave documentation,
bp_struct = dbstatus (); # save current breakpoints
dbclear all # clear breakpoints for this example
dbstop (bp_struct); # restore breakpoints
However, here is the output of an Octave session which shows that an extra
breakpoint is added at the end of the file for sind.m.
octave:11> dbstop ls
ans = 63
octave:12> dbstop sind
ans = 38
octave:13> dbstatus
breakpoint in ls at line 63
breakpoint in sind at line 38
octave:14> bp = dbstatus
bp =
2x1 struct array containing the fields:
name
file
line
cond
octave:15> dbclear all
octave:16> dbstatus
octave:17> dbstop (bp)
ans = 2
octave:18> dbstatus
breakpoint in ls at line 63
breakpoints in sind at lines 38 65
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64271>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64271] dbstop (breakpoint_struct) does not correctly restore breakpoints,
Rik <=