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/19681] New: Attempting to set a breakpoint at a label in a C++ constructor causes internal-error: decode_line_full


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

            Bug ID: 19681
           Summary: Attempting to set a breakpoint at a label in a C++
                    constructor causes internal-error: decode_line_full
           Product: gdb
           Version: 7.7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: jjoconnor15 at gmail dot com
  Target Milestone: ---

Created attachment 9020
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9020&action=edit
test.cpp

Versions:
$ gdb --version
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1

$ g++ --version
g++ (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4

$ uname -a
Linux refraction 3.13.0-77-generic #121-Ubuntu SMP Wed Jan 20 10:50:42 UTC 2016
x86_64 x86_64 x86_64 GNU/Linux


Error:
(gdb) break A::A(int):labeldude
/build/buildd/gdb-7.7.1/gdb/linespec.c:2450: internal-error: decode_line_full:
Assertion `result.nelts == 1 || canonical->pre_expanded' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n


Steps to reproduce:
1) take sample program attached
2) compile with 'g++ -g test.cpp -o borken'
3) load up gdb and do the following:
(gdb) file borken
Reading symbols from borken...done.
(gdb) break A::A(int):labeldude
/build/buildd/gdb-7.7.1/gdb/linespec.c:2450: internal-error: decode_line_full:
Assertion `result.nelts == 1 || canonical->pre_expanded' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.

-- 
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]