commit gdb for openSUSE:Factory

2024-04-25 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2024-04-25 20:47:33

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.1880 (New)


Package is "gdb"

Thu Apr 25 20:47:33 2024 rev:178 rq:1170040 version:13.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2024-04-18 22:08:04.375485759 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.1880/gdb.changes2024-04-25 
20:47:36.974629836 +0200
@@ -1,0 +2,67 @@
+Wed Apr 24 13:07:21 UTC 2024 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  * Add PR31671 unresolved.
+  * Add unresolved for yama ptrace_scope == 1.
+  * Limit PR31648 unresolved to SLE-11.
+
+---
+Thu Apr 18 14:00:01 UTC 2024 - Tom de Vries 
+
+- Patch added (swo#31524, bsc#1222188):
+  * make-pascal_language-print_type-handle-varstring-nul.patch
+- Renable gcc-fortran for SLE-11.
+- Use system compiler (gcc 4.3.4) for testing all languages on
+  SLE-11.
+- Maintenance script qa.sh:
+  * Ignore all fails for SLE-11.
+- Maintenance script import-fedora.sh:
+  * Use %patch -P N instead of deprecated %patchN.
+  * Drop patch skips:
+* gdb-6.5-readline-long-line-crash-test.patch
+* gdb-6.7-charsign-test.patch
+* gdb-test-ivy-bridge.patch
+* gdb-ppc-power7-test.patch
+* gdb-6.3-bz140532-ppc-unwinding-test.patch
+- Patches added (import from fedora rawhide @ a27201b):
+  * gdb-bz2196395-debuginfod-legacy-openssl-crash.patch
+  * gdb-rhbz-2232086-cpp-ify-mapped-symtab.patch
+  * gdb-rhbz-2232086-generate-dwarf-5-index-consistently.patch
+  * gdb-rhbz-2232086-generate-gdb-index-consistently.patch
+  * gdb-rhbz-2232086-reduce-size-of-gdb-index.patch
+  * gdb-rhbz2232086-refactor-selftest-support.patch
+- Patches updated (import from fedora rawhide @ a27201b):
+  * gdb-6.6-buildid-locate-rpm.patch
+  * gdb-6.6-buildid-locate.patch
+  * gdb-fedora-libncursesw.patch
+  * gdb-rhbz2233961-CVE-2022-4806.patch
+  * gdb-rhbz2233965-memory-leak.patch
+- Patches updated:  
+  * gdb-6.6-buildid-locate-rpm-suse.patch
+- Patches deleted (import from fedora rawhide @ a27201b):
+  * gdb-rhbz1553104-s390x-arch12-test.patch
+  * gdb-lineno-makeup-test.patch
+  * gdb-6.3-bz202689-exec-from-pthread-test.patch
+  * gdb-6.5-bz109921-DW_AT_decl_file-test.patch
+  * gdb-6.5-ia64-libunwind-leak-test.patch
+  * gdb-6.5-last-address-space-byte-test.patch
+  * gdb-6.5-missed-trap-on-step-test.patch
+  * gdb-6.5-sharedlibrary-path.patch
+  * gdb-6.7-testsuite-stable-results.patch
+  * gdb-6.8-bz442765-threaded-exec-test.patch
+  * gdb-ccache-workaround.patch
+  * gdb-opcodes-clflushopt-test.patch
+  * gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch
+  * gdb-rhbz1350436-type-printers-error.patch
+  * gdb-rhbz2196395-debuginfod-legacy-openssl-crash.patch
+  * gdb-rhel5.9-testcase-xlf-var-inside-mod.patch
+  * gdb-test-pid0-core.patch
+- Patches deleted:
+  * fixup-gdb-rhbz1553104-s390x-arch12-test.patch
+  * fixup-2-gdb-rhbz1553104-s390x-arch12-test.patch
+  * fixup-gdb-lineno-makeup-test.patch
+  * fixup-gdb-6.6-buildid-locate-rpm.patch
+- Remove commented out mention of dropped patch
+  gdb-fix-selftest-fails-with-gdb-build-with-O2-flto.patch.
+
+---

Old:

  fixup-2-gdb-rhbz1553104-s390x-arch12-test.patch
  fixup-gdb-6.6-buildid-locate-rpm.patch
  fixup-gdb-lineno-makeup-test.patch
  fixup-gdb-rhbz1553104-s390x-arch12-test.patch
  gdb-6.3-bz202689-exec-from-pthread-test.patch
  gdb-6.5-bz109921-DW_AT_decl_file-test.patch
  gdb-6.5-ia64-libunwind-leak-test.patch
  gdb-6.5-last-address-space-byte-test.patch
  gdb-6.5-missed-trap-on-step-test.patch
  gdb-6.5-sharedlibrary-path.patch
  gdb-6.7-testsuite-stable-results.patch
  gdb-6.8-bz442765-threaded-exec-test.patch
  gdb-ccache-workaround.patch
  gdb-lineno-makeup-test.patch
  gdb-opcodes-clflushopt-test.patch
  gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch
  gdb-rhbz1350436-type-printers-error.patch
  gdb-rhbz1553104-s390x-arch12-test.patch
  gdb-rhbz2196395-debuginfod-legacy-openssl-crash.patch
  gdb-rhel5.9-testcase-xlf-var-inside-mod.patch
  gdb-test-pid0-core.patch

New:

  gdb-bz2196395-debuginfod-legacy-openssl-crash.patch
  gdb-rhbz-2232086-cpp-ify-mapped-symtab.patch
  gdb-rhbz-2232086-generate-dwarf-5-index-consistently.patch
  gdb-rhbz-2232086-generate-gdb-index-consistently.patch
  gdb-rhbz-2232086-reduce-size-of-gdb-index.patch
  gdb-rhbz2232086-refactor-selftest-support.patch
  make-pascal_language-print_type-handle-varstring-nul.patch

BETA DEBUG BEGIN:
  Old:  * fixup-gdb-rhbz1553104-s390x-arch12-test.patch
  * fixup-2-gdb-rhbz1553104-s390x-arch12-test.patch
  * 

commit gdb for openSUSE:Factory

2024-04-18 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2024-04-18 22:08:02

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.26366 (New)


Package is "gdb"

Thu Apr 18 22:08:02 2024 rev:177 rq:1168788 version:13.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2024-03-21 17:00:10.167760378 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.26366/gdb.changes   2024-04-18 
22:08:04.375485759 +0200
@@ -1,0 +2,13 @@
+Thu Apr 18 08:21:00 UTC 2024 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  * Add PR31648 KFAIL.
+  * Handle yama ptrace_scope == 1.
+
+---
+Wed Apr 10 08:22:47 UTC 2024 - Tom de Vries 
+
+- Patches added (bsc#1220490):
+  * fixup-gdb-6.6-buildid-locate-rpm.patch
+
+---

New:

  fixup-gdb-6.6-buildid-locate-rpm.patch

BETA DEBUG BEGIN:
  New:- Patches added (bsc#1220490):
  * fixup-gdb-6.6-buildid-locate-rpm.patch
BETA DEBUG END:



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.oYTiLT/_old  2024-04-18 22:08:07.967617767 +0200
+++ /var/tmp/diff_new_pack.oYTiLT/_new  2024-04-18 22:08:07.971617915 +0200
@@ -243,6 +243,7 @@
 Patch1010:  fixup-gdb-6.3-attach-see-vdso-test.patch
 Patch1011:  fixup-gdb-lineno-makeup-test.patch
 Patch1012:  fixup-gdb-rhbz1261564-aarch64-hw-watchpoint-test.pat.patch
+Patch1013:  fixup-gdb-6.6-buildid-locate-rpm.patch
 
 # openSUSE specific
 
@@ -760,6 +761,7 @@
 %patch -P 1010 -p1
 %patch -P 1011 -p1
 %patch -P 1012 -p1
+%patch -P 1013 -p1
 
 %patch -P 1100 -p1
 %patch -P 1101 -p1

++ fixup-gdb-6.6-buildid-locate-rpm.patch ++
>From 95ef5612ccbf31696e05e8699196eb7dd1c78918 Mon Sep 17 00:00:00 2001
From: Tom de Vries 
Date: Sat, 9 Mar 2024 11:48:38 +0100
Subject: [PATCH] fixup

---
 gdb/configure| 1 +
 gdb/configure.ac | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gdb/configure b/gdb/configure
index a4e6de5bdbd..304e90ab07b 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -17920,6 +17920,7 @@ else
 #include 
 #include 
 #include 
+#include 
 
 int
 main ()
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 831ecbb136b..845710f9098 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -206,6 +206,7 @@ if test "x$with_rpm" != "xno"; then
 #include 
 #include 
 #include 
+#include 
   ]], [[
 void *h;
 const char *const *rpmverp;

base-commit: 6ff01b957d8b1bb00484e9c0f2c695f27e0bb7cd
-- 
2.35.3


++ qa.sh ++
--- /var/tmp/diff_new_pack.oYTiLT/_old  2024-04-18 22:08:08.579640259 +0200
+++ /var/tmp/diff_new_pack.oYTiLT/_new  2024-04-18 22:08:08.583640406 +0200
@@ -443,6 +443,16 @@
 
 kfail_factory=(
 
+# yama ptrace_scope == 1
+# https://sourceware.org/pipermail/gdb-patches/2024-April/208251.html
+"FAIL: .*attach.*"
+"FAIL: .*detach.*"
+"FAIL: gdb.base/gcore-excessive-memory.exp: verify we can get to main"
+"FAIL: gdb.base/gcore-excessive-memory.exp: verify we can get to main"
+"FAIL: gdb.base/gcore-excessive-memory.exp: Save the core file"
+"FAIL: gdb.base/gcorebg.exp: Core file generated by standard gcore"
+"FAIL: gdb.threads/check-libthread-db.exp: automated load-time check: 
libpthread.so fully initialized: check debug libthread-db output \(pattern 1\)"
+
 # https://sourceware.org/pipermail/gdb-patches/2021-October/182449.html
 "FAIL: gdb.threads/current-lwp-dead.exp: continue to breakpoint: fn_return"
 
@@ -744,6 +754,18 @@
 
# https://sourceware.org/bugzilla/show_bug.cgi?id=31001
"UNRESOLVED: gdb.threads/async.exp: thread 1: current thread is 1"
+
+   # https://sourceware.org/bugzilla/show_bug.cgi?id=31648
+   "UNRESOLVED: gdb.ada/tick_length_array_enum_idx.exp: print 
vars'length"
+
+   # yama ptrace_scope == 1
+   # 
https://sourceware.org/pipermail/gdb-patches/2024-April/208251.html
+   "Factory.*UNRESOLVED: gdb.base/gstack.exp: spawn gstack"
+   "Factory.*UNRESOLVED: gdb.multi/multi-term-settings.exp: 
inf1_how=run: inf2_how=attach: inf2: flush inferior output"
+   "Factory.*UNRESOLVED: gdb.multi/multi-term-settings.exp: 
inf1_how=attach: inf2_how=run: inf1: flush inferior output"
+   "Factory.*UNRESOLVED: gdb.multi/multi-term-settings.exp: 
inf1_how=attach: inf2_how=attach: inf2: flush inferior output"
+   "Factory.*UNRESOLVED: gdb.multi/multi-term-settings.exp: 
inf1_how=attach: inf2_how=run: continue"
+   "Factory.*UNRESOLVED: gdb.multi/multi-term-settings.exp: 
inf1_how=attach: inf2_how=run: continue"
)
 

commit gdb for openSUSE:Factory

2024-03-21 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2024-03-21 17:00:06

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.1905 (New)


Package is "gdb"

Thu Mar 21 17:00:06 2024 rev:176 rq:1159816 version:13.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2024-02-28 19:45:43.138752177 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.1905/gdb.changes2024-03-21 
17:00:10.167760378 +0100
@@ -1,0 +2,6 @@
+Wed Mar 20 09:53:08 UTC 2024 - Richard Biener 
+
+- Avoid using a %gcc macro to support using gcc 4.8 for building
+  on SLE11.  Use the regular language compilers for testing.
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.GTp1QB/_old  2024-03-21 17:00:17.792046523 +0100
+++ /var/tmp/diff_new_pack.GTp1QB/_new  2024-03-21 17:00:17.796046673 +0100
@@ -397,12 +397,11 @@
 BuildRequires:  bison
 BuildRequires:  flex
 %if 0%{suse_version} > 1110
-%define gcc gcc
+BuildRequires:  gcc-c++
 %else
-%define gcc gcc48
+BuildRequires:  gcc48
+BuildRequires:  gcc48-c++
 %endif
-BuildRequires:  %{gcc}
-BuildRequires:  %{gcc}-c++
 BuildRequires:  gettext
 BuildRequires:  glibc-devel
 %if 0%{suse_version} > 1110 && 0%{suse_version} < 1330
@@ -527,12 +526,12 @@
 #   unresolvable: conflict for providers of libquadmath0
 #   needed by libgfortran3
 #   (provider libquadmath0-gcc5 is in conflict with libquadmath0)
-BuildRequires:  %{gcc}-fortran
+BuildRequires:  gcc-fortran
 %endif
 
-BuildRequires:  %{gcc}-objc
+BuildRequires:  gcc-objc
 %ifarch %ada_arch
-BuildRequires:  %{gcc}-ada
+BuildRequires:  gcc-ada
 %endif
 
 %define supported_32bit_arch x86_64 ppc64
@@ -543,11 +542,11 @@
 %if 0%{suse_version} >= 1330
 # Older distros miss this pseudo package, the Ada
 # testsuite won't work completely
-BuildRequires:  %{gcc}-ada-32bit
+BuildRequires:  gcc-ada-32bit
 %endif
 
 %if 0%{suse_version} > 1110
-BuildRequires:  %{gcc}-c++-32bit
+BuildRequires:  gcc-c++-32bit
 %endif
 
 %if 0%{suse_version} >= 1210 && 0%{suse_version} != 1315


commit gdb for openSUSE:Factory

2024-02-28 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2024-02-28 19:45:23

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.1770 (New)


Package is "gdb"

Wed Feb 28 19:45:23 2024 rev:175 rq:1152308 version:13.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2023-12-19 23:15:40.425186751 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.1770/gdb.changes2024-02-28 
19:45:43.138752177 +0100
@@ -1,0 +2,28 @@
+Tue Feb 27 11:24:51 UTC 2024 - Dominique Leuenberger 
+
+- Use %patch -P N instead of deprecated %patchN.
+
+---
+Wed Jan 10 13:40:34 UTC 2024 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  * Add PR31214 kfail.
+  * Add kfail for fails in gdb.reverse/solib-precsave.exp /
+gdb.reverse/solib-reverse.exp fixed by commit fe6356def67
+("PowerPC and aarch64: Fix reverse stepping failure").
+  * Extend PR31004 kfail.
+- Don't require %{python}-base for gdb-testresults package.
+- Fix debuginfod handling:
+  * Enable for sle_version >= 150400 (bsc#1185605, jsc#PED-1149,
+jsc#PED-1138), SLE15-SP4 and later.
+  * Enable for suse_version >= 1600, ALP and Tumbleweed.
+  * Add back "BuildRequires: libdebuginfod1" to prevent selecting
+dummy variant.
+  * Add "BuildRequires: debuginfod-client" to prevent unresolved
+due to conflict with dummy variant.
+  * Add --with-debuginfod=yes to prevent silently dropping support.
+- Patches added (backport from master):
+  * gdb-testsuite-add-missing-no-prompt-anchor-in-gdb.ba.patch
+  * gdb-testsuite-remove-spurious-in-save_vars.patch
+
+---

New:

  gdb-testsuite-add-missing-no-prompt-anchor-in-gdb.ba.patch
  gdb-testsuite-remove-spurious-in-save_vars.patch

BETA DEBUG BEGIN:
  New:- Patches added (backport from master):
  * gdb-testsuite-add-missing-no-prompt-anchor-in-gdb.ba.patch
  * gdb-testsuite-remove-spurious-in-save_vars.patch
  New:  * gdb-testsuite-add-missing-no-prompt-anchor-in-gdb.ba.patch
  * gdb-testsuite-remove-spurious-in-save_vars.patch
BETA DEBUG END:



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.5kxFsO/_old  2024-02-28 19:45:49.398979919 +0100
+++ /var/tmp/diff_new_pack.5kxFsO/_new  2024-02-28 19:45:49.402980064 +0100
@@ -1,7 +1,7 @@
 #
 # spec file
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 # Copyright (c) 2012 RedHat
 #
 # All modifications and additions to the file contributed by third parties
@@ -349,6 +349,8 @@
 Patch2072:  gdb-symtab-work-around-gas-pr28629.patch
 Patch2073:  gdb-tdep-fix-nr-array-elements-in-ppc64_aggregate_ca.patch
 Patch2074:  gdb-tui-fix-wmaybe-uninitialized-in-tui_find_disasse.patch
+Patch2075:  gdb-testsuite-add-missing-no-prompt-anchor-in-gdb.ba.patch
+Patch2076:  gdb-testsuite-remove-spurious-in-save_vars.patch
 
 # Backport from gdb-patches
 
@@ -428,17 +430,28 @@
 BuildRequires:  xz-devel
 %endif
 BuildRequires:  zlib-devel
+
 %if 0%{!?_without_python:1}
+%if %{build_testsuite}
+BuildRequires:  %{python}-base
+%else
 Requires:   %{python}-base
+%endif
 BuildRequires:  %{python}-devel
 %endif # 0%{!?_without_python:1}
+
 %global have_libdebuginfod 0
-%if 0%{?suse_version} > 1500
+# Enable for SLE15-SP4/Leap-15.4, ALP/Factory.
+%if 0%{?sle_version} >= 150400 || 0%{?suse_version} >= 1600
 %global have_libdebuginfod 1
 %endif
+
 %if 0%{have_libdebuginfod}
 BuildRequires:  libdebuginfod-devel
+# Indicate that we prefer libdebuginfod1 over libdebuginfod1-dummy.
+BuildRequires:  libdebuginfod1
 %endif
+
 %global have_libipt 0
 %if 0%{suse_version} > 1110
 %ifarch %{ix86} x86_64
@@ -586,6 +599,9 @@
 %if 0%{have_libdebuginfod}
 BuildRequires:  curl
 BuildRequires:  elfutils-debuginfod
+# Fix: unresolvable: have choice for debuginfod-client needed by
+# elfutils-debuginfod: debuginfod-client debuginfod-dummy-client.
+BuildRequires:  debuginfod-client
 %endif
 
 # SLE-10 doesn't have xz.
@@ -676,168 +692,170 @@
 find -name "*.info*"|xargs rm -f
 
 #Fedora patching start
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch6 -p1
-%patch8 -p1
-%patch9 -p1
-%patch11 -p1
-%patch12 -p1
-%patch13 -p1
-%patch14 -p1
-%patch15 -p1
-%patch16 -p1
-%patch17 -p1
-%patch18 -p1
-%patch19 -p1
-%patch22 -p1
-%patch23 -p1
-%patch24 -p1
-%patch25 -p1
-%patch26 -p1
-%patch27 -p1
-%patch28 -p1
-%patch30 -p1
-%patch31 -p1
-%patch32 -p1
-%patch33 -p1
-%patch35 -p1
-%patch36 -p1
-%patch37 -p1
-%patch38 -p1
-%patch39 -p1
-%patch40 -p1
-%patch42 -p1
-%patch43 -p1
-%patch44 -p1
-%patch45 -p1
-%patch46 -p1
-%patch49 -p1
-%patch50 -p1
-%patch51 -p1
-%patch52 -p1

commit gdb for openSUSE:Factory

2023-12-19 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2023-12-19 23:15:32

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.9037 (New)


Package is "gdb"

Tue Dec 19 23:15:32 2023 rev:174 rq:1133867 version:13.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2023-11-17 20:48:27.526715412 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.9037/gdb.changes2023-12-19 
23:15:40.425186751 +0100
@@ -1,0 +2,16 @@
+Wed Dec 13 14:58:14 UTC 2023 - Tom de Vries 
+
+- Patches added (backport from gdb-patches, swo#30728):
+  * gdb-symtab-refactor-condition-in-scan_attributes.patch
+  * gdb-symtab-factor-out-m_die_range_map-usage.patch
+  * gdb-symtab-handle-nullptr-parent-in-parent_map-set_p.patch
+  * gdb-symtab-factor-out-m_deferred_entries-usage.patch
+  * gdb-symtab-resolve-deferred-entries-inter-shard-case.patch
+  * gdb-symtab-keep-track-of-processed-dies-in-shard.patch
+  * gdb-symtab-resolve-deferred-entries-intra-shard-case.patch
+  * gdb-symtab-don-t-defer-backward-refs-inter-cu-intra-.patch
+  * gdb-symtab-recurse-into-c-dw_tag_subprogram-dies-for.patch
+  * gdb-symtab-keep-track-of-all-parents-for-cooked-inde.patch
+  * gdb-symtab-fix-dw_tag_inlined_subroutine-entries-in-.patch
+
+---

New:

  gdb-symtab-don-t-defer-backward-refs-inter-cu-intra-.patch
  gdb-symtab-factor-out-m_deferred_entries-usage.patch
  gdb-symtab-factor-out-m_die_range_map-usage.patch
  gdb-symtab-fix-dw_tag_inlined_subroutine-entries-in-.patch
  gdb-symtab-handle-nullptr-parent-in-parent_map-set_p.patch
  gdb-symtab-keep-track-of-all-parents-for-cooked-inde.patch
  gdb-symtab-keep-track-of-processed-dies-in-shard.patch
  gdb-symtab-recurse-into-c-dw_tag_subprogram-dies-for.patch
  gdb-symtab-refactor-condition-in-scan_attributes.patch
  gdb-symtab-resolve-deferred-entries-inter-shard-case.patch
  gdb-symtab-resolve-deferred-entries-intra-shard-case.patch

BETA DEBUG BEGIN:
  New:  * gdb-symtab-resolve-deferred-entries-intra-shard-case.patch
  * gdb-symtab-don-t-defer-backward-refs-inter-cu-intra-.patch
  * gdb-symtab-recurse-into-c-dw_tag_subprogram-dies-for.patch
  New:  * gdb-symtab-handle-nullptr-parent-in-parent_map-set_p.patch
  * gdb-symtab-factor-out-m_deferred_entries-usage.patch
  * gdb-symtab-resolve-deferred-entries-inter-shard-case.patch
  New:  * gdb-symtab-refactor-condition-in-scan_attributes.patch
  * gdb-symtab-factor-out-m_die_range_map-usage.patch
  * gdb-symtab-handle-nullptr-parent-in-parent_map-set_p.patch
  New:  * gdb-symtab-keep-track-of-all-parents-for-cooked-inde.patch
  * gdb-symtab-fix-dw_tag_inlined_subroutine-entries-in-.patch
  New:  * gdb-symtab-factor-out-m_die_range_map-usage.patch
  * gdb-symtab-handle-nullptr-parent-in-parent_map-set_p.patch
  * gdb-symtab-factor-out-m_deferred_entries-usage.patch
  New:  * gdb-symtab-recurse-into-c-dw_tag_subprogram-dies-for.patch
  * gdb-symtab-keep-track-of-all-parents-for-cooked-inde.patch
  * gdb-symtab-fix-dw_tag_inlined_subroutine-entries-in-.patch
  New:  * gdb-symtab-resolve-deferred-entries-inter-shard-case.patch
  * gdb-symtab-keep-track-of-processed-dies-in-shard.patch
  * gdb-symtab-resolve-deferred-entries-intra-shard-case.patch
  New:  * gdb-symtab-don-t-defer-backward-refs-inter-cu-intra-.patch
  * gdb-symtab-recurse-into-c-dw_tag_subprogram-dies-for.patch
  * gdb-symtab-keep-track-of-all-parents-for-cooked-inde.patch
  New:- Patches added (backport from gdb-patches, swo#30728):
  * gdb-symtab-refactor-condition-in-scan_attributes.patch
  * gdb-symtab-factor-out-m_die_range_map-usage.patch
  New:  * gdb-symtab-factor-out-m_deferred_entries-usage.patch
  * gdb-symtab-resolve-deferred-entries-inter-shard-case.patch
  * gdb-symtab-keep-track-of-processed-dies-in-shard.patch
  New:  * gdb-symtab-keep-track-of-processed-dies-in-shard.patch
  * gdb-symtab-resolve-deferred-entries-intra-shard-case.patch
  * gdb-symtab-don-t-defer-backward-refs-inter-cu-intra-.patch
BETA DEBUG END:



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.ci5Dd5/_old  2023-12-19 23:15:43.357293525 +0100
+++ /var/tmp/diff_new_pack.ci5Dd5/_new  2023-12-19 23:15:43.357293525 +0100
@@ -369,6 +369,19 @@
 # https://sourceware.org/pipermail/gdb-patches/2023-November/203943.html
 Patch2109:  gdb-fix-segfault-in-for_each_block-part-1.patch
 
+# https://sourceware.org/pipermail/gdb-patches/2023-December/205054.html
+Patch2120:  gdb-symtab-refactor-condition-in-scan_attributes.patch
+Patch2121:  gdb-symtab-factor-out-m_die_range_map-usage.patch
+Patch2122:  

commit gdb for openSUSE:Factory

2023-08-22 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2023-08-22 08:55:13

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.1766 (New)


Package is "gdb"

Tue Aug 22 08:55:13 2023 rev:172 rq:1104994 version:13.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2023-06-17 22:21:09.095840232 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.1766/gdb.changes2023-08-22 
08:55:20.090466282 +0200
@@ -1,0 +2,9 @@
+Sun Aug 20 00:41:09 UTC 2023 - Luciano Santos 
+
+- Drop libdebuginfod1 BuildRequires/Recommends. The former isn't
+  needed because there's a build requirement on libdebuginfod-devel
+  already, which will pull the shared library. And the latter,
+  because it's bogus since RPM auto generated dependency will take
+  care of that requirement.
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.VT3mMz/_old  2023-08-22 08:55:22.410470690 +0200
+++ /var/tmp/diff_new_pack.VT3mMz/_new  2023-08-22 08:55:22.418470706 +0200
@@ -412,8 +412,6 @@
 %endif
 %if 0%{have_libdebuginfod}
 BuildRequires:  libdebuginfod-devel
-BuildRequires:  libdebuginfod1
-Recommends: libdebuginfod1
 %endif
 %global have_libipt 0
 %if 0%{suse_version} > 1110


commit gdb for openSUSE:Factory

2023-05-25 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2023-05-25 23:52:08

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.1533 (New)


Package is "gdb"

Thu May 25 23:52:08 2023 rev:170 rq:1088732 version:12.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2023-04-06 15:55:44.368227257 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.1533/gdb.changes2023-05-25 
23:52:13.879503410 +0200
@@ -1,0 +2,21 @@
+Mon May 22 21:01:44 UTC 2023 - Dirk Müller 
+
+- disable werror as a workaround for deprecation warnings with
+  python 3.11 (bsc#1211052) 
+
+---
+Fri Apr  7 07:48:58 UTC 2023 - Tom de Vries 
+
+- Revert to singlespec multibuild.
+
+---
+Tue Apr  4 13:27:03 UTC 2023 - Tom de Vries 
+
+- Add multispec _multibuild.
+
+---
+Tue Apr  4 11:29:35 UTC 2023 - Tom de Vries 
+
+- Don't use multibuild.
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.01mKBg/_old  2023-05-25 23:52:17.967527409 +0200
+++ /var/tmp/diff_new_pack.01mKBg/_new  2023-05-25 23:52:17.971527433 +0200
@@ -978,6 +978,7 @@
 EXTRA_TARGETS=
 %endif
 
+# Reenable enable-werror on tumbleweed when upgrading to 13.1 (bsc#1211052)
 ../configure   \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
@@ -992,7 +993,7 @@
 %ifnarch %{ix86} alpha ia64 ppc s390 s390x x86_64 ppc64 ppc64le sparc sparcv9 
sparc64 riscv64 aarch64
--disable-werror\
 %else
-%if %{suse_version} <= 1110
+%if %{suse_version} <= 1110 || %{suse_version} > 1500
--disable-werror\
 %else
--enable-werror \

++ qa-local.sh ++
--- /var/tmp/diff_new_pack.01mKBg/_old  2023-05-25 23:52:18.599531119 +0200
+++ /var/tmp/diff_new_pack.01mKBg/_new  2023-05-25 23:52:18.603531143 +0200
@@ -138,8 +138,8 @@
--trust-all-projects \
--no-service \
-k $pkgs/$c.$arch \
-   -M testsuite \
$c $arch \
+   -M testsuite \
> $logs/$n/LOG.$c.$arch \
2>&1
if [ $? -eq 0 ]; then


commit gdb for openSUSE:Factory

2023-04-06 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2023-04-06 15:55:43

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.19717 (New)


Package is "gdb"

Thu Apr  6 15:55:43 2023 rev:169 rq:1077166 version:12.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2023-03-04 22:42:32.05564 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.19717/gdb.changes   2023-04-06 
15:55:44.368227257 +0200
@@ -1,0 +2,5 @@
+Tue Apr  4 08:47:10 UTC 2023 - Tom de Vries 
+
+- Fix license, again (bsc#1210081).
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.omvQx9/_old  2023-04-06 15:55:46.384238642 +0200
+++ /var/tmp/diff_new_pack.omvQx9/_new  2023-04-06 15:55:46.388238665 +0200
@@ -59,7 +59,7 @@
 
 %if %{build_main}
 Summary:A GNU source-level debugger for C, C++, Fortran and other 
languages
-License:SUSE-Public-Domain
+License:GPL-3.0-only WITH GCC-exception-3.1 AND GPL-3.0-or-later AND 
LGPL-2.1-or-later AND LGPL-3.0-or-later
 Group:  Development/Languages/C and C++
 %endif
 %if %{build_testsuite}


commit gdb for openSUSE:Factory

2023-03-06 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2023-03-04 22:42:22

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.31432 (New)


Package is "gdb"

Sat Mar  4 22:42:22 2023 rev:168 rq:1069165 version:12.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2022-10-27 13:54:37.212704580 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.31432/gdb.changes   2023-03-04 
22:42:32.05564 +0100
@@ -1,0 +2,139 @@
+Fri Mar  3 12:41:21 UTC 2023 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  * Expand kfail pattern for PR29897.
+  * Add PR29965 kfail.
+
+---
+Thu Mar  2 08:28:32 UTC 2023 - Tom de Vries 
+
+- Re-enable testing all test-cases, undoing accidental change in
+  previous commit.
+- Add --with=for_chroot.
+
+---
+Thu Feb 16 10:57:10 UTC 2023 - Tom de Vries 
+
+- Patches dropped (bsc#1207712):
+  * gdb-container-rh-pkg.patch
+- Patches added (bsc#1207712):
+  * gdb-testsuite-add-gdb.suse-debranding.exp.patch
+- Patches added (test-case fix):
+  * gdb-testsuite-fix-gdb.dwarf2-dw2-dir-file-name.exp-w.patch
+- Patches added (fedora patch fixup):
+  * fixup-gdb-test-dw2-aranges.patch
+- Patches added (master backports):
+  * gdb-testsuite-add-xfail-in-gdb.arch-i386-pkru.exp.patch
+  * gdb-testsuite-add-xfail-in-gdb.python-py-record-btra.patch
+  * gdb-testsuite-factor-out-proc-linux_kernel_version.patch
+  * gdb-testsuite-fix-gdb.base-infoline-reloc-main-from-.patch
+  * gdb-testsuite-fix-gdb.base-nested-subp-2-3-.exp-with.patch
+  * gdb-testsuite-fix-gdb.threads-schedlock.exp-on-fast-.patch
+  * gdb-testsuite-handle-missing-.note.gnu-stack.patch
+  * gdb-testsuite-simplify-gdb.arch-amd64-disp-step-avx..patch
+  * gdb-testsuite-fix-gdb.threads-schedlock.exp-for-gcc-.patch
+  * gdb-testsuite-add-xfail-case-in-gdb.python-py-record.patch
+  * add-elfcompress_zstd.patch
+  * binutils-gdb-support-zstd-compressed-debug-section.patch
+  * fix-gdb-build-elf-support-check-lzstd.patch
+- Patches removed (dropped by fedora):
+  * gdb-test-ivy-bridge.patch
+- Disable "BuildRequires: %{gcc}-fortran" for SLE-11.
+- Maintenance script qa-local.sh:
+  * Add SLE-11 to configs.
+  * Build with --no-verify.
+- Maintenance script qa.sh:
+  * Add -sle11.
+
+---
+Tue Dec 13 10:39:19 UTC 2022 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  * Re-enable PR26284 kfails.
+  * Remove mention of PR28275.
+  * Add PR29897 kfail.
+- Mention CVE-2018-7208 and CVE-2017-16829.
+
+---
+Tue Dec 13 09:52:56 UTC 2022 - Tom de Vries 
+
+- Mention SLE-21561, bnc#1081527, and bnc#1068950.
+
+---
+Thu Dec  1 15:20:21 UTC 2022 - Tom de Vries 
+
+- Patches added (gdb 12 release branch backports):
+  * gdb-disable-commit-resumed-in-target_kill.patch
+  * gdb-fix-assert-when-quitting-gdb-while-a-thread-is-stepping.patch
+  * gdb-testsuite-add-new-gdb_attach-to-check-attach-command.patch
+  * gdb-testsuite-refactor-gdb.threads-detach-step-over.exp.patch
+  * 
gdb-testsuite-remove-global-declarations-in-gdb.threads-detach-step-over.exp.patch
+  * gdbserver-switch-to-right-process-in-find_one_thread.patch  
+- Patches removed:
+  * gdb-testsuite-fix-race-in-gdb.threads-detach-step-over.exp.patch
+- Maintenance script qa.sh:
+  * Disable PR26284 kfails.
+  * Add PR29841 kfails.
+  * Add kfail_powerpc64le_sle12, kfail_s390 and kfail_s390x.
+  * Add -s390 and -s390x.
+  * Add gdb.base/gdb-rhbz1156192-recursive-dlopen.exp kfail.
+  * Add PR26967 kfails.
+  * Move PR27027 kfails from kfail_factory to kfail.
+  * Add -ppc64le alias for -powerpc64le.
+  * Add gdb.threads/interrupt-while-step-over.exp kfail.
+  * Add gdb.tui/tui-layout-asm-short-prog.exp kfail.
+  * Add unix/-fPIE/-fpie overrides -static kfails.
+  * Add gdb.guile/scm-disasm.exp kfail.
+  * Add gdb.base/gnu_vector.exp to existing kfail.
+  * Add gdb.guile/scm-symtab.exp kfail.
+  * Add gdb.base/write_mem.exp kfail.
+
+---
+Tue Nov 22 15:03:04 UTC 2022 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  - Add openSUSE Leap 15.4 ppc64le to known clean configs.
+
+---
+Wed Nov 16 13:49:01 UTC 2022 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  - Update PR26363 internal error pattern.
+  - Add PR29790 kfail.
+  - Add -powerpc64le option.
+  - Generalize PR26915 kfail patterns.
+  - Move PR28478 patterns from kfail_factory to kfail.
+  - Add PR29781 and PR27813 

commit gdb for openSUSE:Factory

2022-10-27 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2022-10-27 13:54:01

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2275 (New)


Package is "gdb"

Thu Oct 27 13:54:01 2022 rev:167 rq:1031179 version:12.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2022-10-01 17:42:11.889565365 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2275/gdb.changes2022-10-27 
13:54:37.212704580 +0200
@@ -1,0 +2,8 @@
+Wed Oct 19 16:35:34 UTC 2022 - Tom de Vries 
+
+- Patches added (swo#29277):
+  * gdb-fix-assert-in-handle_jit_event.patch
+- Maintenance script qa.sh:
+  * Add PR29706 and PR28617 kfails.
+
+---

New:

  gdb-fix-assert-in-handle_jit_event.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.OVk6Vm/_old  2022-10-27 13:54:39.736717455 +0200
+++ /var/tmp/diff_new_pack.OVk6Vm/_new  2022-10-27 13:54:39.752717536 +0200
@@ -347,6 +347,7 @@
 Patch2033:  gdb-testsuite-fix-have_mpx-test.patch
 Patch2034:  
gdb-testsuite-fix-gdb.dwarf2-dw2-unspecified-type-foo.c-with-m32.patch
 Patch2035:  gdb-add-support-for-readline-8.2.patch
+Patch2036:  gdb-fix-assert-in-handle_jit_event.patch
 
 # Backports from master, not yet available in next release.
 
@@ -783,6 +784,7 @@
 %patch2033 -p1
 %patch2034 -p1
 %patch2035 -p1
+%patch2036 -p1
 
 %patch2100 -p1
 %patch2101 -p1

++ gdb-fix-assert-in-handle_jit_event.patch ++
[gdb] Fix assert in handle_jit_event

With the cc-with-tweaks.sh patch submitted here (
https://sourceware.org/pipermail/gdb-patches/2022-October/192586.html ) we run
with:
...
$ export STRIP_ARGS_STRIP_DEBUG=--strip-all
$ make check RUNTESTFLAGS="gdb.base/jit-reader.exp \
--target_board cc-with-gnu-debuglink"
...
into the following assert:
...
(gdb) run ^M
Starting program: jit-reader ^M
gdb/jit.c:1247: internal-error: jit_event_handler: \
  Assertion `jiter->jiter_data != nullptr' failed.^M
...

Fix this by handling the
jit_bp_sym.objfile->separate_debug_objfile_backlink != nullptr case in
handle_jit_event.

Tested on x86_64-linux.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29277

---
 gdb/breakpoint.c | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index b046adf08f9..34f35135dfe 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -5566,7 +5566,10 @@ handle_jit_event (CORE_ADDR address)
  function needs to be updated too.  */
   bound_minimal_symbol jit_bp_sym = lookup_minimal_symbol_by_pc (address);
   gdb_assert (jit_bp_sym.objfile != nullptr);
-  jit_event_handler (gdbarch, jit_bp_sym.objfile);
+  objfile *objfile = jit_bp_sym.objfile;
+  if (objfile->separate_debug_objfile_backlink)
+objfile = objfile->separate_debug_objfile_backlink;
+  jit_event_handler (gdbarch, objfile);
 
   target_terminal::inferior ();
 }

++ qa.sh ++
--- /var/tmp/diff_new_pack.OVk6Vm/_old  2022-10-27 13:54:40.416720923 +0200
+++ /var/tmp/diff_new_pack.OVk6Vm/_new  2022-10-27 13:54:40.420720944 +0200
@@ -245,6 +245,16 @@
 # https://sourceware.org/bugzilla/show_bug.cgi?id=26873
 "FAIL: gdb.threads/watchthreads-threaded.exp: threaded watch loop \(GDB 
internal error\)"
 
+# https://sourceware.org/bugzilla/show_bug.cgi?id=28617
+"FAIL: gdb.base/info-os.exp: get file descriptors"
+"FAIL: gdb.base/info-os.exp: get internet-domain sockets"
+"FAIL: gdb.base/info-os.exp: get message queues"
+"FAIL: gdb.base/info-os.exp: get process groups"
+"FAIL: gdb.base/info-os.exp: get semaphores"
+"FAIL: gdb.base/info-os.exp: get shared-memory regions"
+"FAIL: gdb.base/info-os.exp: get threads"
+
+
 ) # kfail
 
 kfail_sle12=(
@@ -353,6 +363,9 @@
 "FAIL: gdb.server/stop-reply-no-thread.exp: to_disable=threads: continue 
to main \(timeout\)"
 "FAIL: gdb.server/stop-reply-no-thread.exp: to_disable=threads: continue 
until exit \(timeout\)"
 
+# https://sourceware.org/bugzilla/show_bug.cgi?id=29706
+"FAIL: gdb.base/eof-exit.exp: with non-dump terminal: with 
bracketed-paste-mode on: close GDB with eof \(missed the prompt\)"
+
 ) # kfail_factory
 
 kfail_aarch64=(


commit gdb for openSUSE:Factory

2022-10-01 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2022-10-01 17:42:04

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2275 (New)


Package is "gdb"

Sat Oct  1 17:42:04 2022 rev:166 rq:1006865 version:12.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2022-09-25 15:34:11.151461484 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2275/gdb.changes2022-10-01 
17:42:11.889565365 +0200
@@ -1,0 +2,27 @@
+Thu Sep 29 08:25:06 UTC 2022 - Fabian Vogt 
+
+- Add patch to fix build with readline 8.2:
+  * gdb-add-support-for-readline-8.2.patch
+
+---
+Wed Sep 28 11:50:45 UTC 2022 - Tom de Vries 
+
+- Patches added:
+  * gdb-testsuite-fix-gdb.mi-mi-sym-info.exp-on-opensuse-tumbleweed.patch
+- Maintenance script qa.sh:
+  * Add PR26873 kfails.
+
+---
+Fri Sep 23 09:46:57 UTC 2022 - Tom de Vries 
+
+- Maintenance script qa-remote.sh:
+  * Make rpm matching yet more precise.
+- Update patch:
+  * gdb-tdep-fix-powerpc-ieee-128-bit-format-arg-passing.patch
+- Add patches:
+  * gdb-handle-pending-c-after-rl_callback_read_char.patch
+  * gdb-testsuite-fix-have_mpx-test.patch
+  * gdb-symtab-fix-handling-of-dw_tag_unspecified_type.patch
+  * gdb-testsuite-fix-gdb.dwarf2-dw2-unspecified-type-foo.c-with-m32.patch
+
+---

New:

  gdb-add-support-for-readline-8.2.patch
  gdb-handle-pending-c-after-rl_callback_read_char.patch
  gdb-symtab-fix-handling-of-dw_tag_unspecified_type.patch
  gdb-testsuite-fix-gdb.dwarf2-dw2-unspecified-type-foo.c-with-m32.patch
  gdb-testsuite-fix-gdb.mi-mi-sym-info.exp-on-opensuse-tumbleweed.patch
  gdb-testsuite-fix-have_mpx-test.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.KaZPLm/_old  2022-10-01 17:42:13.721568707 +0200
+++ /var/tmp/diff_new_pack.KaZPLm/_new  2022-10-01 17:42:13.725568714 +0200
@@ -341,6 +341,12 @@
 Patch2027:  fix-for-gdb.base-solib-search.exp-test.patch
 Patch2028:  make-gdb.ada-float-bits.exp-more-generic.patch
 Patch2029:  
gdb-testsuite-fix-gdb.threads-killed-outside.exp-on-aarch64.patch
+Patch2030:  gdb-tdep-fix-powerpc-ieee-128-bit-format-arg-passing.patch
+Patch2031:  gdb-symtab-fix-handling-of-dw_tag_unspecified_type.patch
+Patch2032:  gdb-handle-pending-c-after-rl_callback_read_char.patch
+Patch2033:  gdb-testsuite-fix-have_mpx-test.patch
+Patch2034:  
gdb-testsuite-fix-gdb.dwarf2-dw2-unspecified-type-foo.c-with-m32.patch
+Patch2035:  gdb-add-support-for-readline-8.2.patch
 
 # Backports from master, not yet available in next release.
 
@@ -378,8 +384,8 @@
 Patch2113:  gdb-testsuite-fix-gdb.ada-literals.exp-with-aarch64.patch
 # https://sourceware.org/bugzilla/show_bug.cgi?id=29423#c8
 Patch2114:  gdb-fix-watchpoints-triggered.patch
-# https://sourceware.org/bugzilla/show_bug.cgi?id=29543#c5
-Patch2115:  gdb-tdep-fix-powerpc-ieee-128-bit-format-arg-passing.patch
+# https://sourceware.org/pipermail/gdb-patches/2022-September/192172.html
+Patch2115:  
gdb-testsuite-fix-gdb.mi-mi-sym-info.exp-on-opensuse-tumbleweed.patch
 
 # Debug patches.
 
@@ -771,6 +777,12 @@
 %patch2027 -p1
 %patch2028 -p1
 %patch2029 -p1
+%patch2030 -p1
+%patch2031 -p1
+%patch2032 -p1
+%patch2033 -p1
+%patch2034 -p1
+%patch2035 -p1
 
 %patch2100 -p1
 %patch2101 -p1

++ gdb-add-support-for-readline-8.2.patch ++
>From 1add37b567a7dee39d99f37b37802034c3fce9c4 Mon Sep 17 00:00:00 2001
From: Andreas Schwab 
Date: Sun, 20 Mar 2022 14:01:54 +0100
Subject: [PATCH] Add support for readline 8.2

In readline 8.2 the type of rl_completer_word_break_characters changed to
include const.
---
 gdb/completer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/completer.c b/gdb/completer.c
index d3900ae2014..a51c16ac7f8 100644
--- a/gdb/completer.c
+++ b/gdb/completer.c
@@ -36,7 +36,7 @@
calling a hook instead so we eliminate the CLI dependency.  */
 #include "gdbcmd.h"
 
-/* Needed for rl_completer_word_break_characters() and for
+/* Needed for rl_completer_word_break_characters and for
rl_filename_completion_function.  */
 #include "readline/readline.h"
 
@@ -2011,7 +2011,7 @@ gdb_completion_word_break_characters_throw ()
   rl_basic_quote_characters = NULL;
 }
 
-  return rl_completer_word_break_characters;
+  return (char *) rl_completer_word_break_characters;
 }
 
 char *
-- 
2.31.1


++ gdb-handle-pending-c-after-rl_callback_read_char.patch ++
[gdb] Handle pending ^C after rl_callback_read_char

commit gdb for openSUSE:Factory

2022-09-25 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2022-09-25 15:34:09

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2275 (New)


Package is "gdb"

Sun Sep 25 15:34:09 2022 rev:165 rq:1005448 version:12.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2022-08-24 15:10:57.968493117 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2275/gdb.changes2022-09-25 
15:34:11.151461484 +0200
@@ -1,0 +2,15 @@
+Thu Sep 22 13:38:31 UTC 2022 - Dirk M??ller 
+
+- use python3-xml if python is python3
+
+---
+Fri Sep  2 09:13:08 UTC 2022 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  * Generalize PR29405 kfails.
+- Maintenance script qa-remote.sh:
+  * Make rpm matching more precise.
+- Patches added:
+  * gdb-tdep-fix-powerpc-ieee-128-bit-format-arg-passing.patch
+
+---

New:

  gdb-tdep-fix-powerpc-ieee-128-bit-format-arg-passing.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.uqNPhK/_old  2022-09-25 15:34:14.063468498 +0200
+++ /var/tmp/diff_new_pack.uqNPhK/_new  2022-09-25 15:34:14.067468507 +0200
@@ -378,6 +378,8 @@
 Patch2113:  gdb-testsuite-fix-gdb.ada-literals.exp-with-aarch64.patch
 # https://sourceware.org/bugzilla/show_bug.cgi?id=29423#c8
 Patch2114:  gdb-fix-watchpoints-triggered.patch
+# https://sourceware.org/bugzilla/show_bug.cgi?id=29543#c5
+Patch2115:  gdb-tdep-fix-powerpc-ieee-128-bit-format-arg-passing.patch
 
 # Debug patches.
 
@@ -577,7 +579,7 @@
 
 # Provide python package xml.etree.ElementTree, used by test-case
 # gdb.python/py-send-packet.exp.
-BuildRequires:  python-xml
+BuildRequires:  %{python}-xml
 
 %endif # %%{build_testsuite}
 
@@ -785,6 +787,7 @@
 %patch2112 -p1
 %patch2113 -p1
 %patch2114 -p1
+%patch2115 -p1
 
 #unpack libipt
 %if 0%{have_libipt}

++ gdb-tdep-fix-powerpc-ieee-128-bit-format-arg-passing.patch ++
[gdb/tdep] Fix PowerPC IEEE 128-bit format arg passing

https://sourceware.org/bugzilla/show_bug.cgi?id=29543#c5

---
 gdb/ppc-sysv-tdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c
index b7106542b5d..2cdf4658e35 100644
--- a/gdb/ppc-sysv-tdep.c
+++ b/gdb/ppc-sysv-tdep.c
@@ -1444,7 +1444,7 @@ ppc64_sysv_abi_push_param (struct gdbarch *gdbarch,
  == floatformats_ia64_quad))
 {
   /* IEEE FLOAT128, args in vector registers.  */
-  ppc64_sysv_abi_push_val (gdbarch, val, TYPE_LENGTH (type), 0, argpos);
+  ppc64_sysv_abi_push_val (gdbarch, val, TYPE_LENGTH (type), 16, argpos);
   ppc64_sysv_abi_push_vreg (gdbarch, val, argpos);
 }
   else if (type->code () == TYPE_CODE_FLT

++ qa-remote.sh ++
--- /var/tmp/diff_new_pack.uqNPhK/_old  2022-09-25 15:34:14.603469798 +0200
+++ /var/tmp/diff_new_pack.uqNPhK/_new  2022-09-25 15:34:14.607469807 +0200
@@ -54,14 +54,14 @@
mkdir -p $dir
 fi
 
-if [ ! -f $dir/gdb-testresults-12.1-*.rpm ]; then
+if [ ! -f $dir/gdb-testresults-12.1-*.$arch.rpm ]; then
osc getbinaries -q -M testsuite -d $dir $c $arch
 fi
 
 if [ ! -d $pkgs/gdb-testresults.$c.$arch ]; then
(
cd $dir
-   extract gdb-testresults-12.1-*.rpm
+   extract gdb-testresults-12.1-*.$arch.rpm
)
 fi
 

++ qa.sh ++
--- /var/tmp/diff_new_pack.uqNPhK/_old  2022-09-25 15:34:14.623469846 +0200
+++ /var/tmp/diff_new_pack.uqNPhK/_new  2022-09-25 15:34:14.623469846 +0200
@@ -358,9 +358,8 @@
 "FAIL: gdb.base/large-frame.exp: optimize=-O2: backtrace"
 
 # https://sourceware.org/bugzilla/show_bug.cgi?id=29405
-"FAIL: gdb.base/step-over-syscall.exp: vfork: displaced=off: pc after 
stepi matches insn addr after syscall"
-"FAIL: gdb.base/step-over-syscall.exp: vfork: displaced=on: pc after stepi 
matches insn addr after syscall"
-"FAIL: gdb.base/step-over-syscall.exp: fork: displaced=on: 
check_pc_after_cross_syscall: single step over fork final pc"
+"FAIL: gdb.base/step-over-syscall.exp: (fork|vfork): displaced=(on|off): 
pc after stepi matches insn addr after syscall"
+"FAIL: gdb.base/step-over-syscall.exp: (fork|vfork): displaced=(on|off): 
check_pc_after_cross_syscall: single step over fork final pc"
 
 # https://sourceware.org/bugzilla/show_bug.cgi?id=29418
 "FAIL: gdb.ada/O2_float_param.exp: scenario=all: frame"


commit gdb for openSUSE:Factory

2022-08-24 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2022-08-24 15:10:47

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2083 (New)


Package is "gdb"

Wed Aug 24 15:10:47 2022 rev:164 rq:998802 version:12.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2022-08-04 13:22:40.156363470 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2083/gdb.changes2022-08-24 
15:10:57.968493117 +0200
@@ -1,0 +2,12 @@
+Mon Aug 22 02:58:00 UTC 2022 - Martin Li??ka 
+
+- Enable debuginfod for all archs as we index all TW RPM files.
+- Recommend libdebuginfod1 when one installs gdb so that
+  it can utilize debuginfod server by default.
+
+---
+Tue Aug  2 12:01:23 UTC 2022 - Tom de Vries 
+
+- Fix build with gcc 13 by using -Wno-error=enum-int-mismatch.
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.btmWII/_old  2022-08-24 15:10:59.712494800 +0200
+++ /var/tmp/diff_new_pack.btmWII/_new  2022-08-24 15:10:59.712494800 +0200
@@ -342,7 +342,6 @@
 Patch2028:  make-gdb.ada-float-bits.exp-more-generic.patch
 Patch2029:  
gdb-testsuite-fix-gdb.threads-killed-outside.exp-on-aarch64.patch
 
-
 # Backports from master, not yet available in next release.
 
 #
@@ -384,7 +383,6 @@
 
 #
 
-
 BuildRequires:  bison
 BuildRequires:  flex
 %if 0%{suse_version} > 1110
@@ -427,13 +425,12 @@
 %endif # 0%{!?_without_python:1}
 %global have_libdebuginfod 0
 %if 0%{?suse_version} > 1500
-%ifarch %{ix86} x86_64 aarch64 armv7l ppc64 ppc64le s390x
 %global have_libdebuginfod 1
 %endif
-%endif
 %if 0%{have_libdebuginfod}
 BuildRequires:  libdebuginfod-devel
 BuildRequires:  libdebuginfod1
+Recommends: libdebuginfod1
 %endif
 %global have_libipt 0
 %if 0%{suse_version} > 1110
@@ -789,7 +786,6 @@
 %patch2113 -p1
 %patch2114 -p1
 
-
 #unpack libipt
 %if 0%{have_libipt}
 tar xzf %{SOURCE7}
@@ -838,7 +834,7 @@
 export CFLAGS="$RPM_OPT_FLAGS"
 
 # Add your -Wno-x/-Wno-error=y options here:
-for opt in -Wno-error=odr; do
+for opt in -Wno-error=odr -Wno-error=enum-int-mismatch; do
   # checking for acceptance of -Wno-foo is a bit wieldy: GCC doesn't
   # warn about unknown -Wno- flags, _except_ if there are other
   # diagnostics as well, so let's force an uninitialized use warning


commit gdb for openSUSE:Factory

2022-05-05 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2022-05-05 23:04:31

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.1538 (New)


Package is "gdb"

Thu May  5 23:04:31 2022 rev:162 rq:974673 version:11.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2022-03-04 00:17:15.576280396 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.1538/gdb.changes2022-05-05 
23:04:33.325419644 +0200
@@ -1,0 +2,11 @@
+Fri Apr 29 13:27:04 UTC 2022 - Martin Li??ka 
+
+- Remove dependency on binutils-gold as the package will be removed
+  in the future. Gold linker is unmaintained by the upstream project.
+
+---
+Thu Apr 14 09:24:07 UTC 2022 - Tom de Vries 
+
+- Fix unresolved BuildRequires fpc for Leap 15.4/i586.
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.ZwhUKS/_old  2022-05-05 23:04:35.289422097 +0200
+++ /var/tmp/diff_new_pack.ZwhUKS/_new  2022-05-05 23:04:35.293422103 +0200
@@ -552,14 +552,16 @@
 BuildRequires:  gcc-go
 %endif
 
-%if %{with fpc}
-%if 0%{?suse_version} >= 1500 && 0%{?is_opensuse}
+%if %{with fpc} && 0%{?is_opensuse}
 %ifarch x86_64 aarch64 armv7l
+# Tumbleweed and Leap 15.x.
+%if 0%{?suse_version} >= 1500
 BuildRequires:  fpc
 %endif
 %ifarch %{ix86}
-# fpc is (currently?) unavailable for Leap 15.3/i586.
-%if 0%{?sle_version} != 150300 && 0%{?is_opensuse}
+# Tumbleweed and Leap 15.{0,1,2}.
+# fpc seems to be unavailable for Leap 15.{3,4}/i586.
+%if 0%{?suse_version} > 1500 || (0%{?sle_version} >= 15 && 
0%{?sle_version} <= 150200)
 BuildRequires:  fpc
 %endif
 %endif
@@ -573,18 +575,6 @@
 %endif
 %endif
 
-%ifarch s390x
-%if 0%{?suse_version} >= 1500
-# s390x (for SLE12 and earlier) doesn't have binutils-gold
-BuildRequires:  binutils-gold
-%endif
-%else
-# SLE-10 doesn't have binutils-gold.
-%if 0%{suse_version} >= 1110
-BuildRequires:  binutils-gold
-%endif
-%endif
-
 %if 0%{?suse_version} >= 1200
 BuildRequires:  systemtap-sdt-devel
 %endif


commit gdb for openSUSE:Factory

2022-03-03 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2022-03-04 00:16:59

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.1958 (New)


Package is "gdb"

Fri Mar  4 00:16:59 2022 rev:161 rq:958414 version:11.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2022-02-13 19:50:38.958149817 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.1958/gdb.changes2022-03-04 
00:17:15.576280396 +0100
@@ -1,0 +2,6 @@
+Fri Feb 25 14:53:56 UTC 2022 - Tom de Vries 
+
+- Patch added (backport from master):
+  * fix-build-with-current-gcc-el_explicit-location-always-non-null.patch
+
+---

New:

  fix-build-with-current-gcc-el_explicit-location-always-non-null.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.RFO0OD/_old  2022-03-04 00:17:18.268280964 +0100
+++ /var/tmp/diff_new_pack.RFO0OD/_new  2022-03-04 00:17:18.272280965 +0100
@@ -348,6 +348,7 @@
 Patch2035:  gdb-r_version-check.patch
 Patch2036:  ibm-z-add-another-arch14-instruction.patch
 Patch2037:  ibm-z-remove-lpswey-parameter.patch
+Patch2038:  
fix-build-with-current-gcc-el_explicit-location-always-non-null.patch
 
 # Backports from master, not yet available in next release.
 
@@ -805,6 +806,7 @@
 %patch2035 -p1
 %patch2036 -p1
 %patch2037 -p1
+%patch2038 -p1
 
 %patch2100 -p1
 %patch2101 -p1

++ fix-build-with-current-gcc-el_explicit-location-always-non-null.patch 
++
Fix build with current GCC: EL_EXPLICIT(location) always non-NULL

Compiling GDB with current GCC (1b4a63593b) runs into this:

  src/gdb/location.c: In function 'int event_location_empty_p(const 
event_location*)':
  src/gdb/location.c:963:38: error: the address of 'event_locationexplicit_loc' will never be NULL [-Werror=address]
963 |   return (EL_EXPLICIT (location) == NULL
|  ^
  src/gdb/location.c:57:30: note: 'event_locationexplicit_loc' declared here
 57 | struct explicit_location explicit_loc;
|  ^~~~

GCC is right, EL_EXPLICIT is defined as returning the address of an
union field:

  /* An explicit location.  */
  struct explicit_location explicit_loc;
  #define EL_EXPLICIT(P) (&((P)->u.explicit_loc))

and thus must always be non-NULL.

Change-Id: Ie74fee7834495a93affcefce03c06e4d83ad8191

---
 gdb/location.c | 11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/gdb/location.c b/gdb/location.c
index 827294e106a..1ee20069313 100644
--- a/gdb/location.c
+++ b/gdb/location.c
@@ -960,12 +960,11 @@ event_location_empty_p (const struct event_location 
*location)
   return 0;
 
 case EXPLICIT_LOCATION:
-  return (EL_EXPLICIT (location) == NULL
- || (EL_EXPLICIT (location)->source_filename == NULL
- && EL_EXPLICIT (location)->function_name == NULL
- && EL_EXPLICIT (location)->label_name == NULL
- && (EL_EXPLICIT (location)->line_offset.sign
- == LINE_OFFSET_UNKNOWN)));
+  return (EL_EXPLICIT (location)->source_filename == NULL
+ && EL_EXPLICIT (location)->function_name == NULL
+ && EL_EXPLICIT (location)->label_name == NULL
+ && (EL_EXPLICIT (location)->line_offset.sign
+ == LINE_OFFSET_UNKNOWN));
 
 case PROBE_LOCATION:
   return EL_PROBE (location) == NULL;


commit gdb for openSUSE:Factory

2022-02-13 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2022-02-13 19:50:28

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.1956 (New)


Package is "gdb"

Sun Feb 13 19:50:28 2022 rev:160 rq:953770 version:11.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2022-02-06 23:53:41.999053213 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.1956/gdb.changes2022-02-13 
19:50:38.958149817 +0100
@@ -1,0 +2,15 @@
+Fri Feb 11 15:15:58 UTC 2022 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  * Add KFAILs for PR28667.
+
+---
+Mon Feb  7 15:15:58 UTC 2022 - Tom de Vries 
+
+- Patches added (jsc#SLE-22287):
+  * ibm-z-add-another-arch14-instruction.patch
+  * ibm-z-remove-lpswey-parameter.patch
+- Fedora fixup patch added:
+  * fixup-gdb-6.5-bz243845-stale-testing-zombie-test.patch
+
+---

New:

  fixup-gdb-6.5-bz243845-stale-testing-zombie-test.patch
  ibm-z-add-another-arch14-instruction.patch
  ibm-z-remove-lpswey-parameter.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.KTGy6S/_old  2022-02-13 19:50:40.946155112 +0100
+++ /var/tmp/diff_new_pack.KTGy6S/_new  2022-02-13 19:50:40.954155134 +0100
@@ -257,6 +257,7 @@
 Patch503:   fixup-gdb-rhbz1325795-framefilters-test.patch
 Patch504:   fixup-gdb-rhbz1553104-s390x-arch12-test.patch
 Patch505:   fixup-gdb-glibc-strstr-workaround.patch
+Patch506:   fixup-gdb-6.5-bz243845-stale-testing-zombie-test.patch
 
 # openSUSE specific
 
@@ -345,6 +346,8 @@
 Patch2033:  gdb-testsuite-fix-regexp-in-gdb.base-foll-vfork.exp.patch
 Patch2034:  
gdb-testsuite-add-missing-wait-in-gdb.base-signals-state-child.exp.patch
 Patch2035:  gdb-r_version-check.patch
+Patch2036:  ibm-z-add-another-arch14-instruction.patch
+Patch2037:  ibm-z-remove-lpswey-parameter.patch
 
 # Backports from master, not yet available in next release.
 
@@ -743,6 +746,7 @@
 %patch503 -p1
 %patch504 -p1
 %patch505 -p1
+%patch506 -p1
 
 %patch1000 -p1
 %patch1001 -p1
@@ -799,6 +803,8 @@
 %patch2033 -p1
 %patch2034 -p1
 %patch2035 -p1
+%patch2036 -p1
+%patch2037 -p1
 
 %patch2100 -p1
 %patch2101 -p1

++ fixup-gdb-6.5-bz243845-stale-testing-zombie-test.patch ++
Fixup gdb.base/tracefork-zombie.exp

Fix ERROR:
...
PASS: gdb.base/tracefork-zombie.exp: attach
ERROR: tcl error sourcing gdb/testsuite/gdb.base/tracefork-zombie.exp.
ERROR: tcl error code POSIX ESRCH {no such process}
ERROR: error reading "file12": no such process
while executing
"read $statusfi"
("foreach" body line 5)
invoked from within
...

---
 gdb/testsuite/gdb.base/tracefork-zombie.exp | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/gdb.base/tracefork-zombie.exp 
b/gdb/testsuite/gdb.base/tracefork-zombie.exp
index 03f790d4c5d..3e2e5517d46 100644
--- a/gdb/testsuite/gdb.base/tracefork-zombie.exp
+++ b/gdb/testsuite/gdb.base/tracefork-zombie.exp
@@ -58,8 +58,10 @@ foreach procpid [glob -directory /proc -type d {[0-9]*}] {
 if {[catch {open $procpid/status} statusfi]} {
continue
 }
-set status [read $statusfi]
-close $statusfi
+if {[catch {read $statusfi} status]} {
+   continue
+}
+catch {close $statusfi}
 if {1
  && [regexp -line {^Name:\tgdb$} $status]
  && [regexp -line {^PPid:\t1$} $status]

++ ibm-z-add-another-arch14-instruction.patch ++
IBM Z: Add another arch14 instruction

opcodes/

* opcodes/s390-opc.txt: Add qpaci.

gas/

* testsuite/gas/s390/zarch-arch14.d: Add qpaci.
* testsuite/gas/s390/zarch-arch14.s: Add qpaci.

---
 gas/testsuite/gas/s390/zarch-arch14.d | 1 +
 gas/testsuite/gas/s390/zarch-arch14.s | 1 +
 opcodes/s390-opc.txt  | 2 ++
 3 files changed, 4 insertions(+)

diff --git a/opcodes/s390-opc.txt b/opcodes/s390-opc.txt
index aa00b4f3b69..dfd5617f0ae 100644
--- a/opcodes/s390-opc.txt
+++ b/opcodes/s390-opc.txt
@@ -2044,3 +2044,5 @@ b98B rdp RRF_RURR2 " " arch14 zarch optparm
 eb71 lpswey SIY_URD " " arch14 zarch
 b200 lbear S_RD " " arch14 zarch
 b201 stbear S_RD " " arch14 zarch
+
+b28f qpaci S_RD " " arch14 zarch

++ ibm-z-remove-lpswey-parameter.patch ++
IBM Z: Remove lpswey parameter

opcodes/
* s390-opc.c (INSTR_SIY_RD): New instruction format.
(MASK_SIY_RD): New instruction mask.
* s390-opc.txt: Change instruction format of lpswey to SIY_RD.

gas/
* testsuite/gas/s390/zarch-arch14.d: Remove last operand of
lpswey.
* 

commit gdb for openSUSE:Factory

2022-02-07 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2022-02-06 23:53:28

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.1898 (New)


Package is "gdb"

Sun Feb  6 23:53:28 2022 rev:159 rq:951330 version:11.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2021-12-12 00:56:52.166553886 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.1898/gdb.changes2022-02-06 
23:53:41.999053213 +0100
@@ -1,0 +2,6 @@
+Thu Feb  3 12:22:35 UTC 2022 - Andreas Schwab 
+
+- gdb-r_version-check.patch: gdb: Don't assume r_ldsomap when r_version >
+  1 on Linux
+
+---

New:

  gdb-r_version-check.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.Ie14wN/_old  2022-02-06 23:53:45.879027342 +0100
+++ /var/tmp/diff_new_pack.Ie14wN/_new  2022-02-06 23:53:45.883027315 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package gdb
+# spec file
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 # Copyright (c) 2012 RedHat
 #
 # All modifications and additions to the file contributed by third parties
@@ -344,6 +344,7 @@
 Patch2032:  fix-gdb.base-sigstep.exp-test-for-ppc.patch
 Patch2033:  gdb-testsuite-fix-regexp-in-gdb.base-foll-vfork.exp.patch
 Patch2034:  
gdb-testsuite-add-missing-wait-in-gdb.base-signals-state-child.exp.patch
+Patch2035:  gdb-r_version-check.patch
 
 # Backports from master, not yet available in next release.
 
@@ -797,6 +798,7 @@
 %patch2032 -p1
 %patch2033 -p1
 %patch2034 -p1
+%patch2035 -p1
 
 %patch2100 -p1
 %patch2101 -p1

++ gdb-r_version-check.patch ++
>From c0154a4a21a3aed01ef53877af05cf0109a0b124 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" 
Date: Mon, 16 Aug 2021 16:17:25 -0700
Subject: [PATCH] gdb: Don't assume r_ldsomap when r_version > 1 on Linux

The r_ldsomap field is specific to Solaris (part of librtld_db), and
should never be accessed for Linux.  glibc is planning to add a field
to support multiple namespaces.  But there will be no r_ldsomap when
r_version is bumped to 2.  Add linux_[ilp32|lp64]_fetch_link_map_offsets
to set r_ldsomap_offset to -1 and use them for Linux targets.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28236
---
 gdb/aarch64-linux-tdep.c|  2 +-
 gdb/alpha-linux-tdep.c  |  2 +-
 gdb/amd64-linux-tdep.c  |  4 +--
 gdb/arc-linux-tdep.c|  2 +-
 gdb/arm-linux-tdep.c|  2 +-
 gdb/cris-linux-tdep.c   |  2 +-
 gdb/csky-linux-tdep.c   |  2 +-
 gdb/hppa-linux-tdep.c   |  2 +-
 gdb/i386-linux-tdep.c   |  2 +-
 gdb/ia64-linux-tdep.c   |  2 +-
 gdb/linux-tdep.c| 60 +
 gdb/linux-tdep.h|  5 
 gdb/m32r-linux-tdep.c   |  2 +-
 gdb/m68k-linux-tdep.c   |  2 +-
 gdb/microblaze-linux-tdep.c |  2 +-
 gdb/mips-linux-tdep.c   |  6 ++--
 gdb/mn10300-linux-tdep.c|  2 +-
 gdb/nios2-linux-tdep.c  |  2 +-
 gdb/or1k-linux-tdep.c   |  2 +-
 gdb/ppc-linux-tdep.c|  4 +--
 gdb/riscv-linux-tdep.c  |  4 +--
 gdb/s390-linux-tdep.c   |  4 +--
 gdb/sh-linux-tdep.c |  2 +-
 gdb/sparc-linux-tdep.c  |  2 +-
 gdb/sparc64-linux-tdep.c|  2 +-
 gdb/tilegx-linux-tdep.c |  4 +--
 gdb/xtensa-linux-tdep.c |  2 +-
 27 files changed, 97 insertions(+), 32 deletions(-)

diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index 63c200b47f7..b1225438d9d 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -1795,7 +1795,7 @@ aarch64_linux_init_abi (struct gdbarch_info info, struct 
gdbarch *gdbarch)
   linux_init_abi (info, gdbarch, 1);
 
   set_solib_svr4_fetch_link_map_offsets (gdbarch,
-svr4_lp64_fetch_link_map_offsets);
+linux_lp64_fetch_link_map_offsets);
 
   /* Enable TLS support.  */
   set_gdbarch_fetch_tls_load_module_address (gdbarch,
diff --git a/gdb/alpha-linux-tdep.c b/gdb/alpha-linux-tdep.c
index c2cffc13c20..0a00fc1f310 100644
--- a/gdb/alpha-linux-tdep.c
+++ b/gdb/alpha-linux-tdep.c
@@ -374,7 +374,7 @@ alpha_linux_init_abi (struct gdbarch_info info, struct 
gdbarch *gdbarch)
   set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);
 
   set_solib_svr4_fetch_link_map_offsets
-(gdbarch, svr4_lp64_fetch_link_map_offsets);
+(gdbarch, linux_lp64_fetch_link_map_offsets);
 
   /* Enable TLS support.  */
   set_gdbarch_fetch_tls_load_module_address (gdbarch,
diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
index ac6843c1fdd..715add8a7b0 100644
--- a/gdb/amd64-linux-tdep.c
+++ 

commit gdb for openSUSE:Factory

2021-12-11 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2021-12-12 00:56:06

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2520 (New)


Package is "gdb"

Sun Dec 12 00:56:06 2021 rev:158 rq:936257 version:11.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2021-12-02 02:12:31.279162780 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.2520/gdb.changes2021-12-12 
00:56:52.166553886 +0100
@@ -1,0 +2,6 @@
+Mon Dec  6 17:19:44 UTC 2021 - Tom de Vries 
+
+- Patches added (swo#28323):
+  gdb-ada-fix-assert-in-ada_is_unconstrained_packed_array_type.patch
+
+---

New:

  gdb-ada-fix-assert-in-ada_is_unconstrained_packed_array_type.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.5y3U0N/_old  2021-12-12 00:56:53.894555072 +0100
+++ /var/tmp/diff_new_pack.5y3U0N/_new  2021-12-12 00:56:53.898555075 +0100
@@ -389,6 +389,8 @@
 Patch2119:  gdb-testsuite-fix-gdb.arch-i386-pkru.exp-on-linux.patch
 # https://sourceware.org/pipermail/gdb-patches/2021-November/183960.html
 Patch2120:  gdb-tdep-fix-avx512-m32-support-in-gdbserver.patch
+# https://sourceware.org/pipermail/gdb-patches/2021-December/184241.html
+Patch2121:  
gdb-ada-fix-assert-in-ada_is_unconstrained_packed_array_type.patch
 
 BuildRequires:  bison
 BuildRequires:  flex
@@ -815,6 +817,7 @@
 %patch2118 -p1
 %patch2119 -p1
 %patch2120 -p1
+%patch2121 -p1
 
 #unpack libipt
 %if 0%{have_libipt}

++ gdb-ada-fix-assert-in-ada_is_unconstrained_packed_array_type.patch ++
[gdb/ada] Fix assert in ada_is_unconstrained_packed_array_type

On openSUSE Leap 42.3, with system compiler gcc 4.8.5 I run into:
...
(gdb) print u_one_two_three^M
src/gdb/gdbtypes.h:1050: internal-error: field: \
 Assertion `idx >= 0 && idx < num_fields ()' failed.^M
...

We run into trouble while doing this in
ada_is_unconstrained_packed_array_type:
...
1953  return TYPE_FIELD_BITSIZE (type, 0) > 0;
...
which tries to get field 0 from a type without fields:
...
(gdb) p type->num_fields ()
$6 = 0
...
which is the case because the type is a typedef:
...
(gdb) p type->code ()
$7 = TYPE_CODE_TYPEDEF
...

Fix this by using the type referenced by the typedef instead.

Tested on x86_64-linux.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28323

---
 gdb/ada-lang.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index b098991612d..9341c7b3677 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -1927,6 +1927,8 @@ ada_is_unconstrained_packed_array_type (struct type *type)
   /* The structure's first field is a pointer to an array, so this
 fetches the array type.  */
   type = TYPE_TARGET_TYPE (type->field (0).type ());
+  if (type->code () == TYPE_CODE_TYPEDEF)
+   type = ada_typedef_target_type (type);
   /* Now we can see if the array elements are packed.  */
   return TYPE_FIELD_BITSIZE (type, 0) > 0;
 }


commit gdb for openSUSE:Factory

2021-12-01 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2021-12-01 20:46:24

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.31177 (New)


Package is "gdb"

Wed Dec  1 20:46:24 2021 rev:157 rq:934734 version:11.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2021-11-06 18:14:04.968761432 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.31177/gdb.changes   2021-12-02 
02:12:31.279162780 +0100
@@ -1,0 +2,164 @@
+Tue Nov 30 10:45:32 UTC 2021 - Tom de Vries 
+
+- Patches added (swo#27028, swo#27257):
+  * gdb-testsuite-fix-gdb.arch-i386-pkru.exp-on-linux.patch
+  * gdb-tdep-fix-avx512-m32-support-in-gdbserver.patch
+
+---
+Fri Nov 26 14:04:38 UTC 2021 - Tom de Vries 
+
+- Patch added (swo#28539, bsc#1192285):
+  * gdb-symtab-fix-segfault-in-search_one_symtab.patch
+
+---
+Mon Nov 22 19:40:55 UTC 2021 - Tom de Vries 
+
+- Patches removed:
+  * gdb-testsuite-debug-gdb.arch-i386-sse.exp.patch
+
+---
+Mon Nov 22 17:47:57 UTC 2021 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  - Drop openSUSE Leap 15.1.
+  - Add KFAILs for PR28617.
+
+---
+Mon Nov 22 09:25:32 UTC 2021 - Tom de Vries 
+
+- Fix SLE-12 x86_64 unresolvable by removing BuildRequire gcc-java.
+
+---
+Mon Nov 22 09:00:45 UTC 2021 - Tom de Vries 
+
+- Fix openSUSE_Factory_ARM armv7l unresolvable by not doing
+  BuildRequire babeltrace-devel.
+
+---
+
+Mon Nov 22 08:24:21 UTC 2021 - Tom de Vries 
+
+- Fix SLE-12 x86_64 unresolvable by not doing BuildRequire
+  babeltrace-devel.
+
+---
+Fri Nov 19 15:31:46 UTC 2021 - Tom de Vries 
+
+- Patches added (backport from master):
+  * gdb-testsuite-add-missing-wait-in-gdb.base-signals-state-child.exp.patch
+- Add BuildRequire libsource-highlight.
+
+---
+Thu Nov 18 14:01:30 UTC 2021 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  - Add KFAIL.
+- Patches updated (increase sleep time):
+  * gdb-testsuite-fix-race-in-gdb.threads-detach-step-over.exp.patch
+- Patches added (debug hard to reproduce failure):
+  * gdb-testsuite-debug-gdb.arch-i386-sse.exp.patch
+
+---
+Thu Nov 18 11:45:00 UTC 2021 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  - Add internal-error KFAILs.
+  - Rewrite gdb.suse check to distinguish between:
+"zypper hint printed (librpm)" and
+"zypper hint printed (no librpm)".
+
+---
+Tue Nov 16 15:50:08 UTC 2021 - Tom de Vries 
+
+- Patch updated (zypper hint doesn't use librpm on SLE-11):
+  * gdb-testsuite-add-gdb.suse-zypper-hint.exp.patch
+
+---
+Thu Nov 11 10:36:08 UTC 2021 - Tom de Vries 
+
+- Patches added (backports from trunk):
+  * gdb-testsuite-add-gdb.opt-break-on-_exit.exp.patch
+  * gdb-tdep-rs6000-don-t-skip-system-call-in-skip_prologue.patch
+  * gdb-testsuite-fix-stepi-test-cases-with-unix-m32-fpie-pie.patch
+  * 
gdb-testsuite-fix-assembly-comments-in-gdb.dwarf2-clang-debug-names.exp.tcl.patch
+  * gdb-doc-fix-print-inferior-events-default.patch
+  * gdb-testsuite-fix-gdb.guile-scm-type.exp-with-gcc-4.8.patch
+  * gdb-testsuite-add-gdb.arch-ppc64-break-on-_exit.exp.patch
+  * gdb-testsuite-don-t-error-when-trying-to-unset-last_spawn_tty_name.patch
+  * gdb-exp-improve-error-reading-variable-message.patch
+  * fix-gdb.base-sigstep.exp-test-for-ppc.patch
+  * gdb-testsuite-fix-regexp-in-gdb.base-foll-vfork.exp.patch
+- Patches added (backports from ml):
+  * gdb-testsuite-disable-inferior-output-in-gdb.base-foll-vfork.exp.patch
+- Maintenance script qa.sh:
+  - Add -m32/-pie to known clean configs.
+  - Add kfail for PR28467.
+
+---
+Tue Nov  9 15:54:58 UTC 2021 - Tom de Vries 
+
+- Fix empty patch:
+  * gdb-testsuite-fix-fail-in-gdb.tui-basic.exp.patch
+
+---
+Tue Nov  9 08:05:16 UTC 2021 - Tom de Vries 
+
+- Limit SLE extra targets to SLE targets.
+- Add avr-elf and pru-elf to openSUSE extra targets.
+
+---
+Mon Nov  8 14:53:20 UTC 2021 - Tom de Vries 
+
+- Maintenance script qa.sh:
+  * Add note.
+  

commit gdb for openSUSE:Factory

2021-11-06 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2021-11-06 18:13:27

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.1890 (New)


Package is "gdb"

Sat Nov  6 18:13:27 2021 rev:156 rq:929121 version:11.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2021-11-01 18:35:48.813339252 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.1890/gdb.changes2021-11-06 
18:14:04.968761432 +0100
@@ -1,0 +2,13 @@
+Tue Nov  2 13:03:51 UTC 2021 - Tom de Vries 
+
+- Patches added (add back ignore-errors command, dropped in
+  11.1 update):
+  * gdb-cli-add-ignore-errors-command.patch
+
+---
+Mon Nov  1 10:04:24 UTC 2021 - Tom de Vries 
+
+- Patches added [swo#28355]:
+  * gdb-tdep-aarch64-make-gdbserver-register-set-selection-dynamic.patch
+
+---

New:

  gdb-cli-add-ignore-errors-command.patch
  gdb-tdep-aarch64-make-gdbserver-register-set-selection-dynamic.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.gwkS86/_old  2021-11-06 18:14:06.684762331 +0100
+++ /var/tmp/diff_new_pack.gwkS86/_new  2021-11-06 18:14:06.688762334 +0100
@@ -358,6 +358,10 @@
 Patch2111:  
gdb-testsuite-work-around-skip_prologue-problems-in-gdb.threads-process-dies-while-detaching.exp.patch
 #https://sourceware.org/pipermail/gdb-patches/2021-October/182921.html
 Patch2112:  
gdb-testsuite-handle-sigill-in-two-gdb.arch-powerpc-test-cases.patch
+# https://sourceware.org/pipermail/gdb-patches/2021-November/182985.html
+Patch2113:  
gdb-tdep-aarch64-make-gdbserver-register-set-selection-dynamic.patch
+# https://sourceware.org/pipermail/gdb-patches/2021-May/178990.html
+Patch2114:  gdb-cli-add-ignore-errors-command.patch
 
 BuildRequires:  bison
 BuildRequires:  flex
@@ -772,6 +776,8 @@
 %patch2110 -p1
 %patch2111 -p1
 %patch2112 -p1
+%patch2113 -p1
+%patch2114 -p1
 
 #unpack libipt
 %if 0%{have_libipt}

++ gdb-cli-add-ignore-errors-command.patch ++
[gdb/cli] Add ignore-errors command

While trying to reproduce a failing test-case from the testsuite on the
command line using a gdb command script, I ran into the problem that a command
failed which stopped script execution.

I could work around this by splitting the script at each error, but I realized
it would be nice if I could tell gdb to ignore the error.

A python workaround ignore-errors exists, mentioned here (
https://sourceware.org/legacy-ml/gdb/2010-06/msg00100.html ), which is
already supplied by distros like Fedora and openSUSE.

FTR, a more elaborate try-catch solution was posted here (
https://sourceware.org/bugzilla/show_bug.cgi?id=8487 ).

This patch adds native ignore-errors support (so no python needed).

So with this script:
...
$ cat script.gdb
ignore-errors run
echo here
...
we have:
...
$ gdb -q -batch -x script.gdb
No executable file specified.
Use the "file" or "exec-file" command.
here$
...

Note that quit is not caught:
...
$ gdb -q
(gdb) ignore-errors quit
$
...
which is the same behaviour as with the python implementation.

Tested on x86_64-linux.

gdb/ChangeLog:

2021-05-18  Tom de Vries  

* cli/cli-cmds.c (ignore_errors_command_completer)
(ignore_errors_command): New function.
(_initialize_cli_cmds): Add "ignore-errors" cmd.

gdb/doc/ChangeLog:

2021-05-18  Tom de Vries  

* gdb.texinfo (Command Files): Document command ignore-errors.

gdb/testsuite/ChangeLog:

2021-05-18  Tom de Vries  

* gdb.base/ignore-errors.exp: New test.
* gdb.base/ignore-errors.gdb: New command file.

---
 gdb/cli/cli-cmds.c   | 35 
 gdb/doc/gdb.texinfo  |  8 +++-
 gdb/testsuite/gdb.base/ignore-errors.exp | 24 ++
 gdb/testsuite/gdb.base/ignore-errors.gdb |  2 ++
 4 files changed, 68 insertions(+), 1 deletion(-)

diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 56ae12a0c19..ce8af45a925 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -39,6 +39,7 @@
 #include "gdbsupport/filestuff.h"
 #include "location.h"
 #include "block.h"
+#include "event-top.h"
 
 #include "ui-out.h"
 #include "interps.h"
@@ -2249,6 +2250,34 @@ gdb_maint_setting_str_internal_fn (struct gdbarch 
*gdbarch,
 gdbarch);
 }
 
+/* Completer for "ignore-errors".  */
+
+static void
+ignore_errors_command_completer (cmd_list_element *ignore,
+completion_tracker ,
+const char *text, const char * /*word*/)
+{
+  

commit gdb for openSUSE:Factory

2021-06-25 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2021-06-25 15:01:11

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2625 (New)


Package is "gdb"

Fri Jun 25 15:01:11 2021 rev:153 rq:901563 version:10.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2021-06-21 20:34:58.146580147 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2625/gdb.changes2021-06-25 
15:01:40.680176465 +0200
@@ -1,0 +2,6 @@
+Wed Jun 23 11:52:54 UTC 2021 - Andreas Schwab 
+
+- gdb-support-dw-lle-start-end.patch: Support DW_LLE_start_end
+  (bsc#1187044)
+
+---

New:

  gdb-support-dw-lle-start-end.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.gb55fT/_old  2021-06-25 15:01:42.472178651 +0200
+++ /var/tmp/diff_new_pack.gb55fT/_new  2021-06-25 15:01:42.476178656 +0200
@@ -1,5 +1,5 @@
 #
-# spec file
+# spec file for package gdb-testresults
 #
 # Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2012 RedHat
@@ -320,6 +320,7 @@
 Patch2020:  gdb-breakpoint-fix-assert-in-jit_event_handler.patch
 Patch2021:  
gdb-save-restore-file-offset-while-reading-notes-in-core-file.patch
 Patch2022:  
gdb-symtab-fix-infinite-recursion-in-dwarf2_cu-get_builder-again.patch
+Patch2023:  gdb-support-dw-lle-start-end.patch
 
 # Testsuite patches
 
@@ -756,6 +757,7 @@
 %patch2020 -p1
 %patch2021 -p1
 %patch2022 -p1
+%patch2023 -p1
 
 %patch2500 -p1
 %if 0%{?suse_version} > 1500

++ gdb-support-dw-lle-start-end.patch ++
>From 80d1206d7fea6eb756183e2825abdfd0f00cd976 Mon Sep 17 00:00:00 2001
From: Andreas Schwab 
Date: Mon, 21 Jun 2021 11:38:23 +0200
Subject: [PATCH] gdb: Support DW_LLE_start_end

Without that it is impossible to debug on riscv64.

gdb/
PR symtab/27999
* dwarf2/loc.c (decode_debug_loclists_addresses): Support
DW_LLE_start_end.

diff --git a/gdb/dwarf2/loc.c b/gdb/dwarf2/loc.c
index b7e30e3cb4a..d57cdc165ba 100644
--- a/gdb/dwarf2/loc.c
+++ b/gdb/dwarf2/loc.c
@@ -255,9 +255,27 @@ decode_debug_loclists_addresses (dwarf2_per_cu_data 
*per_cu,
   *new_ptr = loc_ptr;
   return DEBUG_LOC_OFFSET_PAIR;
 
+case DW_LLE_start_end:
+  if (loc_ptr + 2 * addr_size > buf_end)
+   return DEBUG_LOC_BUFFER_OVERFLOW;
+
+  if (signed_addr_p)
+   *low = extract_signed_integer (loc_ptr, addr_size, byte_order);
+  else
+   *low = extract_unsigned_integer (loc_ptr, addr_size, byte_order);
+
+  loc_ptr += addr_size;
+  if (signed_addr_p)
+   *high = extract_signed_integer (loc_ptr, addr_size, byte_order);
+  else
+   *high = extract_unsigned_integer (loc_ptr, addr_size, byte_order);
+
+  loc_ptr += addr_size;
+  *new_ptr = loc_ptr;
+  return DEBUG_LOC_START_END;
+
 /* Following cases are not supported yet.  */
 case DW_LLE_startx_endx:
-case DW_LLE_start_end:
 case DW_LLE_default_location:
 default:
   return DEBUG_LOC_INVALID_ENTRY;


commit gdb for openSUSE:Factory

2021-06-21 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2021-06-21 20:34:53

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2625 (New)


Package is "gdb"

Mon Jun 21 20:34:53 2021 rev:152 rq:900562 version:10.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2021-06-04 00:33:10.616873080 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2625/gdb.changes2021-06-21 
20:34:58.146580147 +0200
@@ -1,0 +2,23 @@
+Thu Jun 17 11:19:14 UTC 2021 - Tom de Vries 
+
+- Fix Leap 15.3 s390x gdb:testsuite build, by not requiring 32-bit
+  packages for openSUSE s390x.
+
+---
+Thu Jun 17 10:18:44 UTC 2021 - Tom de Vries 
+
+- Fix Leap 15.3 s390x gdb:testsuite build, by not requiring
+  glibc-devel-static-32bit.
+
+---
+Thu Jun 17 09:36:06 UTC 2021 - Tom de Vries 
+
+- Fix Leap 15.3 i586 gdb:testsuite build, by not requiring fpc.
+
+---
+Wed Jun 16 10:47:16 UTC 2021 - Tom de Vries 
+
+- Backport updated fix from upstream [bsc#1185638, swo#26327]:
+ * gdb-symtab-fix-infinite-recursion-in-dwarf2_cu-get_builder-again.patch
+
+---

New:

  gdb-symtab-fix-infinite-recursion-in-dwarf2_cu-get_builder-again.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.bUykUD/_old  2021-06-21 20:35:00.102581992 +0200
+++ /var/tmp/diff_new_pack.bUykUD/_new  2021-06-21 20:35:00.102581992 +0200
@@ -319,6 +319,7 @@
 Patch2019:  gdb-build-hardcode-with-included-regex.patch
 Patch2020:  gdb-breakpoint-fix-assert-in-jit_event_handler.patch
 Patch2021:  
gdb-save-restore-file-offset-while-reading-notes-in-core-file.patch
+Patch2022:  
gdb-symtab-fix-infinite-recursion-in-dwarf2_cu-get_builder-again.patch
 
 # Testsuite patches
 
@@ -455,10 +456,17 @@
 %ifarch %ada_arch
 BuildRequires:  %{gcc}-ada
 %endif
-%if 0%{!?disable_32bit:1}
+
+%if 0%{?is_opensuse}
 # openSUSE for s390x doesn't build 32bit libs
+%define supported_32bit_arch x86_64 ppc64
+%else
+%define supported_32bit_arch x86_64 ppc64 s390x
+%endif
+
+%if 0%{!?disable_32bit:1}
 %if 0%{suse_version} > 1110
-%ifarch x86_64 ppc64 s390x
+%ifarch %{supported_32bit_arch}
 %if 0%{suse_version} >= 1330
 # Older distros miss this pseudo package, the Ada
 # testsuite won't work completely
@@ -466,6 +474,7 @@
 %endif
 BuildRequires:  %{gcc}-c++-32bit
 %if 0%{suse_version} >= 1210 && 0%{suse_version} != 1315
+# glibc-devel-static-32bit is (currently?) unavailable for Leap 15.3/s390x.
 BuildRequires:  glibc-devel-static-32bit
 %endif
 %endif
@@ -481,13 +490,21 @@
 # versions.
 BuildRequires:  gcc-go
 %endif
-%if 0%{?suse_version} >= 1500 && 0%{?is_opensuse}
-%ifarch %{ix86} x86_64 aarch64 armv7l
+
 %if %{with fpc}
+%if 0%{?suse_version} >= 1500 && 0%{?is_opensuse}
+%ifarch x86_64 aarch64 armv7l
+BuildRequires:  fpc
+%endif
+%ifarch %{ix86}
+# fpc is (currently?) unavailable for Leap 15.3/i586.
+%if 0%{?sle_version} != 150300 && 0%{?is_opensuse}
 BuildRequires:  fpc
 %endif
 %endif
 %endif
+%endif
+
 %if 0%{?suse_version} >= 1200
 %ifnarch s390
 # s390 (for SLE12) doesn't have valgrind
@@ -738,6 +755,7 @@
 %patch2019 -p1
 %patch2020 -p1
 %patch2021 -p1
+%patch2022 -p1
 
 %patch2500 -p1
 %if 0%{?suse_version} > 1500

++ gdb-symtab-fix-infinite-recursion-in-dwarf2_cu-get_builder-again.patch 
++
[gdb/symtab] Fix infinite recursion in dwarf2_cu::get_builder(), again

This is another attempt at fixing the problem described in commit 4cf88725da1
"[gdb/symtab] Fix infinite recursion in dwarf2_cu::get_builder()", which was
reverted in commit 3db19b2d724.

First off, some context.

A DWARF CU can be viewed as a symbol table: toplevel children of a CU DIE
represent symbol table entries for that CU.  Furthermore, there is a
hierarchy: a symbol table entry such as a function itself has a symbol table
containing parameters and local variables.

The dwarf reader maintains a notion of current symbol table (that is: the
symbol table a new symbol needs to be entered into) in dwarf2_cu member
list_in_scope.

A problem then presents itself when reading inter-CU references:
- a new symbol read from a CU B needs to be entered into the symbol table of
  another CU A.
- the notion of current symbol table is tracked on a per-CU basis.
This is addressed in inherit_abstract_dies by temporarily overwriting the
list_in_scope for CU B with the one for CU A.

The current symbol table is one aspect of the current dwarf reader context
that is tracked, but 

commit gdb for openSUSE:Factory

2021-06-03 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2021-06-04 00:33:08

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.1898 (New)


Package is "gdb"

Fri Jun  4 00:33:08 2021 rev:151 rq:894869 version:10.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2021-05-15 23:16:45.520602264 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.1898/gdb.changes2021-06-04 
00:33:10.616873080 +0200
@@ -1,0 +2,6 @@
+Fri May 21 13:31:07 UTC 2021 - Tom de Vries 
+
+- Backport fix for assert [bsc#1186040, swo#27889]:
+  * gdb-breakpoint-fix-assert-in-jit_event_handler.patch
+
+---

New:

  gdb-breakpoint-fix-assert-in-jit_event_handler.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.lzYRzm/_old  2021-06-04 00:33:12.728874719 +0200
+++ /var/tmp/diff_new_pack.lzYRzm/_new  2021-06-04 00:33:12.728874719 +0200
@@ -317,6 +317,7 @@
 Patch2017:  
gdb-testsuite-fix-unset-of-debuginfod_urls-in-default_gdb_init.patch
 Patch2018:  gdb-tui-fix-len_without_escapes-in-tui-disasm.c.patch
 Patch2019:  gdb-build-hardcode-with-included-regex.patch
+Patch2020:  gdb-breakpoint-fix-assert-in-jit_event_handler.patch
 Patch2021:  
gdb-save-restore-file-offset-while-reading-notes-in-core-file.patch
 
 # Testsuite patches
@@ -735,6 +736,7 @@
 %patch2017 -p1
 %patch2018 -p1
 %patch2019 -p1
+%patch2020 -p1
 %patch2021 -p1
 
 %patch2500 -p1

++ gdb-breakpoint-fix-assert-in-jit_event_handler.patch ++
[gdb/breakpoint] Fix assert in jit_event_handler

Consider a minimal test-case test.c:
...
int main (void) { return 0; }
...
which we can compile into llvm byte code using clang:
...
$ clang -g -S -emit-llvm --target=x86_64-unknown-unknown-elf test.c
...
and then run using lli, which uses the llvm jit:
...
$ lli test.ll
...

If we run this under gdb, we run into an assert:
...
$ gdb -q -batch -ex run --args /usr/bin/lli test.ll
Dwarf Error: Cannot not find DIE at 0x18a936e7 \
  [from module libLLVM.so.10-10.0.1-lp152.30.4.x86_64.debug]

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
src/gdb/jit.c:1178: internal-error: \
  void jit_event_handler(gdbarch*, objfile*): \
  Assertion `jiter->jiter_data != nullptr' failed.
...

This is caused by the following.

When running jit_breakpoint_re_set_internal, we first handle
libLLVM.so.10.debug, and set a jit breakpoint.

Next we handle libLLVM.so.10:
...
(gdb) p the_objfile.original_name
$42 = 0x2494170 "libLLVM.so.10"
...
but the minimal symbols we find are from libLLVM.so.10.debug:
...
(gdb) p reg_symbol.objfile.original_name
$43 = 0x38e7c50 "libLLVM.so.10-10.0.1-lp152.30.4.x86_64.debug"
(gdb) p desc_symbol.objfile.original_name
$44 = 0x38e7c50 "libLLVM.so.10-10.0.1-lp152.30.4.x86_64.debug"
...
and consequently, the objf_data is the one from libLLVM.so.10.debug:
...
  jiter_objfile_data *objf_data
= get_jiter_objfile_data (reg_symbol.objfile);
...
and so we hit this:
...
  if (objf_data->cached_code_address == addr)
continue;
...
and no second jit breakpoint is inserted.

Subsequently, the jit breakpoint is triggered and handled, but when finding
the symbol for the breakpoint address we get:
...
(gdb) p jit_bp_sym.objfile.original_name
$52 = 0x2494170 "libLLVM.so.10"
...

The assert 'jiter->jiter_data != nullptr' triggers because it checks
libLLVM.so.10 while the one with jiter_data setup is libLLVM.so.10.debug.

This fixes the assert:
...
   jiter_objfile_data *objf_data
-= get_jiter_objfile_data (reg_symbol.objfile);
-= get_jiter_objfile_data (the_objfile);
...
but consequently we'll have two jit breakpoints, so we also make sure we don't
set a jit breakpoint on separate debug objects like libLLVM.so.10.debug.

Tested on x86_64-linux.

gdb/ChangeLog:

2021-05-21  Tom de Vries  

PR breakpoint/27889
* jit.c (jit_breakpoint_re_set_internal): Skip separate debug
objects.  Call get_jiter_objfile_data with the_objfile.

---
 gdb/jit.c | 6 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/gdb/jit.c b/gdb/jit.c
index 296b436c796..be10f197fd6 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -807,6 +807,10 @@ jit_breakpoint_re_set_internal (struct gdbarch *gdbarch, 
program_space *pspace)
 {
   for (objfile *the_objfile : pspace->objfiles ())
 {
+  /* Skip separate debug objects.  */
+  if (the_objfile->separate_debug_objfile_backlink != nullptr)
+   continue;
+
   if (the_objfile->skip_jit_symbol_lookup)
continue;
 
@@ -833,7 +837,7 @@ 

commit gdb for openSUSE:Factory

2021-05-15 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2021-05-15 23:15:44

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2988 (New)


Package is "gdb"

Sat May 15 23:15:44 2021 rev:150 rq:892545 version:10.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2021-05-10 15:34:16.326772120 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2988/gdb.changes2021-05-15 
23:16:45.520602264 +0200
@@ -1,0 +2,6 @@
+Wed May 12 14:12:41 UTC 2021 - Tom de Vries 
+
+- Remove fix due to regressions [bsc#1185638, swo#26327]:
+  * gdb-symtab-fix-infinite-recursion-in-dwarf2_cu-get_builder.patch
+
+---

Old:

  gdb-symtab-fix-infinite-recursion-in-dwarf2_cu-get_builder.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.yCImCQ/_old  2021-05-15 23:16:47.056596267 +0200
+++ /var/tmp/diff_new_pack.yCImCQ/_new  2021-05-15 23:16:47.060596251 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package gdb-testresults
+# spec file
 #
 # Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2012 RedHat
@@ -317,7 +317,6 @@
 Patch2017:  
gdb-testsuite-fix-unset-of-debuginfod_urls-in-default_gdb_init.patch
 Patch2018:  gdb-tui-fix-len_without_escapes-in-tui-disasm.c.patch
 Patch2019:  gdb-build-hardcode-with-included-regex.patch
-Patch2020:  
gdb-symtab-fix-infinite-recursion-in-dwarf2_cu-get_builder.patch
 Patch2021:  
gdb-save-restore-file-offset-while-reading-notes-in-core-file.patch
 
 # Testsuite patches
@@ -736,7 +735,6 @@
 %patch2017 -p1
 %patch2018 -p1
 %patch2019 -p1
-%patch2020 -p1
 %patch2021 -p1
 
 %patch2500 -p1


commit gdb for openSUSE:Factory

2021-05-10 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2021-05-10 15:34:14

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2988 (New)


Package is "gdb"

Mon May 10 15:34:14 2021 rev:149 rq:891447 version:10.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2021-05-05 20:39:36.471017479 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2988/gdb.changes2021-05-10 
15:34:16.326772120 +0200
@@ -1,0 +2,12 @@
+Fri May  7 10:43:38 UTC 2021 - Tom de Vries 
+- Replace tentative fix with upstreamed fix [swo#27681]:
+  Remove:
+  * gdb-build-workaround-pcre2_posix-linking-problem.patch
+  Add:
+  * gdb-build-hardcode-with-included-regex.patch
+- Backport fix from upstream [bsc#1185638, swo#26327]:
+  * gdb-symtab-fix-infinite-recursion-in-dwarf2_cu-get_builder.patch
+- Backport fix from upstream [rh#1931344]:
+  * gdb-save-restore-file-offset-while-reading-notes-in-core-file.patch
+
+---

Old:

  gdb-build-workaround-pcre2_posix-linking-problem.patch

New:

  gdb-build-hardcode-with-included-regex.patch
  gdb-save-restore-file-offset-while-reading-notes-in-core-file.patch
  gdb-symtab-fix-infinite-recursion-in-dwarf2_cu-get_builder.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.ccZiva/_old  2021-05-10 15:34:18.166765076 +0200
+++ /var/tmp/diff_new_pack.ccZiva/_new  2021-05-10 15:34:18.166765076 +0200
@@ -295,7 +295,6 @@
 Patch1513:  
gdb-testsuite-fix-control-flow-in-gdb-reverse-insn-reverse-exp.patch
 Patch1514:  
gdb-fix-use-of-invalid-pointer-in-remote-async-inferior-event-handler.patch
 Patch1515:  
gdb-try-to-load-libthread_db-only-after-reading-all-shared-libraries-when-attaching.patch
-Patch1516:  gdb-build-workaround-pcre2_posix-linking-problem.patch
 
 # Backports from master
 
@@ -317,6 +316,9 @@
 Patch2016:  gdb-testsuite-ignore-debuginfod_urls.patch
 Patch2017:  
gdb-testsuite-fix-unset-of-debuginfod_urls-in-default_gdb_init.patch
 Patch2018:  gdb-tui-fix-len_without_escapes-in-tui-disasm.c.patch
+Patch2019:  gdb-build-hardcode-with-included-regex.patch
+Patch2020:  
gdb-symtab-fix-infinite-recursion-in-dwarf2_cu-get_builder.patch
+Patch2021:  
gdb-save-restore-file-offset-while-reading-notes-in-core-file.patch
 
 # Testsuite patches
 
@@ -714,7 +716,6 @@
 %patch1513 -p1
 %patch1514 -p1
 %patch1515 -p1
-%patch1516 -p1
 
 %patch2000 -p1
 %patch2002 -p1
@@ -734,6 +735,9 @@
 %patch2016 -p1
 %patch2017 -p1
 %patch2018 -p1
+%patch2019 -p1
+%patch2020 -p1
+%patch2021 -p1
 
 %patch2500 -p1
 %if 0%{?suse_version} > 1500

++ gdb-build-hardcode-with-included-regex.patch ++
Index: gdb-10.1/gdb/config.in
===
--- gdb-10.1.orig/gdb/config.in
+++ gdb-10.1/gdb/config.in
@@ -734,9 +734,6 @@
 /* Define if  has the TD_VERSION error code. */
 #undef THREAD_DB_HAS_TD_VERSION
 
-/* Define to 1 if the regex included in libiberty should be used. */
-#undef USE_INCLUDED_REGEX
-
 /* Enable extensions on AIX 3, Interix.  */
 #ifndef _ALL_SOURCE
 # undef _ALL_SOURCE
Index: gdb-10.1/gdb/configure
===
--- gdb-10.1.orig/gdb/configure
+++ gdb-10.1/gdb/configure
@@ -912,7 +912,6 @@ enable_source_highlight
 with_intel_pt
 with_libipt_prefix
 with_libipt_type
-with_included_regex
 with_sysroot
 with_system_gdbinit
 with_system_gdbinit_dir
@@ -1663,10 +1662,6 @@ Optional Packages:
   --with-libipt-prefix[=DIR]  search for libipt in DIR/include and DIR/lib
   --without-libipt-prefix don't search for libipt in includedir and libdir
   --with-libipt-type=TYPE type of library to search for 
(auto/static/shared)
-  --without-included-regex
-  don't use included regex; this is the default on
-  systems with version 2 of the GNU C library (use
-  with caution on other system)
   --with-sysroot[=DIR]search for usr/lib et al within DIR
   --with-system-gdbinit=PATH
   automatically load a system-wide gdbinit file
@@ -16006,57 +16001,6 @@ if test "$ac_cv_func_setpgrp_void" = yes
 fi
 fi
 
-# Assume we'll default to using the included libiberty regex.
-gdb_use_included_regex=yes
-
-# However, if the system regex is GNU regex, then default to *not*
-# using the included regex.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
-$as_echo_n "checking for GNU regex... " >&6; }
-if ${gdb_cv_have_gnu_regex+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h 

commit gdb for openSUSE:Factory

2021-05-05 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2021-05-05 20:39:35

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2988 (New)


Package is "gdb"

Wed May  5 20:39:35 2021 rev:148 rq:890032 version:10.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2021-04-10 15:27:28.602385471 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2988/gdb.changes2021-05-05 
20:39:36.471017479 +0200
@@ -1,0 +2,6 @@
+Sun May  2 18:24:36 UTC 2021 - Tom de Vries 
+
+- Backport fix for tui assert [swo#27680]:
+ * gdb-tui-fix-len_without_escapes-in-tui-disasm.c.patch
+
+---

New:

  gdb-tui-fix-len_without_escapes-in-tui-disasm.c.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.utntjl/_old  2021-05-05 20:39:38.271009754 +0200
+++ /var/tmp/diff_new_pack.utntjl/_new  2021-05-05 20:39:38.271009754 +0200
@@ -316,6 +316,7 @@
 Patch2015:  
gdb-threads-fix-lin_thread_get_thread_signals-for-glibc-2.28.patch
 Patch2016:  gdb-testsuite-ignore-debuginfod_urls.patch
 Patch2017:  
gdb-testsuite-fix-unset-of-debuginfod_urls-in-default_gdb_init.patch
+Patch2018:  gdb-tui-fix-len_without_escapes-in-tui-disasm.c.patch
 
 # Testsuite patches
 
@@ -732,6 +733,7 @@
 %patch2015 -p1
 %patch2016 -p1
 %patch2017 -p1
+%patch2018 -p1
 
 %patch2500 -p1
 %if 0%{?suse_version} > 1500

++ gdb-tui-fix-len_without_escapes-in-tui-disasm.c.patch ++
[gdb/tui] Fix len_without_escapes in tui-disasm.c

On openSUSE Tumbleweed I run into:
...
FAIL: gdb.tui/basic.exp: asm window shows main
ERROR: invalid command name "_csi_L"
...

Using a minimal example, we get:
...
$ gdb -q outputs/gdb.tui/basic/basic -ex "tui enable" -ex "layout asm"

src/gdb/ui-style.c:243: internal-error: bool \
  ui_file_style::parse(const char*, size_t*): Assertion `match == 0' failed.
...

The problem is in len_without_escapes, where we detect the start of an escape
sequence, but then pass ptr to style.parse while ptr no longer points to the
escape due to the ptr++ in the while condition:
...
  while ((c = *ptr++) != '\0')
 {
  if (c == '\033')
{
  ui_file_style style;
  size_t n_read;
  if (style.parse (ptr, _read))
...

Fix this by removing the ++ in the while condition, and adding ptr++ in the
loop body where appropriate.

Tested on x86_64-linux.

gdb/ChangeLog:

2021-04-06  Tom de Vries  

PR tui/27680
* tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
to style.parse.

---
 gdb/tui/tui-disasm.c | 7 +--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c
index 65b300cb008..163552aede4 100644
--- a/gdb/tui/tui-disasm.c
+++ b/gdb/tui/tui-disasm.c
@@ -61,7 +61,7 @@ len_without_escapes (const std::string )
   const char *ptr = str.c_str ();
   char c;
 
-  while ((c = *ptr++) != '\0')
+  while ((c = *ptr) != '\0')
 {
   if (c == '\033')
{
@@ -77,7 +77,10 @@ len_without_escapes (const std::string )
}
}
   else
-   ++len;
+   {
+ ++len;
+ ++ptr;
+   }
 }
   return len;
 }


commit gdb for openSUSE:Factory

2021-04-10 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2021-04-10 15:26:39

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2401 (New)


Package is "gdb"

Sat Apr 10 15:26:39 2021 rev:147 rq:883627 version:10.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2021-02-22 14:22:19.927547791 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.2401/gdb.changes2021-04-10 
15:27:28.602385471 +0200
@@ -1,0 +2,19 @@
+Wed Apr  7 03:51:41 UTC 2021 - Tom de Vries 
+
+- Backport fixes that ignore DEBUGINFOD_URLS during testing:
+  * gdb-testsuite-ignore-debuginfod_urls.patch
+  * gdb-testsuite-fix-unset-of-debuginfod_urls-in-default_gdb_init.patch
+
+---
+Tue Apr  6 15:15:10 UTC 2021 - Tom de Vries 
+
+- Fix various testsuite fails on Factory using backports: 
+  * gdb-testsuite-fix-gdb.arch-amd64-stap-three-arg-disp.s.patch
+  * gdb-testsuite-fix-xfail-handling-in-gdb.threads-gcore-thread.exp.patch
+  * gdb-threads-fix-lin_thread_get_thread_signals-for-glibc-2.28.patch
+- Fix libthread_db problem on Factory [swo#27526, boo#1184214]:
+  * 
gdb-try-to-load-libthread_db-only-after-reading-all-shared-libraries-when-attaching.patch
+- Workaround libncurses pulling in libpcre2_posix:
+  * gdb-build-workaround-pcre2_posix-linking-problem.patch
+
+---

New:

  gdb-build-workaround-pcre2_posix-linking-problem.patch
  gdb-testsuite-fix-gdb.arch-amd64-stap-three-arg-disp.s.patch
  gdb-testsuite-fix-unset-of-debuginfod_urls-in-default_gdb_init.patch
  gdb-testsuite-fix-xfail-handling-in-gdb.threads-gcore-thread.exp.patch
  gdb-testsuite-ignore-debuginfod_urls.patch
  gdb-threads-fix-lin_thread_get_thread_signals-for-glibc-2.28.patch
  
gdb-try-to-load-libthread_db-only-after-reading-all-shared-libraries-when-attaching.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.tKxL3m/_old  2021-04-10 15:27:30.182387329 +0200
+++ /var/tmp/diff_new_pack.tKxL3m/_new  2021-04-10 15:27:30.182387329 +0200
@@ -294,6 +294,8 @@
 Patch1512:  gdb-tui-enable-work-around-libncurses-segfault.patch
 Patch1513:  
gdb-testsuite-fix-control-flow-in-gdb-reverse-insn-reverse-exp.patch
 Patch1514:  
gdb-fix-use-of-invalid-pointer-in-remote-async-inferior-event-handler.patch
+Patch1515:  
gdb-try-to-load-libthread_db-only-after-reading-all-shared-libraries-when-attaching.patch
+Patch1516:  gdb-build-workaround-pcre2_posix-linking-problem.patch
 
 # Backports from master
 
@@ -309,6 +311,11 @@
 Patch2010:  
gdb-powerpc-remove-512-bytes-region-limit-if-2nd-dawr-is-avaliable.patch
 Patch2011:  gdb-fix-internal-error-in-process_event_stop_test.patch
 Patch2012:  
gdb-breakpoints-handle-glibc-with-debuginfo-in-create_exception_master_breakpoint.patch
+Patch2013:  gdb-testsuite-fix-gdb.arch-amd64-stap-three-arg-disp.s.patch
+Patch2014:  
gdb-testsuite-fix-xfail-handling-in-gdb.threads-gcore-thread.exp.patch
+Patch2015:  
gdb-threads-fix-lin_thread_get_thread_signals-for-glibc-2.28.patch
+Patch2016:  gdb-testsuite-ignore-debuginfod_urls.patch
+Patch2017:  
gdb-testsuite-fix-unset-of-debuginfod_urls-in-default_gdb_init.patch
 
 # Testsuite patches
 
@@ -705,6 +712,8 @@
 %patch1512 -p1
 %patch1513 -p1
 %patch1514 -p1
+%patch1515 -p1
+%patch1516 -p1
 
 %patch2000 -p1
 %patch2002 -p1
@@ -718,6 +727,11 @@
 %patch2010 -p1
 %patch2011 -p1
 %patch2012 -p1
+%patch2013 -p1
+%patch2014 -p1
+%patch2015 -p1
+%patch2016 -p1
+%patch2017 -p1
 
 %patch2500 -p1
 %if 0%{?suse_version} > 1500

++ gdb-build-workaround-pcre2_posix-linking-problem.patch ++
[gdb/build] Workaround pcre2_posix linking problem

On openSUSE Tumbleweed, the ncurses package got the --with-pcre2 configure
switch enabled, and solved the resulting dependencies using:
...
 $ cat /usr/lib64/libncursesw.so
 /* GNU ld script */
-INPUT(/lib64/libncursesw.so.6 AS_NEEDED(-ltinfo -ldl))
+INPUT(/lib64/libncursesw.so.6 AS_NEEDED(-ltinfo -ldl -lpcre2-posix -lpcre2-8))
...

GDB uses the regexp functions regcomp, regerror, regfree, regexec and 
re_search, see
gdb_regex.c.  The latter is a GNU extension.

Due to the changes mentioned above, the first four functions got bound to
lpcre2-posix, while re_search still got bound to lc, resulting in all sorts of
trouble, like hangs or:
...
$ gdb -q -batch -ex "apropos apropos"
Aborted (core dumped)
...

There is a debate whether it's legal to use re_search in combination with 
regcomp.

Either way, the immediate problem can be fixed/worked-around by adding -lc
before @LIBS@ in the CLIBS def 

commit gdb for openSUSE:Factory

2021-02-22 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2021-02-22 14:22:17

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2378 (New)


Package is "gdb"

Mon Feb 22 14:22:17 2021 rev:146 rq:872715 version:10.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2020-12-09 22:11:46.559088610 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.2378/gdb.changes2021-02-22 
14:22:19.927547791 +0100
@@ -1,0 +2,15 @@
+Thu Feb 11 16:13:14 UTC 2021 - Tom de Vries 
+
+- Replace tentative fix with upstreamed fix [swo#26881]:
+  Remove:
+  * gdb-fix-assert-in-process-event-stop-test.patch
+  Add:
+  * gdb-fix-internal-error-in-process_event_stop_test.patch
+  * 
gdb-breakpoints-handle-glibc-with-debuginfo-in-create_exception_master_breakpoint.patch
+
+---
+Thu Feb 11 15:07:12 UTC 2021 - Tom de Vries 
+
+- Fix license [bsc#1180786].
+
+---

Old:

  gdb-fix-assert-in-process-event-stop-test.patch

New:

  
gdb-breakpoints-handle-glibc-with-debuginfo-in-create_exception_master_breakpoint.patch
  gdb-fix-internal-error-in-process_event_stop_test.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.88DSFH/_old  2021-02-22 14:22:22.127549939 +0100
+++ /var/tmp/diff_new_pack.88DSFH/_new  2021-02-22 14:22:22.131549942 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package gdb
+# spec file for package gdb-testresults
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2012 RedHat
 #
 # All modifications and additions to the file contributed by third parties
@@ -54,7 +54,7 @@
 
 %if %{build_main}
 Summary:A GNU source-level debugger for C, C++, Fortran and other 
languages
-License:SUSE-Public-Domain
+License:GPL-3.0-only WITH GCC-exception-3.1 AND GPL-3.0-or-later AND 
LGPL-2.1-or-later AND LGPL-3.0-or-later
 Group:  Development/Languages/C and C++
 %endif
 %if %{build_testsuite}
@@ -283,7 +283,6 @@
 Patch1500:  gdb-fix-selftest-fails-with-gdb-build-with-O2-flto.patch
 Patch1501:  gdb-fortran-fix-print-dynamic-array.patch
 Patch1502:  
gdb-don-t-return-non-existing-path-in-debuginfod-source-query.patch
-Patch1503:  gdb-fix-assert-in-process-event-stop-test.patch
 Patch1504:  gdb-fix-filename-in-not-in-executable-format-error.patch
 Patch1505:  gdb-handle-no-upper-bound-in-value-subscript.patch
 Patch1506:  gdb-fortran-handle-dw-at-string-length-with-loclistptr.patch
@@ -308,6 +307,8 @@
 Patch2008:  gdb-symtab-fix-language-of-frame-without-debug-info.patch
 Patch2009:  
gdb-testsuite-fix-failure-in-gdb-base-step-over-no-symbols-exp.patch
 Patch2010:  
gdb-powerpc-remove-512-bytes-region-limit-if-2nd-dawr-is-avaliable.patch
+Patch2011:  gdb-fix-internal-error-in-process_event_stop_test.patch
+Patch2012:  
gdb-breakpoints-handle-glibc-with-debuginfo-in-create_exception_master_breakpoint.patch
 
 # Testsuite patches
 
@@ -527,7 +528,7 @@
 
 %package -n gdbserver
 Summary:A standalone server for GDB (the GNU source-level debugger)
-License:GPL-3.0-or-later AND GPL-3.0-with-GCC-exception AND 
LGPL-2.1-or-later AND LGPL-3.0-or-later
+License:GPL-3.0-only WITH GCC-exception-3.1 AND GPL-3.0-or-later AND 
LGPL-2.1-or-later AND LGPL-3.0-or-later
 Group:  Development/Tools/Debuggers
 
 %description -n gdbserver
@@ -693,7 +694,6 @@
 %patch1500 -p1
 %patch1501 -p1
 %patch1502 -p1
-%patch1503 -p1
 %patch1504 -p1
 %patch1505 -p1
 %patch1506 -p1
@@ -716,6 +716,8 @@
 %patch2008 -p1
 %patch2009 -p1
 %patch2010 -p1
+%patch2011 -p1
+%patch2012 -p1
 
 %patch2500 -p1
 %if 0%{?suse_version} > 1500 

++ 
gdb-breakpoints-handle-glibc-with-debuginfo-in-create_exception_master_breakpoint.patch
 ++
[gdb/breakpoints] Handle glibc with debuginfo in 
create_exception_master_breakpoint

The test-case nextoverthrow.exp is failing on targets with unstripped libc.

This is a regression since commit 1940319c0ef "[gdb] Fix internal-error in
process_event_stop_test".

The problem is that this code in create_exception_master_breakpoint:
...
  for (objfile *sepdebug = obj->separate_debug_objfile;
   sepdebug != nullptr; sepdebug = sepdebug->separate_debug_objfile)
if (create_exception_master_breakpoint_hook (sepdebug))
...
iterates over all the separate debug object files, but fails to handle the
case that obj itself has the debug info we're looking for.

Fix this by using the separate_debug_objfiles () range instead, which does
iterate both over obj and the 

commit gdb for openSUSE:Factory

2020-12-09 Thread User for buildservice source handling
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2020-12-09 22:11:43

Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and  /work/SRC/openSUSE:Factory/.gdb.new.2328 (New)


Package is "gdb"

Wed Dec  9 22:11:43 2020 rev:145 rq:854272 version:10.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2020-12-03 18:40:26.157950963 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.2328/gdb.changes2020-12-09 
22:11:46.559088610 +0100
@@ -1,0 +2,13 @@
+Wed Dec  9 07:56:36 UTC 2020 - Tom de Vries 
+
+- Backport from master [jsc#13656]:
+  * gdb-powerpc-remove-512-bytes-region-limit-if-2nd-dawr-is-avaliable.patch
+- Require 8GB diskspace for x86_64.
+
+---
+Mon Nov 30 15:43:58 UTC 2020 - Tom de Vries 
+
+- Patches to be upstreamed:
+  * gdb-fix-use-of-invalid-pointer-in-remote-async-inferior-event-handler.patch
+
+---

New:

  gdb-fix-use-of-invalid-pointer-in-remote-async-inferior-event-handler.patch
  gdb-powerpc-remove-512-bytes-region-limit-if-2nd-dawr-is-avaliable.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.W0gkAd/_old  2020-12-09 22:11:48.699090779 +0100
+++ /var/tmp/diff_new_pack.W0gkAd/_new  2020-12-09 22:11:48.699090779 +0100
@@ -294,6 +294,7 @@
 Patch1511:  gdb-testsuite-gdb-tui-new-layout-exp-partly-require-tcl86.patch
 Patch1512:  gdb-tui-enable-work-around-libncurses-segfault.patch
 Patch1513:  
gdb-testsuite-fix-control-flow-in-gdb-reverse-insn-reverse-exp.patch
+Patch1514:  
gdb-fix-use-of-invalid-pointer-in-remote-async-inferior-event-handler.patch
 
 # Backports from master
 
@@ -306,6 +307,7 @@
 Patch2007:  gdb-fix-section-matching-in-find_pc_sect_compunit.patch
 Patch2008:  gdb-symtab-fix-language-of-frame-without-debug-info.patch
 Patch2009:  
gdb-testsuite-fix-failure-in-gdb-base-step-over-no-symbols-exp.patch
+Patch2010:  
gdb-powerpc-remove-512-bytes-region-limit-if-2nd-dawr-is-avaliable.patch
 
 # Testsuite patches
 
@@ -702,6 +704,7 @@
 %patch1511 -p1
 %patch1512 -p1
 %patch1513 -p1
+%patch1514 -p1
 
 %patch2000 -p1
 %patch2002 -p1
@@ -712,6 +715,7 @@
 %patch2007 -p1
 %patch2008 -p1
 %patch2009 -p1
+%patch2010 -p1
 
 %patch2500 -p1
 %if 0%{?suse_version} > 1500 

++ _constraints ++
--- /var/tmp/diff_new_pack.W0gkAd/_old  2020-12-09 22:11:48.731090811 +0100
+++ /var/tmp/diff_new_pack.W0gkAd/_new  2020-12-09 22:11:48.735090816 +0100
@@ -10,5 +10,15 @@
   
 
   
+  
+
+  x86_64
+
+
+  
+8
+  
+
+  
 
 

++ 
gdb-fix-use-of-invalid-pointer-in-remote-async-inferior-event-handler.patch 
++
[gdb] Fix use of invalid pointer in remote_async_inferior_event_handler

As proposed by palves here (
https://sourceware.org/bugzilla/show_bug.cgi?id=26614#c20 ).

---
 gdb/remote.c | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/remote.c b/gdb/remote.c
index ba9e6d6e9b..556de6033f 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -14163,9 +14163,13 @@ remote_async_serial_handler (struct serial *scb, void 
*context)
 static void
 remote_async_inferior_event_handler (gdb_client_data data)
 {
+  remote_target *remote = (remote_target *) data;
+  /* Hold a strong reference to the remote target while handling an
+ event, since that could result in closing the connection.  */
+  auto remote_ref = target_ops_ref::new_reference (remote);
+
   inferior_event_handler (INF_REG_EVENT);
 
-  remote_target *remote = (remote_target *) data;
   remote_state *rs = remote->get_remote_state ();
 
   /* inferior_event_handler may have consumed an event pending on the
++ gdb-powerpc-remove-512-bytes-region-limit-if-2nd-dawr-is-avaliable.patch 
++
PowerPC remove 512 bytes region limit if 2nd DAWR is avaliable.

Power 10 introduces the 2nd DAWR (second watchpoint) and also removed
a restriction that limit the watch region to 512 bytes.

2020-11-08  Rogerio A. Cardoso  

/gdb

* ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
(region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
set region.

---
 gdb/ppc-linux-nat.c | 26 ++
 2 files changed, 23 insertions(+), 8 deletions(-)

Index: gdb-10.1/gdb/ppc-linux-nat.c
===
--- gdb-10.1.orig/gdb/ppc-linux-nat.c
+++ gdb-10.1/gdb/ppc-linux-nat.c
@@ -138,6 +138,11 @@ struct ppc_hw_breakpoint
 #define PPC_DEBUG_FEATURE_DATA_BP_DAWR 0x10
 #endif /* PPC_DEBUG_FEATURE_DATA_BP_DAWR */
 
+/* Feature defined on Linux kernel v5.1: Second watchpoint support.  */