• 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: How to tell GCC where to find source code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to tell GCC where to find source code?


  • Subject: Re: How to tell GCC where to find source code?
  • From: Jean-Denis Muys <email@hidden>
  • Date: Thu, 19 Nov 2009 14:17:42 +0100

Here is the solution for my issue where GDB (not GCC as I wrote by mistake) wouldn't find source code files:

On Tuesday, November 17, 2009, at 03:32PM, "Jean-Denis Muys" <email@hidden> wrote:
>warning: Could not find object file "/Volumes/MiniData/Development/mySQL/mysql-connector-c++-1.1.0/driver/CMakeFiles/mysqlcppconn.dir/nativeapi/mysql_native_resultset_wrapper.cpp.o" - no debug information available for "/Volumes/MiniData/Development/mySQL/mysql-connector-c++-1.1.0/driver/nativeapi/mysql_native_resultset_wrapper.cpp".

Here the missing file is actually not the source file, but the compiled .o file. I managed to rebuild everything on my machine, but I also checked that it worked if I copied all files in the correct subdirectory of a mounted sparse disk image named as the original volume. Of course, that trick only works because GDB is looking for those files using full path names that start with "/Volumes". Otherwise, I suppose a soft (or hard) link would have worked too.


>I downloaded the entire source code for the GCC 4.2 suite and I now do have all the standard C++ library source code, including basic_string.tcc. How can I tie it to the actual library?
>

XCode makes it possible for GDB to look into additional directories for source code from the Executable info panel, under the "Debugging" pane. It's documented, but I had somehow missed it.

This may be useful in the future if (when!) I forget about all this and google again for it.

Regards,

Jean-Denis Muys
 _______________________________________________
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: SPAM-LOW: Re: How to tell GCC where to find source code?
      • From: "Paul Sanders" <email@hidden>
  • Prev by Date: Re: Xcode 3.1 SCM breaks after installing Subversion 1.6
  • Next by Date: Re: SPAM-LOW: Re: How to tell GCC where to find source code?
  • Previous by thread: Re: How to tell GCC where to find source code?
  • Next by thread: Re: SPAM-LOW: Re: How to tell GCC where to find source code?
  • Index(es):
    • Date
    • Thread