[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "whos -all" and "who -all" fail
From: |
John W. Eaton |
Subject: |
Re: "whos -all" and "who -all" fail |
Date: |
Tue, 06 May 2008 07:44:52 -0400 |
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
Re: "whos -all" and "who -all" fail, David Bateman, 2008/05/05