|
From: Josef W. <Jos...@gm...> - 2005-05-04 10:20:33
|
On Wednesday 04 May 2005 08:07, Naba Kumar wrote: > > Here's how I imagine the KDevelop plug-in works: you invoke Valgrind > > somehow, and KDevelop works out what options to pass to Valgrind, > > then runs Valgrind (and the user program under it), then collects > > the output somehow, parses it, and presents it to the programmer > > in the IDE somehow. > > There is nothing wrong in doing it the hard way, except that every IDE > would be implementing it (which is a waste to begin with) and all of > them would be struggling to maintain their parsers. Ask any developer > who has maintained such CLI output (meant for human readability) parsers > for a reasonable time how much fun it is. You can start by copying the parser from KDevelop or contact them for joined efforts, and make the library with the API you propose yourself, basing it on valgrind-listener; this is part of Valgrind itself, a redirection utility for valgrinds output. It is perfect to put the CLI parser in there, and provide a library instead. If the API is simple and easy enough, the patched valgrind-listener (as a library, and with the CLI parser) can be put back into Valgrind. And if the parser is part of the valgrind package, I am sure that it will be kept up to date for CLI changes. I think this is even better than the "displayer plugin". No idea if this works bidirectional (e.g. for attaching to gdb). > The whole point of the suggestion is to make life easier for the IDE > developers at the cost of offering some helpful API from valgrind. Even > if full blown library interface is not feasible, as I mentioned earlier, > having some sort of predictable and machine-readable output from > valgrind would still be useful. > > Thanks. > > Regards, > -Naba > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great events, 4 > opportunities to win big! Highest score wins.NEC IT Guy Games. Play to > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users |