commit gdb for openSUSE:Factory

2020-09-23 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2020-09-23 18:37:34

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


Package is "gdb"

Wed Sep 23 18:37:34 2020 rev:143 rq:834301 version:9.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2020-09-10 22:48:42.583860551 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.4249/gdb.changes2020-09-23 
18:38:09.805199773 +0200
@@ -11,0 +12,10 @@
+Fri Aug  7 08:10:52 UTC 2020 - Tom de Vries 
+
+- Don't BuildRequire systemtap-sdt-devel for SLE-11.
+
+---
+Fri Aug  7 07:39:23 UTC 2020 - Tom de Vries 
+
+- Add testsuite BuildRequire systemtap-sdt-devel.
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.wQa46a/_old  2020-09-23 18:38:14.857204173 +0200
+++ /var/tmp/diff_new_pack.wQa46a/_new  2020-09-23 18:38:14.857204173 +0200
@@ -440,6 +440,10 @@
 BuildRequires:  binutils-gold
 %endif
 
+%if 0%{?suse_version} >= 1200
+BuildRequires:  systemtap-sdt-devel
+%endif
+
 %endif # %%{build_testsuite}
 
 %ifarch ia64




commit gdb for openSUSE:Factory

2020-09-10 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2020-09-10 22:48:16

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


Package is "gdb"

Thu Sep 10 22:48:16 2020 rev:142 rq:833004 version:9.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2020-08-14 09:31:54.620354790 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.4249/gdb.changes2020-09-10 
22:48:42.583860551 +0200
@@ -1,0 +2,5 @@
+Mon Sep  7 09:04:30 UTC 2020 - Andreas Schwab 
+
+- Enable CTF support also for riscv64
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.7uUpEm/_old  2020-09-10 22:48:46.615864266 +0200
+++ /var/tmp/diff_new_pack.7uUpEm/_new  2020-09-10 22:48:46.615864266 +0200
@@ -344,7 +344,7 @@
 BuildRequires:  babeltrace-devel
 %endif
 %endif
-%ifarch aarch64
+%ifarch aarch64 riscv64
 BuildRequires:  babeltrace-devel
 %endif
 




commit gdb for openSUSE:Factory

2020-08-14 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2020-08-14 09:31:00

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


Package is "gdb"

Fri Aug 14 09:31:00 2020 rev:141 rq:825816 version:9.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2020-05-09 19:49:02.544411292 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.3399/gdb.changes2020-08-14 
09:31:54.620354790 +0200
@@ -1,0 +2,144 @@
+Tue Aug 11 09:56:29 UTC 2020 - Tom de Vries 
+
+- Restore License/Group.
+
+---
+Tue Aug  4 10:57:48 UTC 2020 - Tom de Vries 
+
+- Add BuildRequire babeltrace-devel.  On Factory this adds bdeps
+  babeltrace-devel, libuuid-devel, babeltrace, libglib-2_0-0, and
+  libgmodule-2_0-0.
+
+---
+Wed Jul 29 15:44:22 UTC 2020 - Tom de Vries 
+
+- Fix internal error on aarch64 [swo#26316].
+  gdb-aarch64-fix-erroneous-use-of-spu-architecture-bfd.patch
+
+---
+Tue Jul 28 11:29:35 UTC 2020 - Tom de Vries 
+
+- Change into multibuild package and add flavour gdb-testsuite.
+
+---
+Fri Jul 24 12:39:06 UTC 2020 - Tom de Vries 
+
+- Fix s390 -> s390x typo.
+
+---
+Fri Jul 24 12:34:41 UTC 2020 - Tom de Vries 
+
+- Don't BuildRequire binutils-gold for SLE-12/s390.
+
+---
+Fri Jul 24 10:23:12 UTC 2020 - Tom de Vries 
+
+- BuildRequire binutils-gold for testsuite
+
+---
+Thu Jul 23 15:34:40 UTC 2020 - Tom de Vries 
+
+- Rebase to 9.2 release.
+
+---
+Tue Jul 14 14:33:12 UTC 2020 - Tom de Vries 
+
+- Fix SLE-11 build.  Gdb 9.1 requires make 3.82, but SLE-11 has
+  make 3.81:
+  * gdbserver-fix-build-with-make-3.81.patch
+  
+---
+Tue Jul 14 08:31:27 UTC 2020 - Tom de Vries 
+
+- Fix patch context:
+  * gdb-fix-the-thread-pool.c-compilation.patch
+
+---
+Mon Jul 13 22:13:07 UTC 2020 - Tom de Vries 
+
+- Fix build error due to missing DIAGNOSTIC_IGNORE_UNUSED_FUNCTION.
+  * gdb-fix-the-thread-pool.c-compilation.patch
+
+---
+Mon Jul 13 15:36:16 UTC 2020 - Tom de Vries 
+
+- Drop ChangeLog part of patch:
+  * gdb-fix-unused-function-error.patch
+
+---
+Mon Jul 13 15:24:53 UTC 2020 - Tom de Vries 
+
+- Fix Werror=unused-function with gcc 4.8 (for Leap 42.3).
+  * gdb-fix-unused-function-error.patch
+
+---
+Mon Jul 13 13:56:50 UTC 2020 - Tom de Vries 
+
+- Require %{suse_version} >= 1500 for --with-system-readline.
+
+---
+Mon Jul 13 12:21:04 UTC 2020 - Tom de Vries 
+
+- Rebase to 9.1 release (as in fedora 32 @ 1735910).
+  * Breakpoints on nested functions and subroutines in Fortran.
+  * Multithreaded symbol loading, disabled by default.  Enable
+using 'maint set worker-threads unlimited'.
+  * Multi-target debugging support.
+  * New command pipe.
+  * New command set logging debugredirect [on|off].
+  * New fortran commands info modules, info module functions,
+info module variables.
+- Fedora-specific patches dropped:
+  * gdb-libexec-add-index.patch
+  * gdb-6.3-rh-testversion-20041202.patch
+  * 
gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch
+- Obsoleted fedora patches dropped:
+  * gdb-6.5-bz216711-clone-is-outermost.patch
+  * gdb-6.6-scheduler_locking-step-is-default.patch
+  * gdb-6.8-bz436037-reg-no-longer-active.patch
+  * gdb-bz541866-rwatch-before-run.patch
+  * gdb-bz568248-oom-is-error.patch
+  * gdb-follow-child-stale-parent.patch
+  * gdb-readline62-ask-more-rh.patch
+  * gdb-rhbz1371380-gcore-elf-headers.patch
+  * gdb-rhbz1553086-binutils-warning-loadable-section-outside-elf.patch
+  * gdb-rhbz1704406-disable-style-log-output-1of3.patch
+  * gdb-rhbz1704406-disable-style-log-output-2of3.patch
+  * gdb-rhbz1704406-disable-style-log-output-3of3.patch
+  * gdb-rhbz1708192-parse_macro_definition-crash.patch
+  * gdb-rhbz1723564-gdb-crash-PYTHONMALLOC-debug.patch
+  * gdb-rhbz795424-bitpos-20of25.patch
+  * gdb-rhbz795424-bitpos-21of25.patch
+  * gdb-rhbz795424-bitpos-22of25.patch
+  * gdb-rhbz795424-bitpos-23of25.patch
+  * 

commit gdb for openSUSE:Factory

2020-05-09 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2020-05-09 19:48:53

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


Package is "gdb"

Sat May  9 19:48:53 2020 rev:140 rq:801343 version:8.3.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2020-04-23 18:29:33.215986260 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2738/gdb.changes2020-05-09 
19:49:02.544411292 +0200
@@ -1,0 +2,7 @@
+Wed May  6 03:46:31 UTC 2020 - Tom de Vries 
+
+- Fix .debug_types problems [swo#24480, swo#25889, bsc#1168394].
+  - gdb-fix-range-loop-index-in-find_method.patch
+  - gdb-fix-toplevel-types-with-fdebug-types-section.patch
+
+---

New:

  gdb-fix-range-loop-index-in-find_method.patch
  gdb-fix-toplevel-types-with-fdebug-types-section.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.PTXmMw/_old  2020-05-09 19:49:05.876418445 +0200
+++ /var/tmp/diff_new_pack.PTXmMw/_new  2020-05-09 19:49:05.880418454 +0200
@@ -253,6 +253,8 @@
 Patch2015:  gdb-arch13-3.diff
 Patch2016:  bfd-change-num_group-to-unsigned-int.patch
 Patch2017:  
gdb-fix-incorrect-use-of-is-operator-for-comparison-in-python-lib-gdb-command-prompt.py.patch
+Patch2018:  gdb-fix-toplevel-types-with-fdebug-types-section.patch
+Patch2019:  gdb-fix-range-loop-index-in-find_method.patch
 
 # Proposed patch for PR symtab/24971
 Patch2500:  gdb-symtab-prefer-var-def-over-decl.patch
@@ -614,6 +616,8 @@
 %patch2015 -p1
 %patch2016 -p1
 %patch2017 -p1
+%patch2018 -p1
+%patch2019 -p1
 
 %patch2500 -p1
 %patch2501 -p1

++ gdb-fix-range-loop-index-in-find_method.patch ++
[gdb] Fix range loop index in find_method

With target board debug-types, we have:
...
FAIL: gdb.cp/cpexprs.exp: list policy1::function
...

This is a regression triggered by commit 770479f223e "gdb: Fix toplevel types
with -fdebug-types-section".

However, the FAIL is caused by commit 4dedf84da98 "Change
decode_compound_collector to use std::vector" which changes a VEC_iterate loop
into a range loop:
...
-  for (ix = 0; VEC_iterate (symbolp, sym_classes, ix, sym); ++ix)
+  unsigned int ix = 0;
+  for (const auto  : *sym_classes)
...
but fails to ensure that the increment of ix happens every iteration.

Fix this by calculating the index variable at the start of the loop body:
...
  for (const auto  : *sym_classes)
{
  unsigned int ix =  - &*sym_classes->begin ();
...

Tested on x86_64-linux, with native and target board debug-types.

gdb/ChangeLog:

2020-04-29  Tom de Vries  

PR symtab/25889
* linespec.c (find_method): Fix ix calculation.

gdb/testsuite/ChangeLog:

2020-04-29  Tom de Vries  

PR symtab/25889
* gdb.cp/cpexprs.exp: Adapt for inclusion.
* gdb.cp/cpexprs-debug-types.exp: New file.  Set -fdebug-types-section
and include cpexprs.exp.

---
 gdb/linespec.c   |  3 +--
 gdb/testsuite/gdb.cp/cpexprs-debug-types.exp | 20 
 gdb/testsuite/gdb.cp/cpexprs.exp | 14 --
 5 files changed, 45 insertions(+), 4 deletions(-)

diff --git a/gdb/linespec.c b/gdb/linespec.c
index e902b11c8e8..2231a5674c8 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -3680,12 +3680,12 @@ find_method (struct linespec_state *self, 
std::vector *file_symtabs,
  because we collect data across the program space before deciding
  what to do.  */
   last_result_len = 0;
-  unsigned int ix = 0;
   for (const auto  : *sym_classes)
 {
   struct type *t;
   struct program_space *pspace;
   struct symbol *sym = elt.symbol;
+  unsigned int ix =  - &*sym_classes->begin ();
 
   /* Program spaces that are executing startup should have
 been filtered out earlier.  */
@@ -3716,7 +3716,6 @@ find_method (struct linespec_state *self, 
std::vector *file_symtabs,
 
  superclass_vec.clear ();
  last_result_len = result_names.size ();
- ++ix;
}
 }
 
diff --git a/gdb/testsuite/gdb.cp/cpexprs-debug-types.exp 
b/gdb/testsuite/gdb.cp/cpexprs-debug-types.exp
new file mode 100644
index 000..9499aecf4c6
--- /dev/null
+++ b/gdb/testsuite/gdb.cp/cpexprs-debug-types.exp
@@ -0,0 +1,20 @@
+# Copyright 2020 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT 

commit gdb for openSUSE:Factory

2020-04-23 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2020-04-23 18:29:32

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


Package is "gdb"

Thu Apr 23 18:29:32 2020 rev:139 rq:796085 version:8.3.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2020-04-19 21:35:10.218355615 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2738/gdb.changes2020-04-23 
18:29:33.215986260 +0200
@@ -1,0 +2,6 @@
+Mon Apr 20 14:29:12 UTC 2020 - Tom de Vries 
+
+- Fix python 3.8 warning [bsc#1169495].
+  * 
gdb-fix-incorrect-use-of-is-operator-for-comparison-in-python-lib-gdb-command-prompt.py.patch
+
+---

New:

  
gdb-fix-incorrect-use-of-is-operator-for-comparison-in-python-lib-gdb-command-prompt.py.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.m3g3ww/_old  2020-04-23 18:29:37.179993844 +0200
+++ /var/tmp/diff_new_pack.m3g3ww/_new  2020-04-23 18:29:37.183993852 +0200
@@ -252,6 +252,7 @@
 Patch2014:  gdb-arch13-2.diff
 Patch2015:  gdb-arch13-3.diff
 Patch2016:  bfd-change-num_group-to-unsigned-int.patch
+Patch2017:  
gdb-fix-incorrect-use-of-is-operator-for-comparison-in-python-lib-gdb-command-prompt.py.patch
 
 # Proposed patch for PR symtab/24971
 Patch2500:  gdb-symtab-prefer-var-def-over-decl.patch
@@ -612,6 +613,7 @@
 %patch2014 -p1
 %patch2015 -p1
 %patch2016 -p1
+%patch2017 -p1
 
 %patch2500 -p1
 %patch2501 -p1

++ 
gdb-fix-incorrect-use-of-is-operator-for-comparison-in-python-lib-gdb-command-prompt.py.patch
 ++
Fix incorrect use of 'is' operator for comparison in 
python/lib/gdb/command/prompt.py

The 'is' operator is not meant to be used for comparisons. It currently working
is an implementation detail of CPython.  CPython 3.8 has added a SyntaxWarning
for this.

---
 gdb/python/lib/gdb/command/prompt.py | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gdb/python/lib/gdb/command/prompt.py 
b/gdb/python/lib/gdb/command/prompt.py
index 3d662a7d3f..04b9e49c22 100644
--- a/gdb/python/lib/gdb/command/prompt.py
+++ b/gdb/python/lib/gdb/command/prompt.py
@@ -45,7 +45,7 @@ The currently defined substitutions are:
 self.hook_set = False
 
 def get_show_string (self, pvalue):
-if self.value is not '':
+if self.value:
return "The extended prompt is: " + self.value
 else:
return "The extended prompt is not set."
@@ -57,7 +57,7 @@ The currently defined substitutions are:
 return ""
 
 def before_prompt_hook(self, current):
-if self.value is not '':
+if self.value:
 return gdb.prompt.substitute_prompt(self.value)
 else:
 return None



commit gdb for openSUSE:Factory

2020-04-19 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2020-04-19 21:35:01

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


Package is "gdb"

Sun Apr 19 21:35:01 2020 rev:138 rq:793869 version:8.3.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2020-02-22 18:56:28.409178538 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.2738/gdb.changes2020-04-19 
21:35:10.218355615 +0200
@@ -1,0 +2,6 @@
+Tue Apr 14 07:40:12 UTC 2020 - Tom de Vries 
+
+- Fix build with gcc 10 [bsc#1169368, swo#25717].
+  * bfd-change-num_group-to-unsigned-int.patch
+
+---

New:

  bfd-change-num_group-to-unsigned-int.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.d3WdXi/_old  2020-04-19 21:35:13.286361943 +0200
+++ /var/tmp/diff_new_pack.d3WdXi/_new  2020-04-19 21:35:13.290361951 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package gdb
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2012 RedHat
 #
 # All modifications and additions to the file contributed by third parties
@@ -39,7 +39,7 @@
 # Do not provide URL for snapshots as the file lasts there only for 2 days.
 # ftp://sourceware.org/pub/gdb/releases/gdb-%%{version}.tar.gz
 Source: gdb-%{version}.tar.bz2
-Url:http://gnu.org/software/gdb/
+URL:http://gnu.org/software/gdb/
 
 %if "%{scl}" == "devtoolset-1.1"
 Obsoletes:  devtoolset-1.0-%{pkg_name}
@@ -251,6 +251,7 @@
 Patch2013:  gdb-arch13-1.diff
 Patch2014:  gdb-arch13-2.diff
 Patch2015:  gdb-arch13-3.diff
+Patch2016:  bfd-change-num_group-to-unsigned-int.patch
 
 # Proposed patch for PR symtab/24971
 Patch2500:  gdb-symtab-prefer-var-def-over-decl.patch
@@ -610,6 +611,7 @@
 %patch2013 -p1
 %patch2014 -p1
 %patch2015 -p1
+%patch2016 -p1
 
 %patch2500 -p1
 %patch2501 -p1

++ bfd-change-num_group-to-unsigned-int.patch ++
bfd: Change num_group to unsigned int

elf.c failed with to with GCC 10 as of

commit 906b3eb9df6c577d3f6e9c3ea5c9d7e4d1e90536
Author: Martin Liska 
Date:   Tue Mar 24 11:40:10 2020 +0100

Improve endianess detection.

PR lto/94249
* plugin-api.h: Add more robust endianess detection.

binutils-gdb/bfd/elf.c: In function ‘setup_group’:
binutils-gdb/bfd/elf.c:740:35: error: overflow in conversion from ‘unsigned 
int’ to ‘int’ changes value from ‘num_group = 4294967295’ to ‘-1’ 
[-Werror=overflow]
  740 | elf_tdata (abfd)->num_group = num_group = -1;
  |   ^
cc1: all warnings being treated as errors
make[2]: *** [Makefile:1608: elf.lo] Error 1

Change num_group in elf_obj_tdata to unsigned int to compile with GCC 10.

PR binutils/25717
* elf-bfd.h (elf_obj_tdata): Change num_group to unsigned int.

---
 bfd/elf-bfd.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index c546b583b8..5f3a5cc04b 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1953,7 +1953,7 @@ struct elf_obj_tdata
   struct sdt_note *sdt_note_head;
 
   Elf_Internal_Shdr **group_sect_ptr;
-  int num_group;
+  unsigned int num_group;
 
   /* Index into group_sect_ptr, updated by setup_group when finding a
  section's group.  Used to optimize subsequent group searches.  */



commit gdb for openSUSE:Factory

2020-02-22 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2020-02-22 18:56:23

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


Package is "gdb"

Sat Feb 22 18:56:23 2020 rev:137 rq:777392 version:8.3.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2020-01-23 16:10:27.835619836 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.26092/gdb.changes   2020-02-22 
18:56:28.409178538 +0100
@@ -1,0 +2,6 @@
+Tue Feb  4 19:56:55 UTC 2020 - Tom de Vries 
+
+- Fix hang after SIGKILL [swo#25478].
+  * gdb-threads-fix-hang-in-stop_all_threads-after-killing-inferior.patch
+
+---

New:

  gdb-threads-fix-hang-in-stop_all_threads-after-killing-inferior.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.aB3WeV/_old  2020-02-22 18:56:30.573182729 +0100
+++ /var/tmp/diff_new_pack.aB3WeV/_new  2020-02-22 18:56:30.577182737 +0100
@@ -13,7 +13,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -258,6 +258,9 @@
 # Proposed patch for PR gdb/24956
 Patch2501:  
gdb-only-force-interp_console-ui_out-for-breakpoint-commands-in-mi-mode.patch
 
+# Proposed patch for PR threads/25478
+Patch2502:  
gdb-threads-fix-hang-in-stop_all_threads-after-killing-inferior.patch
+
 # Testsuite patches
 Patch2600:  gdb-testsuite-8.3-kfail-xfail-unsupported.patch
 
@@ -610,6 +613,7 @@
 
 %patch2500 -p1
 %patch2501 -p1
+%patch2502 -p1
 
 %patch2600 -p1
 

++ gdb-threads-fix-hang-in-stop_all_threads-after-killing-inferior.patch 
++
[gdb/threads] Fix hang in stop_all_threads after killing inferior

Consider a two-threaded testcase a.out, sleeping in both its threads:
...
$ gdb -ex r --args a.out
Reading symbols from a.out...
Starting program: /data/gdb_versions/devel/a.out
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x777fe700 (LWP 31268)]
...

Typing ^C causes stop_all_threads to be executed, and if an external SIGKILL
(such as caused by killall -9 a.out) arrives at the start of stop_all_threads,
gdb hangs in stop_all_threads after giving this warning:
...
warning: unable to open /proc file '/proc/24938/status'
...

Using "set debug infrun 1" we can see in more detail where we hang:
...
infrun: stop_all_threads
infrun: stop_all_threads, pass=0, iterations=0
infrun:   Thread 0x77fa6740 (LWP 10264) not executing
infrun:   Thread 0x777fe700 (LWP 10268) executing, need stop
infrun: target_wait (-1.0.0, status) =
infrun:   10264.10268.0 [Thread 0x777fe700 (LWP 10268)],
infrun:   status->kind = signalled, signal = GDB_SIGNAL_KILL
infrun: stop_all_threads status->kind = signalled, signal = GDB_SIGNAL_KILL \
  Thread 0x777fe700 (LWP 10268)
infrun:   Thread 0x77fa6740 (LWP 10264) not executing
infrun:   Thread 0x777fe700 (LWP 10268) executing, already stopping
warning: unable to open /proc file '/proc/10264/status'
infrun: target_wait (-1.0.0, status) =
infrun:   -1.0.0 [process -1],
infrun:   status->kind = no-resumed
infrun: infrun_async(0)
infrun: stop_all_threads status->kind = no-resumed process -1
infrun:   Thread 0x77fa6740 (LWP 10264) not executing
infrun:   Thread 0x777fe700 (LWP 10268) executing, already stopping
infrun: stop_all_threads status->kind = no-resumed process -1
infrun:   Thread 0x77fa6740 (LWP 10264) not executing
infrun:   Thread 0x777fe700 (LWP 10268) executing, already stopping
infrun: stop_all_threads status->kind = no-resumed process -1
infrun:   Thread 0x77fa6740 (LWP 10264) not executing
infrun:   Thread 0x777fe700 (LWP 10268) executing, already stopping

..

So, we're hanging in the 'while (1)' loop in stop_all_threads as follows:
- thread t is tested, and both t->executing and t->stop_requested are found
  to be 1 (noted with 'executing, already stopping')
- consequently need_wait is set 1
- consequently wait_one is executed
- wait_one returns a TARGET_WAITKIND_NO_RESUMED event, which is handled by
  continuing at the start of the loop

The loop actually starts with update_thread_list (), but that doesn't seem
to change the state of the threads.

Fix the hang by:
- detecting the first sign of trouble: the TARGET_WAITKIND_SIGNALLED event
  with signal GDB_SIGNAL_KILL,
- making that event pending again,
- making sure the corresponding thread will not set need_wait again
  (by setting t->executing == 0)
- making sure that the 

commit gdb for openSUSE:Factory

2020-01-23 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2020-01-23 16:09:56

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


Package is "gdb"

Thu Jan 23 16:09:56 2020 rev:136 rq:765839 version:8.3.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-12-24 14:29:26.170560447 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.26092/gdb.changes   2020-01-23 
16:10:27.835619836 +0100
@@ -1,0 +2,8 @@
+Fri Jan 17 15:43:46 UTC 2020 - m...@suse.com
+
+- Add support for official name of s390 arch13: z15.
+  Add descriptions for arch13 instructions.  Adds
+  gdb-arch13-1.diff, gdb-arch13-2.diff and gdb-arch13-3.diff.
+  [jsc#SLE-7903]
+
+---

New:

  gdb-arch13-1.diff
  gdb-arch13-2.diff
  gdb-arch13-3.diff



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.JlzSol/_old  2020-01-23 16:10:36.563625007 +0100
+++ /var/tmp/diff_new_pack.JlzSol/_new  2020-01-23 16:10:36.563625007 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package gdb
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2012 RedHat
 #
 # All modifications and additions to the file contributed by third parties
@@ -13,7 +13,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
@@ -248,6 +248,9 @@
 Patch2010:  gdb-fix-heap-use-after-free-in-typename-concat.patch
 Patch2011:  gdb-dwarf-reader-reject-sections-with-invalid-sizes.patch
 Patch2012:  gdb-0001-remove-alloca-0-calls.patch
+Patch2013:  gdb-arch13-1.diff
+Patch2014:  gdb-arch13-2.diff
+Patch2015:  gdb-arch13-3.diff
 
 # Proposed patch for PR symtab/24971
 Patch2500:  gdb-symtab-prefer-var-def-over-decl.patch
@@ -601,6 +604,9 @@
 %patch2010 -p1
 %patch2011 -p1
 %patch2012 -p1
+%patch2013 -p1
+%patch2014 -p1
+%patch2015 -p1
 
 %patch2500 -p1
 %patch2501 -p1

++ gdb-arch13-1.diff ++
commit ba354106f02e25c9adc3dc1364d6a974216ec94e
Author: Andreas Krebbel 
Date:   Tue Mar 12 14:09:55 2019 +0100

S/390: arch13: Add instruction descriptions

opcodes/ChangeLog:

2019-03-12  Andreas Krebbel  

* s390-opc.txt: Add instruction descriptions.

diff --git a/opcodes/s390-opc.txt b/opcodes/s390-opc.txt
index be4c97d..58a2490 100644
--- a/opcodes/s390-opc.txt
+++ b/opcodes/s390-opc.txt
@@ -1888,106 +1888,120 @@ e736 vlm VRS_VVRDU "vector load multiple" 
arch12 zarch optparm
 e70e vst VRX_VRRDU "vector store" arch12 zarch optparm
 e73e vstm VRS_VVRDU "vector store multiple" arch12 zarch optparm
 
+
 # arch13 instructions
 
-b9f5 ncrk RRF_R0RR2 " " arch13 zarch
-b9e5 ncgrk RRF_R0RR2 " " arch13 zarch
-e50a mvcrl SSE_RDRD " " arch13 zarch
-b974 nnrk RRF_R0RR2 " " arch13 zarch
-b964 nngrk RRF_R0RR2 " " arch13 zarch
-b976 nork RRF_R0RR2 " " arch13 zarch
-b966 nogrk RRF_R0RR2 " " arch13 zarch
-b977 nxrk RRF_R0RR2 " " arch13 zarch
-b967 nxgrk RRF_R0RR2 " " arch13 zarch
-b975 ocrk RRF_R0RR2 " " arch13 zarch
-b965 ocgrk RRF_R0RR2 " " arch13 zarch
-b9e1 popcnt RRF_U0RR " " arch13 zarch optparm
-b9f0 selr RRF_RURR " " arch13 zarch
-b9f0 selr*20 RRF_R0RR3 " " arch13 zarch
-b9e3 selgr RRF_RURR " " arch13 zarch
-b9e3 selgr*20 RRF_R0RR3 " " arch13 zarch
-b9c0 selhhhr RRF_RURR " " arch13 zarch
-b9c0 selhhhr*20 RRF_R0RR3 " " arch13 zarch
-
-e606 vlbr VRX_VRRDU " " arch13 zarch
-e6001006 vlbrh VRX_VRRD " " arch13 zarch
-e6002006 vlbrf VRX_VRRD " " arch13 zarch
-e6003006 vlbrg VRX_VRRD " " arch13 zarch
-e6004006 vlbrq VRX_VRRD " " arch13 zarch
-
-e607 vler VRX_VRRDU " " arch13 zarch
-e6001007 vlerh VRX_VRRD " " arch13 zarch
-e6002007 vlerf VRX_VRRD " " arch13 zarch
-e6003007 vlerg VRX_VRRD " " arch13 zarch
-
-e604 vllebrz VRX_VRRDU " " arch13 zarch
-e6001004 vllebrzh VRX_VRRD " " arch13 zarch
-e6002004 vllebrzf VRX_VRRD " " arch13 zarch
-e6003004 ldrv VRX_VRRD " " arch13 zarch
-e6003004 vllebrzg VRX_VRRD " " arch13 zarch
-e6006004 lerv VRX_VRRD " " arch13 zarch
-e6006004 vllebrze VRX_VRRD " " arch13 zarch
-
-e601 vlebrh VRX_VRRDU " " arch13 zarch
-e603 vlebrf VRX_VRRDU " " arch13 zarch
-e602 vlebrg VRX_VRRDU " " arch13 zarch
-
-e605 vlbrrep VRX_VRRDU " " arch13 zarch
-e6001005 vlbrreph VRX_VRRD " " arch13 zarch
-e6002005 vlbrrepf VRX_VRRD " " arch13 zarch
-e6003005 vlbrrepg VRX_VRRD " " 

commit gdb for openSUSE:Factory

2019-12-24 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-12-24 14:29:20

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


Package is "gdb"

Tue Dec 24 14:29:20 2019 rev:135 rq:757565 version:8.3.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-11-15 22:33:02.184053311 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.6675/gdb.changes2019-12-24 
14:29:26.170560447 +0100
@@ -1,0 +2,6 @@
+Fri Dec  6 14:20:21 UTC 2019 - Tom de Vries 
+
+- Fix build with gcc 10 [bsc#1158539, swo#24653].
+  * gdb-0001-remove-alloca-0-calls.patch
+
+---

New:

  gdb-0001-remove-alloca-0-calls.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.hLbVsr/_old  2019-12-24 14:29:28.574561610 +0100
+++ /var/tmp/diff_new_pack.hLbVsr/_new  2019-12-24 14:29:28.574561610 +0100
@@ -247,6 +247,7 @@
 Patch2009:  gdb-s390-handle-arch13.diff
 Patch2010:  gdb-fix-heap-use-after-free-in-typename-concat.patch
 Patch2011:  gdb-dwarf-reader-reject-sections-with-invalid-sizes.patch
+Patch2012:  gdb-0001-remove-alloca-0-calls.patch
 
 # Proposed patch for PR symtab/24971
 Patch2500:  gdb-symtab-prefer-var-def-over-decl.patch
@@ -599,6 +600,7 @@
 %patch2009 -p1
 %patch2010 -p1
 %patch2011 -p1
+%patch2012 -p1
 
 %patch2500 -p1
 %patch2501 -p1

++ gdb-0001-remove-alloca-0-calls.patch ++
Remove alloca(0) calls

PR gdb/24653 points out that a gcc snapshot will complain about the
calls to alloca(0) in gdb.

These calls are only needed when using the C alloca.  I'm inclined to
think that no current platform needs this, so this patch removes the
calls.

Let me know what you think.

gdb/ChangeLog
2019-06-14  Tom Tromey  

PR gdb/24653:
* regcache.c (registers_changed): Don't call alloca.
* top.c (execute_command): Don't call alloca.

---
 gdb/ChangeLog  | 6 ++
 gdb/regcache.c | 7 ---
 gdb/top.c  | 4 
 3 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/gdb/regcache.c b/gdb/regcache.c
index 6e3eee96631..323f0f5ab4e 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -454,13 +454,6 @@ void
 registers_changed (void)
 {
   registers_changed_ptid (minus_one_ptid);
-
-  /* Force cleanup of any alloca areas if using C alloca instead of
- a builtin alloca.  This particular call is used to clean up
- areas allocated by low level target code which may build up
- during lengthy interactions between gdb and the target before
- gdb gives control to the user (ie watchpoints).  */
-  alloca (0);
 }
 
 void
diff --git a/gdb/top.c b/gdb/top.c
index b46de90f755..857207c3767 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -560,10 +560,6 @@ execute_command (const char *p, int from_tty)
   auto cleanup_if_error = make_scope_exit (bpstat_clear_actions);
   scoped_value_mark cleanup = prepare_execute_command ();
 
-  /* Force cleanup of any alloca areas if using C alloca instead of
- a builtin alloca.  */
-  alloca (0);
-
   /* This can happen when command_line_input hits end of file.  */
   if (p == NULL)
 {



commit gdb for openSUSE:Factory

2019-11-15 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-11-15 22:32:54

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


Package is "gdb"

Fri Nov 15 22:32:54 2019 rev:134 rq:747713 version:8.3.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-11-11 12:59:40.893645280 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.26869/gdb.changes   2019-11-15 
22:33:02.184053311 +0100
@@ -1,0 +2,6 @@
+Mon Nov 11 08:57:18 UTC 2019 - Ludwig Nussel 
+
+- make fpc optional (boo#1156284) as fpc requires itself for
+  bootstrapping.
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.XMle7Q/_old  2019-11-15 22:33:09.168050246 +0100
+++ /var/tmp/diff_new_pack.XMle7Q/_new  2019-11-15 22:33:09.168050246 +0100
@@ -22,6 +22,7 @@
 %global _without_testsuite 1
 %endif
 %bcond_without testsuite
+%bcond_without fpc
 
 Summary:A GNU source-level debugger for C, C++, Fortran and other 
languages
 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
@@ -378,9 +379,11 @@
 %endif
 %if 0%{?suse_version} >= 1500 && 0%{?is_opensuse}
 %ifarch %{ix86} x86_64 aarch64 armv7l
+%if %{with fpc}
 BuildRequires:  fpc
 %endif
 %endif
+%endif
 %if 0%{?suse_version} >= 1200
 %ifnarch s390
 # s390 (for SLE12) doesn't have valgrind




commit gdb for openSUSE:Factory

2019-11-11 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-11-11 12:59:37

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


Package is "gdb"

Mon Nov 11 12:59:37 2019 rev:133 rq:746186 version:8.3.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-11-03 11:47:46.590638264 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.2990/gdb.changes2019-11-11 
12:59:40.893645280 +0100
@@ -1,0 +2,8 @@
+Wed Nov  6 21:18:46 UTC 2019 - Tom de Vries 
+
+- Fix for bsc#1146475 [bsc#1146475, swo#24971 ]
+  * gdb-symtab-prefer-var-def-over-decl.patch
+- Fix for bsc#1146167 [bsc#1146167, swo#24956]
+  * 
gdb-only-force-interp_console-ui_out-for-breakpoint-commands-in-mi-mode.patch
+
+---

New:

  gdb-only-force-interp_console-ui_out-for-breakpoint-commands-in-mi-mode.patch
  gdb-symtab-prefer-var-def-over-decl.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.w06lAX/_old  2019-11-11 12:59:43.809648368 +0100
+++ /var/tmp/diff_new_pack.w06lAX/_new  2019-11-11 12:59:43.809648368 +0100
@@ -247,6 +247,12 @@
 Patch2010:  gdb-fix-heap-use-after-free-in-typename-concat.patch
 Patch2011:  gdb-dwarf-reader-reject-sections-with-invalid-sizes.patch
 
+# Proposed patch for PR symtab/24971
+Patch2500:  gdb-symtab-prefer-var-def-over-decl.patch
+
+# Proposed patch for PR gdb/24956
+Patch2501:  
gdb-only-force-interp_console-ui_out-for-breakpoint-commands-in-mi-mode.patch
+
 # Testsuite patches
 Patch2600:  gdb-testsuite-8.3-kfail-xfail-unsupported.patch
 
@@ -591,6 +597,9 @@
 %patch2010 -p1
 %patch2011 -p1
 
+%patch2500 -p1
+%patch2501 -p1
+
 %patch2600 -p1
 
 #unpack libipt

++ 
gdb-only-force-interp_console-ui_out-for-breakpoint-commands-in-mi-mode.patch 
++
[gdb] Only force INTERP_CONSOLE ui_out for breakpoint commands in MI mode

The problem reported in PR mi/25055 is that the output of the backtrace
command, when executed as breakpoint command does not show when executing
using the MI interpreter:
...
$ gdb a.out
Reading symbols from a.out...
(gdb) break main
Breakpoint 1 at 0x4003c0: file test.c, line 19.
(gdb) commands
Type commands for breakpoint(s) 1, one per line.
End with a line saying just "end".
>bt
>end
(gdb) interpreter-exec mi "-exec-run"
^done

Breakpoint 1, main () at test.c:19
19return foo (4);
(gdb)
...

Interestingly, the function print_frame is called twice during -exec-run:
- once during tui_on_normal_stop where the ui_out is temporarily set to
  tui->interp_ui_out (), resulting in the part after the comma in
  "Breakpoint 1, main () at test.c:19"
- once during execute_control_command, where the ui_out is the default for the
  current interpreter: mi_ui_out, which ignores calls to output text.

The commit 3a87ae656c2 "Use console uiout when executing breakpoint commands"
fixes the problem by temporarily switching to the ui_out of INTERP_CONSOLE in
execute_control_command.

This however caused a regression in redirection (escaping '#' using '\' for
git commit message convenience):
...
$ rm -f gdb.txt; gdb a.out
Reading symbols from a.out...
(gdb) break main
Breakpoint 1 at 0x4003c0: file test.c, line 19.
(gdb) commands
Type commands for breakpoint(s) 1, one per line.
End with a line saying just "end".
>bt
>end
(gdb) set logging redirect on
(gdb) set logging on
Redirecting output to gdb.txt.
Copying debug output to gdb.txt.
(gdb) run
\#0  main () at test.c:19
(gdb) q
A debugging session is active.

Inferior 1 [process 22428] will be killed.

Quit anyway? (y or n) y
$ cat gdb.txt
Starting program: /data/gdb_versions/devel/a.out

Breakpoint 1, main () at test.c:19
19return foo (4);
...

The problem is that the '#0  main () at test.c:19' ends up in the gdb output
output rather than in gdb.txt.  This is due to the fact that the redirect is
setup for the current ui_out (which is tui->interp_ui_out ()), while the
backtrace output is printed to the INTERP_CONSOLE ui_out.

Fix this by limiting switching to INTERP_CONSOLE ui_out to when INTERP_MI is
active.

Tested on x86_64-linux.

gdb/ChangeLog:

2019-10-02  Tom de Vries  

PR gdb/24956
* cli/cli-script.c (execute_control_command): Only switch to
INTERP_CONSOLE's ui_out when INTERP_MI is active.

gdb/testsuite/ChangeLog:

2019-10-02  Tom de Vries  

PR gdb/24956
* gdb.base/ui-redirect.exp: Test output of user-defined command.

Change-Id: Id1771e7fcc9496a7d97ec2b2ea6b1487596f1ef7

---
 gdb/cli/cli-script.c   |  3 +++
 gdb/testsuite/gdb.base/ui-redirect.exp | 47 +-
 2 files changed, 49 

commit gdb for openSUSE:Factory

2019-11-03 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-11-03 11:47:40

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


Package is "gdb"

Sun Nov  3 11:47:40 2019 rev:132 rq:744189 version:8.3.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-10-05 16:19:07.341622030 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2990/gdb.changes2019-11-03 
11:47:46.590638264 +0100
@@ -1,0 +2,13 @@
+Tue Oct 29 09:32:42 UTC 2019 - Tom de Vries 
+
+- Backport 2nd part of fix for swo#23657.
+  [bsc#1142772, swo#23657, CVE-2019-1010180]
+  * gdb-dwarf-reader-reject-sections-with-invalid-sizes.patch
+
+---
+Mon Oct 14 17:52:55 UTC 2019 - m...@suse.com
+
+- Add gdb-s390-handle-arch13.diff to handle most new s390 arch13
+  instructions.  [fate#327369, jsc#ECO-368]
+
+---

New:

  gdb-dwarf-reader-reject-sections-with-invalid-sizes.patch
  gdb-s390-handle-arch13.diff



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.HEvDA7/_old  2019-11-03 11:47:49.798642284 +0100
+++ /var/tmp/diff_new_pack.HEvDA7/_new  2019-11-03 11:47:49.814642304 +0100
@@ -13,7 +13,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -243,7 +243,9 @@
 Patch2005:  gdb-testsuite-pie-no-pie.patch
 Patch2007:  gdb-testsuite-read1-fixes.patch
 Patch2008:  gdb-testsuite-i386-pkru-exp.patch
-Patch2500:  gdb-fix-heap-use-after-free-in-typename-concat.patch
+Patch2009:  gdb-s390-handle-arch13.diff
+Patch2010:  gdb-fix-heap-use-after-free-in-typename-concat.patch
+Patch2011:  gdb-dwarf-reader-reject-sections-with-invalid-sizes.patch
 
 # Testsuite patches
 Patch2600:  gdb-testsuite-8.3-kfail-xfail-unsupported.patch
@@ -585,8 +587,9 @@
 %patch2005 -p1
 %patch2007 -p1
 %patch2008 -p1
-
-%patch2500 -p1
+%patch2009 -p1
+%patch2010 -p1
+%patch2011 -p1
 
 %patch2600 -p1
 

++ gdb-dwarf-reader-reject-sections-with-invalid-sizes.patch ++
DWARF reader: Reject sections with invalid sizes

This is another fuzzer bug, gdb/23567.  This time, the fuzzer has
specifically altered the size of .debug_str:

$ eu-readelf -S objdump
Section Headers:
[Nr] Name Type Addr Off  Size ES 
Flags Lk Inf Al
[31] .debug_str   PROGBITS  0057116d 
  1 MS 0   0  1

When this file is loaded into GDB, the DWARF reader crashes attempting
to access the string table (or it may just store a bunch of nonsense):

[gdb-8.3-6-fc30]
$ gdb -nx -q objdump
BFD: warning: /path/to/objdump has a corrupt section with a size 
() larger than the file size
Reading symbols from /path/to/objdump...
Segmentation fault (core dumped)

Nick has already committed a BFD patch to issue the warning seen above.

[gdb master 6acc1a0b]
$ gdb -BFD: warning: /path/to/objdump has a corrupt section with a size 
() larger than the file size
Reading symbols from /path/to/objdump...
(gdb) inf func
All defined functions:

File ./../include/dwarf2.def:
186:const

  8 *>(.:
 ;'@�B);
747:const

  8 *�(.:
 ;'@�B);
701:const

  8 *�D �
 (.:
;'@�B);
71: const

  8 *(.:
;'@�B);
/* and more gibberish  */

Consider read_indirect_string_at_offset_from:

static const char *
read_indirect_string_at_offset_from (struct objfile *objfile,
 bfd *abfd, LONGEST str_offset,
 struct dwarf2_section_info *sect,
 const char *form_name,
 const char *sect_name)
{
  dwarf2_read_section (objfile, sect);
  if (sect->buffer == NULL)
error (_("%s used without %s section [in module %s]"),
   form_name, sect_name, bfd_get_filename (abfd));
  if (str_offset >= sect->size)
error (_("%s pointing outside of %s section [in module %s]"),
   form_name, sect_name, bfd_get_filename (abfd));
  gdb_assert (HOST_CHAR_BIT == 8);
  if (sect->buffer[str_offset] == '\0')
return NULL;
  return (const char *) (sect->buffer + str_offset);
}

With sect_size being ginormous, the code attempts to access
sect->buffer[GINORMOUS], and depending on the layout of memory,
GDB 

commit gdb for openSUSE:Factory

2019-10-05 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-10-05 16:18:05

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


Package is "gdb"

Sat Oct  5 16:18:05 2019 rev:131 rq:734351 version:8.3.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-09-19 15:51:14.735288380 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.2352/gdb.changes2019-10-05 
16:19:07.341622030 +0200
@@ -1,0 +2,51 @@
+Mon Sep 30 10:34:54 UTC 2019 - Tom de Vries 
+
+- Add gdb-testsuite-8.3-kfail-xfail-unsupported.patch
+
+---
+Thu Sep 26 16:51:17 UTC 2019 - Tom de Vries 
+
+- Drop ChangeLog part of patch:
+  * gdb-rhbz1708192-parse_macro_definition-crash.patch
+  * gdb-rhbz1704406-disable-style-log-output-1of3.patch
+  * gdb-rhbz1704406-disable-style-log-output-2of3.patch
+  * gdb-rhbz1704406-disable-style-log-output-3of3.patch
+  * gdb-rhbz1723564-gdb-crash-PYTHONMALLOC-debug.patch
+  * gdb-rhbz1553086-binutils-warning-loadable-section-outside-elf.patch
+- Update to gdb-8.3.1.
+  * Drop "Testsuite: Ensure pie is disabled on some tests" part of
+gdb-testsuite-pie-no-pie.patch
+  * Drop patches included upstream:
+- gdb-7.10-swo18929.patch
+- gdb-handle-vfork-in-thread-with-follow-fork-mode-child.patch
+- gdb-x86_64-i386-syscall-restart-master.patch
+- gdb-suppress-sigttou-when-handling-errors.patch
+- gdb-fix-breakpoints-on-file-reloads-for-pie-binaries.patch
+- gdb-symtab-fix-symbol-loading-performance-regression.patch
+- Fix macro in comment warning
+
+---
+Wed Sep 25 14:41:32 UTC 2019 - Tom de Vries 
+
+- Upgrade libipt from v2.0 to v2.0.1.
+  * Use -DBUILD_SHARED_LIBS=OFF to build libipt.a, and drop part
+of v1.5-libipt-static.patch that consequentially has become
+unnecessary.
+
+---
+Tue Sep 24 08:31:04 UTC 2019 - Tom de Vries 
+
+- Sync with f30, merging 1e222a3..8bf40c6.
+  * gdb-rhbz1708192-parse_macro_definition-crash.patch
+  * gdb-rhbz1704406-disable-style-log-output-1of3.patch
+  * gdb-rhbz1704406-disable-style-log-output-2of3.patch
+  * gdb-rhbz1704406-disable-style-log-output-3of3.patch
+  * gdb-rhbz1723564-gdb-crash-PYTHONMALLOC-debug.patch
+  * gdb-rhbz1553086-binutils-warning-loadable-section-outside-elf.patch
+
+---
+Sun Sep 22 05:54:09 UTC 2019 - Tom de Vries 
+
+- Use ldd /usr/bin/rpm instead of ls /usr/%{_lib}/ to find librpm
+
+---

Old:

  gdb-7.10-swo18929.patch
  gdb-8.3.tar.bz2
  gdb-fix-breakpoints-on-file-reloads-for-pie-binaries.patch
  gdb-handle-vfork-in-thread-with-follow-fork-mode-child.patch
  gdb-suppress-sigttou-when-handling-errors.patch
  gdb-symtab-fix-symbol-loading-performance-regression.patch
  gdb-x86_64-i386-syscall-restart-master.patch
  v2.0.tar.gz

New:

  gdb-8.3.1.tar.bz2
  gdb-rhbz1553086-binutils-warning-loadable-section-outside-elf.patch
  gdb-rhbz1704406-disable-style-log-output-1of3.patch
  gdb-rhbz1704406-disable-style-log-output-2of3.patch
  gdb-rhbz1704406-disable-style-log-output-3of3.patch
  gdb-rhbz1708192-parse_macro_definition-crash.patch
  gdb-rhbz1723564-gdb-crash-PYTHONMALLOC-debug.patch
  gdb-testsuite-8.3-kfail-xfail-unsupported.patch
  v2.0.1.tar.gz



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.jrrQZq/_old  2019-10-05 16:19:12.313609084 +0200
+++ /var/tmp/diff_new_pack.jrrQZq/_new  2019-10-05 16:19:12.321609063 +0200
@@ -13,7 +13,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
@@ -28,7 +28,7 @@
 Group:  Development/Tools/Debuggers
 Name:   gdb
 
-Version:8.3
+Version:8.3.1
 Release:0
 
 # The release always contains a leading reserved number, start it at 1.
@@ -87,7 +87,7 @@
 Source5:gdbinit.without-python
 
 # libipt: Intel Processor Trace Decoder Library
-%global libipt_version 2.0
+%global libipt_version 2.0.1
 Source7:v%{libipt_version}.tar.gz
 
 # Infrastructure to sync patches from the Fedora rpm
@@ -211,6 +211,12 @@
 Patch113:   gdb-rhbz1553104-s390x-arch12-test.patch
 Patch114:   gdb-rhbz795424-bitpos-arrayview.patch
 Patch115:   gdb-rhbz1371380-gcore-elf-headers.patch
+Patch116:   gdb-rhbz1708192-parse_macro_definition-crash.patch

commit gdb for openSUSE:Factory

2019-09-19 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-09-19 15:51:08

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


Package is "gdb"

Thu Sep 19 15:51:08 2019 rev:130 rq:731960 version:8.3

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-08-09 16:49:18.565507897 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.7948/gdb.changes2019-09-19 
15:51:14.735288380 +0200
@@ -1,0 +2,22 @@
+Sat Sep 14 05:45:30 UTC 2019 - Michel Normand 
+
+- Add _constraints for PowerPC need more than 3.5GB disk space
+  to avoid build failure
+
+---
+Tue Sep 10 15:45:17 UTC 2019 - m...@suse.com
+
+- Disable use of valgrind on old s390 (31bit) distros.
+
+---
+Fri Aug 23 16:00:18 UTC 2019 - Tom de Vries 
+
+- Enable librpm for version > librpm.so.3 [bsc#1145692]:
+  * Allow any librpm.so.x
+  * Fix unused variables in HAVE_LIBRPM code in
+gdb-6.6-buildid-locate-rpm-suse.patch
+  * Add %build test to check for "zypper install "
+message
+- Implements jsc#ECO-368, the 2019 toolchain module update
+
+---

New:

  _constraints



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.Fbf3xT/_old  2019-09-19 15:51:18.271287661 +0200
+++ /var/tmp/diff_new_pack.Fbf3xT/_new  2019-09-19 15:51:18.275287660 +0200
@@ -18,6 +18,7 @@
 
 
 %if 0%{?qemu_user_space_build}
+# In a qemu_user_space_build ptrace is not supported, so we can't test gdb.
 %global _without_testsuite 1
 %endif
 %bcond_without testsuite
@@ -275,6 +276,7 @@
 %else
 BuildRequires:  texinfo
 %endif
+BuildRequires:  expect
 BuildRequires:  mpfr-devel
 BuildRequires:  ncurses-devel
 BuildRequires:  pkg-config
@@ -375,8 +377,11 @@
 %endif
 %endif
 %if 0%{?suse_version} >= 1200
+%ifnarch s390
+# s390 (for SLE12) doesn't have valgrind
 BuildRequires:  valgrind
 %endif
+%endif
 
 %endif # %%{with testsuite}
 
@@ -664,16 +669,17 @@
 
 export CXXFLAGS="$CFLAGS"
 
-export LIBRPM=no
-if test -f /usr/%{_lib}/librpm.so.1; then
-  export LIBRPM=librpm.so.1
-fi
-if test -f /usr/%{_lib}/librpm.so.2; then
-  export LIBRPM=librpm.so.2
-fi
-if test -f /usr/%{_lib}/librpm.so.3; then
-  export LIBRPM=librpm.so.3
+export LIBRPM=$(ls -1 /usr/%{_lib}/ \
+   | grep '^librpm.so.[0-9][0-9]*$' \
+   | sort -V -r \
+   | head -n 1)
+if [ "$LIBRPM" != "" ]; then
+export LIBRPM="/usr/%{_lib}/$LIBRPM"
+[ -f "$LIBRPM" ]
+else
+export LIBRPM=no
 fi
+
 %ifarch %ix86 ia64 ppc ppc64 ppc64le s390 s390x x86_64 aarch64 riscv64
 %define build_multitarget 1
 %else
@@ -814,6 +820,74 @@
   cd ..
 fi
 
+# This is a build-time test, but still a test.  So, skip if we don't do tests.
+# This is relevant for %qemu_user_space_build == 1 builds, which atm is
+# the case for riscv64.
+%if %{with testsuite}
+if [ "$LIBRPM" != "no" ]; then
+cd gdb
+cat \
+   > hello.c \
+   <
+int
+main (void)
+{
+  printf ("hello\n");
+  return 0;
+}
+EOF
+$CC hello.c
+libc=$(ldd a.out \
+  | grep libc.so \
+  | awk '{print $3}')
+if readelf -SW $libc \
+   | grep -q "\.gnu_debuglink"; then
+   cat \
+   > test.exp \
+   <
  

  ppc64
  ppc64le


  
4
  

  


++ gdb-6.6-buildid-locate-rpm-suse.patch ++
--- /var/tmp/diff_new_pack.Fbf3xT/_old  2019-09-19 15:51:18.403287634 +0200
+++ /var/tmp/diff_new_pack.Fbf3xT/_new  2019-09-19 15:51:18.403287634 +0200
@@ -110,3 +110,19 @@
}
  }
  
+diff --git a/gdb/build-id.c b/gdb/build-id.c
+index b9ff15a..75d501a 100644
+--- a/gdb/build-id.c
 b/gdb/build-id.c
+@@ -864,10 +864,8 @@ missing_rpm_enlist_1 (const char *filename, int 
verify_vendor)
+ #endif
+   {
+ Header h;
+-char *debuginfo, **slot, *s, *s2;
++char *debuginfo, **slot;
+ errmsg_t err;
+-size_t srcrpmlen = sizeof (".src.rpm") - 1;
+-size_t debuginfolen = sizeof ("-debuginfo") - 1;
+ rpmdbMatchIterator mi_debuginfo;
+ 
+ h = rpmdbNextIterator_p (mi);




commit gdb for openSUSE:Factory

2019-08-09 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-08-09 16:49:09

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


Package is "gdb"

Fri Aug  9 16:49:09 2019 rev:129 rq:721798 version:8.3

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-07-28 10:18:36.928601501 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.9556/gdb.changes2019-08-09 
16:49:18.565507897 +0200
@@ -1,0 +2,23 @@
+Tue Aug  6 21:36:49 UTC 2019 - Tom de Vries 
+
+- Master backport:  
+  * gdb-fix-breakpoints-on-file-reloads-for-pie-binaries.patch
+- Master backports testsuite:
+  * gdb-testsuite-i386-pkru-exp.patch
+  * gdb-testsuite-read1-fixes.patch
+  * gdb-testsuite-pie-no-pie.patch
+  * gdb-testsuite-add-missing-initial-prompt-read-in-multidictionary.exp.patch
+- Work around bsc#1115034:
+  * gdb-testsuite-ada-pie.patch
+- Fixes for fedora patches:
+  * gdb-testsuite-fix-perror-in-gdb.opt-fortran-string.exp.patch
+  * gdb-testsuite-avoid-pagination-in-attach-32.exp.patch
+
+---
+Thu Jul 25 21:46:56 UTC 2019 - Stefan Brüns 
+
+- Remove some conditionals for SLE-10 (build is disabled/unresolvable).
+- BuildRequire makeinfo instead of full texinfo (requiring texlive)
+  where available (SLE >= 12).
+
+---

New:

  gdb-fix-breakpoints-on-file-reloads-for-pie-binaries.patch
  gdb-testsuite-ada-pie.patch
  gdb-testsuite-add-missing-initial-prompt-read-in-multidictionary.exp.patch
  gdb-testsuite-avoid-pagination-in-attach-32.exp.patch
  gdb-testsuite-fix-perror-in-gdb.opt-fortran-string.exp.patch
  gdb-testsuite-i386-pkru-exp.patch
  gdb-testsuite-pie-no-pie.patch
  gdb-testsuite-read1-fixes.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.gL6sfm/_old  2019-08-09 16:49:21.897507901 +0200
+++ /var/tmp/diff_new_pack.gL6sfm/_new  2019-08-09 16:49:21.901507901 +0200
@@ -212,10 +212,16 @@
 Patch115:   gdb-rhbz1371380-gcore-elf-headers.patch
 #Fedora Packages end
 
+#Fedora patches fixup
+
+Patch500:   gdb-testsuite-avoid-pagination-in-attach-32.exp.patch
+Patch501:   gdb-testsuite-fix-perror-in-gdb.opt-fortran-string.exp.patch
+
 # openSUSE specific
 
 Patch1000:  gdb-gcore-bash.patch
 Patch1002:  gdb-6.6-buildid-locate-rpm-suse.patch
+Patch1003:  gdb-testsuite-ada-pie.patch
 
 # Patches to upstream
 
@@ -233,6 +239,11 @@
 Patch2001:  gdb-fix-riscv-tdep.patch
 Patch2002:  gdb-x86_64-i386-syscall-restart-master.patch
 Patch2003:  gdb-suppress-sigttou-when-handling-errors.patch
+Patch2004:  
gdb-testsuite-add-missing-initial-prompt-read-in-multidictionary.exp.patch
+Patch2005:  gdb-testsuite-pie-no-pie.patch
+Patch2006:  gdb-fix-breakpoints-on-file-reloads-for-pie-binaries.patch
+Patch2007:  gdb-testsuite-read1-fixes.patch
+Patch2008:  gdb-testsuite-i386-pkru-exp.patch
 
 # Submitted for master
 
@@ -258,23 +269,21 @@
 # support for newer distro versions in anticipation of a move to guile 2.2.
 BuildRequires:  guile-devel
 %endif
-BuildRequires:  ncurses-devel
-BuildRequires:  texinfo
-%if %{suse_version} < 1020
-BuildRequires:  expat
-%else
 BuildRequires:  libexpat-devel
+%if 0%{suse_version} >= 1200
+BuildRequires:  makeinfo
+%else
+BuildRequires:  texinfo
 %endif
 BuildRequires:  mpfr-devel
+BuildRequires:  ncurses-devel
 BuildRequires:  pkg-config
 BuildRequires:  readline-devel
 BuildRequires:  rpm-devel
-BuildRequires:  zlib-devel
 BuildRequires:  xz-devel
+BuildRequires:  zlib-devel
 %if 0%{!?_without_python:1}
-%if 0%{suse_version} > 1000
 Requires:   %{python}-base
-%endif
 BuildRequires:  %{python}-devel
 %endif # 0%{!?_without_python:1}
 
@@ -306,7 +315,6 @@
 %define ada_arch %ix86 x86_64 ppc s390 ia64
 %endif
 
-
 # Ensure the devel libraries are installed for both multilib arches.
 %global bits_local %{?_isa}
 %global bits_other %{?_isa}
@@ -383,7 +391,6 @@
 and printing their data.
 
 %ifnarch riscv64
-%if %{suse_version} > 1010
 %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
@@ -397,7 +404,6 @@
 This package provides a program that allows you to run GDB on a different
 machine than the one which is running the program being debugged.
 %endif
-%endif
 
 %package doc
 Summary:Documentation for GDB (the GNU source-level debugger)
@@ -557,8 +563,12 @@
 %patch115 -p1
 #Fedora patching end
 
+%patch500 -p1
+%patch501 -p1
+
 %patch1000 -p1
 %patch1002 -p1
+%patch1003 -p1
 
 %patch1005 -p1

commit gdb for openSUSE:Factory

2019-07-28 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-07-28 10:18:30

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


Package is "gdb"

Sun Jul 28 10:18:30 2019 rev:128 rq:717937 version:8.3

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-06-22 11:23:41.585355430 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.4126/gdb.changes2019-07-28 
10:18:36.928601501 +0200
@@ -1,0 +2,77 @@
+Mon Jul 22 16:58:16 UTC 2019 - Tom de Vries 
+
+- Add Wno-error=odr to work around swo#24835
+- Add BuildRequires xz-devel
+
+---
+Wed Jul  3 11:38:05 UTC 2019 - Tom de Vries 
+
+- Add BuildRequires valgrind for make check
+
+---
+Wed Jul  3 11:02:06 UTC 2019 - Tom de Vries 
+
+- Move BuildRequires gcc-go and fpc to %{with testsuite} portion
+
+---
+Wed Jul  3 10:53:05 UTC 2019 - Tom de Vries 
+
+- Copy %ada_arch from gcc9 and use it to fix 'unresolvable: nothing
+  provides gcc-ada' for openSUSE_Leap_42.3_Ports/SLE-12 ppc64le.
+
+---
+Wed Jul  3 08:37:30 UTC 2019 - Tom de Vries 
+
+- Drop ppc64le for fpc
+
+---
+Wed Jul  3 08:27:11 UTC 2019 - Tom de Vries 
+
+- Add missing %endif
+
+---
+Wed Jul  3 08:15:33 UTC 2019 - Tom de Vries 
+
+- Add BuildRequire fpc for make check
+
+---
+Wed Jul  3 06:47:49 UTC 2019 - Tom de Vries 
+
+- Add comment explaining why guile support has been disabled for
+  newer distro versions.
+
+---
+Tue Jul  2 17:46:53 UTC 2019 - Tom de Vries 
+
+- Add BuildRequire gcc-go to get gccgo command for make check
+
+---
+Tue Jul  2 13:48:51 UTC 2019 - Tom de Vries 
+
+- Copy gdbinit from fedora master @ 25caf28.  Add
+  gdbinit.without-python, and use it for --without=python.
+
+---
+Mon Jul  1 06:28:27 UTC 2019 - Tom de Vries 
+
+- Remove unused code: gdbtui support
+
+---
+Mon Jun 24 07:00:28 UTC 2019 - Tom de Vries 
+
+- Add comments to "patches to upstream" specifying when they can be
+  dropped.
+
+---
+Thu Jun 20 15:19:35 UTC 2019 - Tom de Vries 
+
+- Remove -Wno-implicit-fallthrough, -Wno-error=cast-function-type
+  and -Wno-error=stringop-truncation
+
+---
+Wed Jun 19 06:54:23 UTC 2019 - Tom de Vries 
+
+- Remove gdb-fix-buf-overflow.diff, which is a workaround for
+  swo#24698, which has been fixed since gdb 7.12.
+
+---

Old:

  gdb-fix-buf-overflow.diff
  gdbtui

New:

  gdbinit.without-python



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.gcJUin/_old  2019-07-28 10:18:42.256601509 +0200
+++ /var/tmp/diff_new_pack.gcJUin/_new  2019-07-28 10:18:42.256601509 +0200
@@ -83,9 +83,7 @@
 # /etc/gdbinit (from Debian but with Fedora compliant location).
 #=fedora
 Source4:gdbinit
-
-# Provide gdbtui for RHEL-5 and RHEL-6 as it is removed upstream (BZ 797664).
-Source6:gdbtui
+Source5:gdbinit.without-python
 
 # libipt: Intel Processor Trace Decoder Library
 %global libipt_version 2.0
@@ -221,8 +219,12 @@
 
 # Patches to upstream
 
-Patch1004:  gdb-fix-buf-overflow.diff
+# Fixed upstream Wed, 29 May 2019, 4330d61dfb "Fix crash in
+# cp_print_value_fields".  We should be able to drop this in 8.4.
 Patch1005:  gdb-7.10-swo18929.patch
+
+# Fixed upstream Sat, Jun 22 2019, 47e3f47487 "[gdb] Fix s390x -m31 build".
+# We should be able to drop this in 8.4.
 Patch1007:  gdb-fix-s390-build.diff
 
 # Backports from master
@@ -252,6 +254,8 @@
 BuildRequires:  gettext
 BuildRequires:  glibc-devel
 %if 0%{suse_version} > 1110 && 0%{suse_version} < 1330
+# GDB supports guile 2.0, but not guile 2.2 (swo#21104).  Disable guile
+# support for newer distro versions in anticipation of a move to guile 2.2.
 BuildRequires:  guile-devel
 %endif
 BuildRequires:  ncurses-devel
@@ -266,6 +270,7 @@
 BuildRequires:  readline-devel
 BuildRequires:  rpm-devel
 BuildRequires:  zlib-devel
+BuildRequires:  xz-devel
 %if 

commit gdb for openSUSE:Factory

2019-06-22 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-06-22 11:23:40

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


Package is "gdb"

Sat Jun 22 11:23:40 2019 rev:127 rq:710355 version:8.3

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-06-07 18:01:47.549789573 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.4615/gdb.changes2019-06-22 
11:23:41.585355430 +0200
@@ -1,0 +2,22 @@
+Fri Jun 14 11:39:56 UTC 2019 - Tom de Vries 
+
+- Fix rpmlint macro-in-comment errors
+
+---
+Fri Jun 14 11:27:41 UTC 2019 - Tom de Vries 
+
+- Fix rpmlint error "deprecated-grep ['egrep']" .
+
+---
+Fri Jun 14 11:22:54 UTC 2019 - Tom de Vries 
+
+- gdb-gcore-bash.patch: Fix rpmlint error env-script-interpreter by
+  replacing "/usr/bin/env bash" with "/bin/bash" in gcore.
+
+---
+Thu Jun 13 17:51:04 UTC 2019 - Tom de Vries 
+
+- Rewrite gdbserver.1 workaround for riscv64 to avoid
+  %define _unpackaged_files_terminate_build 0
+
+---

New:

  gdb-gcore-bash.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.5b80QE/_old  2019-06-22 11:23:43.569357505 +0200
+++ /var/tmp/diff_new_pack.5b80QE/_new  2019-06-22 11:23:43.569357505 +0200
@@ -51,7 +51,7 @@
 %global have_inproctrace 0
 %ifarch %{ix86} x86_64
 %global have_inproctrace 1
-%endif # %{ix86} x86_64
+%endif # %%{ix86} x86_64
 
 # Choose python version
 %if 0%{?suse_version} >= 1320
@@ -214,8 +214,13 @@
 Patch115:   gdb-rhbz1371380-gcore-elf-headers.patch
 #Fedora Packages end
 
-# Upstream patch to fix gcc -Werror
+# openSUSE specific
+
+Patch1000:  gdb-gcore-bash.patch
 Patch1002:  gdb-6.6-buildid-locate-rpm-suse.patch
+
+# Patches to upstream
+
 Patch1004:  gdb-fix-buf-overflow.diff
 Patch1005:  gdb-7.10-swo18929.patch
 Patch1007:  gdb-fix-s390-build.diff
@@ -337,7 +342,7 @@
 BuildRequires:  glibc-devel-static
 %endif
 
-%endif # %{with testsuite}
+%endif # %%{with testsuite}
 
 %ifarch ia64
 BuildRequires:  libunwind-devel
@@ -349,17 +354,6 @@
 Java, and other languages, by executing them in a controlled fashion
 and printing their data.
 
-%ifarch riscv64
-# Work around RPM build error:
-# ...
-#   Installed (but unpackaged) file(s) found:
-#   /usr/share/man/man1/gdbserver.1.gz
-# ...
-# Filed at PR24575 - "gdbserver.1 should only be installed if gdbserver was
-# build" ( https://sourceware.org/bugzilla/show_bug.cgi?id=24575 ).
-%define _unpackaged_files_terminate_build 0
-%endif
-
 %ifnarch riscv64
 %if %{suse_version} > 1010
 %package -n gdbserver
@@ -415,7 +409,7 @@
 rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc-exp.c gdb/p-exp.c gdb/go-exp.c
 
 # *.info* is needlessly split in the distro tar; also it would not get used as
-# we build in %{gdb_build}, just to be sure.
+# we build in %%{gdb_build}, just to be sure.
 find -name "*.info*"|xargs rm -f
 
 #Fedora patching start
@@ -535,7 +529,9 @@
 %patch115 -p1
 #Fedora patching end
 
+%patch1000 -p1
 %patch1002 -p1
+
 %patch1004 -p1
 %patch1005 -p1
 %patch1007 -p1
@@ -573,7 +569,7 @@
 # Identify the build directory with the version of gdb as well as the
 # architecture, to allow for mutliple versions to be installed and
 # built.
-# Initially we're in the %{gdb_src} directory.
+# Initially we're in the %%{gdb_src} directory.
 
 for fprofile in %{?_with_profile:-fprofile} ""
 do
@@ -608,7 +604,7 @@
 for opt in -Wno-implicit-fallthrough -Wno-error=cast-function-type 
-Wno-error=stringop-truncation; do
   if ! echo "int foo(void) { int a; return a;} " | \
  $CC  -x c -c - -o /dev/null -W ${opt} 2>&1 | \
- egrep "Wno|no option" >/dev/null; then
+ grep -E "Wno|no option" >/dev/null; then
 CFLAGS="$CFLAGS ${opt}"
   fi
 done
@@ -796,7 +792,7 @@
 cp $RPM_BUILD_DIR/%{gdb_src}/gdb/NEWS $RPM_BUILD_DIR/%{gdb_src}
 
 %check
-# Initially we're in the %{gdb_src} directory.
+# Initially we're in the %%{gdb_src} directory.
 cd %{gdb_build}
 
 %if %{without testsuite}
@@ -890,8 +886,8 @@
   done
 done
 # `tar | bzip2 | uuencode' may have some piping problems in Brew.
-#tar cjf gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}*.{sum,log}
-#uuencode gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}.tar.bz2
+#tar cjf gdb-%%{_target_platform}.tar.bz2 gdb-%%{_target_platform}*.{sum,log}
+#uuencode gdb-%%{_target_platform}.tar.bz2 gdb-%%{_target_platform}.tar.bz2
 # Strip dates and completion times from the log to make build-compare happy
 sed -i -e 

commit gdb for openSUSE:Factory

2019-05-25 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-05-25 13:16:31

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


Package is "gdb"

Sat May 25 13:16:31 2019 rev:125 rq:704721 version:8.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-01-26 22:21:16.622910966 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.5148/gdb.changes2019-05-25 
13:16:33.880418443 +0200
@@ -1,0 +2,7 @@
+Wed May 22 08:44:01 UTC 2019 - Martin Liška 
+
+- Add gdb-gcc9-fix-build-with-latest-GCC-9.0-tree.patch and
+  gdb-gcc9-warning-on-elf32-arm.c-elf32_arm_final_link.patch
+  in order to fix build with GCC9.
+
+---

New:

  gdb-gcc9-fix-build-with-latest-GCC-9.0-tree.patch
  gdb-gcc9-warning-on-elf32-arm.c-elf32_arm_final_link.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.c2Q3aS/_old  2019-05-25 13:16:45.084414277 +0200
+++ /var/tmp/diff_new_pack.c2Q3aS/_new  2019-05-25 13:16:45.088414275 +0200
@@ -13,7 +13,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -244,6 +244,8 @@
 Patch1004:  gdb-fix-buf-overflow.diff
 Patch1005:  gdb-7.10-swo18929.patch
 Patch1007:  gdb-fix-s390-build.diff
+Patch1008:  gdb-gcc9-fix-build-with-latest-GCC-9.0-tree.patch
+Patch1009:  gdb-gcc9-warning-on-elf32-arm.c-elf32_arm_final_link.patch
 
 # Backports from master
 Patch2000:  gdb-fix-crash-when-reading-core.patch
@@ -570,6 +572,8 @@
 %patch1004 -p1
 %patch1005 -p1
 %patch1007 -p1
+%patch1008 -p1
+%patch1009 -p1
 
 %patch2000 -p1
 %patch2001 -p1

++ gdb-gcc9-fix-build-with-latest-GCC-9.0-tree.patch ++
>From 7406a5003e78282a495cb32ef5b8179f6a33 Mon Sep 17 00:00:00 2001
From: Dimitar Dimitrov 
Date: Mon, 17 Dec 2018 21:30:52 +0200
Subject: [PATCH] Fix build with latest GCC 9.0 tree

A recent patch [1] to fix a GCC PR [2] actually broke the GDB build.
To fix, remove the stack pointer clobber. GCC will ignore the clobber
marker, and will not save or restore the stack pointer.

I ran "make check-gdb" on x86_64 to ensure there are no regressions.

gdb/ChangeLog:

2018-12-17  Dimitar Dimitrov  

* nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Remove sp clobbers.

[1] https://gcc.gnu.org/ml/gcc-patches/2018-12/msg00532.html
[2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52813

Signed-off-by: Dimitar Dimitrov 
---
 gdb/ChangeLog  | 5 +
 gdb/nat/linux-ptrace.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c
index d4c1b8f9fd..187cfeb9bc 100644
--- a/gdb/nat/linux-ptrace.c
+++ b/gdb/nat/linux-ptrace.c
@@ -161,14 +161,14 @@ linux_ptrace_test_ret_to_nx (void)
".globl linux_ptrace_test_ret_to_nx_instr;"
"linux_ptrace_test_ret_to_nx_instr:"
"ret"
-   : : "r" (return_address) : "%esp", "memory");
+   : : "r" (return_address) : "memory");
 #elif defined __x86_64__
  asm volatile ("pushq %0;"
".globl linux_ptrace_test_ret_to_nx_instr;"
"linux_ptrace_test_ret_to_nx_instr:"
"ret"
: : "r" ((uint64_t) (uintptr_t) return_address)
-   : "%rsp", "memory");
+   : "memory");
 #else
 # error "!__i386__ && !__x86_64__"
 #endif
-- 
2.21.0

++ gdb-gcc9-warning-on-elf32-arm.c-elf32_arm_final_link.patch ++
>From 453f8e1e4918171bc12e4d03aab7ee8360dfcfef Mon Sep 17 00:00:00 2001
From: Sergio Durigan Junior 
Date: Mon, 21 Jan 2019 15:36:41 -0500
Subject: [PATCH] Fix GCC9 warning on elf32-arm.c:elf32_arm_final_link_relocate

Fedora Rawhide has just switched to GCC9, and now GDB doesn't compile
because of a BFD warning:

  BUILDSTDERR: ../../bfd/elf32-arm.c: In function 
'elf32_arm_final_link_relocate':
  BUILDSTDERR: ../../bfd/elf32-arm.c:10907:10: error: absolute value function 
'labs' given an argument of type 'bfd_signed_vma' {aka 'long long int'} but has 
parameter of type 'long int' which may cause truncation of value 
[-Werror=absolute-value]
  BUILDSTDERR: 10907 |  value = labs (relocation);
  BUILDSTDERR:   |  ^~~~

You can take a look at the full build log here:

  https://kojipkgs.fedoraproject.org//work/tasks/4828/32174828/build.log

The fix is (apparently) simple: instead of using 'labs', we 

commit gdb for openSUSE:Factory

2019-01-26 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-01-26 22:21:13

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


Package is "gdb"

Sat Jan 26 22:21:13 2019 rev:124 rq:668405 version:8.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2018-11-13 16:24:57.058731388 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.28833/gdb.changes   2019-01-26 
22:21:16.622910966 +0100
@@ -1,0 +2,27 @@
+Thu Jan 24 10:13:33 UTC 2019 - tdevr...@suse.com
+
+- Backport upstream fix for assertion failure
+  `SYMBOL_LANGUAGE (sym) == DICT_LANGUAGE (dict)->la_language'
+  [swo#23712, rh#1560010]
+  patches:
+  gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-1of5.patch
+  gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-2of5.patch
+  gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-3of5.patch
+  gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-4of5.patch
+  gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-5of5.patch
+ * Add patches from fedora 29 @ 4513f72
+ * Add gdb-fix-multidictionary.exp-for-gdb-8.2.patch to fix
+   multidictionary.exp test-case
+
+---
+Thu Dec  6 14:49:34 UTC 2018 - m...@suse.com
+
+- Add power8-registers.diff for implementing access to
+  more POWER8 registers.  [fate#326120, fate#325178]
+
+---
+Mon Nov 12 13:26:01 UTC 2018 - tdevr...@suse.com
+
+- Run tests with -fno-PIE/-no-pie and -fPIE/-pie.
+
+---

New:

  gdb-fix-multidictionary.exp-for-gdb-8.2.patch
  gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-1of5.patch
  gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-2of5.patch
  gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-3of5.patch
  gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-4of5.patch
  gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-5of5.patch
  power8-registers.diff



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.hxpPOu/_old  2019-01-26 22:21:19.602908553 +0100
+++ /var/tmp/diff_new_pack.hxpPOu/_new  2019-01-26 22:21:19.602908553 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package gdb
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2012 RedHat
 #
 # All modifications and additions to the file contributed by third parties
@@ -232,6 +232,11 @@
 Patch132:   gdb-rhbz1491128-batch-mode-exit-status-1of2.patch
 Patch133:   gdb-rhbz1491128-batch-mode-exit-status-2of2.patch
 Patch134:   gdb-use-pulongest-aarch64-linux-tdep.patch
+Patch137:   
gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-1of5.patch
+Patch138:   
gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-2of5.patch
+Patch139:   
gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-3of5.patch
+Patch140:   
gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-4of5.patch
+Patch141:   
gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-5of5.patch
 #Fedora Packages end
 
 # Upstream patch to fix gcc -Werror
@@ -242,10 +247,14 @@
 
 # Backports from master
 Patch2000:  gdb-fix-crash-when-reading-core.patch
+Patch2001:  power8-registers.diff
 
 # libipt support
 Patch3000:  v1.5-libipt-static.patch
 
+# Testsuite fixes
+Patch4000:  gdb-fix-multidictionary.exp-for-gdb-8.2.patch
+
 BuildRequires:  bison
 BuildRequires:  flex
 %if 0%{suse_version} > 1110
@@ -550,6 +559,11 @@
 %patch132 -p1
 %patch133 -p1
 %patch134 -p1
+%patch137 -p1
+%patch138 -p1
+%patch139 -p1
+%patch140 -p1
+%patch141 -p1
 #Fedora patching end
 
 %patch1002 -p1
@@ -558,6 +572,7 @@
 %patch1007 -p1
 
 %patch2000 -p1
+%patch2001 -p1
 
 #unpack libipt
 %if 0%{have_libipt}
@@ -568,6 +583,8 @@
 )
 %endif
 
+%patch4000 -p1
+
 find -name "*.orig" | xargs rm -f
 ! find -name "*.rej" # Should not happen.
 
@@ -885,7 +902,11 @@
 
   # Run all the scheduled testsuite runs also in the PIE mode.
   # See also: gdb-runtest-pie-override.exp
-  CHECK="$(echo $CHECK|sed 's#check//unix/[^ ]*#& &/-fPIC/-pie#g')"
+  if rpm -q gcc-PIE; then
+  CHECK="$(echo $CHECK | sed 's#check//unix/[^ ]*#& &/-fno-PIE/-no-pie#g')"
+  else
+  CHECK="$(echo $CHECK | sed 's#check//unix/[^ ]*#& &/-fPIE/-pie#g')"
+  fi
 
   ./orphanripper make %{?_smp_mflags} -k $CHECK || :
 )

++ gdb-fix-multidictionary.exp-for-gdb-8.2.patch ++
[gdb] Fix multidictionary.exp for gdb 8.2

---
 gdb/testsuite/gdb.dwarf2/multidictionary.exp |  2 +-
 

commit gdb for openSUSE:Factory

2018-11-13 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2018-11-13 16:24:46

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


Package is "gdb"

Tue Nov 13 16:24:46 2018 rev:123 rq:647251 version:8.2

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2018-09-16 18:29:48.835456193 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2018-11-13 
16:24:57.058731388 +0100
@@ -1,0 +2,7 @@
+Wed Nov  7 15:04:28 UTC 2018 - tdevr...@suse.com
+
+- Fix crash when reading core [bsc #1109013]
+  * Add gdb-fix-crash-when-reading-core.patch
+https://sourceware.org/ml/gdb-cvs/2018-11/msg00022.html
+
+---

New:

  gdb-fix-crash-when-reading-core.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.l85FQr/_old  2018-11-13 16:25:01.906723716 +0100
+++ /var/tmp/diff_new_pack.l85FQr/_new  2018-11-13 16:25:01.910723710 +0100
@@ -240,6 +240,9 @@
 Patch1005:  gdb-7.10-swo18929.patch
 Patch1007:  gdb-fix-s390-build.diff
 
+# Backports from master
+Patch2000:  gdb-fix-crash-when-reading-core.patch
+
 # libipt support
 Patch3000:  v1.5-libipt-static.patch
 
@@ -554,6 +557,8 @@
 %patch1005 -p1
 %patch1007 -p1
 
+%patch2000 -p1
+
 #unpack libipt
 %if 0%{have_libipt}
 tar xzf %{SOURCE7}

++ gdb-fix-crash-when-reading-core.patch ++
>From 31aceee86308321c2ef299e50773d0043e458e7f Mon Sep 17 00:00:00 2001
From: Tom de Vries 
Date: Thu, 1 Nov 2018 09:21:18 +0100
Subject: [PATCH] [gdb] Fix gdb crash when reading core file

Consider the test-case from this patch, compiled with O0.

The executable segfaults, and generates a core dump:
...
$ ./a.out
Segmentation fault (core dumped)
...

When loading the core file, limiting stack size to 4MB, gdb crashes:
...
$ ulimit -s 4096
$ gdb -batch ./a.out core.saved
[New LWP 19379]
Segmentation fault (core dumped)
...

The crash originates here in linux_vsyscall_range_raw, where we call alloca
with phdrs_size == 4194112 (roughly 4MB):
...
  phdrs = (Elf_Internal_Phdr *) alloca (phdrs_size);
...

While for this test-case gdb runs fine with the system default stack limit of
8MB, there are cases reported of 12MB phdrs_size where gdb also crashes with
the system default stack limit.

Fix this by using xmalloc instead of alloca, which prevents the crash provided
the stack limit is at least 112kb.

Build and reg-tested on x86_64-linux.

2018-11-06  Tom de Vries  

* linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
program headers.

* gdb.base/many-headers.c: New test.
* gdb.base/many-headers.exp: New file.
---
 gdb/ChangeLog   |  5 +++
 gdb/linux-tdep.c| 12 +++---
 gdb/testsuite/ChangeLog |  5 +++
 gdb/testsuite/gdb.base/many-headers.c   | 50 
 gdb/testsuite/gdb.base/many-headers.exp | 67 +
 5 files changed, 133 insertions(+), 6 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/many-headers.c
 create mode 100644 gdb/testsuite/gdb.base/many-headers.exp

diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c
index c958c0dfe9..2c766808f0 100644
--- a/gdb/linux-tdep.c
+++ b/gdb/linux-tdep.c
@@ -2269,7 +2269,6 @@ linux_vsyscall_range_raw (struct gdbarch *gdbarch, struct 
mem_range *range)
  the vDSO.  */
   if (!target_has_execution)
 {
-  Elf_Internal_Phdr *phdrs;
   long phdrs_size;
   int num_phdrs, i;
 
@@ -2277,16 +2276,17 @@ linux_vsyscall_range_raw (struct gdbarch *gdbarch, 
struct mem_range *range)
   if (phdrs_size == -1)
return 0;
 
-  phdrs = (Elf_Internal_Phdr *) alloca (phdrs_size);
-  num_phdrs = bfd_get_elf_phdrs (core_bfd, phdrs);
+  gdb::unique_xmalloc_ptr
+   phdrs ((Elf_Internal_Phdr *) xmalloc (phdrs_size));
+  num_phdrs = bfd_get_elf_phdrs (core_bfd, phdrs.get ());
   if (num_phdrs == -1)
return 0;
 
   for (i = 0; i < num_phdrs; i++)
-   if (phdrs[i].p_type == PT_LOAD
-   && phdrs[i].p_vaddr == range->start)
+   if (phdrs.get ()[i].p_type == PT_LOAD
+   && phdrs.get ()[i].p_vaddr == range->start)
  {
-   range->length = phdrs[i].p_memsz;
+   range->length = phdrs.get ()[i].p_memsz;
return 1;
  }
 
diff --git a/gdb/testsuite/gdb.base/many-headers.c 
b/gdb/testsuite/gdb.base/many-headers.c
new file mode 100644
index 00..49675b4e40
--- /dev/null
+++ b/gdb/testsuite/gdb.base/many-headers.c
@@ -0,0 +1,50 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+   Copyright 2018 Free Software Foundation, Inc.
+
+   

commit gdb for openSUSE:Factory

2018-08-27 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2018-08-27 13:45:45

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


Package is "gdb"

Mon Aug 27 13:45:45 2018 rev:121 rq:629231 version:8.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2018-04-10 09:50:48.791850770 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2018-08-27 
13:45:50.004250255 +0200
@@ -1,0 +2,6 @@
+Fri Aug 10 08:58:06 UTC 2018 - tchva...@suse.com
+
+- Apply patch from fedora to build with python3.7:
+  * gdb-fix-python37-breakage.patch
+
+---

New:

  gdb-fix-python37-breakage.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.DzCTwy/_old  2018-08-27 13:45:53.920255867 +0200
+++ /var/tmp/diff_new_pack.DzCTwy/_new  2018-08-27 13:45:53.920255867 +0200
@@ -23,7 +23,7 @@
 %bcond_without testsuite
 
 Summary:A GNU source-level debugger for C, C++, Fortran and other 
languages
-License:GPL-3.0+ and GPL-3.0-with-GCC-exception and LGPL-2.1+ and 
LGPL-3.0+
+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
 Group:  Development/Tools/Debuggers
 Name:   gdb
 
@@ -231,6 +231,7 @@
 Patch1003:  gdb-pahole-python2.patch
 Patch1004:  gdb-fix-buf-overflow.diff
 Patch1005:  gdb-7.10-swo18929.patch
+Patch1006:  gdb-fix-python37-breakage.patch
 
 # libipt support
 Patch3000:  v1.5-libipt-static.patch
@@ -352,7 +353,7 @@
 %if %{suse_version} > 1010
 %package -n gdbserver
 Summary:A standalone server for GDB (the GNU source-level debugger)
-License:GPL-3.0+ and GPL-3.0-with-GCC-exception and LGPL-2.1+ and 
LGPL-3.0+
+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
 Group:  Development/Tools/Debuggers
 
 %description -n gdbserver
@@ -366,7 +367,7 @@
 
 %package doc
 Summary:Documentation for GDB (the GNU source-level debugger)
-License:GFDL-1.3
+License:GFDL-1.3-only
 Group:  Documentation/Other
 PreReq: %{install_info_prereq}
 
@@ -538,6 +539,7 @@
 %patch1003 -p1
 %patch1004 -p1
 %patch1005 -p1
+%patch1006 -p1
 
 #unpack libipt
 %if 0%{have_libipt}

++ gdb-fix-python37-breakage.patch ++
>From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
From: Paul Koning 
Date: Fri, 8 Jun 2018 13:26:36 -0400
Subject: gdb-fix-python37-breakage.patch

FileName: gdb-fix-python37-breakage.patch

;; Fix build breakage with Python 3.7
;; RHBZ #1577396

Fix build issue with Python 3.7

Originally reported in
https://bugzilla.redhat.com/show_bug.cgi?id=1577396 -- gdb build fails
with Python 3.7 due to references to a Python internal function whose
declaration changed in 3.7.

gdb/ChangeLog
2018-06-08  Paul Koning  

PR gdb/23252

* python/python.c (do_start_initialization):
Avoid call to internal Python API.
(init__gdb_module): New function.

diff --git a/gdb/python/python.c b/gdb/python/python.c
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1810,6 +1810,17 @@ finalize_python (void *ignore)
   restore_active_ext_lang (previous_active);
 }
 
+#ifdef IS_PY3K
+/* This is called via the PyImport_AppendInittab mechanism called
+   during initialization, to make the built-in _gdb module known to
+   Python.  */
+PyMODINIT_FUNC
+init__gdb_module (void)
+{
+  return PyModule_Create (_GdbModuleDef);
+}
+#endif
+
 static bool
 do_start_initialization ()
 {
@@ -1850,6 +1861,9 @@ do_start_initialization ()
  remain alive for the duration of the program's execution, so
  it is not freed after this call.  */
   Py_SetProgramName (progname_copy);
+
+  /* Define _gdb as a built-in module.  */
+  PyImport_AppendInittab ("_gdb", init__gdb_module);
 #else
   Py_SetProgramName (progname.release ());
 #endif
@@ -1859,9 +1873,7 @@ do_start_initialization ()
   PyEval_InitThreads ();
 
 #ifdef IS_PY3K
-  gdb_module = PyModule_Create (_GdbModuleDef);
-  /* Add _gdb module to the list of known built-in modules.  */
-  _PyImport_FixupBuiltin (gdb_module, "_gdb");
+  gdb_module = PyImport_ImportModule ("_gdb");
 #else
   gdb_module = Py_InitModule ("_gdb", python_GdbMethods);
 #endif



commit gdb for openSUSE:Factory

2018-04-10 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2018-04-10 09:50:43

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


Package is "gdb"

Tue Apr 10 09:50:43 2018 rev:120 rq:593526 version:8.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2018-03-16 10:33:35.481553999 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2018-04-10 
09:50:48.791850770 +0200
@@ -1,0 +2,5 @@
+Tue Mar 27 14:01:27 UTC 2018 - m...@suse.com
+
+- Add some -Wno-error flags for gcc-8 compatibility.
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.xM8ZGZ/_old  2018-04-10 09:50:53.043696710 +0200
+++ /var/tmp/diff_new_pack.xM8ZGZ/_new  2018-04-10 09:50:53.047696565 +0200
@@ -590,11 +590,21 @@
 # warn about unknown -Wno- flags, _except_ if there are other
 # diagnostics as well, so let's force an uninitialized use warning
 # and grep for the diagnostic about the -Wno flag:
-if ! echo "int foo(void) { int a; return a;} " | \
-   $CC  -x c -c - -o /dev/null -W -Wno-implicit-fallthrough 2>&1 | \
-   grep Wno-implici >/dev/null; then
-  CFLAGS="$CFLAGS -Wno-implicit-fallthrough"
-fi
+# -Wno-error=cast-function-type:
+# FIXME: gcc-8.0:
+# ./elf32-target.h:215:4: error: cast between incompatible function types from 
'void * (*)(bfd *)' {aka 'void * (*)(struct bfd *)'} to 'asymbol * (*)(bfd *, 
void *, long unsigned int)' {aka 'struct bfd_symbol * (*)(struc t bfd *, void 
*, long unsigned int)'} [-Werror=cast-function-type]
+#((asymbol * (*) (bfd *, void *, unsigned long)) bfd_nullvoidptr)
+# -Wno-error=stringop-truncation:
+# FIXME: gcc-8.0:
+# linux-tdep.c:1767:11: error: ‘char* strncpy(char*, const char*, size_t)’ 
specified bound 17 equals destination size [-Werror=stringop-truncation]
+#strncpy (p->pr_fname, basename, sizeof (p->pr_fname));
+for opt in -Wno-implicit-fallthrough -Wno-error=cast-function-type 
-Wno-error=stringop-truncation; do
+  if ! echo "int foo(void) { int a; return a;} " | \
+ $CC  -x c -c - -o /dev/null -W ${opt} 2>&1 | \
+ egrep "Wno|no option" >/dev/null; then
+CFLAGS="$CFLAGS ${opt}"
+  fi
+done
 %if %{have_libipt}
 CFLAGS="$CFLAGS -DPERF_ATTR_SIZE_VER5_BUNDLE"
 (




commit gdb for openSUSE:Factory

2017-11-19 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2017-11-19 11:06:10

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


Package is "gdb"

Sun Nov 19 11:06:10 2017 rev:118 rq:542017 version:8.0.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2017-11-14 14:07:16.657381926 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2017-11-19 
11:06:15.210627396 +0100
@@ -1,0 +2,6 @@
+Wed Nov 15 08:54:04 UTC 2017 - sch...@suse.de
+
+- Support --without=testsuite and disable testsuite for qemu-linux-user
+  builds
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.h5MenL/_old  2017-11-19 11:06:19.61849 +0100
+++ /var/tmp/diff_new_pack.h5MenL/_new  2017-11-19 11:06:19.626466378 +0100
@@ -17,7 +17,10 @@
 #
 
 
-%define _with_testsuite 1
+%if 0%{?qemu_user_space_build}
+%global _without_testsuite 1
+%endif
+%bcond_without testsuite
 
 Summary:A GNU source-level debugger for C, C++, Fortran and other 
languages
 License:GPL-3.0+ and GPL-3.0-with-GCC-exception and LGPL-2.1+ and 
LGPL-3.0+
@@ -328,7 +331,7 @@
 ExclusiveArch:  noarch i386 x86_64 ppc ppc64 ia64 s390 s390x
 %endif # 0%{?el5:1}
 
-%if 0%{?_with_testsuite:1}
+%if %{with testsuite}
 
 # Ensure the devel libraries are installed for both multilib arches.
 %global bits_local %{?_isa}
@@ -384,7 +387,7 @@
 BuildRequires:  glibc-devel-static
 %endif
 
-%endif # 0%{?_with_testsuite:1}
+%endif # %{with testsuite}
 
 %ifarch ia64
 BuildRequires:  libunwind-devel
@@ -868,7 +871,7 @@
 # Initially we're in the %{gdb_src} directory.
 cd %{gdb_build}
 
-%if 0%{!?_with_testsuite:1}
+%if %{without testsuite}
 echo TESTSUITE DISABLED=
 %else
 echo TESTING=
@@ -1133,7 +1136,7 @@
 %endif
 %endif
 
-%if 0%{?_with_testsuite:1}
+%if %{with testsuite}
 %files testresults
 %defattr(-,root,root)
 %doc %{gdb_build}/gdb/gdb-*.sum




commit gdb for openSUSE:Factory

2017-11-14 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2017-11-14 14:07:14

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


Package is "gdb"

Tue Nov 14 14:07:14 2017 rev:117 rq:539939 version:8.0.1

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2017-10-10 11:34:57.360619683 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2017-11-14 
14:07:16.657381926 +0100
@@ -1,0 +2,10 @@
+Wed Oct 25 12:14:54 UTC 2017 - jmate...@suse.com
+
+- switch to Python 3 for Tumbleweed 1320 and up
+
+---
+Mon Oct  9 12:43:07 UTC 2017 - m...@suse.com
+
+- Remove %clean section.
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.IsPNcE/_old  2017-11-14 14:07:19.549276463 +0100
+++ /var/tmp/diff_new_pack.IsPNcE/_new  2017-11-14 14:07:19.553276317 +0100
@@ -50,6 +50,13 @@
 %global have_inproctrace 1
 %endif # %{ix86} x86_64
 
+# Choose python version
+%if 0%{?suse_version} >= 1320
+%define python python3
+%else
+%define python python
+%endif
+
 # GDB patches have the format `gdb--bz-.patch'.
 # They should be created using patch level 1: diff -up ./gdb (or gdb-6.3/gdb).
 
@@ -303,9 +310,9 @@
 BuildRequires:  zlib-devel
 %if 0%{!?_without_python:1}
 %if 0%{suse_version} > 1000
-Requires:   python-base
+Requires:   %{python}-base
 %endif
-BuildRequires:  python-devel
+BuildRequires:  %{python}-devel
 %endif # 0%{!?_without_python:1}
 
 %global have_libipt 0
@@ -754,7 +761,7 @@
--without-libexpat-prefix   \
--enable-tui\
 %if 0%{!?_without_python:1}
-   --with-python   \
+   --with-python=%{_bindir}/%{python}  \
 %else
--without-python\
 %endif
@@ -988,7 +995,7 @@
 cp -p $RPM_BUILD_DIR/%{gdb_src}/gdb/gdb-gdb.py 
$RPM_BUILD_ROOT/usr/lib/debug%{_bindir}/
 for pyo in "" "-O";do
   # RHEL-5: AttributeError: 'module' object has no attribute 'compile_file'
-  python $pyo -c 'import compileall, re, sys; sys.exit (not 
compileall.compile_dir("'"$RPM_BUILD_ROOT/usr/lib/debug%{_bindir}"'", 1, 
"'"/usr/lib/debug%{_bindir}"'"))'
+  %{python} $pyo -c 'import compileall, re, sys; sys.exit (not 
compileall.compile_dir("'"$RPM_BUILD_ROOT/usr/lib/debug%{_bindir}"'", 1, 
"'"/usr/lib/debug%{_bindir}"'"))'
 done
 %endif # 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}
 
@@ -1073,9 +1080,6 @@
 
 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %post
 # This step is part of the installation of the RPM. Not to be confused
 # with the 'make install ' of the build (rpmbuild) process.




commit gdb for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2017-09-15 21:08:43

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


Package is "gdb"

Fri Sep 15 21:08:43 2017 rev:115 rq:525899 version:8.0

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2017-06-28 11:15:04.862154194 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2017-09-15 
21:08:45.545154787 +0200
@@ -1,0 +2,6 @@
+Wed Sep 13 14:09:26 UTC 2017 - m...@suse.com
+
+- Disable guile extensions for new distros, the gdb support
+  is incompatible with guile 2.2.
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.Cnu4Sh/_old  2017-09-15 21:08:47.824834721 +0200
+++ /var/tmp/diff_new_pack.Cnu4Sh/_new  2017-09-15 21:08:47.824834721 +0200
@@ -236,7 +236,7 @@
 BuildRequires:  %{gcc}-c++
 BuildRequires:  gettext
 BuildRequires:  glibc-devel
-%if 0%{suse_version} > 1110
+%if 0%{suse_version} > 1110 && 0%{suse_version} < 1330
 BuildRequires:  guile-devel
 %endif
 BuildRequires:  ncurses-devel




commit gdb for openSUSE:Factory

2016-07-12 Thread h_root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2016-07-12 23:45:03

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


Package is "gdb"

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2016-05-31 12:09:42.0 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2016-07-12 
23:45:06.0 +0200
@@ -1,0 +2,13 @@
+Mon Jun 20 16:36:04 UTC 2016 - m...@suse.com
+
+- Rebase to gdb 7.11.1: minor bug fixes.
+- Remove gdb-gcc6-Wparentheses-warning.patch (applied upstream).
+- Add some patches from Fedora F24:
+  gdb-bare-DW_TAG_lexical_block-1of2.patch
+  gdb-bare-DW_TAG_lexical_block-2of2.patch
+  gdb-bz1219747-attach-kills.patch
+  gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch
+  gdb-rhbz1325795-framefilters-test.patch
+  gdb-testsuite-dw2-undefined-ret-addr.patch
+
+---

Old:

  gdb-7.11.tar.bz2
  gdb-gcc6-Wparentheses-warning.patch

New:

  gdb-7.11.1.tar.bz2
  gdb-bare-DW_TAG_lexical_block-1of2.patch
  gdb-bare-DW_TAG_lexical_block-2of2.patch
  gdb-bz1219747-attach-kills.patch
  gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch
  gdb-rhbz1325795-framefilters-test.patch
  gdb-testsuite-dw2-undefined-ret-addr.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.rmAP2w/_old  2016-07-12 23:45:10.0 +0200
+++ /var/tmp/diff_new_pack.rmAP2w/_new  2016-07-12 23:45:10.0 +0200
@@ -27,7 +27,7 @@
 %global snap   20130731
 # See timestamp of source gnulib installed into gdb/gnulib/ .
 %global snapgnulib 20121213
-Version:7.11
+Version:7.11.1
 Release:0
 
 # The release always contains a leading reserved number, start it at 1.
@@ -200,14 +200,20 @@
 Patch107:   gdb-fortran-frame-string.patch
 Patch108:   gdb-python-gil.patch
 Patch109:   gdb-jit-reader-multilib.patch
-Patch110:   gdb-fedora-libncursesw.patch
-Patch111:   gdb-opcodes-clflushopt-test.patch
-Patch112:   gdb-dts-rhel6-python-compat.patch
-Patch113:   gdb-6.6-buildid-locate-rpm-scl.patch
-Patch114:   gdb-readline62-ask-more-rh.patch
-Patch115:   gdb-6.8-attach-signalled-detach-stopped.patch
-Patch116:   gdb-6.8-quit-never-aborts.patch
-Patch117:   gdb-testsuite-readline63-sigint.patch
+Patch110:   gdb-bz1219747-attach-kills.patch
+Patch111:   gdb-fedora-libncursesw.patch
+Patch112:   gdb-opcodes-clflushopt-test.patch
+Patch113:   gdb-dts-rhel6-python-compat.patch
+Patch114:   gdb-6.6-buildid-locate-rpm-scl.patch
+Patch115:   gdb-readline62-ask-more-rh.patch
+Patch116:   gdb-6.8-attach-signalled-detach-stopped.patch
+Patch117:   gdb-6.8-quit-never-aborts.patch
+Patch118:   gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch
+Patch120:   gdb-testsuite-dw2-undefined-ret-addr.patch
+Patch121:   gdb-rhbz1325795-framefilters-test.patch
+Patch122:   gdb-bare-DW_TAG_lexical_block-1of2.patch
+Patch123:   gdb-bare-DW_TAG_lexical_block-2of2.patch
+Patch124:   gdb-testsuite-readline63-sigint.patch
 #Fedora Packages end
 
 # Upstream patch to fix gcc -Werror
@@ -215,7 +221,6 @@
 Patch1003:  gdb-pahole-python2.patch
 Patch1004:  gdb-fix-buf-overflow.diff
 Patch1005:  gdb-7.10-swo18929.patch
-Patch1006:  gdb-gcc6-Wparentheses-warning.patch
 
 BuildRequires:  bison
 BuildRequires:  flex
@@ -467,10 +472,7 @@
 %patch107 -p1
 %patch108 -p1
 %patch109 -p1
-%if 0
-# disable, openSUSE doesn't need it
 %patch110 -p1
-%endif
 %patch111 -p1
 %patch112 -p1
 %patch113 -p1
@@ -478,13 +480,18 @@
 %patch115 -p1
 %patch116 -p1
 %patch117 -p1
+%patch118 -p1
+%patch120 -p1
+%patch121 -p1
+%patch122 -p1
+%patch123 -p1
+%patch124 -p1
 #Fedora patching end
 
 %patch1002 -p1
 %patch1003 -p1
 %patch1004 -p1
 %patch1005 -p1
-%patch1006 -p1
 
 find -name "*.orig" | xargs rm -f
 ! find -name "*.rej" # Should not happen.

++ gdb-6.8-bz466901-backtrace-full-prelinked.patch ++
--- /var/tmp/diff_new_pack.rmAP2w/_old  2016-07-12 23:45:10.0 +0200
+++ /var/tmp/diff_new_pack.rmAP2w/_new  2016-07-12 23:45:10.0 +0200
@@ -35,9 +35,9 @@
 +
 +set testfile "dw2-loclist-prelinked"
 +set srcfuncfile ${testfile}-func.S
-+set binsharedfuncfile ${objdir}/${subdir}/${testfile}.so
++set binsharedfuncfile [standard_output_file ${testfile}.so]
 +set srcmainfile ${testfile}-main.c
-+set binfile ${objdir}/${subdir}/${testfile}
++set binfile [standard_output_file ${testfile}]
 +
 +remote_exec build "rm -f ${binfile}"
 +

++ gdb-7.11.tar.bz2 -> gdb-7.11.1.tar.bz2 ++
/work/SRC/openSUSE:Factory/gdb/gdb-7.11.tar.bz2 
/work/SRC/openSUSE:Factory/.gdb.new/gdb-7.11.1.tar.bz2 differ: 

commit gdb for openSUSE:Factory

2016-05-31 Thread h_root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2016-05-31 12:09:41

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


Package is "gdb"

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2016-04-30 23:25:53.0 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2016-05-31 
12:09:42.0 +0200
@@ -1,0 +2,5 @@
+Tue May 24 10:49:47 UTC 2016 - martin.li...@suse.com
+
+- Add gdb-gcc6-Wparentheses-warning.patch to fix Werrors reported by GCC6.
+
+---

New:

  gdb-gcc6-Wparentheses-warning.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.ZKiEZE/_old  2016-05-31 12:09:44.0 +0200
+++ /var/tmp/diff_new_pack.ZKiEZE/_new  2016-05-31 12:09:44.0 +0200
@@ -215,6 +215,7 @@
 Patch1003:  gdb-pahole-python2.patch
 Patch1004:  gdb-fix-buf-overflow.diff
 Patch1005:  gdb-7.10-swo18929.patch
+Patch1006:  gdb-gcc6-Wparentheses-warning.patch
 
 BuildRequires:  bison
 BuildRequires:  flex
@@ -483,6 +484,7 @@
 %patch1003 -p1
 %patch1004 -p1
 %patch1005 -p1
+%patch1006 -p1
 
 find -name "*.orig" | xargs rm -f
 ! find -name "*.rej" # Should not happen.

++ gdb-gcc6-Wparentheses-warning.patch ++
>From b631e59ba05af7c38d3e2d6d408bfe60b57f Mon Sep 17 00:00:00 2001
From: Kyrylo Tkachov 
Date: Tue, 3 May 2016 09:40:54 +0100
Subject: [PATCH] [gdb] Fix -Wparentheses warnings

2016-05-03  Kyrylo Tkachov  

* symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
warning.
(find_pc_mapped_section): Likewise.
(list_overlays_command): Likewise.
---
 gdb/ChangeLog |  7 ++
 gdb/symfile.c | 80 ---
 2 files changed, 50 insertions(+), 37 deletions(-)

diff --git a/gdb/symfile.c b/gdb/symfile.c
index 0d67bfd..ca304b8 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -3285,19 +3285,21 @@ find_pc_overlay (CORE_ADDR pc)
   struct obj_section *osect, *best_match = NULL;
 
   if (overlay_debugging)
-ALL_OBJSECTIONS (objfile, osect)
-  if (section_is_overlay (osect))
-  {
-   if (pc_in_mapped_range (pc, osect))
+{
+  ALL_OBJSECTIONS (objfile, osect)
+   if (section_is_overlay (osect))
  {
-   if (section_is_mapped (osect))
- return osect;
-   else
+   if (pc_in_mapped_range (pc, osect))
+ {
+   if (section_is_mapped (osect))
+ return osect;
+   else
+ best_match = osect;
+ }
+   else if (pc_in_unmapped_range (pc, osect))
  best_match = osect;
  }
-   else if (pc_in_unmapped_range (pc, osect))
- best_match = osect;
-  }
+}
   return best_match;
 }
 
@@ -3312,9 +3314,11 @@ find_pc_mapped_section (CORE_ADDR pc)
   struct obj_section *osect;
 
   if (overlay_debugging)
-ALL_OBJSECTIONS (objfile, osect)
-  if (pc_in_mapped_range (pc, osect) && section_is_mapped (osect))
-   return osect;
+{
+  ALL_OBJSECTIONS (objfile, osect)
+   if (pc_in_mapped_range (pc, osect) && section_is_mapped (osect))
+ return osect;
+}
 
   return NULL;
 }
@@ -3330,31 +3334,33 @@ list_overlays_command (char *args, int from_tty)
   struct obj_section *osect;
 
   if (overlay_debugging)
-ALL_OBJSECTIONS (objfile, osect)
+{
+  ALL_OBJSECTIONS (objfile, osect)
   if (section_is_mapped (osect))
-  {
-   struct gdbarch *gdbarch = get_objfile_arch (objfile);
-   const char *name;
-   bfd_vma lma, vma;
-   int size;
-
-   vma = bfd_section_vma (objfile->obfd, osect->the_bfd_section);
-   lma = bfd_section_lma (objfile->obfd, osect->the_bfd_section);
-   size = bfd_get_section_size (osect->the_bfd_section);
-   name = bfd_section_name (objfile->obfd, osect->the_bfd_section);
-
-   printf_filtered ("Section %s, loaded at ", name);
-   fputs_filtered (paddress (gdbarch, lma), gdb_stdout);
-   puts_filtered (" - ");
-   fputs_filtered (paddress (gdbarch, lma + size), gdb_stdout);
-   printf_filtered (", mapped at ");
-   fputs_filtered (paddress (gdbarch, vma), gdb_stdout);
-   puts_filtered (" - ");
-   fputs_filtered (paddress (gdbarch, vma + size), gdb_stdout);
-   puts_filtered ("\n");
-
-   nmapped++;
-  }
+   {
+ struct gdbarch *gdbarch = get_objfile_arch (objfile);
+ const char *name;
+ bfd_vma lma, vma;
+ int size;
+
+ vma = bfd_section_vma (objfile->obfd, 

commit gdb for openSUSE:Factory

2015-11-11 Thread h_root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2015-11-11 10:29:15

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


Package is "gdb"

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2015-07-16 17:17:55.0 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2015-11-11 
10:29:17.0 +0100
@@ -1,0 +2,15 @@
+Fri Jul 10 13:49:28 UTC 2015 - m...@suse.de
+
+- Rebase to gdb version 7.9.1:
+  fixes PR python/18299, python/18285.
+- Add gdb-s390-reorder-arch.diff [bnc #936050]
+- Added patches for fate#318039, s390 z13 support:
+  0001-S390-Fix-compiler-invocation-with-compile-command.patch
+  0001-S390-Support-new-vector-register-sections.patch
+  0001-S390-Add-target-descriptions-for-vector-register-set.patch
+  0002-S390-Add-vector-register-support-to-gdb.patch
+  0003-S390-Add-vector-register-support-to-gdbserver.patch
+  0004-S390-Vector-register-test-case.patch
+  0005-S390-Name-invisible-registers-with-the-empty-string-.patch
+
+---

Old:

  gdb-7.9.tar.bz2

New:

  0001-S390-Add-target-descriptions-for-vector-register-set.patch
  0001-S390-Fix-compiler-invocation-with-compile-command.patch
  0001-S390-Support-new-vector-register-sections.patch
  0002-S390-Add-vector-register-support-to-gdb.patch
  0003-S390-Add-vector-register-support-to-gdbserver.patch
  0004-S390-Vector-register-test-case.patch
  0005-S390-Name-invisible-registers-with-the-empty-string-.patch
  gdb-7.9.1.tar.bz2
  gdb-s390-reorder-arch.diff



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.CpYDPu/_old  2015-11-11 10:29:20.0 +0100
+++ /var/tmp/diff_new_pack.CpYDPu/_new  2015-11-11 10:29:20.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package gdb
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # Copyright (c) 2012 RedHat
 #
 # All modifications and additions to the file contributed by third parties
@@ -27,7 +27,7 @@
 %global snap   20130731
 # See timestamp of source gnulib installed into gdb/gnulib/ .
 %global snapgnulib 20121213
-Version:7.9
+Version:7.9.1
 Release:0
 
 # The release always contains a leading reserved number, start it at 1.
@@ -212,6 +212,16 @@
 
 # Upstream patch to fix gcc -Werror
 Patch1002:  gdb-6.6-buildid-locate-rpm-suse.patch
+# Upstream patch for reordering "s390:31-bit" (bnc#936050)
+Patch1003:  gdb-s390-reorder-arch.diff
+# fate#318039
+Patch1004:  0001-S390-Fix-compiler-invocation-with-compile-command.patch
+Patch1005:  0001-S390-Support-new-vector-register-sections.patch
+Patch1006:  0001-S390-Add-target-descriptions-for-vector-register-set.patch
+Patch1007:  0002-S390-Add-vector-register-support-to-gdb.patch
+Patch1008:  0003-S390-Add-vector-register-support-to-gdbserver.patch
+Patch1009:  0004-S390-Vector-register-test-case.patch
+Patch1010:  0005-S390-Name-invisible-registers-with-the-empty-string-.patch
 
 BuildRequires:  bison
 BuildRequires:  flex
@@ -473,6 +483,14 @@
 #Fedora patching end
 
 %patch1002 -p1
+%patch1003 -p1
+%patch1004 -p1
+%patch1005 -p1
+%patch1006 -p1
+%patch1007 -p1
+%patch1008 -p1
+%patch1009 -p1
+%patch1010 -p1
 
 find -name "*.orig" | xargs rm -f
 ! find -name "*.rej" # Should not happen.

++ 0001-S390-Add-target-descriptions-for-vector-register-set.patch ++
 1471 lines (skipped)

++ 0001-S390-Fix-compiler-invocation-with-compile-command.patch ++
>From 60abeae4f219a7a445d11ebaf72d2939413ffe80 Mon Sep 17 00:00:00 2001
From: Andreas Arnez 
Date: Fri, 27 Feb 2015 10:47:54 +0100
Subject: [PATCH] S390: Fix compiler invocation with "compile" command

On 64-bit S390 platforms the "compile" command always failed because
gcc was not invoked correctly.  This patch fixes the compiler
invocation.

gdb/ChangeLog:

* s390-linux-tdep.c (s390_gcc_target_options): Not just handle
31-bit targets, but 64-bit targets as well.
(s390_gnu_triplet_regexp): New function.
(s390_gdbarch_init): Set the gcc_target_options gdbarch method for
64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
method.
---
 gdb/ChangeLog |  9 +
 gdb/s390-linux-tdep.c | 19 ---
 2 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/gdb/s390-linux-tdep.c b/gdb/s390-linux-tdep.c
index 9bd25fe..803779c 100644
--- a/gdb/s390-linux-tdep.c
+++ b/gdb/s390-linux-tdep.c
@@ -2808,12 +2808,24 @@ s390_address_class_name_to_type_flags (struct gdbarch 
*gdbarch,
 return 0;

commit gdb for openSUSE:Factory

2015-07-16 Thread h_root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2015-07-16 17:17:52

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


Package is gdb

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2015-03-05 15:28:39.0 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2015-07-16 
17:17:55.0 +0200
@@ -1,0 +2,12 @@
+Thu Jul  2 13:26:29 UTC 2015 - rguent...@suse.com
+
+- Remove auto-loading non-existent /etc/gdbinit.d/gdb-heap.py
+  from /etc/gdbinit
+
+---
+Mon Jun 29 07:27:44 UTC 2015 - sch...@suse.de
+
+- Add guile-devel to enable Scheme scripting support
+- Run ada tests also on ppc64 and s390
+
+---

Old:

  gdb-7.9.tar.xz

New:

  gdb-7.9.tar.bz2



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.eFS7J4/_old  2015-07-16 17:17:57.0 +0200
+++ /var/tmp/diff_new_pack.eFS7J4/_new  2015-07-16 17:17:57.0 +0200
@@ -36,7 +36,7 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Do not provide URL for snapshots as the file lasts there only for 2 days.
 # ftp://sourceware.org/pub/gdb/releases/gdb-%{version}.tar.gz
-Source: gdb-%{version}.tar.xz
+Source: gdb-%{version}.tar.bz2
 Url:http://gnu.org/software/gdb/
 
 %if %{scl} == devtoolset-1.1
@@ -217,14 +217,15 @@
 BuildRequires:  flex
 BuildRequires:  gettext
 BuildRequires:  glibc-devel
+BuildRequires:  guile-devel
 BuildRequires:  ncurses-devel
 BuildRequires:  texinfo
-BuildRequires:  zlib-devel
 %if %{suse_version}  1020
 BuildRequires:  expat
 %else
 BuildRequires:  libexpat-devel
 %endif
+BuildRequires:  pkg-config
 BuildRequires:  readline-devel
 BuildRequires:  rpm-devel
 BuildRequires:  zlib-devel
@@ -268,7 +269,7 @@
 BuildRequires:  gcc-java
 BuildRequires:  gcc-objc
 # Copied from gcc-4.1.2-32.
-%ifarch %{ix86} x86_64 ia64 ppc alpha
+%ifarch %{ix86} x86_64 ia64 ppc ppc64 s390 alpha
 BuildRequires:  gcc-ada
 %endif
 %if 0%{suse_version}  1110

++ gdb-7.9.tar.xz - gdb-7.9.tar.bz2 ++
/work/SRC/openSUSE:Factory/gdb/gdb-7.9.tar.xz 
/work/SRC/openSUSE:Factory/.gdb.new/gdb-7.9.tar.bz2 differ: char 1, line 1

++ gdbinit ++
--- /var/tmp/diff_new_pack.eFS7J4/_old  2015-07-16 17:17:58.0 +0200
+++ /var/tmp/diff_new_pack.eFS7J4/_new  2015-07-16 17:17:58.0 +0200
@@ -1,4 +1,3 @@
 # System-wide GDB initialization file.
 
-# FIXME: provide a wildcard.
-source %{_sysconfdir}/gdbinit.d/gdb-heap.py
+# FIXME: provide a wildcard for sourcing files in /etc/gdbinit.d/




commit gdb for openSUSE:Factory

2015-03-05 Thread h_root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2015-03-05 15:28:37

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


Package is gdb

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2015-03-01 15:28:11.0 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2015-03-05 
15:28:39.0 +0100
@@ -1,0 +2,5 @@
+Tue Mar  3 11:42:10 UTC 2015 - sch...@suse.de
+
+- Build multi-target also on aarch64
+
+---



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.vMeOhp/_old  2015-03-05 15:28:44.0 +0100
+++ /var/tmp/diff_new_pack.vMeOhp/_new  2015-03-05 15:28:44.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package gdb
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2012 RedHat
 #
 # All modifications and additions to the file contributed by third parties
@@ -509,7 +509,7 @@
 if test -f /usr/%{_lib}/librpm.so.3; then
   export LIBRPM=librpm.so.3
 fi
-%ifarch %ix86 ia64 ppc ppc64 ppc64le s390 s390x x86_64
+%ifarch %ix86 ia64 ppc ppc64 ppc64le s390 s390x x86_64 aarch64
 %define build_multitarget 1
 %else
 %define build_multitarget 0

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit gdb for openSUSE:Factory

2014-12-25 Thread h_root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2014-12-25 23:21:43

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


Package is gdb

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2014-10-16 14:53:49.0 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2014-12-25 
23:20:41.0 +0100
@@ -1,0 +2,13 @@
+Mon Dec 15 07:33:31 UTC 2014 - cshor...@googlemail.com
+
+- Update for GDB 7.8.1
+  * removed (already in upstream): 
+ gdb-babeltrace-configure.patch
+ gdb-async-stopped-on-pid-arg-2of2.patch
+  * amended (partially in upstream):
+ gdb-archer.patch
+ gdb-attach-fail-reasons-5of5.patch
+ gdb-async-stopped-on-pid-arg-1of2.patch
+ gdb-async-stopped-on-pid-arg-testsuite.patch
+
+---

Old:

  gdb-7.8.tar.bz2
  gdb-async-stopped-on-pid-arg-2of2.patch
  gdb-babeltrace-configure.patch

New:

  gdb-7.8.1.tar.gz



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.6xr3al/_old  2014-12-25 23:20:44.0 +0100
+++ /var/tmp/diff_new_pack.6xr3al/_new  2014-12-25 23:20:44.0 +0100
@@ -27,7 +27,7 @@
 %global snap   20130731
 # See timestamp of source gnulib installed into gdb/gnulib/ .
 %global snapgnulib 20121213
-Version:7.8
+Version:7.8.1
 Release:0
 
 # The release always contains a leading reserved number, start it at 1.
@@ -35,8 +35,8 @@
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Do not provide URL for snapshots as the file lasts there only for 2 days.
-# ftp://sourceware.org/pub/gdb/releases/gdb-%{version}.tar.bz2
-Source: gdb-%{version}.tar.bz2
+# ftp://sourceware.org/pub/gdb/releases/gdb-%{version}.tar.gz
+Source: gdb-%{version}.tar.gz
 Url:http://gnu.org/software/gdb/
 
 %if %{scl} == devtoolset-1.1
@@ -199,7 +199,6 @@
 Patch106:   gdb-python-completer-1of2.patch
 Patch107:   gdb-python-completer-2of2.patch
 Patch108:   gdb-fortran-frame-string.patch
-Patch109:   gdb-babeltrace-configure.patch
 Patch110:   gdb-dts-rhel6-python-compat.patch
 Patch111:   gdb-6.6-buildid-locate-rpm-scl.patch
 Patch112:   gdb-readline62-ask-more-rh.patch
@@ -211,7 +210,6 @@
 # Upstream patch to fix gcc -Werror
 Patch1002:  gdb-6.6-buildid-locate-rpm-suse.patch
 Patch1003:  gdb-async-stopped-on-pid-arg-1of2.patch
-Patch1004:  gdb-async-stopped-on-pid-arg-2of2.patch
 Patch1005:  gdb-async-stopped-on-pid-arg-testsuite.patch
 
 BuildRequires:  bison
@@ -455,7 +453,6 @@
 %patch106 -p1
 %patch107 -p1
 %patch108 -p1
-%patch109 -p1
 %patch110 -p1
 %patch110 -p1 -R
 %patch111 -p1
@@ -472,7 +469,6 @@
 
 %patch1002 -p1
 %patch1003 -p1
-%patch1004 -p1
 %patch1005 -p1
 
 find -name *.orig | xargs rm -f

++ gdb-archer.patch ++
--- /var/tmp/diff_new_pack.6xr3al/_old  2014-12-25 23:20:44.0 +0100
+++ /var/tmp/diff_new_pack.6xr3al/_new  2014-12-25 23:20:44.0 +0100
@@ -7,60 +7,33 @@
 tromey/python
 
 
-Index: gdb-7.8/README.archer
-===
 /dev/null  1970-01-01 00:00:00.0 +
-+++ gdb-7.8/README.archer  2014-07-29 19:29:04.861982779 +0200
-@@ -0,0 +1,2 @@
-+This branch originally held the Python code for gdb.  It still exists
-+because a small amount of code here has not yet been merged upstream.
-Index: gdb-7.8/gdb/Makefile.in
-===
 gdb-7.8.orig/gdb/Makefile.in   2014-07-29 19:29:02.665979655 +0200
-+++ gdb-7.8/gdb/Makefile.in2014-07-29 19:29:04.862982781 +0200
-@@ -1476,6 +1476,12 @@ stamp-h: $(srcdir)/config.in config.stat
- CONFIG_LINKS= \
- $(SHELL) config.status
- 
-+.gdbinit: $(srcdir)/gdbinit.in config.status
-+  CONFIG_FILES=.gdbinit:gdbinit.in \
-+CONFIG_COMMANDS= \
-+CONFIG_HEADERS= \
-+$(SHELL) config.status
-+
- config.status: $(srcdir)/configure configure.tgt configure.host 
../bfd/development.sh
-   $(SHELL) config.status --recheck
- 
-Index: gdb-7.8/gdb/data-directory/Makefile.in
-===
 gdb-7.8.orig/gdb/data-directory/Makefile.in2014-07-29 
19:29:02.665979655 +0200
-+++ gdb-7.8/gdb/data-directory/Makefile.in 2014-07-29 19:29:33.053022486 
+0200
-@@ -66,6 +66,8 @@ PYTHON_FILE_LIST = \
+Amended for GDB 7.8.1 - Chris Horler
+
+diff -Nur -x '*.orig' gdb-7.8.1.orig/gdb/data-directory/Makefile.in 
gdb-7.8.1/gdb/data-directory/Makefile.in
+--- gdb-7.8.1.orig/gdb/data-directory/Makefile.in  2014-10-29 
19:45:50.0 

commit gdb for openSUSE:Factory

2014-10-16 Thread h_root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2014-10-16 14:53:18

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


Package is gdb

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2014-08-20 17:51:47.0 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2014-10-16 
14:53:49.0 +0200
@@ -1,0 +2,8 @@
+Fri Oct 10 10:01:27 UTC 2014 - hrvoje.sen...@gmail.com
+
+- Added gdb-async-stopped-on-pid-arg-1of2.patch,
+  gdb-async-stopped-on-pid-arg-2of2.patch and
+  gdb-async-stopped-on-pid-arg-testsuite.patch to resolve
+  https://sourceware.org/bugzilla/show_bug.cgi?id=17347
+
+---

New:

  gdb-async-stopped-on-pid-arg-1of2.patch
  gdb-async-stopped-on-pid-arg-2of2.patch
  gdb-async-stopped-on-pid-arg-testsuite.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.9a21Tz/_old  2014-10-16 14:53:51.0 +0200
+++ /var/tmp/diff_new_pack.9a21Tz/_new  2014-10-16 14:53:51.0 +0200
@@ -210,6 +210,9 @@
 
 # Upstream patch to fix gcc -Werror
 Patch1002:  gdb-6.6-buildid-locate-rpm-suse.patch
+Patch1003:  gdb-async-stopped-on-pid-arg-1of2.patch
+Patch1004:  gdb-async-stopped-on-pid-arg-2of2.patch
+Patch1005:  gdb-async-stopped-on-pid-arg-testsuite.patch
 
 BuildRequires:  bison
 BuildRequires:  flex
@@ -468,6 +471,9 @@
 #Fedora patching end
 
 %patch1002 -p1
+%patch1003 -p1
+%patch1004 -p1
+%patch1005 -p1
 
 find -name *.orig | xargs rm -f
 ! find -name *.rej # Should not happen.

++ gdb-async-stopped-on-pid-arg-1of2.patch ++
http://sourceware.org/ml/gdb-patches/2014-09/msg00102.html
Subject: Re: Regression: GDB stopped on run with attached process (PR 17347)  
[Re: [pushed+7.8] Re: [PATCH] Fix attach command vs user input race

On 09/03/2014 08:58 AM, Jan Kratochvil wrote:

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

Thanks Jan.

Here's a fix, test included.  Comments?

Thanks,
Pedro Alves

--
[PATCH] gdb/17347 - Regression: GDB stopped on run with attached process

Doing:

  gdb --pid=PID -ex run

Results in GDB getting a SIGTTIN, and thus ending stopped.  That's
usually indicative of a missing target_terminal_ours call.

E.g., from the PR:

 $ sleep 1h  p=$!; sleep 0.1; gdb -batch sleep $p -ex run
 [1] 28263
 [1]   Killed  sleep 1h

 [2]+  Stopped gdb -batch sleep $p -ex run

The workaround is doing:

 gdb -ex attach $PID -ex run

instead of

 gdb [-p] $PID -ex run

With the former, gdb waits for the attach command to complete before
moving on to the run command, because the interpreter is in sync
mode at this point, within execute_command.  But for the latter,
attach_command is called directly from captured_main, and thus misses
that waiting.  IOW, run is running before the attach continuation
has run, before the program stops and attach completes.  The broken
terminal settings are just one symptom of that.  Any command that
queries or requires input results in the same.

The fix is to wait in catch_command_errors (which is specific to
main.c nowadays), just like we wait in execute_command.

gdb/ChangeLog:
2014-09-03  Pedro Alves  pal...@redhat.com

PR gdb/17347
* main.c: Include infrun.h.
(catch_command_errors, catch_command_errors_const): Wait for the
foreground command to complete.
* top.c (maybe_wait_sync_command_done): New function, factored out
from ...
(maybe_wait_sync_command_done): ... here.
* top.h (maybe_wait_sync_command_done): New declaration.

gdb/testsuite/ChangeLog:
2014-09-03  Pedro Alves  pal...@redhat.com

PR gdb/17347
* gdb.base/attach.exp (spawn_test_prog): New, factored out from
...
(do_attach_tests, do_call_attach_tests, do_command_attach_tests):
... here.
(gdb_spawn_with_cmdline_opts): New procedure.
(test_command_line_attach_run): New procedure.
(top level): Call it.
---
 gdb/main.c|   9 +++
 gdb/testsuite/gdb.base/attach.exp | 118 ++
 gdb/top.c |  26 +
 gdb/top.h |   8 +++
 4 files changed, 114 insertions(+), 47 deletions(-)

Index: gdb-7.8/gdb/main.c
===
--- gdb-7.8.orig/gdb/main.c 2014-09-07 19:12:45.066981588 +0200
+++ gdb-7.8/gdb/main.c  2014-09-07 19:14:22.613095201 +0200
@@ -47,6 +47,7 @@
 #include filenames.h
 #include filestuff.h
 #include event-top.h
+#include infrun.h
 
 /* The selected interpreter.  This will 

commit gdb for openSUSE:Factory

2014-06-30 Thread h_root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2014-07-01 07:05:17

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


Package is gdb

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2014-02-15 08:13:56.0 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2014-07-01 
07:05:19.0 +0200
@@ -1,0 +2,23 @@
+Thu Jun 26 14:00:26 UTC 2014 - rguent...@suse.com
+
+- Add baselibs.conf to sources.
+
+---
+Thu Jun 26 08:59:49 UTC 2014 - rguent...@suse.com
+
+- For _with_testsuite require gcc-fortran, not gcc-gfortran.
+  [bnc#884399]
+
+---
+Wed May 14 07:43:54 UTC 2014 - rguent...@suse.com
+
+- Fix debugging of threaded 31bit inferiors on s390x
+  (gdb-7.7-bnc877566.patch).  [bnc#877566]
+- Add patchlist.pl and patchname_get.sh as sources.
+
+---
+Wed Feb 12 16:24:38 UTC 2014 - m...@suse.de
+
+- Fix build on s390 (gdb-fix-s390-build.patch).
+
+---

New:

  gdb-7.7-bnc877566.patch
  gdb-fix-s390-build.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.3OGz5N/_old  2014-07-01 07:05:21.0 +0200
+++ /var/tmp/diff_new_pack.3OGz5N/_new  2014-07-01 07:05:21.0 +0200
@@ -82,6 +82,11 @@
 # Provide gdbtui for RHEL-5 and RHEL-6 as it is removed upstream (BZ 797664).
 Source6:gdbtui
 
+# Infrastructure to sync patches from the Fedora rpm
+Source10:   patchlist.pl
+Source11:   patchname_get.sh
+Source12:   baselibs.conf
+
 #Fedora Packages begin
 Patch1: gdb-6.3-rh-testversion-20041202.patch
 Patch2: gdb-archer.patch
@@ -195,6 +200,8 @@
 Patch1002:  gdb-6.6-buildid-locate-rpm-suse.patch
 Patch1004:  gdb-ia64-tdep.patch
 Patch1006:  gdb-ppc64le.patch
+Patch1007:  gdb-fix-s390-build.patch
+Patch1008:  gdb-7.7-bnc877566.patch
 
 BuildRequires:  bison
 BuildRequires:  flex
@@ -247,7 +254,7 @@
 # gcc-objc++ is not covered by the GDB testsuite.
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
-BuildRequires:  gcc-gfortran
+BuildRequires:  gcc-fortran
 BuildRequires:  gcc-java
 BuildRequires:  gcc-objc
 # Copied from gcc-4.1.2-32.
@@ -441,6 +448,8 @@
 %patch1002 -p1
 %patch1004 -p1
 %patch1006 -p1
+%patch1007 -p1
+%patch1008 -p1
 
 find -name *.orig | xargs rm -f
 ! find -name *.rej # Should not happen.

++ gdb-7.7-bnc877566.patch ++
This fixes a bug that leads to various failures when debugging a
31-bit inferior with a 64-bit gdb on s390x.

gdb/
* s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
call to regcache_raw_collect.
---
 gdb/s390-linux-nat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c
index 5c38952..45db7c9 100644
--- a/gdb/s390-linux-nat.c
+++ b/gdb/s390-linux-nat.c
@@ -164,7 +164,7 @@ fill_gregset (const struct regcache *regcache, gregset_t 
*regp, int regno)
  memset (p, 0, 4);
  p += 4;
}
- regcache_raw_collect (regcache, reg, p + 4);
+ regcache_raw_collect (regcache, reg, p);
}
}
 
-- 
1.8.4.2

++ gdb-fix-s390-build.patch ++
Index: gdb-7.7/gdb/s390-linux-nat.c
===
--- gdb-7.7.orig/gdb/s390-linux-nat.c   2014-02-12 16:10:55.0 +0100
+++ gdb-7.7/gdb/s390-linux-nat.c2014-02-12 16:40:33.0 +0100
@@ -563,7 +563,7 @@ s390_can_use_hw_breakpoint (int type, in
 }
 
 static int
-s390_region_ok_for_hw_watchpoint (CORE_ADDR addr, int cnt)
+s390_region_ok_for_hw_watchpoint (CORE_ADDR addr, LONGEST cnt)
 {
   return 1;
 }
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit gdb for openSUSE:Factory

2013-12-11 Thread h_root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2013-12-11 16:14:55

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


Package is gdb

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2013-12-10 09:07:46.0 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2013-12-11 
16:14:56.0 +0100
@@ -1,0 +2,5 @@
+Mon Dec  9 14:16:53 UTC 2013 - uweig...@de.ibm.com
+
+- gdb-ppc64le.patch: add support for powerpc64le-linux
+
+---

New:

  gdb-ppc64le.patch



Other differences:
--
++ gdb.spec ++
--- /var/tmp/diff_new_pack.juidwc/_old  2013-12-11 16:14:58.0 +0100
+++ /var/tmp/diff_new_pack.juidwc/_new  2013-12-11 16:14:58.0 +0100
@@ -191,6 +191,7 @@
 Patch1002: gdb-6.6-buildid-locate-rpm-suse.patch
 Patch1004: gdb-ia64-tdep.patch
 Patch1005: gdb-aarch64-hw-break.patch
+Patch1006: gdb-ppc64le.patch
 
 BuildRequires: ncurses-devel texinfo gettext flex bison glibc-devel zlib-devel
 %if %{suse_version}  1020
@@ -423,6 +424,7 @@
 %patch1002 -p1
 %patch1004 -p1
 %patch1005 -p0
+%patch1006 -p1
 
 find -name *.orig | xargs rm -f
 ! find -name *.rej # Should not happen.
@@ -461,12 +463,12 @@
 if test -f /usr/%{_lib}/librpm.so.3; then
   export LIBRPM=librpm.so.3
 fi
-%ifarch %ix86 ia64 ppc ppc64 s390 s390x x86_64
+%ifarch %ix86 ia64 ppc ppc64 ppc64le s390 s390x x86_64
 %define build_multitarget 1
 %else
 %define build_multitarget 0
 %endif
-%define target_list i686 ia64 powerpc powerpc64 s390 s390x x86_64 arm aarch64 
m68k
+%define target_list i686 ia64 powerpc powerpc64 powerpc64le s390 s390x x86_64 
arm aarch64 m68k
 %define DIST %(echo '%distribution' | sed 's, /.*,,')
 %if %build_multitarget
 EXTRA_TARGETS=%(printf ,%%s-suse-linux %target_list)
@@ -486,7 +488,7 @@
--with-system-gdbinit=%{_sysconfdir}/gdbinit\
--with-gdb-datadir=%{_datadir}/gdb  \
--enable-gdb-build-warnings=,-Wno-unused\
-%ifnarch %{ix86} alpha ia64 ppc s390 s390x x86_64 ppc64 sparc sparcv9 sparc64
+%ifnarch %{ix86} alpha ia64 ppc s390 s390x x86_64 ppc64 ppc64le sparc sparcv9 
sparc64
--disable-werror\
 %else
 %if %{suse_version}  1110
@@ -784,6 +786,9 @@
 %ifnarch ppc ppc64
  rm -f ppc{,64}-linux.xml
 %endif
+%ifnarch ppc64le
+ rm -f ppc64le-linux.xml
+%endif
 )
 
 # It would break RHEL-5 by leaving excessive files for the doc subpackage.

++ gdb-ppc64le.patch ++
 1772 lines (skipped)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit gdb for openSUSE:Factory

2013-09-13 Thread h_root
Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2013-09-13 14:45:37

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


Package is gdb

Changes:

--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2013-09-11 15:42:31.0 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2013-09-13 
14:45:38.0 +0200
@@ -1,0 +2,5 @@
+Thu Sep 12 16:04:25 UTC 2013 - sch...@suse.de
+
+- gdb-aarch64-hw-break.patch: apply last change also to gdbserver
+
+---



Other differences:
--
++ gdb-aarch64-hw-break.patch ++
--- /var/tmp/diff_new_pack.cmKmjF/_old  2013-09-13 14:45:39.0 +0200
+++ /var/tmp/diff_new_pack.cmKmjF/_new  2013-09-13 14:45:39.0 +0200
@@ -1,16 +1,26 @@
 http://permalink.gmane.org/gmane.comp.gdb.patches/88728
+http://permalink.gmane.org/gmane.comp.gdb.patches/90237
 
 Index: gdb/aarch64-linux-nat.c
 ===
-RCS file: /cvs/src/src/gdb/aarch64-linux-nat.c,v
-retrieving revision 1.4
-diff -u -p -r1.4 aarch64-linux-nat.c
 gdb/aarch64-linux-nat.c14 Feb 2013 13:50:30 -  1.4
-+++ gdb/aarch64-linux-nat.c27 Jul 2013 22:42:18 -
+--- gdb/aarch64-linux-nat.c.orig
 gdb/aarch64-linux-nat.c
 @@ -312,6 +312,7 @@ aarch64_linux_set_debug_regs (const stru
const CORE_ADDR *addr;
const unsigned int *ctrl;
  
++  memset (regs, 0, sizeof (regs));
+   iov.iov_base = regs;
+   iov.iov_len = sizeof (regs);
+   count = watchpoint ? aarch64_num_wp_regs : aarch64_num_bp_regs;
+Index: gdb/gdbserver/linux-aarch64-low.c
+===
+--- gdb/gdbserver/linux-aarch64-low.c.orig
 gdb/gdbserver/linux-aarch64-low.c
+@@ -600,6 +600,7 @@ aarch64_linux_set_debug_regs (const stru
+   const CORE_ADDR *addr;
+   const unsigned int *ctrl;
+ 
 +  memset (regs, 0, sizeof (regs));
iov.iov_base = regs;
iov.iov_len = sizeof (regs);

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org