Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107063126
D29538.id87337.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
526 B
Referenced Files
None
Subscribers
None
D29538.id87337.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D29538: bhyve: Move the gdb_active check to gdb_cpu_suspend().
Attached
Detach File
Event Timeline
Log In to Comment