Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb in emacs : dereference pointer
@ 2006-12-15  1:08 Hadron
  2006-12-15  2:41 ` Nick Roberts
  0 siblings, 1 reply; 6+ messages in thread
From: Hadron @ 2006-12-15  1:08 UTC (permalink / raw)
  To: gdb



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-emacs-%3A-dereference-pointer-tf2824599.html#a7884636
Sent from the gdb - General mailing list archive at Nabble.com.


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

* Re: gdb in emacs : dereference pointer
  2006-12-15  1:08 gdb in emacs : dereference pointer Hadron
@ 2006-12-15  2:41 ` Nick Roberts
  2006-12-15 15:03   ` Hadron Quark
  2006-12-15 20:14   ` Jim Blandy
  0 siblings, 2 replies; 6+ messages in thread
From: Nick Roberts @ 2006-12-15  2:41 UTC (permalink / raw)
  To: Hadron; +Cc: gdb

 > 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.nz/~nickrob


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

* Re: gdb in emacs : dereference pointer
  2006-12-15  2:41 ` Nick Roberts
@ 2006-12-15 15:03   ` Hadron Quark
  2006-12-15 20:08     ` Nick Roberts
  2006-12-15 20:14   ` Jim Blandy
  1 sibling, 1 reply; 6+ messages in thread
From: Hadron Quark @ 2006-12-15 15:03 UTC (permalink / raw)
  To: Nick Roberts; +Cc: gdb

Nick Roberts <nickrob@snap.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.

-- 


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

* Re: gdb in emacs : dereference pointer
  2006-12-15 15:03   ` Hadron Quark
@ 2006-12-15 20:08     ` Nick Roberts
  0 siblings, 0 replies; 6+ messages in thread
From: Nick Roberts @ 2006-12-15 20:08 UTC (permalink / raw)
  To: Hadron Quark; +Cc: gdb

 > > 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-bug@gnu.org.  Thats the only way we can improve it.


-- 
Nick                                           http://www.inet.net.nz/~nickrob


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

* Re: gdb in emacs : dereference pointer
  2006-12-15  2:41 ` Nick Roberts
  2006-12-15 15:03   ` Hadron Quark
@ 2006-12-15 20:14   ` Jim Blandy
  2006-12-16  7:00     ` Nick Roberts
  1 sibling, 1 reply; 6+ messages in thread
From: Jim Blandy @ 2006-12-15 20:14 UTC (permalink / raw)
  To: Nick Roberts; +Cc: Hadron, gdb


Nick Roberts <nickrob@snap.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.)


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

* Re: gdb in emacs : dereference pointer
  2006-12-15 20:14   ` Jim Blandy
@ 2006-12-16  7:00     ` Nick Roberts
  0 siblings, 0 replies; 6+ messages in thread
From: Nick Roberts @ 2006-12-16  7:00 UTC (permalink / raw)
  To: Jim Blandy; +Cc: Hadron, gdb

 > >  > 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.nz/~nickrob


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

end of thread, other threads:[~2006-12-16  7:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-15  1:08 gdb in emacs : dereference pointer Hadron
2006-12-15  2:41 ` Nick Roberts
2006-12-15 15:03   ` Hadron Quark
2006-12-15 20:08     ` Nick Roberts
2006-12-15 20:14   ` Jim Blandy
2006-12-16  7:00     ` Nick Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox