summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_getsrclines.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2010-06-01 20:10:19 -0700
committerRoland McGrath <[email protected]>2010-06-01 20:10:19 -0700
commit675229bb5dcf38df3c09f7f74e41b861e32dd0f2 (patch)
tree3719988787e9287ccdecf34d454477446ecab2de /libdw/dwarf_getsrclines.c
parentc8a0673fff4c77a7067ca9a43aefac4bd8d3d1ff (diff)
Remove meaningless DWARF_VERSION macro.
Diffstat (limited to 'libdw/dwarf_getsrclines.c')
-rw-r--r--libdw/dwarf_getsrclines.c4
1 files changed, 2 insertions, 2 deletions
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 <[email protected]>, 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;