[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Toggle view in gdba
From: |
Nick Roberts |
Subject: |
Re: Toggle view in gdba |
Date: |
Sun, 24 Oct 2004 10:57:54 +1300 |
> >> > Actually I think it would be better not to use any of these
> >> > keybindings. Gud-watch doesn't have a keybindings and I've just
> >> > remembered why: these commands are really GDB specific and don't work
> >> > for "gdb -fullname", perldb, pdb etc. Once GDB-UI has been invoked
> >> > these keybindings are set for all the other debugger modes. As recent
> >> > discussion has shown, there are still problems with GDB-UI so I don't
> >> > want to interfere with these other modes, particularly the original
> >> > gdb mode.
>
> I don't see where's the problem. If you start GUD with "gdb --fullname"
> and then another GUD with pdb, things will go wrong as well. This should be
> fixed, but it is orthogonal to the gdb-ui support.
I'm talking invoking the modes serially, not about multiple sessions.
> >> Experimentally, I added new a argument LOCAL to gud-def and added line
> >>
> >> (use-local-map (copy-keymap (current-local-map)))
> >>
> >> to `gdb-ann3'.
>
> This is ugly. I'd rather just add the gdb-ui keybindings globally.
Ugliness is really the price of having two modes that use GDB. The old
mode needs to be removed, which clearly is not acceptable at the moment.
> PS: I think what should happen is that gud should use a more traditional
> keybinding scheme, where the keybindings are "static" (i.e. not changed when
> you do M-x gdb) and the *commands* then check whether they're talking to
> gdb, or pdb.
Yes. Lets try that after the release.
Nick