* negative repeat count for x examines backwards * fortran: support structs/arrays with dynamically types fields * support MPX bound checking * support for the Rust language * 'catch syscall' now can catch groups of related syscalls * New (sub)commands: - skip {-file,-gfile,-function,-rfunction}: generic skip mechanism - maint {selftest,info line-table} - new-ui: create new user interface for GUI clients * (fast) tracepoints on s390x and ppc64le added to gdbserver * New target Andes NDS32 - Remove patch gdb-aarch64-v81-hwbreakpoints.diff (upstream) - Add patches from Fedora package: gdb-6.7-testsuite-stable-results.patch gdb-add-index-chmod.patch gdb-bison-old.patch gdb-container-rh-pkg.patch gdb-libexec-add-index.patch gdb-linux_perf-bundle.patch gdb-physname-pr11734-test.patch gdb-physname-pr12273-test.patch gdb-rhbz1007614-memleak-infpy_read_memory-test.patch gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch gdb-rhbz1149205-catch-syscall-after-fork-test.patch gdb-rhbz1156192-recursive-dlopen-test.patch gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch gdb-rhbz1350436-type-printers-error.patch gdb-test-ivy-bridge.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=151
88 lines
3.5 KiB
Diff
88 lines
3.5 KiB
Diff
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=230000
|
|
|
|
The original testcase
|
|
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=230000#c1
|
|
requires too recent GCC.
|
|
|
|
|
|
Index: gdb-7.5.50.20130215/gdb/testsuite/gdb.arch/powerpc-power6.exp
|
|
===================================================================
|
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
+++ gdb-7.5.50.20130215/gdb/testsuite/gdb.arch/powerpc-power6.exp 2013-02-25 14:31:06.658827177 +0100
|
|
@@ -0,0 +1,54 @@
|
|
+# Copyright 2007 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 2 of the License, or
|
|
+# (at your option) any later version.
|
|
+#
|
|
+# This program is distributed in the hope that it will be useful,
|
|
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
+# GNU General Public License for more details.
|
|
+#
|
|
+# You should have received a copy of the GNU General Public License
|
|
+# along with this program; if not, write to the Free Software
|
|
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
+
|
|
+# Test PowerPC Power6 instructions disassembly.
|
|
+
|
|
+if {![istarget "powerpc*-*-*"]} then {
|
|
+ verbose "Skipping PowerPC Power6 instructions disassembly."
|
|
+ return
|
|
+}
|
|
+
|
|
+set testfile "powerpc-power6"
|
|
+set srcfile ${testfile}.s
|
|
+set objfile [standard_output_file ${testfile}.o]
|
|
+
|
|
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
|
|
+ untested "PowerPC prologue tests"
|
|
+ return -1
|
|
+}
|
|
+
|
|
+
|
|
+gdb_exit
|
|
+gdb_start
|
|
+gdb_reinitialize_dir $srcdir/$subdir
|
|
+gdb_load ${objfile}
|
|
+
|
|
+# Disassemble the function.
|
|
+
|
|
+gdb_test "disass func" ":\tblr\r\n.*" "Basic disassembly"
|
|
+
|
|
+gdb_test "disass func" ":\tdcbzl *r8,r9\r\n.*" "Power5 disassembly dcbzl"
|
|
+gdb_test "disass func" ":\tfrsqrtes *f10,f11\r\n.*" "Power5 disassembly frsqrtes"
|
|
+gdb_test "disass func" ":\tdadd *f1,f2,f1\r\n.*" "Power6 disassembly dadd"
|
|
+gdb_test "disass func" ":\tdaddq *f0,f2,f0\r\n.*" "Power6 disassembly daddq"
|
|
+gdb_test "disass func" ":\tdsub *f1,f2,f1\r\n.*" "Power6 disassembly dsub"
|
|
+gdb_test "disass func" ":\tdsubq *f0,f2,f0\r\n.*" "Power6 disassembly dsubq"
|
|
+gdb_test "disass func" ":\tdmul *f1,f2,f1\r\n.*" "Power6 disassembly dmul"
|
|
+gdb_test "disass func" ":\tdmulq *f0,f2,f0\r\n.*" "Power6 disassembly dmulq"
|
|
+gdb_test "disass func" ":\tddiv *f1,f2,f1\r\n.*" "Power6 disassembly ddiv"
|
|
+gdb_test "disass func" ":\tddivq *f0,f2,f0\r\n.*" "Power6 disassembly ddivq"
|
|
+gdb_test "disass func" ":\tdcmpu *cr1,f2,f1\r\n.*" "Power6 disassembly dcmpu"
|
|
+gdb_test "disass func" ":\tdcmpuq *cr1,f2,f0\r\n.*" "Power6 disassembly dcmpuq"
|
|
Index: gdb-7.5.50.20130215/gdb/testsuite/gdb.arch/powerpc-power6.s
|
|
===================================================================
|
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
+++ gdb-7.5.50.20130215/gdb/testsuite/gdb.arch/powerpc-power6.s 2013-02-25 14:31:06.659827178 +0100
|
|
@@ -0,0 +1,16 @@
|
|
+ .text
|
|
+ .globl func
|
|
+func:
|
|
+ blr
|
|
+ .long 0x7c284fec /* dcbzl r8,r9 */
|
|
+ .long 0xed405834 /* frsqrtes f10,f11 */
|
|
+ .long 0xec220804 /* dadd f1,f2,f1 */
|
|
+ .long 0xfc020004 /* daddq f0,f2,f0 */
|
|
+ .long 0xec220c04 /* dsub f1,f2,f1 */
|
|
+ .long 0xfc020404 /* dsubq f0,f2,f0 */
|
|
+ .long 0xec220844 /* dmul f1,f2,f1 */
|
|
+ .long 0xfc020044 /* dmulq f0,f2,f0 */
|
|
+ .long 0xec220c44 /* ddiv f1,f2,f1 */
|
|
+ .long 0xfc020444 /* ddivq f0,f2,f0 */
|
|
+ .long 0xec820d04 /* dcmpu cr1,f2,f1 */
|
|
+ .long 0xfc820504 /* dcmpuq cr1,f2,f0 */
|