diff options
author | Alan Modra <amodra@gmail.com> | 2019-12-11 21:06:17 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-11 21:14:19 +1030 |
commit | 09c78487342254de6a4498f8b3aa1f3f1d508898 (patch) | |
tree | bfca43ed669d166e6669061cb7f96501ed0af162 /binutils | |
parent | 569d50f1c611690d9ab4fa25eadf0ed565bf7e76 (diff) | |
download | gdb-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')
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/od-xcoff.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index a194805..80c7fc3 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2019-12-11 Alan Modra <amodra@gmail.com> + + * od-xcoff.c (dump_dumpx_core): Adjust for bfd_h_get_8 change. + 2019-12-10 Alan Modra <amodra@gmail.com> PR 24960 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 |