all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Werner LEMBERG <wl@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: gdba problems with C++ code
Date: Tue, 05 Sep 2006 00:36:33 +0200 (CEST)	[thread overview]
Message-ID: <20060905.003633.193697724.wl@gnu.org> (raw)
In-Reply-To: <17660.39208.152361.792792@kahikatea.snap.net.nz>

>  > 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.
>
> If int_stack is just a structure or union it should work.
> Or is it a data type that is special to C++?

It's a class, with a single variable and some functions.

> If it has only one element it should look something like:
>
>    [-] trap_bol_stack	int_stack
>     [+] top             top_type
>
> depending on the data type of top.

This doesn't happen.  Clicking on [+] left of `trap_bol_stack' does nothing.

> What operating system are you using?  What is the exact version of GDB are you
> using? e.g on FC5 I get:
>
>   GNU gdb Red Hat Linux (6.3.0.0-1.122rh)

I told you the exact version.  It's plain 6.3.

>  > This makes gdba completely useless for me.
>
> That may be so if all you do when debugging is watch the values of
> complex data types.  Most other people do many other things.

Well, there aren't any line breaks in the output of, say, `p
trap_bol_stack' if typed in manually due to the -annotate argument!
Getting an overview of a class is thus really difficult.

> As it says in the manual (it would be a good idea to read it, if you
> haven't) and the file header for gdb-ui.el, watch expressions work
> best with GDB 6.4 onwards.

Hmm, the manual doesn't say that explicitly.  It just talks about some
features available in version 6.4 and later.  Perhaps this can be
emphasized.

> With 6.3 and more complex structures it may be just that you're not
> waiting long enough.  Current GDB is 6.5, it might help to update to that.

Meanwhile I've done that (compiling the 6.5 tarball by myself), and it
changes nothing.  Neither structures nor classes get displayed.


    Werner

  reply	other threads:[~2006-09-04 22:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060905.003633.193697724.wl@gnu.org \
    --to=wl@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.