osx - How can I build and install a C program on OS X with debugging symbols? -
how can build , install c program debugging symbols on os x?
i'm trying build (mutt) debugging symbols on os x, me track down crash. i'm following homebrew formula mutt in build process. no matter try, resulting binary has no debugging symbols. build cflags='-g -o0'
(after having tried default '-g -o2'
in makefile). can see when see make output go using these flags should be, , don't see strip
or install -s
invocations; resulting binary has no debugging symbols, seen trying run in gdb or lldb, or running dsymutil on it.
i'm trying understand the valgrind instructions on matter; basically, linker on os x doesn't put debug symbols exist in object files linked result -- read saying have run dsymutil on linked result, i'm little unsure whether automatically pulls in symbols object files, or if there's way need specify them.
and if knew how use dsymutil here, don't see there debug symbols in of .o files.
finally, i'm wondering if "proper" installation, once got debugging symbols binary, copy .dsym directory /usr/local/bin along mutt; or if go somewhere else. know in debian-based systems can install debuggable versions of libraries using package manager, don't know if it's best practice (or practice that's common) install things debug symbols in os x. if nothing else, can run debuggable binary build directory, doesn't seem big deal.
i've tried building gcc , clang, same disappointing results.
Comments
Post a Comment