[Pkg-gdb-logs] [gdb] 01/05: fix: segfault on add-symbol-file

Hector Oron zumbi at moszumanska.debian.org
Wed Aug 19 20:38:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch master
in repository gdb.

commit 4a68d585a8024c0d8be1c882794a2a53da1426ae
Author: Héctor Orón Martínez <zumbi at debian.org>
Date:   Sun Aug 16 17:36:47 2015 +0200

    fix: segfault on add-symbol-file
    
    Signed-off-by: Héctor Orón Martínez <zumbi at debian.org>
---
 ...egmentation-fault-on-add-symbol-file-command.patch | 19 +++++++++++++++++++
 debian/patches/series                                 |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/Segmentation-fault-on-add-symbol-file-command.patch b/debian/patches/Segmentation-fault-on-add-symbol-file-command.patch
new file mode 100644
index 0000000..811b8a4
--- /dev/null
+++ b/debian/patches/Segmentation-fault-on-add-symbol-file-command.patch
@@ -0,0 +1,19 @@
+https://sourceware.org/bugzilla/show_bug.cgi?id=16822
+
+---
+Index: gdb/gdb/dwarf2read.c
+===================================================================
+--- gdb.orig/gdb/dwarf2read.c	2015-08-16 17:33:44.626542277 +0200
++++ gdb/gdb/dwarf2read.c	2015-08-16 17:33:44.622541568 +0200
+@@ -8674,7 +8674,10 @@
+ 
+   /* DW_AT_linkage_name is missing in some cases - depend on what GDB
+      has computed.  */
+-  if (attr && DW_STRING (attr))
++  if (attr
++      && (attr->form == DW_FORM_strp || attr->form == DW_FORM_string
++     || attr->form == DW_FORM_GNU_strp_alt)
++      && DW_STRING (attr))
+     {
+       char *demangled;
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 9fa5b29..4ef9f34 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
 python-config.patch
 gdb-glibc-vdso-workaround.patch
 load-versioned-libcc1.patch
+Segmentation-fault-on-add-symbol-file-command.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gdb/gdb.git



More information about the Pkg-gdb-logs mailing list