diff options
| author | Roland McGrath <[email protected]> | 2010-06-23 03:17:28 -0700 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2010-06-23 03:17:28 -0700 |
| commit | 9616b85b0854b3295d0bab900cb9270be90b70df (patch) | |
| tree | ce404fc1fc0f1bbf5fdfe6cc56758db093ef9357 /libdw/cfi.c | |
| parent | c16966a0043dc173fcaab5d3f8b754b4e9c9ceb7 (diff) | |
Back out dwarf_cfi_validate_fde.
Diffstat (limited to 'libdw/cfi.c')
| -rw-r--r-- | libdw/cfi.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/libdw/cfi.c b/libdw/cfi.c index e49335dd..aeb48e69 100644 --- a/libdw/cfi.c +++ b/libdw/cfi.c @@ -504,42 +504,3 @@ __libdw_frame_at_address (Dwarf_CFI *cache, struct dwarf_fde *fde, } return result; } - -int -dwarf_cfi_validate_fde (cache, offset, start, end, signalp, encoding) - Dwarf_CFI *cache; - Dwarf_Off offset; - Dwarf_Addr *start; - Dwarf_Addr *end; - bool *signalp; - uint8_t *encoding; -{ - if (cache == NULL) - return -1; - - struct dwarf_fde *fde = __libdw_fde_by_offset (cache, offset); - if (unlikely (fde == NULL)) - return -1; - - Dwarf_Frame *fs; - int result = __libdw_frame_at_address (cache, fde, fde->end, &fs); - if (unlikely (result != DWARF_E_NOERROR)) - { - __libdw_seterrno (result); - return -1; - } - - result = fs->nregs + 1; - free (fs); - - if (start != NULL) - *start = fde->start; - if (end != NULL) - *end = fde->end; - if (signalp != NULL) - *signalp = fde->cie->signal_frame; - if (encoding != NULL) - *encoding = fde->cie->fde_encoding; - - return result; -} |
