Comments (2)
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.
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)
- PyPI repository HOT 1
- Need python 3 support HOT 1
- Help fails to load on FreeBSD with Python 3.6 HOT 3
- ModuleNotFoundError: No module named 'duel' (solution) HOT 1
- Option to disable verbosity of output HOT 4
- Reference "_" has wrong value HOT 1
- Use negative numbers in [[x]] operator as counting from the end HOT 2
- Member variables starting with "_" not working
- functions as expressions HOT 1
- lldb support
- Installation instructions are missed HOT 4
- Support assigned variables HOT 1
- Add printer format (like /x) in DUEL HOT 5
- Duel.py cannot handle dereferencing a pointer in some cases HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdb-tools.