GithubHelp home page GithubHelp logo

unable to call functions about gdb-tools HOT 2 OPEN

vuvova avatar vuvova commented on August 11, 2024
unable to call functions

from gdb-tools.

Comments (2)

vuvova avatar vuvova commented on August 11, 2024

I know. This is one of gdb python API limitations. It can store the "value" (e.g. head->next->getKey a pointer to a member method) in a python variable, but it doesn't allow to call it. Same for internal gdb functions like $_streq. It's reported as https://sourceware.org/bugzilla/show_bug.cgi?id=13326

There's a workaround, to use eval and I believe I'll implement it before gdb is fixed. In our C++ codebase I also often need to traverse a list and call some method

from gdb-tools.

marksilverman avatar marksilverman commented on August 11, 2024

Ok, interesting. I hope the workaround doesn't run very slowly.

Another thing I noticed is that the results from duel don't go into gdb's value history (i.e., the special variable '$' or '$1' or '$2', etc). I won't be surprised if that's not possible or easy to fix, but it would be a nice little feature.

Thanks for writing this library, it's really amazing. Some of the advanced constructions are hard to understand, but I'm getting pretty good at it.

from gdb-tools.

Related Issues (15)

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.