diff options
author | Tom Tromey <tom@tromey.com> | 2020-03-12 13:32:15 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-03-12 13:32:15 -0600 |
commit | 227031b2bf03e7735601845d6c420995740c8fca (patch) | |
tree | cabf17a4ffd16062ae47555ccb46c3bba69d4984 /gdb/arm-tdep.c | |
parent | 53807e9f3d83bc0f67b9b9471cc60fb37182e5ab (diff) | |
download | binutils-227031b2bf03e7735601845d6c420995740c8fca.zip binutils-227031b2bf03e7735601845d6c420995740c8fca.tar.gz binutils-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/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |