List Info

Thread: gdb in emacs : dereference pointer




gdb in emacs : dereference pointer
user name
2006-12-15 01:08:03

I know this sounds ridiculous but I cant figure out how to
get emacs to
display VALUES or dereferenced values in the locals or any
other pane of the
multi-window GUD setup.

Yes, I can "display" so it is shown after every
step but that is horrible -
I want it in a fixed place in the locals pane. What obvious
thing am I
missing here?

I really dont want to use ddd.

-- 
View this message in context: http://www.nabble.com/gdb-in-e
macs-%3A-dereference-pointer-tf2824599.html#a7884636
Sent from the gdb - General mailing list archive at
Nabble.com.

gdb in emacs : dereference pointer
user name
2006-12-15 02:36:31
 > I know this sounds ridiculous but I cant figure out
how to get emacs to
 > display VALUES or dereferenced values in the locals or
any other pane of the
 > multi-window GUD setup.

It does sound a bit ridiculous because this is mailing for
GDB not Emacs

 > Yes, I can "display" so it is shown after
every step but that is horrible -
 > I want it in a fixed place in the locals pane. What
obvious thing am I
 > missing here?

You can't currently do this as it's not straightforward to
implement.  You can
dereference them as watch expressions in the speedbar (maybe
thats what you
mean by "display").

 > I really dont want to use ddd.

Insight does what you want.

-- 
Nick                                           http://www.inet.net.n
z/~nickrob
gdb in emacs : dereference pointer
user name
2006-12-15 15:01:51
Nick Roberts <nickrobsnap.net.nz> writes:

>  > I know this sounds ridiculous but I cant figure
out how to get emacs to
>  > display VALUES or dereferenced values in the
locals or any other pane of the
>  > multi-window GUD setup.
>
> It does sound a bit ridiculous because this is mailing
for GDB not
> Emacs

There is a strong tie in : and its more gdb related than
emacs
related. I would have expected a lot of gdb users to run it
from within
emacs. Sorry if you consider it OT.

>
>  > Yes, I can "display" so it is shown
after every step but that is horrible -
>  > I want it in a fixed place in the locals pane.
What obvious thing am I
>  > missing here?
>
> You can't currently do this as it's not straightforward
to implement.  You can
> dereference them as watch expressions in the speedbar
(maybe thats what you
> mean by "display").

I try not to use the speedbar : I find it buggy and
unresponsive.

>
>  > I really dont want to use ddd.
>
> Insight does what you want.

Thanks. I will take a look.

-- 
gdb in emacs : dereference pointer
user name
2006-12-15 20:03:59
 > > It does sound a bit ridiculous because this is
mailing for GDB not
 > > Emacs
 > 
 > There is a strong tie in : and its more gdb related
than emacs
 > related. I would have expected a lot of gdb users to
run it from within
 > emacs. Sorry if you consider it OT.

Its just that your question is about functionality in CVS
Emacs.  There may be
many people on this list who don't even use Emacs.

 > >  > Yes, I can "display" so it is
shown after every step but that is
 > >  > horrible - I want it in a fixed place in
the locals pane. What obvious
 > >  > thing am I missing here?
 > >
 > > You can't currently do this as it's not
straightforward to implement.  You
 > > can dereference them as watch expressions in the
speedbar (maybe thats
 > > what you mean by "display").
 > 
 > I try not to use the speedbar : I find it buggy and
unresponsive.

You need at least GDB 6.0 for it to work, but it works much
better with 6.4 or
later.  If you still have problems then please report them
to
emacs-pretest-buggnu.org.  Thats the only way we can
improve it.


-- 
Nick                                           http://www.inet.net.n
z/~nickrob
gdb in emacs : dereference pointer
user name
2006-12-15 20:14:59
Nick Roberts <nickrobsnap.net.nz> writes:
>  > I know this sounds ridiculous but I cant figure
out how to get emacs to
>  > display VALUES or dereferenced values in the
locals or any other pane of the
>  > multi-window GUD setup.
>
> It does sound a bit ridiculous because this is mailing
for GDB not Emacs

Whoa.  I think questions like this deserve a gentler
response.  This
isn't a gdb-developers or gdb-experts list; it's the GDB
list.

If one is not familiar with the whole architecture, then
when running
GDB under Emacs it can be unclear which component you need
to talk to
to get something done.  (Having just tried Eclipse for the
first time
last night, this point is very fresh in my mind.)
gdb in emacs : dereference pointer
user name
2006-12-16 06:56:02
 > >  > I know this sounds ridiculous but I cant
figure out how to get emacs to
 > >  > display VALUES or dereferenced values in
the locals or any other pane of the
 > >  > multi-window GUD setup.
 > >
 > > It does sound a bit ridiculous because this is
mailing for GDB not Emacs
 > 
 > Whoa.  I think questions like this deserve a gentler
response.  This
 > isn't a gdb-developers or gdb-experts list; it's the
GDB list.

It's just a link to what was said before, and was followed
up with constructive
comments.  Often I would prefer such a reply to none at all
where I am just
left in a state of ignorance.


-- 
Nick                                           http://www.inet.net.n
z/~nickrob
[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )