diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ChangeLog | 4 | ||||
| -rw-r--r-- | tests/addrcfi.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 58eed005..87654d60 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2009-07-22 Roland McGrath <[email protected]> + + * addrcfi.c: Update dwarf_frame_{cfa,register} calling convention. + 2009-07-08 Roland McGrath <[email protected]> * addrcfi.c: New file. diff --git a/tests/addrcfi.c b/tests/addrcfi.c index 6230621f..2a3db05c 100644 --- a/tests/addrcfi.c +++ b/tests/addrcfi.c @@ -125,10 +125,11 @@ handle_cfi (Dwfl *dwfl, const char *which, Dwarf_CFI *cfi, ra_regno, signalp ? " (signal frame)" : ""); Dwarf_Op *cfa_ops; - int cfa_nops = dwarf_frame_cfa (stuff->frame, &cfa_ops); + size_t cfa_nops; + result = dwarf_frame_cfa (stuff->frame, &cfa_ops, &cfa_nops); printf ("\tCFA "); - print_detail (cfa_nops < 0 ? -1 : 1, cfa_ops, cfa_nops, stuff->bias); + print_detail (result, cfa_ops, cfa_nops, stuff->bias); (void) dwfl_module_register_names (dwfl_addrmodule (dwfl, pc), &print_register, stuff); |
