- Merge from gdb-7.5.1-30.fc18.src.rpm. 7.5.1 gives: * An "Attempt to dereference a generic pointer" errors (-var-create). * Backtrace problems on x32 (PR backtrace/14646). * next/step/finish problems on x32 (PR gdb/14647). * A "malformed linespec error: unexpected keyword, [...]" error (PR breakpoints/14643). * GDB crash while stepping through powerpc (32bits) code. * A failed assertion in linux_ptrace_test_ret_to_nx. * A "!frame_id_inlined_p (frame_id)" failed assertion. * A "No more reverse-execution history." error during reverse "next" execution (PR 14548). * Incomplete command descriptions in "apropos" output. * PR gdb/14494 (a GDB crash difficult to characterize). 7.5 gives: * Go language support. * New targets (x32 ABI, microMIPS, Renesas RL78, HP OpenVMS ia64). * More Python scripting improvements. * SDT (Static Defined Tracing) probes support with SystemTap probes. * GDBserver improvements (stdio connections, target-side evaluation of breakpoint conditions, remote protocol improvements). * Other miscellaneous improvements (ability to stop when a shared library is loaded/unloaded, dynamic printf, etc). * Reverse debugging on ARM. - Do not provide a custom (safe) auto-load dir. OBS-URL: https://build.opensuse.org/request/show/147743 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdb?expand=0&rev=90
76 lines
2.7 KiB
Diff
76 lines
2.7 KiB
Diff
Index: gdb-7.0.1/gdb/testsuite/gdb.base/set-solib-absolute-prefix.c
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ gdb-7.0.1/gdb/testsuite/gdb.base/set-solib-absolute-prefix.c
|
|
@@ -0,0 +1,26 @@
|
|
+/* Copyright (C) 2012 Free Software Foundation, Inc.
|
|
+
|
|
+ This file is part of GDB.
|
|
+
|
|
+ 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 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, see <http://www.gnu.org/licenses/>. */
|
|
+
|
|
+#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
+
|
|
+int
|
|
+main (int argc, char *argv[])
|
|
+{
|
|
+ printf ("Hello, World.\n");
|
|
+ abort ();
|
|
+}
|
|
Index: gdb-7.0.1/gdb/testsuite/gdb.base/set-solib-absolute-prefix.exp
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ gdb-7.0.1/gdb/testsuite/gdb.base/set-solib-absolute-prefix.exp
|
|
@@ -0,0 +1,39 @@
|
|
+# Copyright 2012 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 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, see <http://www.gnu.org/licenses/>.
|
|
+
|
|
+set testfile "set-solib-absolute-prefix"
|
|
+set srcfile ${testfile}.c
|
|
+
|
|
+# It is necessary to verify if the binary is 32-bit, so that the system
|
|
+# call `__kernel_vsyscall' originates from vDSO.
|
|
+
|
|
+if { ![is_ilp32_target] } {
|
|
+ return -1
|
|
+}
|
|
+
|
|
+if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
|
|
+ return -1
|
|
+}
|
|
+
|
|
+if { ![runto_main] } {
|
|
+ return -1
|
|
+}
|
|
+
|
|
+gdb_test "continue" "Program received signal SIGABRT, Aborted.*" \
|
|
+ "continue until abort"
|
|
+gdb_test "set solib-absolute-prefix /BOGUS_DIRECT" \
|
|
+ ".*warning: Unable to find dynamic linker breakpoint function.*" \
|
|
+ "set solib-absolute-prefix"
|
|
+gdb_test "bt" "__kernel_vsyscall.*" "backtrace with __kernel_vsyscall"
|