summaryrefslogtreecommitdiffstats
path: root/libebl/eblinitreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libebl/eblinitreg.c')
-rw-r--r--libebl/eblinitreg.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libebl/eblinitreg.c b/libebl/eblinitreg.c
index 8909c500..5729b3cc 100644
--- a/libebl/eblinitreg.c
+++ b/libebl/eblinitreg.c
@@ -1,5 +1,5 @@
/* Fetch live process Dwfl_Frame from PID.
- Copyright (C) 2013 Red Hat, Inc.
+ Copyright (C) 2013, 2014 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
@@ -49,3 +49,10 @@ ebl_frame_nregs (Ebl *ebl)
{
return ebl == NULL ? 0 : ebl->frame_nregs;
}
+
+GElf_Addr
+ebl_func_addr_mask (Ebl *ebl)
+{
+ return ((ebl == NULL || ebl->func_addr_mask == 0)
+ ? ~(GElf_Addr)0 : ebl->func_addr_mask);
+}