public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: julien.lincy@thomson.net
To: gdb-gnats@sources.redhat.com
Cc: dan@codesourcery.com
Subject: gdb/2541: ARM single step problem with instruction 0xa5ffffeb
Date: Wed, 22 Oct 2008 11:48:00 -0000	[thread overview]
Message-ID: <20081022114101.8603.qmail@sourceware.org> (raw)


>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


             reply	other threads:[~2008-10-22 11:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-22 11:48 julien.lincy [this message]
2008-10-22 13:08 ` pending/2542: " Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081022114101.8603.qmail@sourceware.org \
    --to=julien.lincy@thomson.net \
    --cc=dan@codesourcery.com \
    --cc=gdb-gnats@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).