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.
This commit is contained in:
Tom Tromey
2021-05-17 14:16:06 -06:00
parent 347212b819
commit cd53fa40d4
8 changed files with 18 additions and 8 deletions

View 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)

View 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 \

View File

@@ -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,

View 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.

View 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"

View 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"

View 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"