diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-07-23 12:02:11 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-07-23 12:02:11 +0200 |
commit | 4a8636a307a9a532dcc60b5ad8bf809a20dc24c3 (patch) | |
tree | a439ca3609f5ebf474fe06f98211f058ffc83132 /loc2c-test.c | |
parent | 97f529ab5dad4aae9b1057397de84addcc42cacc (diff) | |
download | systemtap-steved-4a8636a307a9a532dcc60b5ad8bf809a20dc24c3.tar.gz systemtap-steved-4a8636a307a9a532dcc60b5ad8bf809a20dc24c3.tar.xz systemtap-steved-4a8636a307a9a532dcc60b5ad8bf809a20dc24c3.zip |
Workaround cfa_nops not being needed on earlier elfutils.
* dwflpp.cxx (get_cfa_ops): Only define cfa_nops if _ELFUTILS_PREREQ(0,142).
* loc2c-test.c (main): Likewise.
Diffstat (limited to 'loc2c-test.c')
-rw-r--r-- | loc2c-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loc2c-test.c b/loc2c-test.c index 88e9047c..ccd9510c 100644 --- a/loc2c-test.c +++ b/loc2c-test.c @@ -526,10 +526,10 @@ main (int argc, char **argv) else { Dwarf_Op *cfa_ops = NULL; - size_t cfa_nops; #ifdef _ELFUTILS_PREREQ #if _ELFUTILS_PREREQ(0,142) + size_t cfa_nops; Dwarf_Addr bias; Dwfl_Module *module = dwfl_addrmodule (dwfl, pc); if (module != NULL) |