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 c++/19893] Synthetic pointers created from C++ references are broken


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

Martin Galvan <martin.galvan at tallertechnologies dot com> changed:

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

--- Comment #2 from Martin Galvan <martin.galvan at tallertechnologies dot com> ---
I've sent a patch for fixing the crash when doing 'print &ref', here:

https://sourceware.org/ml/gdb-patches/2016-04/msg00012.html

As for the other cases, I've traced the root cause to
pieced_value_funcs.coerce_ref being NULL after commit
a471c5941e127823b95893176c7c9301c4b4cb32. I'm thinking of implementing this
function for synthetic references only, so that calls to coerce_ref_if_computed
will stop returning NULL. I'm open to suggestions or feedback of any kind
though.

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