public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type
@ 2012-08-07 22:00 dje at google dot com
  2012-08-08  8:10 ` [Bug symtab/14441] " nicholas at mxc dot ca
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dje at google dot com @ 2012-08-07 22:00 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14441

             Bug #: 14441
           Summary: Need to support DW_TAG_rvalue_reference_type
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dje@google.com
    Classification: Unclassified


llvm has apparently starting emitting this.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug symtab/14441] Need to support DW_TAG_rvalue_reference_type
  2012-08-07 22:00 [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type dje at google dot com
@ 2012-08-08  8:10 ` nicholas at mxc dot ca
  2012-08-08 16:01 ` tromey at redhat dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: nicholas at mxc dot ca @ 2012-08-08  8:10 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14441

Nick Lewycky <nicholas at mxc dot ca> changed:

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

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug symtab/14441] Need to support DW_TAG_rvalue_reference_type
  2012-08-07 22:00 [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type dje at google dot com
  2012-08-08  8:10 ` [Bug symtab/14441] " nicholas at mxc dot ca
@ 2012-08-08 16:01 ` tromey at redhat dot com
  2012-10-28 13:56 ` jwakely.gcc at gmail dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tromey at redhat dot com @ 2012-08-08 16:01 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14441

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-08-08 16:00:47 UTC ---
(In reply to comment #0)
> llvm has apparently starting emitting this.

gcc does too.
IIRC you can see it in libstdc++.so.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug symtab/14441] Need to support DW_TAG_rvalue_reference_type
  2012-08-07 22:00 [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type dje at google dot com
  2012-08-08  8:10 ` [Bug symtab/14441] " nicholas at mxc dot ca
  2012-08-08 16:01 ` tromey at redhat dot com
@ 2012-10-28 13:56 ` jwakely.gcc at gmail dot com
  2012-10-28 14:04 ` jwakely.gcc at gmail dot com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jwakely.gcc at gmail dot com @ 2012-10-28 13:56 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14441

Jonathan Wakely <jwakely.gcc at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jwakely.gcc at gmail dot
                   |                            |com

--- Comment #2 from Jonathan Wakely <jwakely.gcc at gmail dot com> 2012-10-28 13:56:03 UTC ---
Yes G++ trunk emits it, see http://gcc.gnu.org/PR54773

(gdb) ptype x
type = struct X {
  public:
    X & operator=(<unknown type in /dev/shm/a.out, CU 0x0, DIE 0x4b>);
}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug symtab/14441] Need to support DW_TAG_rvalue_reference_type
  2012-08-07 22:00 [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type dje at google dot com
                   ` (2 preceding siblings ...)
  2012-10-28 13:56 ` jwakely.gcc at gmail dot com
@ 2012-10-28 14:04 ` jwakely.gcc at gmail dot com
  2013-06-12 21:24 ` emaste at freebsd dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jwakely.gcc at gmail dot com @ 2012-10-28 14:04 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14441

--- Comment #3 from Jonathan Wakely <jwakely.gcc at gmail dot com> 2012-10-28 14:04:54 UTC ---
That link should be http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54773

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug symtab/14441] Need to support DW_TAG_rvalue_reference_type
  2012-08-07 22:00 [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type dje at google dot com
                   ` (3 preceding siblings ...)
  2012-10-28 14:04 ` jwakely.gcc at gmail dot com
@ 2013-06-12 21:24 ` emaste at freebsd dot org
  2013-10-14 16:27 ` jan.kratochvil at redhat dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: emaste at freebsd dot org @ 2013-06-12 21:24 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14441

emaste at freebsd dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emaste at freebsd dot org

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


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

* [Bug symtab/14441] Need to support DW_TAG_rvalue_reference_type
  2012-08-07 22:00 [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type dje at google dot com
                   ` (4 preceding siblings ...)
  2013-06-12 21:24 ` emaste at freebsd dot org
@ 2013-10-14 16:27 ` jan.kratochvil at redhat dot com
  2013-10-14 16:30 ` jan.kratochvil at redhat dot com
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-10-14 16:27 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat dot com

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


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

* [Bug symtab/14441] Need to support DW_TAG_rvalue_reference_type
  2012-08-07 22:00 [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type dje at google dot com
                   ` (5 preceding siblings ...)
  2013-10-14 16:27 ` jan.kratochvil at redhat dot com
@ 2013-10-14 16:30 ` jan.kratochvil at redhat dot com
  2013-10-14 16:31 ` jan.kratochvil at redhat dot com
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-10-14 16:30 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
*** Bug 16043 has been marked as a duplicate of this bug. ***

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


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

* [Bug symtab/14441] Need to support DW_TAG_rvalue_reference_type
  2012-08-07 22:00 [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type dje at google dot com
                   ` (6 preceding siblings ...)
  2013-10-14 16:30 ` jan.kratochvil at redhat dot com
@ 2013-10-14 16:31 ` jan.kratochvil at redhat dot com
  2014-11-16 17:38 ` jwakely.gcc at gmail dot com
  2015-03-10 14:08 ` tohava at gmail dot com
  9 siblings, 0 replies; 11+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-10-14 16:31 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at sourceware dot org   |jan.kratochvil at redhat dot com

--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
[patch] Support C++11 rvalue (move constructor)
https://sourceware.org/ml/gdb-patches/2013-10/msg00403.html

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


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

* [Bug symtab/14441] Need to support DW_TAG_rvalue_reference_type
  2012-08-07 22:00 [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type dje at google dot com
                   ` (7 preceding siblings ...)
  2013-10-14 16:31 ` jan.kratochvil at redhat dot com
@ 2014-11-16 17:38 ` jwakely.gcc at gmail dot com
  2015-03-10 14:08 ` tohava at gmail dot com
  9 siblings, 0 replies; 11+ messages in thread
From: jwakely.gcc at gmail dot com @ 2014-11-16 17:38 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #6 from Jonathan Wakely <jwakely.gcc at gmail dot com> ---
I can live with printing rvalue refs as <unknown type in /dev/shm/a.out, CU
0x0, DIE 0x4b> but the fact you're unable to do anything with them is a much
bigger problem:

struct A { int i; };

int f(A&& a)
{
  return a.i;
}

int main()
{
  return f( A() );
}

Reading symbols from ./a.out...done.
(gdb) start
Temporary breakpoint 1 at 0x4005de: file rv.cc, line 10.
Starting program: /tmp/a.out

Temporary breakpoint 1, main () at rv.cc:10
(gdb) step
f(A&&) (a=<unknown type in /tmp/a.out, CU 0x0, DIE 0x7f>) at rv.cc:5
(gdb) p a.i
Attempt to extract a component of a value that is not a structure.

This makes it almost impossible to debug functions taking rvalues, such as move
constructors and move assignment operators.

And sometimes move constructors are really hard to get right and need to be
debugged (e.g. std::stringstream is giving me major headaches)

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


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

* [Bug symtab/14441] Need to support DW_TAG_rvalue_reference_type
  2012-08-07 22:00 [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type dje at google dot com
                   ` (8 preceding siblings ...)
  2014-11-16 17:38 ` jwakely.gcc at gmail dot com
@ 2015-03-10 14:08 ` tohava at gmail dot com
  9 siblings, 0 replies; 11+ messages in thread
From: tohava at gmail dot com @ 2015-03-10 14:08 UTC (permalink / raw)
  To: gdb-prs

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

Ori Bar <tohava at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tohava at gmail dot com

--- Comment #7 from Ori Bar <tohava at gmail dot com> ---
A temporary solution for Jontahan's problem is to write:

p ((A*)a)->i;

This becomes messy for more compilcated types

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


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

end of thread, other threads:[~2015-03-10 14:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-07 22:00 [Bug symtab/14441] New: Need to support DW_TAG_rvalue_reference_type dje at google dot com
2012-08-08  8:10 ` [Bug symtab/14441] " nicholas at mxc dot ca
2012-08-08 16:01 ` tromey at redhat dot com
2012-10-28 13:56 ` jwakely.gcc at gmail dot com
2012-10-28 14:04 ` jwakely.gcc at gmail dot com
2013-06-12 21:24 ` emaste at freebsd dot org
2013-10-14 16:27 ` jan.kratochvil at redhat dot com
2013-10-14 16:30 ` jan.kratochvil at redhat dot com
2013-10-14 16:31 ` jan.kratochvil at redhat dot com
2014-11-16 17:38 ` jwakely.gcc at gmail dot com
2015-03-10 14:08 ` tohava at gmail dot com

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