• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
GDB can't debug PPC on Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GDB can't debug PPC on Intel


  • Subject: GDB can't debug PPC on Intel
  • From: Brock Brandenberg <email@hidden>
  • Date: Sat, 27 May 2006 16:52:11 -0500

I don't know where to start with this issue. In the progress of watching GCD crash when trying to start debugging a PPC app on an Intel MacBook Pro, it has managed to leave processes running that don't show CPU usage in Activity Monitor, yet both CPU cores are clearly going at about 60% each with the fans running on the machine. The disk activity is high, and doing fs_usage reveals some "nmbd" process writing to disk about 60 times a second. The "mds" process is right behind it, trying to do it's SpotLight indexing. The only way to stop the activity is a restart. WTF has happened to these developer tools? XCode is the biggest time waster compared to good old tools like CodeWarrior. From bringing in some hidden setting for "G3" optimization that kept the app from running (the setting didn't show in the "Customized Settings" in the build settings... I had to show all and scroll to the bottom of the list to see the clearly customized setting that was the culprit to the app not launching) to XCode and GDB running some unidentifiable process that chew up CPU usage and can't be stopped, these tools waste more time than they save. Now I know why Adobe doesn't want to port apps to XCode...

Back to the inability to debug PPC on Intel. I have a Carbon app that I'm trying to target to the 10.2.8 SDK, a OS 10.2 deployment target, the PPC architecture and build with GCC 3.3. When running the debugger, GDB exits with error 1 after the message "Architecture of file not recognized." The app has no linked libraries other than QuickTime and Carbon, and it builds and runs successfully from XCode and the Finder. I've seen mention of the existence of architecture settings for GDB in the mail list archives, but I haven't been able to find such a thing. From a user experience, it seems the XCode setting for architecture should be enough to make the tools work. I've tried countless settings for target OS, SDK, etc. but nothing works. And while I could build for Intel too, there are way too many changes to make it Intel compatible and I need changes made to a PPC build right now and CodeWarrior is unable to debug on Intel.

Any tips or clues from experience would be very much appreciated.

Thanks,
Brock Brandenberg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: GDB can't debug PPC on Intel
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: debug universal binary on 10.3?
  • Next by Date: Re: GDB can't debug PPC on Intel
  • Previous by thread: CFMessagePort weirdness, szone_error, double-free?
  • Next by thread: Re: GDB can't debug PPC on Intel
  • Index(es):
    • Date
    • Thread