aboutsummaryrefslogtreecommitdiff
path: root/binutils/od-xcoff.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-12-11 21:06:17 +1030
committerAlan Modra <amodra@gmail.com>2019-12-11 21:14:19 +1030
commit09c78487342254de6a4498f8b3aa1f3f1d508898 (patch)
treebfca43ed669d166e6669061cb7f96501ed0af162 /binutils/od-xcoff.c
parent569d50f1c611690d9ab4fa25eadf0ed565bf7e76 (diff)
downloadgdb-09c78487342254de6a4498f8b3aa1f3f1d508898.zip
gdb-09c78487342254de6a4498f8b3aa1f3f1d508898.tar.gz
gdb-09c78487342254de6a4498f8b3aa1f3f1d508898.tar.bz2
Make bfd_get_8 return a bfd_vma like other bfd_get_* functions
And similarly for bfd_get_signed_8. bfd/ * libbfd.c (bfd_get_8): Return a bfd_vma. (bfd_get_signed_8): Return a bfd_signed_vma. * bfd-in2.h: Regenerate. binutils/ * od-xcoff.c (dump_dumpx_core): Adjust for bfd_h_get_8 change.
Diffstat (limited to 'binutils/od-xcoff.c')
-rw-r--r--binutils/od-xcoff.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/binutils/od-xcoff.c b/binutils/od-xcoff.c
index e5566bc..7eb0c29 100644
--- a/binutils/od-xcoff.c
+++ b/binutils/od-xcoff.c
@@ -1680,8 +1680,10 @@ dump_dumpx_core (bfd *abfd, struct external_core_dumpx *hdr)
{
if (options[OPT_FILE_HEADER].selected)
{
- printf (" signal: %u\n", bfd_h_get_8 (abfd, hdr->c_signo));
- printf (" flags: 0x%02x\n", bfd_h_get_8 (abfd, hdr->c_flag));
+ printf (" signal: %u\n",
+ (unsigned) bfd_h_get_8 (abfd, hdr->c_signo));
+ printf (" flags: 0x%02x\n",
+ (unsigned) bfd_h_get_8 (abfd, hdr->c_flag));
printf (" entries: %u\n",
(unsigned) bfd_h_get_16 (abfd, hdr->c_entries));
#ifdef BFD64