Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139413126
D29538.id86698.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
560 B
Referenced Files
None
Subscribers
None
D29538.id86698.diff
View Options
Index: usr.sbin/bhyve/gdb.c
===================================================================
--- usr.sbin/bhyve/gdb.c
+++ 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
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 12, 7:29 PM (14 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26899780
Default Alt Text
D29538.id86698.diff (560 B)
Attached To
Mode
D29538: bhyve: Move the gdb_active check to gdb_cpu_suspend().
Attached
Detach File
Event Timeline
Log In to Comment