|
From: | John W. Eaton |
Subject: | Re: Debugging and the GUI Editor; Qt help needed |
Date: | Thu, 28 Mar 2013 16:03:15 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11 |
On 03/28/2013 03:57 PM, Daniel J Sebald wrote:
1) Write a builtin routine "qtdbstop(FILE,RLINE)" that will send a signal to the editor that it should place a dot somewhere. 2) Now, create an M-script (kept under the libgui code) that will override Octave's dbstop internal routine, something like: function try RLINE = dbstop (FUNC,LINE); qtdbstop (FILE,RLINE); catch display ("Sorry, break point not set"); endtry Is it possible to call Octave's builtin function from within an M-script with the same name?
I don't see how this is different from the way it works now, except that qtdbstop is called indirectly, through a function pointer. In the current code, your proposed qtdbstop is the function dbstop_hook_fcn defined in octave-main-thread.cc. As I described in my previous message, it unpacks its arguments and then sends a signal to the editor. jwe
[Prev in Thread] | Current Thread | [Next in Thread] |