Comments (2)
start_gdb() in cgdb.cpp does the following:
tgdb_initialize() ...
tgdb_request_current_location()...
tgdb_initialize winds up calling down into a2_initialize(), which does:
commands_issue_command( .... ANNOTATE_INFO_BREAKPOINTS .... )
When process_commands() gets the TGDB_UPDATE_BREAKPOINTS response, it's before the TGDB_UPDATE_FILE_POSITION response comes in, so we don't have any source information yet and the breakpoint info is dropped.
I added a a2_get_current_location() call right before the INFO_BREAKPOINTS call in a2_initialize and it fixed the issue, but I'm not sure it's the best fix. Need to have Bob review this one...
diff --git a/lib/tgdb/annotate-two/a2-tgdb.cpp b/lib/tgdb/annotate-two/a2-tgdb.cpp
index 76bca13..7e2c17a 100644
--- a/lib/tgdb/annotate-two/a2-tgdb.cpp
+++ b/lib/tgdb/annotate-two/a2-tgdb.cpp
@@ -220,6 +220,12 @@ int a2_initialize(void *ctx,
a2_open_new_tty(a2, inferior_stdin, inferior_stdout);
+ /* Need to get source information before breakpoint information otherwise
+ * the TGDB_UPDATE_BREAKPOINTS event will be ignored in process_commands()
+ * because there are no source files to add the breakpoints to.
+ */
+ a2_get_current_location(a2, 1);
+
/* gdb may already have some breakpoints when it starts. This could happen
* if the user puts breakpoints in there .gdbinit.
* This makes sure that TGDB asks for the breakpoints on start up.
from cgdb.
Thanks to Michael Sartain, this has been fixed in master.
A release will most likely be done in a month or two.
from cgdb.
Related Issues (20)
- Breakpoints with multiple-symbols set to ask stopped working HOT 3
- configure.ac:3: error: possibly undefined macro: m4_esyscmd_s HOT 2
- cgdb should use full path for breakpoint when pressing space HOT 1
- [bug] sometimes breakpoint cannot make the line number become red HOT 5
- [feature] provide shell completions HOT 2
- [feature] Can cgdb delete mark? HOT 5
- [bug] Alt-. cannot work HOT 2
- [feature] Support mouse scrollbar HOT 6
- 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
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.