summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_end.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2009-06-24 17:41:40 -0700
committerRoland McGrath <[email protected]>2009-07-08 15:15:52 -0700
commit3c84db3b4b610bf636c4363abb6d3dac5ae020f9 (patch)
treee0af0c5a7f27a3f06a66353a3da9bec0bd7bd32f /libdw/dwarf_end.c
parentfe8b42e6131b74829fe31d15f31349cade566a59 (diff)
CFI support: lookup by PC and translate into DWARF location per register
Diffstat (limited to 'libdw/dwarf_end.c')
-rw-r--r--libdw/dwarf_end.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libdw/dwarf_end.c b/libdw/dwarf_end.c
index 60c9716e..fda37fc1 100644
--- a/libdw/dwarf_end.c
+++ b/libdw/dwarf_end.c
@@ -1,5 +1,5 @@
/* Release debugging handling context.
- Copyright (C) 2002, 2003, 2004, 2005 Red Hat, Inc.
+ Copyright (C) 2002, 2003, 2004, 2005, 2006, 2009 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <[email protected]>, 2002.
@@ -56,7 +56,7 @@
#include <stdlib.h>
#include "libdwP.h"
-
+#include "cfi.h"
static void
@@ -82,6 +82,10 @@ dwarf_end (dwarf)
{
if (dwarf != NULL)
{
+ if (dwarf->cfi != NULL)
+ /* Clean up the CFI cache. */
+ __libdw_destroy_frame_cache (dwarf->cfi);
+
/* The search tree for the CUs. NB: the CU data itself is
allocated separately, but the abbreviation hash tables need
to be handled. */