Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1E9fvy-0000Nh-Ea for mharc-grub-devel@gnu.org; Mon, 29 Aug 2005 05:28:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E9fvv-0000N7-Jn for grub-devel@gnu.org; Mon, 29 Aug 2005 05:28:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E9fvt-0000MN-Ka for grub-devel@gnu.org; Mon, 29 Aug 2005 05:28:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9fuS-00083V-0k for grub-devel@gnu.org; Mon, 29 Aug 2005 05:26:32 -0400 Received: from [130.104.239.239] (helo=sprbodj.inma.ucl.ac.be) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E9frR-0002v6-J8 for grub-devel@gnu.org; Mon, 29 Aug 2005 05:23:25 -0400 Received: from [130.104.239.234] (pc-babaorom.inma.ucl.ac.be [130.104.239.234]) by sprbodj.inma.ucl.ac.be (Postfix) with ESMTP id F022919C8166 for ; Mon, 29 Aug 2005 11:21:09 +0200 (CEST) Message-ID: <4312EF95.8030303@inma.ucl.ac.be> Date: Mon, 29 Aug 2005 13:20:53 +0200 From: Vincent Guffens User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) X-Accept-Language: en MIME-Version: 1.0 To: The development of GRUB 2 References: <430A4263.1020103@inma.ucl.ac.be> <87ll2mrx54.fsf@student.han.nl> In-Reply-To: <87ll2mrx54.fsf@student.han.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ucl-inma-MailScanner-Information: Please contact the ISP for more information X-ucl-inma-MailScanner: Found to be clean X-MailScanner-From: guffens@inma.ucl.ac.be Subject: Re: backtrace support X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 09:28:04 -0000 > I have the idea that another array for the symbols is not required. I > think we can use one common table. The symbol name and symbol address > are already in there. The hard thing is would getting the size, > perhaps we could leave that open and fill it in with a function, or > can we use a ld/gcc feature to do that? This will make the backtrace > code simpler and it saves memory. Do you think that is somehow > possible? This is true, another list of symbols is not required for this backtrace support but it makes the implementation a lot less intrusive. It would be possible to use some #ifdef here and there around the structures that are used already to add a field for the symbol size but it would not be very nice. If you turn the debug flag off, the code comes back to the original so I thought it would not be a problem. However, I found using a simple example that using -O2 still allows for using the frame pointer. This is to be verified but if it turns to be usable, than maybe using the --enable-debug will be less a problem and more popular so it would then be wise not to have the kernel symbol list twice. What do you think ? To correct the rest, I think I will read the GCS in detail. -- Vincent Guffens PhD Student UCL/CESAME tel: +32 10 47 80 30 Value your freedom, or you will lose it, teaches history. "Don't bother us with politics," respond those who don't want to learn. -- Richard M. Stallman