From: Jeffrey S. <fe...@xi...> - 2003-04-03 18:47:19
|
I've actually already started working on a valgrind frontend for Gtk. http://primates.ximian.com/~fejj/alleyoop-0.1.tar.gz I don't think that's the latest sources, but it should be close enough for you to get a feel for what I am doing. On Thu, 2003-04-03 at 02:16, Biswapesh Chattopadhyay wrote: > Hi > > I was thinking of writing a GTK+ GUI on top of valgrind (mainly for the > addrcheck skin for now) and integrating it with Anjuta. So, my questions > are: > > 1. What is the recommended method for writing a GUI on top of valgrind ? > Should I just fork()/exec() the process and parse the output this is how I did it :-) however... speaking of front-ends for valgrind - would it be possible for the valgrind developers to add a switch such as --full-src-path or some such that would give the full path name for the src file in the error log output? currently it only gives the basename of the src file containing the brokeness. I've taken a look at adding this myself (to 1.0.4) but got lost in the valgrind sources for parsing ELF (symtab2.c or some such if I recall correctly). from my limited understanding of ELF (mostly from playing with libbfd), the debugging symbols which would give what I want (full src path) lies within the "text" section - but it appears that is not what valgrind uses (probably for a good reason, just that I don't know what that reason is). the other path I was thinking of following was to use bfd myself, but that means that I would have to figure out which .so each address was in. it also means (logically) that I would have to open each of the dependency .so's in libbfd so that I could extract the debugging symbols I needed. kinda yuck, but ya gotta do what ya gotta do I guess :-) > Or, is it > possible to use valgrind as a loadable library in some way ? not that I know of. > > 2. I'm having some problems while running large GTK+ programs (e.g. > anjuta). For example, anjuta crashes on startup unless you pass the > '--no-splash' flag. Then, some gconf errors occur only when running > through valgrind. Are these known issues, and are they on the way to > getting solved ? are you using --alignment=8 ? I had to do this when valgrinding evolution. Jeff > > FWIW, I'm using RH 8.0 with GNOME 2.2 CVS. > > Thanks in advance. -- Jeffrey Stedfast Evolution Hacker - Ximian, Inc. fe...@xi... - www.ximian.com |