Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turning off warning messages in GDB

Tags:

warnings

gdb

I am writing a script that runs GDB and a series of GDB commands. One of my commands file myfile.elf generates warning messages;

warning: Loadable segment ".func_addrs" outside of ELF segments
warning: Loadable segment ".aux_info" outside of ELF segments

I have tried using the set verbose off command in GDB to try to turn these off but it didn't work.

Does anyone know how I can stop these messages?

Thanks!

like image 203
user2342775 Avatar asked Oct 25 '25 09:10

user2342775


1 Answers

There isn't a way to do this in gdb.

You can disable all output using "set logging". Or you could redirect it to a file, then grep out the offending lines, displaying the rest.

like image 179
Tom Tromey Avatar answered Oct 27 '25 09:10

Tom Tromey