kgdb_arch_set_pc(9)
β¨ NAME β¨
kgdb_arch_set_pc β Generic call back to the program counter β is serving major Kernel API Manual energy for kgdb_arch_set_pc(9). Bestie, this is the little hook that handles updating the program counter, and it's lowkey iconic because it needs an architecture-specific implementation to actually do the thing π
πΈ SYNOPSIS πΈ
void kgdb_arch_set_pc (struct pt_regs *regs , unsigned long pc );
π ARGUMENTS π
regsβ Currentstruct pt_regs. That's the regs snapshot you're working with, no cap.pcβ The new value for the program counter. This is the glow-up value for the PC β¨
π¦ DESCRIPTION π¦
Okay so real talk: this function handles updating the program counter, and it requires an architecture specific implementation. That means each architecture has to bring its own implementation β it's giving "you had one job, and it's updating the PC" π₯
π SEE ALSO π
Kernel file: ./include/linux/kgdb.h β this is the spot to peek at, iykyk π
kgdb_skipexception(9)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_late(9)struct kgdb_arch(9)struct kgdb_io(9)
xoxo, your fave little PC-updating page kgdb_arch_set_pc(9) π β source/version ./include/linux, dated October 2026, signing off. Periodt. π«Ά
π¦ 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