Wednesday, 15 February 2012

Ignore message "Breakpoint x at y" after setting a breakpoint in gdb -


Is it possible to disable the "breakpoint x" on the message "after setting the breakpoint in gdb?" Example:

Breakpoint 1248 at 0x10054700 & lt; Function, no debug info & gt; Ceremony;

I am setting up breakpoints for each function in the file and I want to leave these messages.

You can do it in one of two ways.

You can use the set logging command to redirect the output to / dev / null . Then set your breakpoint, and then reset the logging.

Or, you can evaluate the command through Python using gdb.execute , and you can use to_string to output To redirect the string into the parameter of that function - and then ignore the return value of this function.


No comments:

Post a Comment