]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Move definition of unrelocated_addr earlier
authorTom Tromey <tom@tromey.com>
Sun, 19 Mar 2023 15:57:48 +0000 (09:57 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 28 Mar 2023 21:12:43 +0000 (15:12 -0600)
This moves the definition of unrelocated_addr a bit earlier in
symtab.h, so that it can be used elsewhere in the file.

gdb/symtab.h

index 5bcf374c8b24186c0e06e01a235560e7319e3e01..6834644ece108544b928ce518725fa9b97442d3c 100644 (file)
@@ -58,6 +58,12 @@ class probe;
 struct lookup_name_info;
 struct code_breakpoint;
 
+/* Like a CORE_ADDR, but not directly convertible.  This is used to
+   represent an unrelocated CORE_ADDR.  DEFINE_OFFSET_TYPE is not used
+   here because there's no need to add or subtract values of this
+   type.  */
+enum class unrelocated_addr : CORE_ADDR { };
+
 /* How to match a lookup name against a symbol search name.  */
 enum class symbol_name_match_type
 {
@@ -1536,12 +1542,6 @@ struct rust_vtable_symbol : public symbol
 };
 
 \f
-/* Like a CORE_ADDR, but not directly convertible.  This is used to
-   represent an unrelocated CORE_ADDR.  DEFINE_OFFSET_TYPE is not used
-   here because there's no need to add or subtract values of this
-   type.  */
-enum class unrelocated_addr : CORE_ADDR { };
-
 /* Each item represents a line-->pc (or the reverse) mapping.  This is
    somewhat more wasteful of space than one might wish, but since only
    the files which are actually debugged are read in to core, we don't