Page MenuHomeFreeBSD

Skip call CPU_ISSET for NOCPU.
ClosedPublic

Authored by dchagin on Dec 8 2014, 9:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 15, 10:28 PM
Unknown Object (File)
Wed, Apr 15, 8:11 PM
Unknown Object (File)
Wed, Apr 15, 2:21 PM
Unknown Object (File)
Sun, Apr 12, 10:37 AM
Unknown Object (File)
Fri, Apr 10, 3:18 PM
Unknown Object (File)
Thu, Apr 9, 9:33 AM
Unknown Object (File)
Tue, Mar 24, 12:43 PM
Unknown Object (File)
Sun, Mar 22, 11:42 PM
Subscribers
None

Details

Summary

I have core where td_state is TDS_RUNNING and td_oncpu is NOCPU. It seems for short time we can have this,
so skip call CPU_ISSET for NOCPU to prevent kgdb from crashing.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dchagin retitled this revision from to Skip call CPU_ISSET for NOCPU..
dchagin updated this object.
dchagin added a reviewer: jhb.
gnu/usr.bin/gdb/kgdb/kthr.c
100 ↗(On Diff #2685)

Probably you can just drop the td_state test entirely then and only test td_oncpu.

dchagin updated this revision to Diff 2690.

Closed by commit rS275644 (authored by @dchagin).