[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8768] new field for stack info in structu
From: |
Kai Torben Ohlhus |
Subject: |
[Octave-patch-tracker] [patch #8768] new field for stack info in structure passed to error handler of cellfun |
Date: |
Sat, 18 Jan 2020 05:33:52 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36 |
Update of patch #8768 (project octave):
Category: None => Core : new feature
Priority: 5 - Normal => 3 - Low
Status: None => Need Info
Assigned to: None => i7tiol
_______________________________________________________
Follow-up Comment #2:
Review for Octave 6.
This patch is a one liner, as Olaf said, thus post it here:
# HG changeset patch
# User Olaf Till <address@hidden>
# Date 1444646177 -7200
# Mon Oct 12 12:36:17 2015 +0200
# Node ID c59a42925f83e8d2a4e35e8bf9b55f55f7d2e366
# Parent 3339c9bdfe6a6b5cbb1c4048f36367f812fc6fac
libinterp/corefcn/cellfun.cc: error handler gets stack info.
diff -r 3339c9bdfe6a -r c59a42925f83 libinterp/corefcn/cellfun.cc
--- a/libinterp/corefcn/cellfun.cc Sat Oct 03 07:32:50 2015 +0200
+++ b/libinterp/corefcn/cellfun.cc Mon Oct 12 12:36:17 2015 +0200
@@ -95,6 +95,7 @@
msg.assign ("index",
static_cast<double> (count
+
static_cast<octave_idx_type>(1)));
+ msg.assign ("stack", octave_value (last_error_stack ()));
octave_value_list errlist = inputlist;
errlist.prepend (msg);
In recent Octave dev, it could be applied to the following line:
https://hg.savannah.gnu.org/hgweb/octave/file/6a37ebaeeb28/libinterp/corefcn/cellfun.cc#l108
Olaf, is this patch still relevant for you/Octave?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?8768>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-patch-tracker] [patch #8768] new field for stack info in structure passed to error handler of cellfun,
Kai Torben Ohlhus <=