filtering gdb output?

General questions regarding the usage of CodeLite
Rory
CodeLite Enthusiast
Posts: 29
Joined: Wed Nov 14, 2012 3:35 pm
Genuine User: Yes
IDE Question: C++
Contact:

filtering gdb output?

Post by Rory »

With full debug logging enabled I can use the deg window to view Logging messages from my GUI application. It's a real mess though. Is there any way I can filter messages to that window? The logger messages all come through with a 'warning' at the start. I was wondering if there were any tricks I could use to disable full debugging, yet allow warning messages through? I also see something about pretty-printing? It seems that it returns a runtime error when I enable it:

Code: Select all

DEBUG>>~"Reading symbols from C:\\Users\\Rory\\Documents\\SourceCode\\PluginHost.exe..."
Reading symbols from C:\Users\Rory\Documents\SourceCode\PluginHost.exe...
DEBUG>>~"(no debugging symbols found)...done.\n"
(no debugging symbols found)...done.
DEBUG>>&"Traceback (most recent call last):\n"
DEBUG>>&"  File \"<string>\", line 5, in <module>\n"
DEBUG>>&"  File \"c:\\mingw-4.7.1\\share\\gdb/python/../../gcc-4.8.1/python/libstdcxx/v6/printers.py\", line 911, in register_libstdcxx_printers\n"
DEBUG>>&"    gdb.printing.register_pretty_printer(obj, libstdcxx_printer)\n"
DEBUG>>&"  File \"c:\\mingw-4.7.1\\share\\gdb/python/gdb/printing.py\", line 146, in register_pretty_printer\n"
DEBUG>>&"    printer.name)\n"
DEBUG>>&"RuntimeError: pretty-printer already registered: libstdc++-v6\n"
DEBUG>>&"C:\\Users\\Rory\\AppData\\Local\\Temp\\codelite_gdbinit.txt:13: Error in sourced command file:\n"
DEBUG>>&"Error while executing Python code.\n"
Any ideas?