]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
(struct Dwarf_Files_s): Replace dbg field with cu field.
authorRoland McGrath <roland@redhat.com>
Thu, 29 Jan 2009 02:28:52 +0000 (18:28 -0800)
committerRoland McGrath <roland@redhat.com>
Thu, 29 Jan 2009 02:28:52 +0000 (18:28 -0800)
libdw/ChangeLog
libdw/dwarf_getsrclines.c
libdw/libdwP.h

index 0d94b45a7b6e6a10f4025ea72386ee0c474e4e37..c45c17931c6cc4bd6da13d73537e590fed95e42d 100644 (file)
@@ -1,3 +1,7 @@
+2009-01-28  Roland McGrath  <roland@redhat.com>
+
+       * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
+
 2009-01-26  Roland McGrath  <roland@redhat.com>
 
        * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
index 9b3c97af4ea96c333a26b5cd400bb8f9bfda9d9d..fe0e67d6a00142b9d2bbe87ac3f745ea02def5c5 100644 (file)
@@ -1,5 +1,5 @@
 /* Return line number information of CU.
-   Copyright (C) 2004, 2005, 2007, 2008 Red Hat, Inc.
+   Copyright (C) 2004-2009 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2004.
 
@@ -634,8 +634,8 @@ dwarf_getsrclines (Dwarf_Die *cudie, Dwarf_Lines **lines, size_t *nlines)
        dirs[i] = dirarray[i]->dir;
       dirs[ndirlist] = NULL;
 
-      /* Remember the debugging descriptor.  */
-      files->dbg = dbg;
+      /* Remember the referring CU.  */
+      files->cu = cu;
 
       /* Make the file data structure available through the CU.  */
       cu->files = files;
index 867ad89b4a711dd9e0b9f61473d14f1df18da575..1892cd58f20c48e03433a6446f26783ec79b76cc 100644 (file)
@@ -1,5 +1,5 @@
 /* Internal definitions for libdwarf.
-   Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Red Hat, Inc.
+   Copyright (C) 2002-2009 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -208,7 +208,7 @@ struct Dwarf_Abbrev
 /* Files in line information records.  */
 struct Dwarf_Files_s
   {
-    Dwarf *dbg;
+    struct Dwarf_CU *cu;
     unsigned int ndirs;
     unsigned int nfiles;
     struct Dwarf_Fileinfo_s