This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Add proper single-step support for arm-none-eabi
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Elouan Appere <elouan dot appere at club-internet dot fr>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 05 Apr 2017 12:30:30 +0100
- Subject: Re: [PATCH] Add proper single-step support for arm-none-eabi
- Authentication-results: sourceware.org; auth=none
- References: <20170325222311.10596-1-elouan.appere@club-internet.fr>
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 (齐尧)