public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/16213] New: -var-update still keeps "var1.<error at 0>"
@ 2013-11-24 18:25 jan.kratochvil at redhat dot com
  2013-11-24 18:26 ` [Bug mi/16213] " jan.kratochvil at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-11-24 18:25 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 16213
           Summary: -var-update still keeps "var1.<error at 0>"
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mi
          Assignee: unassigned at sourceware dot org
          Reporter: jan.kratochvil at redhat dot com
            Target: x86_64-unknown-linux-gnu

Eclipse fails to print local std::set variable.  I believe it is a GDB MI bug.

FAIL: gdb-7.6.1-46.fc19.x86_64
FAIL: GNU gdb (GDB) 7.6.50.20131124-cvs

Why GDB still insists on "var1.<error at 0>" even after -var-update?
Removing earlier
  32-var-list-children var1
fixes the problem, it then prints:
 
99^done,numchild="1",children=[child={name="var1.[0]",exp="[0]",numchild="1",type="C",thread-id="1"}],has_more="0"

------------------------------------------------------------------------------
#include <set>
class C {
public:
  int i;
  C(int *ip):i(*ip) {}
};
namespace std {
  template<> bool less<C>::operator()(const C &a,const C &b) const { return
a.i<b.i; }
}
int main() {
  int i=1;
  std::set<C> xxxvariable;
  xxxvariable.insert(C(&i));
  return 0;
}
------------------------------------------------------------------------------
gdb -i=mi <cmd
------------------------------------------------------------------------------
5-enable-pretty-printing
15-file-exec-and-symbols ./cxx
18-break-insert -t -f main
20-exec-run
31-var-create --thread 1 --frame 0 - * xxxvariable
32-var-list-children var1
33-break-insert -t -f cxx.cpp:14
34-exec-continue
38-var-update var1
99-var-list-children var1
------------------------------------------------------------------------------
38^done,changelist=[]
99^done,numchild="1",children=[child={name="var1.<error at 0>",exp="<error at
0>",numchild="36",type="char [36]",thread-id="1"}],has_more="0"

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


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

* [Bug mi/16213] -var-update still keeps "var1.<error at 0>"
  2013-11-24 18:25 [Bug mi/16213] New: -var-update still keeps "var1.<error at 0>" jan.kratochvil at redhat dot com
@ 2013-11-24 18:26 ` jan.kratochvil at redhat dot com
  2013-11-24 18:27 ` jan.kratochvil at redhat dot com
  2013-11-24 18:27 ` jan.kratochvil at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-11-24 18:26 UTC (permalink / raw)
  To: gdb-prs

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

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

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

--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Created attachment 7301
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7301&action=edit
eclipse-cdt-8.2.1-3.fc19.x86_64 screenshot

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


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

* [Bug mi/16213] -var-update still keeps "var1.<error at 0>"
  2013-11-24 18:25 [Bug mi/16213] New: -var-update still keeps "var1.<error at 0>" jan.kratochvil at redhat dot com
  2013-11-24 18:26 ` [Bug mi/16213] " jan.kratochvil at redhat dot com
@ 2013-11-24 18:27 ` jan.kratochvil at redhat dot com
  2013-11-24 18:27 ` jan.kratochvil at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-11-24 18:27 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Created attachment 7303
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7303&action=edit
Eclipse GDB MI output

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


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

* [Bug mi/16213] -var-update still keeps "var1.<error at 0>"
  2013-11-24 18:25 [Bug mi/16213] New: -var-update still keeps "var1.<error at 0>" jan.kratochvil at redhat dot com
  2013-11-24 18:26 ` [Bug mi/16213] " jan.kratochvil at redhat dot com
  2013-11-24 18:27 ` jan.kratochvil at redhat dot com
@ 2013-11-24 18:27 ` jan.kratochvil at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-11-24 18:27 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Created attachment 7302
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7302&action=edit
Eclipse GDB MI input

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


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

end of thread, other threads:[~2013-11-24 18:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-24 18:25 [Bug mi/16213] New: -var-update still keeps "var1.<error at 0>" jan.kratochvil at redhat dot com
2013-11-24 18:26 ` [Bug mi/16213] " jan.kratochvil at redhat dot com
2013-11-24 18:27 ` jan.kratochvil at redhat dot com
2013-11-24 18:27 ` jan.kratochvil at redhat 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).