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
57 lines
1.8 KiB
Diff
57 lines
1.8 KiB
Diff
http://sourceware.org/ml/gdb-patches/2015-02/msg00361.html
|
|
Subject: PR python/17927 (Python 3 testsuite compatability)
|
|
|
|
This patch updates the Python testsuite to maintain Python 3
|
|
compatibility. I'll check it in under the obvious tomorrow (if
|
|
nobody objects otherwise.)
|
|
|
|
Cheers
|
|
|
|
Phil
|
|
|
|
|
|
2015-02-16 Phil Muldoon <pmuldoon@redhat.com>
|
|
|
|
PR python/17927
|
|
* gdb.python/py-objfile.exp: Use print ()
|
|
* gdb.python/py-type.exp: Ditto.
|
|
* gdb.python/py-framefilter.py: Update to use map in
|
|
Python 3.
|
|
|
|
--
|
|
|
|
diff --git a/gdb/testsuite/gdb.python/py-framefilter.py b/gdb/testsuite/gdb.python/py-framefilter.py
|
|
index 0de026c..8c65edc 100644
|
|
--- a/gdb/testsuite/gdb.python/py-framefilter.py
|
|
+++ b/gdb/testsuite/gdb.python/py-framefilter.py
|
|
@@ -145,7 +145,10 @@ class ErrorFilter():
|
|
gdb.frame_filters [self.name] = self
|
|
|
|
def filter(self, frame_iter):
|
|
- return itertools.imap(ErrorInName, frame_iter)
|
|
+ if hasattr(itertools, "imap"):
|
|
+ return itertools.imap(ErrorInName, frame_iter)
|
|
+ else:
|
|
+ return map(ErrorInName, frame_iter)
|
|
|
|
FrameFilter()
|
|
FrameElider()
|
|
diff --git a/gdb/testsuite/gdb.python/py-type.exp b/gdb/testsuite/gdb.python/py-type.exp
|
|
index c4c8d9f..6c4e5f8 100644
|
|
--- a/gdb/testsuite/gdb.python/py-type.exp
|
|
+++ b/gdb/testsuite/gdb.python/py-type.exp
|
|
@@ -247,10 +247,10 @@ restart_gdb "${binfile}"
|
|
# Skip all tests if Python scripting is not enabled.
|
|
if { [skip_python_tests] } { continue }
|
|
|
|
-gdb_test "python print gdb.lookup_type('char').array(1, 0)" \
|
|
+gdb_test "python print (gdb.lookup_type('char').array(1, 0))" \
|
|
"char \\\[0\\\]"
|
|
|
|
-gdb_test "python print gdb.lookup_type('char').array(1, -1)" \
|
|
+gdb_test "python print (gdb.lookup_type('char').array(1, -1))" \
|
|
"Array length must not be negative.*"
|
|
|
|
with_test_prefix "lang_c" {
|
|
|