Discussion:
windows binary builds with gdb-python enabled?
d***@duaneellis.com
2015-06-18 20:26:01 UTC
Permalink
It seems the prebuilt windows releases of GDB do not enable Python.

Are there plans to release a python-enabled-gdb in the windows builds?

If not, what are the roadblocks to this?

Thanks

Example:

$ ./aarch64-linux-gnu-gdb.exe
GNU gdb (Linaro GDB 2015.02-3) 7.8-2014.09-1-git
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32
--target=aarch64-linux-gnu"

Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.launchpad.net/gcc-linaro>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) python
Scripting in the "Python" language is not supported in this copy of GDB.
(gdb) quit
Maxim Kuvyrkov
2015-06-22 13:32:47 UTC
Permalink
Post by d***@duaneellis.com
It seems the prebuilt windows releases of GDB do not enable Python.
Are there plans to release a python-enabled-gdb in the windows builds?
If not, what are the roadblocks to this?
Hi Duane,

There are currently no plans to release python-enabled gdb for windows. The reason is that we don't hear requests for it from our member companies.

--
Maxim Kuvyrkov
www.linaro.org
Post by d***@duaneellis.com
Thanks
$ ./aarch64-linux-gnu-gdb.exe
GNU gdb (Linaro GDB 2015.02-3) 7.8-2014.09-1-git
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32
--target=aarch64-linux-gnu"
Type "show configuration" for configuration details.
<https://bugs.launchpad.net/gcc-linaro>.
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) python
Scripting in the "Python" language is not supported in this copy of GDB.
(gdb) quit
_______________________________________________
linaro-toolchain mailing list
https://lists.linaro.org/mailman/listinfo/linaro-toolchain
Blibbet
2015-06-22 15:40:53 UTC
Permalink
Post by Maxim Kuvyrkov
There are currently no plans to release python-enabled gdb for
windows. The
Post by Maxim Kuvyrkov
reason is that we don't hear requests for it from our member companies.
Here's a second request from a user of your released sources and Windows
binaries: I wish Linaro would update the Windows binaries to include
Python-enabled GDB.

Using Python to script GDB makes it much more efficient to do testing.
Having a Python-disabled build of GDB prevents this. These days, I'm not
sure why Python is enabled by default in GDB. If you like Python, and
have to use GDB, you'll quickly find yourself dependent on this
abilities, it is much nicer than using GDG the old way.

(I also wish Linaro would generate Mac OS X binaries, in addition to
Windows binaries.)

Thanks,
Lee Fisher
RSS: http://firmwaresecurity.com/feed
d***@duaneellis.com
2015-06-22 18:02:16 UTC
Permalink
Post by Blibbet
Using Python to script GDB makes it much more efficient to do testing.
Having a Python-disabled build of GDB prevents this.
I use the example of the gdb-python scripts for the linux kernel.

They are very useful, these do not work when using GDB from windows.

-Duane

Loading...