Cast to bfd_vma in arm-tdep.c
authorTom Tromey <tom@tromey.com>
Thu, 12 Mar 2020 19:32:15 +0000 (13:32 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 12 Mar 2020 19:32:15 +0000 (13:32 -0600)
Some arm-tdep.c data structures use a bfd_vma.  A couple of spots will
warn about an implicit narrowing cast when building a gdb where
CORE_ADDR is 64-bit but bfd_vma is 32-bit.

This patch silences these warnings by changing the types in question
to CORE_ADDR.

gdb/ChangeLog
2020-03-12  Tom Tromey  <tom@tromey.com>

* arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
CORE_ADDR.
(struct arm_exidx_entry) <addr>: Now a CORE_ADDR.

gdb/ChangeLog
gdb/arm-tdep.c

index 8c4487eef96080e475c8bfbd4af71e3a1d4f883d..1e827fda5615f36d9c1d0761a6e66478b3b3f9c3 100644 (file)
@@ -1,3 +1,9 @@
+2020-03-12  Tom Tromey  <tom@tromey.com>
+
+       * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
+       CORE_ADDR.
+       (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
+
 2020-03-12  Tom Tromey  <tom@tromey.com>
 
        * remote.c (remote_target::download_tracepoint)
index 175c5b956e7ab6b5cba0da3bdc96e554e233fa48..44c439a85f56e3d2d03b07f88b50817863d85622 100644 (file)
@@ -81,7 +81,7 @@ static bool arm_debug;
 
 struct arm_mapping_symbol
 {
-  bfd_vma value;
+  CORE_ADDR value;
   char type;
 
   bool operator< (const arm_mapping_symbol &other) const
@@ -1986,7 +1986,7 @@ struct frame_unwind arm_prologue_unwind = {
 
 struct arm_exidx_entry
 {
-  bfd_vma addr;
+  CORE_ADDR addr;
   gdb_byte *entry;
 
   bool operator< (const arm_exidx_entry &other) const
This page took 0.03013 seconds and 4 git commands to generate.