This is the mail archive of the gdb@sourceware.org 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: Pretty Printing


On 02/01/2013 09:22 AM, Graham Labdon wrote:
> Hi
> I don't know if there is anyone on this forum who can help
> 
> I am developing a set of gdb pretty printers for Qt
> A dictionary is built of the functions to call when a variable of a given type is detected
> Code:
> def build_dictionary ():
>     pretty_printers_dict[re.compile ('^QFile$')] = lambda val:QFilePrinter(val,"false")
>     pretty_printers_dict[re.compile ('^QFile \*$')] = lambda val: QFilePointerPrinter(val)
> 

I was pretty sure I heard people had pretty printers for Qt already.
Were they in kdevelop?  Ah, yes:

http://nikosams.blogspot.pt/2010/01/gdb-qt-pretty-printers-updated.html

Did you look there?

-- 
Pedro Alves


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