On Thu, Jun 25, 2009 at 3:50 PM, Colin D Bennett <co...@gibibit.com> wrote:
> Robert Millan wrote on Thursday 25 June 2009: > > On Thu, Jun 25, 2009 at 12:07:18PM +0800, Bean wrote: > > > Hi, > > > > > > The current menu system is a little chaotic, the various components > > > are mixed together which make it difficult to maintain and extend. > > > Therefore, I propose a new design which seperates model, view and > > > controller. > > I would definitely like to get my graphical menu stuff committed before you > make such changes... :-) > > > Isn't Colin already working on a redesign of the menu? > > Yes, but I haven't drastically changed the design of the core menu system > except to add the concept of a "menu viewer" so that the text menu and > graphical menu viewers can be treated uniformly at a higher level. > > In fact, I am nearly ready to commit my graphical menu changes. I was > hoping > to track down an apparent memory leak that shows up when switching themes > many > times in a row, but I don't have to let that prevent me from committing the > current state of things. I know Vladimir (phcoder) has done some work to > get > an SDL video driver working for grub-emu; I am hoping that I can somehow > use > memory debugging tools to track down my memory leak. > > Does anyone have an idea if a tool like Valgrind would work with grub-emu > to > find the source of memory leaks? I guess it should if grub-emu is using > libc's malloc() and free() functions, right? > Right. It works well. In the mail in which I sent you a WIP patch I also gave you a command to debug memory leaks: valgrind --log-file=log --leak-check=full --leak-resolution=high ./grub-emu -r hd0 For the moment I have to do some things not related to grub. When I have time again I'll improve the patch (current version together with your patch is available at http://repo.or.cz/w/grub2/phcoder.git?a=shortlog;h=refs/heads/collin%2Bnewconf%2Bsdl) > > Regards, > Colin > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel