Skip to content

Commit

Permalink
initialize the GdbServer::failed_restart variable in constructors oth…
Browse files Browse the repository at this point in the history
…erwise random values will cause problems
  • Loading branch information
sidkshatriya authored and rocallahan committed Feb 28, 2024
1 parent 3568db2 commit 9d00c09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/GdbServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ GdbServer::GdbServer(std::unique_ptr<GdbServerConnection>& dbg, Task* t)
last_continue_tuid(t->tuid()),
last_query_tuid(t->tuid()),
final_event(UINT32_MAX),
failed_restart(false),
stop_replaying_to_target(false),
interrupt_pending(false),
exit_sigkill_pending(false),
Expand Down
1 change: 1 addition & 0 deletions src/GdbServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class GdbServer {
: target(target),
final_event(UINT32_MAX),
in_debuggee_end_state(false),
failed_restart(false),
stop_replaying_to_target(false),
interrupt_pending(false),
exit_sigkill_pending(false),
Expand Down

0 comments on commit 9d00c09

Please sign in to comment.