public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18605] New: single step over ARM Cortex 'udiv' instruction
@ 2015-06-26  8:58 m.krivtsov at samsung dot com
  2015-06-26  9:00 ` [Bug gdb/18605] " m.krivtsov at samsung dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: m.krivtsov at samsung dot com @ 2015-06-26  8:58 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18605

            Bug ID: 18605
           Summary: single step over ARM Cortex 'udiv' instruction
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: m.krivtsov at samsung dot com
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/18605] single step over ARM Cortex 'udiv' instruction
  2015-06-26  8:58 [Bug gdb/18605] New: single step over ARM Cortex 'udiv' instruction m.krivtsov at samsung dot com
@ 2015-06-26  9:00 ` m.krivtsov at samsung dot com
  2015-06-26  9:00 ` m.krivtsov at samsung dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: m.krivtsov at samsung dot com @ 2015-06-26  9:00 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18605

--- Comment #1 from Mikhail I. Krivtsov <m.krivtsov at samsung dot com> ---
Created attachment 8395
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8395&action=edit
test case

armv7l-tizen-linux-gnueabi-gcc -O0 -Wall -Wextra -o udiv-test udiv-test.c
-save-temps -g

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/18605] single step over ARM Cortex 'udiv' instruction
  2015-06-26  8:58 [Bug gdb/18605] New: single step over ARM Cortex 'udiv' instruction m.krivtsov at samsung dot com
  2015-06-26  9:00 ` [Bug gdb/18605] " m.krivtsov at samsung dot com
@ 2015-06-26  9:00 ` m.krivtsov at samsung dot com
  2015-06-26 10:57 ` m.krivtsov at samsung dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: m.krivtsov at samsung dot com @ 2015-06-26  9:00 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18605

--- Comment #2 from Mikhail I. Krivtsov <m.krivtsov at samsung dot com> ---
Created attachment 8396
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8396&action=edit
test case log

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/18605] single step over ARM Cortex 'udiv' instruction
  2015-06-26  8:58 [Bug gdb/18605] New: single step over ARM Cortex 'udiv' instruction m.krivtsov at samsung dot com
  2015-06-26  9:00 ` [Bug gdb/18605] " m.krivtsov at samsung dot com
  2015-06-26  9:00 ` m.krivtsov at samsung dot com
@ 2015-06-26 10:57 ` m.krivtsov at samsung dot com
  2015-06-26 14:52 ` qiyao at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: m.krivtsov at samsung dot com @ 2015-06-26 10:57 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18605

Mikhail I. Krivtsov <m.krivtsov at samsung dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinetik at flim dot org,
                   |                            |ramana.radhakrishnan@codito
                   |                            |.com, rearnsha at arm dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/18605] single step over ARM Cortex 'udiv' instruction
  2015-06-26  8:58 [Bug gdb/18605] New: single step over ARM Cortex 'udiv' instruction m.krivtsov at samsung dot com
                   ` (2 preceding siblings ...)
  2015-06-26 10:57 ` m.krivtsov at samsung dot com
@ 2015-06-26 14:52 ` qiyao at gcc dot gnu.org
  2015-06-29 16:33 ` [Bug tdep/18605] " qiyao at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: qiyao at gcc dot gnu.org @ 2015-06-26 14:52 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18605

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qiyao at gcc dot gnu.org
           Assignee|unassigned at sourceware dot org   |qiyao at gcc dot gnu.org

--- Comment #3 from Yao Qi <qiyao at gcc dot gnu.org> ---
GDB doesn't handle this instruction correctly during software single step. 
I'll take a look.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tdep/18605] single step over ARM Cortex 'udiv' instruction
  2015-06-26  8:58 [Bug gdb/18605] New: single step over ARM Cortex 'udiv' instruction m.krivtsov at samsung dot com
                   ` (3 preceding siblings ...)
  2015-06-26 14:52 ` qiyao at gcc dot gnu.org
@ 2015-06-29 16:33 ` qiyao at gcc dot gnu.org
  2015-06-30  8:26 ` cvs-commit at gcc dot gnu.org
  2015-06-30  8:47 ` qiyao at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: qiyao at gcc dot gnu.org @ 2015-06-29 16:33 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18605

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
          Component|gdb                         |tdep

--- Comment #4 from Yao Qi <qiyao at gcc dot gnu.org> ---
Patch is posted here
https://sourceware.org/ml/gdb-patches/2015-06/msg00610.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tdep/18605] single step over ARM Cortex 'udiv' instruction
  2015-06-26  8:58 [Bug gdb/18605] New: single step over ARM Cortex 'udiv' instruction m.krivtsov at samsung dot com
                   ` (4 preceding siblings ...)
  2015-06-29 16:33 ` [Bug tdep/18605] " qiyao at gcc dot gnu.org
@ 2015-06-30  8:26 ` cvs-commit at gcc dot gnu.org
  2015-06-30  8:47 ` qiyao at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-06-30  8:26 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18605

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tdep/18605] single step over ARM Cortex 'udiv' instruction
  2015-06-26  8:58 [Bug gdb/18605] New: single step over ARM Cortex 'udiv' instruction m.krivtsov at samsung dot com
                   ` (5 preceding siblings ...)
  2015-06-30  8:26 ` cvs-commit at gcc dot gnu.org
@ 2015-06-30  8:47 ` qiyao at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: qiyao at gcc dot gnu.org @ 2015-06-30  8:47 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18605

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.10

--- Comment #6 from Yao Qi <qiyao at gcc dot gnu.org> ---
Patch is pushed in.  Close this bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-06-30  8:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-26  8:58 [Bug gdb/18605] New: single step over ARM Cortex 'udiv' instruction m.krivtsov at samsung dot com
2015-06-26  9:00 ` [Bug gdb/18605] " m.krivtsov at samsung dot com
2015-06-26  9:00 ` m.krivtsov at samsung dot com
2015-06-26 10:57 ` m.krivtsov at samsung dot com
2015-06-26 14:52 ` qiyao at gcc dot gnu.org
2015-06-29 16:33 ` [Bug tdep/18605] " qiyao at gcc dot gnu.org
2015-06-30  8:26 ` cvs-commit at gcc dot gnu.org
2015-06-30  8:47 ` qiyao at gcc dot gnu.org

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).