summaryrefslogtreecommitdiff
path: root/libebl/eblopenbackend.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-06-24 17:41:40 -0700
committerRoland McGrath <roland@redhat.com>2009-07-08 15:15:52 -0700
commit3c84db3b4b610bf636c4363abb6d3dac5ae020f9 (patch)
treee0af0c5a7f27a3f06a66353a3da9bec0bd7bd32f /libebl/eblopenbackend.c
parentfe8b42e6131b74829fe31d15f31349cade566a59 (diff)
downloadelfutils-3c84db3b4b610bf636c4363abb6d3dac5ae020f9.tar.gz
CFI support: lookup by PC and translate into DWARF location per register
Diffstat (limited to 'libebl/eblopenbackend.c')
-rw-r--r--libebl/eblopenbackend.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c
index 8cf42189..cb17f03f 100644
--- a/libebl/eblopenbackend.c
+++ b/libebl/eblopenbackend.c
@@ -1,5 +1,5 @@
/* Generate ELF backend handle.
- Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007,2008 Red Hat, Inc.
+ Copyright (C) 2000-2009 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -218,6 +218,7 @@ static bool default_check_object_attribute (Ebl *ebl, const char *vendor,
int tag, uint64_t value,
const char **tag_name,
const char **value_name);
+static int default_abi_cfi (Ebl *ebl, Dwarf_CIE *abi_info);
static void
@@ -258,6 +259,7 @@ fill_defaults (Ebl *result)
result->syscall_abi = default_syscall_abi;
result->check_object_attribute = default_check_object_attribute;
result->disasm = NULL;
+ result->abi_cfi = default_abi_cfi;
result->destr = default_destr;
result->sysvhash_entrysize = sizeof (Elf32_Word);
}
@@ -746,3 +748,10 @@ default_check_object_attribute (Ebl *ebl __attribute__ ((unused)),
*value_name = NULL;
return false;
}
+
+static int
+default_abi_cfi (Ebl *ebl __attribute__ ((unused)),
+ Dwarf_CIE *abi_info __attribute__ ((unused)))
+{
+ return 0;
+}