I'm trying to get many-windows-mode working in gdb within emacs or xemacs. I can get gdb loaded along with an executable but when I try M-x gdb-many-windows, it isn't found. I have seen threads on the web explaining what to do though they don't seem to solve the problem. I've also tried this on Linux with no success. I've also tried setting startup variables and that didn't work.
-
Well, I get to answer my own question again.
On Mac OS X, the package options are Fink and MacPorts. I thought that I had MacPorts set up on my system but I didn't - perhaps the upgrade to Snow Leopard had something to do with that or maybe I reinstalled the OS at some point.
I installed MacPorts and reinstalled emacs and xemacs hoping that I would pick up newer versions of these programs that would support GDB's gui mode. Unfortunately this didn't work.
So I did some more reading and found that the base version for emacs is pretty old and that the gui feature is relatively new (within the last two years). Apparently the Unix world has emacs at a version or branch that's several years old. If you want xemacs version 21, you install xemacs21; if you want emacs version 22, you install emacs22 - the name of the later product has the version number embedded into it. I pulled the packages in Ubuntu and built them and that worked. I then tried it on on Mac OS X and it does work but the menu mode isn't working. I also didn't get the information working in the other windows.
I guess that I will have to poke around a little more to get everything working on Mac OS X. In the meantime, I will be debugging my assembler code on Ubuntu. Fortunately I have an Ubuntu VM on my Mac.
How to get get-many-windows mode working in emacs/gdb
Discussion in 'Apple and Mac OS X' started by mmoy, Apr 22, 2011.