Gdb claims to not know how to run

I am using Xcode 3.2.3 on Mac OS X 10.6.6 on Mac Pro to create a 5fd480ef577f revision from GrowlTunes from the growl-development repository .

With a clean build from virgin extract, this is what I get:

% gdb build/Debug/GrowlTunes.app/Contents/MacOS/GrowlTunes 
GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May  5 04:41:34 UTC 2010)
[blah blah blah]
This GDB was configured as "--host=x86_64-apple-darwin --target=powerpc-apple-darwin"...Reading symbols for shared libraries ......... done

(gdb) run
Starting program: /Volumes/RAM Disk/growl-development/Extras/GrowlTunes/build/Debug/GrowlTunes.app/Contents/MacOS/GrowlTunes 
Don't know how to run.  Try "help target".

When I try to use it in Xcode, it seems to be doing some internal tests that don't work, because it doesn't even list GDB as an option. Since there are no other debuggers in Cocoa applications (in this version of Xcode), the pop-up menus related to debugging in the target info window are empty, and trying to launch the application does nothing - the Run button switches to clicking the Run button.

The goal is for 32-bit PowerPC and 64-bit Intel processors:

% file build/Debug/GrowlTunes.app/Contents/MacOS/GrowlTunes 
build/Debug/GrowlTunes.app/Contents/MacOS/GrowlTunes: Mach-O universal binary with 2 architectures
build/Debug/GrowlTunes.app/Contents/MacOS/GrowlTunes (for architecture ppc7400):        Mach-O executable ppc
build/Debug/GrowlTunes.app/Contents/MacOS/GrowlTunes (for architecture x86_64): Mach-O 64-bit executable x86_64

, , Finder, .

-; 64- Intel, , PowerPC.

, - , , . ?

+3
3

gdb, Xcode. , - , .

+1

:

gdb -arch x86_64 build/Debug/GrowlTunes.app/Contents/MacOS/GrowlTunes

- , / Xcode.

+2

On the gdb command line, try "install arch x86_64" or "install arch i386: x86-64" (without the quotes, of course, I'm a complete newbie with gdb, I'm hiding behind solutions for other problems)

+1
source

Source: https://habr.com/ru/post/1790352/


All Articles