[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-03-27 Thread STINNER Victor

STINNER Victor added the comment:

@belopolsky: Tools/gdb/libpython.py still uses gdb.error in 
gdb.selected_frame():

try:
frame = cls.get_selected_frame()
except gdb.error:
# No frame: Python didn't start yet
return None

See my commit 610f5d739dd22bce352bde59dce3985c73aaefab. Should we change this 
line as well?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-03-24 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:


New changeset 661ca8843fed1183e38db06e52d59ac300bf1c2a by Lev Abalkin in branch 
'master':
Fixes bpo-29680: Older gdb does not have gdb.error. (#363)
https://github.com/python/cpython/commit/661ca8843fed1183e38db06e52d59ac300bf1c2a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-03-24 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

PR has been merged and backported into 3.6.

If there is nothing else, please close this :)

Thanks.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-03-24 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 23b26c4e206427a9e0a1d39240c17a049cf8c732 by Mariatta in branch 
'3.6':
Fixes bpo-29680: Older gdb does not have gdb.error. (GH-363) (GH-534)
https://github.com/python/cpython/commit/23b26c4e206427a9e0a1d39240c17a049cf8c732


--
nosy: +Mariatta

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-03-06 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
pull_requests: +442

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-03-01 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Victor, the gdb commit that you mentioned introduced gdb.GdbError which is 
different from gdb.error. [1]  The correct commit is 
621c83642d17cf523c20f55f2ed945a7ec95ea6a. [2]

[1] 
https://sourceware.org/gdb/current/onlinedocs/gdb/Exception-Handling.html#Exception-Handling
[2] 
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=621c83642d17cf523c20f55f2ed945a7ec95ea6a

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-03-01 Thread STINNER Victor

STINNER Victor added the comment:

It's a regression introduced in Python 3.6 by CPython change:
https://github.com/python/cpython/commit/d7d2bc8798da3b083e383e949ba01d61b78e4e4d

gdb.error was introduced in gdb 7.3 by the commit 
07ca107c2d958b45633ef0cdcce7219a95f0cf01:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;f=gdb/python/python.c;h=07ca107c2d958b45633ef0cdcce7219a95f0cf01

--
versions: +Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-02-28 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
components: +Demos and Tools
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-02-28 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
pull_requests: +308, 309

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-02-28 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
pull_requests: +308

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-02-28 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-02-28 Thread Alexander Belopolsky

New submission from Alexander Belopolsky:

Printing the backtrace in gdb results in Python errors:

(gdb) bt
...
#6  0x77ba9745 in _PyEval_EvalCodeWithName (_co=, globals=Traceback (most recent call last):
  File "/home/a/.virtualenvs/3.6g/bin/python3.6-gdb.py", line 1358, in to_string
return pyop.get_truncated_repr(MAX_OUTPUT_LEN)
  File "/home/a/.virtualenvs/3.6g/bin/python3.6-gdb.py", line 243, in 
get_truncated_repr
self.write_repr(out, set())
  File "/home/a/.virtualenvs/3.6g/bin/python3.6-gdb.py", line 702, in write_repr
for pyop_key, pyop_value in self.iteritems():
  File "/home/a/.virtualenvs/3.6g/bin/python3.6-gdb.py", line 669, in iteritems
entries, nentries = self._get_entries(keys)
  File "/home/a/.virtualenvs/3.6g/bin/python3.6-gdb.py", line 717, in 
_get_entries
except gdb.error:
AttributeError: 'module' object has no attribute 'error'
...

--
assignee: belopolsky
messages: 288730
nosy: belopolsky
priority: normal
severity: normal
status: open
title: gdb/libpython.py does not work with gdb 7.2
type: behavior
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com