Coder Social home page Coder Social logo

Debug symbols about osxcross HOT 7 CLOSED

tpoechtrager avatar tpoechtrager commented on July 3, 2024
Debug symbols

from osxcross.

Comments (7)

tpoechtrager avatar tpoechtrager commented on July 3, 2024

Well, it would require a port of the dsymutil - but the source code of it isn't publicly available, so it can't be ported.

The only way would be to get the original OS X dsymutil binary working on Linux (would prefer to have native binaries for everything).

Maybe https://github.com/shinh/maloader would be an option.
But I am really not happy about the build dependencies of it (native libc++ and OpenCFlite to get dsymutil working).

Will give it a try, but it will take a few days (or maybe a week or two) as I am currently busy with other thing.

from osxcross.

xsleonard avatar xsleonard commented on July 3, 2024

I may look into maloader but I agree, the dependencies are not ideal.

Regardless, this is fantastic. I've been looking to target OS X from linux for years. Thanks

from osxcross.

tpoechtrager avatar tpoechtrager commented on July 3, 2024

Thanks, glad to hear that.

from osxcross.

xsleonard avatar xsleonard commented on July 3, 2024

I am unclear on the details of this, but is dsymutil necessary for writing DWARF's .debug_abbrev to the .o files? It sounds like dsymutil operates on existing DWARF data embedded in the .o files to generate a dSYM file.

from osxcross.

tpoechtrager avatar tpoechtrager commented on July 3, 2024

It must be dsymutil (not an expert about it) because that tool is the only difference.

If you get dsymutil somehow working, then don't forget to remove the -g0 (${1+"$@"} -g0 -> ${1+"$@"}) in the wrapper file (oclang/oclang), then re-run ./build.sh.

If you are using gcc, then you must remove patch -p0 < $OSXCROSS_PATCH_DIR/gcc-dsymutil.patch from build_gcc.sh, then rebuild gcc (run rm build/have_gcc* first).

from osxcross.

tamird avatar tamird commented on July 3, 2024

This issue should probably be reopened, since debug info still doesn't work.

from osxcross.

tpoechtrager avatar tpoechtrager commented on July 3, 2024

@tamird: Debug info works: https://github.com/tpoechtrager/osxcross/blob/master/README.DEBUGGING.md.

from osxcross.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.