public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug gdb/21341] C++ vector elements wrongly evaluated with MI2 [not found] <bug-21341-4717@http.sourceware.org/bugzilla/> @ 2020-04-07 15:22 ` ssbssa at sourceware dot org 2024-04-06 14:48 ` [Bug mi/21341] " tromey at sourceware dot org 1 sibling, 0 replies; 2+ messages in thread From: ssbssa at sourceware dot org @ 2020-04-07 15:22 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=21341 Hannes Domani <ssbssa at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot org --- Comment #1 from Hannes Domani <ssbssa at sourceware dot org> --- (In reply to Vedran Ljubovic from comment #0) > Notice the line: > ^done,value="@0x603014" > expected result should be: > ^done,value="2" That's because in function mi_cmd_data_evaluate_expression the option to dereference references is disabled: opts.deref_ref = 0; I made a quick test and enabled this option in the debugger, then the result looks like this: (gdb) interpreter-exec mi2 '-data-evaluate-expression v[1]' ^done,value="@0x3c20d4: 2" Not sure why it is like this, but this might be intentional. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug mi/21341] C++ vector elements wrongly evaluated with MI2 [not found] <bug-21341-4717@http.sourceware.org/bugzilla/> 2020-04-07 15:22 ` [Bug gdb/21341] C++ vector elements wrongly evaluated with MI2 ssbssa at sourceware dot org @ 2024-04-06 14:48 ` tromey at sourceware dot org 1 sibling, 0 replies; 2+ messages in thread From: tromey at sourceware dot org @ 2024-04-06 14:48 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=21341 Tom Tromey <tromey at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot org Component|gdb |mi -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-06 14:48 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-21341-4717@http.sourceware.org/bugzilla/> 2020-04-07 15:22 ` [Bug gdb/21341] C++ vector elements wrongly evaluated with MI2 ssbssa at sourceware dot org 2024-04-06 14:48 ` [Bug mi/21341] " tromey at sourceware dot 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).