]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Move unrelocated_addr to common-types.h
authorTom Tromey <tromey@adacore.com>
Wed, 19 Apr 2023 19:36:56 +0000 (13:36 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 5 Jun 2023 15:59:18 +0000 (09:59 -0600)
unrelocated_addr is currently defined in symtab.h, but in order to
avoid having to include that in more places, I wanted to move the type
elsewhere.  I considered defs.h, but it seemed reasonable to have it
next to CORE_ADDR, which is what this patch does.

gdb/symtab.h
gdbsupport/common-types.h

index d8e3c273f85c39618a86bf081e55912d7e3881b5..60aa9c790cad360cec18580084fad6db82eabacb 100644 (file)
@@ -58,12 +58,6 @@ 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
 {
index 4156021abb452eb5950cd91cecee130a5c883fc5..3717162b36bc4cd6fa074933574e559456d38bb7 100644 (file)
@@ -28,6 +28,12 @@ typedef unsigned char gdb_byte;
 /* * An address in the program being debugged.  Host byte order.  */
 typedef uint64_t CORE_ADDR;
 
+/* 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 { };
+
 /* LONGEST must be at least as big as CORE_ADDR.  */
 
 typedef int64_t LONGEST;