"whos -all" and "who -all" fail
John W. Eaton
jwe at bevo.che.wisc.edu
Tue May 6 06:44:52 CDT 2008
On 6-May-2008, David Bateman wrote:
| John W. Eaton wrote:
| > OK, I added the following functions
| >
| > SCOPE_ID = __current_scope__ ()
| >
| > __dump_symtab_info__ ()
| > __dump_symtab_info__ (SCOPE_ID)
| > __dump_symtab_info__ ("functions")
| > SCOPE_IDS = __dump_symtab_info__ ("scopes")
| >
| > This took a lot longer than I thought it would (maybe that's why I
| > punted before). OTOH, I think I found and fixed a few more bugs in
| > the symbol table code, so maybe there was some progress.
| >
| > I'm not sure the interface or format is as useful as it could be.
| > Feel free to improve it. I'm done with it for now.
| >
| >
| Ok, this identifies the sub-functions, but we'll need to figure out a
| manner to allow "dbstop func:subfunc" to work..
With the current code, you would need to
parse the dbstop argument into a list of function names
find the parent function by name in the symbol table
get the scope id from the parent function object
find the subfunction corrsponding to that scope with the given name
set the breakpoint in the subfunction object
jwe
More information about the Octave-maintainers
mailing list