Rebase onto fedora f29 @c720d998

8.2 release

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=187
This commit is contained in:
2018-09-11 13:49:10 +00:00
committed by Git OBS Bridge
parent c4e854fd10
commit 435dad805c
146 changed files with 5388 additions and 4279 deletions

View File

@@ -1,10 +1,7 @@
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
From: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri, 1 Aug 2014 23:02:17 +0200
Subject: Crash regression(?) printing Fortran strings in bt [Re: [V2 00/23]
Fortran dynamic array support]
FileName: gdb-vla-intel-stringbt-fix.patch
Subject: gdb-vla-intel-stringbt-fix.patch
;;=push+jan
@@ -29,18 +26,8 @@ cannot reproduce it.
Thanks,
Jan
---
gdb/dwarf2loc.c | 15 +++++++++
.../gdb.fortran/dynamic-other-frame-stub.f90 | 24 +++++++++++++
gdb/testsuite/gdb.fortran/dynamic-other-frame.exp | 39 ++++++++++++++++++++++
gdb/testsuite/gdb.fortran/dynamic-other-frame.f90 | 36 ++++++++++++++++++++
4 files changed, 114 insertions(+)
create mode 100644 gdb/testsuite/gdb.fortran/dynamic-other-frame-stub.f90
create mode 100644 gdb/testsuite/gdb.fortran/dynamic-other-frame.exp
create mode 100644 gdb/testsuite/gdb.fortran/dynamic-other-frame.f90
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 5105c8d23a..5486e4dc12 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -42,6 +42,7 @@
@@ -74,7 +61,6 @@ index 5105c8d23a..5486e4dc12 100644
ctx.gdbarch = get_objfile_arch (objfile);
diff --git a/gdb/testsuite/gdb.fortran/dynamic-other-frame-stub.f90 b/gdb/testsuite/gdb.fortran/dynamic-other-frame-stub.f90
new file mode 100644
index 0000000000..261ce17ae5
--- /dev/null
+++ b/gdb/testsuite/gdb.fortran/dynamic-other-frame-stub.f90
@@ -0,0 +1,24 @@
@@ -104,7 +90,6 @@ index 0000000000..261ce17ae5
+end subroutine bar
diff --git a/gdb/testsuite/gdb.fortran/dynamic-other-frame.exp b/gdb/testsuite/gdb.fortran/dynamic-other-frame.exp
new file mode 100644
index 0000000000..570a28ca65
--- /dev/null
+++ b/gdb/testsuite/gdb.fortran/dynamic-other-frame.exp
@@ -0,0 +1,39 @@
@@ -149,7 +134,6 @@ index 0000000000..570a28ca65
+gdb_test "bt" {foo \(string='hello'.*}
diff --git a/gdb/testsuite/gdb.fortran/dynamic-other-frame.f90 b/gdb/testsuite/gdb.fortran/dynamic-other-frame.f90
new file mode 100644
index 0000000000..2bc637db49
--- /dev/null
+++ b/gdb/testsuite/gdb.fortran/dynamic-other-frame.f90
@@ -0,0 +1,36 @@
@@ -189,6 +173,3 @@ index 0000000000..2bc637db49
+ end interface
+ call foo ('hello')
+end
--
2.14.3