kgdb_skipexception(9)
β¨ kgdb_skipexception β¨
okay so real talk, bestie β this is a page from the Kernel API Manual, section 9, and it's about one lil function called kgdb_skipexception. it's short, it's sweet, and it's (optional) which is honestly such a mood. let's get into it π
π NAME π
kgdb_skipexception β the (optional) lil bail-out that lets you exit kgdb_handle_exception early. that's it. that's the whole vibe. no cap. β¨
π¦ SYNOPSIS π¦
int kgdb_skipexception (int exception , struct pt_regs *regs );
like, that's literally the whole signature. look at her go π
πΈ ARGUMENTS πΈ
exceptionβ the exception vector number. yes, the number of the vector. it's giving "which exception are we even talking about" energy π₯regsβ the currentstruct pt_regs. the register state, the receipts, the whole picture. keep it close π«Ά
π DESCRIPTION π
so on some architectures β not all of them, mind you, just some β it is required to skip a breakpoint exception when it occurs after a breakpoint has been removed. yeah. the breakpoint's gone but the exception is still out here showing up to the party π main character energy fr fr.
and the way you handle that? you implement it in the architecture specific portion of kgdb. that's the assignment. that's where this function lives. periodt. π
π SEE ALSO π
catch all of these, iykyk:
- Kernel file
./include/linux/kgdb.h kgdb_breakpoint(9)kgdb_arch_init(9)kgdb_arch_exit(9)pt_regs_to_gdb_regs(9)sleeping_thread_to_gdb_regs(9)gdb_regs_to_pt_regs(9)kgdb_arch_handle_exception(9)kgdb_arch_handle_qxfer_pkt(9)kgdb_call_nmi_hook(9)kgdb_roundup_cpus(9)kgdb_arch_set_pc(9)kgdb_arch_late(9)struct kgdb_arch(9)struct kgdb_io(9)
like, go read them. all of them. i'll wait π
π quick vibe check before you go: this whole thing lives in ./include/linux, and the page itself is dated October 2026. yes bestie, we're being that specific. π
mwah, that's the page β kgdb_skipexception(9), from the files under ./include/linux, October 2026 edition. slay, ate, no crumbs. π¦β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms