This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add proper single-step support for arm-none-eabi


Elouan Appere <elouan.appere@club-internet.fr> writes:

> This commit adds proper support for single-stepping on arm-none-eabi.
>
> arm_software_single_step is now always registered in arm_gdbarch_init (arm-tdep.c) before calling gdbarch_osabi_init. Additionally, arm_software_single_step now checks whether or not the target supports single-stepping itself (which is the case for most simulators, emulators, etc.).

This changes the arm-none-eabi gdb software single step behavior.
Currently, arm-none-eabi gdb doesn't do software single step, and
debugging stubs support hardware single step "silently".
With your patch applied, arm-none-eabi gdb thinks existing debugging
stubs don't support hardware single step, it changes to software single
step, because they don't tell gdb they do support hardware single step.

Why do you need software single step in bare-metal debugging?

-- 
Yao (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]