From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ffde960abd73a9e5 X-Google-Attributes: gidfee84,public From: diewald@virrus.zko.dec.com (Jeff Diewald) Subject: Re: Q: GNU emacs and decladebug Date: 1995/05/31 Message-ID: <3qhnm3$7gp$1@usenet.pa.dec.com>#1/1 X-Deja-AN: 103622227 distribution: world references: organization: Digital Equipment Corporation reply-to: diewald@virrus.zko.dec.com (Jeff Diewald) newsgroups: comp.unix.osf.osf1 In article , petteri@halli.meridian.fi (Petteri Soikkonen) writes: |>Hello, |> |>is there somewhere GNU Emacs mode for using decladebug |>same way like with gdb or dbx? |> Petteri, From the release notes for DECladebug 3.0.16: 2.1 Using DECladebug Within emacs Within the emacs editing environment, you can control your debugger process entirely through the emacs GUD (Grand Unified Debugger) buffer, which is a variant of Shell mode. All the DECladebug commands are available, and you can use the Shell mode history commands to repeat them. DECladebug Version 3.0.16 supports GNU Emacs Version 19.22 and above. For each emacs session, before you can invoke DECladebug, you must load the DECladebug-specific emacs lisp code, as follows: M-x load-file /usr/opt/ladebug/emacs/lisp/decladebug.el To start DECladebug within emacs and specify the name of the target program you want to debug, enter: M-x decladebug [target-program] You can also place a load-file command in your emacs initialization file. Buffers: When you start DECladebug, emacs displays the GUD (Grand Unified Debugger) buffer in which the decladebug prompt is displayed. The GUD buffer saves all of the commands you enter and the program output for you to edit. When you issue the DECladebug run command in the GUD buffer and hit a breakpoint, emacs displays the source of your program in a second buffer (source buffer) and indicates the current execution line with =>. By default, emacs sets its current working directory to be the directory containing the target program. DECladebug does not do this when invoked directly, so you may need to change the source code search path when using DECladebug from within emacs. To set an alternate source code search path, enter the use command with a directory argument. For example: (decladebug) use usr/prog/test All emacs editing functions and GUD key bindings are available, including the following: o You can execute a step command by entering the C-c C-s command in the GUD buffer. o You can select a line of code in the current source buffer and enter a command to set a breakpoint at that position by typing C-x SPC. For more information on emacs functionality and key bindings, refer to the emacs documentation. ----------------------------------------------------------------------------- Jeff Diewald EASYNET: VIRRUS::DIEWALD DECladebug group INTERNET: diewald@virrus.zko.dec.com Digital Equipment Corp. Note: I don't read every article in this group. If you have debugger questions, I may be able to get you an answer. You're much more likely to get an answer if you put "DECladebug" somewhere in your subject line.