Relationship between GDB commands in Python and Guile
Andy Wingo
wingo@igalia.com
Tue Mar 17 13:44:00 GMT 2015
Hi,
Quick answer:
On Tue 17 Mar 2015 13:04, Yao Qi <qiyaoltc@gmail.com> writes:
> Andy Wingo <wingo@igalia.com> writes:
>
>> An open question would be how to indicate that python extensions win
>> over guile extensions. Perhaps we should query extensions by language,
>> then, and then list python ones first. Having a unified "priority"
>> doesn't make sense in that context. Perhaps the pretty-printing (etc)
>> mechanism should, in that case, instead be more fine-grained -- not just
>> "try python first", but instead trying the printers (frame filters, etc)
>> in order of priority. Perhaps that's too much setup work though; not
>> sure what the cost is to "enter" python mode etc.
>
> I'd like to know why is such question raised? In practise, is it common
> that users install two pretty-printers, one is python and one is guile?
Imagine a program that uses two libraries, one of which has a
libfoo-gdb.py file installed, and the other that has libbar-gdb.scm
installed. Then you could have pretty printers, frame filters,
unwinders, etc defined for each library but in different languages.
Andy
More information about the Gdb-patches
mailing list