How to suppress the gdb running process attachment information? -


moving dbx gdb:

i permanently suppress information gdb prints out on terminal while attaching running process in entirety. know how that? thank help.

sample (64-bit centos 6.6) session:

gdb -p 12345 attaching process 12345 reading symbols /some/path/to/my/elf executable...done. reading symbols /some/other/path/to/my/library.so...done. loaded symbols /some/other/path/to/my/library.so [new lwp 12345] [new lwp 12345] [new lwp 12345] [new lwp 12345] [thread debugging using libthread_db enabled] 0x000000338a6aca3d in nanosleep () /lib64/libc.so.6 missing separate debuginfos, use: debuginfo-install ... 

in reality there multiple screens of above 'reading' , 'loading' entries suppressing manually sanity sake. there 4 100-character long lines of complaints "missing separate debuginfo" manually suppressing post.

do not want see of it. want this:

gbd -p 12345 in nanosleep () /lib64/libc.so.6 

which useless - current file , function names plus line number , thread id? willing overlook this. more interested in suppressing output (not eliciting it).

is achievable gdb? entry in .gdbinit or such? again.

as far know there no way disable these.

some messages printed if have set print inferior-events on. so, make sure off. but, you, default.

you can make specific commands quiet writing own wrapper using define , having redirect output /dev/null.

i think giving users more control on output reasonable feature request gdb.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -