From 675229bb5dcf38df3c09f7f74e41b861e32dd0f2 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 1 Jun 2010 20:10:19 -0700 Subject: Remove meaningless DWARF_VERSION macro. --- libdw/dwarf_getsrclines.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdw/dwarf_getsrclines.c') diff --git a/libdw/dwarf_getsrclines.c b/libdw/dwarf_getsrclines.c index 43fad99a..dcf3490a 100644 --- a/libdw/dwarf_getsrclines.c +++ b/libdw/dwarf_getsrclines.c @@ -1,5 +1,5 @@ /* Return line number information of CU. - Copyright (C) 2004-2009 Red Hat, Inc. + Copyright (C) 2004-2010 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Ulrich Drepper , 2004. @@ -175,7 +175,7 @@ dwarf_getsrclines (Dwarf_Die *cudie, Dwarf_Lines **lines, size_t *nlines) /* The next element of the header is the version identifier. */ uint_fast16_t version = read_2ubyte_unaligned_inc (dbg, linep); - if (unlikely (version > DWARF_VERSION)) + if (unlikely (version < 2) || unlikely (version > 3)) { __libdw_seterrno (DWARF_E_VERSION); goto out; -- cgit v1.2.3