Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tromey/emacs-gdb-shell
gdb wrappers for the shell and for shell-mode
https://github.com/tromey/emacs-gdb-shell
Last synced: 12 days ago
JSON representation
gdb wrappers for the shell and for shell-mode
- Host: GitHub
- URL: https://github.com/tromey/emacs-gdb-shell
- Owner: tromey
- Created: 2014-09-26T19:00:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-09T19:17:04.000Z (about 10 years ago)
- Last Synced: 2024-10-28T12:42:58.760Z (2 months ago)
- Language: Emacs Lisp
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This has some code for making gdb work more nicely with Emacs from a
terminal, and for adding some gdb (and other) handling to shell mode.## egdb
The script `egdb` can be used from the terminal to invoke gdb inside
Emacs. You must be running the Emacs server (see `server-start`) for
this to work.`egdb` creates a new TTY frame in the current terminal, then starts
`gdb` in Emacs. The current directory and the arguments to `egdb` are
passed to Emacs.By default `egdb` uses the `gdb` from your `PATH`. However you can
change this by setting the `GDB` environment variable.`egdb` uses the variable `gdb-shell-gdb` to decide what interface to
use in Emacs. The default is `gud-gdb`. Other ones may be possible
but you may have to hack `gdb-shell-egdb` a bit.## `gdb-shell-minor-mode`
This minor mode turns on some simple adaptive behavior in
`shell-mode`. In particular it recognizes some commands that you
enter and tries to substitute built-in Emacs behavior instead:* `gdb`. Runs gdb in Emacs instead (via `gdb-shell-gdb`), preserving
the command line and current directory.* `ant`, `make`, or `valgrind`. Enables `compilation-shell-minor-mode`.