diff options
| author | Eli Zaretskii | 2001-10-24 09:50:06 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-10-24 09:50:06 +0000 |
| commit | 036cb5a21639fa8d3c19542d28200acc41cdec89 (patch) | |
| tree | 2e7dcff07dab85c7e0209d30075bdb94ff006915 | |
| parent | 62e3398212b8f56177c22c035cb7793704f53a21 (diff) | |
| download | emacs-036cb5a21639fa8d3c19542d28200acc41cdec89.tar.gz emacs-036cb5a21639fa8d3c19542d28200acc41cdec89.zip | |
Add information about debugging the tty version.
From Gerd Moellmann.
| -rw-r--r-- | etc/DEBUG | 22 |
1 files changed, 22 insertions, 0 deletions
| @@ -437,6 +437,28 @@ some extra checks, such as look for broken relations between byte and | |||
| 437 | character positions in buffers and strings; the resulting diagnostics | 437 | character positions in buffers and strings; the resulting diagnostics |
| 438 | might pinpoint the cause of the problem. | 438 | might pinpoint the cause of the problem. |
| 439 | 439 | ||
| 440 | ** Debugging the TTY (non-windowed) version | ||
| 441 | |||
| 442 | The most convenient method of debugging the character-terminal display | ||
| 443 | is to do that on a window system such as X. Begin by starting an | ||
| 444 | xterm window, then type these commands inside that window: | ||
| 445 | |||
| 446 | $ tty | ||
| 447 | $ echo $TERM | ||
| 448 | |||
| 449 | Let's say these commands print "/dev/ttyp4" and "xterm", respectively. | ||
| 450 | |||
| 451 | Now start Emacs (the normal, windowed-display session, i.e. without | ||
| 452 | the `-nw' option), and invoke "M-x gdb RET emacs RET" from there. Now | ||
| 453 | type these commands at GDB's prompt: | ||
| 454 | |||
| 455 | (gdb) set args -nw -t /dev/ttyp4 | ||
| 456 | (gdb) set environment TERM xterm | ||
| 457 | (gdb) run | ||
| 458 | |||
| 459 | The debugged Emacs should now start in no-window mode with its display | ||
| 460 | directed to the xterm window you opened above. | ||
| 461 | |||
| 440 | ** Running Emacs built with malloc debugging packages | 462 | ** Running Emacs built with malloc debugging packages |
| 441 | 463 | ||
| 442 | If Emacs exhibits bugs that seem to be related to use of memory | 464 | If Emacs exhibits bugs that seem to be related to use of memory |