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)
Fri, Jan 10, 5:12 AM
Unknown Object (File)
Nov 14 2024, 1:24 PM
Unknown Object (File)
Nov 12 2024, 1:36 AM
Unknown Object (File)
Sep 19 2024, 12:44 AM
Unknown Object (File)
Sep 8 2024, 10:12 PM
Unknown Object (File)
Sep 8 2024, 11:46 AM
Unknown Object (File)
Sep 7 2024, 11:54 PM
Unknown Object (File)
Sep 3 2024, 3:32 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).