Skip to content

Commit fb8ea9d

Browse files
committed
Don't include cooked-index.h from dwarf2/read.h
dwarf2/read.h includes cooked-index.h, but it doesn't need to. This patch removes the inclusion from this header, and adds one to index-write.c to make up for the absence.
1 parent 1fa80e4 commit fb8ea9d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

gdb/dwarf2/index-write.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "gdbsupport/scoped_fd.h"
3131
#include "complaints.h"
3232
#include "dwarf2/index-common.h"
33+
#include "dwarf2/cooked-index.h"
3334
#include "dwarf2.h"
3435
#include "dwarf2/read.h"
3536
#include "dwarf2/dwz.h"

gdb/dwarf2/read.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <queue>
2424
#include <unordered_map>
2525
#include "dwarf2/comp-unit-head.h"
26-
#include "dwarf2/cooked-index.h"
2726
#include "dwarf2/file-and-dir.h"
2827
#include "dwarf2/index-cache.h"
2928
#include "dwarf2/mapped-index.h"

0 commit comments

Comments
 (0)