public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17391] New: gdb internal error: assertion fails in regcache.c:178
@ 2014-09-14 20:33 philipp.classen at gmx dot net
  2014-09-14 20:37 ` [Bug gdb/17391] " philipp.classen at gmx dot net
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: philipp.classen at gmx dot net @ 2014-09-14 20:33 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 17391
           Summary: gdb internal error: assertion fails in regcache.c:178
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: critical
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: philipp.classen at gmx dot net

Created attachment 7785
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7785&action=edit
the compressed core dump

regcache.c:178: internal-error: register_size: Assertion `regnum >= 0 && regnum
< (gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch))' failed.

In the previous line, there is the following warning:

warning: Unmapped DWARF Register #-1 encountered

---

OS: I'm using Arch Linux (64-bit).

The crash occurs frequently. It seems to make no difference if the binary is
compiled with gcc 4.9.1 or clang 3.5.

Here is an example run:

phil@terra-arch:~/ghost (ghost3)$ gdb ./ghost
GNU gdb (GDB) 7.8
Copyright (C) 2014 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 "x86_64-unknown-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 ./ghost...done.
(gdb) run
Starting program: /home/phil/ghost/ghost 
Got object file from memory but can't read symbols: File truncated.
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
White 1> analyze
[New Thread 0x7ffff47d7700 (LWP 9130)]
[New Thread 0x7ffff3fd6700 (LWP 9131)]
Depth: 1. Na3 (21)
Depth: 1. Nc3 (47)
Depth: 1. Nf3 (59)
Depth: 1. d3 (60)
Depth: 1. e3 (71)
Depth: 1. e4 (72)
Depth: 2.[New Thread 0x7ffff35c4700 (LWP 9132)]
[New Thread 0x7ffff31c3700 (LWP 9133)]
[New Thread 0x7ffff2dc2700 (LWP 9134)]
[New Thread 0x7ffff29c1700 (LWP 9135)]
[New Thread 0x7ffff25c0700 (LWP 9136)]
[New Thread 0x7ffff21bf700 (LWP 9137)]
[New Thread 0x7ffff1dbe700 (LWP 9138)]
Depth: 2. e4 e5 (6)
Depth: 3.^C
Program received signal SIGINT, Interrupt.
0x00007ffff7bc9b2f in pthread_cond_wait@@GLIBC_2.3.2 () from
/usr/lib/libpthread.so.0
(gdb) bt
#0  0x00007ffff7bc9b2f in pthread_cond_wait@@GLIBC_2.3.2 () from
/usr/lib/libpthread.so.0
#1  0x00007ffff7506d6c in
std::condition_variable::wait(std::unique_lock<std::mutex>&) ()
   from /usr/lib/libstdc++.so.6
#2  0x000000000061a87b in wait<(lambda at ./parallel/sync_buffer.h:109:28)>
(this=0xbab608, 
    __lock=..., __p=...)
    at
/usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1/condition_variable:98
#3  GhostUtils::LockedSyncBuffer<GhostSearch::TaggedMessage>::Dequeue
(this=0xbab5e0, target=...)
    at ./parallel/sync_buffer.h:109
#4  0x000000000061807e in Receive (warning: Unmapped DWARF Register #-1
encountered.

regcache.c:178: internal-error: register_size: Assertion `regnum >= 0 && regnum
< (gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch))' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) 

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

-- 
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/17391] gdb internal error: assertion fails in regcache.c:178
  2014-09-14 20:33 [Bug gdb/17391] New: gdb internal error: assertion fails in regcache.c:178 philipp.classen at gmx dot net
@ 2014-09-14 20:37 ` philipp.classen at gmx dot net
  2014-09-14 20:40 ` philipp.classen at gmx dot net
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: philipp.classen at gmx dot net @ 2014-09-14 20:37 UTC (permalink / raw)
  To: gdb-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3095 bytes --]

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

--- Comment #1 from Philipp Claßen <philipp.classen at gmx dot net> ---
Created attachment 7786
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7786&action=edit
the compressed binary that was used

Not sure if it helps, but I have attached the compressed binary that was used
to trigger the bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-16595-listarch-gdb-prs=sources.redhat.com@sourceware.org Sun Sep 14 20:38:54 2014
Return-Path: <gdb-prs-return-16595-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 9306 invoked by alias); 14 Sep 2014 20:38:54 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 9279 invoked by uid 48); 14 Sep 2014 20:38:53 -0000
From: "sergiodj at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug breakpoints/9285] invalid address for symbol w/o debugging info
 when using stabs
Date: Sun, 14 Sep 2014 20:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: breakpoints
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: sergiodj at redhat dot com
X-Bugzilla-Status: WAITING
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc
Message-ID: <bug-9285-4717-HCEDdHzKWw@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-9285-4717@http.sourceware.org/bugzilla/>
References: <bug-9285-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-q3/txt/msg00584.txt.bz2
Content-length: 657

https://sourceware.org/bugzilla/show_bug.cgi?id’85

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING
                 CC|                            |sergiodj at redhat dot com

--- Comment #1 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Is this still an issue?  I could not replicate this in my x86_64 machine, and I
don't have a PPC machine handy to test...

--
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/17391] gdb internal error: assertion fails in regcache.c:178
  2014-09-14 20:33 [Bug gdb/17391] New: gdb internal error: assertion fails in regcache.c:178 philipp.classen at gmx dot net
  2014-09-14 20:37 ` [Bug gdb/17391] " philipp.classen at gmx dot net
@ 2014-09-14 20:40 ` philipp.classen at gmx dot net
  2014-09-14 20:45 ` philipp.classen at gmx dot net
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: philipp.classen at gmx dot net @ 2014-09-14 20:40 UTC (permalink / raw)
  To: gdb-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3255 bytes --]

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

--- Comment #2 from Philipp Claßen <philipp.classen at gmx dot net> ---
$ uname -a
Linux terra-arch 3.16.2-1-ARCH #1 SMP PREEMPT Sat Sep 6 13:12:51 CEST 2014
x86_64 GNU/Linux

$ pacman -Q | grep glibc
glibc 2.19-5
lib32-glibc 2.19-5

$ pacman -Q | grep gcc
colorgcc 1.3.2-9
gcc 4.9.1-1
gcc-libs 4.9.1-1
lib32-gcc-libs 4.9.1-1

$ pacman -Q | grep clang
clang 3.5.0-2.1

(The binary was also generated with clang, but it happens with gcc, too.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-16598-listarch-gdb-prs=sources.redhat.com@sourceware.org Sun Sep 14 20:41:46 2014
Return-Path: <gdb-prs-return-16598-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 10493 invoked by alias); 14 Sep 2014 20:41:46 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 10466 invoked by uid 48); 14 Sep 2014 20:41:46 -0000
From: "sergiodj at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug tdep/8495] [RFA] info float for SH
Date: Sun, 14 Sep 2014 20:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: tdep
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: sergiodj at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-8495-4717-YtmFqOEDgM@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-8495-4717@http.sourceware.org/bugzilla/>
References: <bug-8495-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-q3/txt/msg00587.txt.bz2
Content-length: 702

https://sourceware.org/bugzilla/show_bug.cgi?id„95

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |sergiodj at redhat dot com
         Resolution|---                         |OBSOLETE

--- Comment #1 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
This code has changed so much that I cannot find the context for the patch.  I
am closing this as OBSOLETE.

--
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/17391] gdb internal error: assertion fails in regcache.c:178
  2014-09-14 20:33 [Bug gdb/17391] New: gdb internal error: assertion fails in regcache.c:178 philipp.classen at gmx dot net
  2014-09-14 20:37 ` [Bug gdb/17391] " philipp.classen at gmx dot net
  2014-09-14 20:40 ` philipp.classen at gmx dot net
@ 2014-09-14 20:45 ` philipp.classen at gmx dot net
  2015-06-26 14:32 ` dje at google dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: philipp.classen at gmx dot net @ 2014-09-14 20:45 UTC (permalink / raw)
  To: gdb-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 2934 bytes --]

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

Philipp Claßen <philipp.classen at gmx dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philipp.classen at gmx dot net

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-16601-listarch-gdb-prs=sources.redhat.com@sourceware.org Sun Sep 14 20:46:15 2014
Return-Path: <gdb-prs-return-16601-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 12084 invoked by alias); 14 Sep 2014 20:46:15 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 12057 invoked by uid 48); 14 Sep 2014 20:46:15 -0000
From: "sergiodj at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug tdep/8562] PPC64 can't pass functions as parameters
Date: Sun, 14 Sep 2014 20:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: tdep
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: sergiodj at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-8562-4717-SC0bSVbA94@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-8562-4717@http.sourceware.org/bugzilla/>
References: <bug-8562-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-q3/txt/msg00590.txt.bz2
Content-length: 556

https://sourceware.org/bugzilla/show_bug.cgi?id…62

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |OBSOLETE

--- Comment #2 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Yes, confirmed.  Closing as OBSOLETE.

--
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/17391] gdb internal error: assertion fails in regcache.c:178
  2014-09-14 20:33 [Bug gdb/17391] New: gdb internal error: assertion fails in regcache.c:178 philipp.classen at gmx dot net
                   ` (2 preceding siblings ...)
  2014-09-14 20:45 ` philipp.classen at gmx dot net
@ 2015-06-26 14:32 ` dje at google dot com
  2015-06-26 14:34 ` dje at google dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dje at google dot com @ 2015-06-26 14:32 UTC (permalink / raw)
  To: gdb-prs

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

dje at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at google dot com

--- Comment #3 from dje at google dot com ---
Is this patch in a state that it can be applied to trunk?
Just wondering if we can close this PR.

-- 
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/17391] gdb internal error: assertion fails in regcache.c:178
  2014-09-14 20:33 [Bug gdb/17391] New: gdb internal error: assertion fails in regcache.c:178 philipp.classen at gmx dot net
                   ` (3 preceding siblings ...)
  2015-06-26 14:32 ` dje at google dot com
@ 2015-06-26 14:34 ` dje at google dot com
  2015-08-11  0:46 ` [Bug symtab/17391] " dje at google dot com
  2015-10-26 23:07 ` cvs-commit at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: dje at google dot com @ 2015-06-26 14:34 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from dje at google dot com ---
(In reply to dje from comment #3)
> Is this patch in a state that it can be applied to trunk?
> Just wondering if we can close this PR.

Holy cow, bugzilla's UI really sucks sometimes.
Ignore this comment, it's for another PR.

-- 
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 symtab/17391] gdb internal error: assertion fails in regcache.c:178
  2014-09-14 20:33 [Bug gdb/17391] New: gdb internal error: assertion fails in regcache.c:178 philipp.classen at gmx dot net
                   ` (4 preceding siblings ...)
  2015-06-26 14:34 ` dje at google dot com
@ 2015-08-11  0:46 ` dje at google dot com
  2015-10-26 23:07 ` cvs-commit at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: dje at google dot com @ 2015-08-11  0:46 UTC (permalink / raw)
  To: gdb-prs

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

dje at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|gdb                         |symtab
           Assignee|unassigned at sourceware dot org   |dje at google 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 symtab/17391] gdb internal error: assertion fails in regcache.c:178
  2014-09-14 20:33 [Bug gdb/17391] New: gdb internal error: assertion fails in regcache.c:178 philipp.classen at gmx dot net
                   ` (5 preceding siblings ...)
  2015-08-11  0:46 ` [Bug symtab/17391] " dje at google dot com
@ 2015-10-26 23:07 ` cvs-commit at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-10-26 23:07 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Doug Evans <devans@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0fde2c536bc483baa4baa2990ebebfb3a7c00415

commit 0fde2c536bc483baa4baa2990ebebfb3a7c00415
Author: Doug Evans <dje@google.com>
Date:   Mon Oct 26 16:05:21 2015 -0700

    PR symtab/17391 gdb internal error: assertion fails in regcache.c:178

    gdb/ChangeLog:

        * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
        instead of gdbarch_dwarf2_reg_to_regnum.
        (dwarf2_frame_cache): Ditto.
        (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
        gdbarch_dwarf2_reg_to_regnum.
        (get_reg_value): Ditto.
        (dwarf2_fetch_cfa_info): Ditto.
        (dwarf2_frame_prev_register): Ditto.
        * dwarf2loc.c: #include "complaints.h".
        (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
        instead of gdbarch_dwarf2_reg_to_regnum.
        (dwarf_expr_get_reg_value): Ditto.
        (read_pieced_value): Ditto.
        (write_pieced_value): Ditto.
        (dwarf2_evaluate_loc_desc_full): Ditto.
        (dwarf_reg_to_regnum): New function.
        (throw_bad_regnum_error): New function.
        (dwarf_reg_to_regnum_or_error): Renamed from
        dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
        All callers updated.  Call throw_bad_regnum_error.
        (locexpr_regname): Improve text of bad register number.
        * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
        (dwarf_reg_to_regnum_or_error): Update prototype.
        * dwarf2expr.c: #include "dwarf2loc.h".
        (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
        gdbarch_dwarf2_reg_to_regnum.
        * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
        * gdbarch.h: Regenerate.
        * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
        register.
        * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
        * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
        * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
        * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
        Remove warning for bad register.
        * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
        * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
        i386_svr4_reg_to_regnum.  Return -1 for bad registers.
        (i386_svr4_reg_to_regnum): New function.
        (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
        * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
        on bad registers, return -1.
        * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
        Remove warning for bad register.
        * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
        (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
        Remove warning for bad register.  Return -1 for bad register.
        * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
        for bad register, return -1.
        * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
        * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
        * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
        * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
        (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
        * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
        for bad regs.
        * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
        bad regs.  Fix error result.
        * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
        (reg_value_complaint): Update complaint text.
        * mdebugread.c (reg_value_complaint): New function.
        (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.

    gdb/testsuite/ChangeLog:

        * lib/dwarf.exp (_location): Add support for DW_OP_regx.
        * gdb.dwarf2/bad-regnum.c: New file.
        * gdb.dwarf2/bad-regnum.exp: New file.

-- 
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-10-26 23:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-14 20:33 [Bug gdb/17391] New: gdb internal error: assertion fails in regcache.c:178 philipp.classen at gmx dot net
2014-09-14 20:37 ` [Bug gdb/17391] " philipp.classen at gmx dot net
2014-09-14 20:40 ` philipp.classen at gmx dot net
2014-09-14 20:45 ` philipp.classen at gmx dot net
2015-06-26 14:32 ` dje at google dot com
2015-06-26 14:34 ` dje at google dot com
2015-08-11  0:46 ` [Bug symtab/17391] " dje at google dot com
2015-10-26 23:07 ` cvs-commit 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).