2017-02-15 16:05:56 +00:00
|
|
|
Index: gdb-7.11.90.20160807/gdb/config/i386/linux64.mh
|
2010-09-06 11:08:41 +00:00
|
|
|
===================================================================
|
2017-02-15 16:05:56 +00:00
|
|
|
--- gdb-7.11.90.20160807.orig/gdb/config/i386/linux64.mh 2016-08-07 22:27:13.889285274 +0200
|
|
|
|
+++ gdb-7.11.90.20160807/gdb/config/i386/linux64.mh 2016-08-07 22:29:20.451311124 +0200
|
2016-02-29 19:38:18 +00:00
|
|
|
@@ -7,7 +7,7 @@
|
2014-02-10 17:10:42 +00:00
|
|
|
linux-procfs.o linux-ptrace.o linux-btrace.o \
|
2016-01-14 17:05:52 +00:00
|
|
|
linux-waitpid.o linux-personality.o x86-linux.o \
|
2016-02-29 19:38:18 +00:00
|
|
|
x86-linux-dregs.o amd64-linux-siginfo.o linux-namespaces.o
|
2010-03-12 00:40:02 +00:00
|
|
|
-NAT_FILE= config/nm-linux.h
|
|
|
|
+NAT_FILE= nm-linux64.h
|
2010-09-06 11:08:41 +00:00
|
|
|
NAT_CDEPS = $(srcdir)/proc-service.list
|
2010-03-12 00:40:02 +00:00
|
|
|
|
|
|
|
# The dynamically loaded libthread_db needs access to symbols in the
|
2017-02-15 16:05:56 +00:00
|
|
|
Index: gdb-7.11.90.20160807/gdb/config/i386/linux.mh
|
2012-06-16 04:55:29 +00:00
|
|
|
===================================================================
|
2017-02-15 16:05:56 +00:00
|
|
|
--- gdb-7.11.90.20160807.orig/gdb/config/i386/linux.mh 2016-08-07 22:27:13.889285274 +0200
|
|
|
|
+++ gdb-7.11.90.20160807/gdb/config/i386/linux.mh 2016-08-07 22:29:20.451311124 +0200
|
2011-08-11 13:47:36 +00:00
|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
# Host: Intel 386 running GNU/Linux.
|
|
|
|
|
|
|
|
-NAT_FILE= config/nm-linux.h
|
|
|
|
+NAT_FILE= nm-linux.h
|
|
|
|
NATDEPFILES= inf-ptrace.o fork-child.o \
|
- Use patchlist.pl to merge with gdb-7.9-10.fc22, a rebase to FSF GDB 7.9.
The GDB 7.8 features are:
* Python Scripting
- You can now access frame registers from Python scripts.
- New attribute 'producer' for gdb.Symtab objects.
* New Python-based convenience functions:
- $_caller_is(name [, number_of_frames])
- $_caller_matches(regexp [, number_of_frames])
- $_any_caller_is(name [, number_of_frames])
- $_any_caller_matches(regexp [, number_of_frames])
* New commands
- queue-signal signal-name-or-number
Queue a signal to be delivered to the thread when it is resumed.
* On resume, GDB now always passes the signal the program had stopped
for to the thread the signal was sent to, even if the user changed
threads before resuming. Previously GDB would often (but not
always) deliver the signal to the thread that happens to be current
at resume time.
* Conversely, the "signal" command now consistently delivers the
requested signal to the current thread. GDB now asks for
confirmation if the program had stopped for a signal and the user
switched threads meanwhile.
* "breakpoint always-inserted" modes "off" and "auto" merged.
Now, when 'breakpoint always-inserted mode' is set to "off", GDB
won't remove breakpoints from the target until all threads stop,
even in non-stop mode. The "auto" mode has been removed, and "off"
is now the default mode.
* MI changes
- The -list-thread-groups command outputs an exit-code field for
inferiors that have exited.
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=115
2015-02-25 13:45:10 +00:00
|
|
|
x86-nat.o x86-dregs.o i386-linux-nat.o x86-linux-nat.o \
|
2011-08-11 13:47:36 +00:00
|
|
|
proc-service.o linux-thread-db.o \
|
2017-02-15 16:05:56 +00:00
|
|
|
Index: gdb-7.11.90.20160807/gdb/config/i386/nm-linux.h
|
2012-06-16 04:55:29 +00:00
|
|
|
===================================================================
|
2011-08-11 13:47:36 +00:00
|
|
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
2017-02-15 16:05:56 +00:00
|
|
|
+++ gdb-7.11.90.20160807/gdb/config/i386/nm-linux.h 2016-08-07 22:29:20.451311124 +0200
|
2011-08-11 13:47:36 +00:00
|
|
|
@@ -0,0 +1,28 @@
|
|
|
|
+/* Native support for GNU/Linux i386.
|
|
|
|
+
|
|
|
|
+ Copyright 2010 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/>. */
|
|
|
|
+
|
|
|
|
+#ifndef NM_LINUX_H
|
|
|
|
+#define NM_LINUX_H
|
|
|
|
+
|
|
|
|
+#include "config/nm-linux.h"
|
|
|
|
+
|
|
|
|
+/* Red Hat backward compatibility with gdb-6.8. */
|
|
|
|
+#define target_can_use_hardware_watchpoint(type, cnt, ot) 1
|
|
|
|
+
|
|
|
|
+#endif /* NM_LINUX64_H */
|
2017-02-15 16:05:56 +00:00
|
|
|
Index: gdb-7.11.90.20160807/gdb/config/i386/nm-linux64.h
|
2010-09-06 11:08:41 +00:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
2017-02-15 16:05:56 +00:00
|
|
|
+++ gdb-7.11.90.20160807/gdb/config/i386/nm-linux64.h 2016-08-07 22:29:20.451311124 +0200
|
2010-03-12 00:40:02 +00:00
|
|
|
@@ -0,0 +1,28 @@
|
|
|
|
+/* Native support for GNU/Linux amd64.
|
|
|
|
+
|
|
|
|
+ Copyright 2010 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/>. */
|
|
|
|
+
|
|
|
|
+#ifndef NM_LINUX64_H
|
|
|
|
+#define NM_LINUX64_H
|
|
|
|
+
|
|
|
|
+#include "config/nm-linux.h"
|
|
|
|
+
|
|
|
|
+/* Red Hat backward compatibility with gdb-6.8. */
|
|
|
|
+#define target_can_use_hardware_watchpoint(type, cnt, ot) 1
|
|
|
|
+
|
|
|
|
+#endif /* NM_LINUX64_H */
|
2017-02-15 16:05:56 +00:00
|
|
|
Index: gdb-7.11.90.20160807/gdb/target.h
|
2010-09-06 11:08:41 +00:00
|
|
|
===================================================================
|
2017-02-15 16:05:56 +00:00
|
|
|
--- gdb-7.11.90.20160807.orig/gdb/target.h 2016-08-07 22:27:13.889285274 +0200
|
|
|
|
+++ gdb-7.11.90.20160807/gdb/target.h 2016-08-07 22:29:20.452311132 +0200
|
|
|
|
@@ -1939,9 +1939,11 @@
|
|
|
|
one. OTHERTYPE is the number of watchpoints of other types than
|
|
|
|
this one used so far. */
|
2010-03-12 00:40:02 +00:00
|
|
|
|
|
|
|
+#ifndef target_can_use_hardware_watchpoint
|
|
|
|
#define target_can_use_hardware_watchpoint(TYPE,CNT,OTHERTYPE) \
|
2014-08-11 14:08:48 +00:00
|
|
|
(*current_target.to_can_use_hw_breakpoint) (¤t_target, \
|
2016-01-14 17:05:52 +00:00
|
|
|
TYPE, CNT, OTHERTYPE)
|
2010-03-12 00:40:02 +00:00
|
|
|
+#endif
|
|
|
|
|
2011-03-10 09:18:25 +00:00
|
|
|
/* Returns the number of debug registers needed to watch the given
|
|
|
|
memory region, or zero if not supported. */
|
2017-02-15 16:05:56 +00:00
|
|
|
Index: gdb-7.11.90.20160807/gdb/testsuite/gdb.base/watchpoint-hw-before-run.exp
|
2010-09-06 11:08:41 +00:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
2017-02-15 16:05:56 +00:00
|
|
|
+++ gdb-7.11.90.20160807/gdb/testsuite/gdb.base/watchpoint-hw-before-run.exp 2016-08-07 22:29:20.452311132 +0200
|
2010-03-12 00:40:02 +00:00
|
|
|
@@ -0,0 +1,40 @@
|
|
|
|
+# Copyright 2009, 2010 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/>.
|
|
|
|
+
|
|
|
|
+# Arch not supporting hw watchpoints does not imply no_hardware_watchpoints set.
|
|
|
|
+if {(![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"]
|
|
|
|
+ && ![istarget "ia64-*-*"])
|
|
|
|
+ || [target_info exists gdb,no_hardware_watchpoints]} then {
|
|
|
|
+ verbose "Skipping watchpoint-hw-before-run test."
|
|
|
|
+ return
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+set test watchpoint-hw-before-run
|
|
|
|
+set srcfile watchpoint-hw-hit-once.c
|
|
|
|
+if { [prepare_for_testing ${test}.exp ${test} ${srcfile}] } {
|
|
|
|
+ return -1
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+gdb_test "rwatch watchee" "ardware read watchpoint 1: watchee"
|
|
|
|
+
|
|
|
|
+# `runto_main' or `runto main' would delete the watchpoint created above.
|
|
|
|
+
|
|
|
|
+if { [gdb_start_cmd] < 0 } {
|
|
|
|
+ untested start
|
|
|
|
+ return -1
|
|
|
|
+}
|
|
|
|
+gdb_test "" "main .* at .*" "start"
|
|
|
|
+
|
2016-02-29 19:38:18 +00:00
|
|
|
+gdb_test "continue" "Continuing.\r\n\r\nHardware read watchpoint \[0-9\]+: watchee\r\n\r\nValue = 0\r\n.*"
|
2017-02-15 16:05:56 +00:00
|
|
|
Index: gdb-7.11.90.20160807/gdb/breakpoint.c
|
|
|
|
===================================================================
|
|
|
|
--- gdb-7.11.90.20160807.orig/gdb/breakpoint.c 2016-08-07 22:33:38.835405458 +0200
|
|
|
|
+++ gdb-7.11.90.20160807/gdb/breakpoint.c 2016-08-07 22:34:45.023941950 +0200
|
|
|
|
@@ -14953,7 +14953,7 @@
|
|
|
|
|
|
|
|
if (bpt->type == bp_hardware_breakpoint)
|
|
|
|
{
|
|
|
|
- int i;
|
|
|
|
+ int i ATTRIBUTE_UNUSED;
|
|
|
|
i = hw_breakpoint_used_count ();
|
|
|
|
target_resources_ok =
|
|
|
|
target_can_use_hardware_watchpoint (bp_hardware_breakpoint,
|