[binutils-gdb] Add missing includes of extract-store-integer.h

Tom Tromey tromey@sourceware.org
Fri Jan 17 15:58:12 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8d6a3c8e72657ae8d8abdc466b17e31657b2e273

commit 8d6a3c8e72657ae8d8abdc466b17e31657b2e273
Author: Tom Tromey <tromey@adacore.com>
Date:   Thu Jan 16 05:56:04 2025 -0700

    Add missing includes of extract-store-integer.h
    
    I found a number of .c files that need to include
    extract-store-integer.h but that were only including it indirectly.
    This patch adds the missing includes.  This change enables the next
    patch.
    
    Approved-By: Andrew Burgess <aburgess@redhat.com>

Diff:
---
 gdb/compile/compile-loc2c.c   | 1 +
 gdb/dwarf2/aranges.c          | 1 +
 gdb/dwarf2/expr.c             | 1 +
 gdb/dwarf2/frame.c            | 1 +
 gdb/dwarf2/index-write.c      | 1 +
 gdb/dwarf2/loc.c              | 1 +
 gdb/dwarf2/read-debug-names.c | 1 +
 gdb/dwarf2/read-gdb-index.c   | 1 +
 gdb/dwarf2/read.c             | 1 +
 gdb/gdbtypes.c                | 1 +
 10 files changed, 10 insertions(+)

diff --git a/gdb/compile/compile-loc2c.c b/gdb/compile/compile-loc2c.c
index 42370447052..df05c0140f0 100644
--- a/gdb/compile/compile-loc2c.c
+++ b/gdb/compile/compile-loc2c.c
@@ -31,6 +31,7 @@
 #include "dwarf2/frame.h"
 #include "value.h"
 #include "gdbarch.h"
+#include "extract-store-integer.h"
 
 

 
diff --git a/gdb/dwarf2/aranges.c b/gdb/dwarf2/aranges.c
index e391ca6f933..af14f82126b 100644
--- a/gdb/dwarf2/aranges.c
+++ b/gdb/dwarf2/aranges.c
@@ -19,6 +19,7 @@
 
 #include "dwarf2/aranges.h"
 #include "dwarf2/read.h"
+#include "extract-store-integer.h"
 
 /* See aranges.h.  */
 
diff --git a/gdb/dwarf2/expr.c b/gdb/dwarf2/expr.c
index ee1522b7437..0977cfcab54 100644
--- a/gdb/dwarf2/expr.c
+++ b/gdb/dwarf2/expr.c
@@ -33,6 +33,7 @@
 #include "gdbsupport/underlying.h"
 #include "gdbarch.h"
 #include "objfiles.h"
+#include "extract-store-integer.h"
 
 /* This holds gdbarch-specific types used by the DWARF expression
    evaluator.  See comments in execute_stack_op.  */
diff --git a/gdb/dwarf2/frame.c b/gdb/dwarf2/frame.c
index e0e8eb5dbec..03e973eb902 100644
--- a/gdb/dwarf2/frame.c
+++ b/gdb/dwarf2/frame.c
@@ -31,6 +31,7 @@
 #include "regcache.h"
 #include "value.h"
 #include "record.h"
+#include "extract-store-integer.h"
 
 #include "complaints.h"
 #include "dwarf2/frame.h"
diff --git a/gdb/dwarf2/index-write.c b/gdb/dwarf2/index-write.c
index 1008d19e169..70688d7fddf 100644
--- a/gdb/dwarf2/index-write.c
+++ b/gdb/dwarf2/index-write.c
@@ -40,6 +40,7 @@
 #include "dwarf2/tag.h"
 #include "gdbsupport/gdb_tilde_expand.h"
 #include "dwarf2/read-debug-names.h"
+#include "extract-store-integer.h"
 
 #include <algorithm>
 #include <cmath>
diff --git a/gdb/dwarf2/loc.c b/gdb/dwarf2/loc.c
index 989d33901e0..a01161e83f7 100644
--- a/gdb/dwarf2/loc.c
+++ b/gdb/dwarf2/loc.c
@@ -46,6 +46,7 @@
 #include <unordered_set>
 #include "gdbsupport/underlying.h"
 #include "gdbsupport/byte-vector.h"
+#include "extract-store-integer.h"
 
 static struct value *dwarf2_evaluate_loc_desc_full
   (struct type *type, const frame_info_ptr &frame, const gdb_byte *data,
diff --git a/gdb/dwarf2/read-debug-names.c b/gdb/dwarf2/read-debug-names.c
index e6f1fce4eb4..ffc4f3ad5eb 100644
--- a/gdb/dwarf2/read-debug-names.c
+++ b/gdb/dwarf2/read-debug-names.c
@@ -27,6 +27,7 @@
 #include "mapped-index.h"
 #include "read.h"
 #include "stringify.h"
+#include "extract-store-integer.h"
 
 /* This is just like cooked_index_functions, but overrides a single
    method so the test suite can distinguish the .debug_names case from
diff --git a/gdb/dwarf2/read-gdb-index.c b/gdb/dwarf2/read-gdb-index.c
index 4dea5595734..83bd2e08c5d 100644
--- a/gdb/dwarf2/read-gdb-index.c
+++ b/gdb/dwarf2/read-gdb-index.c
@@ -28,6 +28,7 @@
 #include "gdbsupport/gdb-checked-static-cast.h"
 #include "mapped-index.h"
 #include "read.h"
+#include "extract-store-integer.h"
 
 /* When true, do not reject deprecated .gdb_index sections.  */
 static bool use_deprecated_index_sections = false;
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index e52e26f340c..94847544477 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -97,6 +97,7 @@
 #include "dwarf2/error.h"
 #include <variant>
 #include "gdbsupport/unordered_set.h"
+#include "extract-store-integer.h"
 
 /* When == 1, print basic high level tracing messages.
    When > 1, be more verbose.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 0928e244467..3f78230289f 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -44,6 +44,7 @@
 #include "gmp-utils.h"
 #include "rust-lang.h"
 #include "ada-lang.h"
+#include "extract-store-integer.h"
 
 /* The value of an invalid conversion badness.  */
 #define INVALID_CONVERSION 100


More information about the Gdb-cvs mailing list