]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Drop unused field struct Dwarf_Files_s.cu
authorPetr Machata <pmachata@redhat.com>
Wed, 15 Oct 2014 17:28:08 +0000 (19:28 +0200)
committerPetr Machata <pmachata@redhat.com>
Wed, 15 Oct 2014 17:35:32 +0000 (19:35 +0200)
Signed-off-by: Petr Machata <pmachata@redhat.com>
libdw/ChangeLog
libdw/dwarf_getsrclines.c
libdw/libdwP.h

index f40ad251f34fa1805c3ec8716a7a20fe289ccdf2..89b2735fbc40504299b553fcb0a69d15751ac8e5 100644 (file)
@@ -1,3 +1,8 @@
+2014-10-15  Petr Machata  <pmachata@redhat.com>
+
+       * libdwP.h (struct Dwarf_Files_s.cu): Drop field.
+       * dwarf_getsrclines.c (dwarf_getsrclines): Don't set it.
+
 2014-10-05  Mark Wielaard  <mjw@redhat.com>
 
        * dwarf.h: Add DW_AT_GNU_deleted.
index 7b174cfc0c2ae040b6d112ad851f226aa2b9f847..74d626cf9b574a0bf32dad0bc579f548b340d16d 100644 (file)
@@ -1,5 +1,5 @@
 /* Return line number information of CU.
-   Copyright (C) 2004-2010, 2013 Red Hat, Inc.
+   Copyright (C) 2004-2010, 2013, 2014 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2004.
 
@@ -680,9 +680,6 @@ dwarf_getsrclines (Dwarf_Die *cudie, Dwarf_Lines **lines, size_t *nlines)
        dirs[i] = dirarray[i]->dir;
       dirs[ndirlist] = NULL;
 
-      /* Remember the referring CU.  */
-      files->cu = cu;
-
       /* Make the file data structure available through the CU.  */
       cu->files = files;
 
index ce8a83d592e02732a06e3abf2d25a98d30535077..c0f3741c85191c7e318eebe8f2d6eec9b8c31f8b 100644 (file)
@@ -209,7 +209,6 @@ struct Dwarf_Abbrev
 /* Files in line information records.  */
 struct Dwarf_Files_s
   {
-    struct Dwarf_CU *cu;
     unsigned int ndirs;
     unsigned int nfiles;
     struct Dwarf_Fileinfo_s