Code Monkey home page Code Monkey logo

Comments (4)

scottlu avatar scottlu commented on July 28, 2024

This problem is being caused by a bug in the CGDB's implementation of the GDB/annotate-2 protocol.

When you press tab, CGDB sends GDB a "server complete " command, then normally GDB replies with the completion results. CGDB then updates readline with the new updated line, and updates the screen.

But, when GDB is waiting for you to enter breakpoint commands it doesn't offer a response to the "server complete " command, and this causes CGDB's annotate-2 state machine to get confused.

CGDB's annotate-2 state machine has the same state value for the normal prompt vs. the "enter breakpoint commands" prompt. This could be differentiated to fix the bug, however there is talk of moving to the GDB/MI protocol, which would make this issue moot.

from cgdb.

brasko avatar brasko commented on July 28, 2024

I'm working towards a patch for this. At a minimum, I'll try to ignore tab completion in this situation rather than completely ruin the debugging session. I'll probably not get this into the next release, but most likely we'll release more regularly for a while.

from cgdb.

brasko avatar brasko commented on July 28, 2024

This should be fixed in the new-ui branch. Please let me know. Thanks.

from cgdb.

brasko avatar brasko commented on July 28, 2024

Fixed in master

from cgdb.

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.