The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    How to get get-many-windows mode working in emacs/gdb

    Discussion in 'Apple and Mac OS X' started by mmoy, Apr 22, 2011.

  1. mmoy

    mmoy Notebook Deity

    Reputations:
    144
    Messages:
    775
    Likes Received:
    6
    Trophy Points:
    31
    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.
     
  2. mmoy

    mmoy Notebook Deity

    Reputations:
    144
    Messages:
    775
    Likes Received:
    6
    Trophy Points:
    31
    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.