all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why gdb inside emacs cannot print out c++ object?
@ 2019-03-14  7:04 Kevin Gao
  2019-03-14 15:00 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Gao @ 2019-03-14  7:04 UTC (permalink / raw)
  To: help-gnu-emacs

Hello folks,

I hit an issue when debugging c++ code using gdb inside emacs.

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?

This is really a blocking issue for C++ debug. Please share you idea.

Thanks,


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

end of thread, other threads:[~2019-03-17  0:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-14  7:04 Why gdb inside emacs cannot print out c++ object? Kevin Gao
2019-03-14 15:00 ` Eli Zaretskii
2019-03-15 23:46   ` Kevin Gao
2019-03-16  8:02     ` Eli Zaretskii
2019-03-17  0:48       ` Kevin Gao
2019-03-17  0:57         ` Kevin Gao

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.