CONFIG_CPU_NO_USER_BKPT is not available for thedefaultarchitecture x86.
Result is shown for architecture csky
CONFIG_CPU_NO_USER_BKPT (not configurable)
configname: CONFIG_CPU_NO_USER_BKPT
Linux Kernel Configuration
└─>CPU_NO_USER_BKPT
In linux kernel since version 4.2 (release Date: 2015-08-30)
For abiv2 we couldn't use "trap 1" as user space bkpt in gdbserver, because
abiv2 is 16/32bit instruction set and "trap 1" is 32bit.
So we need a 16bit instruction as user space bkpt, and it will cause an illegal
instruction exception.
In kernel we parse the *regs->pc to determine whether to send SIGTRAP or not.
abiv2 is 16/32bit instruction set and "trap 1" is 32bit.
So we need a 16bit instruction as user space bkpt, and it will cause an illegal
instruction exception.
In kernel we parse the *regs->pc to determine whether to send SIGTRAP or not.