summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2009-01-28 18:28:52 -0800
committerRoland McGrath <[email protected]>2009-01-28 18:28:52 -0800
commitc5acb304d81cdbe3f8b923f2a6ac1bee3af9f498 (patch)
treed08164107fab19144699a66fc8c696b09ea37b22
parent51f01285dca04c78350d75bb62bba1350a05e252 (diff)
(struct Dwarf_Files_s): Replace dbg field with cu field.
-rw-r--r--libdw/ChangeLog4
-rw-r--r--libdw/dwarf_getsrclines.c6
-rw-r--r--libdw/libdwP.h4
3 files changed, 9 insertions, 5 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 0d94b45a..c45c1793 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-28 Roland McGrath <[email protected]>
+
+ * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
+
2009-01-26 Roland McGrath <[email protected]>
* dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
diff --git a/libdw/dwarf_getsrclines.c b/libdw/dwarf_getsrclines.c
index 9b3c97af..fe0e67d6 100644
--- a/libdw/dwarf_getsrclines.c
+++ b/libdw/dwarf_getsrclines.c
@@ -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 <[email protected]>, 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;
diff --git a/libdw/libdwP.h b/libdw/libdwP.h
index 867ad89b..1892cd58 100644
--- a/libdw/libdwP.h
+++ b/libdw/libdwP.h
@@ -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 <[email protected]>, 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