aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-05-17 14:16:06 -0600
committerTom Tromey <tom@tromey.com>2021-05-17 14:16:07 -0600
commitcd53fa40d480468bdcfc2992cf9753fb59bc7a23 (patch)
treebb1e16517c217f9815b833a9d1cfe6c3fb902081 /gdb/dwarf2
parent347212b81930f9afb9e2885656f897cf3821881c (diff)
downloadbinutils-cd53fa40d480468bdcfc2992cf9753fb59bc7a23.zip
binutils-cd53fa40d480468bdcfc2992cf9753fb59bc7a23.tar.gz
binutils-cd53fa40d480468bdcfc2992cf9753fb59bc7a23.tar.bz2
Rename dwarf2/comp-unit.h
Simon pointed out that dwarf2/cu.h and dwarf2/comp-unit.h seemingly mean the same thing. He suggested renaming the latter to comp-unit-head.h, which is what this patch does. gdb/ChangeLog 2021-05-17 Tom Tromey <tom@tromey.com> * dwarf2/read.h: Update include. * dwarf2/read.c: Update include. * dwarf2/line-header.c: Update include. * dwarf2/cu.h: Update include. * dwarf2/comp-unit-head.h: Rename from comp-unit.h. * dwarf2/comp-unit-head.c: Rename from comp-unit.c. * Makefile.in (COMMON_SFILES): Update.
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r--gdb/dwarf2/comp-unit-head.c (renamed from gdb/dwarf2/comp-unit.c)6
-rw-r--r--gdb/dwarf2/comp-unit-head.h (renamed from gdb/dwarf2/comp-unit.h)0
-rw-r--r--gdb/dwarf2/cu.h2
-rw-r--r--gdb/dwarf2/line-header.c2
-rw-r--r--gdb/dwarf2/read.c2
-rw-r--r--gdb/dwarf2/read.h2
6 files changed, 7 insertions, 7 deletions
diff --git a/gdb/dwarf2/comp-unit.c b/gdb/dwarf2/comp-unit-head.c
index e22f2e9..8cc741d 100644
--- a/gdb/dwarf2/comp-unit.c
+++ b/gdb/dwarf2/comp-unit-head.c
@@ -25,13 +25,13 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "dwarf2/comp-unit.h"
+#include "dwarf2/comp-unit-head.h"
#include "dwarf2/leb.h"
#include "dwarf2/read.h"
#include "dwarf2/section.h"
#include "dwarf2/stringify.h"
-/* See comp-unit.h. */
+/* See comp-unit-head.h. */
const gdb_byte *
read_comp_unit_head (struct comp_unit_head *cu_header,
@@ -172,7 +172,7 @@ error_check_comp_unit_head (dwarf2_per_objfile *per_objfile,
filename);
}
-/* See comp-unit.h. */
+/* See comp-unit-head.h. */
const gdb_byte *
read_and_check_comp_unit_head (dwarf2_per_objfile *per_objfile,
diff --git a/gdb/dwarf2/comp-unit.h b/gdb/dwarf2/comp-unit-head.h
index 2d3ff4d..2d3ff4d 100644
--- a/gdb/dwarf2/comp-unit.h
+++ b/gdb/dwarf2/comp-unit-head.h
diff --git a/gdb/dwarf2/cu.h b/gdb/dwarf2/cu.h
index 83a4aac..ff56ec5 100644
--- a/gdb/dwarf2/cu.h
+++ b/gdb/dwarf2/cu.h
@@ -21,7 +21,7 @@
#define GDB_DWARF2_CU_H
#include "buildsym.h"
-#include "dwarf2/comp-unit.h"
+#include "dwarf2/comp-unit-head.h"
#include "gdbsupport/gdb_optional.h"
/* Type used for delaying computation of method physnames.
diff --git a/gdb/dwarf2/line-header.c b/gdb/dwarf2/line-header.c
index 7575297..07a8f5a 100644
--- a/gdb/dwarf2/line-header.c
+++ b/gdb/dwarf2/line-header.c
@@ -18,7 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "dwarf2/comp-unit.h"
+#include "dwarf2/comp-unit-head.h"
#include "dwarf2/leb.h"
#include "dwarf2/line-header.h"
#include "dwarf2/read.h"
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 7a321c1..8a57aee 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -32,7 +32,7 @@
#include "dwarf2/read.h"
#include "dwarf2/abbrev.h"
#include "dwarf2/attribute.h"
-#include "dwarf2/comp-unit.h"
+#include "dwarf2/comp-unit-head.h"
#include "dwarf2/cu.h"
#include "dwarf2/index-cache.h"
#include "dwarf2/index-common.h"
diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h
index 756d193..6af1f44 100644
--- a/gdb/dwarf2/read.h
+++ b/gdb/dwarf2/read.h
@@ -22,7 +22,7 @@
#include <queue>
#include <unordered_map>
-#include "dwarf2/comp-unit.h"
+#include "dwarf2/comp-unit-head.h"
#include "dwarf2/index-cache.h"
#include "dwarf2/section.h"
#include "filename-seen-cache.h"