Code Monkey home page Code Monkey logo

Comments (9)

jrfonseca avatar jrfonseca commented on June 8, 2024

I don't know if you noticed, but I recently added support for .gnu_debuglink -- https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html -- which is the standard way of doing this sort of thing with GDB/MinGW.

I'm afraid I'm not interesting in supporting a non-standard way.

from drmingw.

dismine avatar dismine commented on June 8, 2024

Do you know that feature no more works?

from drmingw.

jrfonseca avatar jrfonseca commented on June 8, 2024

Do you know that feature no more works?

@dismine , are you saying that .gnu_debuglink doesn't work anymore?

I wrote a unit test for it (test_mgwhelp_stripped) , and it is passing on multiple machines. So it works at least in some cases. If it doesn't work for you please file a bug report and provide more information.

from drmingw.

dismine avatar dismine commented on June 8, 2024

@dismine , are you saying that .gnu_debuglink doesn't work anymore?

Yes, i do. And wrote you a letter about it.

If it doesn't work for you please file a bug report and provide more information.

Ok, i will make a bug report.

from drmingw.

jrfonseca avatar jrfonseca commented on June 8, 2024

Yes, i do. And wrote you a letter about it.

OK. Indeed I got your email about the regression, and I got it starred for further action, but when I read it, I somehow mixed up with your other email thread about line number differences, and not the split debug symbols issue.

Thanks for the issue report though. It's easier for me to track these things in the issue tracker.

from drmingw.

renatosilva avatar renatosilva commented on June 8, 2024

@jrfonseca, GDB seems to organize the symbol files based on FHS structure, which is usually not applicable to Windows programs. They will unlikely support non-FHS models such as Program Files. So instead of spreading .debug files or subdirectories all over the place, your application is usually better organized if you keep them within a simple, separate subdirectory. The commit I mentioned allows for this with SetDebugInfoDir.

from drmingw.

jrfonseca avatar jrfonseca commented on June 8, 2024

Currently the debug files have to be in same dir as the executables.

If that's insufficient I'd rather add support for searching the MinGW debug files into _NT_SYMBOL_PATH

from drmingw.

renatosilva avatar renatosilva commented on June 8, 2024

Using the structure expected by GDB instead of implementing SetDebugInfoDir is convenient because it can find the symbols automatically, yes. But GDB will also search for the symbol files within a .debug folder alongside the executable, so could you implement this as well?

from drmingw.

jrfonseca avatar jrfonseca commented on June 8, 2024

But GDB will also search for the symbol files within a .debug folder alongside the executable, so could you implement this as well?

Yes, that seems a good idea. I'm not sure exactly when to do it -- I'm tired of ugly and buggy filepath manipulation code, and want to start using strsafe.h or std::string. But please file a bug and I'll eventually get around to do it.

from drmingw.

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.