projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix undefined behavior in gdbserver
[deliverable/binutils-gdb.git]
/
gdbserver
/
inferiors.cc
diff --git
a/gdbserver/inferiors.cc
b/gdbserver/inferiors.cc
index 861c9f3e338f9e2ad7a0e562e669ceb27adfd8a5..9a1280d039b42f847fe51bd87a3e77345fad7222 100644
(file)
--- a/
gdbserver/inferiors.cc
+++ b/
gdbserver/inferiors.cc
@@
-103,9
+103,9
@@
remove_thread (struct thread_info *thread)
discard_queued_stop_replies (ptid_of (thread));
all_threads.remove (thread);
- free_one_thread (thread);
if (current_thread == thread)
current_thread = NULL;
+ free_one_thread (thread);
}
void *
This page took
0.025761 seconds
and
4
git commands to generate.