Comments (2)
I'm glad that you prefer the Stack module over the native implementation and I totally see your point, but I started this project with some principles/ideas in mind; in particular I didn't want to make it another GDB frontend nor a tool which would have imposed some specific workflow to programmers. So I always tried to not add additional commands, in fact everything can be done via the dashboard
sub/command.
Nevertheless, I wanted it to be as easy hackable as possible so in general your approach it does work, but in this case it might be more convenient to play a bit with the internals and use something like this:
define stack
# create the module
python stack = Stack()
# initialize *all* its attributes
python stack.limit = 0
python stack.show_arguments = True
python stack.show_locals = True
# print the output
python print('\n'.join(stack.lines(False)))
end
This approach has the advantage to avoid unnecessary re-displays of the dashboard and also doesn't clash with your default settings.
You should be able to use something similar to this with any other modules, just take care of reusing the object instead of creating a new one each time if the module is a stateful one (e.g., the list of watched expressions) for example replacing:
python module = Module()
with:
python module = locals().get('module', Module())
Please let me know if this may fix your issue and if you have any questions please do not hesitate to ask.
from gdb-dashboard.
That is exactly the command I need, thank you!
from gdb-dashboard.
Related Issues (20)
- Cannot write the dashboard HOT 1
- Issue with catch throw HOT 3
- Don't know how to use gdb-dashboard HOT 3
- Color scheme for the bottom section HOT 1
- Disable gdb startup text HOT 5
- how to disable output / messages? or remove from source code? HOT 1
- doesn't work, when source the .gdb-dashboard HOT 1
- Clion GDB HOT 1
- armv8 registers cannot be displayed HOT 2
- Last command still fails on gdb 8.2-19.el8 on rocky 8 HOT 3
- Dashboard flickering due to unexpected disappear/re-appear of original one-line src code at the top
- How do you save the dashboard layout? HOT 3
- Not able to install HOT 22
- On gdb shell, print <var_nam> must wait for user to press enter for more and q for quit and c for continue to print till end. But not happening HOT 3
- [Enhancement] trace from born till death HOT 1
- Invalid escape sequence errors with new Python HOT 1
- Windows GDB is broken
- dashboard does not show up HOT 3
- Hardware Breakpoints (QEMU GDB) HOT 1
- Highlight HOT 1
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-dashboard.