How to run gdb with -quiet in xcode

I am new, so you will have to explain this quite clearly.

I am looking for a way for Xcode to automatically start gdb with the -quiet command so that it does not display the startup text. I tried to edit the executable file / Developer / usr / bin / gdb by adding -q to the exec lines at the end after "$ gdb" in this code (someone mentioned this elsewhere, although this did not work):

if [ -n "$requested_arch" -a $translate_mode -eq 0 ] then exec $translate_binary "$gdb" --arch "$requested_arch" " $@ " else exec $translate_binary "$gdb" $osabiopts " $@ " fi 

So, any other suggestions?

+4
source share
1 answer

Oddly enough, it is already called with -q.

This is what Xcode ultimately does (iPhone example):

 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/libexec/gdb/gdb-i386-apple-darwin --arch i386 --interp=mi1 -q 

Running this command in the terminal will hide the original output, but not in the Xcode console debugger.

+2
source

All Articles