aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-03-12 13:32:15 -0600
committerTom Tromey <tromey@adacore.com>2020-03-12 13:32:15 -0600
commit227031b2bf03e7735601845d6c420995740c8fca (patch)
treecabf17a4ffd16062ae47555ccb46c3bba69d4984 /gdb
parent53807e9f3d83bc0f67b9b9471cc60fb37182e5ab (diff)
downloadgdb-227031b2bf03e7735601845d6c420995740c8fca.zip
gdb-227031b2bf03e7735601845d6c420995740c8fca.tar.gz
gdb-227031b2bf03e7735601845d6c420995740c8fca.tar.bz2
Cast to bfd_vma in arm-tdep.c
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/arm-tdep.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8c4487e..1e827fd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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)
(remote_target::enable_tracepoint)
(remote_target::disable_tracepoint): Use phex, not sprintf_vma.
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 175c5b9..44c439a 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -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