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]

[Bug breakpoints/22301] New: [AARCH64] can't place breakpoint on STP of double registers


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

            Bug ID: 22301
           Summary: [AARCH64] can't place breakpoint on STP of double
                    registers
           Product: gdb
           Version: 7.11.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: IsaacOscar at hotmail dot com
  Target Milestone: ---

On aarch64 (the armv8-a version), gdb fails to place breakpoints on STP
instruction with double registers as operands, e.g:

```
.globl main
main:
        STP D9, D8, [SP,#-16]!
        RET
```

When compiled with gcc, and run through gdb:
```
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "aarch64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./a.out...(no debugging symbols found)...done.
(gdb) b main
/build/gdb-g58BK_/gdb-7.11.1/gdb/aarch64-tdep.c:334: internal-error:
aarch64_analyze_prologue: Assertion `inst.operands[0].type == AARCH64_OPND_Rt'
failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y

This is a bug, please report it.  For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.

/build/gdb-g58BK_/gdb-7.11.1/gdb/aarch64-tdep.c:334: internal-error:
aarch64_analyze_prologue: Assertion `inst.operands[0].type == AARCH64_OPND_Rt'
failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y
Aborted (core dumped)
```

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

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