Git Product home page Git Product logo

Comments (8)

cyrus-and avatar cyrus-and commented on May 18, 2024

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.

AndrewJDR avatar AndrewJDR commented on May 18, 2024

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.

AndrewJDR avatar AndrewJDR commented on May 18, 2024

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.

AndrewJDR avatar AndrewJDR commented on May 18, 2024

(No need to respond on that, I see how it's done)

from gdb-dashboard.

cyrus-and avatar cyrus-and commented on May 18, 2024

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.

cyrus-and avatar cyrus-and commented on May 18, 2024

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.

AndrewJDR avatar AndrewJDR commented on May 18, 2024

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.

cyrus-and avatar cyrus-and commented on May 18, 2024

Great! You're welcome.

from gdb-dashboard.

Related Issues (20)

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.