[1/3] Add missing includes of extract-store-integer.h

Message ID 20250116-remove-a-class-v1-1-f0cfe6eb5c3a@adacore.com
State New
Headers
Series Remove mapped_index_base and slightly clean up DWARF reader |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Tom Tromey Jan. 16, 2025, 3:52 p.m. UTC
  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.
---
 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(+)
  

Patch

diff --git a/gdb/compile/compile-loc2c.c b/gdb/compile/compile-loc2c.c
index 42370447052f10545b94d2df877e0c90a7be110b..df05c0140f0508d1ff3772916e541923a8f8842f 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 e391ca6f933479dc9bfeac65061ed1b77f1f8ed7..af14f82126b1b5e596f67a62afa887afbe1fd1d8 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 ee1522b7437818e0bca14ca0e91f727e50fb39f7..0977cfcab546fb97ba7231f2aac3c059a1debbc2 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 6d8a4fb5a9ea561ae98ec36669bfeae253b82ffa..2f9b8eab69448bb3315ffbeb73c521152096e3d5 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 1008d19e1692c8774ebb9c4ef987a49fd1fda179..70688d7fddf59fa8cfc66e370c50ec2a63046c4d 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 989d33901e01070d05c1009cdd80db60af4f0b2f..a01161e83f7d75816aa791f51bd38d8830706b0a 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 e6f1fce4eb4bc7057223941cb78b3a8f84232b45..ffc4f3ad5eb028662c694e124c85de105067ff55 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 4dea55957346432bba4b3e262e10aa2ffa9d77d7..83bd2e08c5df403d28d662695f409e6428bb270c 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 e52e26f340ca3b485577f27da14c567808b4af5f..9484754447746b8a14b1bde2092407edb2aba298 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 0928e24446708fd654194298b0dafa80730e213c..3f78230289f0ee58d598f8e89d26f5f251eb94c4 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