Giter VIP home page Giter VIP logo

Comments (3)

cs01 avatar cs01 commented on July 3, 2024

This is not a dumb question.

What you can do is stop at a breakpoint and run the command signal 2 (SIGINT) in the gdb command line widget, which is equivalent to CTRL+C in the terminal. It might work when running in realtime, but I haven't tested it.

There is also the command -exec-interrupt (ftp://ftp.gnu.org/pub/old-gnu/Manuals/gdb/html_chapter/gdb_22.html) but it doesn't seem to work.

Let me know if either of these work for you.

from gdbgui.

duststorm avatar duststorm commented on July 3, 2024

I'm interested in this functionality too.
With the current version, as long as no breakpoints are hit, you lose the ability to control gdb. If no future breakpoints are hit you're left without control.
Having a simple pause button at the top of the screen would go a long way in improving matters.
I saw your work in the rewrite-to-react branch, but when I checked out the code I could not immediately find an obvious button in the gui. What's the status of your work?

from gdbgui.

cs01 avatar cs01 commented on July 3, 2024

@duststorm the rewrite-to-react branch (commit e3e1d9a) has more features and no known regressions from the latest master, so it's safe to use.

On that branch, at the top right of the side pane there are some new buttons:
image

If you click send to inferior, it'll send the selected signal to the inferior process, which usually causes it to exit entirely. After doing a little searching, it looks like pausing a running program might be possible by sending SIGINT to gdb itself. I will look into that more and add a button to do that as well if it makes sense.

Let me know if the branch helps at all. I plan to eventually merge it into master and release, but wanted to get some testing in on it before that happens, so any feedback is appreciated.

from gdbgui.

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.