Next: 6. TIPS Up: 5.1 Debugging with SDCDB Previous: 5.1.6 Interfacing SDCDB with Contents Index

##
5.1.7 Interfacing SDCDB with XEmacs

Two files (in emacs lisp) are provided for the interfacing with XEmacs, sdcdb.el and sdcdbsrc.el. These two files can be found in the $(prefix)/bin directory after the installation is complete. These files need to be loaded into XEmacs for the interface to work. This can be done at XEmacs startup time by inserting the following into your '.xemacs' file (which can be found in your HOME directory):
`(load-file sdcdbsrc.el)`
.xemacs is a lisp file so the () around the command is REQUIRED. The files can also be loaded dynamically while XEmacs is running, set the environment variable 'EMACSLOADPATH' to the installation bin directory (<installdir>/bin), then enter the following command ESC-x load-file sdcdbsrc. To start the interface enter the following command:
ESC-x sdcdbsrc
You will prompted to enter the file name to be debugged.
The command line options that are passed to the simulator directly are bound to default values in the file sdcdbsrc.el. The variables are listed below, these values maybe changed as required.

- sdcdbsrc-cpu-type '51
- sdcdbsrc-frequency '11059200
- sdcdbsrc-serial nil

The following is a list of key mapping for the debugger interface.

`;; Current Listing ::`
`;;key binding Comment`
`;;-- ---- ----`
`;;`
`;; n sdcdb-next-from-src SDCDB next command`
`;; b sdcdb-back-from-src SDCDB back command`
`;; c sdcdb-cont-from-src SDCDB continue command`
`;; s sdcdb-step-from-src SDCDB step command`
`;; ? sdcdb-whatis-c-sexp SDCDB ptypecommand for data at`
`;; buffer point`
`;; x sdcdbsrc-delete SDCDB Delete all breakpoints if no arg`
`;; given or delete arg (C-u arg x)`
`;; m sdcdbsrc-frame SDCDB Display current frame if no arg,`
`;; given or display frame arg`
`;; buffer point`
`;; ! sdcdbsrc-goto-sdcdb Goto the SDCDB output buffer`
`;; p sdcdb-print-c-sexp SDCDB print command for data at`
`;; buffer point`
`;; g sdcdbsrc-goto-sdcdb Goto the SDCDB output buffer`
`;; t sdcdbsrc-mode Toggles Sdcdbsrc mode (turns it off)`
`;;`
`;; C-c C-f sdcdb-finish-from-src SDCDB finish command`
`;;`
`;; C-x SPC sdcdb-break Set break for line with point`
`;; ESC t sdcdbsrc-mode Toggle Sdcdbsrc mode`
`;; ESC m sdcdbsrc-srcmode Toggle list mode`
`;;`

Next: 6. TIPS Up: 5.1 Debugging with SDCDB Previous: 5.1.6 Interfacing SDCDB with Contents Index