This is the mail archive of the gdb-prs@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]

gdb/2541: ARM single step problem with instruction 0xa5ffffeb


>Number:         2541
>Category:       gdb
>Synopsis:       ARM single step problem with instruction 0xa5ffffeb
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 22 11:48:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     J. Lincy
>Release:        GDB 6.8
>Organization:
>Environment:
ARM 1136 Linux 2.6.21 (EABI)
>Description:
I have a problem single stepping with a simple C program on ARM, with the instruction 0xa5ffffeb.

8538:       a5ffffeb        ldrgeb  pc, [pc, #4075]!        ; 952b <__clz_tab+0x6b>

GDB stops with the error "Invalid update to pc in instruction".

The C program i'm trying to test is attached.
The ARM I use is an ARM v1136 (a bit specific...).

I compiled GDB  with the following options 

./configure --enable-debug --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --prefix=/home/lincyj/gdb-6.8/build --disable-werror --disable-sim 

And gdbserver with the following options:

../gdb/gdbserver/configure --host=armeb-none-linux-gnueabi --target=armeb-none-linux-gnueabi --prefix=/home/lincyj/gdb-6.8/gdb-6.8/gdbserver_build

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-csrc; name="test_debug2.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test_debug2.c"

I2luY2x1ZGUgPHN0ZGlvLmg+Cgp1bnNpZ25lZCBsb25nIGxvbmcgZW50aWVyWzEwMjQgKiAxMDI0
XTsKCmludCBtYWluKHZvaWQpCnsKICAgaW50IGksIGg9MDsKCiAgICBwcmludGYoImJlZ2luIFxu
Iik7CnByaW50ZigiYmVnaW4yIFxuIik7CiAgICBnZXRjaGFyKCk7CgogICAgZm9yKGkgPSAwOyBp
PCAxMDI0OyBpKyspCiAgICB7CglpbnQgaiA9IGkqMjsKICAgICAgICBwcmludGYoImJvdWNsZSAl
ZCBcbiIsIGopOwoKICAgICAgICBqKys7CgoJZW50aWVyW2ldID0gajsKCgovLyNpZiAwIC8qIGRl
YnVnICovCi8vICAgaWYoKGVudGllclszN10gJSAxMCkgPT0gMCkgcHJpbnRmKCJiZWdpbiBcbiIp
OwoJcHJpbnRmKCJbMV0tLT4gaiA9ICVkIGVudGllclslZF0gPSAlbGx1IFxuIiwKCSAgICAgICBq
LCBpLCBlbnRpZXJbaV0pOwoKCiAgICAgICAgIHByaW50ZigidGVzdCBcbiIpOwogICAgICAgICBo
Kys7CiAgICAgICAgIHByaW50ZigiaCA9ICVkIFxuIiwgaCk7CgkKCQoJcHJpbnRmKCJbMl0tLT4g
aiA9ICVkIGVudGllclslZF0gPSAlbGx1IFxuIiwKCSAgICAgICBqLCBpLCBlbnRpZXJbaV0pOwov
LyNlbmRpZiAvKiBkZWJ1ZyAqLwogICAgfQoKICAgIHByaW50ZigiZW5kXG4iKTsKCiAgICBpZigo
ZW50aWVyWzM3XSAlIDEwKSA9PSAwKQoJICAgIGVudGllclszOF0gPSAwOwoKICAgIGdldGNoYXIo
KTsKICAgIAogICAgcmV0dXJuIDA7Cn0K


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