- Add gdb-fix-s390-build.diff for a Wformat error on s390.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=192
This commit is contained in:
Michael Matz 2018-09-12 12:56:29 +00:00 committed by Git OBS Bridge
parent d51e7f7f92
commit a4bd629f85
3 changed files with 70 additions and 0 deletions

67
gdb-fix-s390-build.diff Normal file
View File

@ -0,0 +1,67 @@
Index: gdb-8.2/gdb/dwarf2read.c
===================================================================
--- gdb-8.2.orig/gdb/dwarf2read.c 2018-09-11 15:25:32.000000000 +0200
+++ gdb-8.2/gdb/dwarf2read.c 2018-09-12 14:53:18.000000000 +0200
@@ -3236,7 +3236,7 @@ create_addrmap_from_aranges (struct dwar
const uint8_t offset_size = dwarf5_is_dwarf64 ? 8 : 4;
if (addr + entry_length > section->buffer + section->size)
{
- warning (_("Section .debug_aranges in %s entry at offset %zu "
+ warning (_("Section .debug_aranges in %s entry at offset %td "
"length %s exceeds section length %s, "
"ignoring .debug_aranges."),
objfile_name (objfile), entry_addr - section->buffer,
@@ -3250,7 +3250,7 @@ create_addrmap_from_aranges (struct dwar
addr += 2;
if (version != 2)
{
- warning (_("Section .debug_aranges in %s entry at offset %zu "
+ warning (_("Section .debug_aranges in %s entry at offset %tu "
"has unsupported version %d, ignoring .debug_aranges."),
objfile_name (objfile), entry_addr - section->buffer,
version);
@@ -3264,7 +3264,7 @@ create_addrmap_from_aranges (struct dwar
= debug_info_offset_to_per_cu.find (sect_offset (debug_info_offset));
if (per_cu_it == debug_info_offset_to_per_cu.cend ())
{
- warning (_("Section .debug_aranges in %s entry at offset %zu "
+ warning (_("Section .debug_aranges in %s entry at offset %tu "
"debug_info_offset %s does not exists, "
"ignoring .debug_aranges."),
objfile_name (objfile), entry_addr - section->buffer,
@@ -3276,7 +3276,7 @@ create_addrmap_from_aranges (struct dwar
const uint8_t address_size = *addr++;
if (address_size < 1 || address_size > 8)
{
- warning (_("Section .debug_aranges in %s entry at offset %zu "
+ warning (_("Section .debug_aranges in %s entry at offset %tu "
"address_size %u is invalid, ignoring .debug_aranges."),
objfile_name (objfile), entry_addr - section->buffer,
address_size);
@@ -3286,7 +3286,7 @@ create_addrmap_from_aranges (struct dwar
const uint8_t segment_selector_size = *addr++;
if (segment_selector_size != 0)
{
- warning (_("Section .debug_aranges in %s entry at offset %zu "
+ warning (_("Section .debug_aranges in %s entry at offset %tu "
"segment_selector_size %u is not supported, "
"ignoring .debug_aranges."),
objfile_name (objfile), entry_addr - section->buffer,
@@ -3302,7 +3302,7 @@ create_addrmap_from_aranges (struct dwar
padding > 0; padding--)
if (*addr++ != 0)
{
- warning (_("Section .debug_aranges in %s entry at offset %zu "
+ warning (_("Section .debug_aranges in %s entry at offset %tu "
"padding is not zero, ignoring .debug_aranges."),
objfile_name (objfile), entry_addr - section->buffer);
return;
@@ -3312,7 +3312,7 @@ create_addrmap_from_aranges (struct dwar
{
if (addr + 2 * address_size > entry_end)
{
- warning (_("Section .debug_aranges in %s entry at offset %zu "
+ warning (_("Section .debug_aranges in %s entry at offset %tu "
"address list is not properly terminated, "
"ignoring .debug_aranges."),
objfile_name (objfile), entry_addr - section->buffer);

View File

@ -12,6 +12,7 @@ Tue Sep 11 15:01:59 UTC 2018 - matz@suse.com
gdb.set_convenience_variable to access convenience variables,
* aarch64: properly support hardware watchpoints on unaligned
addresses (needs kernel >= 4.10)
- Add gdb-fix-s390-build.diff for a Wformat error on s390.
- Support access to new POWER8 registers [fate#325178, fate#326120]
Add patches gdb-rhbz1187581-power8-regs-1of7.patch,
gdb-rhbz1187581-power8-regs-2of7.patch,

View File

@ -238,6 +238,7 @@ Patch134: gdb-use-pulongest-aarch64-linux-tdep.patch
Patch1002: gdb-6.6-buildid-locate-rpm-suse.patch
Patch1004: gdb-fix-buf-overflow.diff
Patch1005: gdb-7.10-swo18929.patch
Patch1007: gdb-fix-s390-build.diff
# libipt support
Patch3000: v1.5-libipt-static.patch
@ -551,6 +552,7 @@ find -name "*.info*"|xargs rm -f
%patch1002 -p1
%patch1004 -p1
%patch1005 -p1
%patch1007 -p1
#unpack libipt
%if 0%{have_libipt}