Skip to content

Commit 964b377

Browse files
committed
Accept line not starting with done in gdb api
Some versions of gdb seem to not print `done` when all the symbols were read.
1 parent 62dded3 commit 964b377

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/memory-analyzer/gdb_api.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ void gdb_apit::create_gdb_process()
135135
// get stream for writing to gdb
136136
command_stream = fdopen(pipe_input[1], "w");
137137

138-
bool has_done_tag = most_recent_line_has_tag(R"(~"done)");
139-
CHECK_RETURN(has_done_tag);
138+
std::string line = read_most_recent_line();
139+
CHECK_RETURN(
140+
has_prefix(line, R"(~"done)") ||
141+
has_prefix(line, R"(~"Reading)"));
140142

141143
if(log)
142144
{

0 commit comments

Comments
 (0)