Bug 13635 - Way to reduce warning messages floating in log
Summary: Way to reduce warning messages floating in log
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 7.3
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-30 23:18 UTC by MortenMacFly
Modified: 2023-12-31 13:27 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MortenMacFly 2012-01-30 23:18:17 UTC
Environment: Windows XP/7, TDM GCC 4.6.1 / GNU gdb 7.3 for MinGW.
I have compiled Code::Blocks (http://www.codeblocks.org) against wxWidgets 2.9.3 (http://www.wxwidgets.org) and try to debug into a crash. Unfortunately it is hard to read the log because tons of warning messages like the following:

warning: ../../src/common/menucmn.cpp(976): assert "item" failed in Enable(): attempt to enable an item which doesn't exist

...are floated into the debug log. I know, that is a bug in C::B, but thats what I am after. I have described the issue here:

http://forums.codeblocks.org/index.php/topic,10908.msg106860.html#msg106860
...and here:
http://forums.codeblocks.org/index.php/topic,10908.msg106928.html#msg106928

A "solution" suggested here:
http://forums.codeblocks.org/index.php/topic,10908.msg106878.html#msg106878
is to filter the warnings by a certain string in the message. While this is an option, I was told here:
http://forums.codeblocks.org/index.php/topic,10908.msg106933.html#msg106933
...to file a bug report into this bugzilla database to ask if there is a better way to do it or maybe a feature request to GDB that allows filtering such on GDB level.

Is that possible / feasible?
Comment 1 Hannes Domani 2023-12-31 13:27:56 UTC
This seems to be about the warning messages generated by OUTPUT_DEBUG_STRING_EVENT.

An option to completely disable/enable them would be easy to implement.
Or maybe filtering based on some regexp?