Code Monkey home page Code Monkey logo

Comments (5)

koutheir avatar koutheir commented on May 26, 2024

The pretty printer for std::vector might be out of date regarding the structure of std::vector in memory. This might be due to a change in libcxx. The pretty printer code will have to be updated. I am not actively maintaining this project for the mean time, so I might need some time to perform the change.

from libcxx-pretty-printers.

Vrroom avatar Vrroom commented on May 26, 2024

from libcxx-pretty-printers.

koutheir avatar koutheir commented on May 26, 2024

Thank you for your readiness to help 👍 I really appreciate it!

The pretty printer code that might need adjustments starts here.

There is no documentation for the new structures, except in the source code of libcxx. The following implementations are the interesting parts to start with:

  • The class __vector_base in vector,
  • The class __compressed_pair in memory,
  • The structure __compressed_pair_elem in memory.

from libcxx-pretty-printers.

IvanAli avatar IvanAli commented on May 26, 2024

Any hints on how to get this to work for queue? gdb complains I cannot perform division and modulo of two variables of type gdb.Value (inside the init method for StdDequePrinter. The exact error says: <class 'gdb.error'> Can't do that binary op on that type ). I tried to cast them to int but one of the values is optimized out and thus can't cast.

from libcxx-pretty-printers.

koutheir avatar koutheir commented on May 26, 2024

The std::queue pretty printing code might also be out of date with the changes to libc++. I opened the issue #4 for that, and I will try to work on it when I have some spare time. In the mean time, if you can fix it, then please do so and make a pull request.

from libcxx-pretty-printers.

Related Issues (8)

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.