You can put a breakpoint on symbols defined in the python extension and
see if "info args" works in gdb.

Say you want to test python-apt-dbg, and have it installed.

# Prepare the gdb commands that set the breakpoints
nm -D -C --defined-only /usr/lib/python2.5/site-packages/apt_inst.so 
/usr/lib/python2.5/site-packages/apt_pkg.so  |sed -rne "s#.* T 
([^_][^']*)\$#break '\1'#p" |tee cmds
gdb  --args python -c 'import apt; c = apt.Cache(); p = c["python2.5"]'

# In gdb
run
source cmds
run
# Hit a breakpoint
info args
# Displays args, only if python-apt-dbg is installed.

-- 
please add support to build python dbg extensions
https://bugs.launchpad.net/bugs/85097
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to