From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12300 invoked by alias); 22 Oct 2008 11:48:02 -0000 Received: (qmail 12281 invoked by uid 71); 22 Oct 2008 11:48:01 -0000 Resent-Date: 22 Oct 2008 11:48:01 -0000 Resent-Message-ID: <20081022114801.12280.qmail@sourceware.org> Resent-From: gdb-gnats@sources.redhat.com (GNATS Filer) Resent-To: nobody@sources.redhat.com Resent-Cc: gdb-prs@sources.redhat.com, dan@codesourcery.com Resent-Reply-To: gdb-gnats@sources.redhat.com, julien.lincy@thomson.net Received: (qmail 8604 invoked by uid 48); 22 Oct 2008 11:41:01 -0000 Message-Id: <20081022114101.8603.qmail@sourceware.org> Date: Wed, 22 Oct 2008 11:48:00 -0000 From: julien.lincy@thomson.net Reply-To: julien.lincy@thomson.net To: gdb-gnats@sources.redhat.com Cc: dan@codesourcery.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: dan@codesourcery.com Subject: gdb/2541: ARM single step problem with instruction 0xa5ffffeb Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2008-q4/txt/msg00023.txt.bz2 >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