help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why gdb inside emacs cannot print out c++ object?


From: Eli Zaretskii
Subject: Re: Why gdb inside emacs cannot print out c++ object?
Date: Thu, 14 Mar 2019 17:00:19 +0200

> From: Kevin Gao <address@hidden>
> Date: Thu, 14 Mar 2019 00:04:29 -0700
> 
> Suppose: p is c++ iterator of an object of multimap<int, pair<string,
> string>>;
> 
> inside emacs gdb (with many windows on), "p p" returns:
> *$1 = {_M_node = 0x555555775fa0}*, which is meaningless to me.
> 
> As a comparison, in raw gdb (etc gdb ./a.out), "p p" returns:
> *$1 = {first = 1, second = {first = "foo", second = "bar"}}*, which is what
> I want to see.
> 
> Why gdb inside emacs cannot print out c++ object? Seems emacs does some
> special setting which turns off c++ mode?

Does it work if you invoke GDB with "M-x gud-gdb" instead of "M-x gdb"?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]