Page MenuHomeFreeBSD

D29538.id87337.diff
No OneTemporary

D29538.id87337.diff

diff --git a/usr.sbin/bhyve/gdb.c b/usr.sbin/bhyve/gdb.c
--- a/usr.sbin/bhyve/gdb.c
+++ b/usr.sbin/bhyve/gdb.c
@@ -731,8 +731,6 @@
_gdb_cpu_suspend(int vcpu, bool report_stop)
{
- if (!gdb_active)
- return;
debug("$vCPU %d suspending\n", vcpu);
CPU_SET(vcpu, &vcpus_waiting);
if (report_stop && CPU_CMP(&vcpus_waiting, &vcpus_suspended) == 0)
@@ -807,6 +805,8 @@
gdb_cpu_suspend(int vcpu)
{
+ if (!gdb_active)
+ return;
pthread_mutex_lock(&gdb_lock);
_gdb_cpu_suspend(vcpu, true);
gdb_cpu_resume(vcpu);

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 10, 12:54 PM (3 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15742829
Default Alt Text
D29538.id87337.diff (526 B)

Event Timeline