libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libunwind] suggest adding unw_init_local_accessors


From: Mark Young
Subject: Re: [libunwind] suggest adding unw_init_local_accessors
Date: Mon, 09 Dec 2002 14:21:59 -0800
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0

David Mosberger wrote:
On Mon, 09 Dec 2002 13:52:59 -0800, Mark Young <address@hidden> said:
            
  Mark> 2) to make unw_get_accessors(unw_local_addr_space) work there
  Mark> needs to be a way to initialize unw_local_addr_space without
  Mark> calling unw_init_local or unw_init_remote.

unw_local_addr_space gets initialized automatically.  If not, there is
a bug somewhere (hmmh, come to think of it, I think
unw_get_accessors() should check whether initialization has been done
already and, if not, do it).

  

Doing the initialization check inside unw_get_accessors is too late -- the reference to the uninitialized unw_local_addr_space is passed in as the argument to unw_get_accessors.
--Mark


reply via email to

[Prev in Thread] Current Thread [Next in Thread]