Make-lang.in, [...]: Update copyright years.
* ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
config/alpha/predicates.md, config/arm/arm.md,
config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
config/darwin9.h, config/darwin.c, config/darwin.h,
config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
config/mips/mips.md, config/mn10300/mn10300.c,
config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
config/rs6000/aix.h, config/rs6000/dfp.md,
config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
graphite-dependences.c, graphite-poly.c, graphite-poly.h,
graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
opt-functions.awk, opth-gen.awk, params.def, passes.c,
postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
From-SVN: r157950
2010-04-02 21:54:46 +02:00
|
|
|
|
/* Copyright (C) 2001, 2002, 2003, 2005, 2009, 2010
|
|
|
|
|
Free Software Foundation, Inc.
|
2002-11-07 07:00:07 +01:00
|
|
|
|
|
c-pch.c, [...]: Replace "GNU CC" with "GCC".
* c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
"GNU CC" with "GCC".
From-SVN: r64297
2003-03-13 04:48:31 +01:00
|
|
|
|
This file is part of GCC.
|
2002-11-07 07:00:07 +01:00
|
|
|
|
|
c-pch.c, [...]: Replace "GNU CC" with "GCC".
* c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
"GNU CC" with "GCC".
From-SVN: r64297
2003-03-13 04:48:31 +01:00
|
|
|
|
GCC is free software; you can redistribute it and/or modify
|
2002-11-07 07:00:07 +01:00
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2009-04-09 17:00:19 +02:00
|
|
|
|
the Free Software Foundation; either version 3, or (at your option)
|
2002-11-07 07:00:07 +01:00
|
|
|
|
any later version.
|
|
|
|
|
|
c-pch.c, [...]: Replace "GNU CC" with "GCC".
* c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
"GNU CC" with "GCC".
From-SVN: r64297
2003-03-13 04:48:31 +01:00
|
|
|
|
GCC is distributed in the hope that it will be useful,
|
2002-11-07 07:00:07 +01:00
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
2009-04-09 17:00:19 +02:00
|
|
|
|
Under Section 7 of GPL version 3, you are granted additional
|
|
|
|
|
permissions described in the GCC Runtime Library Exception, version
|
|
|
|
|
3.1, as published by the Free Software Foundation.
|
2002-11-07 07:00:07 +01:00
|
|
|
|
|
2009-04-09 17:00:19 +02:00
|
|
|
|
You should have received a copy of the GNU General Public License and
|
|
|
|
|
a copy of the GCC Runtime Library Exception along with this program;
|
|
|
|
|
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
2002-11-07 07:00:07 +01:00
|
|
|
|
|
|
|
|
|
/* Locate the FDE entry for a given address, using Darwin's keymgr support. */
|
|
|
|
|
|
|
|
|
|
#include "tconfig.h"
|
2005-05-17 18:47:49 +02:00
|
|
|
|
#include "tsystem.h"
|
2002-12-01 18:32:33 +01:00
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <stdlib.h>
|
2009-07-09 21:41:25 +02:00
|
|
|
|
#include "dwarf2.h"
|
2002-11-07 07:00:07 +01:00
|
|
|
|
#include "unwind.h"
|
|
|
|
|
#define NO_BASE_OF_ENCODED_VALUE
|
|
|
|
|
#define DWARF2_OBJECT_END_PTR_EXTENSION
|
|
|
|
|
#include "unwind-pe.h"
|
|
|
|
|
#include "unwind-dw2-fde.h"
|
|
|
|
|
/* Carefully don't include gthr.h. */
|
|
|
|
|
|
|
|
|
|
typedef int __gthread_mutex_t;
|
|
|
|
|
#define __gthread_mutex_lock(x) (void)(x)
|
|
|
|
|
#define __gthread_mutex_unlock(x) (void)(x)
|
|
|
|
|
|
2003-11-01 10:59:50 +01:00
|
|
|
|
static const fde * _Unwind_Find_registered_FDE (void *pc,
|
|
|
|
|
struct dwarf_eh_bases *bases);
|
2002-11-07 07:00:07 +01:00
|
|
|
|
|
|
|
|
|
#define _Unwind_Find_FDE _Unwind_Find_registered_FDE
|
|
|
|
|
#include "unwind-dw2-fde.c"
|
|
|
|
|
#undef _Unwind_Find_FDE
|
|
|
|
|
|
|
|
|
|
/* KeyMgr stuff. */
|
|
|
|
|
#define KEYMGR_GCC3_LIVE_IMAGE_LIST 301 /* loaded images */
|
|
|
|
|
#define KEYMGR_GCC3_DW2_OBJ_LIST 302 /* Dwarf2 object list */
|
|
|
|
|
|
|
|
|
|
extern void *_keymgr_get_and_lock_processwide_ptr (int);
|
|
|
|
|
extern void _keymgr_set_and_unlock_processwide_ptr (int, void *);
|
|
|
|
|
extern void _keymgr_unlock_processwide_ptr (int);
|
|
|
|
|
|
|
|
|
|
struct mach_header;
|
2005-01-05 19:39:43 +01:00
|
|
|
|
struct mach_header_64;
|
2002-11-07 07:00:07 +01:00
|
|
|
|
extern char *getsectdatafromheader (struct mach_header*, const char*,
|
2006-10-03 03:20:22 +02:00
|
|
|
|
const char *, unsigned long *);
|
|
|
|
|
extern char *getsectdatafromheader_64 (struct mach_header_64*, const char*,
|
|
|
|
|
const char *, unsigned long *);
|
2002-11-07 07:00:07 +01:00
|
|
|
|
|
|
|
|
|
/* This is referenced from KEYMGR_GCC3_DW2_OBJ_LIST. */
|
|
|
|
|
struct km_object_info {
|
|
|
|
|
struct object *seen_objects;
|
|
|
|
|
struct object *unseen_objects;
|
|
|
|
|
unsigned spare[2];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* Node of KEYMGR_GCC3_LIVE_IMAGE_LIST. Info about each resident image. */
|
|
|
|
|
struct live_images {
|
|
|
|
|
unsigned long this_size; /* sizeof (live_images) */
|
|
|
|
|
struct mach_header *mh; /* the image info */
|
|
|
|
|
unsigned long vm_slide;
|
|
|
|
|
void (*destructor)(struct live_images *); /* destructor for this */
|
|
|
|
|
struct live_images *next;
|
|
|
|
|
unsigned int examined_p;
|
|
|
|
|
void *fde;
|
|
|
|
|
void *object_info;
|
|
|
|
|
unsigned long info[2]; /* Future use. */
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* Bits in the examined_p field of struct live_images. */
|
|
|
|
|
enum {
|
|
|
|
|
EXAMINED_IMAGE_MASK = 1, /* We've seen this one. */
|
|
|
|
|
ALLOCED_IMAGE_MASK = 2, /* The FDE entries were allocated by
|
|
|
|
|
malloc, and must be freed. This isn't
|
|
|
|
|
used by newer libgcc versions. */
|
2003-04-01 23:02:25 +02:00
|
|
|
|
IMAGE_IS_TEXT_MASK = 4, /* This image is in the TEXT segment. */
|
|
|
|
|
DESTRUCTOR_MAY_BE_CALLED_LIVE = 8 /* The destructor may be called on an
|
|
|
|
|
object that's part of the live
|
|
|
|
|
image list. */
|
2002-11-07 07:00:07 +01:00
|
|
|
|
};
|
|
|
|
|
|
2003-04-01 23:02:25 +02:00
|
|
|
|
/* Delete any data we allocated on a live_images structure. Either
|
|
|
|
|
IMAGE has already been removed from the
|
|
|
|
|
KEYMGR_GCC3_LIVE_IMAGE_LIST and the struct will be deleted
|
|
|
|
|
after we return, or that list is locked and we're being called
|
|
|
|
|
because this object might be about to be unloaded. Called by
|
|
|
|
|
KeyMgr. */
|
2002-11-07 07:00:07 +01:00
|
|
|
|
|
2003-11-01 10:59:50 +01:00
|
|
|
|
static void
|
2002-11-07 07:00:07 +01:00
|
|
|
|
live_image_destructor (struct live_images *image)
|
|
|
|
|
{
|
|
|
|
|
if (image->object_info)
|
|
|
|
|
{
|
2003-07-15 01:04:30 +02:00
|
|
|
|
struct km_object_info *the_obj_info;
|
|
|
|
|
|
|
|
|
|
the_obj_info =
|
|
|
|
|
_keymgr_get_and_lock_processwide_ptr (KEYMGR_GCC3_DW2_OBJ_LIST);
|
|
|
|
|
if (the_obj_info)
|
|
|
|
|
{
|
|
|
|
|
seen_objects = the_obj_info->seen_objects;
|
|
|
|
|
unseen_objects = the_obj_info->unseen_objects;
|
|
|
|
|
|
|
|
|
|
/* Free any sorted arrays. */
|
|
|
|
|
__deregister_frame_info_bases (image->fde);
|
|
|
|
|
|
|
|
|
|
the_obj_info->seen_objects = seen_objects;
|
|
|
|
|
the_obj_info->unseen_objects = unseen_objects;
|
|
|
|
|
}
|
|
|
|
|
_keymgr_set_and_unlock_processwide_ptr (KEYMGR_GCC3_DW2_OBJ_LIST,
|
|
|
|
|
the_obj_info);
|
2002-11-07 07:00:07 +01:00
|
|
|
|
|
|
|
|
|
free (image->object_info);
|
|
|
|
|
image->object_info = NULL;
|
|
|
|
|
if (image->examined_p & ALLOCED_IMAGE_MASK)
|
|
|
|
|
free (image->fde);
|
2003-04-01 23:02:25 +02:00
|
|
|
|
image->fde = NULL;
|
2002-11-07 07:00:07 +01:00
|
|
|
|
}
|
2003-04-01 23:02:25 +02:00
|
|
|
|
image->examined_p = 0;
|
|
|
|
|
image->destructor = NULL;
|
2002-11-07 07:00:07 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Run through the list of live images. If we can allocate memory,
|
|
|
|
|
give each unseen image a new `struct object'. Even if we can't,
|
|
|
|
|
check whether the PC is inside the FDE of each unseen image.
|
|
|
|
|
*/
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
|
|
|
|
static inline const fde *
|
2002-11-07 07:00:07 +01:00
|
|
|
|
examine_objects (void *pc, struct dwarf_eh_bases *bases, int dont_alloc)
|
|
|
|
|
{
|
2003-11-01 10:59:50 +01:00
|
|
|
|
const fde *result = NULL;
|
2002-11-07 07:00:07 +01:00
|
|
|
|
struct live_images *image;
|
|
|
|
|
|
|
|
|
|
image = _keymgr_get_and_lock_processwide_ptr (KEYMGR_GCC3_LIVE_IMAGE_LIST);
|
|
|
|
|
|
|
|
|
|
for (; image != NULL; image = image->next)
|
|
|
|
|
if ((image->examined_p & EXAMINED_IMAGE_MASK) == 0)
|
|
|
|
|
{
|
2006-05-09 00:16:31 +02:00
|
|
|
|
char *fde = NULL;
|
2002-11-07 07:00:07 +01:00
|
|
|
|
unsigned long sz;
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2006-05-09 00:16:31 +02:00
|
|
|
|
/* For ppc only check whether or not we have __DATA eh frames. */
|
|
|
|
|
#ifdef __ppc__
|
2002-11-07 07:00:07 +01:00
|
|
|
|
fde = getsectdatafromheader (image->mh, "__DATA", "__eh_frame", &sz);
|
2005-01-05 19:39:43 +01:00
|
|
|
|
#endif
|
2006-05-09 00:16:31 +02:00
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
if (fde == NULL)
|
|
|
|
|
{
|
2006-05-09 00:16:31 +02:00
|
|
|
|
#if __LP64__
|
2005-01-05 19:39:43 +01:00
|
|
|
|
fde = getsectdatafromheader_64 ((struct mach_header_64 *) image->mh,
|
2006-09-22 21:14:35 +02:00
|
|
|
|
"__TEXT", "__eh_frame", &sz);
|
2005-01-05 19:39:43 +01:00
|
|
|
|
#else
|
2002-11-07 07:00:07 +01:00
|
|
|
|
fde = getsectdatafromheader (image->mh, "__TEXT",
|
|
|
|
|
"__eh_frame", &sz);
|
2005-01-05 19:39:43 +01:00
|
|
|
|
#endif
|
2002-11-07 07:00:07 +01:00
|
|
|
|
if (fde != NULL)
|
|
|
|
|
image->examined_p |= IMAGE_IS_TEXT_MASK;
|
|
|
|
|
}
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
/* If .eh_frame is empty, don't register at all. */
|
|
|
|
|
if (fde != NULL && sz > 0)
|
|
|
|
|
{
|
|
|
|
|
char *real_fde = (fde + image->vm_slide);
|
|
|
|
|
struct object *ob = NULL;
|
|
|
|
|
struct object panicob;
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
if (! dont_alloc)
|
|
|
|
|
ob = calloc (1, sizeof (struct object));
|
|
|
|
|
dont_alloc |= ob == NULL;
|
|
|
|
|
if (dont_alloc)
|
|
|
|
|
ob = &panicob;
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
ob->pc_begin = (void *)-1;
|
|
|
|
|
ob->tbase = 0;
|
|
|
|
|
ob->dbase = 0;
|
|
|
|
|
ob->u.single = (struct dwarf_fde *)real_fde;
|
|
|
|
|
ob->s.i = 0;
|
|
|
|
|
ob->s.b.encoding = DW_EH_PE_omit;
|
|
|
|
|
ob->fde_end = real_fde + sz;
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2003-07-15 01:04:30 +02:00
|
|
|
|
image->fde = real_fde;
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2003-07-15 01:04:30 +02:00
|
|
|
|
result = search_object (ob, pc);
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
if (! dont_alloc)
|
|
|
|
|
{
|
2003-07-15 01:04:30 +02:00
|
|
|
|
struct object **p;
|
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
image->destructor = live_image_destructor;
|
|
|
|
|
image->object_info = ob;
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
|
|
|
|
image->examined_p |= (EXAMINED_IMAGE_MASK
|
2003-04-01 23:02:25 +02:00
|
|
|
|
| DESTRUCTOR_MAY_BE_CALLED_LIVE);
|
2003-07-15 01:04:30 +02:00
|
|
|
|
|
|
|
|
|
/* Insert the object into the classified list. */
|
|
|
|
|
for (p = &seen_objects; *p ; p = &(*p)->next)
|
|
|
|
|
if ((*p)->pc_begin < ob->pc_begin)
|
|
|
|
|
break;
|
|
|
|
|
ob->next = *p;
|
|
|
|
|
*p = ob;
|
2002-11-07 07:00:07 +01:00
|
|
|
|
}
|
2003-07-15 01:04:30 +02:00
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
if (result)
|
|
|
|
|
{
|
|
|
|
|
int encoding;
|
2005-06-14 10:25:18 +02:00
|
|
|
|
_Unwind_Ptr func;
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
bases->tbase = ob->tbase;
|
|
|
|
|
bases->dbase = ob->dbase;
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
encoding = ob->s.b.encoding;
|
|
|
|
|
if (ob->s.b.mixed_encoding)
|
|
|
|
|
encoding = get_fde_encoding (result);
|
2003-11-01 10:59:50 +01:00
|
|
|
|
read_encoded_value_with_base (encoding,
|
2002-11-07 07:00:07 +01:00
|
|
|
|
base_from_object (encoding, ob),
|
2005-06-14 10:25:18 +02:00
|
|
|
|
result->pc_begin, &func);
|
|
|
|
|
bases->func = (void *) func;
|
2002-11-07 07:00:07 +01:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
image->examined_p |= EXAMINED_IMAGE_MASK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_keymgr_unlock_processwide_ptr (KEYMGR_GCC3_LIVE_IMAGE_LIST);
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
2003-11-01 10:59:50 +01:00
|
|
|
|
const fde *
|
2002-11-07 07:00:07 +01:00
|
|
|
|
_Unwind_Find_FDE (void *pc, struct dwarf_eh_bases *bases)
|
|
|
|
|
{
|
|
|
|
|
struct km_object_info *the_obj_info;
|
2003-11-01 10:59:50 +01:00
|
|
|
|
const fde *ret = NULL;
|
2002-11-07 07:00:07 +01:00
|
|
|
|
|
2003-11-01 10:59:50 +01:00
|
|
|
|
the_obj_info =
|
2002-11-07 07:00:07 +01:00
|
|
|
|
_keymgr_get_and_lock_processwide_ptr (KEYMGR_GCC3_DW2_OBJ_LIST);
|
|
|
|
|
if (! the_obj_info)
|
|
|
|
|
the_obj_info = calloc (1, sizeof (*the_obj_info));
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
if (the_obj_info != NULL)
|
|
|
|
|
{
|
|
|
|
|
seen_objects = the_obj_info->seen_objects;
|
|
|
|
|
unseen_objects = the_obj_info->unseen_objects;
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
ret = _Unwind_Find_registered_FDE (pc, bases);
|
|
|
|
|
}
|
2003-11-01 10:59:50 +01:00
|
|
|
|
|
2002-11-07 07:00:07 +01:00
|
|
|
|
/* OK, didn't find it in the list of FDEs we've seen before,
|
|
|
|
|
so go through and look at the new ones. */
|
|
|
|
|
if (ret == NULL)
|
|
|
|
|
ret = examine_objects (pc, bases, the_obj_info == NULL);
|
|
|
|
|
|
|
|
|
|
if (the_obj_info != NULL)
|
|
|
|
|
{
|
|
|
|
|
the_obj_info->seen_objects = seen_objects;
|
|
|
|
|
the_obj_info->unseen_objects = unseen_objects;
|
|
|
|
|
}
|
2003-07-15 01:04:30 +02:00
|
|
|
|
_keymgr_set_and_unlock_processwide_ptr (KEYMGR_GCC3_DW2_OBJ_LIST,
|
|
|
|
|
the_obj_info);
|
2002-11-07 07:00:07 +01:00
|
|
|
|
return ret;
|
|
|
|
|
}
|
2010-02-02 09:18:08 +01:00
|
|
|
|
|
|
|
|
|
void *
|
2010-08-17 16:54:10 +02:00
|
|
|
|
_darwin10_Unwind_FindEnclosingFunction (void *pc ATTRIBUTE_UNUSED)
|
2010-02-02 09:18:08 +01:00
|
|
|
|
{
|
2010-08-17 16:54:10 +02:00
|
|
|
|
#if __MACH__ && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060)
|
2010-02-02 09:18:08 +01:00
|
|
|
|
struct dwarf_eh_bases bases;
|
|
|
|
|
const struct dwarf_fde *fde = _Unwind_Find_FDE (pc-1, &bases);
|
|
|
|
|
if (fde)
|
|
|
|
|
return bases.func;
|
2010-08-17 16:54:10 +02:00
|
|
|
|
#endif
|
|
|
|
|
return NULL;
|
2010-02-02 09:18:08 +01:00
|
|
|
|
}
|
|
|
|
|
|