- Rebase to gdb version 7.11 as of version in Fedora 24:
* Per-inferior thread numbers. * Breakpoint "explicit locations" (via CLI and GDB/MI). * New convenience variables ($_gthread, $_inferior). * Record btrace now supports non-stop mode. * Various improvements on AArch64 GNU/Linux: - Multi-architecture debugging support. - displaced stepping. - tracepoint support added in GDBserver. * In Ada, the overloads selection menu provides the parameter types and return types for the matching overloaded subprograms. * Various remote protocol improvements, including several new packets which can be used to support features such as follow-exec-mode, exec catchpoints, syscall catchpoints, etc. * Some minor improvements in the Python API for extending GDB. - Added new patches from Fedora: gdb-fedora-libncursesw.patch gdb-fortran-stride-intel-1of6.patch gdb-fortran-stride-intel-2of6.patch gdb-fortran-stride-intel-3of6.patch gdb-fortran-stride-intel-4of6.patch gdb-fortran-stride-intel-5of6.patch gdb-fortran-stride-intel-6of6-nokfail.patch gdb-fortran-stride-intel-6of6.patch gdb-opcodes-clflushopt-test.patch gdb-testsuite-readline63-sigint.patch - Removed obsolete patches: gdb-6.3-bz231832-obstack-2gb.patch gdb-pahole-python2.patch gdb-probes-based-interface-robust-1of2.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=132
This commit is contained in:
@@ -1,39 +1,7 @@
|
||||
Index: gdb-7.9.50.20150520/gdb/testsuite/configure.ac
|
||||
===================================================================
|
||||
--- gdb-7.9.50.20150520.orig/gdb/testsuite/configure.ac 2015-05-31 16:34:02.396969450 +0200
|
||||
+++ gdb-7.9.50.20150520/gdb/testsuite/configure.ac 2015-05-31 16:34:33.443196711 +0200
|
||||
@@ -114,5 +114,5 @@ AC_OUTPUT([Makefile \
|
||||
gdb.guile/Makefile gdb.linespec/Makefile \
|
||||
gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile \
|
||||
gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile \
|
||||
- gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile \
|
||||
+ gdb.perf/Makefile gdb.pie/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile \
|
||||
gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile])
|
||||
Index: gdb-7.9.50.20150520/gdb/testsuite/configure
|
||||
===================================================================
|
||||
--- gdb-7.9.50.20150520.orig/gdb/testsuite/configure 2015-05-31 16:33:53.154901798 +0200
|
||||
+++ gdb-7.9.50.20150520/gdb/testsuite/configure 2015-05-31 16:34:48.654308057 +0200
|
||||
@@ -3514,7 +3514,7 @@ program_transform_name=`$as_echo "$progr
|
||||
ac_config_files="$ac_config_files lib/pdtrace"
|
||||
|
||||
|
||||
-ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile gdb.cell/Makefile gdb.compile/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.dlang/Makefile gdb.fortran/Makefile gdb.gdb/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.guile/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile"
|
||||
+ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile gdb.cell/Makefile gdb.compile/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.dlang/Makefile gdb.fortran/Makefile gdb.gdb/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.guile/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.perf/Makefile gdb.pie/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile"
|
||||
|
||||
cat >confcache <<\_ACEOF
|
||||
# This file is a shell script that caches the results of configure
|
||||
@@ -4242,6 +4242,7 @@ do
|
||||
"gdb.opt/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opt/Makefile" ;;
|
||||
"gdb.pascal/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.pascal/Makefile" ;;
|
||||
"gdb.perf/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.perf/Makefile" ;;
|
||||
+ "gdb.pie/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.pie/Makefile" ;;
|
||||
"gdb.python/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.python/Makefile" ;;
|
||||
"gdb.reverse/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.reverse/Makefile" ;;
|
||||
"gdb.stabs/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.stabs/Makefile" ;;
|
||||
Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach.c
|
||||
Index: gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/attach.c
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach.c 2015-05-31 16:34:02.398969465 +0200
|
||||
+++ gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/attach.c 2016-02-15 23:23:02.843498936 +0100
|
||||
@@ -0,0 +1,20 @@
|
||||
+/* This program is intended to be started outside of gdb, and then
|
||||
+ attached to by gdb. Thus, it simply spins in a loop. The loop
|
||||
@@ -55,10 +23,10 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach.c
|
||||
+ }
|
||||
+ return 0;
|
||||
+}
|
||||
Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach2.c
|
||||
Index: gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/attach2.c
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach2.c 2015-05-31 16:34:02.398969465 +0200
|
||||
+++ gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/attach2.c 2016-02-15 23:23:02.843498936 +0100
|
||||
@@ -0,0 +1,24 @@
|
||||
+/* This program is intended to be started outside of gdb, and then
|
||||
+ attached to by gdb. Thus, it simply spins in a loop. The loop
|
||||
@@ -84,10 +52,10 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach2.c
|
||||
+ }
|
||||
+ return (0);
|
||||
+}
|
||||
Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break.c
|
||||
Index: gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/break.c
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break.c 2015-05-31 16:34:02.399969472 +0200
|
||||
+++ gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/break.c 2016-02-15 23:23:02.844498943 +0100
|
||||
@@ -0,0 +1,146 @@
|
||||
+/* This testcase is part of GDB, the GNU debugger.
|
||||
+
|
||||
@@ -235,10 +203,10 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break.c
|
||||
+ }
|
||||
+ return 0;
|
||||
+}
|
||||
Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break1.c
|
||||
Index: gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/break1.c
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break1.c 2015-05-31 16:34:02.399969472 +0200
|
||||
+++ gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/break1.c 2016-02-15 23:23:02.844498943 +0100
|
||||
@@ -0,0 +1,44 @@
|
||||
+/* This testcase is part of GDB, the GNU debugger.
|
||||
+
|
||||
@@ -284,10 +252,10 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break1.c
|
||||
+void marker3 (a, b) char *a, *b; {} /* set breakpoint 18 here */
|
||||
+void marker4 (d) long d; {} /* set breakpoint 13 here */
|
||||
+#endif
|
||||
Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/coremaker.c
|
||||
Index: gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/coremaker.c
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/coremaker.c 2015-05-31 16:34:02.399969472 +0200
|
||||
+++ gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/coremaker.c 2016-02-15 23:23:02.844498943 +0100
|
||||
@@ -0,0 +1,142 @@
|
||||
+/* Copyright 1992, 1993, 1994, 1995, 1996, 1999
|
||||
+ Free Software Foundation, Inc.
|
||||
@@ -431,11 +399,11 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/coremaker.c
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach.exp
|
||||
Index: gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/attach.exp
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach.exp 2015-05-31 16:34:02.400969480 +0200
|
||||
@@ -0,0 +1,417 @@
|
||||
+++ gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/attach.exp 2016-02-15 23:37:15.190560048 +0100
|
||||
@@ -0,0 +1,416 @@
|
||||
+# Copyright 1997, 1999, 2002 Free Software Foundation, Inc.
|
||||
+
|
||||
+# This program is free software; you can redistribute it and/or modify
|
||||
@@ -471,10 +439,10 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach.exp
|
||||
+set testfile "attach"
|
||||
+set srcfile ${testfile}.c
|
||||
+set srcfile2 ${testfile}2.c
|
||||
+set binfile ${objdir}/${subdir}/${testfile}
|
||||
+set binfile2 ${objdir}/${subdir}/${testfile}2
|
||||
+set escapedbinfile [string_to_regexp ${objdir}/${subdir}/${testfile}]
|
||||
+set cleanupfile ${objdir}/${subdir}/${testfile}.awk
|
||||
+set binfile [standard_output_file ${testfile}]
|
||||
+set binfile2 [standard_output_file ${testfile}2]
|
||||
+set escapedbinfile [string_to_regexp [standard_output_file ${testfile}]]
|
||||
+set cleanupfile [standard_output_file ${testfile}.awk]
|
||||
+
|
||||
+#execute_anywhere "rm -f ${binfile} ${binfile2}"
|
||||
+remote_exec build "rm -f ${binfile} ${binfile2}"
|
||||
@@ -508,7 +476,6 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach.exp
|
||||
+ global escapedbinfile
|
||||
+ global srcfile
|
||||
+ global testfile
|
||||
+ global objdir
|
||||
+ global subdir
|
||||
+ global timeout
|
||||
+
|
||||
@@ -716,7 +683,7 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach.exp
|
||||
+ # when we're cd'd to some directory that doesn't contain the
|
||||
+ # a.out. (We use the source path set by the "dir" command.)
|
||||
+ #
|
||||
+ send_gdb "dir ${objdir}/${subdir}\n"
|
||||
+ send_gdb "dir [file dirname [standard_output_file ${testfile}]]\n"
|
||||
+ gdb_expect {
|
||||
+ -re ".*Source directories searched: .*$gdb_prompt $"\
|
||||
+ {pass "set source path"}
|
||||
@@ -853,11 +820,11 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/attach.exp
|
||||
+do_call_attach_tests
|
||||
+
|
||||
+return 0
|
||||
Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break.exp
|
||||
Index: gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/break.exp
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break.exp 2015-05-31 16:34:02.401969487 +0200
|
||||
@@ -0,0 +1,962 @@
|
||||
+++ gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/break.exp 2016-02-15 23:37:15.191560055 +0100
|
||||
@@ -0,0 +1,954 @@
|
||||
+# Copyright 1988, 1990, 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
+# 2000, 2002, 2003, 2004
|
||||
+# Free Software Foundation, Inc.
|
||||
@@ -886,7 +853,7 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break.exp
|
||||
+set testfile "break"
|
||||
+set srcfile ${testfile}.c
|
||||
+set srcfile1 ${testfile}1.c
|
||||
+set binfile ${objdir}/${subdir}/${testfile}
|
||||
+set binfile [standard_output_file ${testfile}]
|
||||
+
|
||||
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug "additional_flags=-w -fpie -pie"}] != "" } {
|
||||
+ gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
|
||||
@@ -1018,11 +985,7 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break.exp
|
||||
+ set main_line $bp_location6
|
||||
+}
|
||||
+
|
||||
+if {$hp_aCC_compiler} {
|
||||
+ set proto "\\(int\\)"
|
||||
+} else {
|
||||
+ set proto ""
|
||||
+}
|
||||
+set proto ""
|
||||
+
|
||||
+set bp_location7 [gdb_get_line_number "set breakpoint 7 here"]
|
||||
+set bp_location8 [gdb_get_line_number "set breakpoint 8 here" $srcfile1]
|
||||
@@ -1359,14 +1322,10 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break.exp
|
||||
+ {fail "thread-specific breakpoint on non-existent thread disallowed"}
|
||||
+ timeout {fail "(timeout) thread-specific breakpoint on non-existent thread disallowed"}
|
||||
+}
|
||||
+send_gdb "break $bp_location12 thread foo\n"
|
||||
+gdb_expect {
|
||||
+ -re "Junk after thread keyword..*$gdb_prompt $"\
|
||||
+ {pass "thread-specific breakpoint on bogus thread ID disallowed"}
|
||||
+ -re "$gdb_prompt $"\
|
||||
+ {fail "thread-specific breakpoint on bogus thread ID disallowed"}
|
||||
+ timeout {fail "(timeout) thread-specific breakpoint on bogus thread ID disallowed"}
|
||||
+}
|
||||
+
|
||||
+gdb_test "break $bp_location12 thread foo" \
|
||||
+ "Invalid thread ID: foo" \
|
||||
+ "thread-specific breakpoint on bogus thread ID disallowed"
|
||||
+
|
||||
+# Verify that GDB responds gracefully to a breakpoint command with
|
||||
+# trailing garbage.
|
||||
@@ -1707,7 +1666,7 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break.exp
|
||||
+# build a new file with optimization enabled so that we can try breakpoints
|
||||
+# on targets with optimized prologues
|
||||
+
|
||||
+set binfileo2 ${objdir}/${subdir}/${testfile}o2
|
||||
+set binfileo2 [standard_output_file ${testfile}o2]
|
||||
+
|
||||
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}O0.o" object {debug "additional_flags=-w -O2 -fpie -pie"}] != "" } {
|
||||
+ gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
|
||||
@@ -1820,10 +1779,10 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/break.exp
|
||||
+ send_gdb "set args main\n"
|
||||
+ gdb_expect -re ".*$gdb_prompt $" {}
|
||||
+}
|
||||
Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/corefile.exp
|
||||
Index: gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/corefile.exp
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/corefile.exp 2015-05-31 16:34:02.401969487 +0200
|
||||
+++ gdb-7.10.90.20160211/gdb/testsuite/gdb.pie/corefile.exp 2016-02-15 23:37:15.191560055 +0100
|
||||
@@ -0,0 +1,233 @@
|
||||
+# Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
|
||||
+# Free Software Foundation, Inc.
|
||||
@@ -1851,7 +1810,7 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/corefile.exp
|
||||
+
|
||||
+set testfile "coremaker"
|
||||
+set srcfile ${testfile}.c
|
||||
+set binfile ${objdir}/${subdir}/${testfile}
|
||||
+set binfile [standard_output_file ${testfile}]
|
||||
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug "additional_flags=-fpie -pie"}] != "" } {
|
||||
+ gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
|
||||
+}
|
||||
@@ -1876,13 +1835,13 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/corefile.exp
|
||||
+# could have many core files lying around, and it may be difficult to
|
||||
+# tell which one is ours, so let's run the program in a subdirectory.
|
||||
+set found 0
|
||||
+set coredir "${objdir}/${subdir}/coredir.[getpid]"
|
||||
+set coredir [standard_output_file coredir.[getpid]]
|
||||
+file mkdir $coredir
|
||||
+catch "system \"(cd ${coredir}; ulimit -c unlimited; ${binfile}; true) >/dev/null 2>&1\""
|
||||
+# remote_exec host "${binfile}"
|
||||
+foreach i "${coredir}/core ${coredir}/core.coremaker.c ${binfile}.core" {
|
||||
+ if [remote_file build exists $i] {
|
||||
+ remote_exec build "mv $i ${objdir}/${subdir}/corefile"
|
||||
+ remote_exec build "mv $i [standard_output_file corefile]"
|
||||
+ set found 1
|
||||
+ }
|
||||
+}
|
||||
@@ -1891,7 +1850,7 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/corefile.exp
|
||||
+ set names [glob -nocomplain -directory $coredir core.*]
|
||||
+ if {[llength $names] == 1} {
|
||||
+ set corefile [file join $coredir [lindex $names 0]]
|
||||
+ remote_exec build "mv $corefile ${objdir}/${subdir}/corefile"
|
||||
+ remote_exec build "mv $corefile [standard_output_file corefile]"
|
||||
+ set found 1
|
||||
+ }
|
||||
+}
|
||||
@@ -1901,10 +1860,10 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/corefile.exp
|
||||
+ # ulimit here if we didn't find a core file above.
|
||||
+ # Oh, I should mention that any "braindamaged" non-Unix system has
|
||||
+ # the same problem. I like the cd bit too, it's really neat'n stuff.
|
||||
+ catch "system \"(cd ${objdir}/${subdir}; ${binfile}; true) >/dev/null 2>&1\""
|
||||
+ foreach i "${objdir}/${subdir}/core ${objdir}/${subdir}/core.coremaker.c ${binfile}.core" {
|
||||
+ catch "system \"(cd [file dirname [standard_output_file ${binfile}]]; ${binfile}; true) >/dev/null 2>&1\""
|
||||
+ foreach i "[standard_output_file core] [standard_output_file core.coremaker.c] ${binfile}.core" {
|
||||
+ if [remote_file build exists $i] {
|
||||
+ remote_exec build "mv $i ${objdir}/${subdir}/corefile"
|
||||
+ remote_exec build "mv $i [standard_output_file corefile]"
|
||||
+ set found 1
|
||||
+ }
|
||||
+ }
|
||||
@@ -1937,13 +1896,13 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/corefile.exp
|
||||
+
|
||||
+gdb_exit
|
||||
+if $verbose>1 then {
|
||||
+ send_user "Spawning $GDB -nw $GDBFLAGS -core=$objdir/$subdir/corefile\n"
|
||||
+ send_user "Spawning $GDB -nw $GDBFLAGS -core=[standard_output_file corefile]\n"
|
||||
+}
|
||||
+
|
||||
+set oldtimeout $timeout
|
||||
+set timeout [expr "$timeout + 60"]
|
||||
+verbose "Timeout is now $timeout seconds" 2
|
||||
+eval "spawn $GDB -nw $GDBFLAGS -core=$objdir/$subdir/corefile"
|
||||
+eval "spawn $GDB -nw $GDBFLAGS -core=[standard_output_file corefile]"
|
||||
+expect {
|
||||
+ -re "Couldn't find .* registers in core file.*$gdb_prompt $" {
|
||||
+ fail "args: -core=corefile (couldn't find regs)"
|
||||
@@ -1970,11 +1929,11 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/corefile.exp
|
||||
+close;
|
||||
+
|
||||
+if $verbose>1 then {
|
||||
+ send_user "Spawning $GDB -nw $GDBFLAGS $binfile -core=$objdir/$subdir/corefile\n"
|
||||
+ send_user "Spawning $GDB -nw $GDBFLAGS $binfile -core=[standard_output_file corefile]\n"
|
||||
+}
|
||||
+
|
||||
+
|
||||
+eval "spawn $GDB -nw $GDBFLAGS $binfile -core=$objdir/$subdir/corefile";
|
||||
+eval "spawn $GDB -nw $GDBFLAGS $binfile -core=[standard_output_file corefile]";
|
||||
+expect {
|
||||
+ -re "Core was generated by .*coremaker.*\r\n\#0 .*\(\).*\r\n$gdb_prompt $" {
|
||||
+ pass "args: execfile -core=corefile"
|
||||
@@ -2001,7 +1960,7 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/corefile.exp
|
||||
+
|
||||
+# Test basic corefile recognition via core-file command.
|
||||
+
|
||||
+send_gdb "core-file $objdir/$subdir/corefile\n"
|
||||
+send_gdb "core-file [standard_output_file corefile]\n"
|
||||
+gdb_expect {
|
||||
+ -re ".* program is being debugged already.*y or n. $" {
|
||||
+ # gdb_load may connect us to a gdbserver.
|
||||
@@ -2058,27 +2017,3 @@ Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/corefile.exp
|
||||
+gdb_test "up" "#\[0-9\]* *\[0-9xa-fH'\]* in .* \\(.*\\).*" "up in corefile.exp (reinit)"
|
||||
+
|
||||
+gdb_test "core" "No core file now."
|
||||
Index: gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/Makefile.in
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ gdb-7.9.50.20150520/gdb/testsuite/gdb.pie/Makefile.in 2015-05-31 16:34:02.401969487 +0200
|
||||
@@ -0,0 +1,19 @@
|
||||
+VPATH = @srcdir@
|
||||
+srcdir = @srcdir@
|
||||
+
|
||||
+EXECUTABLES =
|
||||
+MISCELLANEOUS = arch.inc
|
||||
+
|
||||
+all info install-info dvi install uninstall installcheck check:
|
||||
+ @echo "Nothing to be done for $@..."
|
||||
+
|
||||
+clean mostlyclean:
|
||||
+ -rm -f *~ *.o a.out *.x *.ci *.tmp
|
||||
+ -rm -f core core.coremaker coremaker.core corefile $(EXECUTABLES)
|
||||
+ -rm -f $(MISCELLANEOUS)
|
||||
+
|
||||
+distclean maintainer-clean realclean: clean
|
||||
+ -rm -f *~ core
|
||||
+ -rm -f Makefile config.status config.log
|
||||
+ -rm -f *-init.exp
|
||||
+ -rm -fr *.log summary detail *.plog *.sum *.psum site.*
|
||||
|
Reference in New Issue
Block a user