Comments (8)
I'm maybe misunderstanding your problem but, why are you hooking dashboard
to next
? The default behavior is to draw the dashboard whenever the target stops, hence after each next
.
from gdb-dashboard.
Ah I hadn't realized that, but the fact is, I do a bunch of other stuff in my hookpost-next, namely I tell my current vim instance to go to the file / line stopped on (which, just like "dashboard", grabs the gdb.selected_frame(). So I still need to be able to do stuff in hookpost-next and the original problem still stands. I was just trying to give you a simple repro case without dragging my other vim scripts into the mix.
Can you give me a pointer to how you're running dashboard when the target stops? Since that is working fine whereas the hookpost-next is not, I'll try just using that method for my vim stuff.
from gdb-dashboard.
Just to be clear: Any call to gdb.selected_frame() seems to fail in a hookpost-next... it's not just a 'dashboard' thing. It's very very likely this is a gdb issue and not really a gdb-dashboard issue, but at this point I'm curious what you're using to run 'dashboard' on stoppage so I can just copy that :)
from gdb-dashboard.
(No need to respond on that, I see how it's done)
from gdb-dashboard.
OK, so I can confirm that with the latest GDB version (from bminor/binutils-gdb) the following fails as you say with gdb.error: No frame is currently selected.
:
define hookpost-next
python print gdb.selected_frame()
end
Whereas it work with GDB version 7.7; they must have broken something I guess...
Anyway the dashboard is not affected because I'm registering to that event using the Python API as you can see here. Hope this helps.
from gdb-dashboard.
So as it doesn't seem to be related to the dashboard, can I close this? Feel free to comment here or reach me by email if you have any questions.
from gdb-dashboard.
Thanks for taking the time to confirm that, it's good to have a sanity check.
After using the python API to connect to the stop event, all is well again. Thanks!
from gdb-dashboard.
Great! You're welcome.
from gdb-dashboard.
Related Issues (20)
- Ability to control module output with configurable format string HOT 1
- 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
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.