Commit Graph

36 Commits

Author SHA1 Message Date
Benjamin Peterson
499378f087 suppress stderr output when checking gdb (closes #27969) 2016-09-06 10:06:31 -07:00
Zachary Ware
d833c77818 Issue #12660: Backport 84bbb8d2d237 2016-08-24 11:14:34 -05:00
Martin Panter
2179b2e159 Issue #14771: Redirect GDB's stdin to avoid messing the terminal settings
Otherwise, GDB seems to affect the terminal's foreground process group,
interfering with test_ioctl, which does not expect the foreground process to
change during the test. This change also solves the problem of the tests
being stopped in the shell if test_gdb is run twice in parallel.
2016-01-16 05:07:35 +00:00
Victor Stinner
df11d7c2b4 test_gdb: fix regex to parse the GDB version
Fix the regex to support the version 7.10: minor version with two digits
2015-09-15 00:19:47 +02:00
Victor Stinner
cc1db4bf85 python-gdb.py: enhance py-bt command
* Add py-bt-full command
* py-bt now gives an output similar to a regular Python traceback
* py-bt indicates:

  - if the garbage collector is running
  - if the thread is waiting for the GIL
  - detect PyCFunction_Call to get the name of the builtin function
2015-09-03 10:17:28 +02:00
Victor Stinner
3c5ce404a0 test_gdb: enhance regex used to parse the GDB version 2015-09-03 09:51:59 +02:00
Victor Stinner
582265f484 Issue #23445: Fix test_gdb.python_is_optimized() for CFLAGS=-Og
-Og does not optimize the C code, it's just "fast debugging".
2015-03-27 15:44:13 +01:00
Serhiy Storchaka
b6b48e637f Issue #22844: Fized test_gdb failure on Debian Wheezy for Z.
Patch by David Edelsohn.
2015-02-14 22:44:35 +02:00
Serhiy Storchaka
dd8430fa64 Issue #23881: Only use entry-values with gdb 7.4 in tests.
Fixes a regression in issue #22765.  Patch by Vinson Lee.
2015-02-06 08:36:14 +02:00
Serhiy Storchaka
73bcde20bc Issue #22765: Fixed test_gdb failures. Supressed unexpected gdb output.
Patch by Bohuslav Kabrda.
2015-01-31 11:48:36 +02:00
Benjamin Peterson
51f461fbd3 is OpenIndiana actually sunos? 2014-11-23 22:34:04 -06:00
Benjamin Peterson
98b1b24fea loosen solaris test 2014-11-23 22:22:59 -06:00
Benjamin Peterson
0636a4ba88 skip test_gdb on OpenIndiana 2014-11-23 22:02:47 -06:00
Victor Stinner
57b00ed0a0 Issue #19753: Fix test_gdb on SystemZ buildbot, ignore warnings 2014-11-05 15:07:18 +01:00
Victor Stinner
8bd3415aef Closes #22188: test_gdb now runs gdb with -nx: "Do not execute commands from
any .gdbinit initialization files".
2014-08-16 14:31:02 +02:00
Antoine Pitrou
358da5b9f8 Issue #19308: fix the gdb plugin on gdbs linked with Python 3 2013-11-23 17:40:36 +01:00
Nick Coghlan
254a377222 This check can still fail on RHEL6 2013-09-22 19:36:09 +10:00
Antoine Pitrou
b996e04f11 Issue #17712: Fix test_gdb failures on Ubuntu 13.04. 2013-05-01 00:15:44 +02:00
R David Murray
3e66f0d14d #15043: Improve test_gdb support of gdb >= 7.4.
Instead of requiring the tester to manually add the path to the python-gdb.py
file in the checkout to their .gdbinit file, add it automatically when
invoking gdb in the test.
2012-10-27 13:47:49 -04:00
Benjamin Peterson
fb2f409b90 remove gdb noise about linux-vdso 2012-09-20 23:48:23 -04:00
Nick Coghlan
a093312871 Issue #15043: skip test_gdb if the custom hooks can't be loaded (backport from 3.x) 2012-06-17 19:03:39 +10:00
Benjamin Peterson
e39ccef64c carefully don't depend on any dict order 2012-02-21 09:07:40 -05:00
Benjamin Peterson
11fa11bc95 fix test_gdb under hash randomization 2012-02-20 21:55:32 -05:00
Victor Stinner
99cff3f182 Issue #13628: python-gdb.py is now able to retrieve more frames in the Python
traceback if Python is optimized.

 * delay the lookup of the size_t type, it is not available at startup
 * The second argument of the PyFrameObjectPtr constructor is optional, as
   done in other constructors
 * iter_builtins() and iter_globals() methods of PyFrameObjectPtr returns
   an empty tuple instead of None if Python is optimized
 * Fix py-bt to handle correctly "optimized" frames
 * Frame.get_pyop() tries to get the frame pointer from PyEval_EvalCodeEx()
   if the pointer is optimized out in PyEval_EvalFrameEx()
2011-12-19 13:59:58 +01:00
Jesus Cea
6905de14fe Close issue #8600: test_gdb failures because innocuous warnings 2011-03-16 01:19:49 +01:00