Xcode 3.2. Debugging a shared library doesn't work

Xcode 3.2.6, 10.6.8, C++ Project, with a bit of Objective-C.

I have a project that uses a shared library (that I have all the code for and can build whenever). I am crashing someplace when I reach the shared library and I cannot figure out why. I have all the .h files that make up the shared library in my project and I link to the .a. I build and link without errors.

Here is what I have tried:

  1. I have built the shared library with Debug symbols
  2. I have placed a break-point in the shared library .cpp file where I should enter but Xcode does not stop at it.
  3. I have tried placing NSLog statements in the shared library and building it again to see if they show up in the console and I dont see where they do before the crash.

How does one debug an app that crashes in a shared library. I seem to recall I could do this in Metrowerks years ago.

Advice is appreciated.

Category:c# Views:5 Time:2011-10-30

Related post

  • How to debug a shared library using eclipse/gdb on Windows? 2009-03-29

    At my university we are currently developing a VST-Plugin on Windows using open source tools. My professor is pretty fond of Microsoft Visual Studio and rather sceptic towards open source tools such as Eclipse, GCC, Subclipse etc. However, until now

  • debug a shared library in Linux 2012-04-12

    so, we have a plugin for Softimage. Unfortunately, the Linux version has a bug somewhere. Is there a nice way to debug that plugin, a shared library, while it's used by Softimage? Is it possible to use Eclipse, or any other IDE, to debug the plugin?

  • debugging a shared library wrapped by SWIG in perl 2011-07-13

    I have wrapped my C/C++ code using SWIG in Perl. I have few segmentation fault because of the wrapped code. I am trying to use ddd with the Perl script but unfortunately even if I set a breakpoint on a line of the script ( the one calling C/C++ code

  • gdb debugging shared library issue 2012-02-21

    I'm trying to use gdb to debug a shared library when stepping into the function in the shared library I've started getting <optimized out> for all the local variables (written in C) I've tried linking to a shared library (.so) linking to a stat

  • gdb remote debugging - program crashes when stepping into a shared library 2011-02-17

    I cross compiled a linux targeted app on a cygwin host. The program runs ok on the target and also with gdbserver. However, when I try to step through the program it crashes whenever I step into a shared library function. The backtrace gdb prints is:

  • Problem with debuging shared library in eclipse 2011-04-10

    My project consists of several shared libraries and one executable. I tried to debug my code from shared library but debugger never stops on breakpoints and I get warnings for each breakpoint: "Breakpoint attribute Problem: Installation Failed.". Can

  • Cannot Debug Shared Library - Symbols Not Loading Properly 2011-06-17

    I am currently writing a small library, and I want to check it for leaks (among other things); however, for some reason, gdb is not loading the library symbols. I have read many other posts on here (and various other places on the internet) about thi

  • loading C shared library with Xcode project Objective C 2011-06-27

    I'm a beginner with MacOSX and I want to know if it's possible to load a shared library (dylib) written in "C" with a Xcode project written in Objective C and if yes how can I do it. If you have an example of a case like this one it would be very use

  • Xcode: How do I build my .app project also as a Shared Library? 2011-07-27

    First I am using Xcode 3.2.5 on a MAC OS X 10.6 I have an Cocoa Application project that builds and runs fine. I have some functions in this project that I am exporting out using: #define CORE_EXPORT __attribute__ ((visibility ("default"))) extern "C

  • Need help debugging why a shared library fails to load. Android NDK 2012-03-22

    I am trying to load a shared library using: System.loadLibrary("sharedC"); sharedC is dependent on 2 other shared libraries sharedA and sharedB, all three were made using the standalone toolchain and are included as prebuilt shared libraries. I load

  • Debugging/tracing inside a shared library during runtime? 2009-08-26

    I'm trying to understand how a certain library works. I've compiled it with my added prinfts and everything is great. Now I want to stop the example program during runtime to look at the call stack, but I can't quite figure out how to do it with gdb.

  • Using python ctypes to get buffer of floats from shared library into python string 2009-04-01

    I'm trying to use python ctypes to use these two C functions from a shared library: bool decompress_rgb(unsigned char *data, long dataLen, int scale) float* getRgbBuffer() The first function is working fine. I can tell by putting some debug code in t

  • How to export symbols from a shared library 2009-04-16

    I have created a shared library(*.so) using the *.o object code files(C source code) using RVDS compiler on windows Host. I link this shared object with a application(using gcc for arm target on linux host) and obtain a executable, which on running g

  • Adding generic logging support in C++ shared library 2009-07-16

    I'm writing a c++ shared library that is intended to be used by other library or executable. What is the best way to add a generic logging in my library? Ideally I'd like to adapt my library to logging functionality chosen by the library's user. Supp

  • How do I use waf to build a shared library? 2009-10-20

    I want to build a shared library using waf as it looks much easier and less cluttered than GNU autotools. I actually have several questions so far related to the wscript I've started to write: VERSION='0.0.1' APPNAME='libmylib' srcdir = '.' blddir =

  • Compiling a shared library with Qt on Ubuntu 9.10 2009-11-07

    I am new to both Qt and Linux C++ development (although I have many years C and C++ development experience on Windows). I have some legacy C projects (source files and headers - [not using Qt]) that I want to compile into shared libs on Linux. I am p

  • Using libtool to load a duplicate function name from a shared library 2009-11-11

    I'm trying to create a 'debug' shared library (i.e., .so or .dll file) that calls another 'real' shared library that has the same C API as the debug library (in this case, to emulate the PKCS#11 API). However, I'm running into trouble where the link

  • gprof : How to generate call graph for functions in shared library that is linked to main program 2009-12-03

    I am working on Linux environment. I have two 'C' source packages train and test_train. train package when compiled generates libtrain.so test_train links to libtrain.so and generates executable train-test Now I want to generate a call graph using gp

  • Static and shared library symbol conflicts? 2010-02-07

    I've got a project working on that's using FreeImage and openCV, currently we're using the jpeg support from both of these (I am working towards fixing that, but for now it's got to stay). Anyhow, FreeImage compiles libjpeg 7.0 into its static librar

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.153 (s). 11 q(s)