This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Relationship between GDB commands in Python and Guile


Quick answer:

On Tue 17 Mar 2015 13:04, Yao Qi <> writes:

> Andy Wingo <> 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 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]