While hunting for bug in application on ARM development board I met strange GDB behavior - it fails to single step over 'udiv' instruction complaining about memory access failure: > Cannot access memory at address 0xffffffd3
Created attachment 8395 [details] test case armv7l-tizen-linux-gnueabi-gcc -O0 -Wall -Wextra -o udiv-test udiv-test.c -save-temps -g
Created attachment 8396 [details] test case log
GDB doesn't handle this instruction correctly during software single step. I'll take a look.
Patch is posted here https://sourceware.org/ml/gdb-patches/2015-06/msg00610.html
The master branch has been updated by Yao Qi <qiyao@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7b9be803fed8f500b512d5685773c84fffcdf63f commit 7b9be803fed8f500b512d5685773c84fffcdf63f Author: Yao Qi <yao.qi@linaro.org> Date: Tue Jun 30 09:24:43 2015 +0100 Handle media instructions in arm software single step. This patch fixes PR 18605 which is about incorrectly decoding media instructions in software single step. gdb: 2015-06-30 Yao Qi <yao.qi@linaro.org> PR tdep/18605 * arm-tdep.c (arm_get_next_pc_raw): Break for media instructions.
Patch is pushed in. Close this bug.