diff options
author | Tommi Rantala <tt.rantala@gmail.com> | 2012-09-21 09:47:41 +0300 |
---|---|---|
committer | Tommi Rantala <tt.rantala@gmail.com> | 2012-09-28 14:06:07 +0300 |
commit | 5d0f376b08126b51a001d7cdfba1ec4e0d644f54 (patch) | |
tree | 0a531ec25d61d7ff902b100af5828a72bb0eb87b /src/ppc | |
parent | c2d6f85a0ac0562f9edaaefd584376af89412a17 (diff) | |
download | libunwind-5d0f376b08126b51a001d7cdfba1ec4e0d644f54.tar.gz |
Invert tdep_init() flag logic
Invert the flag that signals that tdep_init() was called, to move the
symbol from data to BSS.
Diffstat (limited to 'src/ppc')
-rw-r--r-- | src/ppc/Ginit_local.c | 2 | ||||
-rw-r--r-- | src/ppc/Ginit_remote.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ppc/Ginit_local.c b/src/ppc/Ginit_local.c index b931b5b6..4ca2b25b 100644 --- a/src/ppc/Ginit_local.c +++ b/src/ppc/Ginit_local.c @@ -48,7 +48,7 @@ unw_init_local (unw_cursor_t *cursor, ucontext_t *uc) { struct cursor *c = (struct cursor *) cursor; - if (tdep_needs_initialization) + if (!tdep_init_done) tdep_init (); Debug (1, "(cursor=%p)\n", c); diff --git a/src/ppc/Ginit_remote.c b/src/ppc/Ginit_remote.c index 0f4b0fdb..4ee54025 100644 --- a/src/ppc/Ginit_remote.c +++ b/src/ppc/Ginit_remote.c @@ -41,7 +41,7 @@ unw_init_remote (unw_cursor_t *cursor, unw_addr_space_t as, void *as_arg) #else /* !UNW_LOCAL_ONLY */ struct cursor *c = (struct cursor *) cursor; - if (tdep_needs_initialization) + if (!tdep_init_done) tdep_init (); Debug (1, "(cursor=%p)\n", c); |