• 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: gdb err
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb err


  • Subject: Re: gdb err
  • From: Jim Ingham <email@hidden>
  • Date: Wed, 10 Mar 2004 09:41:45 -0800

On Mar 9, 2004, at 11:49 PM, email@hidden wrote:

When I build and debug an application with Xcode, the gdb "exit with signal
11", but I can run the application in Xcode successfully, and if I use gdb
on command line
such as gdb "myapp" and run it, everything is OK, can you tell me why?

Not without more information.

If gdb is crashing, there will be a crash log in ~/Library/Logs/CrashReporter/gdb-powerpc-apple-darwin.crash.log.

Another useful debugging aid is the gdb/Xcode communication log, which you can get by doing:

1) Quit Xcode.
2) In Terminal, say:

$ defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES

3) Restart Xcode, and do whatever you need to to make it fail.
4) Look in /tmp/<YOUR UID>/TemporaryItems/

There will be a file there called something like:

PBGDB-<Project Name>-<Xcode UID>

which contains the transcript of the gdb/Xcode communications.

If you can file a bug with these two bits of information, and if possible a sample project that shows the crash, we can probably figure out what is going on.


I also see some yellow triangle with a "!" in the start of a line in source code, and I cannot remove it? What does it mean?

That means there is a compiler warning on that line of code. If you hover over the warning, it will tell you what the compiler is worried about. All the warnings also show up in the build results panel as the project is being built. To remove it you have to figure out why the compiler thinks there is something wrong with your code & fix that.


Jim
--
Jim Ingham                                   email@hidden
Developer Tools
Apple Computer
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >gdb err (From: email@hidden)

  • Prev by Date: Re: Per-file compiler flags?
  • Next by Date: Re: How to add many files at once to a target?
  • Previous by thread: gdb err
  • Next by thread: Really dumb new target problem
  • Index(es):
    • Date
    • Thread