Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Victor Stinner
2017-02-28 20:38 GMT+01:00 Alexander Belopolsky : > First, I had to rename python-gdb.py to python3.6-gdb.py to make it load. There is nothing specific to Python here, the file command of gdb (or gdb file) tries to load "file-gdb.py". So if your program is called python3.6, gdb looks for python3.6

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Victor Stinner
Ok, it seems like very few people know how to use python-gdb.py :-/ Sorry, I expect that everybody was using it! python-gdb.py was written by Dave Malcolm, it includes: * a pretty printer for many builtin Python types: str, tuple, list, dict, frame, etc. It means that a regular gdb "print obj" co

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Skip Montanaro
> First, I had to rename python-gdb.py ... Okay, I found a copy of python-gdb.py at the top level in a 2.7.13 snapshot I have at-hand. I have no idea where it came from. A file search on GitHub in the python/cpython repo on both master and 2.7 branches yielded nothing. It does seem to be working

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Alexander Belopolsky
On Tue, Feb 28, 2017 at 3:33 AM, Victor Stinner wrote: > > Alexander, Skip: Oh, which kind of issues do you have with > python-gdb.py? It doesn't work? You are unable to dump some data? First, I had to rename python-gdb.py to python3.6-gdb.py to make it load. Then running backtrace gave me a bu

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Barry Warsaw
On Feb 28, 2017, at 09:09 AM, Skip Montanaro wrote: >I haven't tried using Python support in gdb in a long time. I don't >know what python-gdb.py is. How is that different than >Tools/gdb/libpython.py? Is it distributed with Python? (I'm kind of >blind at work without a source distribution I can g

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Skip Montanaro
I haven't tried using Python support in gdb in a long time. I don't know what python-gdb.py is. How is that different than Tools/gdb/libpython.py? Is it distributed with Python? (I'm kind of blind at work without a source distribution I can grep through, and didn't see it in Tools/gdb or Misc.) I'

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Victor Stinner
2017-02-28 3:00 GMT+01:00 Skip Montanaro : > Alexander> I find them useful. I've never had success with python-gdb.py. Alexander, Skip: Oh, which kind of issues do you have with python-gdb.py? It doesn't work? You are unable to dump some data? python-gdb.py doesn't run code to analyze memory, it

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-27 Thread Skip Montanaro
Alexander> I find them useful. I've never had success with python-gdb.py. As the original author, and occasional user (just in the last week or two) I still find the current crude hack useful. I tried to get the Python support in GDB working a couple years ago, but gave up in frustration. I hope

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-27 Thread Alexander Belopolsky
On Mon, Feb 27, 2017 at 7:34 PM, Victor Stinner wrote: > Does someone still need gdbinit macros for gdb without python binding? > I find them useful. I've never had success with python-gdb.py. ___ Python-Dev mailing list Python-Dev@python.org https://

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-27 Thread Victor Stinner
I suggest to remove them. I didn't use them since python-gdb.py exist. Does someone still need gdbinit macros for gdb without python binding? Victor Le 28 févr. 2017 1:27 AM, "Alexander Belopolsky" < alexander.belopol...@gmail.com> a écrit : > I have opened an issue on b.p.o., [1] but I wonder

[Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-27 Thread Alexander Belopolsky
I have opened an issue on b.p.o., [1] but I wonder whether Misc/gdbinit is still supported in 3.6. [1]: http://bugs.python.org/issue29673 ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: