From: Tom Tromey Date: Thu, 12 Mar 2020 19:32:15 +0000 (-0600) Subject: Cast to bfd_vma in arm-tdep.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=227031b2bf03e7735601845d6c420995740c8fca;p=binutils-gdb.git 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 * arm-tdep.c (struct arm_mapping_symbol) : Now a CORE_ADDR. (struct arm_exidx_entry) : Now a CORE_ADDR. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8c4487eef96..1e827fda561 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2020-03-12 Tom Tromey + + * arm-tdep.c (struct arm_mapping_symbol) : Now a + CORE_ADDR. + (struct arm_exidx_entry) : Now a CORE_ADDR. + 2020-03-12 Tom Tromey * remote.c (remote_target::download_tracepoint) diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 175c5b956e7..44c439a85f5 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