diff options
author | Tom de Vries <tdevries@suse.de> | 2022-07-21 14:04:41 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-07-21 14:04:41 +0200 |
commit | c57ac5108667b52f5cde6c1bbdd4a1496626c1a8 (patch) | |
tree | 337ea9111689ea163ee7011924c560066faf0cca /gdb/ppc-netbsd-nat.c | |
parent | 9b89bf16c39365ac68929ca5d8484ef732e0ac4f (diff) | |
download | binutils-c57ac5108667b52f5cde6c1bbdd4a1496626c1a8.zip binutils-c57ac5108667b52f5cde6c1bbdd4a1496626c1a8.tar.gz binutils-c57ac5108667b52f5cde6c1bbdd4a1496626c1a8.tar.bz2 |
[gdb/python] Fix python selftest with python 3.11
With python 3.11 I noticed:
...
$ gdb -q -batch -ex "maint selftest python"
Running selftest python.
Self test failed: self-test failed at gdb/python/python.c:2246
Ran 1 unit tests, 1 failed
...
In more detail:
...
(gdb) p output
$5 = "Traceback (most recent call last):\n File \"<string>\", line 0, \
in <module>\nKeyboardInterrupt\n"
(gdb) p ref_output
$6 = "Traceback (most recent call last):\n File \"<string>\", line 1, \
in <module>\nKeyboardInterrupt\n"
...
Fix this by also allowing line number 0.
Tested on x86_64-linux.
This should hopefully fix buildbot builder gdb-rawhide-x86_64.
Diffstat (limited to 'gdb/ppc-netbsd-nat.c')
0 files changed, 0 insertions, 0 deletions