diff options
author | Tom Tromey <tromey@adacore.com> | 2019-12-11 07:58:46 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-12-11 07:58:46 -0700 |
commit | aac4760f70a4ba503f01a967b33cc218dfc37144 (patch) | |
tree | 854f8f2f818ec8a4ba7b47f229d0ca4473cddd81 /gdb/fbsd-tdep.c | |
parent | 1d61b032265e69317f42e8019e072506f11890c5 (diff) | |
download | gdb-aac4760f70a4ba503f01a967b33cc218dfc37144.zip gdb-aac4760f70a4ba503f01a967b33cc218dfc37144.tar.gz gdb-aac4760f70a4ba503f01a967b33cc218dfc37144.tar.bz2 |
Fix the build after bfd_get_signed_8 change
A recent commit changed bfd_get_signed_8 to extend the result to a
bfd_signed_vma. This caused a compiler error in one spot in my
--enable-targets=all gdb build, where the result of bfd_get_signed_8
was passed to printf.
This patch fixes the build. Tested by rebuilding.
gdb/ChangeLog
2019-12-11 Tom Tromey <tromey@adacore.com>
* fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
bfd_get_signed_8.
Change-Id: Ic015f5fd3d88da6b5da8f7b4e1d11d5c981333db
Diffstat (limited to 'gdb/fbsd-tdep.c')
-rw-r--r-- | gdb/fbsd-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c index 1d09747..937f696 100644 --- a/gdb/fbsd-tdep.c +++ b/gdb/fbsd-tdep.c @@ -1433,7 +1433,7 @@ fbsd_core_info_proc_status (struct gdbarch *gdbarch) sec, value); printf_filtered ("stime, children: %s.%06d\n", plongest (sec), (int) value); printf_filtered ("'nice' value: %d\n", - bfd_get_signed_8 (core_bfd, descdata + kp->ki_nice)); + (int) bfd_get_signed_8 (core_bfd, descdata + kp->ki_nice)); fbsd_core_fetch_timeval (gdbarch, descdata + kp->ki_start, sec, value); printf_filtered ("Start time: %s.%06d\n", plongest (sec), (int) value); printf_filtered ("Virtual memory size: %s kB\n", |