From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: backtrace support
Date: Wed, 31 Aug 2005 21:01:30 +0200 [thread overview]
Message-ID: <87aciyszg5.fsf@student.han.nl> (raw)
In-Reply-To: <4312EF95.8030303@inma.ucl.ac.be> (Vincent Guffens's message of "Mon, 29 Aug 2005 13:20:53 +0200")
Vincent Guffens <guffens@inma.ucl.ac.be> writes:
>> 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.
It won't be that many ifdefs. I think that would be better than yet
another table.
> 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 ?
Right, I think -O2 is not a problem if you do not show line numbers.
But if you show line numbers -O2 is not always accurate AFAIK because
gcc can reorder lines.
> To correct the rest, I think I will read the GCS in detail.
Cool!
Thanks,
Marco
next prev parent reply other threads:[~2005-08-31 19:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-22 21:23 backtrace support Vincent Guffens
2005-08-23 7:46 ` Vincent Pelletier
2005-08-28 12:49 ` Yoshinori K. Okuji
2005-08-29 9:47 ` Vincent Guffens
2005-08-28 13:47 ` Marco Gerards
2005-08-29 11:20 ` Vincent Guffens
2005-08-31 19:01 ` Marco Gerards [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-08-18 20:22 Vincent Guffens
2005-08-18 20:58 ` Marco Gerards
2005-08-18 21:19 ` Vincent Guffens
2005-08-19 1:01 ` Yoshinori K. Okuji
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aciyszg5.fsf@student.han.nl \
--to=metgerards@student.han.nl \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.