diff options
| author | Mark Wielaard <[email protected]> | 2013-08-28 21:54:58 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2013-09-03 11:38:37 +0200 |
| commit | 79b9181ff552e54bacc74fc0b0699e6133645c6b (patch) | |
| tree | 7fa14838517a582700ac94098876df56cc80c848 /tests/addrcfi.c | |
| parent | d3f164551f3f5d9ebd47cd4c055873ba1658a1b6 (diff) | |
tests: Add s390 and s390x addrcfi testcases.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/addrcfi.c')
| -rw-r--r-- | tests/addrcfi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/addrcfi.c b/tests/addrcfi.c index 398b2918..8a2d126c 100644 --- a/tests/addrcfi.c +++ b/tests/addrcfi.c @@ -107,6 +107,12 @@ static int handle_cfi (Dwfl *dwfl, const char *which, Dwarf_CFI *cfi, GElf_Addr pc, struct stuff *stuff) { + if (cfi == NULL) + { + printf ("handle_cfi no CFI (%s): %s\n", which, dwarf_errmsg (-1)); + return -1; + } + int result = dwarf_cfi_addrframe (cfi, pc - stuff->bias, &stuff->frame); if (result != 0) { |
