Message176674
In my Fedora Python packages I've been applying this patch:
http://pkgs.fedoraproject.org/cgit/python.git/plain/00156-gdb-autoload-safepath.patch
which uses this code fragment to detect if gdb has the autoload safe path code, rather than trying to guess it from version numbers (which I *think* is failing for Stefan due to a backport of the autoload stuff in that gdb):
def gdb_has_autoload_safepath():
# Recent GDBs will only auto-load scripts from certain safe
# locations, so we will need to turn off this protection.
# However, if the GDB doesn't have it, then the following
# command will generate noise on stderr (rhbz#817072):
cmd = "--eval-command=set auto-load safe-path /"
p = subprocess.Popen(["gdb", "--batch", cmd],
stderr=subprocess.PIPE)
_, stderr = p.communicate()
return '"on" or "off" expected.' not in stderr
HAS_AUTOLOAD_SAFEPATH = gdb_has_autoload_safepath()
(etc) |
|
Date |
User |
Action |
Args |
2012-11-29 21:40:40 | dmalcolm | set | recipients:
+ dmalcolm, ncoghlan, ezio.melotti, r.david.murray, skrah, python-dev |
2012-11-29 21:40:40 | dmalcolm | set | messageid: <1354225240.11.0.71950857589.issue15043@psf.upfronthosting.co.za> |
2012-11-29 21:40:40 | dmalcolm | link | issue15043 messages |
2012-11-29 21:40:39 | dmalcolm | create | |
|