/
niceSOFT
/
subversion
ОбзорДокументацияВойти
/
niceSOFT
/
subversion
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
subversion/
.../dev/gdb-py/
..
svndbg

Fix breakage of the JavaHL build and a debugging tool, following r1614599.

12 лет назад
README

Some debugging magic: add a Python module which allows us to define pretty-printers for our custom Subversion types in gdb. Right now, this includes a very simple example, which may not even be useful, but could be improved upon in the future. See the README for more information.

15 лет назад
README
This directory includes a Python module which will integrate with gdb which
can be used to pretty-print various Subversion types. For additional
information about gdb pretty-printing, see:
 
http://sourceware.org/gdb/onlinedocs/gdb/Pretty-Printing.html
 
 
How to Use
----------
To enable pretty printing of selected Subversion types, put the following code
in your ~/.gdbinit:
 
[[[
python
import sys, os.path
sys.path.insert(0, os.path.expanduser('~/dev/svn-trunk/tools/dev/gdb-py'))
from svndbg.printers import register_libsvn_printers
register_libsvn_printers(None)
end
]]]
 
Change the path to point to the correct location on your platform for the
gdb-py directory, and then load gdb. Everything should Just Work.
(I believe this requires gdb >= 7.0, but earlier versions may also work.)
 
The list of currently supported types for pretty printing is a bit lacking,
so should you run into a type which could be useful to be pretty printed,
read the documentation referenced above and follow the existing examples
to extend the pretty-printing support. Enjoy!