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..
> 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.
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
> > 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---
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