]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Rename dwarf2/comp-unit.h
authorTom Tromey <tom@tromey.com>
Mon, 17 May 2021 20:16:06 +0000 (14:16 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 17 May 2021 20:16:07 +0000 (14:16 -0600)
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.

gdb/ChangeLog
gdb/Makefile.in
gdb/dwarf2/comp-unit-head.c [moved from gdb/dwarf2/comp-unit.c with 98% similarity]
gdb/dwarf2/comp-unit-head.h [moved from gdb/dwarf2/comp-unit.h with 100% similarity]
gdb/dwarf2/cu.h
gdb/dwarf2/line-header.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h

index 7ca4738be02bd6e50f214fea47e4044e61713001..82131c11038dc41be98cd016fea1933de72410a8 100644 (file)
@@ -1,3 +1,13 @@
+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.
+
 2021-05-17  Tom Tromey  <tom@tromey.com>
 
        * dwarf2/read.c (maybe_queue_comp_unit)
index 1f37fe43024b3327351355fbd4401b2af3504420..a9fade803b0d0c8b5f6a5ce8d165eab044759044 100644 (file)
@@ -1025,7 +1025,7 @@ COMMON_SFILES = \
        dummy-frame.c \
        dwarf2/abbrev.c \
        dwarf2/attribute.c \
-       dwarf2/comp-unit.c \
+       dwarf2/comp-unit-head.c \
        dwarf2/cu.c \
        dwarf2/dwz.c \
        dwarf2/expr.c \
similarity index 98%
rename from gdb/dwarf2/comp-unit.c
rename to gdb/dwarf2/comp-unit-head.c
index e22f2e9a91c670270267f6a934a7278c0df18ec2..8cc741df59521e51256e1c07d0ad694e9fb0ed0a 100644 (file)
    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,
index 83a4aac3f08fd46e17adc91518d3728df346609a..ff56ec5527b456659466c4781cbf24289c793b7f 100644 (file)
@@ -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.
index 7575297f9667ff6c5885f57ec50482b73509825f..07a8f5aa109acaa506fda2bdc343b1e124a2f027 100644 (file)
@@ -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"
index 7a321c14d4519d049c185817dda1a066f7051f16..8a57aeee61cabdb1686bd8d229ea3b860668e7b7 100644 (file)
@@ -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"
index 756d1934ca0c2fced81d88b91090a7614159f90f..6af1f44bd47c74f57d28c7dd04edb124bd1c9d91 100644 (file)
@@ -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"