Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gud settings

7 views
Skip to first unread message

andrea

unread,
Dec 27, 2009, 12:07:01 PM12/27/09
to help-gn...@gnu.org
I was trying to use gud (I need at least gdb and pdb) but I'm not able
to abilitate the multi-window setting.

I've set up the variables
--8<---------------cut here---------------start------------->8---
(setq gdb-many-windows t)
(setq gdb-show-main t)
--8<---------------cut here---------------end--------------->8---

But nothing, I only see one buffer...
I've found many nice things on the net but I'm not able to get even the
basic things working..

Richard Riley

unread,
Dec 27, 2009, 12:15:34 PM12/27/09
to help-gn...@gnu.org

andrea <andrea....@gmail.com> writes:

> I was trying to use gud (I need at least gdb and pdb) but I'm not able
> to abilitate the multi-window setting.
>
> I've set up the variables
>
>

> (setq gdb-many-windows t)
> (setq gdb-show-main t)
>
>
>

> But nothing, I only see one buffer...
> I've found many nice things on the net but I'm not able to get even the
> basic things working..
>
>
>
>
>

How to you start gdb?

I start debugging a C program "files" like this for instance:-

gdb --annotate=3 files


regards

r.

Nick Roberts

unread,
Dec 27, 2009, 6:41:52 PM12/27/09
to andrea....@gmail.com, help-gn...@gnu.org
> I was trying to use gud (I need at least gdb and pdb) but I'm not able
> to abilitate the multi-window setting.

gdb-many-windows only works with M-x gdb

> I've set up the variables

> --8<---------------cut here---------------start------------->8---


> (setq gdb-many-windows t)
> (setq gdb-show-main t)

> --8<---------------cut here---------------end--------------->8---


>
> But nothing, I only see one buffer...
> I've found many nice things on the net but I'm not able to get even the
> basic things working..

You give no clues, not even the version of Emacs that you are using. It must be at least
Emacs 22.1 and you mustn't delete the option "--annotate=3" from:

Run gdb (like this): gdb --annotate=3 myprog

I suggest you read the section on "Debuggers" in the Emacs manual.


--
Nick http://users.snap.net.nz/~nickrob


andrea

unread,
Dec 28, 2009, 4:51:39 AM12/28/09
to help-gn...@gnu.org
nic...@snap.net.nz (Nick Roberts) writes:

> > I was trying to use gud (I need at least gdb and pdb) but I'm not able
> > to abilitate the multi-window setting.
>

> gdb-many-windows only works with M-x gdb You give no clues, not even


> the version of Emacs that you are using. It must be at least Emacs
> 22.1 and you mustn't delete the option "--annotate=3" from:
>
> Run gdb (like this): gdb --annotate=3 myprog
>
> I suggest you read the section on "Debuggers" in the Emacs manual.

Yes you're right sorry I wasn't very clear.
GNU Emacs 23.1.50.1
(i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-09-16 on
neutron.local

I've normally used gnu-gdb because simply gdb didn't work, I get this
error now running *gdb --annotate=3 myprog*:

--8<---------------cut here---------------start------------->8---
error-begin
Undefined command: "9-break-list". Try "help".
error
pre-prompt
prompt
--8<---------------cut here---------------end--------------->8---

Nick Roberts

unread,
Dec 28, 2009, 6:39:00 AM12/28/09
to andrea, help-gn...@gnu.org
> Yes you're right sorry I wasn't very clear.
> GNU Emacs 23.1.50.1
> (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-09-16 on
> neutron.local

I think this version uses GDB/MI, so if you've just created an executable
myprog, say, should start like this:

Run gdb (like this): gdb -i=mi myprog

> I've normally used gnu-gdb because simply gdb didn't work, I get this

^^^^^^^
gud-gdb?

> error now running *gdb --annotate=3 myprog*:
>
> --8<---------------cut here---------------start------------->8---
> error-begin
> Undefined command: "9-break-list". Try "help".
> error
> pre-prompt
> prompt
> --8<---------------cut here---------------end--------------->8---

You must have customized something, or have old lisp files (gdb-ui.el) in your
load-path.

Try emacs -Q and then M-x gdb.


--
Nick http://users.snap.net.nz/~nickrob


0 new messages