all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gdba problems with C++ code
@ 2006-09-04  6:53 Werner LEMBERG
  2006-09-04 21:22 ` Nick Roberts
  0 siblings, 1 reply; 8+ messages in thread
From: Werner LEMBERG @ 2006-09-04  6:53 UTC (permalink / raw)



[Emacs CVS 2006-07-30]

I tried to debug troff, which is written in C++.

Starting gdba, I just added `troff' as the only argument (in addition
to -annotate=3).  Setting a breakpoint on `process_input_stack', I
started the program.  Hitting the breakpoint, the *locals of troff*
window shows, among other things,

  trap_bol_stack = [struct/union]

Creating a watch expression shows me

  +trap_bol_stack	int_stack

(where the `+' sign stands for the small icon) in a separate speedbar
frame, as expected.  But clicking on that with mouse-2 gives nothing.

In the *gud-troff* buffer I can do the following:

  (gdb) p trap_bol_stack
  $1 = {top = 0xbfe6bc68}

thus I've expected that clicking on the watch expression opens a tree,
showing me the value of `top'.

The same happens for more complex structures too: It isn't possible
for me to get a tree of the variables within the structure.  This
makes gdba completely useless for me.

Am I doing something wrong?  Isn't C++ supported?  I use gdb 6.3 in
case it matters.


    Werner

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <17661.62609.88044.965992@kahikatea.snap.net.nz>]

end of thread, other threads:[~2006-09-06 10:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-04  6:53 gdba problems with C++ code Werner LEMBERG
2006-09-04 21:22 ` Nick Roberts
2006-09-04 22:36   ` Werner LEMBERG
2006-09-05  3:30     ` Eli Zaretskii
2006-09-05  3:46     ` Nick Roberts
2006-09-05  5:34       ` Werner LEMBERG
     [not found] <17661.62609.88044.965992@kahikatea.snap.net.nz>
     [not found] ` <20060906.010820.92574304.wl@gnu.org>
     [not found]   ` <17662.14141.844975.205652@kahikatea.snap.net.nz>
2006-09-06  8:53     ` Werner LEMBERG
2006-09-06 10:20       ` Nick Roberts

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.