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
This commit is contained in:
parent
1d61b03226
commit
aac4760f70
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2019-12-11 Tom Tromey <tromey@adacore.com>
|
||||||
|
|
||||||
|
* fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
|
||||||
|
bfd_get_signed_8.
|
||||||
|
|
||||||
2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
|
2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
|
||||||
|
|
||||||
* NEWS: Document -raw-values option and the related setting commands.
|
* NEWS: Document -raw-values option and the related setting commands.
|
||||||
|
|
|
@ -1433,7 +1433,7 @@ fbsd_core_info_proc_status (struct gdbarch *gdbarch)
|
||||||
sec, value);
|
sec, value);
|
||||||
printf_filtered ("stime, children: %s.%06d\n", plongest (sec), (int) value);
|
printf_filtered ("stime, children: %s.%06d\n", plongest (sec), (int) value);
|
||||||
printf_filtered ("'nice' value: %d\n",
|
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);
|
fbsd_core_fetch_timeval (gdbarch, descdata + kp->ki_start, sec, value);
|
||||||
printf_filtered ("Start time: %s.%06d\n", plongest (sec), (int) value);
|
printf_filtered ("Start time: %s.%06d\n", plongest (sec), (int) value);
|
||||||
printf_filtered ("Virtual memory size: %s kB\n",
|
printf_filtered ("Virtual memory size: %s kB\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue