From: James M. D. <mdu...@ya...> - 2002-12-31 16:46:24
|
ok, let me put this in another way : Is there a way to pull out all of the knowledge that you have about a give bash routine into a file? or at least an interator function that visits each node uniquly? I would like to have a routine that visits all the internal COMMAND and WORD objects, so that I can use that as input into the introspector. The thing is that, I need to see : 1. what file a node (COMMAND,WORD) comes from. 2. what type it is (unary expr, function call, function decl) 3. what line number/column it came from I use the redland rdf lib for storing this information, and to be able to gather all of that out of a ./configure file would be very usefull. Also, we need to figure out the sources before they are interpolated and afterwards. Happy new year, mike --- "R. Bernstein" <ro...@pa...> wrote: > James Michael DuPont writes: > > On that note, do you have a way to -save-temps like gcc does, like > +x > > so that you can capture the fully post-preprocessed files? > > This debugger is a little bit different in design from earlier BASH > or > Korn shell debuggers such the one described in the O'Reilly books. > While the others wrote a new script with debugger routines prepended, > > this one doesn't. > > Or more bluntly: there is no preprocessed source. > > Here's why. When one changes the source code you need to have a > mapping from the things you've changed into the the original > text. That is you are keeping a mapping of a set of lies around so > you > can keep the story you tell the users straight. The more you change > the more lying going on. This lie mapping is overhead and adds > complexity. As in normal life, the fewer lies I have to tell the > easier things are. > > (In truth, though there are things that the debugger does lie about. > For > example the call stack omits the debugger routines from the top of > the stack when reporting the contents .) > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Bashdb-devel mailing list > Bas...@li... > https://lists.sourceforge.net/lists/listinfo/bashdb-devel ===== James Michael DuPont http://introspector.sourceforge.net/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |