• 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
Re: Debugging iPhoto plugins
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging iPhoto plugins


  • Subject: Re: Debugging iPhoto plugins
  • From: Jim Ingham <email@hidden>
  • Date: Tue, 19 Apr 2011 14:41:04 -0700

This may be:

<rdar://problem/9241802> Xcode4 can't run my app with GDB. LLDB is OK, Xcode3 is OK !

Can you try doing:

$ gdb /Applications/iPhoto.app
...
(gdb) run

and see if that works.  If it doesn't, but:

$ gdb /Applications/iPhoto.app/Contents/MacOS/iPhoto

does work, then that is the same bug.  There's something funny in the Info.plist in the bug cited such that the way we are calling into CF to parse it fails, and we can't find the location of the actual binary in the app bundle.

Jim

On Apr 19, 2011, at 12:28 PM, Alejandro Visiedo García wrote:

Hello Han Ming,

Thanks for you response!

I review the schema config! i probe to set executable! but nothing change!

i set traces for gdb like you suggests, and i can see the next trace:

-> 21-file-exec-and-symbols "/Applications/iPhoto.app"
#  PBXGDB_MILoadExecutableCommand t=0.827097 Tepoch=1303240532.829930
<- (gdb)
<- 21^error,msg="\"/Applications/iPhoto.app/Contents/MacOS/iPhoto\": not in executable format: No more archived files"
#  processing result t=0.829045 Tepoch=1303240532.831879
#  didFinish Sequence: <PBXGDB_GenericMICommandSequence: 0x201c868e0> t=0.829161 Tepoch=1303240532.831994
#  Executing Sequence: <PBXGDB_GenericMICommandSequence: 0x201c3b200> t=0.829201 Tepoch=1303240532.832034
-> 22-gdb-set mi-show-protections off
#  PBXGDB_MIGDBSetCommand t=0.829257 Tepoch=1303240532.832090
<- (gdb)
<- 22^done,time={wallclock="0.00005",user="0.00004",system="0.00002",start="1303240532.832414",end="1303240532.832467"}
#  processing result t=0.829908 Tepoch=1303240532.832742
#  didFinish Sequence: <PBXGDB_GenericMICommandSequence: 0x201c3b200> t=0.829956 Tepoch=1303240532.832789
#  Executing Sequence: <PBXGDB_RegisterDataValueSetupSequence: 0x201de0e40> t=0.829997 Tepoch=1303240532.832830
-> 26-data-list-register-names
#  PBXGDB_MIGetRegisterNames t=0.830093 Tepoch=1303240532.832926
<- (gdb)
<- 26^done,register-names=["rax","rbx","rcx","rdx","rsi","rdi","rbp","rsp","r8","r9","r10","r11","r12","r13","r14","r15","rip","eflags","cs","ss","ds","es","fs","gs","st0","st1","st2","st3","st4","st5","st6","st7","fctrl","fstat","ftag","fiseg","fioff","foseg","fooff","fop","xmm0","xmm1","xmm2","xmm3","xmm4","xmm5","xmm6","xmm7","xmm8","xmm9","xmm10","xmm11","xmm12","xmm13","xmm14","xmm15","mxcsr"],time={wallclock="0.00021",user="0.00019",system="0.00001",start="1303240532.833158",end="1303240532.833367"}
#  processing result t=0.831274 Tepoch=1303240532.834108
#  didFinish Sequence: <PBXGDB_RegisterDataValueSetupSequence: 0x201de0e40> t=0.857809 Tepoch=1303240532.860642
#  Executing Sequence: <PBXGDB_RunControlSequence: 0x2019a4960> t=0.857885 Tepoch=1303240532.860718
<- (gdb)
-> 27-exec-run
#  PBXGDB_MIRunExecutableCommand t=0.858719 Tepoch=1303240532.861552
<- 27^running
#  processing result t=0.859244 Tepoch=1303240532.862077
-> 28-pid-info
#  PBXGDB_MIGetPIDCommand t=0.871104 Tepoch=1303240532.873938
<- (gdb)
<- 27^error,msg="No executable file specified.\nUse the \"file\" or \"exec-file\" command."
#  processing result t=0.871238 Tepoch=1303240532.874072
<- (gdb)
<- 28^error,msg="The program being debugged is not being run."
#  processing result t=2.336205 Tepoch=1303240534.339039
<- (gdb)

Is like executable file don't could be recognized!

i type the next from terminal

# file /Applications/iPhoto.app/Contents/MacOS/iPhoto 
/Applications/iPhoto.app/Contents/MacOS/iPhoto: Mach-O fat file with 2 architectures

any tip?

Thanks!

____________________________________
Alejandro Visiedo García
web: http://devsensation.es



Jim Ingham
Apple Developer Tools



 _______________________________________________
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

References: 
 >Debugging iPhoto plugins (From: Alejandro Visiedo García <email@hidden>)
 >Re: Debugging iPhoto plugins (From: Han Ming Ong <email@hidden>)
 >Re: Debugging iPhoto plugins (From: Alejandro Visiedo García <email@hidden>)

  • Prev by Date: Re: Xc4 as default?
  • Next by Date: Re: Xcode 4 isn't always able to jump to analyzer warnings
  • Previous by thread: Re: Debugging iPhoto plugins
  • Next by thread: Installing 4.0.2 over 4.0.1
  • Index(es):
    • Date
    • Thread