Comments (4)
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.
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.
This should be fixed in the new-ui branch. Please let me know. Thanks.
from cgdb.
Fixed in master
from cgdb.
Related Issues (20)
- how to change gdb program that cgdb use? HOT 1
- Cygwin BUG: [commit: 2022-06-12 208d038] fdopen was not declared in this scope
- Question: How to clear search highlights HOT 5
- cannot stat 'cgdb.htp': No such file or directory HOT 2
- file dialog freezing terminal in msys2/WSL HOT 2
- Cannot Display Color Properly HOT 2
- cgdb bug: remote connect to kdb cannot do twice HOT 3
- ESCape key mixup with readline HOT 2
- how to disable source code display in cgdb windows HOT 3
- utf support HOT 2
- [bug] Assertion in signal_handler on SIG_CHLD HOT 1
- It should be possible to disable makeinfo with configure flags HOT 1
- cgdb doesn't handle different langage path-to-file HOT 1
- REG 7bbd997: Multi-character input sequences are broken HOT 4
- Suggestion: Host release artifacts on Github
- cgdb doesn't support remote debug (gdbserver) HOT 1
- [bug] valgrind cannot display message HOT 3
- Mouse pasting is broken HOT 1
- Compilation from git is broken on fedora 49 HOT 1
- cgdb interprets arguments after -- in certain cases
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 cgdb.